diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f994709 Binary files /dev/null and b/.DS_Store differ diff --git a/app/Http/Controllers/Users/TeamInvitesController.php b/app/Http/Controllers/Users/TeamInvitesController.php index a2b1ef5..d2062e3 100644 --- a/app/Http/Controllers/Users/TeamInvitesController.php +++ b/app/Http/Controllers/Users/TeamInvitesController.php @@ -37,7 +37,10 @@ public function store(CreateTeamInviteRequest $request, Team $team) } if ($team->hasInvite($user)) { - abort(400, $user->email . ' has already been invited to this team.'); + abort( + 400, + $user->email . ' has already been invited to this team.' + ); } $data = [ diff --git a/app/Http/Resources/UserResource.php b/app/Http/Resources/UserResource.php index 89e91e7..a9c79ee 100644 --- a/app/Http/Resources/UserResource.php +++ b/app/Http/Resources/UserResource.php @@ -37,7 +37,9 @@ public function toArray($request) // 'api_token' => $this->api_token, 'photo_url' => $this->photo_url, 'teams' => TeamResource::collection($this->teams), - 'team_memberships' => $this->memberships()->with(['team:id,name'])->get(), + 'team_memberships' => $this->memberships() + ->with(['team:id,name']) + ->get(), 'team_invites' => $this->invites()->with(['team.user']), 'auth_provider' => $this->auth_provider, 'server_count' => $serverCount, diff --git a/app/Team.php b/app/Team.php index 279a20e..5dd004f 100644 --- a/app/Team.php +++ b/app/Team.php @@ -25,17 +25,20 @@ public function hasMember(User $user) return true; } - return (bool) $this->invites()->where('status', 'accepted') + return (bool) $this->invites() + ->where('status', 'accepted') ->where('user_id', $user->id) ->first(); } - public function hasInvite(User $user) { + public function hasInvite(User $user) + { if ((int) $this->user_id === (int) $user->id) { return false; } - return (bool) $this->invites()->where('user_id', $user->id) + return (bool) $this->invites() + ->where('user_id', $user->id) ->first(); } } diff --git a/public/.DS_Store b/public/.DS_Store index 5b2ec74..fb2395b 100644 Binary files a/public/.DS_Store and b/public/.DS_Store differ diff --git a/public/assets/.DS_Store b/public/assets/.DS_Store index b77e076..2425a07 100644 Binary files a/public/assets/.DS_Store and b/public/assets/.DS_Store differ diff --git a/public/assets/images/.DS_Store b/public/assets/images/.DS_Store index 5008ddf..697a80d 100644 Binary files a/public/assets/images/.DS_Store and b/public/assets/images/.DS_Store differ diff --git a/public/assets/images/add-database.png b/public/assets/images/add-database.png new file mode 100644 index 0000000..2ce0e07 Binary files /dev/null and b/public/assets/images/add-database.png differ diff --git a/public/assets/images/add-firewall-2.png b/public/assets/images/add-firewall-2.png new file mode 100644 index 0000000..c04864e Binary files /dev/null and b/public/assets/images/add-firewall-2.png differ diff --git a/public/assets/images/add-firewall.png b/public/assets/images/add-firewall.png new file mode 100644 index 0000000..9c5e7ac Binary files /dev/null and b/public/assets/images/add-firewall.png differ diff --git a/public/assets/images/add-server-1.png b/public/assets/images/add-server-1.png new file mode 100644 index 0000000..c41c5d8 Binary files /dev/null and b/public/assets/images/add-server-1.png differ diff --git a/public/assets/images/add-server-2.png b/public/assets/images/add-server-2.png new file mode 100644 index 0000000..d41358e Binary files /dev/null and b/public/assets/images/add-server-2.png differ diff --git a/public/assets/images/connect-src-ctrl.png b/public/assets/images/connect-src-ctrl.png new file mode 100644 index 0000000..d0f83db Binary files /dev/null and b/public/assets/images/connect-src-ctrl.png differ diff --git a/public/js/14.js b/public/js/14.js index 794dffc..e9abf21 100644 --- a/public/js/14.js +++ b/public/js/14.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{DUoa:function(e,t,r){"use strict";r.r(t);function s(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);re.length)&&(t=e.length);for(var r=0,s=new Array(t);r>>this.subscription.plan"),"free"===this.subscription.plan?"Upgrade to ".concat(e.name," plan"):"business"===this.subscription.plan?"Downgrade to ".concat(e.name," plan"):"pro"===this.subscription.plan?"free"===e.key?"Downgrade to free plan":"Upgrade to Business plan":void 0},openPaddle:function(e){var t=this;"free"!==e.key?"free"===this.subscription.plan?window.Paddle.Checkout.open({product:e.id,email:this.user.email,successCallback:function(e){t.updating=!0,setTimeout((function(){window.location.href="/account/subscription"}),5e3)}}):this.updatePlan(e):this.toggleCancellingSubscription()},cancelSubscription:function(){var e=this;this.cancelling=!0,axios.delete("/api/subscription/cancel").then((function(t){var n=t.data;e.$root.auth=n,e.$root.flashMessage("Your plan has been cancelled.")})).catch((function(t){var n=t.response;n.data&&n.data.message?e.$root.flashMessage(n.data.message,"error"):e.$root.flashMessage("Failed to cancel subscription.","error")})).finally((function(){e.cancelling=!1,e.toggleCancellingSubscription()}))},toggleCancellingSubscription:function(){this.cancellingSubscription=!this.cancellingSubscription},updatePlan:function(e){var t=this;this.updating=!0,axios.patch("/api/subscription/update",{plan:e.key}).then((function(n){var a=n.data;t.$root.auth=a,t.$root.flashMessage("Subscription has been updated to ".concat(e.key))})).catch((function(e){var n=e.response;n.data&&n.data.message?t.$root.flashMessage(n.data.message,"error"):t.$root.flashMessage("Failed to update subscription plan.","error")})).finally((function(){t.updating=!1}))}}}}).call(this,n("8oxB"))},bTy8:function(e,t,n){"use strict";n.r(t);var a=n("/yqw").a,i=n("KHd+"),s=Object(i.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("account-layout",[n("template",{slot:"content"},[n("confirm-modal",{attrs:{confirming:e.cancelling,open:e.cancellingSubscription,confirmHeading:"Cancel subscription",confirmText:"Are you sure you want cancel your subscription ? You would loose all features in the "+e.subscription.plan+" plan"},on:{confirm:e.cancelSubscription,close:e.toggleCancellingSubscription}}),e._v(" "),n("flash"),e._v(" "),n("card",{staticClass:"mb-6",attrs:{title:"Update your nesabox plan"}},[e.updating?n("v-button",{attrs:{label:"Updating subscription",loading:!0}}):n("div",{staticClass:"w-full flex flex-wrap"},e._l(e.plans,(function(t){return n("div",{key:t.key,staticClass:"w-full sm:w-1/2 lg:w-1/3 px-2 mt-4 md:mt-0"},[n("div",{staticClass:"bg-white shadow rounded overflow-hidden"},[n("div",{staticClass:"bg-sha-green-500 text-white px-3 py-3 text-xl"},[n("div",{staticClass:"flex justify-between items-center font-medium"},[n("div",[e._v(e._s(t.name))]),e._v(" "),n("div",[e._v("$"+e._s(t.price)+" / month")])])]),e._v(" "),n("div",{staticClass:"bg-white px-4 py-4"},e._l(t.features,(function(t){return n("div",{key:t.name,staticClass:"mt-4"},[n("div",{staticClass:"flex items-center"},[n("svg",{staticClass:"w-6 h-6 text-sha-green-500",attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M5 13l4 4L19 7"}})]),e._v(" "),n("div",{staticClass:"ml-2",class:{"font-medium":t.bold}},[e._v("\n "+e._s(t.name)+"\n ")])])])})),0)]),e._v(" "),e.subscription.plan===t.key?n("p",{staticClass:"mt-4 text-center font-medium text-lg"},[e._v("\n Your current plan\n ")]):n(e.getPlanLabel(t).match(/Downgrade/)?"red-button":"v-button",{tag:"component",staticClass:"mt-4",attrs:{full:!0,label:e.getPlanLabel(t)},on:{click:function(n){return e.openPaddle(t)}}})],1)})),0)],1)],1)],2)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/public/js/5.js b/public/js/5.js index 13190bb..160e2d9 100644 --- a/public/js/5.js +++ b/public/js/5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{nlrc:function(e,t,r){"use strict";r.r(t);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var n={data:function(){return{table:{headers:[{label:"Profile name",value:"profileName"},{label:"Provider",value:"provider"},{label:"",value:"actions"}]},serverOptions:[{label:"Digital Ocean",value:"digital-ocean"},{label:"Linode",value:"linode"},{label:"Vultr",value:"vultr"}],form:{provider:"",profileName:"",accessToken:"",apiKey:"",apiToken:""},deletingProvider:null,deleting:!1}},computed:{credentials:function(){var e=this,t=[];return Object.keys(this.$root.auth.providers).forEach((function(r){t=t.concat(e.$root.auth.providers[r].map((function(e){return function(e){for(var t=1;t>>this.subscription.plan"),"free"===this.subscription.plan?"Upgrade to ".concat(e.name," plan"):"business"===this.subscription.plan?"Downgrade to ".concat(e.name," plan"):"pro"===this.subscription.plan?"free"===e.key?"Downgrade to free plan":"Upgrade to Business plan":void 0},openPaddle:function(e){var t=this;"free"!==e.key?"free"===this.subscription.plan?window.Paddle.Checkout.open({product:e.id,email:this.user.email,successCallback:function(e){t.updating=!0,setTimeout((function(){window.location.href="/account/subscription"}),5e3)}}):this.updatePlan(e):this.toggleCancellingSubscription()},cancelSubscription:function(){var e=this;this.cancelling=!0,axios.delete("/api/subscription/cancel").then((function(t){var n=t.data;e.$root.auth=n,e.$root.flashMessage("Your plan has been cancelled.")})).catch((function(t){var n=t.response;n.data&&n.data.message?e.$root.flashMessage(n.data.message,"error"):e.$root.flashMessage("Failed to cancel subscription.","error")})).finally((function(){e.cancelling=!1,e.toggleCancellingSubscription()}))},toggleCancellingSubscription:function(){this.cancellingSubscription=!this.cancellingSubscription},updatePlan:function(e){var t=this;this.updating=!0,axios.patch("/api/subscription/update",{plan:e.key}).then((function(n){var a=n.data;t.$root.auth=a,t.$root.flashMessage("Subscription has been updated to ".concat(e.key))})).catch((function(e){var n=e.response;n.data&&n.data.message?t.$root.flashMessage(n.data.message,"error"):t.$root.flashMessage("Failed to update subscription plan.","error")})).finally((function(){t.updating=!1}))}}},i=n("KHd+"),s=Object(i.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("account-layout",[n("template",{slot:"content"},[n("confirm-modal",{attrs:{confirming:e.cancelling,open:e.cancellingSubscription,confirmHeading:"Cancel subscription",confirmText:"Are you sure you want cancel your subscription ? You would loose all features in the "+e.subscription.plan+" plan"},on:{confirm:e.cancelSubscription,close:e.toggleCancellingSubscription}}),e._v(" "),n("flash"),e._v(" "),n("card",{staticClass:"mb-6",attrs:{title:"Update your nesabox plan"}},[e.updating?n("v-button",{attrs:{label:"Updating subscription",loading:!0}}):n("div",{staticClass:"w-full flex flex-wrap"},e._l(e.plans,(function(t){return n("div",{key:t.key,staticClass:"w-full sm:w-1/2 lg:w-1/3 px-2 mt-4 md:mt-0"},[n("div",{staticClass:"bg-white shadow rounded overflow-hidden"},[n("div",{staticClass:"bg-sha-green-500 text-white px-3 py-3 text-xl"},[n("div",{staticClass:"flex justify-between items-center font-medium"},[n("div",[e._v(e._s(t.name))]),e._v(" "),n("div",[e._v("$"+e._s(t.price)+" / month")])])]),e._v(" "),n("div",{staticClass:"bg-white px-4 py-4"},e._l(t.features,(function(t){return n("div",{key:t.name,staticClass:"mt-4"},[n("div",{staticClass:"flex items-center"},[n("svg",{staticClass:"w-6 h-6 text-sha-green-500",attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M5 13l4 4L19 7"}})]),e._v(" "),n("div",{staticClass:"ml-2",class:{"font-medium":t.bold}},[e._v("\n "+e._s(t.name)+"\n ")])])])})),0)]),e._v(" "),e.subscription.plan===t.key?n("p",{staticClass:"mt-4 text-center font-medium text-lg"},[e._v("\n Your current plan\n ")]):n(e.getPlanLabel(t).match(/Downgrade/)?"red-button":"v-button",{tag:"component",staticClass:"mt-4",attrs:{full:!0,label:e.getPlanLabel(t)},on:{click:function(n){return e.openPaddle(t)}}})],1)})),0)],1)],1)],2)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{Mg50:function(t,n,e){"use strict";e.r(n);function r(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var n=1;n0&&n.unshift(e.target),t.contains(e.target)||function(t,e){if(!t||!e)return!1;for(var n=0,r=e.length;n1)for(var n=1;n-1}function c(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function f(t,e){for(var n in e)t[n]=e[n];return t}var h={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,l=i.$route,u=i._routerViewCache||(i._routerViewCache={}),c=0,h=!1;i&&i._routerRoot!==i;){var d=i.$vnode?i.$vnode.data:{};d.routerView&&c++,d.keepAlive&&i._directInactive&&i._inactive&&(h=!0),i=i.$parent}if(o.routerViewDepth=c,h){var v=u[a],m=v&&v.component;return m?(v.configProps&&p(m,o,v.route,v.configProps),s(m,o,r)):s()}var g=l.matched[c],y=g&&g.components[a];if(!g||!y)return u[a]=null,s();u[a]={component:y},o.registerRouteInstance=function(t,e){var n=g.instances[a];(e&&n!==t||!e&&n===t)&&(g.instances[a]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){g.instances[a]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[a]&&(g.instances[a]=t.componentInstance)};var b=g.props&&g.props[a];return b&&(f(u[a],{route:l,configProps:b}),p(y,o,l,b)),s(y,o,r)}};function p(t,e,n,r){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,r);if(i){i=e.props=f({},i);var o=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(o[s]=i[s],delete i[s])}}var d=/[!'()*]/g,v=function(t){return"%"+t.charCodeAt(0).toString(16)},m=/%2C/g,g=function(t){return encodeURIComponent(t).replace(d,v).replace(m,",")},y=decodeURIComponent;function b(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=y(n.shift()),i=n.length>0?y(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function w(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return g(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(g(e)):r.push(g(e)+"="+g(t)))})),r.join("&")}return g(e)+"="+g(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var x=/\/?$/;function _(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=C(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:T(e,i),matched:t?S(t):[]};return n&&(s.redirectedFrom=T(n,i)),Object.freeze(s)}function C(t){if(Array.isArray(t))return t.map(C);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=C(t[n]);return e}return t}var k=_(null,{path:"/"});function S(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function T(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||w)(r)+i}function O(t,e){return e===k?t===e:!!e&&(t.path&&e.path?t.path.replace(x,"")===e.path.replace(x,"")&&t.hash===e.hash&&A(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&A(t.query,e.query)&&A(t.params,e.params)))}function A(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?A(r,i):String(r)===String(i)}))}function L(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),u=e&&e.path||"/",c=l.path?L(l.path,u,n||i.append):u,h=function(t,e,n){void 0===e&&(e={});var r,i=n||b;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(l.query,i.query,r&&r.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:c,query:h,hash:p}}var X,J=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,h=null==u?"router-link-active":u,p=null==c?"router-link-exact-active":c,d=null==this.activeClass?h:this.activeClass,v=null==this.exactActiveClass?p:this.exactActiveClass,m=s.redirectedFrom?_(null,G(s.redirectedFrom),null,n):s;l[v]=O(r,m),l[d]=this.exact?l[v]:function(t,e){return 0===t.path.replace(x,"/").indexOf(e.path.replace(x,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var g=function(t){Q(t)&&(e.replace?n.replace(o,J):n.push(o,J))},y={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=g})):y[this.event]=g;var b={class:l},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:s,navigate:g,isActive:l[d],isExactActive:l[v]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?t():t("span",{},w)}if("a"===this.tag)b.on=y,b.attrs={href:a};else{var C=function t(e){var n;if(e)for(var r=0;r-1&&(a.params[h]=n.params[h]);return a.path=K(c.path,a.params),l(c,a,s)}if(a.path){a.params={};for(var p=0;p=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function kt(t){return function(e,n,r){var i=!1,o=0,s=null;St(t,(function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var l,c=At((function(e){var i;((i=e).__esModule||Ot&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:X.extend(e),n.components[a]=e,--o<=0&&r()})),f=At((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=u(t)?t:new Error(e),r(s))}));try{l=t(c,f)}catch(t){f(t)}if(l)if("function"==typeof l.then)l.then(c,f);else{var h=l.component;h&&"function"==typeof h.then&&h.then(c,f)}}})),i||r()}}function St(t,e){return Tt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Tt(t){return Array.prototype.concat.apply([],t)}var Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function At(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Lt=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);Lt._name="NavigationDuplicated";var Et=function(t,e){this.router=t,this.base=function(t){if(!t)if(tt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=k,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Mt(t,e,n,r){var i=St(t,(function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=X.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return Tt(r?i.reverse():i)}function Pt(t,e){if(e)return function(){return t.apply(e,arguments)}}Et.prototype.listen=function(t){this.cb=t},Et.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Et.prototype.onError=function(t){this.errorCbs.push(t)},Et.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},Et.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){!c(Lt,t)&&u(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)};if(O(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o(new Lt(t));var s=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function It(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Bt(t){wt?xt(It(t)):window.location.hash=t}function Ht(t){wt?_t(It(t)):window.location.replace(It(t))}var Ut=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}),(function(t){c(Lt,t)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Et),Ft=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=rt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!wt&&!1!==t.fallback,this.fallback&&(e="hash"),tt||(e="abstract"),this.mode=e,e){case"history":this.history=new Nt(this,t.base);break;case"hash":this.history=new Rt(this,t.base,this.fallback);break;case"abstract":this.history=new Ut(this,t.base);break;default:0}},zt={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ft.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},zt.currentRoute.get=function(){return this.history&&this.history.current},Ft.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Nt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Rt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ft.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},Ft.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},Ft.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},Ft.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ft.prototype.onError=function(t){this.history.onError(t)},Ft.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Ft.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Ft.prototype.go=function(t){this.history.go(t)},Ft.prototype.back=function(){this.go(-1)},Ft.prototype.forward=function(){this.go(1)},Ft.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ft.prototype.resolve=function(t,e,n){var r=G(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?E(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ft.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==k&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ft.prototype,zt),Ft.install=function t(e){if(!t.installed||X!==e){t.installed=!0,X=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",h),e.component("RouterLink",Z);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ft.version="3.1.6",tt&&window.Vue&&window.Vue.use(Ft);var qt=Ft,Vt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Yt=function(){function t(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?t._t("default"):t._e(),t._v(" "),t.table&&0===t.rowsCount?n("div",{staticClass:"w-full flex px-6 py-12 justify-center items-center bg-white shadow"},[t._v("\n "+t._s(t.emptyTableMessage)+"\n ")]):t._e(),t._v(" "),t.table?t._e():n("div",{staticClass:"w-full bg-gray-50 p-4 md:p-6 pb-8"},[t._t("default")],2)],2)}),[],!1,null,null,null).exports,Ae=Object(ke.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"w-full border border-blue-500 bg-blue-100 flex items-center rounded text-blue-900 px-2 py-3 text-sm"},[this._t("default")],2)}),[],!1,null,null,null).exports,Le={props:{open:{type:Boolean,required:!1,default:!1}}},Ee=Object(ke.a)(Le,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"fixed bottom-0 inset-x-0 px-4 pb-4 sm:inset-0 sm:flex sm:items-center sm:justify-center"},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"fixed inset-0 transition-opacity",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0","x-transition:enter-end":"opacity-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100","x-transition:leave-end":"opacity-0"}},[e("div",{staticClass:"absolute inset-0 bg-gray-500 opacity-75"})]),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:max-w-3xl sm:w-full",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","x-transition:enter-end":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave-end":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},[e("div",{staticClass:"bg-white"},[this._t("default")],2)])])}),[],!1,null,null,null).exports,Me=(n("9+H4"),Object(ke.a)({},(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"px-5"},[e("div",{staticClass:"dot-typing"})])}],!1,null,null,null).exports),Pe={props:{headers:{type:Array,required:!0,default:function(){return[]}},rows:{type:Array,required:!0,default:function(){return[]}}}},Ne=Object(ke.a)(Pe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"-my-2 py-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8"},[n("div",{staticClass:"align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-gray-200"},[n("table",{staticClass:"min-w-full"},[n("thead",[n("tr",t._l(t.headers,(function(e){return n("th",{key:e.value,staticClass:"px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-700 uppercase tracking-wider"},[t._v("\n "+t._s(e.label)+"\n ")])})),0)]),t._v(" "),n("tbody",{staticClass:"bg-white"},t._l(t.rows,(function(e){return n("tr",{key:e.id,staticClass:"cursor-pointer hover:bg-gray-100",on:{click:function(n){return t.$emit("row-clicked",e)}}},t._l(t.headers,(function(r){return n("td",{key:r.value,staticClass:"px-6 py-4 whitespace-no-wrap border-b border-gray-200"},[t._t("row",[t._v("\n "+t._s(e[r.value])+"\n ")],{row:e,header:r})],2)})),0)})),0)])])])])}),[],!1,null,null,null).exports,je={computed:{message:function(){return this.$root.flash.message},type:function(){return this.$root.flash.type}}},Re=Object(ke.a)(je,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.message?n("div",{staticClass:"w-full px-3 py-4 rounded flex items-center justify-between text-white my-3",class:{"bg-green-400":"success"===t.type,"bg-red-600":"error"===t.type}},[n("span",{staticClass:"inline-block"},[t._v("\n "+t._s(t.message)+"\n ")]),t._v(" "),"error"===t.type?n("v-svg",{attrs:{icon:"cross-circle",width:"24",height:"24"}}):t._e(),t._v(" "),"success"===t.type?n("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()],1):t._e()}),[],!1,null,null,null).exports,De={props:{label:{type:String,required:!1,default:""},value:{type:String,required:!1},options:{type:Array,required:!1,default:function(){return[]}},id:{type:String,required:!0},errors:{type:Array,required:!1,default:function(){return[]}}}},$e=Object(ke.a)(De,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.label?n("label",{staticClass:"block text-sm font-medium leading-5 text-gray-700"},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),t._l(t.options,(function(e){return n("div",{key:e.value,staticClass:"flex items-center mt-3"},[n("input",{staticClass:"form-radio h-4 w-4 text-sha-green-500 transition duration-150 ease-in-out",attrs:{type:"radio",name:"form-input",id:e.value},domProps:{value:e.value,checked:t.value===e.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),t._v(" "),n("label",{staticClass:"ml-3 cursor-pointer",attrs:{for:e.value}},[n("span",{staticClass:"block text-sm leading-5 font-medium text-gray-700 capitalize"},[t._v("\n "+t._s(e.label)+"\n ")])])])})),t._v(" "),t.errors.length>0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()],2)}),[],!1,null,null,null).exports,Ie={props:{status:{type:String,required:!0}}},Be=Object(ke.a)(Ie,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex items-center"},[n("span",{staticClass:"px-2 inline-flex text-xs leading-5 font-semibold rounded-full capitalize",class:{"bg-green-200 text-green-800":"active"===t.status,"bg-blue-100 text-blue-800":["new","initializing","installing","pending"].includes(t.status)}},[t._v("\n "+t._s(t.status)+"\n ")]),t._v(" "),"active"!==t.status?n("span",{staticClass:"ml-3"},[n("spinner",{staticClass:"w-4 h-4 text-blue-800"})],1):t._e()])}),[],!1,null,null,null).exports,He={data:function(){return{open:!1,projectsOpen:!1}},methods:{signout:function(){axios.post("/logout").then((function(){window.location.href="/"}))},handleOutsideClick:function(t){if(t.target.className){if("string"==typeof t.target.className&&t.target.className.match(/image-button/))return;if(t.target.className.baseVal&&t.target.className.baseVal.match(/image-button/))return}this.open&&(this.open=!this.open)}}},Ue=Object(ke.a)(He,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col min-h-screen"},[n("nav",{staticClass:"bg-gray-800"},[n("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[n("div",{staticClass:"flex items-center justify-between h-16"},[n("div",{staticClass:"flex items-center"},[t._m(0),t._v(" "),n("div",{staticClass:"hidden md:block"},[n("div",{staticClass:"ml-10 flex items-baseline"},[n("router-link",{staticClass:"px-3 py-2 rounded-md text-sm font-medium text-white focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/dashboard"}},[t._v("Dashboard")])],1)])]),t._v(" "),n("div",{staticClass:"hidden md:block"},[n("div",{staticClass:"ml-4 flex items-center md:ml-6"},[n("button",{staticClass:"p-1 border-2 border-transparent text-gray-400 rounded-full hover:text-white focus:outline-none focus:text-white focus:bg-gray-700"}),t._v(" "),n("div",{staticClass:"ml-3 relative"},[n("div",{staticClass:"flex items-center image-button",on:{click:function(e){t.open=!t.open}}},[n("button",{staticClass:"image-button max-w-xs flex items-center text-sm rounded-full text-white focus:outline-none focus:shadow-solid"},[n("img",{staticClass:"image-button h-8 w-8 rounded-full",attrs:{src:t.$root.auth.photo_url,alt:t.$root.auth.name}})]),t._v(" "),n("span",{staticClass:"inline-block ml-4 cursor-pointer image-button text-sm text-white"},[t._v("\n "+t._s(t.$root.auth.name)+"\n ")]),t._v(" "),n("svg",{staticClass:"image-button text-white w-4 ml-2 cursor-pointer h-4 -mt-1",attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",stroke:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M19 9l-7 7-7-7"}})])]),t._v(" "),n("transition",{attrs:{name:"account-menu"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"},{name:"click-outside",rawName:"v-click-outside",value:t.handleOutsideClick,expression:"handleOutsideClick"}],staticClass:"account-menu origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg"},[n("div",{staticClass:"rounded-md bg-white shadow-xs"},[n("div",{staticClass:"py-1"},[n("router-link",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{to:"/account"}},[t._v("Account")])],1),t._v(" "),n("div",{staticClass:"py-1"},[n("a",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{href:"/docs"}},[t._v("Docs")])]),t._v(" "),n("div",{staticClass:"py-1"},[n("router-link",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{to:"/account/teams"}},[t._v("Teams")])],1),t._v(" "),n("div",{staticClass:"py-1"},[n("router-link",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{to:"/account/subscription"}},[t._v("Subscription")])],1),t._v(" "),n("div",{staticClass:"py-1 cursor-pointer"},[n("a",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",on:{click:function(e){return e.preventDefault(),t.signout(e)}}},[t._v("Sign out")])])])])])],1)])]),t._v(" "),n("div",{staticClass:"-mr-2 flex md:hidden"},[n("button",{staticClass:"image-button inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:bg-gray-700 focus:text-white",on:{click:function(e){t.open=!t.open}}},[n("svg",{staticClass:"h-6 w-6 image-button",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{staticClass:"image-button",class:{hidden:t.open,"inline-flex":!t.open},attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}}),t._v(" "),n("path",{staticClass:"hidden",class:{hidden:!t.open,"inline-flex":t.open},attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])])])])]),t._v(" "),n("div",{staticClass:"md:hidden",class:{block:t.open,hidden:!t.open}},[n("div",{staticClass:"px-2 pt-2 pb-3 sm:px-3"},[n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-white focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/dashboard"}},[t._v("Dashboard")])],1),t._v(" "),n("div",{staticClass:"pt-4 pb-3 border-t border-gray-700"},[n("div",{staticClass:"flex items-center px-5"},[n("div",{staticClass:"flex-shrink-0"},[n("img",{staticClass:"h-10 w-10 rounded-full",attrs:{src:t.$root.auth.photo_url,alt:t.$root.auth.name}})]),t._v(" "),n("div",{staticClass:"ml-3"},[n("div",{staticClass:"text-base font-medium leading-none text-white"},[t._v("\n "+t._s(t.$root.auth.name)+"\n ")]),t._v(" "),n("div",{staticClass:"mt-1 text-sm font-medium leading-none text-gray-400"},[t._v("\n "+t._s(t.$root.auth.email)+"\n ")])])]),t._v(" "),n("div",{staticClass:"mt-3 px-2"},[n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/account"}},[t._v("Your account")]),t._v(" "),n("a",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{href:"/docs"}},[t._v("Docs")]),t._v(" "),n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/account/teams"}},[t._v("Teams")]),t._v(" "),n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/account/subscription"}},[t._v("Subscription")]),t._v(" "),n("a",{staticClass:"mt-1 block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",on:{click:function(e){return e.preventDefault(),t.signout(e)}}},[t._v("Sign out")])],1)])])]),t._v(" "),n("main",{staticClass:"px-3 flex-grow mb-12 md:mb-24"},[n("div",{staticClass:"max-w-7xl mx-auto py-6 sm:px-6 lg:px-8"},[t._t("default")],2)]),t._v(" "),n("div",{staticClass:"bg-gray-800"},[n("div",{staticClass:"max-w-screen-xl mx-auto py-8 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[n("div",{staticClass:"flex justify-center md:order-2"},[n("a",{staticClass:"ml-6 text-gray-400 hover:text-gray-500",attrs:{href:"https://twitter.com/bahdcoder"}},[n("span",{staticClass:"sr-only"},[t._v("Twitter")]),t._v(" "),n("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"}})])]),t._v(" "),n("a",{staticClass:"ml-6 text-gray-400 hover:text-gray-500",attrs:{href:"https://github.com/bahdcoder"}},[n("span",{staticClass:"sr-only"},[t._v("GitHub")]),t._v(" "),n("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z","clip-rule":"evenodd"}})])])]),t._v(" "),n("div",{staticClass:"mt-8 md:mt-0 md:order-1"},[n("p",{staticClass:"text-center text-base leading-6 text-gray-400"},[t._v("\n © "+t._s((new Date).getFullYear())+" A Project by Kati\n Frantz\n ")])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex-shrink-0"},[e("img",{staticClass:"h-12 w-12",attrs:{src:"/assets/images/logo-light-small.svg",alt:""}})])}],!1,null,null,null).exports,Fe={props:{type:{type:String,required:!1,default:"button"},label:{type:String,required:!1},href:{type:String,required:!1},full:{type:Boolean,default:!1},target:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},component:{default:"button"},to:{required:!1},loading:{type:Boolean,required:!1,default:!1}}},ze=Object(ke.a)(Fe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.component,{tag:"component",staticClass:"w-full capitalize inline-flex justify-center py-2 px-4 border border-transparent text-sm leading-5 font-medium rounded-sm text-white bg-sha-green-500 hover:bg-sha-green-400 focus:outline-none focus:border-sha-green-600 focus:shadow-outline-sha-green active:bg-sha-green-600 transition duration-150 ease-in-out",class:{"cursor-not-allowed":t.loading||t.disabled,"md:w-auto":!t.full},attrs:{to:t.to,type:t.type,href:t.href,target:t.target,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[t.loading?t._t("loader",[n("pulse",{staticClass:"py-1"})]):n("span",[t._v(t._s(t.label))])],2)}),[],!1,null,null,null).exports,We={props:{width:{required:!1,default:20},height:{required:!1,default:20},fill:{type:String,required:!1,default:"text-gray-700"}}},qe=(n("B3JZ"),Object(ke.a)(We,(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:"rotate animated infinite fill-current "+this.fill,attrs:{width:this.width,height:this.height,"data-icon":"social-media",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M9.5 4c.4 0 .8-.1 1.1-.3C12 4.5 12.9 6 13 7.6c0 .5.5.9 1 .9.6 0 1-.4 1-1v-.2c-.2-2.4-1.5-4.4-3.5-5.5-.1-1-.9-1.8-2-1.8s-2 .9-2 2 .9 2 2 2zM4 8.5c0-.7-.4-1.3-.9-1.7.3-1.4 1.2-2.6 2.5-3.3.3-.1.6-.4.6-.9s-.4-1-1-1c-.2 0-.3 0-.5.1-1.9 1-3.2 2.8-3.6 5C.4 7.1 0 7.8 0 8.5c0 1.1.9 2 2 2s2-.9 2-2zm8.8 1.2c-1.1 0-2 .9-2 2v.3c-.8.6-1.8.9-2.8.9-1.2 0-2.3-.4-3.2-1.1-.2-.2-.4-.3-.7-.3-.6 0-1 .4-1 1 0 .3.1.6.3.8C4.6 14.4 6.2 15 8 15c1.5 0 3-.5 4.1-1.3.2.1.5.1.7.1 1.1 0 2-.9 2-2s-.9-2.1-2-2.1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports),Ve={props:{name:{type:String,required:!0},label:{type:String,required:!1},help:{type:String,required:!1},checked:{type:Boolean,required:!1,default:!1}},methods:{toggle:function(t){this.$emit("input",!this.checked)}}},Ye=Object(ke.a)(Ve,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"relative flex items-start"},[n("div",{staticClass:"absolute flex items-center h-5"},[n("input",{staticClass:"cursor-pointer form-checkbox h-4 w-4 text-sha-green-600 transition duration-150 ease-in-out",attrs:{id:t.name,type:"checkbox"},domProps:{checked:t.checked},on:{click:t.toggle}})]),t._v(" "),n("div",{staticClass:"pl-7 text-sm leading-5"},[n("label",{staticClass:"font-medium text-gray-700 cursor-pointer",attrs:{for:t.name}},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),t.help?n("p",{staticClass:"text-gray-500"},[t._v("\n "+t._s(t.help)+"\n ")]):t._e(),t._v(" "),t._t("help")],2)])}),[],!1,null,null,null).exports,Ke={props:{type:{type:String,required:!1,default:"button"},label:{type:String,required:!1},full:{type:Boolean,default:!1},disabled:{type:Boolean,required:!1,default:!1},component:{default:"button"},to:{required:!1},loading:{type:Boolean,required:!1,default:!1}}},Ge=Object(ke.a)(Ke,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"w-full inline-flex justify-center rounded-sm border border-transparent px-4 py-2 bg-red-600 text-base leading-6 font-medium text-white shadow-sm hover:bg-red-500 focus:outline-none focus:border-red-700 focus:shadow-outline-red transition ease-in-out duration-150 sm:text-sm sm:leading-5",class:{"cursor-not-allowed":t.loading,"md:w-auto":!t.full},attrs:{to:t.to,type:t.type,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[t.loading?n("pulse",{staticClass:"px-4 py-1"}):n("span",[t._v(t._s(t.label))])],1)}),[],!1,null,null,null).exports,Xe={props:{help:{type:String,required:!1},label:{type:String,required:!1},value:{type:String,required:!1},errors:{type:Array,default:function(){return[]}},name:{type:String,required:!0},type:{type:String,required:!1,default:"text"},placeholder:{type:String,default:"",required:!1},readonly:{type:Boolean,required:!1,default:!1},rows:{type:Number,required:!1,default:3}}},Je=Object(ke.a)(Xe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:{"mb-3":t.help}},[t.label?n("label",{staticClass:"block text-sm font-medium leading-5 text-gray-700",attrs:{for:t.name}},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),t._t("help",[n("small",{staticClass:"text-gray-700"},[t._v("\n "+t._s(t.help)+"\n ")])])],2),t._v(" "),n("div",{staticClass:"mt-1 rounded-md shadow-sm"},[n("input",{ref:"input",class:{"appearance-none block w-full px-3 py-2 border rounded-md focus:outline-none transition duration-150 ease-in-out sm:text-sm sm:leading-5":!0,"border-gray-300 focus:border-blue-300 focus:shadow-outline-blue placeholder-gray-400":0===t.errors.length,"border-red-300 focus:shadow-outline-red focus:border-red-300 placeholder-red-300":t.errors.length>0},attrs:{type:t.type,readonly:t.readonly,placeholder:t.placeholder,name:t.name,id:t.name},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})]),t._v(" "),t.errors.length>0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()])}),[],!1,null,null,null).exports,Ze=n("j5TT"),Qe=(n("p77/"),n("c3yf"),n("AvDn"),{components:{codemirror:Ze.codemirror},props:{value:{type:String,required:!1,default:""}},data:function(){return{options:{theme:"lucario",tabSize:4,line:!1,mode:"shell",lineNumbers:!1,readOnly:!0}}}}),tn=Object(ke.a)(Qe,(function(){var t=this.$createElement;return(this._self._c||t)("codemirror",{attrs:{options:this.options,value:this.value}})}),[],!1,null,null,null).exports;function en(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nn(t){for(var e=1;e0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()])}),[],!1,null,null,null).exports,un={props:{open:{type:Boolean,required:!1,default:!1},confirming:{type:Boolean,required:!1,default:!1},confirmText:{type:String,required:!1,default:"Are you sure you want to perform this action ?"},confirmHeading:{type:String,required:!1,default:"Confirm action"},confirmButton:{type:String,required:!1,default:"Proceed"}}},cn=Object(ke.a)(un,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed bottom-0 inset-x-0 px-4 pb-4 sm:inset-0 sm:flex sm:items-center sm:justify-center"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed inset-0 transition-opacity",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0","x-transition:enter-end":"opacity-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100","x-transition:leave-end":"opacity-0"}},[n("div",{staticClass:"absolute inset-0 bg-gray-500 opacity-75"})]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"bg-white rounded-md overflow-hidden shadow-xl transform transition-all sm:max-w-lg sm:w-full",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","x-transition:enter-end":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave-end":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},[n("div",{staticClass:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},[n("div",{staticClass:"sm:flex sm:items-start"},[n("div",{staticClass:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},[n("svg",{staticClass:"h-6 w-6 text-red-600",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}})])]),t._v(" "),n("div",{staticClass:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},[n("h3",{staticClass:"text-lg leading-6 font-medium text-gray-900"},[t._v("\n "+t._s(t.confirmHeading)+"\n ")]),t._v(" "),n("div",{staticClass:"mt-2"},[n("p",{staticClass:"text-sm leading-5 text-gray-700"},[t._v("\n "+t._s(t.confirmText)+"\n ")])])])])]),t._v(" "),n("div",{staticClass:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},[n("span",{staticClass:"flex w-full rounded-sm shadow-sm sm:ml-3 sm:w-auto"},[n("button",{staticClass:"inline-flex justify-center w-full rounded-sm border border-transparent px-4 py-2 bg-red-600 text-base leading-6 font-medium text-white shadow-sm hover:bg-red-500 focus:outline-none focus:border-red-700 focus:shadow-outline-red transition ease-in-out duration-150 sm:text-sm sm:leading-5",class:{"cursor-not-allowed":t.confirming},attrs:{disabled:t.confirming,type:"button"},on:{click:function(e){return t.$emit("confirm")}}},[t.confirming?n("pulse"):n("span",[t._v(t._s(t.confirmButton))])],1)]),t._v(" "),n("span",{staticClass:"mt-3 flex w-full rounded-sm shadow-sm sm:mt-0 sm:w-auto"},[n("button",{staticClass:"inline-flex justify-center w-full rounded-sm border border-gray-300 px-4 py-2 bg-white text-base leading-6 font-medium text-gray-700 shadow-sm hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline transition ease-in-out duration-150 sm:text-sm sm:leading-5",attrs:{type:"button"},on:{click:function(e){return t.$emit("close")}}},[t._v("\n Cancel\n ")])])])])])}),[],!1,null,null,null).exports;function fn(t){return function(t){if(Array.isArray(t))return hn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},attrs:{rows:t.rows,type:t.type,readonly:t.readonly,placeholder:t.placeholder,name:t.name,id:t.name},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})]),t._v(" "),t.errors.length>0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()])}),[],!1,null,null,null).exports;function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xn={props:{notifications:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{headers:[{label:"Issued",value:"created_at"},{label:"Message",value:"message"},{label:"",value:"actions"}],showLogsModal:!1,selectedAlert:null}},methods:{showLogs:function(t){this.selectedAlert=t,this.showLogsModal=!0},hideLogs:function(){this.selectedAlert=null,this.showLogsModal=!1},deleteNotification:function(t){this.$root.updateServer(t.server_id,function(t){for(var e=1;e0?n("div",{staticClass:"mb-5"},[n("card",{attrs:{table:!0,title:"Server alerts",rowsCount:t.notifications.length}},[n("v-table",{attrs:{rows:t.notifications,headers:t.headers},scopedSlots:t._u([{key:"row",fn:function(e){var r=e.row,i=e.header;return["name"===i.value?n("span",{staticClass:"text-gray-800 text-sm"},[t._v("\n "+t._s(r.name)+"\n ")]):t._e(),t._v(" "),"actions"!==i.value?n("span",{staticClass:"text-gray-800 text-sm capitalize"},[t._v("\n "+t._s(r[i.value])+"\n ")]):t._e(),t._v(" "),"actions"===i.value?n("div",{staticClass:"flex "},[n("button",{staticClass:"border-2 border-gray-500 p-1 rounded hover:bg-gray-100 shadow mr-6",on:{click:function(e){return t.showLogs(r)}}},[n("svg",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",width:"20",height:"20"}},[n("path",{attrs:{d:"M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}})])]),t._v(" "),n("delete-button",{on:{click:function(e){return t.deleteNotification(r)}}})],1):t._e()]}}],null,!1,2158493332)})],1),t._v(" "),n("modal",{attrs:{open:t.showLogsModal}},[t.selectedAlert?n("div",{staticClass:"p-6"},[n("div",[n("h2",{staticClass:"text-lg mb-3 text-gray-800"},[t._v("\n Server alert logs\n ")]),t._v(" "),n("info",{staticClass:"my-5"},[t._v("\n An error occurred when we tried to execute an action on\n your server. Sometimes this means we couldn't SSH into\n your server, or there was a runtime error while\n executing a command. If there is an error output, please\n review it below. If you can't resolve this error from\n your nesabox dashboard, please kindly SSH into your\n server and manually resolve it, or contact us if you\n need any assistance.\n ")]),t._v(" "),n("v-codemirror",{attrs:{value:t.selectedAlert.output}})],1),t._v(" "),n("div",{staticClass:"w-full md:flex md:justify-end"},[n("v-trans-button",{staticClass:"mt-4",attrs:{label:"Close"},on:{click:t.hideLogs}})],1)]):t._e()])],1):t._e()}),[],!1,null,null,null).exports,Cn={data:function(){var t=function(t){return"/account".concat(t?"/":"").concat(t)};return{nav:[{label:"Account",value:"account",to:t("")},{label:"Subscription",value:"subscription",to:t("subscription")},{label:"Teams",value:"teams",to:t("teams")},{label:"SSH keys",value:"sshkeys",to:t("ssh-keys")},{label:"Server providers",value:"server-providers",to:t("server-providers")},{label:"Source control",value:"source-control",to:t("source-control")}],loading:!0}},computed:{active:function(){return this.$route.path}}},kn=Object(ke.a)(Cn,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("sidebar-layout",{attrs:{nav:this.nav,showNav:!0,active:this.active}},[e("template",{slot:"header"},[e("h3",{staticClass:"text-lg mb-3"},[this._v("Your Account")])]),this._v(" "),this._t("content")],2)],1)}),[],!1,null,null,null).exports,Sn={props:{nav:{type:Array,required:!1,default:function(){return[]}},showNav:{required:!1,type:Boolean,default:!1},active:{type:String,required:!1}},computed:{routeName:function(){return this.$route.name}}},Tn=Object(ke.a)(Sn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout",[t._t("header"),t._v(" "),n("div",{staticClass:"w-full flex flex-wrap"},[t.showNav?n("div",{staticClass:"w-full md:w-1/5"},[n("nav",t._l(t.nav,(function(e){return n("router-link",{key:e.value,staticClass:"mt-1 group flex items-center px-3 py-2 text-sm leading-5 font-medium rounded-md focus:outline-none transition ease-in-out duration-150",class:{"bg-gray-200 text-gray-900 hover:text-gray-900":t.active===e.to||e.to.includes("/account/teams")&&"account.team.team-id"===t.routeName,"hover:bg-gray-50 text-gray-700":t.active!==e.to},attrs:{to:e.to}},[["mongodb","mysql","mysql8","mariadb","postgresql"].includes(e.value)?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"}})]):t._e(),t._v(" "),"logs"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-400 group-hover:text-gray-500 group-focus:text-gray-500":t.active!==e.to,"text-gray-600 group-hover:text-gray-700 group-focus:text-gray-700":t.active===e.to},attrs:{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M9 2C8.44772 2 8 2.44772 8 3C8 3.55228 8.44772 4 9 4H11C11.5523 4 12 3.55228 12 3C12 2.44772 11.5523 2 11 2H9Z",fill:"#4A5568"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 5C4 3.89543 4.89543 3 6 3C6 4.65685 7.34315 6 9 6H11C12.6569 6 14 4.65685 14 3C15.1046 3 16 3.89543 16 5V16C16 17.1046 15.1046 18 14 18H6C4.89543 18 4 17.1046 4 16V5ZM7 9C6.44772 9 6 9.44772 6 10C6 10.5523 6.44772 11 7 11H7.01C7.56228 11 8.01 10.5523 8.01 10C8.01 9.44772 7.56228 9 7.01 9H7ZM10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11H13C13.5523 11 14 10.5523 14 10C14 9.44772 13.5523 9 13 9H10ZM7 13C6.44772 13 6 13.4477 6 14C6 14.5523 6.44772 15 7 15H7.01C7.56228 15 8.01 14.5523 8.01 14C8.01 13.4477 7.56228 13 7.01 13H7ZM10 13C9.44772 13 9 13.4477 9 14C9 14.5523 9.44772 15 10 15H13C13.5523 15 14 14.5523 14 14C14 13.4477 13.5523 13 13 13H10Z",fill:"#4A5568"}})]):t._e(),t._v(" "),"sites"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M9 17V7M9 17C9 18.1046 8.10457 19 7 19H5C3.89543 19 3 18.1046 3 17V7C3 5.89543 3.89543 5 5 5H7C8.10457 5 9 5.89543 9 7M9 17C9 18.1046 9.89543 19 11 19H13C14.1046 19 15 18.1046 15 17M9 7C9 5.89543 9.89543 5 11 5H13C14.1046 5 15 5.89543 15 7M15 17V7M15 17C15 18.1046 15.8954 19 17 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H17C15.8954 5 15 5.89543 15 7",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e(),t._v(" "),"teams"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"}})]):t._e(),t._v(" "),"subscription"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})]):t._e(),t._v(" "),"sshkeys"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}})]):t._e(),t._v(" "),"files"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}})]):t._e(),t._v(" "),"settings"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}}),t._v(" "),n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}})]):t._e(),t._v(" "),"source-control"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-7 00 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"}})]):t._e(),t._v(" "),"account"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),n("path",{attrs:{d:"M12 14C8.13401 14 5 17.134 5 21H19C19 17.134 15.866 14 12 14Z",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e(),t._v(" "),"server-providers"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8 16C5.23858 16 3 13.7614 3 11C3 8.55154 4.75992 6.51413 7.08376 6.08376C7.51412 3.75992 9.55154 2 12 2C14.4485 2 16.4859 3.75992 16.9162 6.08376C19.2401 6.51413 21 8.55154 21 11C21 13.7614 18.7614 16 16 16M9 19L12 22M12 22L15 19M12 22V10",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e(),t._v(" "),"databases"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"}})]):t._e(),t._v(" "),"ssl"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}})]):t._e(),t._v(" "),"scheduler"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}})]):t._e(),t._v(" "),"meta"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"}})]):t._e(),t._v(" "),"network"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}})]):t._e(),t._v(" "),n("span",{staticClass:"capitalize truncate"},[t._v(t._s(e.label))])])})),1)]):t._e(),t._v(" "),n("div",{staticClass:"w-full md:pl-6",class:{"md:w-4/5":t.showNav}},[t._t("default")],2)])],2)}),[],!1,null,null,null).exports,On={props:{type:{type:String,required:!1,default:"button"},label:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}}},An=Object(ke.a)(On,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"w-full md:w-auto py-2 px-4 border border-gray-300 rounded-sm text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-50 active:text-gray-800 transition duration-150 ease-in-out",attrs:{type:t.type,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[t._v("\n "+t._s(t.label)+"\n")])}),[],!1,null,null,null).exports,Ln={},En=Object(ke.a)(Ln,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"border-2 border-red-500 p-1 rounded hover:bg-red-100 shadow",attrs:{type:"button"},on:{click:function(e){return t.$emit("click")}}},[n("svg",{staticClass:"cursor-pointer",attrs:{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M10 14L12 12M12 12L14 10M12 12L10 10M12 12L14 14M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#f05252","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])}),[],!1,null,null,null).exports;function Mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pn(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"success",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;this.flash={type:n,message:t},setTimeout((function(){e.flash={message:"",type:""}}),r)},fetchSite:function(t,e){var n=this;axios.get("/api/servers/".concat(t,"/sites/").concat(e)).then((function(t){var r=t.data;n.sites=Pn({},n.sites,Nn({},e,r))}))},updateServer:function(t,e){this.servers=Pn({},this.servers,Nn({},t,e));var n=this.allServers.servers.map((function(n){return n.id!==t?n:e})),r=this.allServers.team_servers.map((function(n){return n.id!==t?n:e}));this.allServers={servers:n,team_servers:r}},fetchServer:function(t){var e=this;axios.get("/api/servers/".concat(t)).then((function(n){var r=n.data;e.updateServer(t,r)}))}},mounted:function(){this.auth}})},"9+H4":function(t,e,n){"use strict";var r=n("e/T+");n.n(r).a},"9rSQ":function(t,e,n){"use strict";var r=n("xTJ+");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},AvDn:function(t,e,n){!function(t){"use strict";t.defineMode("shell",(function(){var e={};function n(t,n){for(var r=0;r1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=a(n,"("==n?"quote":"{"==n?"def":"string"),c(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function c(t,e){return(e.tokens[0]||s)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return c(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")}(n("VrN/"))},B3JZ:function(t,e,n){"use strict";var r=n("Ebme");n.n(r).a},CgaS:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("MLWZ"),o=n("9rSQ"),s=n("UnBK"),a=n("SntB");function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=l},DfZB:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},Ebme:function(t,e,n){var r=n("zFnv");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"Ge+w":function(t,e){},H7XF:function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),s=r[0],a=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;sa?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},HSsa:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var _=/-(\w)/g,C=x((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),k=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,T=x((function(t){return t.replace(S,"-$1").toLowerCase()})),O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function L(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,Z=G&&G.indexOf("edge/")>0,Q=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===K),tt=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(V)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===z&&(z=!V&&!Y&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),z},ot=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,lt="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=M,ct=0,ft=function(){this.id=ct++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){y(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!w(i,"default"))s=!1;else if(""===s||s===T(t)){var l=Ut(String,i.type);(l<0||a0&&(ce((l=t(l,(n||"")+"_"+r))[0])&&ce(c)&&(f[u]=yt(c.text+l[0].text),l.shift()),f.push.apply(f,l)):a(l)?ce(c)?f[u]=yt(c.text+l):""!==l&&f.push(yt(l)):ce(l)&&ce(c)?f[u]=yt(c.text+l.text):(s(e._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),f.push(l)));return f}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=lt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ve(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),F(i,"$stable",s),F(i,"$key",a),F(i,"$hasNormal",o),i}function ve(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ge(t,e){var n,r,i,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return un.now()})}function cn(){var t,e;for(an=ln(),on=!0,tn.sort((function(t,e){return t.id-e.id})),sn=0;snsn&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},hn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ft(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:M,set:M};function dn(t,e,n){pn.get=function(){return this[e][n]},pn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,pn)}var vn={lazy:!0};function mn(t,e,n){var r=!it();"function"==typeof n?(pn.get=r?gn(e):yn(n),pn.set=M):(pn.get=n.get?r&&!1!==n.cache?gn(e):yn(n.get):M,pn.set=n.set||M),Object.defineProperty(t,e,pn)}function gn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yn(t){return function(){return t.call(this,this)}}function bn(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var wn=0;function xn(t){var e=t.options;if(t.super){var n=xn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&L(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function _n(t){this._init(t)}function Cn(t){return t&&(t.Ctor.options.name||t.tag)}function kn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===u.call(n)&&t.test(e));var n}function Sn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var s=n[o];if(s){var a=Cn(s.componentOptions);a&&!e(a)&&Tn(n,o,r,i)}}}function Tn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=wn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(xn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ke(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=he(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;Ot(t,"$attrs",o&&o.attrs||r,null,!0),Ot(t,"$listeners",e._parentListeners||r,null,!0)}(e),Qe(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&kt(!1);var o=function(o){i.push(o);var s=It(o,e,n,t);Ot(r,o,s),o in t||dn(t,"_props",o)};for(var s in e)o(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?M:O(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Ft(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var s=r[o];i&&w(i,s)||(void 0,36!==(n=(s+"").charCodeAt(0))&&95!==n&&dn(t,"_data",s))}Tt(e,!0)}(t):Tt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],s="function"==typeof o?o:o.get;r||(n[i]=new hn(t,s||M,M,vn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i1?A(e):e;for(var n=A(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;iparseInt(this.max)&&Tn(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:L,mergeOptions:Dt,defineReactive:Ot},t.set=At,t.delete=Lt,t.nextTick=ee,t.observable=function(t){return Tt(t),t},t.options=Object.create(null),I.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,An),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Dt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)dn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)mn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,I.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=L({},s.options),i[r]=s,s}}(t),function(t){I.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(_n),Object.defineProperty(_n.prototype,"$isServer",{get:it}),Object.defineProperty(_n.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_n,"FunctionalRenderContext",{value:Pe}),_n.version="2.6.11";var Ln=v("style,class"),En=v("input,textarea,option,select,progress"),Mn=function(t,e,n){return"value"===n&&En(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Pn=v("contenteditable,draggable,spellcheck"),Nn=v("events,caret,typing,plaintext-only"),jn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Dn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$n=function(t){return Dn(t)?t.slice(6,t.length):""},In=function(t){return null==t||!1===t};function Bn(t,e){return{staticClass:Hn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Hn(t,e){return t?e?t+" "+e:t:e||""}function Un(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?hr(t,e,n):jn(e)?In(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Pn(e)?t.setAttribute(e,function(t,e){return In(e)||"false"===e?"false":"contenteditable"===t&&Nn(e)?e:"true"}(e,n)):Dn(e)?In(n)?t.removeAttributeNS(Rn,$n(e)):t.setAttributeNS(Rn,e,n):hr(t,e,n)}function hr(t,e,n){if(In(n))t.removeAttribute(e);else{if(X&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var pr={create:cr,update:cr};function dr(t,e){var n=e.elm,r=e.data,s=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Bn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Bn(e,n.data));return function(t,e){return o(t)||o(e)?Hn(t,Un(e)):""}(e.staticClass,e.class)}(e),l=n._transitionClasses;o(l)&&(a=Hn(a,Un(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var vr,mr,gr,yr,br,wr,xr={create:dr,update:dr},_r=/[\w).+\-_$\]]/;function Cr(t){var e,n,r,i,o,s=!1,a=!1,l=!1,u=!1,c=0,f=0,h=0,p=0;for(r=0;r=0&&" "===(v=t.charAt(d));d--);v&&_r.test(v)||(u=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:t.slice(0,yr),key:'"'+t.slice(yr+1)+'"'}:{exp:t,key:null};for(mr=t,yr=br=wr=0;!Hr();)Ur(gr=Br())?zr(gr):91===gr&&Fr(gr);return{exp:t.slice(0,br),key:t.slice(br+1,wr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Br(){return mr.charCodeAt(++yr)}function Hr(){return yr>=vr}function Ur(t){return 34===t||39===t}function Fr(t){var e=1;for(br=yr;!Hr();)if(Ur(t=Br()))zr(t);else if(91===t&&e++,93===t&&e--,0===e){wr=yr;break}}function zr(t){for(var e=t;!Hr()&&(t=Br())!==e;);}var Wr,qr="__r";function Vr(t,e,n){var r=Wr;return function i(){null!==e.apply(null,arguments)&&Gr(t,i,n,r)}}var Yr=Yt&&!(tt&&Number(tt[1])<=53);function Kr(t,e,n,r){if(Yr){var i=an,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Wr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Gr(t,e,n,r){(r||Wr).removeEventListener(t,e._wrapper||e,n)}function Xr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Wr=e.elm,function(t){if(o(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),se(n,r,Kr,Gr,Vr,e.context),Wr=void 0}}var Jr,Zr={create:Xr,update:Xr};function Qr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,s=e.elm,a=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=L({},l)),a)n in l||(s[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=r;var u=i(r)?"":String(r);ti(s,u)&&(s.value=u)}else if("innerHTML"===n&&Wn(s.tagName)&&i(s.innerHTML)){(Jr=Jr||document.createElement("div")).innerHTML=""+r+"";for(var c=Jr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}else if(r!==a[n])try{s[n]=r}catch(t){}}}}function ti(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return d(n)!==d(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ei={create:Qr,update:Qr},ni=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function ri(t){var e=ii(t.style);return t.staticStyle?L(t.staticStyle,e):e}function ii(t){return Array.isArray(t)?E(t):"string"==typeof t?ni(t):t}var oi,si=/^--/,ai=/\s*!important$/,li=function(t,e,n){if(si.test(e))t.style.setProperty(e,n);else if(ai.test(n))t.style.setProperty(T(e),n.replace(ai,""),"important");else{var r=ci(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(pi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function vi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(pi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function mi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&L(e,gi(t.name||"v")),L(e,t),e}return"string"==typeof t?gi(t):void 0}}var gi=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),yi=V&&!J,bi="transition",wi="animation",xi="transition",_i="transitionend",Ci="animation",ki="animationend";yi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xi="WebkitTransition",_i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",ki="webkitAnimationEnd"));var Si=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ti(t){Si((function(){Si(t)}))}function Oi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),di(t,e))}function Ai(t,e){t._transitionClasses&&y(t._transitionClasses,e),vi(t,e)}function Li(t,e,n){var r=Mi(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===bi?_i:ki,l=0,u=function(){t.removeEventListener(a,c),n()},c=function(e){e.target===t&&++l>=s&&u()};setTimeout((function(){l0&&(n=bi,c=s,f=o.length):e===wi?u>0&&(n=wi,c=u,f=l.length):f=(n=(c=Math.max(s,u))>0?s>u?bi:wi:null)?n===bi?o.length:l.length:0,{type:n,timeout:c,propCount:f,hasTransform:n===bi&&Ei.test(r[xi+"Property"])}}function Pi(t,e){for(;t.length1}function Ii(t,e){!0!==e.data.show&&ji(e)}var Bi=function(t){var e,n,r={},l=t.modules,u=t.nodeOps;for(e=0;ed?b(t,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&x(e,h,d)}(h,v,g,n,c):o(g)?(o(t.text)&&u.setTextContent(h,""),b(h,null,g,0,g.length-1,n)):o(v)?x(v,0,v.length-1):o(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),o(d)&&o(p=d.hook)&&o(p=p.postpatch)&&p(t,e)}}}function S(t,e,n){if(s(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,s.selected!==o&&(s.selected=o);else if(j(Wi(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function zi(t,e){return e.every((function(e){return!j(e,t)}))}function Wi(t){return"_value"in t?t._value:t.value}function qi(t){t.target.composing=!0}function Vi(t){t.target.composing&&(t.target.composing=!1,Yi(t.target,"input"))}function Yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ki(t){return!t.componentInstance||t.data&&t.data.transition?t:Ki(t.componentInstance._vnode)}var Gi={model:Hi,show:{bind:function(t,e,n){var r=e.value,i=(n=Ki(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ji(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Ki(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){t.style.display=t.__vOriginalDisplay})):Ri(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Xi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ji(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ji(We(e.children)):t}function Zi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[C(o)]=i[o];return e}function Qi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var to=function(t){return t.tag||ze(t)},eo=function(t){return"show"===t.name},no={name:"transition",props:Xi,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(to)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ji(i);if(!o)return i;if(this._leaving)return Qi(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=Zi(this),u=this._vnode,c=Ji(u);if(o.data.directives&&o.data.directives.some(eo)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!ze(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=L({},l);if("out-in"===r)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Qi(t,i);if("in-out"===r){if(ze(o))return u;var h,p=function(){h()};ae(l,"afterEnter",p),ae(l,"enterCancelled",p),ae(f,"delayLeave",(function(t){h=t}))}}return i}}},ro=L({tag:String,moveClass:String},Xi);function io(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function oo(t){t.data.newPos=t.elm.getBoundingClientRect()}function so(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var ao={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=Zi(this),a=0;a-1?Yn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Yn[t]=/HTMLUnknownElement/.test(e.toString())},L(_n.options.directives,Gi),L(_n.options.components,ao),_n.prototype.__patch__=V?Bi:M,_n.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),Qe(t,"beforeMount"),r=function(){t._update(t._render(),n)},new hn(t,r,M,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Qe(t,"mounted")),t}(this,t=t&&V?Gn(t):void 0,e)},V&&setTimeout((function(){H.devtools&&ot&&ot.emit("init",_n)}),0);var lo,uo=/\{\{((?:.|\r?\n)+?)\}\}/g,co=/[-.*+?^${}()|[\]\/\\]/g,fo=x((function(t){var e=t[0].replace(co,"\\$&"),n=t[1].replace(co,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),ho={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=jr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Nr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},po={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=jr(t,"style");n&&(t.staticStyle=JSON.stringify(ni(n)));var r=Nr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},vo=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mo=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wo="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",xo="((?:"+wo+"\\:)?"+wo+")",_o=new RegExp("^<"+xo),Co=/^\s*(\/?)>/,ko=new RegExp("^<\\/"+xo+"[^>]*>"),So=/^]+>/i,To=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mo=/&(?:lt|gt|quot|amp|#39);/g,Po=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,No=v("pre,textarea",!0),jo=function(t,e){return t&&No(t)&&"\n"===e[0]};function Ro(t,e){var n=e?Po:Mo;return t.replace(n,(function(t){return Eo[t]}))}var Do,$o,Io,Bo,Ho,Uo,Fo,zo,Wo=/^@|^v-on:/,qo=/^v-|^@|^:|^#/,Vo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ko=/^\(|\)$/g,Go=/^\[.*\]$/,Xo=/:(.*)$/,Jo=/^:|^\.|^v-bind:/,Zo=/\.[^.\]]+(?=[^\]]*$)/g,Qo=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,ns=x((function(t){return(lo=lo||document.createElement("div")).innerHTML=t,lo.textContent})),rs="_empty_";function is(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:cs(e),rawAttrsMap:{},parent:n,children:[]}}function os(t,e){var n,r;(r=Nr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Nr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=jr(t,"scope"),t.slotScope=e||jr(t,"slot-scope")):(e=jr(t,"slot-scope"))&&(t.slotScope=e);var n=Nr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Ar(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Rr(t,Qo);if(r){var i=ls(r),o=i.name,s=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=s,t.slotScope=r.value||rs}}else{var a=Rr(t,Qo);if(a){var l=t.scopedSlots||(t.scopedSlots={}),u=ls(a),c=u.name,f=u.dynamic,h=l[c]=is("template",[],t);h.slotTarget=c,h.slotTargetDynamic=f,h.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=h,!0})),h.slotScope=a.value||rs,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Nr(t,"name"))}(t),function(t){var e;(e=Nr(t,"is"))&&(t.component=e),null!=jr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Pr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+s+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ir(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ir(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ir(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===s)!function(t,e,n){var r=n&&n.number,i=Nr(t,"value")||"null";Or(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Pr(t,"change",Ir(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,s=i.number,a=i.trim,l=!o&&"range"!==r,u=o?"change":"range"===r?qr:"input",c="$event.target.value";a&&(c="$event.target.value.trim()"),s&&(c="_n("+c+")");var f=Ir(e,c);l&&(f="if($event.target.composing)return;"+f),Or(t,"value","("+e+")"),Pr(t,u,f,null,!0),(a||s)&&Pr(t,"blur","$forceUpdate()")}(t,r,i);else if(!H.isReservedTag(o))return $r(t,r,i),!1;return!0},text:function(t,e){e.value&&Or(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Or(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:vo,mustUseProp:Mn,canBeLeftOpenTag:mo,isReservedTag:qn,getTagNamespace:Vn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ms)},ys=x((function(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ws=/\([^)]*?\);*$/,xs=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_s={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Cs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ks=function(t){return"if("+t+")return null;"},Ss={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function Ts(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var s=Os(t[o]);t[o]&&t[o].dynamic?i+=o+","+s+",":r+='"'+o+'":'+s+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Os(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Os(t)})).join(",")+"]";var e=xs.test(t.value),n=bs.test(t.value),r=xs.test(t.value.replace(ws,""));if(t.modifiers){var i="",o="",s=[];for(var a in t.modifiers)if(Ss[a])o+=Ss[a],_s[a]&&s.push(a);else if("exact"===a){var l=t.modifiers;o+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(As).join("&&")+")return null;"}(s)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function As(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=_s[t],r=Cs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ls={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:M},Es=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=Tr(t.modules,"transformCode"),this.dataGenFns=Tr(t.modules,"genData"),this.directives=L(L({},Ls),t.directives);var e=t.isReservedTag||P;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ms(t,e){var n=new Es(e);return{render:"with(this){return "+(t?Ps(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ps(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ns(t,e);if(t.once&&!t.onceProcessed)return js(t,e);if(t.for&&!t.forProcessed)return Ds(t,e);if(t.if&&!t.ifProcessed)return Rs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Hs(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?zs((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:C(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!o&&!s||r||(i+=",null"),o&&(i+=","+o),s&&(i+=(o?"":",null")+","+s),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Hs(e,n,!0);return"_c("+t+","+$s(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=$s(t,e));var i=t.inlineTemplate?null:Hs(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Ms(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+zs(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Is(t){return 1===t.type&&("slot"===t.tag||t.children.some(Is))}function Bs(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Rs(t,e,Bs,"null");if(t.for&&!t.forProcessed)return Ds(t,e,Bs);var r=t.slotScope===rs?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ps(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Hs(t,e,n,r,i){var o=t.children;if(o.length){var s=o[0];if(1===o.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?e.maybeComponent(s)?",1":",0":"";return""+(r||Ps)(s,e)+a}var l=n?function(t,e){for(var n=0,r=0;r]*>)","i")),h=t.replace(f,(function(t,n,r){return u=r.length,Ao(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),jo(c,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-h.length,t=h,T(c,l-u,l)}else{var p=t.indexOf("<");if(0===p){if(To.test(t)){var d=t.indexOf("--\x3e");if(d>=0){e.shouldKeepComment&&e.comment(t.substring(4,d),l,l+d+3),C(d+3);continue}}if(Oo.test(t)){var v=t.indexOf("]>");if(v>=0){C(v+2);continue}}var m=t.match(So);if(m){C(m[0].length);continue}var g=t.match(ko);if(g){var y=l;C(g[0].length),T(g[1],y,l);continue}var b=k();if(b){S(b),jo(b.tagName,t)&&C(1);continue}}var w=void 0,x=void 0,_=void 0;if(p>=0){for(x=t.slice(p);!(ko.test(x)||_o.test(x)||To.test(x)||Oo.test(x)||(_=x.indexOf("<",1))<0);)p+=_,x=t.slice(p);w=t.substring(0,p)}p<0&&(w=t),w&&C(w.length),e.chars&&w&&e.chars(w,l-w.length,l)}if(t===n){e.chars&&e.chars(t);break}}function C(e){l+=e,t=t.substring(e)}function k(){var e=t.match(_o);if(e){var n,r,i={tagName:e[1],attrs:[],start:l};for(C(e[0].length);!(n=t.match(Co))&&(r=t.match(bo)||t.match(yo));)r.start=l,C(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=l,i}}function S(t){var n=t.tagName,l=t.unarySlash;o&&("p"===r&&go(n)&&T(r),a(n)&&r===n&&T(n));for(var u=s(n)||!!l,c=t.attrs.length,f=new Array(c),h=0;h=0&&i[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=i.length-1;u>=s;u--)e.end&&e.end(i[u].tag,n,o);i.length=s,r=s&&i[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,n,o):"p"===a&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}T()}(t,{warn:Do,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,s,c,f){var h=r&&r.ns||zo(t);X&&"svg"===h&&(o=function(t){for(var e=[],n=0;nl&&(a.push(o=t.slice(l,i)),s.push(JSON.stringify(o)));var u=Cr(r[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),l=i+r[0].length}return l':'
',Ks.innerHTML.indexOf(" ")>0}var Zs=!!V&&Js(!1),Qs=!!V&&Js(!0),ta=x((function(t){var e=Gn(t);return e&&e.innerHTML})),ea=_n.prototype.$mount;_n.prototype.$mount=function(t,e){if((t=t&&Gn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ta(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=Xs(r,{outputSourceRange:!1,shouldDecodeNewlines:Zs,shouldDecodeNewlinesForHref:Qs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,s=i.staticRenderFns;n.render=o,n.staticRenderFns=s}}return ea.call(this,t,e)},_n.compile=Xs,t.exports=_n}).call(this,n("yLpj"),n("URgk").setImmediate)},JEQr:function(t,e,n){"use strict";(function(e){var r=n("xTJ+"),i=n("yK9s"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(a=n("tQ2B")),a),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(o)})),t.exports=l}).call(this,n("8oxB"))},"KHd+":function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},LYNF:function(t,e,n){"use strict";var r=n("OH9c");t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},Lmem:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},MLWZ:function(t,e,n){"use strict";var r=n("xTJ+");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},OH9c:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},OTTw:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"Rn+g":function(t,e,n){"use strict";var r=n("LYNF");t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},SntB:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):void 0!==e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):void 0!==t[i]&&(n[i]=t[i])})),r.forEach(s,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var a=i.concat(o).concat(s),l=Object.keys(e).filter((function(t){return-1===a.indexOf(t)}));return r.forEach(l,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},UnBK:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("xAGQ"),o=n("Lmem"),s=n("JEQr");function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"VrN/":function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=r||i||o,a=s&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),d=/PhantomJS/.test(t),v=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),m=/Android/.test(t),g=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=v||/Mac/.test(e),b=/\bCrOS\b/.test(t),w=/win/i.test(e),x=f&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,l=!0);var _=y&&(u||f&&(null==x||x<12.11)),C=n||s&&a>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var S,T=function(t,e){var n=t.className,r=k(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return O(t).appendChild(e)}function L(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}v?R=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(R=function(t){try{t.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function H(t,e){for(var n=0;n=e)return r+Math.min(s,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var V=[""];function Y(t){for(;V.length<=t;)V.push(K(V)+" ");return V[t]}function K(t){return t[t.length-1]}function G(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||Z.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&Q(t))||e.test(t):Q(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&nt.test(t)}function it(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var st=null;function at(t,e,n){var r;st=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:st=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:st=i)}return null!=r?r:st}var lt=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(s,a){var l="ltr"==a?"L":"R";if(0==s.length||"ltr"==a&&!t.test(s))return!1;for(var u,c=s.length,f=[],h=0;h-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function dt(t,e){var n=ht(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function yt(t){t.prototype.on=function(t,e){ft(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function bt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function wt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function _t(t){bt(t),wt(t)}function Ct(t){return t.target||t.srcElement}function kt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var St,Tt,Ot=function(){if(s&&a<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}();function At(t){if(null==St){var e=L("span","​");A(t,L("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(St=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=St?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Lt(t){if(null!=Tt)return Tt;var e=A(t,document.createTextNode("AخA")),n=S(e,0,1).getBoundingClientRect(),r=S(e,1,2).getBoundingClientRect();return O(t),!(!n||n.left==n.right)&&(Tt=r.right-n.right<3)}var Et,Mt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Pt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Nt="oncopy"in(Et=L("div"))||(Et.setAttribute("oncopy","return;"),"function"==typeof Et.oncopy),jt=null,Rt={},Dt={};function $t(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Rt[t]=e}function It(t){if("string"==typeof t&&Dt.hasOwnProperty(t))t=Dt[t];else if(t&&"string"==typeof t.name&&Dt.hasOwnProperty(t.name)){var e=Dt[t.name];"string"==typeof e&&(e={name:e}),(t=J(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return It("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return It("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Bt(t,e){e=It(e);var n=Rt[e.name];if(!n)return Bt(t,"text/plain");var r=n(t,e);if(Ht.hasOwnProperty(e.name)){var i=Ht[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)r[s]=e.modeProps[s];return r}var Ht={};function Ut(t,e){$(e,Ht.hasOwnProperty(t)?Ht[t]:Ht[t]={})}function Ft(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function zt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Wt(t,e,n){return!t.startState||t.startState(e,n)}var qt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Vt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e=t.first&&en?te(n,Vt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?te(t.line,e):n<0?te(t.line,0):t}(e,Vt(t,e.line).text.length)}function le(t,e){for(var n=[],r=0;r=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pose},qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},qt.prototype.backUp=function(t){this.pos-=t},qt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},qt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ue=function(t,e){this.state=t,this.lookAhead=e},ce=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function fe(t,e,n,r){var i=[t.state.modeGen],o={};we(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var s=n.state,a=function(r){n.baseTokens=i;var a=t.state.overlays[r],l=1,u=0;n.state=!0,we(t,e.text,a.mode,n,(function(t,e){for(var n=l;ut&&i.splice(l,1,t,i[l+1],r),l+=2,u=Math.min(t,r)}if(e)if(a.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Ft(t.doc.mode,r.state),o=fe(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function pe(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new ce(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=Vt(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof ue?u.lookAhead:0)<=o.modeFrontier))return a;var c=I(l.text,null,t.options.tabSize);(null==i||r>c)&&(i=a-1,r=c)}return i}(t,e,n),s=o>r.first&&Vt(r,o-1).stateAfter,a=s?ce.fromSaved(r,s,o):new ce(r,Wt(r.mode),o);return r.iter(o,e,(function(n){de(t,n.text,a);var r=a.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ce.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ce.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ce.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ce.fromSaved=function(t,e,n){return e instanceof ue?new ce(t,Ft(t.mode,e.state),n,e.lookAhead):new ce(t,Ft(t.mode,e),n)},ce.prototype.save=function(t){var e=!1!==t?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function ye(t,e,n,r){var i,o,s=t.doc,a=s.mode,l=Vt(s,(e=ae(s,e)).line),u=pe(t,e.line,n),c=new qt(l.text,t.options.tabSize,u);for(r&&(o=[]);(r||c.post.options.maxHighlightLength?(a=!1,s&&de(t,e,r,f.pos),f.pos=e.length,l=null):l=be(me(n,f,r.state,h),o),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!a||c!=l){for(;u=e:o.to>e);(r||(r=[])).push(new Ce(s,o.from,a?null:o.to))}}return r}(n,i,s),l=function(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from0&&a)for(var b=0;be)&&(!n||Pe(n,o.marker)<0)&&(n=o.marker)}return n}function $e(t,e,n,r,i){var o=Vt(t,e),s=_e&&o.markedSpans;if(s)for(var a=0;a=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ee(u.to,n)>=0:ee(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ee(u.from,r)<=0:ee(u.from,r)<0)))return!0}}}function Ie(t){for(var e;e=je(t);)t=e.find(-1,!0).line;return t}function Be(t,e){var n=Vt(t,e),r=Ie(n);return n==r?e:Xt(r)}function He(t,e){if(e>t.lastLine())return e;var n,r=Vt(t,e);if(!Ue(t,r))return e;for(;n=Re(r);)r=n.find(1,!0).line;return Xt(r)+1}function Ue(t,e){var n=_e&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ve=function(t,e,n){this.text=t,Le(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Ae(t)}Ve.prototype.lineNo=function(){return Xt(this)},yt(Ve);var Ke={},Ge={};function Xe(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Ge:Ke;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Je(t,e){var n=E("span",null,null,l?"padding-right: .1px":null),r={pre:E("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,s=void 0;r.pos=0,r.addToken=Qe,Lt(t.display.measure)&&(s=ut(o,t.doc.direction))&&(r.addToken=tn(r.addToken,s)),r.map=[],nn(o,r,he(t,o,e!=t.display.externalMeasured&&Xt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(At(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return dt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function Ze(t){var e=L("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Qe(t,e,n,r,i,o,l){if(e){var u,c=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;iu&&f.from<=u);h++);if(f.to>=c)return t(n,r,i,o,s,a,l);t(n,r.slice(0,f.to-u),i,o,null,a,l),o=null,r=r.slice(f.to-u),u=f.to}}}function en(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var s,a,l,u,c,f,h,p=i.length,d=0,v=1,m="",g=0;;){if(g==d){l=u=c=a="",h=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wd||_.collapsed&&x.to==d&&x.from==d)){if(null!=x.to&&x.to!=d&&g>x.to&&(g=x.to,u=""),_.className&&(l+=" "+_.className),_.css&&(a=(a?a+";":"")+_.css),_.startStyle&&x.from==d&&(c+=" "+_.startStyle),_.endStyle&&x.to==g&&(b||(b=[])).push(_.endStyle,x.to),_.title&&((h||(h={})).title=_.title),_.attributes)for(var C in _.attributes)(h||(h={}))[C]=_.attributes[C];_.collapsed&&(!f||Pe(f.marker,_)<0)&&(f=x)}else x.from>d&&g>x.from&&(g=x.from)}if(b)for(var k=0;k=p)break;for(var T=Math.min(p,g);;){if(m){var O=d+m.length;if(!f){var A=O>T?m.slice(0,T-d):m;e.addToken(e,A,s?s+l:l,c,d+A.length==g?u:"",a,h)}if(O>=T){m=m.slice(T-d),d=T;break}d=O,c=""}m=i.slice(o,o=n[v++]),s=Xe(n[v++],e.cm.options)}}else for(var L=1;Ln)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function En(t,e,n,r){return Nn(t,Pn(t,e),n,r)}function Mn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Dn(e.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;u&&rt(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var p;u>0&&(f=r="right"),i=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!i||!i.left&&!i.right)){var d=l.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+ir(t.display),top:d.top,bottom:d.bottom}:Rn}for(var v=i.top-e.rect.top,m=i.bottom-e.rect.top,g=(v+m)/2,y=e.view.measure.heights,b=0;be)&&(i=(o=l-a)-1,e>=l&&(s="right")),null!=i){if(r=t[u+2],a==l&&n==(r.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)r=t[2+(u-=3)],s="left";if("right"==n&&i==l-a)for(;u=0&&(n=t[i]).left==n.right;i--);return n}function In(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!a)return s("before"==u?l-1:l,"before"==u);function c(t,e,n){return s(n?t-1:t,1==a[e].level!=n)}var f=at(a,l,u),h=st,p=c(l,f,"before"==u);return null!=h&&(p.other=c(l,h,"before"!=u)),p}function Kn(t,e){var n=0;e=ae(t.doc,e),t.options.lineWrapping||(n=ir(t.display)*e.ch);var r=Vt(t.doc,e.line),i=ze(r)+Cn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Gn(t,e,n,r,i){var o=te(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Xn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Gn(r.first,0,null,-1,-1);var i=Jt(r,n),o=r.first+r.size-1;if(i>o)return Gn(r.first+r.size-1,Vt(r,o).text.length,null,1,1);e<0&&(e=0);for(var s=Vt(r,i);;){var a=tr(t,s,i,e,n),l=De(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==i)return u;s=Vt(r,i=u.line)}}function Jn(t,e,n,r){r-=zn(e);var i=e.text.length,o=ot((function(e){return Nn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=ot((function(e){return Nn(t,n,e).top>r}),o,i)}}function Zn(t,e,n,r){return n||(n=Pn(t,e)),Jn(t,e,n,Wn(t,e,Nn(t,n,r),"line").top)}function Qn(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function tr(t,e,n,r,i){i-=ze(e);var o=Pn(t,e),s=zn(e),a=0,l=e.text.length,u=!0,c=ut(e,t.doc.direction);if(c){var f=(t.options.lineWrapping?nr:er)(t,e,n,o,c,r,i);a=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var h,p,d=null,v=null,m=ot((function(e){var n=Nn(t,o,e);return n.top+=s,n.bottom+=s,!!Qn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=e,v=n),!0)}),a,l),g=!1;if(v){var y=r-v.left=w.bottom?1:0}return Gn(n,m=it(e.text,m,1),p,g,r-h)}function er(t,e,n,r,i,o,s){var a=ot((function(a){var l=i[a],u=1!=l.level;return Qn(Yn(t,te(n,u?l.to:l.from,u?"before":"after"),"line",e,r),o,s,!0)}),0,i.length-1),l=i[a];if(a>0){var u=1!=l.level,c=Yn(t,te(n,u?l.from:l.to,u?"after":"before"),"line",e,r);Qn(c,o,s,!0)&&c.top>s&&(l=i[a-1])}return l}function nr(t,e,n,r,i,o,s){var a=Jn(t,e,r,s),l=a.begin,u=a.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||p.to<=l)){var d=Nn(t,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,v=dv)&&(c=p,f=v)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function rr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==jn){jn=L("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)jn.appendChild(document.createTextNode("x")),jn.appendChild(L("br"));jn.appendChild(document.createTextNode("x"))}A(t.measure,jn);var n=jn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),O(t.measure),n||1}function ir(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=L("span","xxxxxxxxxx"),n=L("pre",[e],"CodeMirror-line-like");A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function or(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=t.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:sr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function sr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ar(t){var e=rr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/ir(t.display)-3);return function(i){if(Ue(t.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s0&&(l=Vt(t.doc,u.line).text).length==u.ch){var c=I(l,l.length,t.options.tabSize)-l.length;u=te(u.line,Math.max(0,Math.round((o-Sn(t.display).left)/ir(t.display))-c))}return u}function cr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)_e&&Be(t.doc,e)i.viewFrom?pr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)pr(t);else if(e<=i.viewFrom){var o=dr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(t)}else if(n>=i.viewTo){var s=dr(t,e,e,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):pr(t)}else{var a=dr(t,e,e,-1),l=dr(t,n,n+r,1);a&&l?(i.view=i.view.slice(0,a.index).concat(on(t,a.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):pr(t)}var u=i.externalMeasured;u&&(n=i.lineN&&e=r.viewTo)){var o=r.view[cr(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==H(s,n)&&s.push(n)}}}function pr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function dr(t,e,n,r){var i,o=cr(t,e),s=t.display.view;if(!_e||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l0){if(o==s.length-1)return null;i=a+s[o].size-e,o++}else i=a-e;e+=i,n+=i}for(;Be(t.doc,n)!=n;){if(o==(r<0?0:s.length-1))return null;n+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||a.to().linee||e==n&&s.to==e)&&(r(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(v,n||0,null==r?h:r,(function(t,e,i,f){var m="ltr"==i,g=p(t,m?"left":"right"),y=p(e-1,m?"right":"left"),b=null==n&&0==t,w=null==r&&e==h,x=0==f,_=!v||f==v.length-1;if(y.top-g.top<=3){var C=(u?w:b)&&_,k=(u?b:w)&&x?a:(m?g:y).left,S=C?l:(m?y:g).right;c(k,g.top,S-k,g.bottom)}else{var T,O,A,L;m?(T=u&&b&&x?a:g.left,O=u?l:d(t,i,"before"),A=u?a:d(e,i,"after"),L=u&&w&&_?l:y.right):(T=u?d(t,i,"before"):a,O=!u&&b&&x?l:g.right,A=!u&&w&&_?a:y.left,L=u?d(e,i,"after"):l),c(T,g.top,O-T,g.bottom),g.bottom0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function _r(t){t.state.focused||(t.display.input.focus(),kr(t))}function Cr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Sr(t))}),100)}function kr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(dt(t,"focus",t,e),t.state.focused=!0,N(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xr(t))}function Sr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(dt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Tr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||h<-.005)&&(Gt(i.line,l),Or(i.line),i.rest))for(var p=0;pt.display.sizerWidth){var d=Math.ceil(u/ir(t.display));d>t.display.maxLineLength&&(t.display.maxLineLength=d,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Or(t){if(t.widgets)for(var e=0;e=s&&(o=Jt(e,ze(Vt(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function Lr(t,e){var n=t.display,r=rr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=An(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+kn(n),l=e.topa-r;if(e.topi+o){var c=Math.min(e.top,(u?a:e.bottom)-o);c!=i&&(s.scrollTop=c)}var f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,h=On(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>h;return p&&(e.right=e.left+h),e.left<10?s.scrollLeft=0:e.lefth+f-3&&(s.scrollLeft=e.right+(p?0:10)-h),s}function Er(t,e){null!=e&&(Nr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Mr(t){Nr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Pr(t,e,n){null==e&&null==n||Nr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Nr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,jr(t,Kn(t,e.from),Kn(t,e.to),e.margin))}function jr(t,e,n,r){var i=Lr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Pr(t,i.scrollLeft,i.scrollTop)}function Rr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||li(t,{top:e}),Dr(t,e,!0),n&&li(t),ri(t,100))}function Dr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function $r(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,fi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Ir(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+kn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Tn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Br=function(t,e,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ft(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Br.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var t=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Br.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Hr=function(){};function Ur(t,e){e||(e=Ir(t));var n=t.display.barWidth,r=t.display.barHeight;Fr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Tr(t),Fr(t,Ir(t)),n=t.display.barWidth,r=t.display.barHeight}function Fr(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var zr={native:Br,null:Hr};function Wr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new zr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ft(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?$r(t,e):Rr(t,e)}),t),t.display.scrollbars.addClass&&N(t.display.wrapper,t.display.scrollbars.addClass)}var qr=0;function Vr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qr},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Gr(t){t.updatedDisplay=t.mustUpdate&&si(t.cm,t.update)}function Xr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Tr(e),t.barMeasure=Ir(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=En(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Tn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-On(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Jr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var o=L("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+Tn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?te(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?te(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=Yn(t,e),l=n&&n!=e?Yn(t,n):a,u=Lr(t,i={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-r,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+r}),c=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=u.scrollTop&&(Rr(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&($r(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(s=!0)),!s)break}return i}(e,ae(r,t.scrollToPos.from),ae(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var s=0;s=t.display.viewTo)){var n=+new Date+t.options.workTime,r=pe(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Ft(e.mode,r.state):null,l=fe(t,o,r,!0);a&&(r.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hn)return ri(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Qr(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;hi(t)&&(pr(t),e.dims=or(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),s=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroms&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),_e&&(o=Be(t.doc,o),s=He(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=on(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=on(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,cr(t,n)))),r.viewTo=n}(t,o,s),n.viewOffset=ze(Vt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var u=vr(t);if(!a&&0==u&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var e=P();if(!e||!M(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return u>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(p=!1),cn(t,h,c,n)),p&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Qt(t.options,c)))),s=h.node.nextSibling}else{var d=gn(t,h,c,n);o.insertBefore(d,s)}c+=h.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,e.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=P()&&(t.activeElt.focus(),t.anchorNode&&M(document.body,t.anchorNode)&&M(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ri(t,400)),n.updateLineNumbers=null,!0}function ai(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=On(t))r&&(e.visible=Ar(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+kn(t.display)-An(t),n.top)}),e.visible=Ar(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!si(t,e))break;Tr(t);var i=Ir(t);mr(t),Ur(t,i),ci(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function li(t,e){var n=new oi(t,e);if(si(t,n)){Tr(t),ai(t,n);var r=Ir(t);mr(t),Ur(t,r),ci(t,r),n.finish()}}function ui(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function ci(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Tn(t)+"px"}function fi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=sr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",s=0;sa.clientWidth,c=a.scrollHeight>a.clientHeight;if(i&&u||o&&c){if(o&&y&&l)t:for(var h=e.target,p=s.view;h!=a;h=h.parentNode)for(var d=0;d=0&&ee(t,r.to())<=0)return n}return-1};var Ci=function(t,e){this.anchor=t,this.head=e};function ki(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ee(t.from(),e.from())})),n=H(e,i);for(var o=1;o0:l>=0){var u=oe(a.from(),s.from()),c=ie(a.to(),s.to()),f=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new Ci(f?c:u,f?u:c))}}return new _i(e,n)}function Si(t,e){return new _i([new Ci(t,e||t)],0)}function Ti(t){return t.text?te(t.from.line+t.text.length-1,K(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Oi(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Ti(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Ti(e).ch-e.to.ch),te(n,r)}function Ai(t,e){for(var n=[],r=0;r1&&t.remove(a.line+1,d-1),t.insert(a.line+1,g)}ln(t,"change",t,e)}function ji(t,e,n){!function t(r,i,o){if(r.linked)for(var s=0;sa-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Bi(t.done),K(t.done)):t.done.length&&!K(t.done).ranges?K(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),K(t.done)):void 0}(i,i.lastOp==r)))s=K(o.changes),0==ee(e.from,e.to)&&0==ee(e.from,s.to)?s.to=Ti(e):o.changes.push(Ii(t,e));else{var l=K(i.done);for(l&&l.ranges||Fi(t.sel,i.done),o={changes:[Ii(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,s||dt(t,"historyAdded")}function Ui(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,K(i.done),e))?i.done[i.done.length-1]=e:Fi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function Fi(t,e){var n=K(e);n&&n.ranges&&n.equals(t)||e.push(t)}function zi(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Wi(t){if(!t)return null;for(var e,n=0;n-1&&(K(a)[f]=u[f],delete u[f])}}}return r}function Yi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ee(e,i)<0;o!=ee(n,i)<0?(i=e,e=n):o!=ee(e,n)<0&&(e=n)}return new Ci(i,e)}return new Ci(n||e,e)}function Ki(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Qi(t,new _i([Yi(t.sel.primary(),e,n,i)],0),r)}function Gi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:a.to>e.ch))){if(i&&(dt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),h=void 0;if((r<0?c:u)&&(f=so(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(h=ee(f,n))&&(r<0?h<0:h>0))return io(t,f,e,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=so(t,p,r,p.line==e.line?o:null)),p?io(t,p,e,r,i):null}}return e}function oo(t,e,n,r,i){var o=r||1,s=io(t,e,n,o,i)||!i&&io(t,e,n,o,!0)||io(t,e,n,-o,i)||!i&&io(t,e,n,-o,!0);return s||(t.cantEdit=!0,te(t.first,0))}function so(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?ae(t,te(e.line-1)):null:n>0&&e.ch==(r||Vt(t,e.line)).text.length?e.line0)){var c=[l,1],f=ee(u.from,a.from),h=ee(u.to,a.to);(f<0||!s.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(h>0||!s.inclusiveRight&&!h)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)co(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else co(t,e)}}function co(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var n=Ai(t,e);Hi(t,e,n,t.cm?t.cm.curOp.id:NaN),po(t,e,n,Te(t,e));var r=[];ji(t,(function(t,n){n||-1!=H(r,t.history)||(yo(t.history,e),r.push(t.history)),po(t,e,null,Te(t,e))}))}}function fo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u=0;--p){var d=h(p);if(d)return d.v}}}}function ho(t,e){if(0!=e&&(t.first+=e,t.sel=new _i(G(t.sel.ranges,(function(t){return new Ci(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){fr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:te(o,Vt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ai(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=Xt(Ie(Vt(r,o.line))),r.iter(l,s.line+1,(function(t){if(t==i.maxLine)return a=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&mt(t),Ni(r,e,n,ar(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,(function(t){var e=We(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,a=!1)})),a&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Vt(t,r).stateAfter;if(i&&(!(i instanceof ue)||r+i.lookAhead1||!(this.children[0]instanceof wo))){var a=[];this.collapse(a),this.children=[new wo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var s=i.lines.length%25+25,a=s;a10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if($e(t,e.line,e,n,o)||e.line!=n.line&&$e(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");_e=!0}o.addToHistory&&Hi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,u=t.cm;if(t.iter(l,n.line+1,(function(t){u&&o.collapsed&&!u.options.lineWrapping&&Ie(t)==u.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&Gt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new Ce(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){Ue(t,e)&&Gt(e,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ko,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)fr(u,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)hr(u,c,"text");o.atomic&&no(u.doc),ln(u,"markerAdded",u,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Vr(t),gt(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&fr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&no(t.doc)),t&&ln(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},So.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;l--)uo(this,r[l]);a?Zi(this,a):this.cm&&Mr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=ae(this,t),e=ae(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var s=o.markedSpans;if(s)for(var a=0;a=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),ae(this,te(n,e))},indexFromPos:function(t){var e=(t=ae(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),to(e.doc,Si(n,n)),h)for(var p=0;p=0;e--)vo(t.doc,"",r[e].from,r[e].to,"+delete");Mr(t)}))}function Zo(t,e,n){var r=it(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Qo(t,e,n){var r=Zo(t,e.ch,n);return null==r?null:new te(e.line,r,n<0?"after":"before")}function ts(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=ut(n,e.doc.direction);if(o){var s,a=i<0?K(o):o[0],l=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var u=Pn(e,n);s=i<0?n.text.length-1:0;var c=Nn(e,u,s).top;s=ot((function(t){return Nn(e,u,t).top==c}),i<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Zo(n,s,1))}else s=i<0?a.to:a.from;return new te(r,s,l)}}return new te(r,i<0?n.text.length:0,i<0?"before":"after")}zo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},zo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},zo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},zo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},zo.default=y?zo.macDefault:zo.pcDefault;var es={selectAll:ao,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),F)},killLine:function(t){return Jo(t,(function(e){if(e.empty()){var n=Vt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new te(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),te(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var s=Vt(t.doc,i.line-1).text;s&&(i=new te(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),te(i.line-1,s.length-1),i,"+transpose"))}n.push(new Ci(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Qr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(ee((i=u.ranges[i]).from(),e)<0||e.xRel>0)&&(ee(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,u=ti(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,pt(i.wrapper.ownerDocument,"mouseup",u),pt(i.wrapper.ownerDocument,"mousemove",c),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",u),o||(bt(e),r.addNew||Ki(t.doc,n,null,null,r.extend),l||s&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ft(i.wrapper.ownerDocument,"mouseup",u),ft(i.wrapper.ownerDocument,"mousemove",c),ft(i.scroller,"dragstart",f),ft(i.scroller,"drop",u),Cr(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,o):function(t,e,n,r){var i=t.display,o=t.doc;bt(e);var s,a,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),s=a>-1?u[a]:new Ci(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ci(n,n)),n=ur(t,e,!0,!0),a=-1;else{var c=gs(t,n,r.unit);s=r.extend?Yi(s,c.anchor,c.head,r.extend):c}r.addNew?-1==a?(a=u.length,Qi(o,ki(t,u.concat([s]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&"char"==r.unit&&!r.extend?(Qi(o,ki(t,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Xi(o,a,s,z):(a=0,Qi(o,new _i([s],0),z),l=o.sel);var f=n;function h(e){if(0!=ee(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],u=t.options.tabSize,c=I(Vt(o,n.line).text,n.ch,u),h=I(Vt(o,e.line).text,e.ch,u),p=Math.min(c,h),d=Math.max(c,h),v=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=m;v++){var g=Vt(o,v).text,y=q(g,p,u);p==d?i.push(new Ci(te(v,y),te(v,y))):g.length>y&&i.push(new Ci(te(v,y),te(v,q(g,d,u))))}i.length||i.push(new Ci(n,n)),Qi(o,ki(t,l.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,w=s,x=gs(t,e,r.unit),_=w.anchor;ee(x.anchor,_)>0?(b=x.head,_=oe(w.from(),x.anchor)):(b=x.anchor,_=ie(w.to(),x.head));var C=l.ranges.slice(0);C[a]=function(t,e){var n=e.anchor,r=e.head,i=Vt(t.doc,n.line);if(0==ee(n,r)&&n.sticky==r.sticky)return e;var o=ut(i);if(!o)return e;var s=at(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,u=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=at(o,r.ch,r.sticky),f=c-s||(r.ch-n.ch)*(1==a.level?-1:1);l=c==u-1||c==u?f<0:f>0}var h=o[u+(l?-1:0)],p=l==(1==h.level),d=p?h.from:h.to,v=p?"after":"before";return n.ch==d&&n.sticky==v?e:new Ci(new te(n.line,d,v),r)}(t,new Ci(ae(o,_),b)),Qi(o,ki(t,C,a),z)}}var p=i.wrapper.getBoundingClientRect(),d=0;function v(e){t.state.selectingText=!1,d=1/0,e&&(bt(e),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",m),pt(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var m=ti(t,(function(e){0!==e.buttons&&kt(e)?function e(n){var s=++d,a=ur(t,n,!0,"rectangle"==r.unit);if(a)if(0!=ee(a,f)){t.curOp.focus=P(),h(a);var l=Ar(i,o);(a.line>=l.to||a.linep.bottom?20:0;u&&setTimeout(ti(t,(function(){d==s&&(i.scroller.scrollTop+=u,e(n))})),50)}}(e):v(e)})),g=ti(t,v);t.state.selectingText=g,ft(i.wrapper.ownerDocument,"mousemove",m),ft(i.wrapper.ownerDocument,"mouseup",g)}(t,r,e,o)}(e,r,o,t):Ct(t)==n.scroller&&bt(t):2==i?(r&&Ki(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):Cr(e)))}}function gs(t,e,n){if("char"==n)return new Ci(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Ci(te(e.line,0),ae(t.doc,te(e.line+1,0)));var r=n(t,e);return new Ci(r.from,r.to)}function ys(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&bt(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!gt(t,n))return xt(e);o-=a.top-s.viewOffset;for(var l=0;l=i)return dt(t,n,t,Jt(t.doc,o),t.display.gutterSpecs[l].className,e),xt(e)}}function bs(t,e){return ys(t,e,"gutterClick",!0)}function ws(t,e){_n(t.display,e)||function(t,e){return!!gt(t,"gutterContextMenu")&&ys(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function xs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(t)}vs.prototype.compare=function(t,e,n){return this.time+400>t&&0==ee(e,this.pos)&&n==this.button};var _s={toString:function(){return"CodeMirror.Init"}},Cs={},ks={};function Ss(t,e,n){if(!e!=!(n&&n!=_s)){var r=t.display.dragFunctions,i=e?ft:pt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ts(t){t.options.lineWrapping?(N(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),qe(t)),lr(t),fr(t),Hn(t),setTimeout((function(){return Ur(t)}),100)}function Os(t,e){var n=this;if(!(this instanceof Os))return new Os(t,e);this.options=e=e?$(e):{},$(Cs,e,!1);var r=e.value;"string"==typeof r?r=new Mo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Os.inputStyles[e.inputStyle](this),o=this.display=new mi(t,r,i,e);for(var u in o.wrapper.CodeMirror=this,xs(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},e.autofocus&&!g&&o.input.focus(),s&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ft(e.scroller,"mousedown",ti(t,ms)),ft(e.scroller,"dblclick",s&&a<11?ti(t,(function(e){if(!vt(t,e)){var n=ur(t,e);if(n&&!bs(t,e)&&!_n(t.display,e)){bt(e);var r=t.findWordAt(n);Ki(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||bt(e)}),ft(e.scroller,"contextmenu",(function(e){return ws(t,e)})),ft(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||ws(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ft(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!bs(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ft(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ft(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!_n(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var s,a=t.coordsChar(e.activeTouch,"page");s=!r.prev||o(r,r.prev)?new Ci(a,a):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(a):new Ci(te(a.line,0),ae(t.doc,te(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),bt(n)}i()})),ft(e.scroller,"touchcancel",i),ft(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Rr(t,e.scroller.scrollTop),$r(t,e.scroller.scrollLeft,!0),dt(t,"scroll",t))})),ft(e.scroller,"mousewheel",(function(e){return xi(t,e)})),ft(e.scroller,"DOMMouseScroll",(function(e){return xi(t,e)})),ft(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||_t(e)},over:function(e){vt(t,e)||(function(t,e){var n=ur(t,e);if(n){var r=document.createDocumentFragment();yr(t,n,r),t.display.dragCursor||(t.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,r)}}(t,e),_t(e))},start:function(e){return function(t,e){if(s&&(!t.state.draggingText||+new Date-Po<100))_t(e);else if(!vt(t,e)&&!_n(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=L("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:ti(t,No),leave:function(e){vt(t,e)||jo(t)}};var l=e.input.getField();ft(l,"keyup",(function(e){return fs.call(t,e)})),ft(l,"keydown",ti(t,cs)),ft(l,"keypress",ti(t,hs)),ft(l,"focus",(function(e){return kr(t,e)})),ft(l,"blur",(function(e){return Sr(t,e)}))}(this),$o(),Vr(this),this.curOp.forceUpdate=!0,Ri(this,r),e.autofocus&&!g||this.hasFocus()?setTimeout(D(kr,this),20):Sr(this),ks)ks.hasOwnProperty(u)&&ks[u](this,e[u],_s);hi(this),e.finishInit&&e.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?I(Vt(o,e-1).text,null,s):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",h=0;if(t.options.indentWithTabs)for(var p=Math.floor(u/s);p;--p)h+=s,f+="\t";if(hs,l=Mt(e),u=null;if(a&&r.ranges.length>1)if(Es&&Es.text.join("\n")==e){if(r.ranges.length%Es.text.length==0){u=[];for(var c=0;c=0;h--){var p=r.ranges[h],d=p.from(),v=p.to();p.empty()&&(n&&n>0?d=te(d.line,d.ch-n):t.state.overwrite&&!a?v=te(v.line,Math.min(Vt(o,v.line).text.length,v.ch+K(l).length)):a&&Es&&Es.lineWise&&Es.text.join("\n")==e&&(d=v=te(d.line,0)));var m={from:d,to:v,text:u?u[h%u.length]:l,origin:i||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};uo(t.doc,m),ln(t,"inputRead",t,m)}e&&!a&&js(t,e),Mr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ns(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Qr(e,(function(){return Ps(e,n,0,null,"paste")})),!0}function js(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a-1){s=Ls(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Vt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(s=Ls(t,i.head.line,"smart"));s&&ln(t,"electricInput",t,i.head.line)}}}function Rs(t){for(var e=[],n=[],r=0;r=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=at(i,n.ch,n.sticky),s=i[o];if("ltr"==t.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from=s.from&&h>=c.begin)){var p=f?"before":"after";return new te(n.line,h,p)}}var d=function(t,e,r){for(var o=function(t,e){return e?new te(n.line,l(t,1),"before"):new te(n.line,t,"after")};t>=0&&t0==(1!=s.level),u=a?r.begin:l(r.end,-1);if(s.from<=u&&u0?c.end:l(c.begin,-1);return null==m||r>0&&m==e.text.length||!(v=d(r>0?0:i.length-1,r,u(m)))?null:v}(t.cm,a,e,n):Qo(a,e,n))){if(r||(s=e.line+l)=t.first+t.size||(e=new te(s,e.ch,e.sticky),!(a=Vt(t,s))))return!1;e=ts(i,t.cm,a,e.line,l)}else e=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var d=a.text.charAt(e.ch)||"\n",v=tt(d,h)?"w":f&&"\n"==d?"n":!f||/\s/.test(d)?null:"p";if(!f||p||v||(v="s"),c&&c!=v){n<0&&(n=1,u(),e.sticky="after");break}if(v&&(c=v),n>0&&!u(!p))break}var m=oo(t,e,o,s,!0);return ne(o,m)&&(m.hitSide=!0),m}function Bs(t,e,n,r){var i,o,s=t.doc,a=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(t.display),3);i=(n>0?e.bottom:e.top)+n*u}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Xn(t,a,i)).outside;){if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}var Hs=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Us(t,e){var n=Mn(t,e.line);if(!n||n.hidden)return null;var r=Vt(t.doc,e.line),i=Ln(n,r,e.line),o=ut(r,t.doc.direction),s="left";o&&(s=at(o,e.ch)%2?"right":"left");var a=Dn(i.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Fs(t,e){return e&&(t.bad=!0),t}function zs(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Fs(t.clipPos(te(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i=e.display.viewTo||o.line=e.display.viewFrom&&Us(e,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(s=te(s.line-1,Vt(r.doc,s.line-1).length)),a.ch==Vt(r.doc,a.line).text.length&&a.linei.viewTo-1)return!1;s.line==i.viewFrom||0==(t=cr(r,s.line))?(e=Xt(i.view[0].line),n=i.view[0].node):(e=Xt(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,u,c=cr(r,a.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Xt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(t,e,n,r,i){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function u(){s&&(o+=a,l&&(o+=a),s=l=!1)}function c(t){t&&(u(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void c(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(te(r,0),te(i+1,0),(m=+h,function(t){return t.id==m}));return void(p.length&&(o=p[0].find(0))&&c(Yt(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;d&&u();for(var v=0;v1&&h.length>1;)if(K(f)==K(h))f.pop(),h.pop(),l--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),e++}for(var p=0,d=0,v=f[0],m=h[0],g=Math.min(v.length,m.length);ps.ch&&y.charCodeAt(y.length-d-1)==b.charCodeAt(b.length-d-1);)p--,d++;f[f.length-1]=y.slice(0,y.length-d).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var x=te(e,p),_=te(l,h.length?K(h).length-d:0);return f.length>1||f[0]||ee(x,_)?(vo(r.doc,f,x,_,"+input"),!0):void 0},Hs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Hs.prototype.reset=function(){this.forceCompositionEnd()},Hs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Hs.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Hs.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,(function(){return fr(t.cm)}))},Hs.prototype.setUneditable=function(t){t.contentEditable="false"},Hs.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Ps)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Hs.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Hs.prototype.onContextMenu=function(){},Hs.prototype.resetPosition=function(){},Hs.prototype.needsContentAttribute=!0;var qs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};qs.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Ms({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Rs(r);Ms({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,F):(n.prevInput="",i.value=e.text.join("\n"),R(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),v&&(i.style.width="0px"),ft(i,"input",(function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ft(i,"paste",(function(t){vt(r,t)||Ns(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(t.scroller,"paste",(function(e){if(!_n(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),ft(t.lineSpace,"selectstart",(function(e){_n(t,e)||bt(e)})),ft(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},qs.prototype.createField=function(t){this.wrapper=$s(),this.textarea=this.wrapper.firstChild},qs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+s.left-o.left))}return r},qs.prototype.showSelection=function(t){var e=this.cm.display;A(e.cursorDiv,t.cursors),A(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},qs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&R(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},qs.prototype.getField=function(){return this.textarea},qs.prototype.supportsTouch=function(){return!1},qs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||P()!=this.textarea))try{this.textarea.focus()}catch(t){}},qs.prototype.blur=function(){this.textarea.blur()},qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qs.prototype.receivedFocus=function(){this.slowPoll()},qs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},qs.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},qs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Pt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},qs.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=ur(n,t),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Qi)(n.doc,Si(o),F);var c,h=i.style.cssText,p=e.wrapper.style.cssText,d=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-d.top-5)+"px; left: "+(t.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&a>=9&&m(),C){_t(t);var v=function(){pt(window,"mouseup",v),setTimeout(g,20)};ft(window,"mouseup",v)}else setTimeout(g,50)}function m(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(e.contextMenuPending==g&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=h,s&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!s||s&&a<9)&&m();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ti(n,ao)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},qs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},qs.prototype.setUneditable=function(){},qs.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=_s&&i(t,e,n)}:i)}t.defineOption=n,t.Init=_s,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Ei(t)}),!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Mi(t),Hn(t),fr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(te(r,o))}r++}));for(var i=n.length-1;i>=0;i--)vo(t.doc,e,n[i],te(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=_s&&t.refresh()})),n("specialCharPlaceholder",Ze,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){xs(t),vi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Xo(e),i=n!=_s&&Xo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ts,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=pi(e,t.options.lineNumbers),vi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?sr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Ur(t)}),!0),n("scrollbarStyle","native",(function(t){Wr(t),Ur(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=pi(t.options.gutters,e),vi(t)}),!0),n("firstLineNumber",1,vi,!0),n("lineNumberFormatter",(function(t){return t}),vi,!0),n("showCursorWhenSelecting",!1,mr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Sr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Ss),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,mr,!0),n("singleCursorHeightPerLine",!0,mr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mi,!0),n("addModeClass",!1,Mi,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Mi,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Os),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ti(this,e[t])(this,n,i),dt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Xo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(Ls(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(this));else{var o=i.from(),s=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l0&&Xi(this.doc,r,new Ci(o,u[r].to()),F)}}})),getTokenAt:function(t,e){return ye(this,t,e)},getLineTokens:function(t,e){return ye(this,te(t),e,!0)},getTokenTypeAt:function(t){t=ae(this.doc,t);var e,n=he(this,Vt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=r+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]o&&(t=o,i=!0),r=Vt(this.doc,t)}else r=t;return Wn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-ze(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,s,a,l=this.display,u=(t=Yn(this,ae(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)u=t.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),h=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>f)&&t.top>e.offsetHeight?u=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=f&&(u=t.bottom),c+e.offsetWidth>h&&(c=h-e.offsetWidth)}e.style.top=u+"px",e.style.left=e.style.right="","right"==i?(c=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),n&&(o=this,s={left:c,top:u,right:c+e.offsetWidth,bottom:u+e.offsetHeight},null!=(a=Lr(o,s)).scrollTop&&Rr(o,a.scrollTop),null!=a.scrollLeft&&$r(o,a.scrollLeft))},triggerOnKeyDown:ei(cs),triggerOnKeyPress:ei(hs),triggerOnKeyUp:fs,triggerOnMouseDown:ei(ms),execCommand:function(t){if(es.hasOwnProperty(t))return es[t].call(null,this)},triggerElectric:ei((function(t){js(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=ae(this.doc,t),s=0;s0&&s(e.charAt(n-1));)--n;for(;r.5)&&lr(this),dt(this,"refresh",this)})),swapDoc:ei((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Ri(this,t),Hn(this),this.display.input.reset(),Pr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},yt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(Os);var Vs="iter insert remove copy getEditor constructor".split(" ");for(var Ys in Mo.prototype)Mo.prototype.hasOwnProperty(Ys)&&H(Vs,Ys)<0&&(Os.prototype[Ys]=function(t){return function(){return t.apply(this.doc,arguments)}}(Mo.prototype[Ys]));return yt(Mo),Os.inputStyles={textarea:qs,contenteditable:Hs},Os.defineMode=function(t){Os.defaults.mode||"null"==t||(Os.defaults.mode=t),$t.apply(this,arguments)},Os.defineMIME=function(t,e){Dt[t]=e},Os.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Os.defineMIME("text/plain","null"),Os.defineExtension=function(t,e){Os.prototype[t]=e},Os.defineDocExtension=function(t,e){Mo.prototype[t]=e},Os.fromTextArea=function(t,e){if((e=e?$(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=P();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=a.getValue()}var i;if(t.form&&(ft(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var a=Os((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return a},function(t){t.off=pt,t.on=ft,t.wheelEventPixels=wi,t.Doc=Mo,t.splitLines=Mt,t.countColumn=I,t.findColumn=q,t.isWordChar=Q,t.Pass=U,t.signal=dt,t.Line=Ve,t.changeEnd=Ti,t.scrollbarModel=zr,t.Pos=te,t.cmpPos=ee,t.modes=Rt,t.mimeModes=Dt,t.resolveMode=It,t.getMode=Bt,t.modeExtensions=Ht,t.extendMode=Ut,t.copyState=Ft,t.startState=Wt,t.innerMode=zt,t.commands=es,t.keyMap=zo,t.keyName=Go,t.isModifierKey=Yo,t.lookupKey=Vo,t.normalizeKeyMap=qo,t.StringStream=qt,t.SharedTextMarker=Oo,t.TextMarker=So,t.LineWidget=_o,t.e_preventDefault=bt,t.e_stopPropagation=wt,t.e_stop=_t,t.addClass=N,t.contains=M,t.rmClass=T,t.keyNames=Bo}(Os),Os.version="5.52.2",Os}()},XuX8:function(t,e,n){t.exports=n("INkZ")},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,s,a,l=1,u={},c=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&d(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n=0&&f.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return y(e,t.attrs),v(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var s=c++;n=u||(u=g(e)),r=_.bind(null,n,s,!1),i=_.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),v(t,e),e}(e),r=k.bind(null,n,e),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),r=C.bind(null,n),i=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return p(n,e),function(t){for(var r=[],i=0;i>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=255&r}function v(t,e,n,r,i){var o,s=0;for(o=0;o>>8)-1}function m(t,e,n,r){return v(t,e,n,r,16)}function g(t,e,n,r){return v(t,e,n,r,32)}function y(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=o,_=s,C=a,k=l,S=u,T=c,O=f,A=h,L=p,E=d,M=v,P=m,N=g,j=y,R=b,D=w,$=0;$<20;$+=2)x^=(i=(N^=(i=(L^=(i=(S^=(i=x+N|0)<<7|i>>>25)+x|0)<<9|i>>>23)+S|0)<<13|i>>>19)+L|0)<<18|i>>>14,T^=(i=(_^=(i=(j^=(i=(E^=(i=T+_|0)<<7|i>>>25)+T|0)<<9|i>>>23)+E|0)<<13|i>>>19)+j|0)<<18|i>>>14,M^=(i=(O^=(i=(C^=(i=(R^=(i=M+O|0)<<7|i>>>25)+M|0)<<9|i>>>23)+R|0)<<13|i>>>19)+C|0)<<18|i>>>14,D^=(i=(P^=(i=(A^=(i=(k^=(i=D+P|0)<<7|i>>>25)+D|0)<<9|i>>>23)+k|0)<<13|i>>>19)+A|0)<<18|i>>>14,x^=(i=(k^=(i=(C^=(i=(_^=(i=x+k|0)<<7|i>>>25)+x|0)<<9|i>>>23)+_|0)<<13|i>>>19)+C|0)<<18|i>>>14,T^=(i=(S^=(i=(A^=(i=(O^=(i=T+S|0)<<7|i>>>25)+T|0)<<9|i>>>23)+O|0)<<13|i>>>19)+A|0)<<18|i>>>14,M^=(i=(E^=(i=(L^=(i=(P^=(i=M+E|0)<<7|i>>>25)+M|0)<<9|i>>>23)+P|0)<<13|i>>>19)+L|0)<<18|i>>>14,D^=(i=(R^=(i=(j^=(i=(N^=(i=D+R|0)<<7|i>>>25)+D|0)<<9|i>>>23)+N|0)<<13|i>>>19)+j|0)<<18|i>>>14;x=x+o|0,_=_+s|0,C=C+a|0,k=k+l|0,S=S+u|0,T=T+c|0,O=O+f|0,A=A+h|0,L=L+p|0,E=E+d|0,M=M+v|0,P=P+m|0,N=N+g|0,j=j+y|0,R=R+b|0,D=D+w|0,t[0]=x>>>0&255,t[1]=x>>>8&255,t[2]=x>>>16&255,t[3]=x>>>24&255,t[4]=_>>>0&255,t[5]=_>>>8&255,t[6]=_>>>16&255,t[7]=_>>>24&255,t[8]=C>>>0&255,t[9]=C>>>8&255,t[10]=C>>>16&255,t[11]=C>>>24&255,t[12]=k>>>0&255,t[13]=k>>>8&255,t[14]=k>>>16&255,t[15]=k>>>24&255,t[16]=S>>>0&255,t[17]=S>>>8&255,t[18]=S>>>16&255,t[19]=S>>>24&255,t[20]=T>>>0&255,t[21]=T>>>8&255,t[22]=T>>>16&255,t[23]=T>>>24&255,t[24]=O>>>0&255,t[25]=O>>>8&255,t[26]=O>>>16&255,t[27]=O>>>24&255,t[28]=A>>>0&255,t[29]=A>>>8&255,t[30]=A>>>16&255,t[31]=A>>>24&255,t[32]=L>>>0&255,t[33]=L>>>8&255,t[34]=L>>>16&255,t[35]=L>>>24&255,t[36]=E>>>0&255,t[37]=E>>>8&255,t[38]=E>>>16&255,t[39]=E>>>24&255,t[40]=M>>>0&255,t[41]=M>>>8&255,t[42]=M>>>16&255,t[43]=M>>>24&255,t[44]=P>>>0&255,t[45]=P>>>8&255,t[46]=P>>>16&255,t[47]=P>>>24&255,t[48]=N>>>0&255,t[49]=N>>>8&255,t[50]=N>>>16&255,t[51]=N>>>24&255,t[52]=j>>>0&255,t[53]=j>>>8&255,t[54]=j>>>16&255,t[55]=j>>>24&255,t[56]=R>>>0&255,t[57]=R>>>8&255,t[58]=R>>>16&255,t[59]=R>>>24&255,t[60]=D>>>0&255,t[61]=D>>>8&255,t[62]=D>>>16&255,t[63]=D>>>24&255}(t,e,n,r)}function b(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)o^=(i=(g^=(i=(p^=(i=(u^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+p|0)<<18|i>>>14,c^=(i=(s^=(i=(y^=(i=(d^=(i=c+s|0)<<7|i>>>25)+c|0)<<9|i>>>23)+d|0)<<13|i>>>19)+y|0)<<18|i>>>14,v^=(i=(f^=(i=(a^=(i=(b^=(i=v+f|0)<<7|i>>>25)+v|0)<<9|i>>>23)+b|0)<<13|i>>>19)+a|0)<<18|i>>>14,w^=(i=(m^=(i=(h^=(i=(l^=(i=w+m|0)<<7|i>>>25)+w|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(l^=(i=(a^=(i=(s^=(i=o+l|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,c^=(i=(u^=(i=(h^=(i=(f^=(i=c+u|0)<<7|i>>>25)+c|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,v^=(i=(d^=(i=(p^=(i=(m^=(i=v+d|0)<<7|i>>>25)+v|0)<<9|i>>>23)+m|0)<<13|i>>>19)+p|0)<<18|i>>>14,w^=(i=(b^=(i=(y^=(i=(g^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=c>>>0&255,t[5]=c>>>8&255,t[6]=c>>>16&255,t[7]=c>>>24&255,t[8]=v>>>0&255,t[9]=v>>>8&255,t[10]=v>>>16&255,t[11]=v>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=f>>>0&255,t[17]=f>>>8&255,t[18]=f>>>16&255,t[19]=f>>>24&255,t[20]=h>>>0&255,t[21]=h>>>8&255,t[22]=h>>>16&255,t[23]=h>>>24&255,t[24]=p>>>0&255,t[25]=p>>>8&255,t[26]=p>>>16&255,t[27]=p>>>24&255,t[28]=d>>>0&255,t[29]=d>>>8&255,t[30]=d>>>16&255,t[31]=d>>>24&255}(t,e,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(t,e,n,r,i,o,s){var a,l,u=new Uint8Array(16),c=new Uint8Array(64);for(l=0;l<16;l++)u[l]=0;for(l=0;l<8;l++)u[l]=o[l];for(;i>=64;){for(y(c,u,s,w),l=0;l<64;l++)t[e+l]=n[r+l]^c[l];for(a=1,l=8;l<16;l++)a=a+(255&u[l])|0,u[l]=255&a,a>>>=8;i-=64,e+=64,r+=64}if(i>0)for(y(c,u,s,w),l=0;l=64;){for(y(l,a,i,w),s=0;s<64;s++)t[e+s]=l[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(y(l,a,i,w),s=0;s>>13|n<<3),r=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|a<<5),l=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(a>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function T(t,e,n,r,i,o){var s=new S(o);return s.update(n,r,i),s.finish(t,e),0}function O(t,e,n,r,i,o){var s=new Uint8Array(16);return T(s,0,n,r,i,o),m(t,e,s,0)}function A(t,e,n,r,i){var o;if(n<32)return-1;for(k(t,0,e,0,n,r,i),T(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function L(t,e,n,r,i){var o,s=new Uint8Array(32);if(n<32)return-1;if(C(s,0,32,r,i),0!==O(e,16,e,32,n-32,s))return-1;for(k(t,0,e,0,n,r,i),o=0;o<32;o++)t[o]=0;return 0}function E(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function M(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-65536*r;t[0]+=r-1+37*(r-1)}function P(t,e,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(t[o]^e[o]),t[o]^=r,e[o]^=r}function N(t,n){var r,i,o,s=e(),a=e();for(r=0;r<16;r++)a[r]=n[r];for(M(a),M(a),M(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,P(a,s,1-o)}for(r=0;r<16;r++)t[2*r]=255&a[r],t[2*r+1]=a[r]>>8}function j(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return N(n,t),N(r,e),g(n,0,r,0)}function R(t){var e=new Uint8Array(32);return N(e,t),1&e[0]}function D(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function $(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function I(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function B(t,e,n){var r,i,o=0,s=0,a=0,l=0,u=0,c=0,f=0,h=0,p=0,d=0,v=0,m=0,g=0,y=0,b=0,w=0,x=0,_=0,C=0,k=0,S=0,T=0,O=0,A=0,L=0,E=0,M=0,P=0,N=0,j=0,R=0,D=n[0],$=n[1],I=n[2],B=n[3],H=n[4],U=n[5],F=n[6],z=n[7],W=n[8],q=n[9],V=n[10],Y=n[11],K=n[12],G=n[13],X=n[14],J=n[15];o+=(r=e[0])*D,s+=r*$,a+=r*I,l+=r*B,u+=r*H,c+=r*U,f+=r*F,h+=r*z,p+=r*W,d+=r*q,v+=r*V,m+=r*Y,g+=r*K,y+=r*G,b+=r*X,w+=r*J,s+=(r=e[1])*D,a+=r*$,l+=r*I,u+=r*B,c+=r*H,f+=r*U,h+=r*F,p+=r*z,d+=r*W,v+=r*q,m+=r*V,g+=r*Y,y+=r*K,b+=r*G,w+=r*X,x+=r*J,a+=(r=e[2])*D,l+=r*$,u+=r*I,c+=r*B,f+=r*H,h+=r*U,p+=r*F,d+=r*z,v+=r*W,m+=r*q,g+=r*V,y+=r*Y,b+=r*K,w+=r*G,x+=r*X,_+=r*J,l+=(r=e[3])*D,u+=r*$,c+=r*I,f+=r*B,h+=r*H,p+=r*U,d+=r*F,v+=r*z,m+=r*W,g+=r*q,y+=r*V,b+=r*Y,w+=r*K,x+=r*G,_+=r*X,C+=r*J,u+=(r=e[4])*D,c+=r*$,f+=r*I,h+=r*B,p+=r*H,d+=r*U,v+=r*F,m+=r*z,g+=r*W,y+=r*q,b+=r*V,w+=r*Y,x+=r*K,_+=r*G,C+=r*X,k+=r*J,c+=(r=e[5])*D,f+=r*$,h+=r*I,p+=r*B,d+=r*H,v+=r*U,m+=r*F,g+=r*z,y+=r*W,b+=r*q,w+=r*V,x+=r*Y,_+=r*K,C+=r*G,k+=r*X,S+=r*J,f+=(r=e[6])*D,h+=r*$,p+=r*I,d+=r*B,v+=r*H,m+=r*U,g+=r*F,y+=r*z,b+=r*W,w+=r*q,x+=r*V,_+=r*Y,C+=r*K,k+=r*G,S+=r*X,T+=r*J,h+=(r=e[7])*D,p+=r*$,d+=r*I,v+=r*B,m+=r*H,g+=r*U,y+=r*F,b+=r*z,w+=r*W,x+=r*q,_+=r*V,C+=r*Y,k+=r*K,S+=r*G,T+=r*X,O+=r*J,p+=(r=e[8])*D,d+=r*$,v+=r*I,m+=r*B,g+=r*H,y+=r*U,b+=r*F,w+=r*z,x+=r*W,_+=r*q,C+=r*V,k+=r*Y,S+=r*K,T+=r*G,O+=r*X,A+=r*J,d+=(r=e[9])*D,v+=r*$,m+=r*I,g+=r*B,y+=r*H,b+=r*U,w+=r*F,x+=r*z,_+=r*W,C+=r*q,k+=r*V,S+=r*Y,T+=r*K,O+=r*G,A+=r*X,L+=r*J,v+=(r=e[10])*D,m+=r*$,g+=r*I,y+=r*B,b+=r*H,w+=r*U,x+=r*F,_+=r*z,C+=r*W,k+=r*q,S+=r*V,T+=r*Y,O+=r*K,A+=r*G,L+=r*X,E+=r*J,m+=(r=e[11])*D,g+=r*$,y+=r*I,b+=r*B,w+=r*H,x+=r*U,_+=r*F,C+=r*z,k+=r*W,S+=r*q,T+=r*V,O+=r*Y,A+=r*K,L+=r*G,E+=r*X,M+=r*J,g+=(r=e[12])*D,y+=r*$,b+=r*I,w+=r*B,x+=r*H,_+=r*U,C+=r*F,k+=r*z,S+=r*W,T+=r*q,O+=r*V,A+=r*Y,L+=r*K,E+=r*G,M+=r*X,P+=r*J,y+=(r=e[13])*D,b+=r*$,w+=r*I,x+=r*B,_+=r*H,C+=r*U,k+=r*F,S+=r*z,T+=r*W,O+=r*q,A+=r*V,L+=r*Y,E+=r*K,M+=r*G,P+=r*X,N+=r*J,b+=(r=e[14])*D,w+=r*$,x+=r*I,_+=r*B,C+=r*H,k+=r*U,S+=r*F,T+=r*z,O+=r*W,A+=r*q,L+=r*V,E+=r*Y,M+=r*K,P+=r*G,N+=r*X,j+=r*J,w+=(r=e[15])*D,s+=38*(_+=r*I),a+=38*(C+=r*B),l+=38*(k+=r*H),u+=38*(S+=r*U),c+=38*(T+=r*F),f+=38*(O+=r*z),h+=38*(A+=r*W),p+=38*(L+=r*q),d+=38*(E+=r*V),v+=38*(M+=r*Y),m+=38*(P+=r*K),g+=38*(N+=r*G),y+=38*(j+=r*X),b+=38*(R+=r*J),o=(r=(o+=38*(x+=r*$))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=s,t[2]=a,t[3]=l,t[4]=u,t[5]=c,t[6]=f,t[7]=h,t[8]=p,t[9]=d,t[10]=v,t[11]=m,t[12]=g,t[13]=y,t[14]=b,t[15]=w}function H(t,e){B(t,e,e)}function U(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)H(i,i),2!==r&&4!==r&&B(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function F(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)H(i,i),1!==r&&B(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function z(t,n,r){var i,o,s=new Uint8Array(32),a=new Float64Array(80),u=e(),c=e(),f=e(),h=e(),p=e(),d=e();for(o=0;o<31;o++)s[o]=n[o];for(s[31]=127&n[31]|64,s[0]&=248,D(a,r),o=0;o<16;o++)c[o]=a[o],h[o]=u[o]=f[o]=0;for(u[0]=h[0]=1,o=254;o>=0;--o)P(u,c,i=s[o>>>3]>>>(7&o)&1),P(f,h,i),$(p,u,f),I(u,u,f),$(f,c,h),I(c,c,h),H(h,p),H(d,u),B(u,f,u),B(f,c,p),$(p,u,f),I(u,u,f),H(c,u),I(f,h,d),B(u,f,l),$(u,u,h),B(f,f,u),B(u,h,d),B(h,c,a),H(c,p),P(u,c,i),P(f,h,i);for(o=0;o<16;o++)a[o+16]=u[o],a[o+32]=f[o],a[o+48]=c[o],a[o+64]=h[o];var v=a.subarray(32),m=a.subarray(16);return U(v,v),B(m,m,v),N(t,m),0}function W(t,e){return z(t,e,o)}function q(t,e){return r(e,32),W(t,e)}function V(t,e,n){var r=new Uint8Array(32);return z(r,n,e),b(t,i,r,w)}S.prototype.blocks=function(t,e,n){for(var r,i,o,s,a,l,u,c,f,h,p,d,v,m,g,y,b,w,x,_=this.fin?0:2048,C=this.h[0],k=this.h[1],S=this.h[2],T=this.h[3],O=this.h[4],A=this.h[5],L=this.h[6],E=this.h[7],M=this.h[8],P=this.h[9],N=this.r[0],j=this.r[1],R=this.r[2],D=this.r[3],$=this.r[4],I=this.r[5],B=this.r[6],H=this.r[7],U=this.r[8],F=this.r[9];n>=16;)h=f=0,h+=(C+=8191&(r=255&t[e+0]|(255&t[e+1])<<8))*N,h+=(k+=8191&(r>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*F),h+=(S+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*U),h+=(T+=8191&(o>>>7|(s=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*H),f=(h+=(O+=8191&(s>>>4|(a=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*B))>>>13,h&=8191,h+=(A+=a>>>1&8191)*(5*I),h+=(L+=8191&(a>>>14|(l=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*$),h+=(E+=8191&(l>>>11|(u=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*D),h+=(M+=8191&(u>>>8|(c=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*R),p=f+=(h+=(P+=c>>>5|_)*(5*j))>>>13,p+=C*j,p+=k*N,p+=S*(5*F),p+=T*(5*U),f=(p+=O*(5*H))>>>13,p&=8191,p+=A*(5*B),p+=L*(5*I),p+=E*(5*$),p+=M*(5*D),f+=(p+=P*(5*R))>>>13,p&=8191,d=f,d+=C*R,d+=k*j,d+=S*N,d+=T*(5*F),f=(d+=O*(5*U))>>>13,d&=8191,d+=A*(5*H),d+=L*(5*B),d+=E*(5*I),d+=M*(5*$),v=f+=(d+=P*(5*D))>>>13,v+=C*D,v+=k*R,v+=S*j,v+=T*N,f=(v+=O*(5*F))>>>13,v&=8191,v+=A*(5*U),v+=L*(5*H),v+=E*(5*B),v+=M*(5*I),m=f+=(v+=P*(5*$))>>>13,m+=C*$,m+=k*D,m+=S*R,m+=T*j,f=(m+=O*N)>>>13,m&=8191,m+=A*(5*F),m+=L*(5*U),m+=E*(5*H),m+=M*(5*B),g=f+=(m+=P*(5*I))>>>13,g+=C*I,g+=k*$,g+=S*D,g+=T*R,f=(g+=O*j)>>>13,g&=8191,g+=A*N,g+=L*(5*F),g+=E*(5*U),g+=M*(5*H),y=f+=(g+=P*(5*B))>>>13,y+=C*B,y+=k*I,y+=S*$,y+=T*D,f=(y+=O*R)>>>13,y&=8191,y+=A*j,y+=L*N,y+=E*(5*F),y+=M*(5*U),b=f+=(y+=P*(5*H))>>>13,b+=C*H,b+=k*B,b+=S*I,b+=T*$,f=(b+=O*D)>>>13,b&=8191,b+=A*R,b+=L*j,b+=E*N,b+=M*(5*F),w=f+=(b+=P*(5*U))>>>13,w+=C*U,w+=k*H,w+=S*B,w+=T*I,f=(w+=O*$)>>>13,w&=8191,w+=A*D,w+=L*R,w+=E*j,w+=M*N,x=f+=(w+=P*(5*F))>>>13,x+=C*F,x+=k*U,x+=S*H,x+=T*B,f=(x+=O*I)>>>13,x&=8191,x+=A*$,x+=L*D,x+=E*R,x+=M*j,C=h=8191&(f=(f=((f+=(x+=P*N)>>>13)<<2)+f|0)+(h&=8191)|0),k=p+=f>>>=13,S=d&=8191,T=v&=8191,O=m&=8191,A=g&=8191,L=y&=8191,E=b&=8191,M=w&=8191,P=x&=8191,e+=16,n-=16;this.h[0]=C,this.h[1]=k,this.h[2]=S,this.h[3]=T,this.h[4]=O,this.h[5]=A,this.h[6]=L,this.h[7]=E,this.h[8]=M,this.h[9]=P},S.prototype.finish=function(t,e){var n,r,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+n,n=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,r=(1^n)-1,o=0;o<10;o++)s[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},S.prototype.update=function(t,e,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(t,e,i),e+=i,n-=i),n){for(r=0;r=128;){for(_=0;_<16;_++)C=8*_+K,E[_]=n[C+0]<<24|n[C+1]<<16|n[C+2]<<8|n[C+3],M[_]=n[C+4]<<24|n[C+5]<<16|n[C+6]<<8|n[C+7];for(_=0;_<80;_++)if(i=P,o=N,s=j,a=R,l=D,u=$,c=I,h=H,p=U,d=F,v=z,m=W,g=q,y=V,T=65535&(S=Y),O=S>>>16,A=65535&(k=B),L=k>>>16,T+=65535&(S=(W>>>14|D<<18)^(W>>>18|D<<14)^(D>>>9|W<<23)),O+=S>>>16,A+=65535&(k=(D>>>14|W<<18)^(D>>>18|W<<14)^(W>>>9|D<<23)),L+=k>>>16,T+=65535&(S=W&q^~W&V),O+=S>>>16,A+=65535&(k=D&$^~D&I),L+=k>>>16,T+=65535&(S=G[2*_+1]),O+=S>>>16,A+=65535&(k=G[2*_]),L+=k>>>16,k=E[_%16],O+=(S=M[_%16])>>>16,A+=65535&k,L+=k>>>16,A+=(O+=(T+=65535&S)>>>16)>>>16,T=65535&(S=x=65535&T|O<<16),O=S>>>16,A=65535&(k=w=65535&A|(L+=A>>>16)<<16),L=k>>>16,T+=65535&(S=(H>>>28|P<<4)^(P>>>2|H<<30)^(P>>>7|H<<25)),O+=S>>>16,A+=65535&(k=(P>>>28|H<<4)^(H>>>2|P<<30)^(H>>>7|P<<25)),L+=k>>>16,O+=(S=H&U^H&F^U&F)>>>16,A+=65535&(k=P&N^P&j^N&j),L+=k>>>16,f=65535&(A+=(O+=(T+=65535&S)>>>16)>>>16)|(L+=A>>>16)<<16,b=65535&T|O<<16,T=65535&(S=v),O=S>>>16,A=65535&(k=a),L=k>>>16,O+=(S=x)>>>16,A+=65535&(k=w),L+=k>>>16,N=i,j=o,R=s,D=a=65535&(A+=(O+=(T+=65535&S)>>>16)>>>16)|(L+=A>>>16)<<16,$=l,I=u,B=c,P=f,U=h,F=p,z=d,W=v=65535&T|O<<16,q=m,V=g,Y=y,H=b,_%16==15)for(C=0;C<16;C++)k=E[C],T=65535&(S=M[C]),O=S>>>16,A=65535&k,L=k>>>16,k=E[(C+9)%16],T+=65535&(S=M[(C+9)%16]),O+=S>>>16,A+=65535&k,L+=k>>>16,w=E[(C+1)%16],T+=65535&(S=((x=M[(C+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),O+=S>>>16,A+=65535&(k=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),L+=k>>>16,w=E[(C+14)%16],O+=(S=((x=M[(C+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,A+=65535&(k=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,E[C]=65535&A|L<<16,M[C]=65535&T|O<<16;T=65535&(S=H),O=S>>>16,A=65535&(k=P),L=k>>>16,k=t[0],O+=(S=e[0])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[0]=P=65535&A|L<<16,e[0]=H=65535&T|O<<16,T=65535&(S=U),O=S>>>16,A=65535&(k=N),L=k>>>16,k=t[1],O+=(S=e[1])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[1]=N=65535&A|L<<16,e[1]=U=65535&T|O<<16,T=65535&(S=F),O=S>>>16,A=65535&(k=j),L=k>>>16,k=t[2],O+=(S=e[2])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[2]=j=65535&A|L<<16,e[2]=F=65535&T|O<<16,T=65535&(S=z),O=S>>>16,A=65535&(k=R),L=k>>>16,k=t[3],O+=(S=e[3])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[3]=R=65535&A|L<<16,e[3]=z=65535&T|O<<16,T=65535&(S=W),O=S>>>16,A=65535&(k=D),L=k>>>16,k=t[4],O+=(S=e[4])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[4]=D=65535&A|L<<16,e[4]=W=65535&T|O<<16,T=65535&(S=q),O=S>>>16,A=65535&(k=$),L=k>>>16,k=t[5],O+=(S=e[5])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[5]=$=65535&A|L<<16,e[5]=q=65535&T|O<<16,T=65535&(S=V),O=S>>>16,A=65535&(k=I),L=k>>>16,k=t[6],O+=(S=e[6])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[6]=I=65535&A|L<<16,e[6]=V=65535&T|O<<16,T=65535&(S=Y),O=S>>>16,A=65535&(k=B),L=k>>>16,k=t[7],O+=(S=e[7])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[7]=B=65535&A|L<<16,e[7]=Y=65535&T|O<<16,K+=128,r-=128}return r}function J(t,e,n){var r,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,e,n),n%=128,r=0;r=0;--i)Q(t,e,r=n[i/8|0]>>(7&i)&1),Z(e,t),Z(t,t),Q(t,e,r)}function nt(t,n){var r=[e(),e(),e(),e()];E(r[0],f),E(r[1],h),E(r[2],a),B(r[3],f,h),et(t,r,n)}function rt(t,n,i){var o,s=new Uint8Array(64),a=[e(),e(),e(),e()];for(i||r(n,32),J(s,n,32),s[0]&=248,s[31]&=127,s[31]|=64,nt(a,s),tt(t,a),o=0;o<32;o++)n[o+32]=t[o];return 0}var it,ot=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function st(t,e){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>8,e[i]-=256*n;e[i]+=n,e[r]=0}for(n=0,i=0;i<32;i++)e[i]+=n-(e[31]>>4)*ot[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*ot[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function at(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;st(t,n)}function lt(t,n,r,i){var o,s,a=new Uint8Array(64),l=new Uint8Array(64),u=new Uint8Array(64),c=new Float64Array(64),f=[e(),e(),e(),e()];J(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(o=0;o>7&&I(t[0],s,t[0]),B(t[3],t[0],t[1]),0)}(h,i))return-1;for(o=0;o=0},t.sign.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(64);return rt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(ft(t),64!==t.length)throw new Error("bad secret key size");for(var e=new Uint8Array(32),n=0;n0)r.loading[t].push(n);else{r.loading[t]=[n];var i=we.createScriptRequest(r.getPath(t,e)),o=r.receivers.create((function(e){if(r.receivers.remove(o),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var s=function(t){t||i.cleanup()},a=0;a>>6)+u(128|63&e):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|63&e)},m=function(t){return t.replace(/[^\x00-\x7F]/g,v)},g=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[c.charAt(n>>>18),c.charAt(n>>>12&63),e>=2?"=":c.charAt(n>>>6&63),e>=1?"=":c.charAt(63&n)].join("")},y=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,g)},b=function(){function t(t,e,n,r){var i=this;this.clear=e,this.timer=t((function(){i.timer&&(i.timer=r(i.timer))}),n)}return t.prototype.isRunning=function(){return null!==this.timer},t.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},t}(),w=(d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function x(t){window.clearTimeout(t)}function _(t){window.clearInterval(t)}var C=function(t){function e(e,n){return t.call(this,setTimeout,x,e,(function(t){return n(),null}))||this}return w(e,t),e}(b),k=function(t){function e(e,n){return t.call(this,setInterval,_,e,(function(t){return n(),t}))||this}return w(e,t),e}(b),S={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new C(0,t)},method:function(t){for(var e=[],n=1;n0)for(r=0;r=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},getCloseError:function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}},bt=yt,wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(t){function e(e,n){var r=t.call(this)||this;return r.id=e,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return wt(e,t),e.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},e.prototype.send=function(t){return this.transport.send(t)},e.prototype.send_event=function(t,e,n){var r={event:t,data:e};return n&&(r.channel=n),B.debug("Event sent",r),this.send(bt.encodeMessage(r))},e.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},e.prototype.close=function(){this.transport.close()},e.prototype.bindListeners=function(){var t=this,e={message:function(e){var n;try{n=bt.decodeMessage(e)}catch(n){t.emit("error",{type:"MessageParseError",error:n,data:e.data})}if(void 0!==n){switch(B.debug("Event recd",n),n.event){case"pusher:error":t.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":t.emit("ping");break;case"pusher:pong":t.emit("pong")}t.emit("message",n)}},activity:function(){t.emit("activity")},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){L(e,(function(e,n){t.transport.unbind(n,e)}))};L(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=bt.getCloseAction(t),n=bt.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(tt),_t=function(){function t(t,e){this.transport=t,this.callback=e,this.bindListeners()}return t.prototype.close=function(){this.unbindListeners(),this.transport.close()},t.prototype.bindListeners=function(){var t=this;this.onMessage=function(e){var n;t.unbindListeners();try{n=bt.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new xt(n.id,t.transport),activityTimeout:n.activityTimeout}):(t.finish(n.action,{error:n.error}),t.transport.close())},this.onClosed=function(e){t.unbindListeners();var n=bt.getCloseAction(e)||"backoff",r=bt.getCloseError(e);t.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},t.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},t.prototype.finish=function(t,e){this.callback(T({transport:this.transport,action:t},e))},t}(),Ct=function(){function t(t,e){this.channel=t;var n=e.authTransport;if(void 0===we.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=e,this.authOptions=(e||{}).auth||{}}return t.prototype.composeQuery=function(t){var e="socket_id="+encodeURIComponent(t)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)e+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return e},t.prototype.authorize=function(e,n){t.authorizers=t.authorizers||we.getAuthorizers(),t.authorizers[this.type].call(this,we,e,n)},t}(),kt=function(){function t(t,e){this.timeline=t,this.options=e||{}}return t.prototype.send=function(t,e){this.timeline.isEmpty()||this.timeline.send(we.TimelineTransport.getAgent(this,t),e)},t}(),St=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Ot=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),At=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Lt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Et=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Mt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Pt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Nt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jt=function(t){function e(e,n){var r=t.call(this,(function(t,n){B.debug("No callbacks on "+e+" for "+t)}))||this;return r.name=e,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return Nt(e,t),e.prototype.authorize=function(t,e){return e(!1,{auth:""})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new Tt("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=U("triggeringClientEvents");B.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(t,e,this.name)},e.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},e.prototype.handleEvent=function(t){var e=t.event,n=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,n,{})},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)},e.prototype.subscribe=function(){var t=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(e,n){e?(B.error(n),t.emit("pusher:subscription_error",n)):(n=n,t.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:t.name}))})))},e.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},e.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},e.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},e}(tt),Rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rt(e,t),e.prototype.authorize=function(t,e){return Yt.createAuthorizer(this,this.pusher.config).authorize(t,e)},e}(jt),$t=function(){function t(){this.reset()}return t.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null},t.prototype.each=function(t){var e=this;L(this.members,(function(n,r){t(e.get(r))}))},t.prototype.setMyID=function(t){this.myID=t},t.prototype.onSubscription=function(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)},t.prototype.addMember=function(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)},t.prototype.removeMember=function(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e},t.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},t}(),It=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.members=new $t,r}return It(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(!t){if(void 0===(e=e).channel_data){var i=U("authenticationEndpoint");return B.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+i),void n("Invalid auth response")}var o=JSON.parse(e.channel_data);r.members.setMyID(o.user_id)}n(t,e)}))},e.prototype.handleEvent=function(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var n=t.data,r={};t.user_id&&(r.user_id=t.user_id),this.emit(e,n,r)}},e.prototype.handleInternalEvent=function(t){var e=t.event,n=t.data;switch(e){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))},e.prototype.disconnect=function(){this.members.reset(),t.prototype.disconnect.call(this)},e}(Dt),Ht=n(0),Ut=n(1),Ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.key=null,e}return Ft(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(!0,e);else{var i=e.shared_secret;if(i)r.key=Object(Ut.decodeBase64)(i),delete e.shared_secret,n(!1,e);else{var o="No shared_secret key in auth payload for encrypted channel: "+r.name;n(!0,o)}}}))},e.prototype.trigger=function(t,e){throw new Et("Client events are not currently supported for encrypted channels")},e.prototype.handleEvent=function(e){var n=e.event,r=e.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):t.prototype.handleEvent.call(this,e)},e.prototype.handleEncryptedEvent=function(t,e){var n=this;if(this.key)if(e.ciphertext&&e.nonce){var r=Object(Ut.decodeBase64)(e.ciphertext);if(r.length0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new C(t||0,(function(){e.disconnectInternally(),e.connect()}))},e.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},e.prototype.setUnavailableTimer=function(){var t=this;this.unavailableTimer=new C(this.options.unavailableTimeout,(function(){t.updateState("unavailable")}))},e.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},e.prototype.sendActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new C(this.options.pongTimeout,(function(){t.timeline.error({pong_timed_out:t.options.pongTimeout}),t.retryIn(0)}))},e.prototype.resetActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new C(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return T({},t,{message:function(t){e.resetActivityCheck(),e.emit("message",t)},ping:function(){e.send_event("pusher:pong",{})},activity:function(){e.resetActivityCheck()},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return T({},t,{connected:function(t){e.activityTimeout=Math.min(e.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),e.clearUnavailableTimer(),e.setConnection(t.connection),e.socket_id=e.connection.id,e.updateState("connected",{socket_id:e.socket_id})}})},e.prototype.buildErrorCallbacks=function(){var t=this,e=function(e){return function(n){n.error&&t.emit("error",{type:"WebSocketError",error:n.error}),e(n)}};return{tls_only:e((function(){t.usingTLS=!0,t.updateStrategy(),t.retryIn(0)})),refused:e((function(){t.disconnect()})),backoff:e((function(){t.retryIn(1e3)})),retry:e((function(){t.retryIn(0)}))}},e.prototype.setConnection=function(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()},e.prototype.abandonConnection=function(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}},e.prototype.updateState=function(t,e){var n=this.state;if(this.state=t,n!==t){var r=t;"connected"===r&&(r+=" with new socket ID "+e.socket_id),B.debug("State changed",n+" -> "+r),this.timeline.info({state:t,params:e}),this.emit("state_change",{previous:n,current:t}),this.emit(t,e)}},e.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},e}(tt),Vt=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){return 0===t.indexOf("private-encrypted-")?Yt.createEncryptedChannel(t,e):0===t.indexOf("private-")?Yt.createPrivateChannel(t,e):0===t.indexOf("presence-")?Yt.createPresenceChannel(t,e):Yt.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return function(t){var e=[];return L(t,(function(t){e.push(t)})),e}(this.channels)},t.prototype.find=function(t){return this.channels[t]},t.prototype.remove=function(t){var e=this.channels[t];return delete this.channels[t],e},t.prototype.disconnect=function(){L(this.channels,(function(t){t.disconnect()}))},t}(),Yt={createChannels:function(){return new Vt},createConnectionManager:function(t,e){return new qt(t,e)},createChannel:function(t,e){return new jt(t,e)},createPrivateChannel:function(t,e){return new Dt(t,e)},createPresenceChannel:function(t,e){return new Bt(t,e)},createEncryptedChannel:function(t,e){return new zt(t,e)},createTimelineSender:function(t,e){return new kt(t,e)},createAuthorizer:function(t,e){return e.authorizer?e.authorizer(t,e):new Ct(t,e)},createHandshake:function(t,e){return new _t(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new gt(t,e,n)}},Kt=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return Yt.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},t.prototype.isAlive=function(){return this.livesLeft>0},t.prototype.reportDeath=function(){this.livesLeft-=1},t}(),Gt=function(){function t(t,e){this.strategies=t,this.loop=Boolean(e.loop),this.failFast=Boolean(e.failFast),this.timeout=e.timeout,this.timeoutLimit=e.timeoutLimit}return t.prototype.isSupported=function(){return R(this.strategies,S.method("isSupported"))},t.prototype.connect=function(t,e){var n=this,r=this.strategies,i=0,o=this.timeout,s=null,a=function(l,u){u?e(null,u):(i+=1,n.loop&&(i%=r.length),i0&&(i=new C(n.timeout,(function(){o.abort(),r(!0)}))),o=t.connect(e,(function(t,e){t&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(t,e))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(t){o.forceMinPriority(t)}}},t}(),Xt=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return R(this.strategies,S.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=P(t,(function(t,r,i,o){return t.connect(e,n(r,o))}));return{abort:function(){M(r,Jt)},forceMinPriority:function(t){M(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,i){n[t].error=r,r?function(t){return function(t,e){for(var n=0;n=S.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new Gt([o],{timeout:2*r.latency+1e3,failFast:!0})))}var s=S.now(),a=i.pop().connect(t,(function r(o,l){o?(te(n),i.length>0?(s=S.now(),a=i.pop().connect(t,r)):e(o)):(function(t,e,n){var r=we.getLocalStorage();if(r)try{r[Qt(t)]=I({timestamp:S.now(),transport:e,latency:n})}catch(t){}}(n,l.transport.name,S.now()-s),e(null,l))}));return{abort:function(){a.abort()},forceMinPriority:function(e){t=e,a&&a.forceMinPriority(e)}}},t}();function Qt(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function te(t){var e=we.getLocalStorage();if(e)try{delete e[Qt(t)]}catch(t){}}var ee=function(){function t(t,e){var n=e.delay;this.strategy=t,this.options={delay:n}}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n,r=this.strategy,i=new C(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}(),ne=function(){function t(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}return t.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},t.prototype.connect=function(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)},t}(),re=function(){function t(t){this.strategy=t}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.strategy.connect(t,(function(t,r){r&&n.abort(),e(t,r)}));return n},t}();function ie(t){return function(){return t.isSupported()}}var oe,se=function(t,e){var n={};function r(r,i,o,s,a){var l=e(t,r,i,o,s,a);return n[r]=l,l}var i,o={hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath},s=T({},o,{useTLS:!0}),a={hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath},l={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new Kt({lives:2,minPingDelay:1e4,maxPingDelay:t.activity_timeout}),c=new Kt({lives:2,minPingDelay:1e4,maxPingDelay:t.activity_timeout}),f=r("ws","ws",3,o,u),h=r("wss","ws",3,s,u),p=r("sockjs","sockjs",1,a),d=r("xhr_streaming","xhr_streaming",1,a,c),v=r("xdr_streaming","xdr_streaming",1,a,c),m=r("xhr_polling","xhr_polling",1,a),g=r("xdr_polling","xdr_polling",1,a),y=new Gt([f],l),b=new Gt([h],l),w=new Gt([p],l),x=new Gt([new ne(ie(d),d,v)],l),_=new Gt([new ne(ie(m),m,g)],l),C=new Gt([new ne(ie(x),new Xt([x,new ee(_,{delay:4e3})]),_)],l),k=new ne(ie(C),C,w);return i=t.useTLS?new Xt([y,new ee(k,{delay:2e3})]):new Xt([y,new ee(b,{delay:2e3}),new ee(k,{delay:5e3})]),new Zt(new re(new ne(ie(f),i,k)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},ae={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new Ot),t.close()},e.onerror=function(e){t.emit("error",e),t.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}},le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(t){function e(e,n,r){var i=t.call(this)||this;return i.hooks=e,i.method=n,i.url=r,i}return le(e,t),e.prototype.start=function(t){var e=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){e.close()},we.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)},e.prototype.close=function(){this.unloader&&(we.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},e.prototype.onChunk=function(t,e){for(;;){var n=this.advanceBuffer(e);if(!n)break;this.emit("chunk",{status:t,data:n})}this.isBufferTooLong(e)&&this.emit("buffer_too_long")},e.prototype.advanceBuffer=function(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null},e.prototype.isBufferTooLong=function(t){return this.position===t.length&&t.length>262144},e}(tt);!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(oe||(oe={}));var ce=oe,fe=1;function he(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+fe++}function pe(t){return Math.floor(Math.random()*t)}var de,ve=function(){function t(t,e){this.hooks=t,this.session=pe(1e3)+"/"+function(t){for(var e=[],n=0;n0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}},be={createStreamingSocket:function(t){return this.createSocket(me,t)},createPollingSocket:function(t){return this.createSocket(ge,t)},createSocket:function(t,e){return new ve(t,e)},createXHR:function(t,e){return this.createRequest(ye,t,e)},createRequest:function(t,e,n){return new ue(t,e,n)},createXDR:function(t,e){return this.createRequest(ae,t,e)}},we={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:a,getDefaultStrategy:se,Transports:dt,transportConnectionInitializer:function(){var t=this;t.timeline.info(t.buildTimelineMessage({transport:t.name+(t.options.useTLS?"s":"")})),t.hooks.isInitialized()?t.changeState("initialized"):t.hooks.file?(t.changeState("initializing"),l.load(t.hooks.file,{useTLS:t.options.useTLS},(function(e,n){t.hooks.isInitialized()?(t.changeState("initialized"),n(!0)):(e&&t.onError(e),t.onClose(),n(!1))}))):t.onClose()},HTTPFactory:be,TimelineTransport:V,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(t){var e=this;window.Pusher=t;var n=function(){e.onDocumentBody(t.ready)};window.JSON?n():l.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:F,jsonp:z}},onDocumentBody:function(t){var e=this;document.body?t():setTimeout((function(){e.onDocumentBody(t)}),0)},createJSONPRequest:function(t,e){return new q(t,e)},createScriptRequest:function(t){return new W(t)},getLocalStorage:function(){try{return window.localStorage}catch(t){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return mt},createWebSocket:function(t){return new(this.getWebSocketAPI())(t)},createSocketRequest:function(t,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(t,e);if(this.isXDRSupported(0===e.indexOf("https:")))return this.HTTPFactory.createXDR(t,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var t=this.getXHRAPI();return Boolean(t)&&void 0!==(new t).withCredentials},isXDRSupported:function(t){var e=t?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===e},addUnloadListener:function(t){void 0!==window.addEventListener?window.addEventListener("unload",t,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",t)},removeUnloadListener:function(t){void 0!==window.addEventListener?window.removeEventListener("unload",t,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",t)}};!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(de||(de={}));var xe=de,_e=function(){function t(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return t.prototype.log=function(t,e){t<=this.options.level&&(this.events.push(T({},e,{timestamp:S.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(xe.ERROR,t)},t.prototype.info=function(t){this.log(xe.INFO,t)},t.prototype.debug=function(t){this.log(xe.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=T({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(r,(function(t,r){t||n.sent++,e&&e(t,r)})),!0},t.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},t}(),Ce=function(){function t(t,e,n,r){this.name=t,this.priority=e,this.transport=n,this.options=r||{}}return t.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},t.prototype.connect=function(t,e){var n=this;if(!this.isSupported())return ke(new Pt,e);if(this.priority>1,c=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=u}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*l-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[n+p]=255&s,p+=d,s/=256,u-=8);t[n+p-d]|=128*v}},"p77/":function(t,e,n){var r=n("1I3E");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},tQ2B:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("Rn+g"),o=n("MLWZ"),s=n("g7np"),a=n("w0Vi"),l=n("OTTw"),u=n("LYNF");t.exports=function(t){return new Promise((function(e,c){var f=t.data,h=t.headers;r.isFormData(f)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",v=t.auth.password||"";h.Authorization="Basic "+btoa(d+":"+v)}var m=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),o(m,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:t,request:p};i(e,c,r),p=null}},p.onabort=function(){p&&(c(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){c(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),c(u(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=n("eqyj"),y=(t.withCredentials||l(m))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(h,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),c(t),p=null)})),void 0===f&&(f=null),p.send(f)}))}},tjlA:function(t,e,n){"use strict";(function(t){var r=n("H7XF"),i=n("kVK+"),o=n("49sm");function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=n;oa&&(n=a-l),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function N(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function R(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function $(t,e,n,r,o){return o||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return $(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return $(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("yLpj"))},"uI/v":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"/*\n Name: lucario\n Author: Raphael Amorim\n\n Original Lucario color scheme (https://github.com/raphamorim/lucario)\n*/\n",""])},vDqi:function(t,e,n){t.exports=n("zuR4")},w0Vi:function(t,e,n){"use strict";var r=n("xTJ+"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},wHeC:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".dot-typing {\n position: relative;\n left: -9999px;\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: #fff;\n color: #fff;\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n -webkit-animation: dot-typing 1s infinite linear;\n animation: dot-typing 1s infinite linear;\n}\n@-webkit-keyframes dot-typing {\n0% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n16.667% {\n box-shadow: 9984px -10px 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n33.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n50% {\n box-shadow: 9984px 0 0 0 #fff, 9999px -10px 0 0 #fff, 10014px 0 0 0 #fff;\n}\n66.667% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n83.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px -10px 0 0 #fff;\n}\n100% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n}\n@keyframes dot-typing {\n0% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n16.667% {\n box-shadow: 9984px -10px 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n33.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n50% {\n box-shadow: 9984px 0 0 0 #fff, 9999px -10px 0 0 #fff, 10014px 0 0 0 #fff;\n}\n66.667% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n83.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px -10px 0 0 #fff;\n}\n100% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n}\n",""])},wouM:function(t,e,n){t.exports=function(){var t="__v-click-outside",e="undefined"!=typeof window,n="undefined"!=typeof navigator,r=e&&("ontouchstart"in window||n&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function i(e,n){var i=function(t){var e="function"==typeof t;if(!e&&"object"!=typeof t)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||r,isActive:!(!1===t.isActive)}}(n.value),o=i.handler,s=i.middleware;i.isActive&&(e[t]=i.events.map((function(t){return{event:t,handler:function(t){return function(t){var e=t.el,n=t.event,r=t.handler,i=t.middleware,o=n.path||n.composedPath&&n.composedPath(),s=o?o.indexOf(e)<0:!e.contains(n.target);n.target!==e&&s&&i(n)&&r(n)}({event:t,el:e,handler:o,middleware:s})}}})),e[t].forEach((function(n){var r=n.event,i=n.handler;return setTimeout((function(){e[t]&&document.documentElement.addEventListener(r,i,!1)}),0)})))}function o(e){(e[t]||[]).forEach((function(t){return document.documentElement.removeEventListener(t.event,t.handler,!1)})),delete e[t]}var s=e?{bind:i,update:function(t,e){var n=e.value,r=e.oldValue;JSON.stringify(n)!==JSON.stringify(r)&&(o(t),i(t,{value:n}))},unbind:o}:{};return{install:function(t){t.directive("click-outside",s)},directive:s}}()},xAGQ:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},"xTJ+":function(t,e,n){"use strict";var r=n("HSsa"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n0&&n.unshift(e.target),t.contains(e.target)||function(t,e){if(!t||!e)return!1;for(var n=0,r=e.length;n1)for(var n=1;n-1}function c(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function f(t,e){for(var n in e)t[n]=e[n];return t}var h={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,l=i.$route,u=i._routerViewCache||(i._routerViewCache={}),c=0,h=!1;i&&i._routerRoot!==i;){var d=i.$vnode?i.$vnode.data:{};d.routerView&&c++,d.keepAlive&&i._directInactive&&i._inactive&&(h=!0),i=i.$parent}if(o.routerViewDepth=c,h){var v=u[a],m=v&&v.component;return m?(v.configProps&&p(m,o,v.route,v.configProps),s(m,o,r)):s()}var g=l.matched[c],y=g&&g.components[a];if(!g||!y)return u[a]=null,s();u[a]={component:y},o.registerRouteInstance=function(t,e){var n=g.instances[a];(e&&n!==t||!e&&n===t)&&(g.instances[a]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){g.instances[a]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==g.instances[a]&&(g.instances[a]=t.componentInstance)};var b=g.props&&g.props[a];return b&&(f(u[a],{route:l,configProps:b}),p(y,o,l,b)),s(y,o,r)}};function p(t,e,n,r){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,r);if(i){i=e.props=f({},i);var o=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(o[s]=i[s],delete i[s])}}var d=/[!'()*]/g,v=function(t){return"%"+t.charCodeAt(0).toString(16)},m=/%2C/g,g=function(t){return encodeURIComponent(t).replace(d,v).replace(m,",")},y=decodeURIComponent;function b(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=y(n.shift()),i=n.length>0?y(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function w(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return g(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(g(e)):r.push(g(e)+"="+g(t)))})),r.join("&")}return g(e)+"="+g(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var x=/\/?$/;function _(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=C(o)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:T(e,i),matched:t?S(t):[]};return n&&(s.redirectedFrom=T(n,i)),Object.freeze(s)}function C(t){if(Array.isArray(t))return t.map(C);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=C(t[n]);return e}return t}var k=_(null,{path:"/"});function S(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function T(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||w)(r)+i}function O(t,e){return e===k?t===e:!!e&&(t.path&&e.path?t.path.replace(x,"")===e.path.replace(x,"")&&t.hash===e.hash&&A(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&A(t.query,e.query)&&A(t.params,e.params)))}function A(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?A(r,i):String(r)===String(i)}))}function L(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),u=e&&e.path||"/",c=l.path?L(l.path,u,n||i.append):u,h=function(t,e,n){void 0===e&&(e={});var r,i=n||b;try{r=i(t||"")}catch(t){r={}}for(var o in e)r[o]=e[o];return r}(l.query,i.query,r&&r.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:c,query:h,hash:p}}var X,J=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,h=null==u?"router-link-active":u,p=null==c?"router-link-exact-active":c,d=null==this.activeClass?h:this.activeClass,v=null==this.exactActiveClass?p:this.exactActiveClass,m=s.redirectedFrom?_(null,G(s.redirectedFrom),null,n):s;l[v]=O(r,m),l[d]=this.exact?l[v]:function(t,e){return 0===t.path.replace(x,"/").indexOf(e.path.replace(x,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var g=function(t){Q(t)&&(e.replace?n.replace(o,J):n.push(o,J))},y={click:Q};Array.isArray(this.event)?this.event.forEach((function(t){y[t]=g})):y[this.event]=g;var b={class:l},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:s,navigate:g,isActive:l[d],isExactActive:l[v]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?t():t("span",{},w)}if("a"===this.tag)b.on=y,b.attrs={href:a};else{var C=function t(e){var n;if(e)for(var r=0;r-1&&(a.params[h]=n.params[h]);return a.path=K(c.path,a.params),l(c,a,s)}if(a.path){a.params={};for(var p=0;p=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function kt(t){return function(e,n,r){var i=!1,o=0,s=null;St(t,(function(t,e,n,a){if("function"==typeof t&&void 0===t.cid){i=!0,o++;var l,c=At((function(e){var i;((i=e).__esModule||Ot&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:X.extend(e),n.components[a]=e,--o<=0&&r()})),f=At((function(t){var e="Failed to resolve async component "+a+": "+t;s||(s=u(t)?t:new Error(e),r(s))}));try{l=t(c,f)}catch(t){f(t)}if(l)if("function"==typeof l.then)l.then(c,f);else{var h=l.component;h&&"function"==typeof h.then&&h.then(c,f)}}})),i||r()}}function St(t,e){return Tt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Tt(t){return Array.prototype.concat.apply([],t)}var Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function At(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Lt=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);Lt._name="NavigationDuplicated";var Et=function(t,e){this.router=t,this.base=function(t){if(!t)if(tt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=k,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Mt(t,e,n,r){var i=St(t,(function(t,r,i,o){var s=function(t,e){"function"!=typeof t&&(t=X.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,r,i,o)})):n(s,r,i,o)}));return Tt(r?i.reverse():i)}function Pt(t,e){if(e)return function(){return t.apply(e,arguments)}}Et.prototype.listen=function(t){this.cb=t},Et.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Et.prototype.onError=function(t){this.errorCbs.push(t)},Et.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(e){e(t)})))}))},Et.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(t){!c(Lt,t)&&u(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)};if(O(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o(new Lt(t));var s=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function It(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Bt(t){wt?xt(It(t)):window.location.hash=t}function Ht(t){wt?_t(It(t)):window.location.replace(It(t))}var Ut=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}),(function(t){c(Lt,t)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Et),Ft=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=rt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!wt&&!1!==t.fallback,this.fallback&&(e="hash"),tt||(e="abstract"),this.mode=e,e){case"history":this.history=new Nt(this,t.base);break;case"hash":this.history=new Rt(this,t.base,this.fallback);break;case"abstract":this.history=new Ut(this,t.base);break;default:0}},zt={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ft.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},zt.currentRoute.get=function(){return this.history&&this.history.current},Ft.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Nt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Rt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Ft.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},Ft.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},Ft.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},Ft.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ft.prototype.onError=function(t){this.history.onError(t)},Ft.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Ft.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Ft.prototype.go=function(t){this.history.go(t)},Ft.prototype.back=function(){this.go(-1)},Ft.prototype.forward=function(){this.go(1)},Ft.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Ft.prototype.resolve=function(t,e,n){var r=G(t,e=e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?E(t+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Ft.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==k&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ft.prototype,zt),Ft.install=function t(e){if(!t.installed||X!==e){t.installed=!0,X=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",h),e.component("RouterLink",Z);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Ft.version="3.1.6",tt&&window.Vue&&window.Vue.use(Ft);var qt=Ft,Vt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Yt=function(){function t(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?t._t("default"):t._e(),t._v(" "),t.table&&0===t.rowsCount?n("div",{staticClass:"w-full flex px-6 py-12 justify-center items-center bg-white shadow"},[t._v("\n "+t._s(t.emptyTableMessage)+"\n ")]):t._e(),t._v(" "),t.table?t._e():n("div",{staticClass:"w-full bg-gray-50 p-4 md:p-6 pb-8"},[t._t("default")],2)],2)}),[],!1,null,null,null).exports,Ae=Object(ke.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"w-full border border-blue-500 bg-blue-100 flex items-center rounded text-blue-900 px-2 py-3 text-sm"},[this._t("default")],2)}),[],!1,null,null,null).exports,Le={props:{open:{type:Boolean,required:!1,default:!1}}},Ee=Object(ke.a)(Le,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"fixed bottom-0 inset-x-0 px-4 pb-4 sm:inset-0 sm:flex sm:items-center sm:justify-center"},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"fixed inset-0 transition-opacity",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0","x-transition:enter-end":"opacity-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100","x-transition:leave-end":"opacity-0"}},[e("div",{staticClass:"absolute inset-0 bg-gray-500 opacity-75"})]),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:this.open,expression:"open"}],staticClass:"bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:max-w-3xl sm:w-full",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","x-transition:enter-end":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave-end":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},[e("div",{staticClass:"bg-white"},[this._t("default")],2)])])}),[],!1,null,null,null).exports,Me=(n("9+H4"),Object(ke.a)({},(function(){var t=this.$createElement;this._self._c;return this._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"px-5"},[e("div",{staticClass:"dot-typing"})])}],!1,null,null,null).exports),Pe={props:{headers:{type:Array,required:!0,default:function(){return[]}},rows:{type:Array,required:!0,default:function(){return[]}}}},Ne=Object(ke.a)(Pe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"-my-2 py-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-8"},[n("div",{staticClass:"align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-b border-gray-200"},[n("table",{staticClass:"min-w-full"},[n("thead",[n("tr",t._l(t.headers,(function(e){return n("th",{key:e.value,staticClass:"px-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-700 uppercase tracking-wider"},[t._v("\n "+t._s(e.label)+"\n ")])})),0)]),t._v(" "),n("tbody",{staticClass:"bg-white"},t._l(t.rows,(function(e){return n("tr",{key:e.id,staticClass:"cursor-pointer hover:bg-gray-100",on:{click:function(n){return t.$emit("row-clicked",e)}}},t._l(t.headers,(function(r){return n("td",{key:r.value,staticClass:"px-6 py-4 whitespace-no-wrap border-b border-gray-200"},[t._t("row",[t._v("\n "+t._s(e[r.value])+"\n ")],{row:e,header:r})],2)})),0)})),0)])])])])}),[],!1,null,null,null).exports,je={computed:{message:function(){return this.$root.flash.message},type:function(){return this.$root.flash.type}}},Re=Object(ke.a)(je,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.message?n("div",{staticClass:"w-full px-3 py-4 rounded flex items-center justify-between text-white my-3",class:{"bg-green-400":"success"===t.type,"bg-red-600":"error"===t.type}},[n("span",{staticClass:"inline-block"},[t._v("\n "+t._s(t.message)+"\n ")]),t._v(" "),"error"===t.type?n("v-svg",{attrs:{icon:"cross-circle",width:"24",height:"24"}}):t._e(),t._v(" "),"success"===t.type?n("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#fff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e()],1):t._e()}),[],!1,null,null,null).exports,De={props:{label:{type:String,required:!1,default:""},value:{type:String,required:!1},options:{type:Array,required:!1,default:function(){return[]}},id:{type:String,required:!0},errors:{type:Array,required:!1,default:function(){return[]}}}},$e=Object(ke.a)(De,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.label?n("label",{staticClass:"block text-sm font-medium leading-5 text-gray-700"},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),t._l(t.options,(function(e){return n("div",{key:e.value,staticClass:"flex items-center mt-3"},[n("input",{staticClass:"form-radio h-4 w-4 text-sha-green-500 transition duration-150 ease-in-out",attrs:{type:"radio",name:"form-input",id:e.value},domProps:{value:e.value,checked:t.value===e.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),t._v(" "),n("label",{staticClass:"ml-3 cursor-pointer",attrs:{for:e.value}},[n("span",{staticClass:"block text-sm leading-5 font-medium text-gray-700 capitalize"},[t._v("\n "+t._s(e.label)+"\n ")])])])})),t._v(" "),t.errors.length>0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()],2)}),[],!1,null,null,null).exports,Ie={props:{status:{type:String,required:!0}}},Be=Object(ke.a)(Ie,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex items-center"},[n("span",{staticClass:"px-2 inline-flex text-xs leading-5 font-semibold rounded-full capitalize",class:{"bg-green-200 text-green-800":"active"===t.status,"bg-blue-100 text-blue-800":["new","initializing","installing","pending"].includes(t.status)}},[t._v("\n "+t._s(t.status)+"\n ")]),t._v(" "),"active"!==t.status?n("span",{staticClass:"ml-3"},[n("spinner",{staticClass:"w-4 h-4 text-blue-800"})],1):t._e()])}),[],!1,null,null,null).exports,He={data:function(){return{open:!1,projectsOpen:!1}},methods:{signout:function(){axios.post("/logout").then((function(){window.location.href="/"}))},handleOutsideClick:function(t){if(t.target.className){if("string"==typeof t.target.className&&t.target.className.match(/image-button/))return;if(t.target.className.baseVal&&t.target.className.baseVal.match(/image-button/))return}this.open&&(this.open=!this.open)}}},Ue=Object(ke.a)(He,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col min-h-screen"},[n("nav",{staticClass:"bg-gray-800"},[n("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[n("div",{staticClass:"flex items-center justify-between h-16"},[n("div",{staticClass:"flex items-center"},[t._m(0),t._v(" "),n("div",{staticClass:"hidden md:block"},[n("div",{staticClass:"ml-10 flex items-baseline"},[n("router-link",{staticClass:"px-3 py-2 rounded-md text-sm font-medium text-white focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/dashboard"}},[t._v("Dashboard")])],1)])]),t._v(" "),n("div",{staticClass:"hidden md:block"},[n("div",{staticClass:"ml-4 flex items-center md:ml-6"},[n("button",{staticClass:"p-1 border-2 border-transparent text-gray-400 rounded-full hover:text-white focus:outline-none focus:text-white focus:bg-gray-700"}),t._v(" "),n("div",{staticClass:"ml-3 relative"},[n("div",{staticClass:"flex items-center image-button",on:{click:function(e){t.open=!t.open}}},[n("button",{staticClass:"image-button max-w-xs flex items-center text-sm rounded-full text-white focus:outline-none focus:shadow-solid"},[n("img",{staticClass:"image-button h-8 w-8 rounded-full",attrs:{src:t.$root.auth.photo_url,alt:t.$root.auth.name}})]),t._v(" "),n("span",{staticClass:"inline-block ml-4 cursor-pointer image-button text-sm text-white"},[t._v("\n "+t._s(t.$root.auth.name)+"\n ")]),t._v(" "),n("svg",{staticClass:"image-button text-white w-4 ml-2 cursor-pointer h-4 -mt-1",attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3",stroke:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M19 9l-7 7-7-7"}})])]),t._v(" "),n("transition",{attrs:{name:"account-menu"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"},{name:"click-outside",rawName:"v-click-outside",value:t.handleOutsideClick,expression:"handleOutsideClick"}],staticClass:"account-menu origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg"},[n("div",{staticClass:"rounded-md bg-white shadow-xs"},[n("div",{staticClass:"py-1"},[n("router-link",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{to:"/account"}},[t._v("Account")])],1),t._v(" "),n("div",{staticClass:"py-1"},[n("a",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{href:"/docs"}},[t._v("Docs")])]),t._v(" "),n("div",{staticClass:"py-1"},[n("router-link",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{to:"/account/teams"}},[t._v("Teams")])],1),t._v(" "),n("div",{staticClass:"py-1"},[n("router-link",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",attrs:{to:"/account/subscription"}},[t._v("Subscription")])],1),t._v(" "),n("div",{staticClass:"py-1 cursor-pointer"},[n("a",{staticClass:"block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900",on:{click:function(e){return e.preventDefault(),t.signout(e)}}},[t._v("Sign out")])])])])])],1)])]),t._v(" "),n("div",{staticClass:"-mr-2 flex md:hidden"},[n("button",{staticClass:"image-button inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:bg-gray-700 focus:text-white",on:{click:function(e){t.open=!t.open}}},[n("svg",{staticClass:"h-6 w-6 image-button",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{staticClass:"image-button",class:{hidden:t.open,"inline-flex":!t.open},attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}}),t._v(" "),n("path",{staticClass:"hidden",class:{hidden:!t.open,"inline-flex":t.open},attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])])])])]),t._v(" "),n("div",{staticClass:"md:hidden",class:{block:t.open,hidden:!t.open}},[n("div",{staticClass:"px-2 pt-2 pb-3 sm:px-3"},[n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-white focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/dashboard"}},[t._v("Dashboard")])],1),t._v(" "),n("div",{staticClass:"pt-4 pb-3 border-t border-gray-700"},[n("div",{staticClass:"flex items-center px-5"},[n("div",{staticClass:"flex-shrink-0"},[n("img",{staticClass:"h-10 w-10 rounded-full",attrs:{src:t.$root.auth.photo_url,alt:t.$root.auth.name}})]),t._v(" "),n("div",{staticClass:"ml-3"},[n("div",{staticClass:"text-base font-medium leading-none text-white"},[t._v("\n "+t._s(t.$root.auth.name)+"\n ")]),t._v(" "),n("div",{staticClass:"mt-1 text-sm font-medium leading-none text-gray-400"},[t._v("\n "+t._s(t.$root.auth.email)+"\n ")])])]),t._v(" "),n("div",{staticClass:"mt-3 px-2"},[n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/account"}},[t._v("Your account")]),t._v(" "),n("a",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{href:"/docs"}},[t._v("Docs")]),t._v(" "),n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/account/teams"}},[t._v("Teams")]),t._v(" "),n("router-link",{staticClass:"block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",attrs:{to:"/account/subscription"}},[t._v("Subscription")]),t._v(" "),n("a",{staticClass:"mt-1 block px-3 py-2 rounded-md text-base font-medium text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700",on:{click:function(e){return e.preventDefault(),t.signout(e)}}},[t._v("Sign out")])],1)])])]),t._v(" "),n("main",{staticClass:"px-3 flex-grow mb-12 md:mb-24"},[n("div",{staticClass:"max-w-7xl mx-auto py-6 sm:px-6 lg:px-8"},[t._t("default")],2)]),t._v(" "),n("div",{staticClass:"bg-gray-800"},[n("div",{staticClass:"max-w-screen-xl mx-auto py-8 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[n("div",{staticClass:"flex justify-center md:order-2"},[n("a",{staticClass:"ml-6 text-gray-400 hover:text-gray-500",attrs:{href:"https://twitter.com/bahdcoder"}},[n("span",{staticClass:"sr-only"},[t._v("Twitter")]),t._v(" "),n("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"}})])]),t._v(" "),n("a",{staticClass:"ml-6 text-gray-400 hover:text-gray-500",attrs:{href:"https://github.com/bahdcoder"}},[n("span",{staticClass:"sr-only"},[t._v("GitHub")]),t._v(" "),n("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z","clip-rule":"evenodd"}})])])]),t._v(" "),n("div",{staticClass:"mt-8 md:mt-0 md:order-1"},[n("p",{staticClass:"text-center text-base leading-6 text-gray-400"},[t._v("\n © "+t._s((new Date).getFullYear())+" A Project by Kati\n Frantz\n ")])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex-shrink-0"},[e("img",{staticClass:"h-12 w-12",attrs:{src:"/assets/images/logo-light-small.svg",alt:""}})])}],!1,null,null,null).exports,Fe={props:{type:{type:String,required:!1,default:"button"},label:{type:String,required:!1},href:{type:String,required:!1},full:{type:Boolean,default:!1},target:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},component:{default:"button"},to:{required:!1},loading:{type:Boolean,required:!1,default:!1}}},ze=Object(ke.a)(Fe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.component,{tag:"component",staticClass:"w-full capitalize inline-flex justify-center py-2 px-4 border border-transparent text-sm leading-5 font-medium rounded-sm text-white bg-sha-green-500 hover:bg-sha-green-400 focus:outline-none focus:border-sha-green-600 focus:shadow-outline-sha-green active:bg-sha-green-600 transition duration-150 ease-in-out",class:{"cursor-not-allowed":t.loading||t.disabled,"md:w-auto":!t.full},attrs:{to:t.to,type:t.type,href:t.href,target:t.target,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[t.loading?t._t("loader",[n("pulse",{staticClass:"py-1"})]):n("span",[t._v(t._s(t.label))])],2)}),[],!1,null,null,null).exports,We={props:{width:{required:!1,default:20},height:{required:!1,default:20},fill:{type:String,required:!1,default:"text-gray-700"}}},qe=(n("B3JZ"),Object(ke.a)(We,(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{class:"rotate animated infinite fill-current "+this.fill,attrs:{width:this.width,height:this.height,"data-icon":"social-media",viewBox:"0 0 16 16"}},[e("path",{attrs:{d:"M9.5 4c.4 0 .8-.1 1.1-.3C12 4.5 12.9 6 13 7.6c0 .5.5.9 1 .9.6 0 1-.4 1-1v-.2c-.2-2.4-1.5-4.4-3.5-5.5-.1-1-.9-1.8-2-1.8s-2 .9-2 2 .9 2 2 2zM4 8.5c0-.7-.4-1.3-.9-1.7.3-1.4 1.2-2.6 2.5-3.3.3-.1.6-.4.6-.9s-.4-1-1-1c-.2 0-.3 0-.5.1-1.9 1-3.2 2.8-3.6 5C.4 7.1 0 7.8 0 8.5c0 1.1.9 2 2 2s2-.9 2-2zm8.8 1.2c-1.1 0-2 .9-2 2v.3c-.8.6-1.8.9-2.8.9-1.2 0-2.3-.4-3.2-1.1-.2-.2-.4-.3-.7-.3-.6 0-1 .4-1 1 0 .3.1.6.3.8C4.6 14.4 6.2 15 8 15c1.5 0 3-.5 4.1-1.3.2.1.5.1.7.1 1.1 0 2-.9 2-2s-.9-2.1-2-2.1z","fill-rule":"evenodd"}})])}),[],!1,null,null,null).exports),Ve={props:{name:{type:String,required:!0},label:{type:String,required:!1},help:{type:String,required:!1},checked:{type:Boolean,required:!1,default:!1}},methods:{toggle:function(t){this.$emit("input",!this.checked)}}},Ye=Object(ke.a)(Ve,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"relative flex items-start"},[n("div",{staticClass:"absolute flex items-center h-5"},[n("input",{staticClass:"cursor-pointer form-checkbox h-4 w-4 text-sha-green-600 transition duration-150 ease-in-out",attrs:{id:t.name,type:"checkbox"},domProps:{checked:t.checked},on:{click:t.toggle}})]),t._v(" "),n("div",{staticClass:"pl-7 text-sm leading-5"},[n("label",{staticClass:"font-medium text-gray-700 cursor-pointer",attrs:{for:t.name}},[t._v("\n "+t._s(t.label)+"\n ")]),t._v(" "),t.help?n("p",{staticClass:"text-gray-500"},[t._v("\n "+t._s(t.help)+"\n ")]):t._e(),t._v(" "),t._t("help")],2)])}),[],!1,null,null,null).exports,Ke={props:{type:{type:String,required:!1,default:"button"},label:{type:String,required:!1},full:{type:Boolean,default:!1},disabled:{type:Boolean,required:!1,default:!1},component:{default:"button"},to:{required:!1},loading:{type:Boolean,required:!1,default:!1}}},Ge=Object(ke.a)(Ke,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"w-full inline-flex justify-center rounded-sm border border-transparent px-4 py-2 bg-red-600 text-base leading-6 font-medium text-white shadow-sm hover:bg-red-500 focus:outline-none focus:border-red-700 focus:shadow-outline-red transition ease-in-out duration-150 sm:text-sm sm:leading-5",class:{"cursor-not-allowed":t.loading,"md:w-auto":!t.full},attrs:{to:t.to,type:t.type,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[t.loading?n("pulse",{staticClass:"px-4 py-1"}):n("span",[t._v(t._s(t.label))])],1)}),[],!1,null,null,null).exports,Xe={props:{help:{type:String,required:!1},label:{type:String,required:!1},value:{type:String,required:!1},errors:{type:Array,default:function(){return[]}},name:{type:String,required:!0},type:{type:String,required:!1,default:"text"},placeholder:{type:String,default:"",required:!1},readonly:{type:Boolean,required:!1,default:!1},rows:{type:Number,required:!1,default:3}}},Je=Object(ke.a)(Xe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{class:{"mb-3":t.help}},[t.label?n("label",{staticClass:"block text-sm font-medium leading-5 text-gray-700",attrs:{for:t.name}},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),t._t("help",[n("small",{staticClass:"text-gray-700"},[t._v("\n "+t._s(t.help)+"\n ")])])],2),t._v(" "),n("div",{staticClass:"mt-1 rounded-md shadow-sm"},[n("input",{ref:"input",class:{"appearance-none block w-full px-3 py-2 border rounded-md focus:outline-none transition duration-150 ease-in-out sm:text-sm sm:leading-5":!0,"border-gray-300 focus:border-blue-300 focus:shadow-outline-blue placeholder-gray-400":0===t.errors.length,"border-red-300 focus:shadow-outline-red focus:border-red-300 placeholder-red-300":t.errors.length>0},attrs:{type:t.type,readonly:t.readonly,placeholder:t.placeholder,name:t.name,id:t.name},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})]),t._v(" "),t.errors.length>0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()])}),[],!1,null,null,null).exports,Ze=n("j5TT"),Qe=(n("p77/"),n("c3yf"),n("AvDn"),{components:{codemirror:Ze.codemirror},props:{value:{type:String,required:!1,default:""}},data:function(){return{options:{theme:"lucario",tabSize:4,line:!1,mode:"shell",lineNumbers:!1,readOnly:!0}}}}),tn=Object(ke.a)(Qe,(function(){var t=this.$createElement;return(this._self._c||t)("codemirror",{attrs:{options:this.options,value:this.value}})}),[],!1,null,null,null).exports;function en(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nn(t){for(var e=1;e0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()])}),[],!1,null,null,null).exports,un={props:{open:{type:Boolean,required:!1,default:!1},confirming:{type:Boolean,required:!1,default:!1},confirmText:{type:String,required:!1,default:"Are you sure you want to perform this action ?"},confirmHeading:{type:String,required:!1,default:"Confirm action"},confirmButton:{type:String,required:!1,default:"Proceed"}}},cn=Object(ke.a)(un,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed bottom-0 inset-x-0 px-4 pb-4 sm:inset-0 sm:flex sm:items-center sm:justify-center"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed inset-0 transition-opacity",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0","x-transition:enter-end":"opacity-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100","x-transition:leave-end":"opacity-0"}},[n("div",{staticClass:"absolute inset-0 bg-gray-500 opacity-75"})]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"bg-white rounded-md overflow-hidden shadow-xl transform transition-all sm:max-w-lg sm:w-full",attrs:{"x-transition:enter":"ease-out duration-300","x-transition:enter-start":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","x-transition:enter-end":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave":"ease-in duration-200","x-transition:leave-start":"opacity-100 translate-y-0 sm:scale-100","x-transition:leave-end":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},[n("div",{staticClass:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},[n("div",{staticClass:"sm:flex sm:items-start"},[n("div",{staticClass:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},[n("svg",{staticClass:"h-6 w-6 text-red-600",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}})])]),t._v(" "),n("div",{staticClass:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},[n("h3",{staticClass:"text-lg leading-6 font-medium text-gray-900"},[t._v("\n "+t._s(t.confirmHeading)+"\n ")]),t._v(" "),n("div",{staticClass:"mt-2"},[n("p",{staticClass:"text-sm leading-5 text-gray-700"},[t._v("\n "+t._s(t.confirmText)+"\n ")])])])])]),t._v(" "),n("div",{staticClass:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},[n("span",{staticClass:"flex w-full rounded-sm shadow-sm sm:ml-3 sm:w-auto"},[n("button",{staticClass:"inline-flex justify-center w-full rounded-sm border border-transparent px-4 py-2 bg-red-600 text-base leading-6 font-medium text-white shadow-sm hover:bg-red-500 focus:outline-none focus:border-red-700 focus:shadow-outline-red transition ease-in-out duration-150 sm:text-sm sm:leading-5",class:{"cursor-not-allowed":t.confirming},attrs:{disabled:t.confirming,type:"button"},on:{click:function(e){return t.$emit("confirm")}}},[t.confirming?n("pulse"):n("span",[t._v(t._s(t.confirmButton))])],1)]),t._v(" "),n("span",{staticClass:"mt-3 flex w-full rounded-sm shadow-sm sm:mt-0 sm:w-auto"},[n("button",{staticClass:"inline-flex justify-center w-full rounded-sm border border-gray-300 px-4 py-2 bg-white text-base leading-6 font-medium text-gray-700 shadow-sm hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline transition ease-in-out duration-150 sm:text-sm sm:leading-5",attrs:{type:"button"},on:{click:function(e){return t.$emit("close")}}},[t._v("\n Cancel\n ")])])])])])}),[],!1,null,null,null).exports;function fn(t){return function(t){if(Array.isArray(t))return hn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},attrs:{rows:t.rows,type:t.type,readonly:t.readonly,placeholder:t.placeholder,name:t.name,id:t.name},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})]),t._v(" "),t.errors.length>0?n("p",{staticClass:"mt-2 text-sm text-red-600"},[t._v("\n "+t._s(t.errors[0])+"\n ")]):t._e()])}),[],!1,null,null,null).exports;function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xn={props:{notifications:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{headers:[{label:"Issued",value:"created_at"},{label:"Message",value:"message"},{label:"",value:"actions"}],showLogsModal:!1,selectedAlert:null}},methods:{showLogs:function(t){this.selectedAlert=t,this.showLogsModal=!0},hideLogs:function(){this.selectedAlert=null,this.showLogsModal=!1},deleteNotification:function(t){this.$root.updateServer(t.server_id,function(t){for(var e=1;e0?n("div",{staticClass:"mb-5"},[n("card",{attrs:{table:!0,title:"Server alerts",rowsCount:t.notifications.length}},[n("v-table",{attrs:{rows:t.notifications,headers:t.headers},scopedSlots:t._u([{key:"row",fn:function(e){var r=e.row,i=e.header;return["name"===i.value?n("span",{staticClass:"text-gray-800 text-sm"},[t._v("\n "+t._s(r.name)+"\n ")]):t._e(),t._v(" "),"actions"!==i.value?n("span",{staticClass:"text-gray-800 text-sm capitalize"},[t._v("\n "+t._s(r[i.value])+"\n ")]):t._e(),t._v(" "),"actions"===i.value?n("div",{staticClass:"flex "},[n("button",{staticClass:"border-2 border-gray-500 p-1 rounded hover:bg-gray-100 shadow mr-6",on:{click:function(e){return t.showLogs(r)}}},[n("svg",{attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",width:"20",height:"20"}},[n("path",{attrs:{d:"M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}})])]),t._v(" "),n("delete-button",{on:{click:function(e){return t.deleteNotification(r)}}})],1):t._e()]}}],null,!1,2158493332)})],1),t._v(" "),n("modal",{attrs:{open:t.showLogsModal}},[t.selectedAlert?n("div",{staticClass:"p-6"},[n("div",[n("h2",{staticClass:"text-lg mb-3 text-gray-800"},[t._v("\n Server alert logs\n ")]),t._v(" "),n("info",{staticClass:"my-5"},[t._v("\n An error occurred when we tried to execute an action on\n your server. Sometimes this means we couldn't SSH into\n your server, or there was a runtime error while\n executing a command. If there is an error output, please\n review it below. If you can't resolve this error from\n your nesabox dashboard, please kindly SSH into your\n server and manually resolve it, or contact us if you\n need any assistance.\n ")]),t._v(" "),n("v-codemirror",{attrs:{value:t.selectedAlert.output}})],1),t._v(" "),n("div",{staticClass:"w-full md:flex md:justify-end"},[n("v-trans-button",{staticClass:"mt-4",attrs:{label:"Close"},on:{click:t.hideLogs}})],1)]):t._e()])],1):t._e()}),[],!1,null,null,null).exports,Cn={data:function(){var t=function(t){return"/account".concat(t?"/":"").concat(t)};return{nav:[{label:"Account",value:"account",to:t("")},{label:"Subscription",value:"subscription",to:t("subscription")},{label:"Teams",value:"teams",to:t("teams")},{label:"SSH keys",value:"sshkeys",to:t("ssh-keys")},{label:"Server providers",value:"server-providers",to:t("server-providers")},{label:"Source control",value:"source-control",to:t("source-control")}],loading:!0}},computed:{active:function(){return this.$route.path}}},kn=Object(ke.a)(Cn,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("sidebar-layout",{attrs:{nav:this.nav,showNav:!0,active:this.active}},[e("template",{slot:"header"},[e("h3",{staticClass:"text-lg mb-3"},[this._v("Your Account")])]),this._v(" "),this._t("content")],2)],1)}),[],!1,null,null,null).exports,Sn={props:{nav:{type:Array,required:!1,default:function(){return[]}},showNav:{required:!1,type:Boolean,default:!1},active:{type:String,required:!1}},computed:{routeName:function(){return this.$route.name}}},Tn=Object(ke.a)(Sn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("layout",[t._t("header"),t._v(" "),n("div",{staticClass:"w-full flex flex-wrap"},[t.showNav?n("div",{staticClass:"w-full md:w-1/5"},[n("nav",t._l(t.nav,(function(e){return n("router-link",{key:e.value,staticClass:"mt-1 group flex items-center px-3 py-2 text-sm leading-5 font-medium rounded-md focus:outline-none transition ease-in-out duration-150",class:{"bg-gray-200 text-gray-900 hover:text-gray-900":t.active===e.to||e.to.includes("/account/teams")&&"account.team.team-id"===t.routeName,"hover:bg-gray-50 text-gray-700":t.active!==e.to},attrs:{to:e.to}},[["mongodb","mysql","mysql8","mariadb","postgresql"].includes(e.value)?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"}})]):t._e(),t._v(" "),"logs"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-400 group-hover:text-gray-500 group-focus:text-gray-500":t.active!==e.to,"text-gray-600 group-hover:text-gray-700 group-focus:text-gray-700":t.active===e.to},attrs:{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M9 2C8.44772 2 8 2.44772 8 3C8 3.55228 8.44772 4 9 4H11C11.5523 4 12 3.55228 12 3C12 2.44772 11.5523 2 11 2H9Z",fill:"#4A5568"}}),t._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 5C4 3.89543 4.89543 3 6 3C6 4.65685 7.34315 6 9 6H11C12.6569 6 14 4.65685 14 3C15.1046 3 16 3.89543 16 5V16C16 17.1046 15.1046 18 14 18H6C4.89543 18 4 17.1046 4 16V5ZM7 9C6.44772 9 6 9.44772 6 10C6 10.5523 6.44772 11 7 11H7.01C7.56228 11 8.01 10.5523 8.01 10C8.01 9.44772 7.56228 9 7.01 9H7ZM10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11H13C13.5523 11 14 10.5523 14 10C14 9.44772 13.5523 9 13 9H10ZM7 13C6.44772 13 6 13.4477 6 14C6 14.5523 6.44772 15 7 15H7.01C7.56228 15 8.01 14.5523 8.01 14C8.01 13.4477 7.56228 13 7.01 13H7ZM10 13C9.44772 13 9 13.4477 9 14C9 14.5523 9.44772 15 10 15H13C13.5523 15 14 14.5523 14 14C14 13.4477 13.5523 13 13 13H10Z",fill:"#4A5568"}})]):t._e(),t._v(" "),"sites"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M9 17V7M9 17C9 18.1046 8.10457 19 7 19H5C3.89543 19 3 18.1046 3 17V7C3 5.89543 3.89543 5 5 5H7C8.10457 5 9 5.89543 9 7M9 17C9 18.1046 9.89543 19 11 19H13C14.1046 19 15 18.1046 15 17M9 7C9 5.89543 9.89543 5 11 5H13C14.1046 5 15 5.89543 15 7M15 17V7M15 17C15 18.1046 15.8954 19 17 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H17C15.8954 5 15 5.89543 15 7",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e(),t._v(" "),"teams"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"}})]):t._e(),t._v(" "),"subscription"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})]):t._e(),t._v(" "),"sshkeys"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}})]):t._e(),t._v(" "),"files"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}})]):t._e(),t._v(" "),"settings"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}}),t._v(" "),n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}})]):t._e(),t._v(" "),"source-control"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-7 00 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"}})]):t._e(),t._v(" "),"account"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}}),t._v(" "),n("path",{attrs:{d:"M12 14C8.13401 14 5 17.134 5 21H19C19 17.134 15.866 14 12 14Z",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e(),t._v(" "),"server-providers"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8 16C5.23858 16 3 13.7614 3 11C3 8.55154 4.75992 6.51413 7.08376 6.08376C7.51412 3.75992 9.55154 2 12 2C14.4485 2 16.4859 3.75992 16.9162 6.08376C19.2401 6.51413 21 8.55154 21 11C21 13.7614 18.7614 16 16 16M9 19L12 22M12 22L15 19M12 22V10",stroke:"#4A5568","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]):t._e(),t._v(" "),"databases"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"}})]):t._e(),t._v(" "),"ssl"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}})]):t._e(),t._v(" "),"scheduler"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}})]):t._e(),t._v(" "),"meta"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"}})]):t._e(),t._v(" "),"network"===e.value?n("svg",{staticClass:"flex-shrink-0 -ml-1 mr-3 h-6 w-6 transition ease-in-out duration-150",class:{"text-gray-500 group-hover:text-gray-600 group-focus:text-gray-600":t.active!==e.to,"text-gray-700 group-hover:text-gray-800 group-focus:text-gray-800":t.active===e.to},attrs:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"}})]):t._e(),t._v(" "),n("span",{staticClass:"capitalize truncate"},[t._v(t._s(e.label))])])})),1)]):t._e(),t._v(" "),n("div",{staticClass:"w-full md:pl-6",class:{"md:w-4/5":t.showNav}},[t._t("default")],2)])],2)}),[],!1,null,null,null).exports,On={props:{type:{type:String,required:!1,default:"button"},label:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1}}},An=Object(ke.a)(On,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"w-full md:w-auto py-2 px-4 border border-gray-300 rounded-sm text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-50 active:text-gray-800 transition duration-150 ease-in-out",attrs:{type:t.type,disabled:t.disabled},on:{click:function(e){return t.$emit("click")}}},[t._v("\n "+t._s(t.label)+"\n")])}),[],!1,null,null,null).exports,Ln={},En=Object(ke.a)(Ln,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"border-2 border-red-500 p-1 rounded hover:bg-red-100 shadow",attrs:{type:"button"},on:{click:function(e){return t.$emit("click")}}},[n("svg",{staticClass:"cursor-pointer",attrs:{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M10 14L12 12M12 12L14 10M12 12L10 10M12 12L14 14M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"#f05252","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})])])}),[],!1,null,null,null).exports;function Mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pn(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"success",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3;this.flash={type:n,message:t},setTimeout((function(){e.flash={message:"",type:""}}),r)},fetchSite:function(t,e){var n=this;axios.get("/api/servers/".concat(t,"/sites/").concat(e)).then((function(t){var r=t.data;n.sites=Pn({},n.sites,Nn({},e,r))}))},updateServer:function(t,e){this.servers=Pn({},this.servers,Nn({},t,e));var n=this.allServers.servers.map((function(n){return n.id!==t?n:e})),r=this.allServers.team_servers.map((function(n){return n.id!==t?n:e}));this.allServers={servers:n,team_servers:r}},fetchServer:function(t){var e=this;axios.get("/api/servers/".concat(t)).then((function(n){var r=n.data;e.updateServer(t,r)}))}},mounted:function(){this.auth}})},"9+H4":function(t,e,n){"use strict";var r=n("e/T+");n.n(r).a},"9rSQ":function(t,e,n){"use strict";var r=n("xTJ+");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},"9tPo":function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},AvDn:function(t,e,n){!function(t){"use strict";t.defineMode("shell",(function(){var e={};function n(t,n){for(var r=0;r1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=a(n,"("==n?"quote":"{"==n?"def":"string"),c(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function c(t,e){return(e.tokens[0]||s)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return c(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")}(n("VrN/"))},B3JZ:function(t,e,n){"use strict";var r=n("Ebme");n.n(r).a},CgaS:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("MLWZ"),o=n("9rSQ"),s=n("UnBK"),a=n("SntB");function l(t){this.defaults=t,this.interceptors={request:new o,response:new o}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=a(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=l},DfZB:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},Ebme:function(t,e,n){var r=n("zFnv");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},"Ge+w":function(t,e){},H7XF:function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),s=r[0],a=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;sa?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},HSsa:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var _=/-(\w)/g,C=x((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),k=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,T=x((function(t){return t.replace(S,"-$1").toLowerCase()})),O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function L(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,Z=G&&G.indexOf("edge/")>0,Q=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===K),tt=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(V)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===z&&(z=!V&&!Y&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),z},ot=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,lt="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=M,ct=0,ft=function(){this.id=ct++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){y(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(o&&!w(i,"default"))s=!1;else if(""===s||s===T(t)){var l=Ut(String,i.type);(l<0||a0&&(ce((l=t(l,(n||"")+"_"+r))[0])&&ce(c)&&(f[u]=yt(c.text+l[0].text),l.shift()),f.push.apply(f,l)):a(l)?ce(c)?f[u]=yt(c.text+l):""!==l&&f.push(yt(l)):ce(l)&&ce(c)?f[u]=yt(c.text+l.text):(s(e._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),f.push(l)));return f}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=lt?Reflect.ownKeys(t):Object.keys(t),i=0;i0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!o&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ve(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=me(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),F(i,"$stable",s),F(i,"$key",a),F(i,"$hasNormal",o),i}function ve(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function me(t,e){return function(){return t[e]}}function ge(t,e){var n,r,i,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return un.now()})}function cn(){var t,e;for(an=ln(),on=!0,tn.sort((function(t,e){return t.id-e.id})),sn=0;snsn&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},hn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ft(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},hn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},hn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},hn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:M,set:M};function dn(t,e,n){pn.get=function(){return this[e][n]},pn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,pn)}var vn={lazy:!0};function mn(t,e,n){var r=!it();"function"==typeof n?(pn.get=r?gn(e):yn(n),pn.set=M):(pn.get=n.get?r&&!1!==n.cache?gn(e):yn(n.get):M,pn.set=n.set||M),Object.defineProperty(t,e,pn)}function gn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yn(t){return function(){return t.call(this,this)}}function bn(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var wn=0;function xn(t){var e=t.options;if(t.super){var n=xn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&L(t.extendOptions,r),(e=t.options=Dt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function _n(t){this._init(t)}function Cn(t){return t&&(t.Ctor.options.name||t.tag)}function kn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===u.call(n)&&t.test(e));var n}function Sn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var s=n[o];if(s){var a=Cn(s.componentOptions);a&&!e(a)&&Tn(n,o,r,i)}}}function Tn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=wn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(xn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ke(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=he(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;Ot(t,"$attrs",o&&o.attrs||r,null,!0),Ot(t,"$listeners",e._parentListeners||r,null,!0)}(e),Qe(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(n){Ot(t,n,e[n])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&kt(!1);var o=function(o){i.push(o);var s=It(o,e,n,t);Ot(r,o,s),o in t||dn(t,"_props",o)};for(var s in e)o(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?M:O(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Ft(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var s=r[o];i&&w(i,s)||(void 0,36!==(n=(s+"").charCodeAt(0))&&95!==n&&dn(t,"_data",s))}Tt(e,!0)}(t):Tt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],s="function"==typeof o?o:o.get;r||(n[i]=new hn(t,s||M,M,vn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i1?A(e):e;for(var n=A(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;iparseInt(this.max)&&Tn(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:L,mergeOptions:Dt,defineReactive:Ot},t.set=At,t.delete=Lt,t.nextTick=ee,t.observable=function(t){return Tt(t),t},t.options=Object.create(null),I.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,An),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Dt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)dn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)mn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,I.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=L({},s.options),i[r]=s,s}}(t),function(t){I.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(_n),Object.defineProperty(_n.prototype,"$isServer",{get:it}),Object.defineProperty(_n.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_n,"FunctionalRenderContext",{value:Pe}),_n.version="2.6.11";var Ln=v("style,class"),En=v("input,textarea,option,select,progress"),Mn=function(t,e,n){return"value"===n&&En(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Pn=v("contenteditable,draggable,spellcheck"),Nn=v("events,caret,typing,plaintext-only"),jn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Rn="http://www.w3.org/1999/xlink",Dn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$n=function(t){return Dn(t)?t.slice(6,t.length):""},In=function(t){return null==t||!1===t};function Bn(t,e){return{staticClass:Hn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Hn(t,e){return t?e?t+" "+e:t:e||""}function Un(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?hr(t,e,n):jn(e)?In(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Pn(e)?t.setAttribute(e,function(t,e){return In(e)||"false"===e?"false":"contenteditable"===t&&Nn(e)?e:"true"}(e,n)):Dn(e)?In(n)?t.removeAttributeNS(Rn,$n(e)):t.setAttributeNS(Rn,e,n):hr(t,e,n)}function hr(t,e,n){if(In(n))t.removeAttribute(e);else{if(X&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var pr={create:cr,update:cr};function dr(t,e){var n=e.elm,r=e.data,s=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Bn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Bn(e,n.data));return function(t,e){return o(t)||o(e)?Hn(t,Un(e)):""}(e.staticClass,e.class)}(e),l=n._transitionClasses;o(l)&&(a=Hn(a,Un(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var vr,mr,gr,yr,br,wr,xr={create:dr,update:dr},_r=/[\w).+\-_$\]]/;function Cr(t){var e,n,r,i,o,s=!1,a=!1,l=!1,u=!1,c=0,f=0,h=0,p=0;for(r=0;r=0&&" "===(v=t.charAt(d));d--);v&&_r.test(v)||(u=!0)}}else void 0===i?(p=r+1,i=t.slice(0,r).trim()):m();function m(){(o||(o=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:t.slice(0,yr),key:'"'+t.slice(yr+1)+'"'}:{exp:t,key:null};for(mr=t,yr=br=wr=0;!Hr();)Ur(gr=Br())?zr(gr):91===gr&&Fr(gr);return{exp:t.slice(0,br),key:t.slice(br+1,wr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Br(){return mr.charCodeAt(++yr)}function Hr(){return yr>=vr}function Ur(t){return 34===t||39===t}function Fr(t){var e=1;for(br=yr;!Hr();)if(Ur(t=Br()))zr(t);else if(91===t&&e++,93===t&&e--,0===e){wr=yr;break}}function zr(t){for(var e=t;!Hr()&&(t=Br())!==e;);}var Wr,qr="__r";function Vr(t,e,n){var r=Wr;return function i(){null!==e.apply(null,arguments)&&Gr(t,i,n,r)}}var Yr=Yt&&!(tt&&Number(tt[1])<=53);function Kr(t,e,n,r){if(Yr){var i=an,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Wr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Gr(t,e,n,r){(r||Wr).removeEventListener(t,e._wrapper||e,n)}function Xr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Wr=e.elm,function(t){if(o(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),se(n,r,Kr,Gr,Vr,e.context),Wr=void 0}}var Jr,Zr={create:Xr,update:Xr};function Qr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,s=e.elm,a=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=L({},l)),a)n in l||(s[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=r;var u=i(r)?"":String(r);ti(s,u)&&(s.value=u)}else if("innerHTML"===n&&Wn(s.tagName)&&i(s.innerHTML)){(Jr=Jr||document.createElement("div")).innerHTML=""+r+"";for(var c=Jr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}else if(r!==a[n])try{s[n]=r}catch(t){}}}}function ti(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return d(n)!==d(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ei={create:Qr,update:Qr},ni=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function ri(t){var e=ii(t.style);return t.staticStyle?L(t.staticStyle,e):e}function ii(t){return Array.isArray(t)?E(t):"string"==typeof t?ni(t):t}var oi,si=/^--/,ai=/\s*!important$/,li=function(t,e,n){if(si.test(e))t.style.setProperty(e,n);else if(ai.test(n))t.style.setProperty(T(e),n.replace(ai,""),"important");else{var r=ci(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(pi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function vi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(pi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function mi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&L(e,gi(t.name||"v")),L(e,t),e}return"string"==typeof t?gi(t):void 0}}var gi=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),yi=V&&!J,bi="transition",wi="animation",xi="transition",_i="transitionend",Ci="animation",ki="animationend";yi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xi="WebkitTransition",_i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",ki="webkitAnimationEnd"));var Si=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ti(t){Si((function(){Si(t)}))}function Oi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),di(t,e))}function Ai(t,e){t._transitionClasses&&y(t._transitionClasses,e),vi(t,e)}function Li(t,e,n){var r=Mi(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===bi?_i:ki,l=0,u=function(){t.removeEventListener(a,c),n()},c=function(e){e.target===t&&++l>=s&&u()};setTimeout((function(){l0&&(n=bi,c=s,f=o.length):e===wi?u>0&&(n=wi,c=u,f=l.length):f=(n=(c=Math.max(s,u))>0?s>u?bi:wi:null)?n===bi?o.length:l.length:0,{type:n,timeout:c,propCount:f,hasTransform:n===bi&&Ei.test(r[xi+"Property"])}}function Pi(t,e){for(;t.length1}function Ii(t,e){!0!==e.data.show&&ji(e)}var Bi=function(t){var e,n,r={},l=t.modules,u=t.nodeOps;for(e=0;ed?b(t,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&x(e,h,d)}(h,v,g,n,c):o(g)?(o(t.text)&&u.setTextContent(h,""),b(h,null,g,0,g.length-1,n)):o(v)?x(v,0,v.length-1):o(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),o(d)&&o(p=d.hook)&&o(p=p.postpatch)&&p(t,e)}}}function S(t,e,n){if(s(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,s.selected!==o&&(s.selected=o);else if(j(Wi(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function zi(t,e){return e.every((function(e){return!j(e,t)}))}function Wi(t){return"_value"in t?t._value:t.value}function qi(t){t.target.composing=!0}function Vi(t){t.target.composing&&(t.target.composing=!1,Yi(t.target,"input"))}function Yi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Ki(t){return!t.componentInstance||t.data&&t.data.transition?t:Ki(t.componentInstance._vnode)}var Gi={model:Hi,show:{bind:function(t,e,n){var r=e.value,i=(n=Ki(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ji(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Ki(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){t.style.display=t.__vOriginalDisplay})):Ri(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Xi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ji(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ji(We(e.children)):t}function Zi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[C(o)]=i[o];return e}function Qi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var to=function(t){return t.tag||ze(t)},eo=function(t){return"show"===t.name},no={name:"transition",props:Xi,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(to)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ji(i);if(!o)return i;if(this._leaving)return Qi(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=Zi(this),u=this._vnode,c=Ji(u);if(o.data.directives&&o.data.directives.some(eo)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!ze(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=L({},l);if("out-in"===r)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Qi(t,i);if("in-out"===r){if(ze(o))return u;var h,p=function(){h()};ae(l,"afterEnter",p),ae(l,"enterCancelled",p),ae(f,"delayLeave",(function(t){h=t}))}}return i}}},ro=L({tag:String,moveClass:String},Xi);function io(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function oo(t){t.data.newPos=t.elm.getBoundingClientRect()}function so(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var ao={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=Zi(this),a=0;a-1?Yn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Yn[t]=/HTMLUnknownElement/.test(e.toString())},L(_n.options.directives,Gi),L(_n.options.components,ao),_n.prototype.__patch__=V?Bi:M,_n.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),Qe(t,"beforeMount"),r=function(){t._update(t._render(),n)},new hn(t,r,M,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Qe(t,"mounted")),t}(this,t=t&&V?Gn(t):void 0,e)},V&&setTimeout((function(){H.devtools&&ot&&ot.emit("init",_n)}),0);var lo,uo=/\{\{((?:.|\r?\n)+?)\}\}/g,co=/[-.*+?^${}()|[\]\/\\]/g,fo=x((function(t){var e=t[0].replace(co,"\\$&"),n=t[1].replace(co,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),ho={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=jr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Nr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},po={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=jr(t,"style");n&&(t.staticStyle=JSON.stringify(ni(n)));var r=Nr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},vo=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mo=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wo="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",xo="((?:"+wo+"\\:)?"+wo+")",_o=new RegExp("^<"+xo),Co=/^\s*(\/?)>/,ko=new RegExp("^<\\/"+xo+"[^>]*>"),So=/^]+>/i,To=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mo=/&(?:lt|gt|quot|amp|#39);/g,Po=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,No=v("pre,textarea",!0),jo=function(t,e){return t&&No(t)&&"\n"===e[0]};function Ro(t,e){var n=e?Po:Mo;return t.replace(n,(function(t){return Eo[t]}))}var Do,$o,Io,Bo,Ho,Uo,Fo,zo,Wo=/^@|^v-on:/,qo=/^v-|^@|^:|^#/,Vo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ko=/^\(|\)$/g,Go=/^\[.*\]$/,Xo=/:(.*)$/,Jo=/^:|^\.|^v-bind:/,Zo=/\.[^.\]]+(?=[^\]]*$)/g,Qo=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,ns=x((function(t){return(lo=lo||document.createElement("div")).innerHTML=t,lo.textContent})),rs="_empty_";function is(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:cs(e),rawAttrsMap:{},parent:n,children:[]}}function os(t,e){var n,r;(r=Nr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Nr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=jr(t,"scope"),t.slotScope=e||jr(t,"slot-scope")):(e=jr(t,"slot-scope"))&&(t.slotScope=e);var n=Nr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Ar(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Rr(t,Qo);if(r){var i=ls(r),o=i.name,s=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=s,t.slotScope=r.value||rs}}else{var a=Rr(t,Qo);if(a){var l=t.scopedSlots||(t.scopedSlots={}),u=ls(a),c=u.name,f=u.dynamic,h=l[c]=is("template",[],t);h.slotTarget=c,h.slotTargetDynamic=f,h.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=h,!0})),h.slotScope=a.value||rs,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Nr(t,"name"))}(t),function(t){var e;(e=Nr(t,"is"))&&(t.component=e),null!=jr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Pr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+s+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ir(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ir(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ir(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===s)!function(t,e,n){var r=n&&n.number,i=Nr(t,"value")||"null";Or(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Pr(t,"change",Ir(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,s=i.number,a=i.trim,l=!o&&"range"!==r,u=o?"change":"range"===r?qr:"input",c="$event.target.value";a&&(c="$event.target.value.trim()"),s&&(c="_n("+c+")");var f=Ir(e,c);l&&(f="if($event.target.composing)return;"+f),Or(t,"value","("+e+")"),Pr(t,u,f,null,!0),(a||s)&&Pr(t,"blur","$forceUpdate()")}(t,r,i);else if(!H.isReservedTag(o))return $r(t,r,i),!1;return!0},text:function(t,e){e.value&&Or(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Or(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:vo,mustUseProp:Mn,canBeLeftOpenTag:mo,isReservedTag:qn,getTagNamespace:Vn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(ms)},ys=x((function(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ws=/\([^)]*?\);*$/,xs=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_s={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Cs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ks=function(t){return"if("+t+")return null;"},Ss={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function Ts(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var s=Os(t[o]);t[o]&&t[o].dynamic?i+=o+","+s+",":r+='"'+o+'":'+s+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Os(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Os(t)})).join(",")+"]";var e=xs.test(t.value),n=bs.test(t.value),r=xs.test(t.value.replace(ws,""));if(t.modifiers){var i="",o="",s=[];for(var a in t.modifiers)if(Ss[a])o+=Ss[a],_s[a]&&s.push(a);else if("exact"===a){var l=t.modifiers;o+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!l[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(As).join("&&")+")return null;"}(s)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function As(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=_s[t],r=Cs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ls={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:M},Es=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=Tr(t.modules,"transformCode"),this.dataGenFns=Tr(t.modules,"genData"),this.directives=L(L({},Ls),t.directives);var e=t.isReservedTag||P;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ms(t,e){var n=new Es(e);return{render:"with(this){return "+(t?Ps(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ps(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ns(t,e);if(t.once&&!t.onceProcessed)return js(t,e);if(t.for&&!t.forProcessed)return Ds(t,e);if(t.if&&!t.ifProcessed)return Rs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Hs(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?zs((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:C(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!o&&!s||r||(i+=",null"),o&&(i+=","+o),s&&(i+=(o?"":",null")+","+s),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Hs(e,n,!0);return"_c("+t+","+$s(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=$s(t,e));var i=t.inlineTemplate?null:Hs(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Ms(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+zs(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Is(t){return 1===t.type&&("slot"===t.tag||t.children.some(Is))}function Bs(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Rs(t,e,Bs,"null");if(t.for&&!t.forProcessed)return Ds(t,e,Bs);var r=t.slotScope===rs?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ps(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Hs(t,e,n,r,i){var o=t.children;if(o.length){var s=o[0];if(1===o.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?e.maybeComponent(s)?",1":",0":"";return""+(r||Ps)(s,e)+a}var l=n?function(t,e){for(var n=0,r=0;r]*>)","i")),h=t.replace(f,(function(t,n,r){return u=r.length,Ao(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),jo(c,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));l+=t.length-h.length,t=h,T(c,l-u,l)}else{var p=t.indexOf("<");if(0===p){if(To.test(t)){var d=t.indexOf("--\x3e");if(d>=0){e.shouldKeepComment&&e.comment(t.substring(4,d),l,l+d+3),C(d+3);continue}}if(Oo.test(t)){var v=t.indexOf("]>");if(v>=0){C(v+2);continue}}var m=t.match(So);if(m){C(m[0].length);continue}var g=t.match(ko);if(g){var y=l;C(g[0].length),T(g[1],y,l);continue}var b=k();if(b){S(b),jo(b.tagName,t)&&C(1);continue}}var w=void 0,x=void 0,_=void 0;if(p>=0){for(x=t.slice(p);!(ko.test(x)||_o.test(x)||To.test(x)||Oo.test(x)||(_=x.indexOf("<",1))<0);)p+=_,x=t.slice(p);w=t.substring(0,p)}p<0&&(w=t),w&&C(w.length),e.chars&&w&&e.chars(w,l-w.length,l)}if(t===n){e.chars&&e.chars(t);break}}function C(e){l+=e,t=t.substring(e)}function k(){var e=t.match(_o);if(e){var n,r,i={tagName:e[1],attrs:[],start:l};for(C(e[0].length);!(n=t.match(Co))&&(r=t.match(bo)||t.match(yo));)r.start=l,C(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=l,i}}function S(t){var n=t.tagName,l=t.unarySlash;o&&("p"===r&&go(n)&&T(r),a(n)&&r===n&&T(n));for(var u=s(n)||!!l,c=t.attrs.length,f=new Array(c),h=0;h=0&&i[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=i.length-1;u>=s;u--)e.end&&e.end(i[u].tag,n,o);i.length=s,r=s&&i[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,n,o):"p"===a&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}T()}(t,{warn:Do,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,s,c,f){var h=r&&r.ns||zo(t);X&&"svg"===h&&(o=function(t){for(var e=[],n=0;nl&&(a.push(o=t.slice(l,i)),s.push(JSON.stringify(o)));var u=Cr(r[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),l=i+r[0].length}return l':'
',Ks.innerHTML.indexOf(" ")>0}var Zs=!!V&&Js(!1),Qs=!!V&&Js(!0),ta=x((function(t){var e=Gn(t);return e&&e.innerHTML})),ea=_n.prototype.$mount;_n.prototype.$mount=function(t,e){if((t=t&&Gn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ta(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=Xs(r,{outputSourceRange:!1,shouldDecodeNewlines:Zs,shouldDecodeNewlinesForHref:Qs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,s=i.staticRenderFns;n.render=o,n.staticRenderFns=s}}return ea.call(this,t,e)},_n.compile=Xs,t.exports=_n}).call(this,n("yLpj"),n("URgk").setImmediate)},JEQr:function(t,e,n){"use strict";(function(e){var r=n("xTJ+"),i=n("yK9s"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(a=n("tQ2B")),a),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(o)})),t.exports=l}).call(this,n("8oxB"))},"KHd+":function(t,e,n){"use strict";function r(t,e,n,r,i,o,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},LYNF:function(t,e,n){"use strict";var r=n("OH9c");t.exports=function(t,e,n,i,o){var s=new Error(t);return r(s,e,n,i,o)}},Lmem:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},MLWZ:function(t,e,n){"use strict";var r=n("xTJ+");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))})))})),o=s.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},OH9c:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},OTTw:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},"Rn+g":function(t,e,n){"use strict";var r=n("LYNF");t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},SntB:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):void 0!==e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):void 0!==t[i]&&(n[i]=t[i])})),r.forEach(s,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var a=i.concat(o).concat(s),l=Object.keys(e).filter((function(t){return-1===a.indexOf(t)}));return r.forEach(l,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n("YBdB"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n("yLpj"))},UnBK:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("xAGQ"),o=n("Lmem"),s=n("JEQr");function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(a(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},"VrN/":function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=r||i||o,a=s&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),d=/PhantomJS/.test(t),v=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),m=/Android/.test(t),g=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=v||/Mac/.test(e),b=/\bCrOS\b/.test(t),w=/win/i.test(e),x=f&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,l=!0);var _=y&&(u||f&&(null==x||x<12.11)),C=n||s&&a>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var S,T=function(t,e){var n=t.className,r=k(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function O(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return O(t).appendChild(e)}function L(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}v?R=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(R=function(t){try{t.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function H(t,e){for(var n=0;n=e)return r+Math.min(s,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var V=[""];function Y(t){for(;V.length<=t;)V.push(K(V)+" ");return V[t]}function K(t){return t[t.length-1]}function G(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||Z.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&Q(t))||e.test(t):Q(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&nt.test(t)}function it(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var st=null;function at(t,e,n){var r;st=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:st=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:st=i)}return null!=r?r:st}var lt=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(s,a){var l="ltr"==a?"L":"R";if(0==s.length||"ltr"==a&&!t.test(s))return!1;for(var u,c=s.length,f=[],h=0;h-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function dt(t,e){var n=ht(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function yt(t){t.prototype.on=function(t,e){ft(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function bt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function wt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function _t(t){bt(t),wt(t)}function Ct(t){return t.target||t.srcElement}function kt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var St,Tt,Ot=function(){if(s&&a<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}();function At(t){if(null==St){var e=L("span","​");A(t,L("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(St=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=St?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Lt(t){if(null!=Tt)return Tt;var e=A(t,document.createTextNode("AخA")),n=S(e,0,1).getBoundingClientRect(),r=S(e,1,2).getBoundingClientRect();return O(t),!(!n||n.left==n.right)&&(Tt=r.right-n.right<3)}var Et,Mt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Pt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Nt="oncopy"in(Et=L("div"))||(Et.setAttribute("oncopy","return;"),"function"==typeof Et.oncopy),jt=null,Rt={},Dt={};function $t(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Rt[t]=e}function It(t){if("string"==typeof t&&Dt.hasOwnProperty(t))t=Dt[t];else if(t&&"string"==typeof t.name&&Dt.hasOwnProperty(t.name)){var e=Dt[t.name];"string"==typeof e&&(e={name:e}),(t=J(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return It("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return It("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Bt(t,e){e=It(e);var n=Rt[e.name];if(!n)return Bt(t,"text/plain");var r=n(t,e);if(Ht.hasOwnProperty(e.name)){var i=Ht[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)r[s]=e.modeProps[s];return r}var Ht={};function Ut(t,e){$(e,Ht.hasOwnProperty(t)?Ht[t]:Ht[t]={})}function Ft(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function zt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Wt(t,e,n){return!t.startState||t.startState(e,n)}var qt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Vt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e=t.first&&en?te(n,Vt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?te(t.line,e):n<0?te(t.line,0):t}(e,Vt(t,e.line).text.length)}function le(t,e){for(var n=[],r=0;r=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pose},qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},qt.prototype.backUp=function(t){this.pos-=t},qt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},qt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ue=function(t,e){this.state=t,this.lookAhead=e},ce=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function fe(t,e,n,r){var i=[t.state.modeGen],o={};we(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var s=n.state,a=function(r){n.baseTokens=i;var a=t.state.overlays[r],l=1,u=0;n.state=!0,we(t,e.text,a.mode,n,(function(t,e){for(var n=l;ut&&i.splice(l,1,t,i[l+1],r),l+=2,u=Math.min(t,r)}if(e)if(a.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;nt.options.maxHighlightLength&&Ft(t.doc.mode,r.state),o=fe(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function pe(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new ce(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=Vt(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof ue?u.lookAhead:0)<=o.modeFrontier))return a;var c=I(l.text,null,t.options.tabSize);(null==i||r>c)&&(i=a-1,r=c)}return i}(t,e,n),s=o>r.first&&Vt(r,o-1).stateAfter,a=s?ce.fromSaved(r,s,o):new ce(r,Wt(r.mode),o);return r.iter(o,e,(function(n){de(t,n.text,a);var r=a.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ce.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ce.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ce.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ce.fromSaved=function(t,e,n){return e instanceof ue?new ce(t,Ft(t.mode,e.state),n,e.lookAhead):new ce(t,Ft(t.mode,e),n)},ce.prototype.save=function(t){var e=!1!==t?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function ye(t,e,n,r){var i,o,s=t.doc,a=s.mode,l=Vt(s,(e=ae(s,e)).line),u=pe(t,e.line,n),c=new qt(l.text,t.options.tabSize,u);for(r&&(o=[]);(r||c.post.options.maxHighlightLength?(a=!1,s&&de(t,e,r,f.pos),f.pos=e.length,l=null):l=be(me(n,f,r.state,h),o),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!a||c!=l){for(;u=e:o.to>e);(r||(r=[])).push(new Ce(s,o.from,a?null:o.to))}}return r}(n,i,s),l=function(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from0&&a)for(var b=0;be)&&(!n||Pe(n,o.marker)<0)&&(n=o.marker)}return n}function $e(t,e,n,r,i){var o=Vt(t,e),s=_e&&o.markedSpans;if(s)for(var a=0;a=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ee(u.to,n)>=0:ee(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ee(u.from,r)<=0:ee(u.from,r)<0)))return!0}}}function Ie(t){for(var e;e=je(t);)t=e.find(-1,!0).line;return t}function Be(t,e){var n=Vt(t,e),r=Ie(n);return n==r?e:Xt(r)}function He(t,e){if(e>t.lastLine())return e;var n,r=Vt(t,e);if(!Ue(t,r))return e;for(;n=Re(r);)r=n.find(1,!0).line;return Xt(r)+1}function Ue(t,e){var n=_e&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ve=function(t,e,n){this.text=t,Le(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Ae(t)}Ve.prototype.lineNo=function(){return Xt(this)},yt(Ve);var Ke={},Ge={};function Xe(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Ge:Ke;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Je(t,e){var n=E("span",null,null,l?"padding-right: .1px":null),r={pre:E("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,s=void 0;r.pos=0,r.addToken=Qe,Lt(t.display.measure)&&(s=ut(o,t.doc.direction))&&(r.addToken=tn(r.addToken,s)),r.map=[],nn(o,r,he(t,o,e!=t.display.externalMeasured&&Xt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(At(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return dt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function Ze(t){var e=L("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Qe(t,e,n,r,i,o,l){if(e){var u,c=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;iu&&f.from<=u);h++);if(f.to>=c)return t(n,r,i,o,s,a,l);t(n,r.slice(0,f.to-u),i,o,null,a,l),o=null,r=r.slice(f.to-u),u=f.to}}}function en(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var s,a,l,u,c,f,h,p=i.length,d=0,v=1,m="",g=0;;){if(g==d){l=u=c=a="",h=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wd||_.collapsed&&x.to==d&&x.from==d)){if(null!=x.to&&x.to!=d&&g>x.to&&(g=x.to,u=""),_.className&&(l+=" "+_.className),_.css&&(a=(a?a+";":"")+_.css),_.startStyle&&x.from==d&&(c+=" "+_.startStyle),_.endStyle&&x.to==g&&(b||(b=[])).push(_.endStyle,x.to),_.title&&((h||(h={})).title=_.title),_.attributes)for(var C in _.attributes)(h||(h={}))[C]=_.attributes[C];_.collapsed&&(!f||Pe(f.marker,_)<0)&&(f=x)}else x.from>d&&g>x.from&&(g=x.from)}if(b)for(var k=0;k=p)break;for(var T=Math.min(p,g);;){if(m){var O=d+m.length;if(!f){var A=O>T?m.slice(0,T-d):m;e.addToken(e,A,s?s+l:l,c,d+A.length==g?u:"",a,h)}if(O>=T){m=m.slice(T-d),d=T;break}d=O,c=""}m=i.slice(o,o=n[v++]),s=Xe(n[v++],e.cm.options)}}else for(var L=1;Ln)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function En(t,e,n,r){return Nn(t,Pn(t,e),n,r)}function Mn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Dn(e.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;u&&rt(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var p;u>0&&(f=r="right"),i=t.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!i||!i.left&&!i.right)){var d=l.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+ir(t.display),top:d.top,bottom:d.bottom}:Rn}for(var v=i.top-e.rect.top,m=i.bottom-e.rect.top,g=(v+m)/2,y=e.view.measure.heights,b=0;be)&&(i=(o=l-a)-1,e>=l&&(s="right")),null!=i){if(r=t[u+2],a==l&&n==(r.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)r=t[2+(u-=3)],s="left";if("right"==n&&i==l-a)for(;u=0&&(n=t[i]).left==n.right;i--);return n}function In(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!a)return s("before"==u?l-1:l,"before"==u);function c(t,e,n){return s(n?t-1:t,1==a[e].level!=n)}var f=at(a,l,u),h=st,p=c(l,f,"before"==u);return null!=h&&(p.other=c(l,h,"before"!=u)),p}function Kn(t,e){var n=0;e=ae(t.doc,e),t.options.lineWrapping||(n=ir(t.display)*e.ch);var r=Vt(t.doc,e.line),i=ze(r)+Cn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Gn(t,e,n,r,i){var o=te(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Xn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Gn(r.first,0,null,-1,-1);var i=Jt(r,n),o=r.first+r.size-1;if(i>o)return Gn(r.first+r.size-1,Vt(r,o).text.length,null,1,1);e<0&&(e=0);for(var s=Vt(r,i);;){var a=tr(t,s,i,e,n),l=De(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==i)return u;s=Vt(r,i=u.line)}}function Jn(t,e,n,r){r-=zn(e);var i=e.text.length,o=ot((function(e){return Nn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=ot((function(e){return Nn(t,n,e).top>r}),o,i)}}function Zn(t,e,n,r){return n||(n=Pn(t,e)),Jn(t,e,n,Wn(t,e,Nn(t,n,r),"line").top)}function Qn(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function tr(t,e,n,r,i){i-=ze(e);var o=Pn(t,e),s=zn(e),a=0,l=e.text.length,u=!0,c=ut(e,t.doc.direction);if(c){var f=(t.options.lineWrapping?nr:er)(t,e,n,o,c,r,i);a=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var h,p,d=null,v=null,m=ot((function(e){var n=Nn(t,o,e);return n.top+=s,n.bottom+=s,!!Qn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=e,v=n),!0)}),a,l),g=!1;if(v){var y=r-v.left=w.bottom?1:0}return Gn(n,m=it(e.text,m,1),p,g,r-h)}function er(t,e,n,r,i,o,s){var a=ot((function(a){var l=i[a],u=1!=l.level;return Qn(Yn(t,te(n,u?l.to:l.from,u?"before":"after"),"line",e,r),o,s,!0)}),0,i.length-1),l=i[a];if(a>0){var u=1!=l.level,c=Yn(t,te(n,u?l.from:l.to,u?"after":"before"),"line",e,r);Qn(c,o,s,!0)&&c.top>s&&(l=i[a-1])}return l}function nr(t,e,n,r,i,o,s){var a=Jn(t,e,r,s),l=a.begin,u=a.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h=u||p.to<=l)){var d=Nn(t,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,v=dv)&&(c=p,f=v)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function rr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==jn){jn=L("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)jn.appendChild(document.createTextNode("x")),jn.appendChild(L("br"));jn.appendChild(document.createTextNode("x"))}A(t.measure,jn);var n=jn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),O(t.measure),n||1}function ir(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=L("span","xxxxxxxxxx"),n=L("pre",[e],"CodeMirror-line-like");A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function or(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=t.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:sr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function sr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ar(t){var e=rr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/ir(t.display)-3);return function(i){if(Ue(t.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s0&&(l=Vt(t.doc,u.line).text).length==u.ch){var c=I(l,l.length,t.options.tabSize)-l.length;u=te(u.line,Math.max(0,Math.round((o-Sn(t.display).left)/ir(t.display))-c))}return u}function cr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)_e&&Be(t.doc,e)i.viewFrom?pr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)pr(t);else if(e<=i.viewFrom){var o=dr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(t)}else if(n>=i.viewTo){var s=dr(t,e,e,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):pr(t)}else{var a=dr(t,e,e,-1),l=dr(t,n,n+r,1);a&&l?(i.view=i.view.slice(0,a.index).concat(on(t,a.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):pr(t)}var u=i.externalMeasured;u&&(n=i.lineN&&e=r.viewTo)){var o=r.view[cr(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==H(s,n)&&s.push(n)}}}function pr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function dr(t,e,n,r){var i,o=cr(t,e),s=t.display.view;if(!_e||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l0){if(o==s.length-1)return null;i=a+s[o].size-e,o++}else i=a-e;e+=i,n+=i}for(;Be(t.doc,n)!=n;){if(o==(r<0?0:s.length-1))return null;n+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||a.to().linee||e==n&&s.to==e)&&(r(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(v,n||0,null==r?h:r,(function(t,e,i,f){var m="ltr"==i,g=p(t,m?"left":"right"),y=p(e-1,m?"right":"left"),b=null==n&&0==t,w=null==r&&e==h,x=0==f,_=!v||f==v.length-1;if(y.top-g.top<=3){var C=(u?w:b)&&_,k=(u?b:w)&&x?a:(m?g:y).left,S=C?l:(m?y:g).right;c(k,g.top,S-k,g.bottom)}else{var T,O,A,L;m?(T=u&&b&&x?a:g.left,O=u?l:d(t,i,"before"),A=u?a:d(e,i,"after"),L=u&&w&&_?l:y.right):(T=u?d(t,i,"before"):a,O=!u&&b&&x?l:g.right,A=!u&&w&&_?a:y.left,L=u?d(e,i,"after"):l),c(T,g.top,O-T,g.bottom),g.bottom0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function _r(t){t.state.focused||(t.display.input.focus(),kr(t))}function Cr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Sr(t))}),100)}function kr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(dt(t,"focus",t,e),t.state.focused=!0,N(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xr(t))}function Sr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(dt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Tr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||h<-.005)&&(Gt(i.line,l),Or(i.line),i.rest))for(var p=0;pt.display.sizerWidth){var d=Math.ceil(u/ir(t.display));d>t.display.maxLineLength&&(t.display.maxLineLength=d,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Or(t){if(t.widgets)for(var e=0;e=s&&(o=Jt(e,ze(Vt(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function Lr(t,e){var n=t.display,r=rr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=An(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+kn(n),l=e.topa-r;if(e.topi+o){var c=Math.min(e.top,(u?a:e.bottom)-o);c!=i&&(s.scrollTop=c)}var f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,h=On(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),p=e.right-e.left>h;return p&&(e.right=e.left+h),e.left<10?s.scrollLeft=0:e.lefth+f-3&&(s.scrollLeft=e.right+(p?0:10)-h),s}function Er(t,e){null!=e&&(Nr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Mr(t){Nr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Pr(t,e,n){null==e&&null==n||Nr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Nr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,jr(t,Kn(t,e.from),Kn(t,e.to),e.margin))}function jr(t,e,n,r){var i=Lr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Pr(t,i.scrollLeft,i.scrollTop)}function Rr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||li(t,{top:e}),Dr(t,e,!0),n&&li(t),ri(t,100))}function Dr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function $r(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,fi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Ir(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+kn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Tn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Br=function(t,e,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ft(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Br.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var t=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Br.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Hr=function(){};function Ur(t,e){e||(e=Ir(t));var n=t.display.barWidth,r=t.display.barHeight;Fr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Tr(t),Fr(t,Ir(t)),n=t.display.barWidth,r=t.display.barHeight}function Fr(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var zr={native:Br,null:Hr};function Wr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new zr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ft(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?$r(t,e):Rr(t,e)}),t),t.display.scrollbars.addClass&&N(t.display.wrapper,t.display.scrollbars.addClass)}var qr=0;function Vr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qr},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Gr(t){t.updatedDisplay=t.mustUpdate&&si(t.cm,t.update)}function Xr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Tr(e),t.barMeasure=Ir(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=En(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Tn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-On(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Jr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var o=L("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+Tn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?te(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?te(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var s=!1,a=Yn(t,e),l=n&&n!=e?Yn(t,n):a,u=Lr(t,i={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-r,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+r}),c=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=u.scrollTop&&(Rr(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&($r(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(s=!0)),!s)break}return i}(e,ae(r,t.scrollToPos.from),ae(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var s=0;s=t.display.viewTo)){var n=+new Date+t.options.workTime,r=pe(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Ft(e.mode,r.state):null,l=fe(t,o,r,!0);a&&(r.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&hn)return ri(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Qr(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;hi(t)&&(pr(t),e.dims=or(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),s=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroms&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),_e&&(o=Be(t.doc,o),s=He(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=on(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=on(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,cr(t,n)))),r.viewTo=n}(t,o,s),n.viewOffset=ze(Vt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var u=vr(t);if(!a&&0==u&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var e=P();if(!e||!M(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return u>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(p=!1),cn(t,h,c,n)),p&&(O(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Qt(t.options,c)))),s=h.node.nextSibling}else{var d=gn(t,h,c,n);o.insertBefore(d,s)}c+=h.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,e.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=P()&&(t.activeElt.focus(),t.anchorNode&&M(document.body,t.anchorNode)&&M(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(c),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ri(t,400)),n.updateLineNumbers=null,!0}function ai(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=On(t))r&&(e.visible=Ar(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+kn(t.display)-An(t),n.top)}),e.visible=Ar(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!si(t,e))break;Tr(t);var i=Ir(t);mr(t),Ur(t,i),ci(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function li(t,e){var n=new oi(t,e);if(si(t,n)){Tr(t),ai(t,n);var r=Ir(t);mr(t),Ur(t,r),ci(t,r),n.finish()}}function ui(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function ci(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Tn(t)+"px"}function fi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=sr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",s=0;sa.clientWidth,c=a.scrollHeight>a.clientHeight;if(i&&u||o&&c){if(o&&y&&l)t:for(var h=e.target,p=s.view;h!=a;h=h.parentNode)for(var d=0;d=0&&ee(t,r.to())<=0)return n}return-1};var Ci=function(t,e){this.anchor=t,this.head=e};function ki(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ee(t.from(),e.from())})),n=H(e,i);for(var o=1;o0:l>=0){var u=oe(a.from(),s.from()),c=ie(a.to(),s.to()),f=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new Ci(f?c:u,f?u:c))}}return new _i(e,n)}function Si(t,e){return new _i([new Ci(t,e||t)],0)}function Ti(t){return t.text?te(t.from.line+t.text.length-1,K(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Oi(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Ti(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Ti(e).ch-e.to.ch),te(n,r)}function Ai(t,e){for(var n=[],r=0;r1&&t.remove(a.line+1,d-1),t.insert(a.line+1,g)}ln(t,"change",t,e)}function ji(t,e,n){!function t(r,i,o){if(r.linked)for(var s=0;sa-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Bi(t.done),K(t.done)):t.done.length&&!K(t.done).ranges?K(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),K(t.done)):void 0}(i,i.lastOp==r)))s=K(o.changes),0==ee(e.from,e.to)&&0==ee(e.from,s.to)?s.to=Ti(e):o.changes.push(Ii(t,e));else{var l=K(i.done);for(l&&l.ranges||Fi(t.sel,i.done),o={changes:[Ii(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,s||dt(t,"historyAdded")}function Ui(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,K(i.done),e))?i.done[i.done.length-1]=e:Fi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function Fi(t,e){var n=K(e);n&&n.ranges&&n.equals(t)||e.push(t)}function zi(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Wi(t){if(!t)return null;for(var e,n=0;n-1&&(K(a)[f]=u[f],delete u[f])}}}return r}function Yi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ee(e,i)<0;o!=ee(n,i)<0?(i=e,e=n):o!=ee(e,n)<0&&(e=n)}return new Ci(i,e)}return new Ci(n||e,e)}function Ki(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Qi(t,new _i([Yi(t.sel.primary(),e,n,i)],0),r)}function Gi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:a.to>e.ch))){if(i&&(dt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),h=void 0;if((r<0?c:u)&&(f=so(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(h=ee(f,n))&&(r<0?h<0:h>0))return io(t,f,e,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=so(t,p,r,p.line==e.line?o:null)),p?io(t,p,e,r,i):null}}return e}function oo(t,e,n,r,i){var o=r||1,s=io(t,e,n,o,i)||!i&&io(t,e,n,o,!0)||io(t,e,n,-o,i)||!i&&io(t,e,n,-o,!0);return s||(t.cantEdit=!0,te(t.first,0))}function so(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?ae(t,te(e.line-1)):null:n>0&&e.ch==(r||Vt(t,e.line)).text.length?e.line0)){var c=[l,1],f=ee(u.from,a.from),h=ee(u.to,a.to);(f<0||!s.inclusiveLeft&&!f)&&c.push({from:u.from,to:a.from}),(h>0||!s.inclusiveRight&&!h)&&c.push({from:a.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)co(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else co(t,e)}}function co(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var n=Ai(t,e);Hi(t,e,n,t.cm?t.cm.curOp.id:NaN),po(t,e,n,Te(t,e));var r=[];ji(t,(function(t,n){n||-1!=H(r,t.history)||(yo(t.history,e),r.push(t.history)),po(t,e,null,Te(t,e))}))}}function fo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u=0;--p){var d=h(p);if(d)return d.v}}}}function ho(t,e){if(0!=e&&(t.first+=e,t.sel=new _i(G(t.sel.ranges,(function(t){return new Ci(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){fr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:te(o,Vt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ai(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=Xt(Ie(Vt(r,o.line))),r.iter(l,s.line+1,(function(t){if(t==i.maxLine)return a=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&mt(t),Ni(r,e,n,ar(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,(function(t){var e=We(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,a=!1)})),a&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Vt(t,r).stateAfter;if(i&&(!(i instanceof ue)||r+i.lookAhead1||!(this.children[0]instanceof wo))){var a=[];this.collapse(a),this.children=[new wo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var s=i.lines.length%25+25,a=s;a10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if($e(t,e.line,e,n,o)||e.line!=n.line&&$e(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");_e=!0}o.addToHistory&&Hi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,u=t.cm;if(t.iter(l,n.line+1,(function(t){u&&o.collapsed&&!u.options.lineWrapping&&Ie(t)==u.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&Gt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new Ce(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){Ue(t,e)&&Gt(e,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ko,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)fr(u,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)hr(u,c,"text");o.atomic&&no(u.doc),ln(u,"markerAdded",u,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Vr(t),gt(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&fr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&no(t.doc)),t&&ln(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},So.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;l--)uo(this,r[l]);a?Zi(this,a):this.cm&&Mr(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=ae(this,t),e=ae(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var s=o.markedSpans;if(s)for(var a=0;a=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),ae(this,te(n,e))},indexFromPos:function(t){var e=(t=ae(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),to(e.doc,Si(n,n)),h)for(var p=0;p=0;e--)vo(t.doc,"",r[e].from,r[e].to,"+delete");Mr(t)}))}function Zo(t,e,n){var r=it(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Qo(t,e,n){var r=Zo(t,e.ch,n);return null==r?null:new te(e.line,r,n<0?"after":"before")}function ts(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=ut(n,e.doc.direction);if(o){var s,a=i<0?K(o):o[0],l=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var u=Pn(e,n);s=i<0?n.text.length-1:0;var c=Nn(e,u,s).top;s=ot((function(t){return Nn(e,u,t).top==c}),i<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Zo(n,s,1))}else s=i<0?a.to:a.from;return new te(r,s,l)}}return new te(r,i<0?n.text.length:0,i<0?"before":"after")}zo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},zo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},zo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},zo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},zo.default=y?zo.macDefault:zo.pcDefault;var es={selectAll:ao,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),F)},killLine:function(t){return Jo(t,(function(e){if(e.empty()){var n=Vt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new te(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),te(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var s=Vt(t.doc,i.line-1).text;s&&(i=new te(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),te(i.line-1,s.length-1),i,"+transpose"))}n.push(new Ci(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Qr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(ee((i=u.ranges[i]).from(),e)<0||e.xRel>0)&&(ee(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,u=ti(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,pt(i.wrapper.ownerDocument,"mouseup",u),pt(i.wrapper.ownerDocument,"mousemove",c),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",u),o||(bt(e),r.addNew||Ki(t.doc,n,null,null,r.extend),l||s&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ft(i.wrapper.ownerDocument,"mouseup",u),ft(i.wrapper.ownerDocument,"mousemove",c),ft(i.scroller,"dragstart",f),ft(i.scroller,"drop",u),Cr(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,o):function(t,e,n,r){var i=t.display,o=t.doc;bt(e);var s,a,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),s=a>-1?u[a]:new Ci(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ci(n,n)),n=ur(t,e,!0,!0),a=-1;else{var c=gs(t,n,r.unit);s=r.extend?Yi(s,c.anchor,c.head,r.extend):c}r.addNew?-1==a?(a=u.length,Qi(o,ki(t,u.concat([s]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&"char"==r.unit&&!r.extend?(Qi(o,ki(t,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Xi(o,a,s,z):(a=0,Qi(o,new _i([s],0),z),l=o.sel);var f=n;function h(e){if(0!=ee(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],u=t.options.tabSize,c=I(Vt(o,n.line).text,n.ch,u),h=I(Vt(o,e.line).text,e.ch,u),p=Math.min(c,h),d=Math.max(c,h),v=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=m;v++){var g=Vt(o,v).text,y=q(g,p,u);p==d?i.push(new Ci(te(v,y),te(v,y))):g.length>y&&i.push(new Ci(te(v,y),te(v,q(g,d,u))))}i.length||i.push(new Ci(n,n)),Qi(o,ki(t,l.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,w=s,x=gs(t,e,r.unit),_=w.anchor;ee(x.anchor,_)>0?(b=x.head,_=oe(w.from(),x.anchor)):(b=x.anchor,_=ie(w.to(),x.head));var C=l.ranges.slice(0);C[a]=function(t,e){var n=e.anchor,r=e.head,i=Vt(t.doc,n.line);if(0==ee(n,r)&&n.sticky==r.sticky)return e;var o=ut(i);if(!o)return e;var s=at(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,u=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=at(o,r.ch,r.sticky),f=c-s||(r.ch-n.ch)*(1==a.level?-1:1);l=c==u-1||c==u?f<0:f>0}var h=o[u+(l?-1:0)],p=l==(1==h.level),d=p?h.from:h.to,v=p?"after":"before";return n.ch==d&&n.sticky==v?e:new Ci(new te(n.line,d,v),r)}(t,new Ci(ae(o,_),b)),Qi(o,ki(t,C,a),z)}}var p=i.wrapper.getBoundingClientRect(),d=0;function v(e){t.state.selectingText=!1,d=1/0,e&&(bt(e),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",m),pt(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var m=ti(t,(function(e){0!==e.buttons&&kt(e)?function e(n){var s=++d,a=ur(t,n,!0,"rectangle"==r.unit);if(a)if(0!=ee(a,f)){t.curOp.focus=P(),h(a);var l=Ar(i,o);(a.line>=l.to||a.linep.bottom?20:0;u&&setTimeout(ti(t,(function(){d==s&&(i.scroller.scrollTop+=u,e(n))})),50)}}(e):v(e)})),g=ti(t,v);t.state.selectingText=g,ft(i.wrapper.ownerDocument,"mousemove",m),ft(i.wrapper.ownerDocument,"mouseup",g)}(t,r,e,o)}(e,r,o,t):Ct(t)==n.scroller&&bt(t):2==i?(r&&Ki(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):Cr(e)))}}function gs(t,e,n){if("char"==n)return new Ci(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Ci(te(e.line,0),ae(t.doc,te(e.line+1,0)));var r=n(t,e);return new Ci(r.from,r.to)}function ys(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&bt(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!gt(t,n))return xt(e);o-=a.top-s.viewOffset;for(var l=0;l=i)return dt(t,n,t,Jt(t.doc,o),t.display.gutterSpecs[l].className,e),xt(e)}}function bs(t,e){return ys(t,e,"gutterClick",!0)}function ws(t,e){_n(t.display,e)||function(t,e){return!!gt(t,"gutterContextMenu")&&ys(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function xs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(t)}vs.prototype.compare=function(t,e,n){return this.time+400>t&&0==ee(e,this.pos)&&n==this.button};var _s={toString:function(){return"CodeMirror.Init"}},Cs={},ks={};function Ss(t,e,n){if(!e!=!(n&&n!=_s)){var r=t.display.dragFunctions,i=e?ft:pt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ts(t){t.options.lineWrapping?(N(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),qe(t)),lr(t),fr(t),Hn(t),setTimeout((function(){return Ur(t)}),100)}function Os(t,e){var n=this;if(!(this instanceof Os))return new Os(t,e);this.options=e=e?$(e):{},$(Cs,e,!1);var r=e.value;"string"==typeof r?r=new Mo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Os.inputStyles[e.inputStyle](this),o=this.display=new mi(t,r,i,e);for(var u in o.wrapper.CodeMirror=this,xs(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},e.autofocus&&!g&&o.input.focus(),s&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ft(e.scroller,"mousedown",ti(t,ms)),ft(e.scroller,"dblclick",s&&a<11?ti(t,(function(e){if(!vt(t,e)){var n=ur(t,e);if(n&&!bs(t,e)&&!_n(t.display,e)){bt(e);var r=t.findWordAt(n);Ki(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||bt(e)}),ft(e.scroller,"contextmenu",(function(e){return ws(t,e)})),ft(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||ws(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ft(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!bs(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ft(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ft(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!_n(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var s,a=t.coordsChar(e.activeTouch,"page");s=!r.prev||o(r,r.prev)?new Ci(a,a):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(a):new Ci(te(a.line,0),ae(t.doc,te(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),bt(n)}i()})),ft(e.scroller,"touchcancel",i),ft(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Rr(t,e.scroller.scrollTop),$r(t,e.scroller.scrollLeft,!0),dt(t,"scroll",t))})),ft(e.scroller,"mousewheel",(function(e){return xi(t,e)})),ft(e.scroller,"DOMMouseScroll",(function(e){return xi(t,e)})),ft(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||_t(e)},over:function(e){vt(t,e)||(function(t,e){var n=ur(t,e);if(n){var r=document.createDocumentFragment();yr(t,n,r),t.display.dragCursor||(t.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,r)}}(t,e),_t(e))},start:function(e){return function(t,e){if(s&&(!t.state.draggingText||+new Date-Po<100))_t(e);else if(!vt(t,e)&&!_n(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=L("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:ti(t,No),leave:function(e){vt(t,e)||jo(t)}};var l=e.input.getField();ft(l,"keyup",(function(e){return fs.call(t,e)})),ft(l,"keydown",ti(t,cs)),ft(l,"keypress",ti(t,hs)),ft(l,"focus",(function(e){return kr(t,e)})),ft(l,"blur",(function(e){return Sr(t,e)}))}(this),$o(),Vr(this),this.curOp.forceUpdate=!0,Ri(this,r),e.autofocus&&!g||this.hasFocus()?setTimeout(D(kr,this),20):Sr(this),ks)ks.hasOwnProperty(u)&&ks[u](this,e[u],_s);hi(this),e.finishInit&&e.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?I(Vt(o,e-1).text,null,s):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",h=0;if(t.options.indentWithTabs)for(var p=Math.floor(u/s);p;--p)h+=s,f+="\t";if(hs,l=Mt(e),u=null;if(a&&r.ranges.length>1)if(Es&&Es.text.join("\n")==e){if(r.ranges.length%Es.text.length==0){u=[];for(var c=0;c=0;h--){var p=r.ranges[h],d=p.from(),v=p.to();p.empty()&&(n&&n>0?d=te(d.line,d.ch-n):t.state.overwrite&&!a?v=te(v.line,Math.min(Vt(o,v.line).text.length,v.ch+K(l).length)):a&&Es&&Es.lineWise&&Es.text.join("\n")==e&&(d=v=te(d.line,0)));var m={from:d,to:v,text:u?u[h%u.length]:l,origin:i||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};uo(t.doc,m),ln(t,"inputRead",t,m)}e&&!a&&js(t,e),Mr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ns(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Qr(e,(function(){return Ps(e,n,0,null,"paste")})),!0}function js(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a-1){s=Ls(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Vt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(s=Ls(t,i.head.line,"smart"));s&&ln(t,"electricInput",t,i.head.line)}}}function Rs(t){for(var e=[],n=[],r=0;r=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=at(i,n.ch,n.sticky),s=i[o];if("ltr"==t.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from=s.from&&h>=c.begin)){var p=f?"before":"after";return new te(n.line,h,p)}}var d=function(t,e,r){for(var o=function(t,e){return e?new te(n.line,l(t,1),"before"):new te(n.line,t,"after")};t>=0&&t0==(1!=s.level),u=a?r.begin:l(r.end,-1);if(s.from<=u&&u0?c.end:l(c.begin,-1);return null==m||r>0&&m==e.text.length||!(v=d(r>0?0:i.length-1,r,u(m)))?null:v}(t.cm,a,e,n):Qo(a,e,n))){if(r||(s=e.line+l)=t.first+t.size||(e=new te(s,e.ch,e.sticky),!(a=Vt(t,s))))return!1;e=ts(i,t.cm,a,e.line,l)}else e=o;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var d=a.text.charAt(e.ch)||"\n",v=tt(d,h)?"w":f&&"\n"==d?"n":!f||/\s/.test(d)?null:"p";if(!f||p||v||(v="s"),c&&c!=v){n<0&&(n=1,u(),e.sticky="after");break}if(v&&(c=v),n>0&&!u(!p))break}var m=oo(t,e,o,s,!0);return ne(o,m)&&(m.hitSide=!0),m}function Bs(t,e,n,r){var i,o,s=t.doc,a=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(t.display),3);i=(n>0?e.bottom:e.top)+n*u}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Xn(t,a,i)).outside;){if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}var Hs=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Us(t,e){var n=Mn(t,e.line);if(!n||n.hidden)return null;var r=Vt(t.doc,e.line),i=Ln(n,r,e.line),o=ut(r,t.doc.direction),s="left";o&&(s=at(o,e.ch)%2?"right":"left");var a=Dn(i.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Fs(t,e){return e&&(t.bad=!0),t}function zs(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Fs(t.clipPos(te(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i=e.display.viewTo||o.line=e.display.viewFrom&&Us(e,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(s=te(s.line-1,Vt(r.doc,s.line-1).length)),a.ch==Vt(r.doc,a.line).text.length&&a.linei.viewTo-1)return!1;s.line==i.viewFrom||0==(t=cr(r,s.line))?(e=Xt(i.view[0].line),n=i.view[0].node):(e=Xt(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,u,c=cr(r,a.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Xt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(t,e,n,r,i){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function u(){s&&(o+=a,l&&(o+=a),s=l=!1)}function c(t){t&&(u(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void c(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(te(r,0),te(i+1,0),(m=+h,function(t){return t.id==m}));return void(p.length&&(o=p[0].find(0))&&c(Yt(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;d&&u();for(var v=0;v1&&h.length>1;)if(K(f)==K(h))f.pop(),h.pop(),l--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),e++}for(var p=0,d=0,v=f[0],m=h[0],g=Math.min(v.length,m.length);ps.ch&&y.charCodeAt(y.length-d-1)==b.charCodeAt(b.length-d-1);)p--,d++;f[f.length-1]=y.slice(0,y.length-d).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var x=te(e,p),_=te(l,h.length?K(h).length-d:0);return f.length>1||f[0]||ee(x,_)?(vo(r.doc,f,x,_,"+input"),!0):void 0},Hs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Hs.prototype.reset=function(){this.forceCompositionEnd()},Hs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Hs.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Hs.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Qr(this.cm,(function(){return fr(t.cm)}))},Hs.prototype.setUneditable=function(t){t.contentEditable="false"},Hs.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Ps)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Hs.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Hs.prototype.onContextMenu=function(){},Hs.prototype.resetPosition=function(){},Hs.prototype.needsContentAttribute=!0;var qs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};qs.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Ms({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Rs(r);Ms({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,F):(n.prevInput="",i.value=e.text.join("\n"),R(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),v&&(i.style.width="0px"),ft(i,"input",(function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ft(i,"paste",(function(t){vt(r,t)||Ns(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(t.scroller,"paste",(function(e){if(!_n(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),ft(t.lineSpace,"selectstart",(function(e){_n(t,e)||bt(e)})),ft(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},qs.prototype.createField=function(t){this.wrapper=$s(),this.textarea=this.wrapper.firstChild},qs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+s.left-o.left))}return r},qs.prototype.showSelection=function(t){var e=this.cm.display;A(e.cursorDiv,t.cursors),A(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},qs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&R(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},qs.prototype.getField=function(){return this.textarea},qs.prototype.supportsTouch=function(){return!1},qs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||P()!=this.textarea))try{this.textarea.focus()}catch(t){}},qs.prototype.blur=function(){this.textarea.blur()},qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qs.prototype.receivedFocus=function(){this.slowPoll()},qs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},qs.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},qs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Pt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},qs.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=ur(n,t),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Qi)(n.doc,Si(o),F);var c,h=i.style.cssText,p=e.wrapper.style.cssText,d=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-d.top-5)+"px; left: "+(t.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&a>=9&&m(),C){_t(t);var v=function(){pt(window,"mouseup",v),setTimeout(g,20)};ft(window,"mouseup",v)}else setTimeout(g,50)}function m(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(e.contextMenuPending==g&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=h,s&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!s||s&&a<9)&&m();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ti(n,ao)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},qs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},qs.prototype.setUneditable=function(){},qs.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=_s&&i(t,e,n)}:i)}t.defineOption=n,t.Init=_s,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Ei(t)}),!0),n("indentUnit",2,Ei,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Mi(t),Hn(t),fr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(te(r,o))}r++}));for(var i=n.length-1;i>=0;i--)vo(t.doc,e,n[i],te(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=_s&&t.refresh()})),n("specialCharPlaceholder",Ze,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){xs(t),vi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Xo(e),i=n!=_s&&Xo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ts,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=pi(e,t.options.lineNumbers),vi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?sr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Ur(t)}),!0),n("scrollbarStyle","native",(function(t){Wr(t),Ur(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=pi(t.options.gutters,e),vi(t)}),!0),n("firstLineNumber",1,vi,!0),n("lineNumberFormatter",(function(t){return t}),vi,!0),n("showCursorWhenSelecting",!1,mr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Sr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Ss),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,mr,!0),n("singleCursorHeightPerLine",!0,mr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Mi,!0),n("addModeClass",!1,Mi,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Mi,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Os),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ti(this,e[t])(this,n,i),dt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Xo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(Ls(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(this));else{var o=i.from(),s=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l0&&Xi(this.doc,r,new Ci(o,u[r].to()),F)}}})),getTokenAt:function(t,e){return ye(this,t,e)},getLineTokens:function(t,e){return ye(this,te(t),e,!0)},getTokenTypeAt:function(t){t=ae(this.doc,t);var e,n=he(this,Vt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=r+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]o&&(t=o,i=!0),r=Vt(this.doc,t)}else r=t;return Wn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-ze(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,s,a,l=this.display,u=(t=Yn(this,ae(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)u=t.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),h=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>f)&&t.top>e.offsetHeight?u=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=f&&(u=t.bottom),c+e.offsetWidth>h&&(c=h-e.offsetWidth)}e.style.top=u+"px",e.style.left=e.style.right="","right"==i?(c=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),n&&(o=this,s={left:c,top:u,right:c+e.offsetWidth,bottom:u+e.offsetHeight},null!=(a=Lr(o,s)).scrollTop&&Rr(o,a.scrollTop),null!=a.scrollLeft&&$r(o,a.scrollLeft))},triggerOnKeyDown:ei(cs),triggerOnKeyPress:ei(hs),triggerOnKeyUp:fs,triggerOnMouseDown:ei(ms),execCommand:function(t){if(es.hasOwnProperty(t))return es[t].call(null,this)},triggerElectric:ei((function(t){js(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=ae(this.doc,t),s=0;s0&&s(e.charAt(n-1));)--n;for(;r.5)&&lr(this),dt(this,"refresh",this)})),swapDoc:ei((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Ri(this,t),Hn(this),this.display.input.reset(),Pr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},yt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(Os);var Vs="iter insert remove copy getEditor constructor".split(" ");for(var Ys in Mo.prototype)Mo.prototype.hasOwnProperty(Ys)&&H(Vs,Ys)<0&&(Os.prototype[Ys]=function(t){return function(){return t.apply(this.doc,arguments)}}(Mo.prototype[Ys]));return yt(Mo),Os.inputStyles={textarea:qs,contenteditable:Hs},Os.defineMode=function(t){Os.defaults.mode||"null"==t||(Os.defaults.mode=t),$t.apply(this,arguments)},Os.defineMIME=function(t,e){Dt[t]=e},Os.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Os.defineMIME("text/plain","null"),Os.defineExtension=function(t,e){Os.prototype[t]=e},Os.defineDocExtension=function(t,e){Mo.prototype[t]=e},Os.fromTextArea=function(t,e){if((e=e?$(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=P();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=a.getValue()}var i;if(t.form&&(ft(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var a=Os((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return a},function(t){t.off=pt,t.on=ft,t.wheelEventPixels=wi,t.Doc=Mo,t.splitLines=Mt,t.countColumn=I,t.findColumn=q,t.isWordChar=Q,t.Pass=U,t.signal=dt,t.Line=Ve,t.changeEnd=Ti,t.scrollbarModel=zr,t.Pos=te,t.cmpPos=ee,t.modes=Rt,t.mimeModes=Dt,t.resolveMode=It,t.getMode=Bt,t.modeExtensions=Ht,t.extendMode=Ut,t.copyState=Ft,t.startState=Wt,t.innerMode=zt,t.commands=es,t.keyMap=zo,t.keyName=Go,t.isModifierKey=Yo,t.lookupKey=Vo,t.normalizeKeyMap=qo,t.StringStream=qt,t.SharedTextMarker=Oo,t.TextMarker=So,t.LineWidget=_o,t.e_preventDefault=bt,t.e_stopPropagation=wt,t.e_stop=_t,t.addClass=N,t.contains=M,t.rmClass=T,t.keyNames=Bo}(Os),Os.version="5.52.2",Os}()},XuX8:function(t,e,n){t.exports=n("INkZ")},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,s,a,l=1,u={},c=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(d,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&d(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n=0&&f.splice(e,1)}function g(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=function(){0;return n.nc}();r&&(t.attrs.nonce=r)}return y(e,t.attrs),v(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var s=c++;n=u||(u=g(e)),r=_.bind(null,n,s,!1),i=_.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),v(t,e),e}(e),r=k.bind(null,n,e),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),r=C.bind(null,n),i=function(){m(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return p(n,e),function(t){for(var r=[],i=0;i>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=255&r}function v(t,e,n,r,i){var o,s=0;for(o=0;o>>8)-1}function m(t,e,n,r){return v(t,e,n,r,16)}function g(t,e,n,r){return v(t,e,n,r,32)}function y(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=o,_=s,C=a,k=l,S=u,T=c,O=f,A=h,L=p,E=d,M=v,P=m,N=g,j=y,R=b,D=w,$=0;$<20;$+=2)x^=(i=(N^=(i=(L^=(i=(S^=(i=x+N|0)<<7|i>>>25)+x|0)<<9|i>>>23)+S|0)<<13|i>>>19)+L|0)<<18|i>>>14,T^=(i=(_^=(i=(j^=(i=(E^=(i=T+_|0)<<7|i>>>25)+T|0)<<9|i>>>23)+E|0)<<13|i>>>19)+j|0)<<18|i>>>14,M^=(i=(O^=(i=(C^=(i=(R^=(i=M+O|0)<<7|i>>>25)+M|0)<<9|i>>>23)+R|0)<<13|i>>>19)+C|0)<<18|i>>>14,D^=(i=(P^=(i=(A^=(i=(k^=(i=D+P|0)<<7|i>>>25)+D|0)<<9|i>>>23)+k|0)<<13|i>>>19)+A|0)<<18|i>>>14,x^=(i=(k^=(i=(C^=(i=(_^=(i=x+k|0)<<7|i>>>25)+x|0)<<9|i>>>23)+_|0)<<13|i>>>19)+C|0)<<18|i>>>14,T^=(i=(S^=(i=(A^=(i=(O^=(i=T+S|0)<<7|i>>>25)+T|0)<<9|i>>>23)+O|0)<<13|i>>>19)+A|0)<<18|i>>>14,M^=(i=(E^=(i=(L^=(i=(P^=(i=M+E|0)<<7|i>>>25)+M|0)<<9|i>>>23)+P|0)<<13|i>>>19)+L|0)<<18|i>>>14,D^=(i=(R^=(i=(j^=(i=(N^=(i=D+R|0)<<7|i>>>25)+D|0)<<9|i>>>23)+N|0)<<13|i>>>19)+j|0)<<18|i>>>14;x=x+o|0,_=_+s|0,C=C+a|0,k=k+l|0,S=S+u|0,T=T+c|0,O=O+f|0,A=A+h|0,L=L+p|0,E=E+d|0,M=M+v|0,P=P+m|0,N=N+g|0,j=j+y|0,R=R+b|0,D=D+w|0,t[0]=x>>>0&255,t[1]=x>>>8&255,t[2]=x>>>16&255,t[3]=x>>>24&255,t[4]=_>>>0&255,t[5]=_>>>8&255,t[6]=_>>>16&255,t[7]=_>>>24&255,t[8]=C>>>0&255,t[9]=C>>>8&255,t[10]=C>>>16&255,t[11]=C>>>24&255,t[12]=k>>>0&255,t[13]=k>>>8&255,t[14]=k>>>16&255,t[15]=k>>>24&255,t[16]=S>>>0&255,t[17]=S>>>8&255,t[18]=S>>>16&255,t[19]=S>>>24&255,t[20]=T>>>0&255,t[21]=T>>>8&255,t[22]=T>>>16&255,t[23]=T>>>24&255,t[24]=O>>>0&255,t[25]=O>>>8&255,t[26]=O>>>16&255,t[27]=O>>>24&255,t[28]=A>>>0&255,t[29]=A>>>8&255,t[30]=A>>>16&255,t[31]=A>>>24&255,t[32]=L>>>0&255,t[33]=L>>>8&255,t[34]=L>>>16&255,t[35]=L>>>24&255,t[36]=E>>>0&255,t[37]=E>>>8&255,t[38]=E>>>16&255,t[39]=E>>>24&255,t[40]=M>>>0&255,t[41]=M>>>8&255,t[42]=M>>>16&255,t[43]=M>>>24&255,t[44]=P>>>0&255,t[45]=P>>>8&255,t[46]=P>>>16&255,t[47]=P>>>24&255,t[48]=N>>>0&255,t[49]=N>>>8&255,t[50]=N>>>16&255,t[51]=N>>>24&255,t[52]=j>>>0&255,t[53]=j>>>8&255,t[54]=j>>>16&255,t[55]=j>>>24&255,t[56]=R>>>0&255,t[57]=R>>>8&255,t[58]=R>>>16&255,t[59]=R>>>24&255,t[60]=D>>>0&255,t[61]=D>>>8&255,t[62]=D>>>16&255,t[63]=D>>>24&255}(t,e,n,r)}function b(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)o^=(i=(g^=(i=(p^=(i=(u^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+p|0)<<18|i>>>14,c^=(i=(s^=(i=(y^=(i=(d^=(i=c+s|0)<<7|i>>>25)+c|0)<<9|i>>>23)+d|0)<<13|i>>>19)+y|0)<<18|i>>>14,v^=(i=(f^=(i=(a^=(i=(b^=(i=v+f|0)<<7|i>>>25)+v|0)<<9|i>>>23)+b|0)<<13|i>>>19)+a|0)<<18|i>>>14,w^=(i=(m^=(i=(h^=(i=(l^=(i=w+m|0)<<7|i>>>25)+w|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(l^=(i=(a^=(i=(s^=(i=o+l|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,c^=(i=(u^=(i=(h^=(i=(f^=(i=c+u|0)<<7|i>>>25)+c|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,v^=(i=(d^=(i=(p^=(i=(m^=(i=v+d|0)<<7|i>>>25)+v|0)<<9|i>>>23)+m|0)<<13|i>>>19)+p|0)<<18|i>>>14,w^=(i=(b^=(i=(y^=(i=(g^=(i=w+b|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+y|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=c>>>0&255,t[5]=c>>>8&255,t[6]=c>>>16&255,t[7]=c>>>24&255,t[8]=v>>>0&255,t[9]=v>>>8&255,t[10]=v>>>16&255,t[11]=v>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=f>>>0&255,t[17]=f>>>8&255,t[18]=f>>>16&255,t[19]=f>>>24&255,t[20]=h>>>0&255,t[21]=h>>>8&255,t[22]=h>>>16&255,t[23]=h>>>24&255,t[24]=p>>>0&255,t[25]=p>>>8&255,t[26]=p>>>16&255,t[27]=p>>>24&255,t[28]=d>>>0&255,t[29]=d>>>8&255,t[30]=d>>>16&255,t[31]=d>>>24&255}(t,e,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(t,e,n,r,i,o,s){var a,l,u=new Uint8Array(16),c=new Uint8Array(64);for(l=0;l<16;l++)u[l]=0;for(l=0;l<8;l++)u[l]=o[l];for(;i>=64;){for(y(c,u,s,w),l=0;l<64;l++)t[e+l]=n[r+l]^c[l];for(a=1,l=8;l<16;l++)a=a+(255&u[l])|0,u[l]=255&a,a>>>=8;i-=64,e+=64,r+=64}if(i>0)for(y(c,u,s,w),l=0;l=64;){for(y(l,a,i,w),s=0;s<64;s++)t[e+s]=l[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(y(l,a,i,w),s=0;s>>13|n<<3),r=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|a<<5),l=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(a>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function T(t,e,n,r,i,o){var s=new S(o);return s.update(n,r,i),s.finish(t,e),0}function O(t,e,n,r,i,o){var s=new Uint8Array(16);return T(s,0,n,r,i,o),m(t,e,s,0)}function A(t,e,n,r,i){var o;if(n<32)return-1;for(k(t,0,e,0,n,r,i),T(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function L(t,e,n,r,i){var o,s=new Uint8Array(32);if(n<32)return-1;if(C(s,0,32,r,i),0!==O(e,16,e,32,n-32,s))return-1;for(k(t,0,e,0,n,r,i),o=0;o<32;o++)t[o]=0;return 0}function E(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function M(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-65536*r;t[0]+=r-1+37*(r-1)}function P(t,e,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(t[o]^e[o]),t[o]^=r,e[o]^=r}function N(t,n){var r,i,o,s=e(),a=e();for(r=0;r<16;r++)a[r]=n[r];for(M(a),M(a),M(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,P(a,s,1-o)}for(r=0;r<16;r++)t[2*r]=255&a[r],t[2*r+1]=a[r]>>8}function j(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return N(n,t),N(r,e),g(n,0,r,0)}function R(t){var e=new Uint8Array(32);return N(e,t),1&e[0]}function D(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function $(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function I(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function B(t,e,n){var r,i,o=0,s=0,a=0,l=0,u=0,c=0,f=0,h=0,p=0,d=0,v=0,m=0,g=0,y=0,b=0,w=0,x=0,_=0,C=0,k=0,S=0,T=0,O=0,A=0,L=0,E=0,M=0,P=0,N=0,j=0,R=0,D=n[0],$=n[1],I=n[2],B=n[3],H=n[4],U=n[5],F=n[6],z=n[7],W=n[8],q=n[9],V=n[10],Y=n[11],K=n[12],G=n[13],X=n[14],J=n[15];o+=(r=e[0])*D,s+=r*$,a+=r*I,l+=r*B,u+=r*H,c+=r*U,f+=r*F,h+=r*z,p+=r*W,d+=r*q,v+=r*V,m+=r*Y,g+=r*K,y+=r*G,b+=r*X,w+=r*J,s+=(r=e[1])*D,a+=r*$,l+=r*I,u+=r*B,c+=r*H,f+=r*U,h+=r*F,p+=r*z,d+=r*W,v+=r*q,m+=r*V,g+=r*Y,y+=r*K,b+=r*G,w+=r*X,x+=r*J,a+=(r=e[2])*D,l+=r*$,u+=r*I,c+=r*B,f+=r*H,h+=r*U,p+=r*F,d+=r*z,v+=r*W,m+=r*q,g+=r*V,y+=r*Y,b+=r*K,w+=r*G,x+=r*X,_+=r*J,l+=(r=e[3])*D,u+=r*$,c+=r*I,f+=r*B,h+=r*H,p+=r*U,d+=r*F,v+=r*z,m+=r*W,g+=r*q,y+=r*V,b+=r*Y,w+=r*K,x+=r*G,_+=r*X,C+=r*J,u+=(r=e[4])*D,c+=r*$,f+=r*I,h+=r*B,p+=r*H,d+=r*U,v+=r*F,m+=r*z,g+=r*W,y+=r*q,b+=r*V,w+=r*Y,x+=r*K,_+=r*G,C+=r*X,k+=r*J,c+=(r=e[5])*D,f+=r*$,h+=r*I,p+=r*B,d+=r*H,v+=r*U,m+=r*F,g+=r*z,y+=r*W,b+=r*q,w+=r*V,x+=r*Y,_+=r*K,C+=r*G,k+=r*X,S+=r*J,f+=(r=e[6])*D,h+=r*$,p+=r*I,d+=r*B,v+=r*H,m+=r*U,g+=r*F,y+=r*z,b+=r*W,w+=r*q,x+=r*V,_+=r*Y,C+=r*K,k+=r*G,S+=r*X,T+=r*J,h+=(r=e[7])*D,p+=r*$,d+=r*I,v+=r*B,m+=r*H,g+=r*U,y+=r*F,b+=r*z,w+=r*W,x+=r*q,_+=r*V,C+=r*Y,k+=r*K,S+=r*G,T+=r*X,O+=r*J,p+=(r=e[8])*D,d+=r*$,v+=r*I,m+=r*B,g+=r*H,y+=r*U,b+=r*F,w+=r*z,x+=r*W,_+=r*q,C+=r*V,k+=r*Y,S+=r*K,T+=r*G,O+=r*X,A+=r*J,d+=(r=e[9])*D,v+=r*$,m+=r*I,g+=r*B,y+=r*H,b+=r*U,w+=r*F,x+=r*z,_+=r*W,C+=r*q,k+=r*V,S+=r*Y,T+=r*K,O+=r*G,A+=r*X,L+=r*J,v+=(r=e[10])*D,m+=r*$,g+=r*I,y+=r*B,b+=r*H,w+=r*U,x+=r*F,_+=r*z,C+=r*W,k+=r*q,S+=r*V,T+=r*Y,O+=r*K,A+=r*G,L+=r*X,E+=r*J,m+=(r=e[11])*D,g+=r*$,y+=r*I,b+=r*B,w+=r*H,x+=r*U,_+=r*F,C+=r*z,k+=r*W,S+=r*q,T+=r*V,O+=r*Y,A+=r*K,L+=r*G,E+=r*X,M+=r*J,g+=(r=e[12])*D,y+=r*$,b+=r*I,w+=r*B,x+=r*H,_+=r*U,C+=r*F,k+=r*z,S+=r*W,T+=r*q,O+=r*V,A+=r*Y,L+=r*K,E+=r*G,M+=r*X,P+=r*J,y+=(r=e[13])*D,b+=r*$,w+=r*I,x+=r*B,_+=r*H,C+=r*U,k+=r*F,S+=r*z,T+=r*W,O+=r*q,A+=r*V,L+=r*Y,E+=r*K,M+=r*G,P+=r*X,N+=r*J,b+=(r=e[14])*D,w+=r*$,x+=r*I,_+=r*B,C+=r*H,k+=r*U,S+=r*F,T+=r*z,O+=r*W,A+=r*q,L+=r*V,E+=r*Y,M+=r*K,P+=r*G,N+=r*X,j+=r*J,w+=(r=e[15])*D,s+=38*(_+=r*I),a+=38*(C+=r*B),l+=38*(k+=r*H),u+=38*(S+=r*U),c+=38*(T+=r*F),f+=38*(O+=r*z),h+=38*(A+=r*W),p+=38*(L+=r*q),d+=38*(E+=r*V),v+=38*(M+=r*Y),m+=38*(P+=r*K),g+=38*(N+=r*G),y+=38*(j+=r*X),b+=38*(R+=r*J),o=(r=(o+=38*(x+=r*$))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=s,t[2]=a,t[3]=l,t[4]=u,t[5]=c,t[6]=f,t[7]=h,t[8]=p,t[9]=d,t[10]=v,t[11]=m,t[12]=g,t[13]=y,t[14]=b,t[15]=w}function H(t,e){B(t,e,e)}function U(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)H(i,i),2!==r&&4!==r&&B(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function F(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)H(i,i),1!==r&&B(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function z(t,n,r){var i,o,s=new Uint8Array(32),a=new Float64Array(80),u=e(),c=e(),f=e(),h=e(),p=e(),d=e();for(o=0;o<31;o++)s[o]=n[o];for(s[31]=127&n[31]|64,s[0]&=248,D(a,r),o=0;o<16;o++)c[o]=a[o],h[o]=u[o]=f[o]=0;for(u[0]=h[0]=1,o=254;o>=0;--o)P(u,c,i=s[o>>>3]>>>(7&o)&1),P(f,h,i),$(p,u,f),I(u,u,f),$(f,c,h),I(c,c,h),H(h,p),H(d,u),B(u,f,u),B(f,c,p),$(p,u,f),I(u,u,f),H(c,u),I(f,h,d),B(u,f,l),$(u,u,h),B(f,f,u),B(u,h,d),B(h,c,a),H(c,p),P(u,c,i),P(f,h,i);for(o=0;o<16;o++)a[o+16]=u[o],a[o+32]=f[o],a[o+48]=c[o],a[o+64]=h[o];var v=a.subarray(32),m=a.subarray(16);return U(v,v),B(m,m,v),N(t,m),0}function W(t,e){return z(t,e,o)}function q(t,e){return r(e,32),W(t,e)}function V(t,e,n){var r=new Uint8Array(32);return z(r,n,e),b(t,i,r,w)}S.prototype.blocks=function(t,e,n){for(var r,i,o,s,a,l,u,c,f,h,p,d,v,m,g,y,b,w,x,_=this.fin?0:2048,C=this.h[0],k=this.h[1],S=this.h[2],T=this.h[3],O=this.h[4],A=this.h[5],L=this.h[6],E=this.h[7],M=this.h[8],P=this.h[9],N=this.r[0],j=this.r[1],R=this.r[2],D=this.r[3],$=this.r[4],I=this.r[5],B=this.r[6],H=this.r[7],U=this.r[8],F=this.r[9];n>=16;)h=f=0,h+=(C+=8191&(r=255&t[e+0]|(255&t[e+1])<<8))*N,h+=(k+=8191&(r>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*F),h+=(S+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*U),h+=(T+=8191&(o>>>7|(s=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*H),f=(h+=(O+=8191&(s>>>4|(a=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*B))>>>13,h&=8191,h+=(A+=a>>>1&8191)*(5*I),h+=(L+=8191&(a>>>14|(l=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*$),h+=(E+=8191&(l>>>11|(u=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*D),h+=(M+=8191&(u>>>8|(c=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*R),p=f+=(h+=(P+=c>>>5|_)*(5*j))>>>13,p+=C*j,p+=k*N,p+=S*(5*F),p+=T*(5*U),f=(p+=O*(5*H))>>>13,p&=8191,p+=A*(5*B),p+=L*(5*I),p+=E*(5*$),p+=M*(5*D),f+=(p+=P*(5*R))>>>13,p&=8191,d=f,d+=C*R,d+=k*j,d+=S*N,d+=T*(5*F),f=(d+=O*(5*U))>>>13,d&=8191,d+=A*(5*H),d+=L*(5*B),d+=E*(5*I),d+=M*(5*$),v=f+=(d+=P*(5*D))>>>13,v+=C*D,v+=k*R,v+=S*j,v+=T*N,f=(v+=O*(5*F))>>>13,v&=8191,v+=A*(5*U),v+=L*(5*H),v+=E*(5*B),v+=M*(5*I),m=f+=(v+=P*(5*$))>>>13,m+=C*$,m+=k*D,m+=S*R,m+=T*j,f=(m+=O*N)>>>13,m&=8191,m+=A*(5*F),m+=L*(5*U),m+=E*(5*H),m+=M*(5*B),g=f+=(m+=P*(5*I))>>>13,g+=C*I,g+=k*$,g+=S*D,g+=T*R,f=(g+=O*j)>>>13,g&=8191,g+=A*N,g+=L*(5*F),g+=E*(5*U),g+=M*(5*H),y=f+=(g+=P*(5*B))>>>13,y+=C*B,y+=k*I,y+=S*$,y+=T*D,f=(y+=O*R)>>>13,y&=8191,y+=A*j,y+=L*N,y+=E*(5*F),y+=M*(5*U),b=f+=(y+=P*(5*H))>>>13,b+=C*H,b+=k*B,b+=S*I,b+=T*$,f=(b+=O*D)>>>13,b&=8191,b+=A*R,b+=L*j,b+=E*N,b+=M*(5*F),w=f+=(b+=P*(5*U))>>>13,w+=C*U,w+=k*H,w+=S*B,w+=T*I,f=(w+=O*$)>>>13,w&=8191,w+=A*D,w+=L*R,w+=E*j,w+=M*N,x=f+=(w+=P*(5*F))>>>13,x+=C*F,x+=k*U,x+=S*H,x+=T*B,f=(x+=O*I)>>>13,x&=8191,x+=A*$,x+=L*D,x+=E*R,x+=M*j,C=h=8191&(f=(f=((f+=(x+=P*N)>>>13)<<2)+f|0)+(h&=8191)|0),k=p+=f>>>=13,S=d&=8191,T=v&=8191,O=m&=8191,A=g&=8191,L=y&=8191,E=b&=8191,M=w&=8191,P=x&=8191,e+=16,n-=16;this.h[0]=C,this.h[1]=k,this.h[2]=S,this.h[3]=T,this.h[4]=O,this.h[5]=A,this.h[6]=L,this.h[7]=E,this.h[8]=M,this.h[9]=P},S.prototype.finish=function(t,e){var n,r,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+n,n=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,r=(1^n)-1,o=0;o<10;o++)s[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},S.prototype.update=function(t,e,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r=16&&(i=n-n%16,this.blocks(t,e,i),e+=i,n-=i),n){for(r=0;r=128;){for(_=0;_<16;_++)C=8*_+K,E[_]=n[C+0]<<24|n[C+1]<<16|n[C+2]<<8|n[C+3],M[_]=n[C+4]<<24|n[C+5]<<16|n[C+6]<<8|n[C+7];for(_=0;_<80;_++)if(i=P,o=N,s=j,a=R,l=D,u=$,c=I,h=H,p=U,d=F,v=z,m=W,g=q,y=V,T=65535&(S=Y),O=S>>>16,A=65535&(k=B),L=k>>>16,T+=65535&(S=(W>>>14|D<<18)^(W>>>18|D<<14)^(D>>>9|W<<23)),O+=S>>>16,A+=65535&(k=(D>>>14|W<<18)^(D>>>18|W<<14)^(W>>>9|D<<23)),L+=k>>>16,T+=65535&(S=W&q^~W&V),O+=S>>>16,A+=65535&(k=D&$^~D&I),L+=k>>>16,T+=65535&(S=G[2*_+1]),O+=S>>>16,A+=65535&(k=G[2*_]),L+=k>>>16,k=E[_%16],O+=(S=M[_%16])>>>16,A+=65535&k,L+=k>>>16,A+=(O+=(T+=65535&S)>>>16)>>>16,T=65535&(S=x=65535&T|O<<16),O=S>>>16,A=65535&(k=w=65535&A|(L+=A>>>16)<<16),L=k>>>16,T+=65535&(S=(H>>>28|P<<4)^(P>>>2|H<<30)^(P>>>7|H<<25)),O+=S>>>16,A+=65535&(k=(P>>>28|H<<4)^(H>>>2|P<<30)^(H>>>7|P<<25)),L+=k>>>16,O+=(S=H&U^H&F^U&F)>>>16,A+=65535&(k=P&N^P&j^N&j),L+=k>>>16,f=65535&(A+=(O+=(T+=65535&S)>>>16)>>>16)|(L+=A>>>16)<<16,b=65535&T|O<<16,T=65535&(S=v),O=S>>>16,A=65535&(k=a),L=k>>>16,O+=(S=x)>>>16,A+=65535&(k=w),L+=k>>>16,N=i,j=o,R=s,D=a=65535&(A+=(O+=(T+=65535&S)>>>16)>>>16)|(L+=A>>>16)<<16,$=l,I=u,B=c,P=f,U=h,F=p,z=d,W=v=65535&T|O<<16,q=m,V=g,Y=y,H=b,_%16==15)for(C=0;C<16;C++)k=E[C],T=65535&(S=M[C]),O=S>>>16,A=65535&k,L=k>>>16,k=E[(C+9)%16],T+=65535&(S=M[(C+9)%16]),O+=S>>>16,A+=65535&k,L+=k>>>16,w=E[(C+1)%16],T+=65535&(S=((x=M[(C+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),O+=S>>>16,A+=65535&(k=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),L+=k>>>16,w=E[(C+14)%16],O+=(S=((x=M[(C+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,A+=65535&(k=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,E[C]=65535&A|L<<16,M[C]=65535&T|O<<16;T=65535&(S=H),O=S>>>16,A=65535&(k=P),L=k>>>16,k=t[0],O+=(S=e[0])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[0]=P=65535&A|L<<16,e[0]=H=65535&T|O<<16,T=65535&(S=U),O=S>>>16,A=65535&(k=N),L=k>>>16,k=t[1],O+=(S=e[1])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[1]=N=65535&A|L<<16,e[1]=U=65535&T|O<<16,T=65535&(S=F),O=S>>>16,A=65535&(k=j),L=k>>>16,k=t[2],O+=(S=e[2])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[2]=j=65535&A|L<<16,e[2]=F=65535&T|O<<16,T=65535&(S=z),O=S>>>16,A=65535&(k=R),L=k>>>16,k=t[3],O+=(S=e[3])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[3]=R=65535&A|L<<16,e[3]=z=65535&T|O<<16,T=65535&(S=W),O=S>>>16,A=65535&(k=D),L=k>>>16,k=t[4],O+=(S=e[4])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[4]=D=65535&A|L<<16,e[4]=W=65535&T|O<<16,T=65535&(S=q),O=S>>>16,A=65535&(k=$),L=k>>>16,k=t[5],O+=(S=e[5])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[5]=$=65535&A|L<<16,e[5]=q=65535&T|O<<16,T=65535&(S=V),O=S>>>16,A=65535&(k=I),L=k>>>16,k=t[6],O+=(S=e[6])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[6]=I=65535&A|L<<16,e[6]=V=65535&T|O<<16,T=65535&(S=Y),O=S>>>16,A=65535&(k=B),L=k>>>16,k=t[7],O+=(S=e[7])>>>16,A+=65535&k,L+=k>>>16,L+=(A+=(O+=(T+=65535&S)>>>16)>>>16)>>>16,t[7]=B=65535&A|L<<16,e[7]=Y=65535&T|O<<16,K+=128,r-=128}return r}function J(t,e,n){var r,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,e,n),n%=128,r=0;r=0;--i)Q(t,e,r=n[i/8|0]>>(7&i)&1),Z(e,t),Z(t,t),Q(t,e,r)}function nt(t,n){var r=[e(),e(),e(),e()];E(r[0],f),E(r[1],h),E(r[2],a),B(r[3],f,h),et(t,r,n)}function rt(t,n,i){var o,s=new Uint8Array(64),a=[e(),e(),e(),e()];for(i||r(n,32),J(s,n,32),s[0]&=248,s[31]&=127,s[31]|=64,nt(a,s),tt(t,a),o=0;o<32;o++)n[o+32]=t[o];return 0}var it,ot=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function st(t,e){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>8,e[i]-=256*n;e[i]+=n,e[r]=0}for(n=0,i=0;i<32;i++)e[i]+=n-(e[31]>>4)*ot[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*ot[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function at(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;st(t,n)}function lt(t,n,r,i){var o,s,a=new Uint8Array(64),l=new Uint8Array(64),u=new Uint8Array(64),c=new Float64Array(64),f=[e(),e(),e(),e()];J(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(o=0;o>7&&I(t[0],s,t[0]),B(t[3],t[0],t[1]),0)}(h,i))return-1;for(o=0;o=0},t.sign.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(64);return rt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(ft(t),64!==t.length)throw new Error("bad secret key size");for(var e=new Uint8Array(32),n=0;n0)r.loading[t].push(n);else{r.loading[t]=[n];var i=we.createScriptRequest(r.getPath(t,e)),o=r.receivers.create((function(e){if(r.receivers.remove(o),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var s=function(t){t||i.cleanup()},a=0;a>>6)+u(128|63&e):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|63&e)},m=function(t){return t.replace(/[^\x00-\x7F]/g,v)},g=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[c.charAt(n>>>18),c.charAt(n>>>12&63),e>=2?"=":c.charAt(n>>>6&63),e>=1?"=":c.charAt(63&n)].join("")},y=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,g)},b=function(){function t(t,e,n,r){var i=this;this.clear=e,this.timer=t((function(){i.timer&&(i.timer=r(i.timer))}),n)}return t.prototype.isRunning=function(){return null!==this.timer},t.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},t}(),w=(d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function x(t){window.clearTimeout(t)}function _(t){window.clearInterval(t)}var C=function(t){function e(e,n){return t.call(this,setTimeout,x,e,(function(t){return n(),null}))||this}return w(e,t),e}(b),k=function(t){function e(e,n){return t.call(this,setInterval,_,e,(function(t){return n(),t}))||this}return w(e,t),e}(b),S={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new C(0,t)},method:function(t){for(var e=[],n=1;n0)for(r=0;r=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},getCloseError:function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}},bt=yt,wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(t){function e(e,n){var r=t.call(this)||this;return r.id=e,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return wt(e,t),e.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},e.prototype.send=function(t){return this.transport.send(t)},e.prototype.send_event=function(t,e,n){var r={event:t,data:e};return n&&(r.channel=n),B.debug("Event sent",r),this.send(bt.encodeMessage(r))},e.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},e.prototype.close=function(){this.transport.close()},e.prototype.bindListeners=function(){var t=this,e={message:function(e){var n;try{n=bt.decodeMessage(e)}catch(n){t.emit("error",{type:"MessageParseError",error:n,data:e.data})}if(void 0!==n){switch(B.debug("Event recd",n),n.event){case"pusher:error":t.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":t.emit("ping");break;case"pusher:pong":t.emit("pong")}t.emit("message",n)}},activity:function(){t.emit("activity")},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){L(e,(function(e,n){t.transport.unbind(n,e)}))};L(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=bt.getCloseAction(t),n=bt.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(tt),_t=function(){function t(t,e){this.transport=t,this.callback=e,this.bindListeners()}return t.prototype.close=function(){this.unbindListeners(),this.transport.close()},t.prototype.bindListeners=function(){var t=this;this.onMessage=function(e){var n;t.unbindListeners();try{n=bt.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new xt(n.id,t.transport),activityTimeout:n.activityTimeout}):(t.finish(n.action,{error:n.error}),t.transport.close())},this.onClosed=function(e){t.unbindListeners();var n=bt.getCloseAction(e)||"backoff",r=bt.getCloseError(e);t.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},t.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},t.prototype.finish=function(t,e){this.callback(T({transport:this.transport,action:t},e))},t}(),Ct=function(){function t(t,e){this.channel=t;var n=e.authTransport;if(void 0===we.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=e,this.authOptions=(e||{}).auth||{}}return t.prototype.composeQuery=function(t){var e="socket_id="+encodeURIComponent(t)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)e+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return e},t.prototype.authorize=function(e,n){t.authorizers=t.authorizers||we.getAuthorizers(),t.authorizers[this.type].call(this,we,e,n)},t}(),kt=function(){function t(t,e){this.timeline=t,this.options=e||{}}return t.prototype.send=function(t,e){this.timeline.isEmpty()||this.timeline.send(we.TimelineTransport.getAgent(this,t),e)},t}(),St=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Ot=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),At=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Lt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Et=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Mt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Pt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Nt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jt=function(t){function e(e,n){var r=t.call(this,(function(t,n){B.debug("No callbacks on "+e+" for "+t)}))||this;return r.name=e,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return Nt(e,t),e.prototype.authorize=function(t,e){return e(!1,{auth:""})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new Tt("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=U("triggeringClientEvents");B.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(t,e,this.name)},e.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},e.prototype.handleEvent=function(t){var e=t.event,n=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,n,{})},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)},e.prototype.subscribe=function(){var t=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(e,n){e?(B.error(n),t.emit("pusher:subscription_error",n)):(n=n,t.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:t.name}))})))},e.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},e.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},e.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},e}(tt),Rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rt(e,t),e.prototype.authorize=function(t,e){return Yt.createAuthorizer(this,this.pusher.config).authorize(t,e)},e}(jt),$t=function(){function t(){this.reset()}return t.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null},t.prototype.each=function(t){var e=this;L(this.members,(function(n,r){t(e.get(r))}))},t.prototype.setMyID=function(t){this.myID=t},t.prototype.onSubscription=function(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)},t.prototype.addMember=function(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)},t.prototype.removeMember=function(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e},t.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},t}(),It=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.members=new $t,r}return It(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(!t){if(void 0===(e=e).channel_data){var i=U("authenticationEndpoint");return B.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+i),void n("Invalid auth response")}var o=JSON.parse(e.channel_data);r.members.setMyID(o.user_id)}n(t,e)}))},e.prototype.handleEvent=function(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var n=t.data,r={};t.user_id&&(r.user_id=t.user_id),this.emit(e,n,r)}},e.prototype.handleInternalEvent=function(t){var e=t.event,n=t.data;switch(e){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))},e.prototype.disconnect=function(){this.members.reset(),t.prototype.disconnect.call(this)},e}(Dt),Ht=n(0),Ut=n(1),Ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.key=null,e}return Ft(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(!0,e);else{var i=e.shared_secret;if(i)r.key=Object(Ut.decodeBase64)(i),delete e.shared_secret,n(!1,e);else{var o="No shared_secret key in auth payload for encrypted channel: "+r.name;n(!0,o)}}}))},e.prototype.trigger=function(t,e){throw new Et("Client events are not currently supported for encrypted channels")},e.prototype.handleEvent=function(e){var n=e.event,r=e.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):t.prototype.handleEvent.call(this,e)},e.prototype.handleEncryptedEvent=function(t,e){var n=this;if(this.key)if(e.ciphertext&&e.nonce){var r=Object(Ut.decodeBase64)(e.ciphertext);if(r.length0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new C(t||0,(function(){e.disconnectInternally(),e.connect()}))},e.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},e.prototype.setUnavailableTimer=function(){var t=this;this.unavailableTimer=new C(this.options.unavailableTimeout,(function(){t.updateState("unavailable")}))},e.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},e.prototype.sendActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new C(this.options.pongTimeout,(function(){t.timeline.error({pong_timed_out:t.options.pongTimeout}),t.retryIn(0)}))},e.prototype.resetActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new C(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return T({},t,{message:function(t){e.resetActivityCheck(),e.emit("message",t)},ping:function(){e.send_event("pusher:pong",{})},activity:function(){e.resetActivityCheck()},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return T({},t,{connected:function(t){e.activityTimeout=Math.min(e.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),e.clearUnavailableTimer(),e.setConnection(t.connection),e.socket_id=e.connection.id,e.updateState("connected",{socket_id:e.socket_id})}})},e.prototype.buildErrorCallbacks=function(){var t=this,e=function(e){return function(n){n.error&&t.emit("error",{type:"WebSocketError",error:n.error}),e(n)}};return{tls_only:e((function(){t.usingTLS=!0,t.updateStrategy(),t.retryIn(0)})),refused:e((function(){t.disconnect()})),backoff:e((function(){t.retryIn(1e3)})),retry:e((function(){t.retryIn(0)}))}},e.prototype.setConnection=function(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()},e.prototype.abandonConnection=function(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}},e.prototype.updateState=function(t,e){var n=this.state;if(this.state=t,n!==t){var r=t;"connected"===r&&(r+=" with new socket ID "+e.socket_id),B.debug("State changed",n+" -> "+r),this.timeline.info({state:t,params:e}),this.emit("state_change",{previous:n,current:t}),this.emit(t,e)}},e.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},e}(tt),Vt=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){return 0===t.indexOf("private-encrypted-")?Yt.createEncryptedChannel(t,e):0===t.indexOf("private-")?Yt.createPrivateChannel(t,e):0===t.indexOf("presence-")?Yt.createPresenceChannel(t,e):Yt.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return function(t){var e=[];return L(t,(function(t){e.push(t)})),e}(this.channels)},t.prototype.find=function(t){return this.channels[t]},t.prototype.remove=function(t){var e=this.channels[t];return delete this.channels[t],e},t.prototype.disconnect=function(){L(this.channels,(function(t){t.disconnect()}))},t}(),Yt={createChannels:function(){return new Vt},createConnectionManager:function(t,e){return new qt(t,e)},createChannel:function(t,e){return new jt(t,e)},createPrivateChannel:function(t,e){return new Dt(t,e)},createPresenceChannel:function(t,e){return new Bt(t,e)},createEncryptedChannel:function(t,e){return new zt(t,e)},createTimelineSender:function(t,e){return new kt(t,e)},createAuthorizer:function(t,e){return e.authorizer?e.authorizer(t,e):new Ct(t,e)},createHandshake:function(t,e){return new _t(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new gt(t,e,n)}},Kt=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return Yt.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},t.prototype.isAlive=function(){return this.livesLeft>0},t.prototype.reportDeath=function(){this.livesLeft-=1},t}(),Gt=function(){function t(t,e){this.strategies=t,this.loop=Boolean(e.loop),this.failFast=Boolean(e.failFast),this.timeout=e.timeout,this.timeoutLimit=e.timeoutLimit}return t.prototype.isSupported=function(){return R(this.strategies,S.method("isSupported"))},t.prototype.connect=function(t,e){var n=this,r=this.strategies,i=0,o=this.timeout,s=null,a=function(l,u){u?e(null,u):(i+=1,n.loop&&(i%=r.length),i0&&(i=new C(n.timeout,(function(){o.abort(),r(!0)}))),o=t.connect(e,(function(t,e){t&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(t,e))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(t){o.forceMinPriority(t)}}},t}(),Xt=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return R(this.strategies,S.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=P(t,(function(t,r,i,o){return t.connect(e,n(r,o))}));return{abort:function(){M(r,Jt)},forceMinPriority:function(t){M(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,i){n[t].error=r,r?function(t){return function(t,e){for(var n=0;n=S.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new Gt([o],{timeout:2*r.latency+1e3,failFast:!0})))}var s=S.now(),a=i.pop().connect(t,(function r(o,l){o?(te(n),i.length>0?(s=S.now(),a=i.pop().connect(t,r)):e(o)):(function(t,e,n){var r=we.getLocalStorage();if(r)try{r[Qt(t)]=I({timestamp:S.now(),transport:e,latency:n})}catch(t){}}(n,l.transport.name,S.now()-s),e(null,l))}));return{abort:function(){a.abort()},forceMinPriority:function(e){t=e,a&&a.forceMinPriority(e)}}},t}();function Qt(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function te(t){var e=we.getLocalStorage();if(e)try{delete e[Qt(t)]}catch(t){}}var ee=function(){function t(t,e){var n=e.delay;this.strategy=t,this.options={delay:n}}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n,r=this.strategy,i=new C(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}(),ne=function(){function t(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}return t.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},t.prototype.connect=function(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)},t}(),re=function(){function t(t){this.strategy=t}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.strategy.connect(t,(function(t,r){r&&n.abort(),e(t,r)}));return n},t}();function ie(t){return function(){return t.isSupported()}}var oe,se=function(t,e){var n={};function r(r,i,o,s,a){var l=e(t,r,i,o,s,a);return n[r]=l,l}var i,o={hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath},s=T({},o,{useTLS:!0}),a={hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath},l={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new Kt({lives:2,minPingDelay:1e4,maxPingDelay:t.activity_timeout}),c=new Kt({lives:2,minPingDelay:1e4,maxPingDelay:t.activity_timeout}),f=r("ws","ws",3,o,u),h=r("wss","ws",3,s,u),p=r("sockjs","sockjs",1,a),d=r("xhr_streaming","xhr_streaming",1,a,c),v=r("xdr_streaming","xdr_streaming",1,a,c),m=r("xhr_polling","xhr_polling",1,a),g=r("xdr_polling","xdr_polling",1,a),y=new Gt([f],l),b=new Gt([h],l),w=new Gt([p],l),x=new Gt([new ne(ie(d),d,v)],l),_=new Gt([new ne(ie(m),m,g)],l),C=new Gt([new ne(ie(x),new Xt([x,new ee(_,{delay:4e3})]),_)],l),k=new ne(ie(C),C,w);return i=t.useTLS?new Xt([y,new ee(k,{delay:2e3})]):new Xt([y,new ee(b,{delay:2e3}),new ee(k,{delay:5e3})]),new Zt(new re(new ne(ie(f),i,k)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},ae={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new Ot),t.close()},e.onerror=function(e){t.emit("error",e),t.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}},le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(t){function e(e,n,r){var i=t.call(this)||this;return i.hooks=e,i.method=n,i.url=r,i}return le(e,t),e.prototype.start=function(t){var e=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){e.close()},we.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)},e.prototype.close=function(){this.unloader&&(we.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},e.prototype.onChunk=function(t,e){for(;;){var n=this.advanceBuffer(e);if(!n)break;this.emit("chunk",{status:t,data:n})}this.isBufferTooLong(e)&&this.emit("buffer_too_long")},e.prototype.advanceBuffer=function(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null},e.prototype.isBufferTooLong=function(t){return this.position===t.length&&t.length>262144},e}(tt);!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(oe||(oe={}));var ce=oe,fe=1;function he(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+fe++}function pe(t){return Math.floor(Math.random()*t)}var de,ve=function(){function t(t,e){this.hooks=t,this.session=pe(1e3)+"/"+function(t){for(var e=[],n=0;n0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}},be={createStreamingSocket:function(t){return this.createSocket(me,t)},createPollingSocket:function(t){return this.createSocket(ge,t)},createSocket:function(t,e){return new ve(t,e)},createXHR:function(t,e){return this.createRequest(ye,t,e)},createRequest:function(t,e,n){return new ue(t,e,n)},createXDR:function(t,e){return this.createRequest(ae,t,e)}},we={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:a,getDefaultStrategy:se,Transports:dt,transportConnectionInitializer:function(){var t=this;t.timeline.info(t.buildTimelineMessage({transport:t.name+(t.options.useTLS?"s":"")})),t.hooks.isInitialized()?t.changeState("initialized"):t.hooks.file?(t.changeState("initializing"),l.load(t.hooks.file,{useTLS:t.options.useTLS},(function(e,n){t.hooks.isInitialized()?(t.changeState("initialized"),n(!0)):(e&&t.onError(e),t.onClose(),n(!1))}))):t.onClose()},HTTPFactory:be,TimelineTransport:V,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(t){var e=this;window.Pusher=t;var n=function(){e.onDocumentBody(t.ready)};window.JSON?n():l.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:F,jsonp:z}},onDocumentBody:function(t){var e=this;document.body?t():setTimeout((function(){e.onDocumentBody(t)}),0)},createJSONPRequest:function(t,e){return new q(t,e)},createScriptRequest:function(t){return new W(t)},getLocalStorage:function(){try{return window.localStorage}catch(t){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return mt},createWebSocket:function(t){return new(this.getWebSocketAPI())(t)},createSocketRequest:function(t,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(t,e);if(this.isXDRSupported(0===e.indexOf("https:")))return this.HTTPFactory.createXDR(t,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var t=this.getXHRAPI();return Boolean(t)&&void 0!==(new t).withCredentials},isXDRSupported:function(t){var e=t?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===e},addUnloadListener:function(t){void 0!==window.addEventListener?window.addEventListener("unload",t,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",t)},removeUnloadListener:function(t){void 0!==window.addEventListener?window.removeEventListener("unload",t,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",t)}};!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(de||(de={}));var xe=de,_e=function(){function t(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return t.prototype.log=function(t,e){t<=this.options.level&&(this.events.push(T({},e,{timestamp:S.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(xe.ERROR,t)},t.prototype.info=function(t){this.log(xe.INFO,t)},t.prototype.debug=function(t){this.log(xe.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=T({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(r,(function(t,r){t||n.sent++,e&&e(t,r)})),!0},t.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},t}(),Ce=function(){function t(t,e,n,r){this.name=t,this.priority=e,this.transport=n,this.options=r||{}}return t.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},t.prototype.connect=function(t,e){var n=this;if(!this.isSupported())return ke(new Pt,e);if(this.priority>1,c=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=u}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,l,u=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*l-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[n+p]=255&s,p+=d,s/=256,u-=8);t[n+p-d]|=128*v}},"p77/":function(t,e,n){var r=n("1I3E");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,i);r.locals&&(t.exports=r.locals)},tQ2B:function(t,e,n){"use strict";var r=n("xTJ+"),i=n("Rn+g"),o=n("MLWZ"),s=n("g7np"),a=n("w0Vi"),l=n("OTTw"),u=n("LYNF");t.exports=function(t){return new Promise((function(e,c){var f=t.data,h=t.headers;r.isFormData(f)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",v=t.auth.password||"";h.Authorization="Basic "+btoa(d+":"+v)}var m=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),o(m,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:t,request:p};i(e,c,r),p=null}},p.onabort=function(){p&&(c(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){c(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),c(u(e,t,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=n("eqyj"),y=(t.withCredentials||l(m))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(h,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),c(t),p=null)})),void 0===f&&(f=null),p.send(f)}))}},tjlA:function(t,e,n){"use strict";(function(t){var r=n("H7XF"),i=n("kVK+"),o=n("49sm");function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,s=1,a=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=n;oa&&(n=a-l),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(r,i),c=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function N(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function R(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,o){return o||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function $(t,e,n,r,o){return o||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return $(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return $(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n("yLpj"))},"uI/v":function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,"/*\n Name: lucario\n Author: Raphael Amorim\n\n Original Lucario color scheme (https://github.com/raphamorim/lucario)\n*/\n",""])},vDqi:function(t,e,n){t.exports=n("zuR4")},w0Vi:function(t,e,n){"use strict";var r=n("xTJ+"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,s={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},wHeC:function(t,e,n){(t.exports=n("I1BE")(!1)).push([t.i,".dot-typing {\n position: relative;\n left: -9999px;\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: #fff;\n color: #fff;\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n -webkit-animation: dot-typing 1s infinite linear;\n animation: dot-typing 1s infinite linear;\n}\n@-webkit-keyframes dot-typing {\n0% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n16.667% {\n box-shadow: 9984px -10px 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n33.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n50% {\n box-shadow: 9984px 0 0 0 #fff, 9999px -10px 0 0 #fff, 10014px 0 0 0 #fff;\n}\n66.667% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n83.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px -10px 0 0 #fff;\n}\n100% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n}\n@keyframes dot-typing {\n0% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n16.667% {\n box-shadow: 9984px -10px 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n33.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n50% {\n box-shadow: 9984px 0 0 0 #fff, 9999px -10px 0 0 #fff, 10014px 0 0 0 #fff;\n}\n66.667% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n83.333% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px -10px 0 0 #fff;\n}\n100% {\n box-shadow: 9984px 0 0 0 #fff, 9999px 0 0 0 #fff, 10014px 0 0 0 #fff;\n}\n}\n",""])},wouM:function(t,e,n){t.exports=function(){var t="__v-click-outside",e="undefined"!=typeof window,n="undefined"!=typeof navigator,r=e&&("ontouchstart"in window||n&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function i(e,n){var i=function(t){var e="function"==typeof t;if(!e&&"object"!=typeof t)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||r,isActive:!(!1===t.isActive)}}(n.value),o=i.handler,s=i.middleware;i.isActive&&(e[t]=i.events.map((function(t){return{event:t,handler:function(t){return function(t){var e=t.el,n=t.event,r=t.handler,i=t.middleware,o=n.path||n.composedPath&&n.composedPath(),s=o?o.indexOf(e)<0:!e.contains(n.target);n.target!==e&&s&&i(n)&&r(n)}({event:t,el:e,handler:o,middleware:s})}}})),e[t].forEach((function(n){var r=n.event,i=n.handler;return setTimeout((function(){e[t]&&document.documentElement.addEventListener(r,i,!1)}),0)})))}function o(e){(e[t]||[]).forEach((function(t){return document.documentElement.removeEventListener(t.event,t.handler,!1)})),delete e[t]}var s=e?{bind:i,update:function(t,e){var n=e.value,r=e.oldValue;JSON.stringify(n)!==JSON.stringify(r)&&(o(t),i(t,{value:n}))},unbind:o}:{};return{install:function(t){t.directive("click-outside",s)},directive:s}}()},xAGQ:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},"xTJ+":function(t,e,n){"use strict";var r=n("HSsa"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n { this.removingMember = null this.removingMemberLoading = false @@ -172,17 +175,20 @@ export default { this.$root.flashMessage('Member removed.') }) - .catch((error) => { + .catch(error => { this.removingMember = null this.removingMemberLoading = false - this.$root.flashMessage(error.response.data.message || 'Failed to remove member.') + this.$root.flashMessage( + error.response.data.message || + 'Failed to remove member.' + ) }) }, setRemoveMember(member) { - this.removeMemberConfirming = true + this.removeMemberConfirming = true - this.removingMember = member + this.removingMember = member } } } diff --git a/resources/js/Pages/Account/Teams.vue b/resources/js/Pages/Account/Teams.vue index 44fb217..f946fad 100644 --- a/resources/js/Pages/Account/Teams.vue +++ b/resources/js/Pages/Account/Teams.vue @@ -64,7 +64,9 @@ } }" > - {{ row.invites.length }} Member{{ row.invites.length === 1 ? '' : 's' }} + {{ row.invites.length }} Member{{ + row.invites.length === 1 ? '' : 's' + }}
- - + + @@ -210,12 +237,16 @@ export default { this.updateInvite(invite, 'rejected') }, updateInvite(invite, status) { - axios.patch(`/api/invites/${invite.id}/${status}`) + axios + .patch(`/api/invites/${invite.id}/${status}`) .then(({ data: user }) => { this.$root.auth = user }) - .catch((error) => { - this.$root.flashMessage(error.response.data.message || 'Failed to update invite.') + .catch(error => { + this.$root.flashMessage( + error.response.data.message || + 'Failed to update invite.' + ) }) } } diff --git a/resources/js/Pages/Dashboard/Index.vue b/resources/js/Pages/Dashboard/Index.vue index c0c7942..ae794b8 100644 --- a/resources/js/Pages/Dashboard/Index.vue +++ b/resources/js/Pages/Dashboard/Index.vue @@ -45,15 +45,13 @@ {{ row.ip_address }} - {{ row.ip_address }} - {{ row.type.split('_').join(' ') }} - {{ row.type.split('_').join(' ') }} - { - servers = [ - ...this.$root.allServers.servers, - ...membership.team.servers - ] - }) - + if (this.$root.allServers.team_servers.length) { + this.$root.allServers.team_servers.forEach(membership => { + servers = [ + ...this.$root.allServers.servers, + ...membership.team.servers + ] + }) + } + servers = [...servers, ...this.$root.allServers.servers] return servers }, subscription() { diff --git a/resources/js/Pages/Servers/Single.vue b/resources/js/Pages/Servers/Single.vue index 49ec4ce..87971e0 100644 --- a/resources/js/Pages/Servers/Single.vue +++ b/resources/js/Pages/Servers/Single.vue @@ -82,23 +82,21 @@ {{ row.name }} - {{ row.name }} - {{ row.type }} - {{ row.type }} - -
+
- + + +
+ In order to create a database on for your server, ensure you selected a database of your choice when you added a server, this would enable Nesabox install the specific database on your server. + If you did not do that, you cannot use a database with the server you just created. +

+ +

+ Click on the server you just created, you would be directed to a page where you can view the details for your new server. + On the side menu, a list of database/databases installed on the server. +

+ +@include('app.partials.image-link', [ + 'name' => 'add-database' +]) + +

+ You can select the database you want to create, here you can provide a name for the database. You can also add users for the database, these are the users that can have either Readonly or Read and Write access to your database. +

\ No newline at end of file diff --git a/resources/views/app/docs/server-management/firewall.blade.php b/resources/views/app/docs/server-management/firewall.blade.php index e69de29..916c9e5 100644 --- a/resources/views/app/docs/server-management/firewall.blade.php +++ b/resources/views/app/docs/server-management/firewall.blade.php @@ -0,0 +1,20 @@ +

+ To add a Firewall, select a server you want to add some Firewall rules to. On the server details page, select Network. +

+ +@include('app.partials.image-link', [ + 'name' => 'add-firewall' +]) + +
+

Scroll down to the Firewall section, here you provide these details;

+
+
Name : A suitable name for the Firewall rule.
+
Port : This is the port of the service you want to restrict access to.
+
From IP Address : You restrict access by adding IP address/adressess. If you do not specify any, then any IP address can have access to the port.
+
+
+ +@include('app.partials.image-link', [ + 'name' => 'add-firewall-2' +]) diff --git a/resources/views/app/docs/server-management/provision-a-server.blade.php b/resources/views/app/docs/server-management/provision-a-server.blade.php index cd17882..0f0a26a 100644 --- a/resources/views/app/docs/server-management/provision-a-server.blade.php +++ b/resources/views/app/docs/server-management/provision-a-server.blade.php @@ -1 +1,37 @@ Time to provision a server. On your dashboard, click the Add new server button. + +

+ Here you select the server provider you want to go with, next select an API key for the server provider (this should have been created on the Server Providers page) +

+ +@include('app.partials.image-link', [ + 'name' => 'add-server-1' +]) + +

+ The next steps involves you providing customized details for the new server. These include; +

+
    +
  • + Server name : Here you provide a name for the new server i.e Ecommerce-store. +
  • +
  • + Server type : +
    + This is where you tell NesaBox how you want your server bootstrapped. + - Default : this provides everything you need to run a site i.e Nginx, Monitoring, Private networking + - Load Balancer : this option invloces setting up Nginx on the server and optimizing for load balancing only. + - Database : this option invloces setting up Nginx on the server and optimizing for load balancing only. +
    +
  • +
  • + Region : Where do you want your server located, ideally the data center you choose depends on the location of the users of the application. +
  • +
  • + Size : Select the size of RAM, GB and virtual CPUs +
  • +
+ +@include('app.partials.image-link', [ + 'name' => 'add-server-2' +]) \ No newline at end of file diff --git a/resources/views/app/docs/server-management/ssh-keys.blade.php b/resources/views/app/docs/server-management/ssh-keys.blade.php index e69de29..475337e 100644 --- a/resources/views/app/docs/server-management/ssh-keys.blade.php +++ b/resources/views/app/docs/server-management/ssh-keys.blade.php @@ -0,0 +1,18 @@ +

+ Nesabox provides an easy way to add and manage SSH keys for a server. +

+

+ To add SSH keys for a server, select the particular server on your Dashboard. Next, on the side menu select SSH Keys. +

+ +
+

Nesabox needs just two details to add the SSH keys;

+
+
Name : A suitable name for the SSH key.
+
Public key : A public key for the remote server
+
+
+ +@include('app.partials.image-link', [ + 'name' => 'add-ssh-key-to-account' +]) diff --git a/resources/views/app/docs/sites/git-repositories.blade.php b/resources/views/app/docs/sites/git-repositories.blade.php index e69de29..aa6d48a 100644 --- a/resources/views/app/docs/sites/git-repositories.blade.php +++ b/resources/views/app/docs/sites/git-repositories.blade.php @@ -0,0 +1,8 @@ +

Nesabox make it easy to upload source files by connecting to git.

+

+ To connect to your git repository, navigate to your the source control page. Here, you can connect to where the source files for your site lives, either GitHub or GitLab +

+ +@include('app.partials.image-link', [ + 'name' => 'connect-src-ctrl' +]) \ No newline at end of file