MC/website/control-panel/native-editor/js/app-legacy.bf0ae1cd.js
2026-11-27 23:43:05 +00:00

2 lines
No EOL
56 KiB
JavaScript

(function(){"use strict";var e={27664:function(e,t,o){o.d(t,{A:function(){return c}});var n=function(){var e=this,t=e._self._c;return t("main",{staticClass:"notfound"},[t("section",{staticClass:"hero"},[t("div",{staticClass:"hero-content"},[t("font-awesome",{attrs:{icon:"exclamation-circle"}}),t("h1",[e._v(e._s(e.$t("notFound.title")))]),t("div",{staticClass:"error"},[t("i18n",{attrs:{path:"notFound.message",tag:"p"},scopedSlots:e._u([{key:"path",fn:function(){return[t("code",[e._v(e._s(e.$route.path))])]},proxy:!0}])})],1)],1)])])},r=[],s={name:"NotFound",metaInfo:{title:"404"}},i=s,a=o(845),u=(0,a.A)(i,n,r,!1,null,null,null),c=u.exports},78198:function(e,t,o){o.r(t)},20672:function(e,t,o){o(23792),o(3362),o(69085),o(9391);var n=o(85471),r=o(64765),s=o(63292),i=o.n(s),a=o(95681),u=o.n(a),c=o(67845),d=o(60649),l=o(15060),p=(o(28706),o(26099),o(47764),o(62953),o(40173)),f=function(){var e=this,t=e._self._c;return t("main",{staticClass:"home"},[t("section",{staticClass:"hero"},[t("div",{staticClass:"container"},[t("div",{class:{logo:!0,selfhosted:e.config.selfHosted}},[t("img",{attrs:{alt:"LuckPerms logo",src:o(63935)}}),t("div",[t("h1",[e._v("LuckPerms")]),t("p",[e._v(e._s(e.$t("description")))])])]),e.config.selfHosted?e._e():t("div",{staticClass:"download"},[t("router-link",{attrs:{to:"/download"}},[t("span",[t("font-awesome",{attrs:{icon:"arrow-alt-circle-down"}}),e._v(" "+e._s(e.$t("links.download"))+" ")],1),t("small",[e._v(" v"+e._s(e.version)+" "),e.version?e._e():t("font-awesome",{attrs:{icon:"asterisk",spin:!0}})],1)]),t("small",[e._v(" "+e._s(e.$t("home.supported"))+" ")])],1)])]),e.config.selfHosted?t("div",{staticClass:"container selfhosted"},[t("section",{staticClass:"resources"},[t("div",[t("div",{staticClass:"tools"},[t("router-link",{attrs:{to:"/editor",alt:"Web Editor"}},[t("font-awesome",{attrs:{icon:"edit"}}),e._v(" "+e._s(e.$t("links.editor"))+" ")],1),t("router-link",{attrs:{to:"/verbose",alt:"Verbose Viewer"}},[t("font-awesome",{attrs:{icon:"comment-alt"}}),e._v(" "+e._s(e.$t("links.verbose"))+" ")],1),t("router-link",{attrs:{to:"/treeview",alt:"Tree Viewer"}},[t("font-awesome",{attrs:{icon:"sitemap"}}),e._v(" "+e._s(e.$t("links.tree"))+" ")],1)],1)])])]):t("div",{staticClass:"container"},[t("section",{staticClass:"resources"},[t("div",[t("h2",[e._v(e._s(e.$t("home.why.title")))]),t("p",[e._v(e._s(e.$t("home.why.description")))]),t("p",[e._v(e._s(e.$t("home.why.its")))]),t("ul",[t("li",{domProps:{innerHTML:e._s(e.$t("home.why.fast"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.reliable"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.easy"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.flexible"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.extensive"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.free"))}})]),t("i18n",{attrs:{path:"home.why.more",tag:"p"},scopedSlots:e._u([{key:"wiki",fn:function(){return[t("router-link",{attrs:{to:"/wiki/Why-LuckPerms"}},[e._v(e._s(e.$t("home.why.why")))])]},proxy:!0}],null,!1,2720492971)}),t("h2",[e._v(e._s(e.$t("home.apps.title")))]),t("p",[e._v(e._s(e.$t("home.apps.description1")))]),t("p",[e._v(e._s(e.$t("home.apps.description2")))]),t("div",{staticClass:"tools"},[t("router-link",{attrs:{to:"/editor",alt:"Web Editor"}},[t("font-awesome",{attrs:{icon:"edit"}}),e._v(" "+e._s(e.$t("links.editor"))+" ")],1),t("router-link",{attrs:{to:"/verbose",alt:"Verbose Viewer"}},[t("font-awesome",{attrs:{icon:"comment-alt"}}),e._v(" "+e._s(e.$t("links.verbose"))+" ")],1),t("router-link",{attrs:{to:"/treeview",alt:"Tree Viewer"}},[t("font-awesome",{attrs:{icon:"sitemap"}}),e._v(" "+e._s(e.$t("links.tree"))+" ")],1)],1)],1),t("div",[t("router-link",{staticClass:"resource",attrs:{to:"/wiki"}},[t("span",[t("font-awesome",{attrs:{icon:"book"}}),e._v(" "+e._s(e.$t("links.wiki"))+" ")],1),t("small",[e._v(e._s(e.$t("home.wiki")))])]),t("a",{staticClass:"resource",attrs:{href:"https://github.com/LuckPerms/LuckPerms"}},[t("span",[t("font-awesome",{attrs:{icon:["fab","github"]}}),e._v(" GitHub ")],1),t("small",[e._v(e._s(e.$t("home.github")))])]),t("a",{staticClass:"resource",attrs:{href:"https://discord.gg/luckperms"}},[t("span",[t("font-awesome",{attrs:{icon:["fab","discord"]}}),e._v(" Discord ")],1),t("small",[e._v(e._s(e.$t("home.discord",{count:e.discordUserCount})))])]),t("router-link",{staticClass:"resource",attrs:{to:"/sponsor"}},[t("span",[t("font-awesome",{attrs:{icon:"server"}}),e._v(" "+e._s(e.$t("home.partner.title"))+" ")],1),t("small",[e._v(e._s(e.$t("home.partner.description")))])])],1)])])])},m=[],h={name:"Home",metaInfo:{title:"LuckPerms",titleTemplate:null},data:function(){return{}},computed:{version:function(){return this.$store.getters.version},config:function(){return this.$store.getters.config},discordUserCount:function(){return this.$store.getters.discordUserCount}}},g=h,v=o(845),y=(0,v.A)(g,f,m,!1,null,null,null),w=y.exports,k=o(27664),b=o(68272);n["default"].use(p.Ay);var x=[{path:"/",name:"home",component:w},{path:"*",name:"not-found",component:k.A},{path:"/editor",name:"editor-home",component:function(){return Promise.all([o.e(579),o.e(8)]).then(o.bind(o,92401))}},{path:"/editor/:id",name:"editor",component:function(){return Promise.all([o.e(579),o.e(8)]).then(o.bind(o,92401))}},{path:"/verbose",name:"verbose-home",component:function(){return Promise.all([o.e(579),o.e(671)]).then(o.bind(o,56253))}},{path:"/verbose/:id",name:"verbose",component:function(){return Promise.all([o.e(579),o.e(671)]).then(o.bind(o,56253))}},{path:"/treeview",name:"tree-home",component:function(){return o.e(623).then(o.bind(o,87770))}},{path:"/treeview/:id",name:"tree",component:function(){return o.e(623).then(o.bind(o,87770))}}];if(!b.selfHosted){var A=[{path:"/download",name:"download",component:function(){return o.e(467).then(o.bind(o,74882))}},{path:"/sponsor",name:"sponsor",component:function(){return o.e(603).then(o.bind(o,42963))}},{path:"/wiki",name:"wiki",component:function(){return o.e(419).then(o.bind(o,45777))},redirect:"/wiki/Home",children:[{path:":page",name:"wiki-article",component:function(){return o.e(419).then(o.bind(o,94450))}}]}];x=[].concat((0,l.A)(x),A)}var S=new p.Ay({mode:"history",base:b.base,routes:x}),L=o(48747),C=o(86429),_=o(61273),P=o(82630),E=o(2403);C.Yv.add(P.hSh,P.U23,P.yek,P.tUE,P.OQW,P.GRI,P.s0Q,P.DqM,P.kZq,P.QLR,P.OtC,P.LBj,P.mwg,P.CeG,P.fU5,P.MT7,P.e68,P.v02,P.wXH,P.nsx,P.mh,P.EZy,P.FFg,P.jkA,P.xbI,P.Ni$,P.wRm,P.ckx,P.Xbc,P.$3n,P.rhE,P.MjD,P.D6w,P.qcK,P.vh1,E.Vz1,E._2G);var N={install:function(e){e.component("font-awesome",_.gc),e.component("font-awesome-layers",_.Vg)}},T=N,D=(o(62010),o(38781),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("nav",{attrs:{id:"nav"}},[t("div",[t("router-link",{staticClass:"logo",attrs:{to:"/"}},[t("img",{attrs:{alt:"LuckPerms logo",src:o(63935)}}),t("span",[e._v("LuckPerms · DuneRealms")])]),t("transition",{attrs:{name:"fade"}},[e.config.selfHosted||e.isSponsorRoute?e._e():t("div",{staticClass:"nav-message"},[t("router-link",{attrs:{to:"/sponsor"}},[t("hr"),t("img",{attrs:{src:o(63992),alt:"Bisect Hosting"}}),t("span",{domProps:{innerHTML:e._s(e.$t("sponsor"))}})])],1)])],1),t("ul",{class:{active:e.menu,"top-level":!0}},[e.config.selfHosted?e._e():[t("li",{directives:[{name:"show",rawName:"v-show",value:e.showSearchBar,expression:"showSearchBar"}],staticClass:"search-container"},[t("div",{attrs:{id:"docsearch"}})]),t("li",[t("router-link",{attrs:{to:"/download"}},[t("font-awesome",{attrs:{icon:"arrow-alt-circle-down","fixed-width":""}}),e._v(" "+e._s(e.$t("links.download"))+" ")],1)],1),t("li",{staticClass:"overlap"},[t("router-link",{attrs:{to:"/wiki"}},[t("font-awesome",{attrs:{icon:"book","fixed-width":""}}),e._v(" "+e._s(e.$t("wiki"))+" ")],1)],1)],t("li",[t("span",{class:{"router-link-active":e.isToolsRoute,tools:!0}},[t("font-awesome",{attrs:{icon:"tools","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.name"))+" ")],1),t("ul",[t("li",[t("router-link",{attrs:{to:"/editor"}},[t("font-awesome",{attrs:{icon:"edit","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.editor"))+" ")],1)],1),t("li",[t("router-link",{attrs:{to:"/verbose"}},[t("font-awesome",{attrs:{icon:"comment-alt","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.verbose"))+" ")],1)],1),t("li",[t("router-link",{attrs:{to:"/treeview"}},[t("font-awesome",{attrs:{icon:"sitemap","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.tree"))+" ")],1)],1)])]),e.config.selfHosted?e._e():[t("li",{staticClass:"external overlap"},[t("a",{staticClass:"github",attrs:{href:"https://github.com/LuckPerms/LuckPerms",target:"_blank"}},[t("font-awesome",{attrs:{icon:["fab","github"],"fixed-width":""}}),t("span",[e._v("GitHub")])],1)]),t("li",{staticClass:"external"},[t("a",{staticClass:"discord",attrs:{href:"https://discord.gg/luckperms",target:"_blank"}},[t("font-awesome",{attrs:{icon:["fab","discord"],"fixed-width":""}}),t("span",[e._v("Discord")])],1)])],e.locale?t("li",{on:{click:function(t){e.localeMenu=!e.localeMenu}}},[t("span",{staticClass:"locale"},[t("font-awesome",{attrs:{icon:"language","fixed-width":""}}),t("span",{staticClass:"locale-label"},[e._v(e._s(e.$t("links.language")))])],1),t("ul",{class:["locale-menu",{open:!!e.localeMenu}]},e._l(e.locales,(function(o){return t("li",{key:o.code,class:[{selected:o===e.locale}],on:{click:function(t){return e.setLocale(o.code)}}},[t("span",[t("span",{class:["fi","fi-"+o.countryCode],attrs:{alt:o.name}}),e._v(" "+e._s(o.name)+" ")])])})),0)]):e._e()],2),t("button",{attrs:{id:"nav-menu-toggle"},on:{click:function(t){e.menu=!e.menu}}},[t("font-awesome",{attrs:{icon:"bars"}})],1),t("transition",{attrs:{name:"fade"}},[e.menu?t("div",{staticClass:"overlay-focus",attrs:{id:"nav-focus"},on:{click:function(t){e.menu=!e.menu}}}):e._e()])],1),t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1),t("footer",[t("div",{staticClass:"footer"},[t("ul",[t("li",[t("font-awesome",{attrs:{icon:"code-branch","fixed-width":""}}),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsWeb",target:"_blank"}},[e._v("LuckPermsWeb")]),e._v(" @ "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsWeb/commit/"+e.commitHash,target:"_blank"}},[e._v(e._s(e.commitHash))])],1),t("li",[e.config.selfHosted?t("a",{attrs:{href:"https://luckperms.net/wiki/Credits",target:"_blank"}},[e._v(" Copyright © 2017-"+e._s((new Date).getFullYear().toString())+" LuckPerms contributors ")]):t("router-link",{attrs:{to:"/wiki/Credits",target:"_blank"}},[e._v(" Copyright © 2017-"+e._s((new Date).getFullYear().toString())+" LuckPerms contributors ")])],1)])])])],1)}),I=[],U=(o(74423),o(82664)),V={metaInfo:{titleTemplate:"%s | LuckPerms",meta:[{property:"og:title",content:"LuckPerms"},{property:"og:description",content:"Website & online apps for the LuckPerms plugin."},{property:"og:type",content:"product"},{property:"og:image",content:"https://luckperms.net/logo.png"},{property:"og:url",content:"https://luckperms.net/"},{property:"og:site_name",content:"LuckPerms - A permissions plugin for Minecraft servers."}]},data:function(){return{menu:!1,localeMenu:!1}},computed:{commitHash:function(){return"5e99c72"},locale:function(){return this.$store.getters.userLocale},locales:function(){return this.$store.getters.supportedLanguages},version:function(){return this.$store.getters.version},config:function(){return this.$store.getters.config},showSearchBar:function(){var e=["editor","editor-home"];return!e.includes(this.$route.name)},isToolsRoute:function(){return["editor","editor-home","verbose","verbose-home","tree","tree-home"].includes(this.$route.name)},isSponsorRoute:function(){return"sponsor"===this.$route.name}},created:function(){this.$store.dispatch("getAppData")},mounted:function(){(0,U.A)({container:"#docsearch",appId:"ZXKCPO8F1T",indexName:"luckperms",apiKey:"a37e3bc32993f2eb764d0c84dbd526e9"})},methods:{setLocale:function(e){this.$store.dispatch("setUserLocale",e)}},watch:{$route:function(){this.menu=!1}}},K=V,$=(0,v.A)(K,D,I,!1,null,null,null),M=$.exports;o(78198),n["default"].use(u()),n["default"].use(c.A),n["default"].use(r.A),n["default"].use(T),n["default"].use(L["default"]),n["default"].directive("autofocus",i()),n["default"].config.productionTip=!1,n["default"].config.performance=!0,new n["default"]({router:S,store:d.A,i18n:L["default"],render:function(e){return e(M)}}).$mount("#app")},60649:function(e,t,o){o.d(t,{A:function(){return U}});var n=o(47546),r=o(24634),s=o(15060),i=o(47135),a=o(40668),u=(o(16280),o(28706),o(2008),o(50113),o(48980),o(74423),o(62062),o(44114),o(54554),o(62010),o(5506),o(79432),o(26099),o(27495),o(31415),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(21699),o(47764),o(25440),o(11392),o(23500),o(62953),o(3296),o(27208),o(48408),o(14603),o(47566),o(98721),o(85471)),c=o(95353),d=o(72505),l=o.n(d),p=o(70406),f=(o(36014),o(26910),o(52416)),m=o.n(f),h=Promise.resolve().then(o.bind(o,48747));function g(e,t){var o=e.name,n=void 0===o?"":o,r=t.name,s=void 0===r?"":r;return n.localeCompare(s)}var v={state:function(){return{userLocale:"",supportedLanguages:[],loadedLanguages:[]}},getters:{userLocale:function(e){var t=e.userLocale;return e.supportedLanguages.find((function(e){var o=e.code;return o===t}))},supportedLanguages:function(e){return e.supportedLanguages.sort(g)}},mutations:{setUserLocale:function(e,t){e.userLocale=t},setSupportedLanguages:function(e,t){e.supportedLanguages=t||[]},addLoadedLanguage:function(e,t){e.loadedLanguages.push(t)}},actions:{setUserLocale:function(e,t){return(0,r.A)((0,n.A)().mark((function o(){var r,i,a,u,c,d,l,p;return(0,n.A)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(i=e.state,a=e.commit,u=e.dispatch,!t){o.next=5;break}return u("fetchLanguage",t),a("setUserLocale",t),o.abrupt("return");case 5:if(!i.userLocale){o.next=8;break}return u("fetchLanguage",i.userLocale),o.abrupt("return");case 8:c=[navigator.language].concat((0,s.A)(navigator.languages||[])),d=(null===(r=i.supportedLanguages)||void 0===r?void 0:r.map((function(e){var t=e.code;return t})))||[],l="en",p=c.find((function(e){if(d.includes(e))return!0;var t=m().getByTag(e),o=t["iso639-1"];return d.includes(o)})),p&&(l=d.includes(p)?p:m().getByTag(p)["iso639-1"]),u("fetchLanguage",l),a("setUserLocale",l);case 15:case"end":return o.stop()}}),o)})))()},fetchLanguages:function(e){return(0,r.A)((0,n.A)().mark((function t(){var o,r,s,a,u,c,d,p;return(0,n.A)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=e.commit,r=e.dispatch,t.next=3,l().get("https://metadata.luckperms.net/data/translations");case 3:s=t.sent,a=s.data.languages,a.en={code:"en",name:"English",localeTag:"en_GB",progressWeb:100},u=function(e){var t=a[e];return!(null===t||void 0===t||!t.progressWeb)&&t.progressWeb},c=function(e){var t=a[e],o=t.name,n=t.localeTag,r=n.split("_"),s=(0,i.A)(r,2),u=s[1];return u=u.toLowerCase(),"cs"===u&&(u="rs"),{code:e,name:o,countryCode:u}},d=Object.keys(a),p=d.filter(u).map(c),o("setSupportedLanguages",p),r("setUserLocale");case 12:case"end":return t.stop()}}),t)})))()},fetchLanguage:function(e,t){return(0,r.A)((0,n.A)().mark((function e(){var o,r,s;return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h;case 2:if(o=e.sent.default,"en"!==t){e.next=6;break}return o.locale=t,e.abrupt("return");case 6:return e.next=8,l().get("https://metadata.luckperms.net/translation/web/".concat(t));case 8:r=e.sent,s=r.data,o.locale=t,o.setLocaleMessage(t,s);case 12:case"end":return e.stop()}}),e)})))()}}},y=o(51668),w=o.n(y);function k(e,t){return t["Content-Encoding"]="gzip",w().gzip(e)}var b=Object.assign({transformRequest:l().defaults.transformRequest.concat(k)}),x=o(77552),A=o(36654),S=(o(54743),o(11745),o(16573),o(78100),o(77936),o(21489),o(48140),o(81630),o(72170),o(75044),o(69539),o(31694),o(89955),o(21903),o(91134),o(33206),o(44496),o(66651),o(12887),o(19369),o(66812),o(8995),o(31575),o(36072),o(88747),o(28845),o(29423),o(57301),o(373),o(86614),o(41405),o(37467),o(44732),o(33684),o(79577),o(16257)),L=o(14590);function C(){return new Worker(o.p+"js/worker-legacy.b5dbbc78.worker.js")}function _(e,t,o,n,r){return P.apply(this,arguments)}function P(){return P=(0,r.A)((0,n.A)().mark((function e(t,o,r,s,i){var a,u,c,d,l,p;return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new E(t),e.next=3,a.loadKeys();case 3:if(e.t0=e.sent,e.t0){e.next=8;break}return e.next=7,a.generateKeys();case 7:e.t0=e.sent;case 8:return u=e.t0,e.next=11,a.importKey("spki",s,["verify"]);case 11:return c=e.sent,d=window.navigator.userAgent,l=window.location.href,p=(0,L.LV)(new C),e.next=17,p.socketConnect(o,r,a.signVerifyAlgorithm,u,c,d,l,(0,L.BX)({connect:(0,L.BX)((function(){i.connect({socket:p})})),trust:(0,L.BX)((function(e){i.trust({nonce:e})})),trusted:(0,L.BX)((function(){i.trusted()})),reused:(0,L.BX)((function(){i.reused()})),close:(0,L.BX)((function(){i.close()}))}));case 17:return e.abrupt("return",p);case 18:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}var E=function(){function e(t){if((0,x.A)(this,e),1===t)this.publicKeyVariable="editor-public-key",this.privateKeyVariable="editor-private-key",this.importAlgorithm={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},this.generateAlgorithm={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:4096,publicExponent:new Uint8Array([1,0,1])},this.signVerifyAlgorithm={name:"RSASSA-PKCS1-v1_5"};else{if(2!==t)throw new Error("Unsupported protocol version: ".concat(t));this.publicKeyVariable="editor-public-key-v2",this.privateKeyVariable="editor-private-key-v2",this.importAlgorithm={name:"ECDSA",namedCurve:"P-256"},this.generateAlgorithm={name:"ECDSA",namedCurve:"P-256"},this.signVerifyAlgorithm={name:"ECDSA",hash:"SHA-256"}}}return(0,A.A)(e,[{key:"loadKeys",value:function(){var e=(0,r.A)((0,n.A)().mark((function e(){var t,o,r,s;return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=localStorage.getItem(this.publicKeyVariable),o=localStorage.getItem(this.privateKeyVariable),!t||!o){e.next=10;break}return e.next=5,this.importKey("spki",t,[]);case 5:return r=e.sent,e.next=8,this.importKey("pkcs8",o,["sign"]);case 8:return s=e.sent,e.abrupt("return",{publicKey:r,privateKey:s,encodedPublicKey:t,encodedPrivateKey:o});case 10:return e.abrupt("return",null);case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"importKey",value:function(e,t,o){return crypto.subtle.importKey(e,(0,S.D)(t),this.importAlgorithm,!1,o)}},{key:"exportKey",value:function(){var e=(0,r.A)((0,n.A)().mark((function e(t,o,r){var s,i;return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.exportKey(t,o);case 2:return s=e.sent,i=(0,S.l)(s),localStorage.setItem(r,i),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));function t(t,o,n){return e.apply(this,arguments)}return t}()},{key:"generateKeys",value:function(){var e=(0,r.A)((0,n.A)().mark((function e(){var t,o,r,s,i;return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.generateKey(this.generateAlgorithm,!0,["sign"]);case 2:return t=e.sent,o=t.publicKey,r=t.privateKey,e.next=7,this.exportKey("spki",o,this.publicKeyVariable);case 7:return s=e.sent,e.next=10,this.exportKey("pkcs8",r,this.privateKeyVariable);case 10:return i=e.sent,e.abrupt("return",{publicKey:o,privateKey:r,encodedPublicKey:s,encodedPrivateKey:i});case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}])}(),N=o(42419),T=o(12550),D=o(68272);u["default"].use(c.Ay);var I=(0,p.A)({paths:["language"]}),U=new c.Ay.Store({modules:{language:v},plugins:[I],state:{version:null,versionTimestamp:null,changeLog:[],config:null,downloads:{bukkit:null,"bukkit-legacy":null,bungee:null,nukkit:null,sponge:null,velocity:null,fabric:null,forge:null,neoforge:null},extensions:{"extension-legacy-api":null,"extension-default-assignments":null},additionalPlugins:{extracontexts:null},placeholderExpansions:{"luckperms-mvdw-hook":null,"luckperms-papi-expansion":null},discordUserCount:null,editor:{sessionId:null,socket:null,errors:{load:!1,unsupported:!1}},verbose:{status:0,sessionId:null,metadata:null,data:null,errors:{load:!1,unsupported:!1}},tree:{sessionId:null,metadata:null,data:null,errors:{load:!1,unsupported:!1}}},getters:{version:function(e){return e.version},versionTimestamp:function(e){return e.versionTimestamp},changeLog:function(e){return e.changeLog},config:function(e){return e.config},downloads:function(e){return e.downloads},extensions:function(e){return e.extensions},additionalPlugins:function(e){return e.additionalPlugins},placeholderExpansions:function(e){return e.placeholderExpansions},discordUserCount:function(e){return e.discordUserCount},editorSessionId:function(e){return e.editor.sessionId},verbose:function(e){return e.verbose},tree:function(e){return e.tree},editorSocket:function(e){return e.editor.socket},editorSocketStatus:function(e){return e.editor.socketStatus},metaData:function(e){return e.editor.metaData},sessionList:function(e){return e.editor.sessionList},sessionSet:function(e){var t;return null===(t=e.editor.sessionList)||void 0===t?void 0:t.map((function(t){return e.editor.sessions[t]}))},currentSession:function(e){return e.editor.sessions[e.editor.currentSession]},currentSessionId:function(e){return e.editor.currentSession},currentNodes:function(e){var t;return null===(t=e.editor.nodes)||void 0===t?void 0:t.filter((function(t){return t.sessionId===e.editor.currentSession}))},allNodes:function(e){return e.editor.nodes},tracks:function(e){return e.editor.tracks},selectedNodeIds:function(e){return e.editor.selectedNodes},selectedNodes:function(e,t){return t.selectedNodeIds.map((function(e){return t.allNodes.find((function(t){var o=t.id;return e===o}))}))},potentialContexts:function(e){return e.editor.potentialContexts},modifiedSessions:function(e,t){return t.sessionSet.filter((function(e){return e.new||e.modified})).map((function(e){return e.id}))},weightNodes:function(e){var t;return null===(t=e.editor.nodes)||void 0===t?void 0:t.filter((function(e){return e.key.startsWith("weight")}))},saveStatus:function(e){var t;return null===(t=e.editor.save)||void 0===t?void 0:t.status},saveKey:function(e){var t;return null===(t=e.editor.save)||void 0===t?void 0:t.key}},mutations:{setVersion:function(e,t){e.version=t},setVersionTimestamp:function(e,t){e.versionTimestamp=t},setChangeLog:function(e,t){e.changeLog=t},setConfig:function(e,t){e.config=t},setDownloads:function(e,t){e.downloads=t},setExtensions:function(e,t){e.extensions=t},setAdditionalPlugins:function(e,t){e.additionalPlugins=t},setPlaceholderExpansions:function(e,t){e.placeholderExpansions=t},setDiscordUserCount:function(e,t){e.discordUserCount=t},initEditorData:function(e,t){var o,n;e.editor={sessionId:t,socket:null===e||void 0===e||null===(o=e.editor)||void 0===o?void 0:o.socket,socketStatus:null===e||void 0===e||null===(n=e.editor)||void 0===n?void 0:n.socketStatus,sessions:{},sessionList:[],nodes:[],metaData:{},tracks:[],deletedTracks:[],deletedGroups:[],deletedUsers:[],knownPermissions:[],potentialContexts:[],currentSession:null,selectedNodes:[],modal:{type:null,object:null},errors:{load:!1,unsupported:!1},save:{status:null,key:null}}},setEditorSocket:function(e,t){e.editor.socket=t},setEditorSocketStatus:function(e,t){e.editor.socketStatus=t},setMetaData:function(e,t){e.editor.metaData=t},setKnownPermissions:function(e,t){e.editor.knownPermissions=t},setTracks:function(e,t){e.editor.tracks=t},addTrack:function(e,t){e.editor.tracks.push(t)},updateTrack:function(e,t){var o=t.id,n=t.newTrack,r=e.editor.tracks.find((function(e){return e.id===o}));r.groups=n.groups},deleteTrack:function(e,t){var o=e.editor.tracks.findIndex((function(e){return e.id===t}));e.editor.tracks.splice(o,1),e.editor.deletedTracks.push(t)},updateTrackOrder:function(e,t){e.editor.tracks=t},deleteSession:function(e,t){var o=e.editor.sessions[t].type,n=e.editor.sessionList.findIndex((function(e){return e===t}));e.editor.sessionList.splice(n,1),delete e.editor.sessions[t],"group"===o?(e.editor.deletedGroups.push(t),e.editor.tracks=e.editor.tracks.map((function(e){return e.groups.includes(t)?(0,a.A)((0,a.A)({},e),{},{groups:e.groups.filter((function(e){return e!==t}))}):e}))):"user"===o&&e.editor.deletedUsers.push(t),e.editor.currentSession===t&&(e.editor.currentSession=null),e.editor.nodes=e.editor.nodes.filter((function(e){return e.sessionId!==t}))},setPotentialContexts:function(e,t){for(var o=[],n=0,r=Object.entries(t);n<r.length;n++){var s=(0,i.A)(r[n],2),a=s[0],u=s[1];o.push({key:a,values:Array.isArray(u)?u:[u]})}e.editor.potentialContexts=o},addEditorSession:function(e,t){var o=t.id,n=t.type,r=t.displayName,s=t.isNew,i=void 0!==s&&s;u["default"].set(e.editor.sessions,o,{id:o,type:n,displayName:r,new:i,modified:!1}),e.editor.sessionList.push(o);var a=e.editor.deletedGroups;a.includes(o)&&a.splice(a.findIndex((function(e){return e===o})),1)},addEditorNode:function(e,t){var o=t;t.expiry instanceof Date&&(o.expiry=t.expiry.getTime()),e.editor.nodes.push(o),t.isNew&&e.editor.sessions[t.sessionId]&&(e.editor.sessions[t.sessionId].modified=!0)},deleteNode:function(e,t){var o=e.editor.nodes.find((function(e){return e.id===t}));e.editor.selectedNodes.includes(t)&&e.editor.selectedNodes.splice(e.editor.selectedNodes.indexOf(t),1),e.editor.nodes=e.editor.nodes.filter((function(e){return e.id!==t})),e.editor.sessions[o.sessionId].modified=!0},setCurrentSession:function(e,t){e.editor.currentSession=t},setModal:function(e,t){var o=t.type,n=t.object;e.editor.modal.type=o||null,e.editor.modal.object=n||null},closeModal:function(e){e.editor.modal.type=null,e.editor.modal.object=null},toggleNodeValue:function(e,t){var o=e.editor.nodes.find((function(e){return e.id===t.id}));o.value=!t.value,o.modified=!0,e.editor.sessions[t.sessionId].modified=!0},updateNode:function(e,t){var o=t.node,n=t.type,r=t.data;"expiry"===n?o[n]=r.value?r.value.getTime():null:("sessionId"===n&&(e.editor.sessions[o.sessionId].modified=!0),o[n]=r.value),o.modified=!0,e.editor.sessions[o.sessionId].modified=!0},bulkUpdateNode:function(e,t){var o=t.node,n=t.payload,r=n.value,i=n.expiry,c=n.replace,d=n.contexts;if(null!==r&&(o.value=r),i&&(o.expiry=i),c)o.context=d;else{var l=(0,a.A)((0,a.A)({},o.context),d);Object.keys(l).forEach((function(e){l[e]=(0,s.A)(new Set([].concat((0,s.A)((0,N.Fw)(o.context[e])),(0,s.A)((0,N.Fw)(d[e])))))})),u["default"].set(o,"context",l)}o.modified=!0,e.editor.sessions[o.sessionId].modified=!0},updateNodeContext:function(e,t){var o=t.node,n=t.data;o.context=n,o.modified=!0,e.editor.sessions[o.sessionId].modified=!0},addNodeToSession:function(e,t){e.editor.nodes.push(t)},toggleNodeSelect:function(e,t){e.editor.selectedNodes.includes(t.id)?e.editor.selectedNodes.splice(e.editor.selectedNodes.indexOf(t.id),1):e.editor.selectedNodes.push(t.id)},selectAllSessionNodes:function(e,t){t.forEach((function(t){-1===e.editor.selectedNodes.indexOf(t.id)&&e.editor.selectedNodes.push(t.id)}))},deselectAllSessionNodes:function(e,t){t.forEach((function(t){e.editor.selectedNodes.indexOf(t.id)>=0&&e.editor.selectedNodes.splice(e.editor.selectedNodes.indexOf(t.id),1)}))},deselectAllSelectedNodes:function(e){e.editor.selectedNodes.splice(0,e.editor.selectedNodes.length)},addKnownPermission:function(e,t){e.editor.knownPermissions.push(t)},setLoadError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.editor.errors.load=t},setUnsupportedError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.editor.errors.unsupported=t},setSaveStatus:function(e,t){e.editor.save.status=t},setBytebinKey:function(e,t){e.editor.save.key=t},setVerboseData:function(e,t){var o=t.data,n=t.status;if(e.verbose.status=n,o){if(!o.data)throw new Error("Invalid verbose data");e.verbose.data=o.data.map((function(e){return(0,a.A)((0,a.A)({},e),{},{id:T()})})),e.verbose.metadata=o.metadata,e.verbose.sessionId=o.sessionId}},setVerboseLoadError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.verbose.errors.load=t},setVerboseUnsupportedError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.verbose.errors.unsupported=t},setTreeData:function(e,t){e.tree.data=t.data,e.tree.metadata=t.metadata,e.tree.sessionId=t.sessionId},setTreeLoadError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.tree.errors.load=t},setTreeUnsupportedError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.tree.errors.unsupported=t}},actions:{getAppData:function(){var e=(0,r.A)((0,n.A)().mark((function e(t){var o,s,i;return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=t.commit,s=t.dispatch,o("setConfig",D),e.prev=2,e.next=5,l().get("".concat(D.apiUrl,"data/all"));case 5:i=e.sent,o("setVersion",i.data.version),o("setVersionTimestamp",i.data.versionTimestamp),o("setChangeLog",i.data.changeLog),o("setDownloads",i.data.downloads),o("setExtensions",i.data.extensions),o("setAdditionalPlugins",i.data.additionalPlugins),o("setPlaceholderExpansions",i.data.placeholderExpansions),o("setDiscordUserCount",i.data.discordUserCount),e.next=20;break;case 16:e.prev=16,e.t0=e["catch"](2),console.error("Error getting data, trying again in 10 seconds..."),setTimeout((0,r.A)((0,n.A)().mark((function e(){return(0,n.A)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s("getAppData");case 2:case"end":return e.stop()}}),e)}))),1e4);case 20:case"end":return e.stop()}}),e,null,[[2,16]])})));function t(t){return e.apply(this,arguments)}return t}(),getEditorData:function(e,t){return(0,r.A)((0,n.A)().mark((function r(){var s,a,u,c,d,p,f,m,h,g,v,y;return(0,n.A)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=e.commit,a=e.getters,u=e.dispatch,s("setLoadError",!1),s("setUnsupportedError",!1),t){n.next=6;break}throw s("setLoadError"),new Error("Invalid session ID");case 6:if(c=a.currentSessionId,c||s("initEditorData",t),d=(0,i.A)(t,1),p=d[0],!["?","#"].includes(p)){n.next=12;break}throw s("setUnsupportedError"),new Error("Unsupported version");case 12:if(n.prev=12,"demo"!==t){n.next=21;break}return n.next=16,o.e(233).then(o.t.bind(o,45233,19));case 16:return m=n.sent,h=m.default,n.next=20,u("setEditorData",h);case 20:return n.abrupt("return");case 21:return g=new URL(D.bytebinUrl,window.location.href),n.next=24,l().get("".concat(g).concat(t));case 24:return v=n.sent,y=v.data,null!==(f=y.socket)&&void 0!==f&&f.channelId&&_(y.socket.protocolVersion,y.socket.channelId,t,y.socket.publicKey,{connect:function(e){var t=e.socket;s("setEditorSocket",t),s("setEditorSocketStatus",!0)},trust:function(e){var t=e.nonce;s("setModal",{type:"trustPrompt",object:{nonce:t}})},trusted:function(){s("closeModal")},reused:function(){s("setModal",{type:"reusedSessionWarning"})},close:function(){s("setEditorSocketStatus",!1)}}).catch((function(e){return console.log(e)})),c&&s("initEditorData",t),n.next=30,u("setEditorData",y,t);case 30:c&&a.sessionList.includes(c)&&s("setCurrentSession",c),n.next=38;break;case 33:throw n.prev=33,n.t0=n["catch"](12),s("setLoadError"),console.log(n.t0),new Error("Error loading data from bytebin - session ID: ".concat(t));case 38:case"end":return n.stop()}}),r,null,[[12,33]])})))()},setEditorData:function(e,t){var o=e.commit,n=e.dispatch;o("setMetaData",t.metadata),t.permissionHolders.forEach((function(e){e.nodes.forEach((function(t){var o=t.expiry?1e3*t.expiry:null;n("addNodes",[{sessionId:e.id,key:t.key,value:t.value,expiry:o,context:t.context}])})),o("addEditorSession",e)})),o("setKnownPermissions",t.knownPermissions),o("setPotentialContexts",t.potentialContexts),o("setTracks",t.tracks)},addKnownPermission:function(e,t){var o=e.commit;o("addKnownPermission",t)},addNodes:function(e,t){var o=e.commit;t.forEach((function(e){var t=e;t.id=T(),t.expiry=e.expiry,t.context=e.context||{},t.selected=!1,o("addEditorNode",t)}))},changeCurrentSession:function(e,t){var o=e.commit;o("setCurrentSession",t)},addGroup:function(e,t){var o=e.commit,n=e.dispatch,r={id:t.name,displayName:t.displayName||t.name,type:"group",isNew:!0};""!==t.displayName&&n("addNodes",[{sessionId:r.id,type:"display_name",key:"displayname.".concat(t.displayName),value:!0,isNew:!0}]),0!==t.parent&&n("addNodes",[{sessionId:r.id,type:"inheritance",key:"group.".concat(t.parent),value:!0,isNew:!0}]),0!==t.weight&&n("addNodes",[{sessionId:r.id,type:"weight",key:"weight.".concat(t.weight),value:!0,isNew:!0}]),""!==t.prefix&&n("addNodes",[{sessionId:r.id,type:"prefix",key:"prefix.".concat(t.weight,".").concat(t.prefix),value:!0,isNew:!0}]),""!==t.suffix&&n("addNodes",[{sessionId:r.id,type:"suffix",key:"suffix.".concat(t.weight,".").concat(t.suffix),value:!0,isNew:!0}]),o("addEditorSession",r),o("setCurrentSession",r.id),o("setModal",{type:null,object:null})},addTrack:function(e,t){var o=e.commit;o("addTrack",t),o("setModal",{type:null,object:null})},updateTrack:function(e,t){var o=e.commit,n=t.id,r=t.newTrack;n===r.id?o("updateTrack",{id:n,newTrack:r}):(o("deleteTrack",n),o("addTrack",r)),o("setModal",{type:null,object:null})},deleteTrack:function(e,t){var o=e.commit;o("deleteTrack",t)},copyNodes:function(e,t){var o=e.getters,n=e.dispatch,r=e.commit,s=o.selectedNodes;s.forEach((function(e){var o=[];t.forEach((function(t){o.push((0,a.A)((0,a.A)({},e),{},{sessionId:t,isNew:!0}))})),n("addNodes",o)})),r("closeModal"),r("deselectAllSelectedNodes")},moveNodes:function(e,t){e.state;var o=e.getters,n=e.commit,r=o.selectedNodes;r.forEach((function(e){n("updateNode",{type:"sessionId",data:{value:t},node:e})})),n("deselectAllSelectedNodes"),n("closeModal")},deleteNodes:function(e){var t=e.getters,o=e.commit,n=t.selectedNodeIds.map((function(e){return e}));n.forEach((function(e){o("deleteNode",e)})),o("closeModal")},updateNodes:function(e,t){var o=e.getters,n=e.commit,r=o.selectedNodes;r.forEach((function(e){n("bulkUpdateNode",{node:e,payload:t})}))},saveData:function(e){var t=e.state,o=e.getters,n=e.dispatch,r=e.commit;r("setSaveStatus","saving");var s={sessionId:t.editor.sessionId,changes:[],groupDeletions:t.editor.deletedGroups,trackDeletions:t.editor.deletedTracks,userDeletions:t.editor.deletedUsers};o.modifiedSessions.forEach((function(e){var o=t.editor.sessions[e],n=t.editor.nodes.filter((function(e){return e.sessionId===o.id})),r=[];n.forEach((function(e){return r.push((0,a.A)((0,a.A)({key:e.key,value:e.value},e.expiry&&{expiry:Math.floor(e.expiry/1e3)}),Object.entries(e.context).length&&{context:e.context}))})),s.changes.push({type:o.type,id:o.id,nodes:r})})),o.tracks.forEach((function(e){s.changes.push({type:"track",id:e.id,groups:e.groups})}));var i=new URL(D.bytebinUrl,window.location.href);l().post("".concat(i,"post"),s,b).then((function(e){var s=e.data.key,i=t.editor.socket;i?i.sendChangesViaSocket(s).then((function(e){r("setSaveStatus","saved"),n("getEditorData",e)})).catch((function(e){console.log(e),r("setBytebinKey",s),r("setSaveStatus","saved"),r("setModal",{type:"savedChanges",object:{saveKey:o.saveKey}})})):(r("setBytebinKey",s),r("setSaveStatus","saved"),r("setModal",{type:"savedChanges",object:{saveKey:o.saveKey}}))})).catch(console.error)},getVerboseData:function(e,t){return(0,r.A)((0,n.A)().mark((function r(){var s,u,c,d,p,f,m,h;return(0,n.A)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=e.commit,s("setVerboseLoadError",!1),s("setVerboseUnsupportedError",!1),t){n.next=6;break}throw s("setVerboseLoadError"),new Error("Invalid session ID");case 6:if(u=(0,i.A)(t,1),c=u[0],!["?","#"].includes(c)){n.next=11;break}throw s("setVerboseUnsupportedError"),s("setVerboseData",{data:null,status:3}),new Error("Unsupported version");case 11:if(n.prev=11,s("setVerboseData",{data:null,status:0}),"demo"!==t){n.next=22;break}return s("setVerboseData",{data:null,status:1}),n.next=17,o.e(940).then(o.t.bind(o,10940,19));case 17:d=n.sent,p=d.default,s("setVerboseData",{data:p,status:2}),n.next=29;break;case 22:return s("setVerboseData",{data:null,status:1}),f=new URL(D.bytebinUrl,window.location.href),n.next=26,l().get("".concat(f).concat(t));case 26:m=n.sent,h=(0,a.A)((0,a.A)({},m.data),{},{sessionId:t}),s("setVerboseData",{data:h,status:2});case 29:n.next=37;break;case 31:throw n.prev=31,n.t0=n["catch"](11),console.error("".concat(n.t0.message," - session ID: ").concat(t)),s("setVerboseLoadError"),s("setVerboseData",{data:null,status:3}),new Error("Loading error");case 37:case"end":return n.stop()}}),r,null,[[11,31]])})))()},getTreeData:function(e,t){return(0,r.A)((0,n.A)().mark((function r(){var s,u,c,d,p,f,m,h;return(0,n.A)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(s=e.commit,s("setTreeLoadError",!1),s("setTreeUnsupportedError",!1),t){n.next=6;break}throw s("setTreeLoadError"),new Error("Invalid session ID");case 6:if(u=(0,i.A)(t,1),c=u[0],!["?","#"].includes(c)){n.next=10;break}throw s("setTreeUnsupportedError"),new Error("Unsupported version");case 10:if(n.prev=10,"demo"!==t){n.next=18;break}return n.next=14,o.e(414).then(o.t.bind(o,80414,19));case 14:return d=n.sent,p=d.default,s("setTreeData",p),n.abrupt("return");case 18:return f=new URL(D.bytebinUrl,window.location.href),n.next=21,l().get("".concat(f).concat(t));case 21:m=n.sent,h=(0,a.A)((0,a.A)({},m.data),{},{sessionId:t}),s("setTreeData",h),n.next=31;break;case 26:throw n.prev=26,n.t0=n["catch"](10),console.error("".concat(n.t0.message," - session ID: ").concat(t)),s("setTreeLoadError"),new Error("Loading error");case 31:case"end":return n.stop()}}),r,null,[[10,26]])})))()}}})},42419:function(e,t,o){o.d(t,{Fw:function(){return n},I1:function(){return r},k2:function(){return s}});o(28706),o(27495),o(71761),o(25440),o(90744),o(11392);function n(e){return Array.isArray(e)?e||[]:e?[e]:[]}function r(e){if(e.startsWith("group."))return{type:"inheritance",groupName:e.substring(6)};if(e.startsWith("prefix.")){var t=e.substring(7).match(/^(\d+)\.(.+)$/);if(t)return{type:"prefix",weight:t[1],prefix:a(t[2])}}if(e.startsWith("suffix.")){var o=e.substring(7).match(/^(\d+)\.(.+)$/);if(o)return{type:"suffix",weight:o[1],suffix:a(o[2])}}if(e.startsWith("meta.")){var n=e.substring(5),r=u(n);if(r&&2===r.length)return{type:"meta",key:a(r[0]),value:a(r[1])}}return e.startsWith("weight.")?{type:"weight",weight:e.substring(7)}:e.startsWith("displayname.")?{type:"displayname",displayName:e.substring(12)}:{type:"permission",permission:e}}function s(e,t){switch(e){case"inheritance":return"group.".concat(t.groupName||"");case"prefix":return"prefix.".concat(t.weight||"0",".").concat(i(t.prefix||""));case"suffix":return"suffix.".concat(t.weight||"0",".").concat(i(t.suffix||""));case"meta":return"meta.".concat(i(t.key||""),".").concat(i(t.value||""));case"weight":return"weight.".concat(t.weight||"0");case"displayname":return"displayname.".concat(t.displayName||"");case"permission":default:return t.permission||""}}function i(e){return e.replace(/\./g,"\\.")}function a(e){return e.replace(/\\\./g,".")}function u(e){return e.split(/(?<!\\)\./,2)}},48747:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var n=o(85471),r=o(64765),s=o(60649),i=JSON.parse('{"description":"A permissions plugin for Minecraft servers.","close":"Close","copy":"Copy","wiki":"Wiki","wikiLocaleWarning":"Note: the wiki is only available in English.","localeUpdate":"New! Use the LuckPerms website in your preferred language. See our Discord for more info.","avatar":"{name}\'s avatar","sponsor":"Proudly sponsored by <strong>BisectHosting</strong>.<br/>Create your own Minecraft server today!","links":{"home":"Home","download":"Download","editor":"Web Editor","verbose":"Verbose Viewer","tree":"Tree Viewer","wiki":"Wiki","tools":{"name":"Tools","editor":"Editor","verbose":"Verbose","tree":"Tree"},"language":"Language"},"home":{"name":"Home","supported":"Supports Bukkit/Spigot/Paper, BungeeCord, Sponge, Fabric, Forge, NeoForge, Nukkit and Velocity servers","why":{"title":"Why LuckPerms?","description":"LuckPerms is a permissions plugin for Minecraft servers. It allows server admins to control what features players can use by creating groups and assigning permissions.","its":"It is:","fast":"<b>fast</b> - written with performance and scalability in mind.","reliable":"<b>reliable</b> - trusted by thousands of server admins, and the largest of server networks.","easy":"<b>easy to use</b> - setup permissions using commands, directly in config files, or using the web editor.","flexible":"<b>flexible</b> - supports a variety of data storage options, and works on lots of different server types.","extensive":"<b>extensive</b> - a plethora of customization options and settings which can be changed to suit your server.","free":"<b>free</b> - available for download and usage at no cost, and permissively licensed so it can remain free forever.","more":"For more information, see the wiki article on {wiki}","why":"Why LuckPerms?"},"apps":{"title":"Web Apps","description1":"This site hosts a number of extra web applications which work with the plugin.","description2":"These applications are designed to work for all users, even those without the ability to install/host an application on their own web server."},"wiki":"Learn how to install, setup, configure and effectively use LuckPerms","github":"Browse the source code, report issues and contribute to the project","discord":"Join {count} others to discuss the project and ask/answer questions","partner":{"title":"Create your own Minecraft Server","description":"Easily create your very own Minecraft Server with our hosting partner, Bisect Hosting!"}},"download":{"title":"Download LuckPerms","build":"Latest, built {time}","typeHelp":"Not sure which type?","typeChoose":"Choose your server type","bukkit":"Paper, Spigot etc. ({version})","bungee":"BungeeCord, Waterfall etc. (latest only)","sponge":"Sponge ({version})","fabric":"Fabric ({version})","forge":"Forge ({version})","neoforge":"NeoForge ({version})","nukkit":"NukkitX","velocity":"Velocity ({version})","hytale":"Hytale ({version})","bukkitLegacy":"Paper, Spigot etc. (1.7.10 only)","changelog":"Recent Changelog","install":{"title":"How to install","add":"Add the downloaded plugin <code>.jar</code> file into your server\'s <code>plugins</code> or <code>mods</code> folder.","restart":"Start or restart your server - <strong>do not reload!</strong>","config":"Locate the plugin\'s configuration file (usually found within <code>/plugins/LuckPerms/</code>) and adjust any settings to your liking.","setup":"Start setting up your permissions! Check out the {wiki} guide for more info.","wiki":"Getting Started"},"trouble":{"title":"Having trouble installing?","console":"Make sure to check your console for any error messages - especially during start up","read":"Check the more detailed {wiki} wiki page to see if you need to perform any additional steps.","wiki":"Installation","support":"If all else fails, get in touch with us on {discord} and we\'ll be happy to help."},"extensions":{"title":"Extensions","description":"Extensions can modify the behaviour of LuckPerms, you can read more about them on {wiki}.","descriptionWiki":"the wiki","legacy":"Legacy API Extension","legacyInfo":"Allows some common API methods to be used by plugins that haven\'t upgraded to v5 version of the API yet.","more":"Check out the {wiki} for more information!","wiki":"wiki section","defaultAssignments":"Default Assignments Extension","defaultAssignmentsInfo":"Provides an alternate approach for assigning {wiki} if the recommended way is impractical.","groups":"default groups","version":"LuckPerms 5.0 and above"}},"editor":{"description":"Web Permissions Editor","start":"To start a new editor session, use one of the following commands:","loading":"Loading data...","permissions":"Node","key":"Key","value":"Value","expiry":"Expiry","contexts":"Contexts","search":"Search","add":"Add","copy":"Copy","move":"Move","replace":"Replace","delete":"Delete","cancel":"Cancel","update":"Update","save":"Save","apply":"Apply","saveAndGenerate":"Save and generate code","saving":"Saving...","saved":"Data was saved!","command":"Run this command on your server to apply the changes:","copied":"Command copied to clipboard","clipboardCopy":"Copy to clipboard","clearFilters":"Clear filter","noResults":"No results found","applyNote":"<strong>Note:</strong> after running the <code>applyedits</code> command, you should generate another editor URL to continue editing your server\'s permissions.","nav":{"tracks":"Tracks","groups":"Groups","users":"Users"},"reusedsession":{"title":"Reused Session","desc":"This session has been used (opened & saved) already!","desc2":"Therefore, it may contain outdated data that no longer reflects the plugin storage. The recommended course of action is to create a new editor session and start afresh."},"trust":{"title":"Editor Connection","prompt":"In order to trust this web browser and allow it to apply changes directly to your server, please run the following command in-game:","note":"<strong>Note:</strong> You only have to do this once! The server will remember this browser for future sessions."},"groups":{"create":"Create a group","name":"Group name","choose":"Choose a group or user from the side bar","toggle":"Show/hide groups","delete":"Are you sure you want to delete group: <code>{group}</code>","deleteConfirm":"All {count} of its permissions will be deleted. This currently can not be undone.","displayName":"Display name","parent":"Parent","weight":"Weight","prefix":"Prefix","suffix":"Suffix","add":"Add group","edit":"Edit group","none":"None"},"users":{"delete":"Are you sure you want to delete user: {user}","deleteConfirm":"All {count} of its permissions will be deleted. This currently can not be undone.","edit":"Edit user","toggleUsers":"Show/hide users"},"nodes":{"add":"Add nodes","update":"Update nodes","permissionsCount":"Nodes <span>({count})</span>","nodeType":"Node Type","types":{"permission":"Permission","inheritance":"Inheritance","prefix":"Prefix","suffix":"Suffix","meta":"Meta","weight":"Weight","displayname":"Display Name"},"labels":{"permissions":"Permissions","groupName":"Group Name","weight":"Weight","prefixText":"Prefix Text","suffixText":"Suffix Text","key":"Key","value":"Value","weightValue":"Weight Value","displayName":"Display Name"},"weightLabel":"weight","permissionPlaceholder":"Enter permissions or paste many","groupNamePlaceholder":"Group name","weightPlaceholder":"Weight (priority)","prefixPlaceholder":"Prefix text","suffixPlaceholder":"Suffix text","metaKeyPlaceholder":"Meta key","metaValuePlaceholder":"Meta value","weightValuePlaceholder":"Weight value","displayNamePlaceholder":"Display name","displayNameWarning":"Display Name nodes are frequently misused and should ideally only be used to add aliases (eg default -> member) or change capitalization (eg admin -> Admin).","addContext":"Add context","addContexts":"Add contexts","deselect":"Deselect all nodes","select":"Select node for mass operations","selectAll":"Select node for mass operations","replace":"Replace contexts instead of adding?","edit":"Click to edit the permission","toggle":"Click to toggle true/false","expiry":"Click to choose an expiry","never":"never","deleteExpiry":"Delete expiry","contexts":"Click to edit the contexts for this node","enterToSelect":"Press enter to select","contextsCount":"Contexts <span>({count})</span>","selected":"<span>{count}</span> selected node | <span>{count}</span> selected nodes","copy":"Copy {count} node to... | Copy {count} nodes to...","move":"Move {count} node to... | Move {count} nodes to...","delete":"Delete {count} node? | Delete {count} nodes?","deleteConfirm":"Are you sure you want to delete {count} permission node? | Are you sure you want to delete {count} permission nodes?","selection":{"true":"Change all values to TRUE","false":"Change all values to FALSE","keep":"Keep values unchanged"},"sort":{"permission":"Sort nodes by permission","value":"Sort nodes by true/false","expiry":"Sort nodes by expiry","contexts":"Sort nodes by contexts"}},"tracks":{"create":"Create a track","groups":"Groups","tip":"Tip: click and drag to re-order the track","addGroups":"Add groups","edit":"Edit track","name":"Track name","add":"Add track","save":"Save track","delete":"Delete track","filter":"Filter tracks, groups and users","toggle":"Show/hide tracks","toggleGroups":"Show/hide track groups"},"meta":{"add":"Add a group to {id}","parents":"Parent groups","weight":"Weight: ","gotoParent":"Go to the {parent} group","removeParent":"Remove {parent} as a parent"},"error":{"title":"Loading error","info":"Either the URL was copied wrong or the session has expired.","new":"Please generate another editor session with {command}."},"unsupported":{"title":"Unsupported version","info":"Please {download} the latest version of LuckPerms to use the Web Editor","download":"download"}},"tree":{"title":"Permission Tree Viewer","generate":"To generate a permission tree, do the following in game or from the console:","uploaded":"Uploaded by","user":"Reference user","time":"Time","started":"When the recording started","expand":"Expand","collapse":"Collapse","home":{"generate":"To generate a permission tree, do the following in game or from the console:","scope":"scope","player":"player","url":"Follow the URL that is generated"}},"verbose":{"title":"Verbose viewer","uploaded":"Uploaded by","start":"Start time","started":"When the recording started","end":"End time","ended":"When the recording ended","duration":"Duration","recording":"How long the plugin was recording for","count":"Count","values":"How many values matched and how many checks were made in total","filter":"Filter","filterLabel":"Filter nodes by username or permission:","filterDesc":"The string used to filter the output","truncated":"Truncated","truncatedDesc":"If the data was truncated (limited in size) when uploaded","filterPlaceholder":"Enter filter here","context":"Context","origin":"Origin","processor":"Processor","cause":"Cause Node","thread":"Thread","trace":"Trace","exclude":"Exclude","home":{"generate":"To generate a verbose report, do the following in game or from the console:","performActions":"Perform a series of actions that require permissions","filter":"filter","url":"Follow the URL that is generated"}},"tools":{"demo":"View Demo"},"quiz":{"choose":"Do you run a single server, or a network?","single":"Single server","network":"Network of servers","type":"What type of server are you running?","note":"Note: LuckPerms is still required on all backend servers.","version":"What version of {serverType} are you running?","older":"{version} or older","newer":"{version} or newer","result":"You need LuckPerms for {serverType}","resultLegacy":"You need LuckPerms Legacy for {serverType}","travertine":"Your version of BungeeCord is not supported, consider switching to Travertine if you want to use LuckPerms.","outdated":"Your version of {serverType} is not supported, you must upgrade if you want to use LuckPerms."},"notFound":{"title":"Not found!","message":"The page {path} doesn\'t exist"}}');n["default"].use(r.A),s.A.dispatch("fetchLanguages");var a=new r.A({messages:{en:i},locale:"en",fallbackLocale:"en"}),u=a},63992:function(e,t,o){e.exports=o.p+"img/bisect.93442122.svg"},63935:function(e,t,o){e.exports=o.p+"img/logo.a4ca2166.svg"},68272:function(e){e.exports=JSON.parse('{"base":"/luckperms-editor/","selfHosted":true,"bytebinUrl":"https://usercontent.luckperms.net/","bytesocksUrl":"wss://usersockets.luckperms.net/","apiUrl":"https://metadata.luckperms.net/"}')}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(s.exports,s,s.exports,o),s.loaded=!0,s.exports}o.m=e,function(){var e=[];o.O=function(t,n,r,s){if(!n){var i=1/0;for(d=0;d<e.length;d++){n=e[d][0],r=e[d][1],s=e[d][2];for(var a=!0,u=0;u<n.length;u++)(!1&s||i>=s)&&Object.keys(o.O).every((function(e){return o.O[e](n[u])}))?n.splice(u--,1):(a=!1,s<i&&(i=s));if(a){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[n,r,s]}}(),function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var s=Object.create(null);o.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return n[e]}}));return i["default"]=function(){return n},o.d(s,i),s}}(),function(){o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](e,t),t}),[]))}}(),function(){o.u=function(e){return"js/"+({8:"editor",419:"wiki",467:"download",603:"sponsor",623:"tree",671:"verbose"}[e]||e)+"-legacy."+{8:"fe6be48e",233:"041b998e",414:"0be3b004",419:"d199e227",467:"e843ce78",579:"79e29864",603:"e9fbbceb",623:"6e26eacc",671:"24357e15",678:"eb7cf035",940:"1655f599"}[e]+".js"}}(),function(){o.miniCssF=function(e){return"css/"+({8:"editor",419:"wiki",467:"download",603:"sponsor",623:"tree",671:"verbose"}[e]||e)+"."+{8:"715764f0",419:"e6cbcd80",467:"b76bfe71",603:"bff124d8",623:"4e880d68",671:"1fc0af3a",678:"18111fa0"}[e]+".css"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="luckperms-web:";o.l=function(n,r,s,i){if(e[n])e[n].push(r);else{var a,u;if(void 0!==s)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var l=c[d];if(l.getAttribute("src")==n||l.getAttribute("data-webpack")==t+s){a=l;break}}a||(u=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+s),a.src=n),e[n]=[r];var p=function(t,o){a.onerror=a.onload=null,clearTimeout(f);var r=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(o)})),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),u&&document.head.appendChild(a)}}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){o.p="/luckperms-editor/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,n,r,s){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc);var a=function(o){if(i.onerror=i.onload=null,"load"===o.type)r();else{var n=o&&o.type,a=o&&o.target&&o.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+a+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=n,u.request=a,i.parentNode&&i.parentNode.removeChild(i),s(u)}};return i.onerror=i.onload=a,i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var o=document.getElementsByTagName("link"),n=0;n<o.length;n++){var r=o[n],s=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(s===e||s===t))return r}var i=document.getElementsByTagName("style");for(n=0;n<i.length;n++){r=i[n],s=r.getAttribute("data-href");if(s===e||s===t)return r}},n=function(n){return new Promise((function(r,s){var i=o.miniCssF(n),a=o.p+i;if(t(i,a))return r();e(n,a,null,r,s)}))},r={524:0};o.f.miniCss=function(e,t){var o={8:1,419:1,467:1,603:1,623:1,671:1,678:1};r[e]?t.push(r[e]):0!==r[e]&&o[e]&&t.push(r[e]=n(e).then((function(){r[e]=0}),(function(t){throw delete r[e],t})))}}}(),function(){var e={524:0};o.f.j=function(t,n){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise((function(o,n){r=e[t]=[o,n]}));n.push(r[2]=s);var i=o.p+o.u(t),a=new Error,u=function(n){if(o.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,r[1](a)}};o.l(i,u,"chunk-"+t,t)}},o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,s,i=n[0],a=n[1],u=n[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(u)var d=u(o)}for(t&&t(n);c<i.length;c++)s=i[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(d)},n=self["webpackChunkluckperms_web"]=self["webpackChunkluckperms_web"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var n=o.O(void 0,[504],(function(){return o(20672)}));n=o.O(n)})();
//# sourceMappingURL=app-legacy.bf0ae1cd.js.map