blob: 3e474d2a2e2de911b406431ed8c44776716a7246 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b2d316b"],{2366:function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);function a(e,t){var n=t||0,a=r;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}e.exports=a},"3dbd":function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"d",(function(){return u})),r.d(t,"a",(function(){return s}));var n=r("b32d"),a=function(){return Object(n["a"])({url:"/services",method:"get"})},i=function(e,t){return Object(n["a"])({url:"/services/".concat(e),method:"PUT",data:t})},o=function(e){return Object(n["a"])({url:"/services/".concat(e),method:"GET"})},u=function(e){return Object(n["a"])({url:"/services/".concat(e),method:"DELETE"})},s=function(e){return Object(n["a"])({url:"/services",method:"POST",data:e})}},"504c":function(e,t,r){var n=r("9e1e"),a=r("0d58"),i=r("6821"),o=r("52a7").f;e.exports=function(e){return function(t){var r,u=i(t),s=a(u),c=s.length,l=0,d=[];while(c>l)r=s[l++],n&&!o.call(u,r)||d.push(e?[r,u[r]]:u[r]);return d}}},"63aa":function(e,t,r){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},"7b78":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"container"},[r("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px","show-message":!1}},[r("el-form-item",{attrs:{label:"Desc"}},[r("el-input",{attrs:{placeholder:"Description"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),r("el-form-item",{attrs:{label:"URI",prop:"uri"}},[r("el-input",{attrs:{placeholder:"URI"},model:{value:e.form.uri,callback:function(t){e.$set(e.form,"uri",t)},expression:"form.uri"}})],1),r("el-form-item",{attrs:{label:"Host",prop:"host"}},[r("el-input",{attrs:{placeholder:"Host"},model:{value:e.form.host,callback:function(t){e.$set(e.form,"host",t)},expression:"form.host"}})],1),r("el-form-item",{attrs:{label:"Remote Address",prop:"remote_addr"}},[r("el-input",{attrs:{placeholder:"Remote Address"},model:{value:e.form.remote_addr,callback:function(t){e.$set(e.form,"remote_addr",t)},expression:"form.remote_addr"}})],1),r("el-form-item",{attrs:{label:"Methods"}},[r("el-select",{attrs:{multiple:"",placeholder:"Methods"},model:{value:e.form.methods,callback:function(t){e.$set(e.form,"methods",t)},expression:"form.methods"}},e._l(e.methods,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),r("el-form-item",{attrs:{label:"Upstream",prop:"upstream_id"}},[r("el-select",{attrs:{placeholder:"Upstream",clearable:""},model:{value:e.form.upstream_id,callback:function(t){e.$set(e.form,"upstream_id",t)},expression:"form.upstream_id"}},e._l(e.upstreamList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),r("el-form-item",{attrs:{label:"Service",prop:"service_id"}},[r("el-select",{attrs:{placeholder:"Service",clearable:""},model:{value:e.form.service_id,callback:function(t){e.$set(e.form,"service_id",t)},expression:"form.service_id"}},e._l(e.serviceList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.desc,value:e.id}})})),1)],1),e._l(e.form.plugins,(function(t,n){return r("el-form-item",{key:n,staticClass:"plugin-item",attrs:{label:"plugin"}},["tempPlugin"!==n?r("el-button",{attrs:{type:"info",plain:""},on:{click:function(t){return e.showPlugin(n)}}},[e._v("\n "+e._s(n)+"\n ")]):e._e(),"tempPlugin"!==n?r("el-button",{attrs:{type:"danger"},on:{click:function(t){return t.preventDefault(),e.removePlugin(n)}}},[e._v("\n "+e._s(e.$t("button.delete"))+"\n ")]):e._e(),"tempPlugin"===n?r("el-select",{staticClass:"plugin-select",attrs:{value:null,placeholder:"Select a Plugin"},on:{change:e.showPlugin}},e._l(e.filteredPluginList,(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e()],1)})),r("el-form-item",[r("el-button",{attrs:{disabled:!e.filteredPluginList.length},on:{click:e.addPlugin}},[e._v("\n "+e._s(e.$t("button.add_plugin"))+"\n ")])],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$t("button.save"))+"\n ")]),r("el-button",{on:{click:e.toPreviousPage}},[e._v("\n "+e._s(e.$t("button.cancel"))+"\n ")])],1)],2),r("PluginDialog",{attrs:{show:e.showPluginDialog,name:e.pluginName,"plugin-data":e.form.plugins[e.pluginName]},on:{hidePlugin:function(t){e.showPluginDialog=!1},save:e.onPluginSave}})],1)},a=[],i=(r("8e6e"),r("bd86")),o=(r("4917"),r("456d"),r("7618")),u=r("768b"),s=(r("ffc1"),r("ac6a"),r("96cf"),r("3b8d")),c=(r("7f7f"),r("d225")),l=r("b0b4"),d=r("308d"),p=r("6bb5"),f=r("4e2b"),m=r("9ab4"),h=r("60a3"),b=r("c8f9"),v=r("80a7"),g=r("7d98"),y=r("b5f7"),O=r("3dbd"),w=r("e741");function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(r,!0).forEach((function(t){Object(i["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k=function(e){function t(){var e;return Object(c["a"])(this,t),e=Object(d["a"])(this,Object(p["a"])(t).apply(this,arguments)),e.form={uri:"",host:"",remote_addr:"",upstream_id:"",service_id:"",methods:[],plugins:{},desc:""},e.rules={uri:{required:!0}},e.isEditMode=!1,e.methods=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],e.pluginList=[],e.pluginName="",e.showPluginDialog=!1,e.upstreamList=[],e.serviceList=[],e}return Object(f["a"])(t,e),Object(l["a"])(t,[{key:"created",value:function(){this.isEditMode=-1===this.$route.name.indexOf("Create"),this.isEditMode&&this.getData(),this.getPluginList(),this.getUpstreamList(),this.getServiceList()}},{key:"reset",value:function(){this.form={uri:"",host:"",remote_addr:"",upstream_id:"",service_id:"",methods:[],plugins:{},desc:""}}},{key:"getData",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,i,o,u,s,c,l,d,p,f,m,h,b,g,y,O;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.params.id,e.next=3,Object(v["c"])(t);case 3:r=e.sent,n=r.node.value,a=n.uri,i=void 0===a?"":a,o=n.host,u=void 0===o?"":o,s=n.remote_addr,c=void 0===s?"":s,l=n.upstream_id,d=void 0===l?"":l,p=n.service_id,f=void 0===p?"":p,m=n.methods,h=void 0===m?[]:m,b=n.plugins,g=void 0===b?{}:b,y=n.desc,O=void 0===y?"":y,this.form={uri:i,host:u,remote_addr:c,upstream_id:d,service_id:f,methods:h,plugins:g,desc:O};case 22:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onSubmit",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(r){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}if(n=Object.assign({},t.form),n.methods.length||delete n.methods,Object.entries(n).forEach((function(e){var t=Object(u["a"])(e,2),r=t[0],a=t[1];"object"===Object(o["a"])(n[r])?"plugins"!==r&&0===Object.keys(a).length&&delete n[r]:""===a&&delete n[r]})),!t.isEditMode){e.next=9;break}return e.next=7,Object(v["e"])(t.$route.params.id,n);case 7:e.next=11;break;case 9:return e.next=11,Object(v["a"])(n);case 11:t.$message.success("".concat(t.isEditMode?"Update the":"Create a"," service successfully!")),t.isEditMode||(w["a"].delView(t.$route),t.$nextTick((function(){t.$router.push({name:"SchemaRoutesList"})}))),e.next=16;break;case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"toPreviousPage",value:function(){this.$router.go(-1)}},{key:"getUpstreamList",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(y["c"])();case 2:t=e.sent,r=t.node.nodes,n=void 0===r?[]:r,this.upstreamList=n.map((function(e){var t=e.key.match(/\/([0-9]+)/)[1];return P({},e.value,{id:t})}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getServiceList",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(O["c"])();case 2:t=e.sent,r=t.node.nodes,n=void 0===r?[]:r,this.serviceList=n.map((function(e){var t=e.key.match(/\/([0-9]+)/)[1];return P({},e.value,{id:t})}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getPluginList",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(g["a"])();case 2:this.pluginList=e.sent;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"showPlugin",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.pluginName=t,this.showPluginDialog=!0;case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onPluginSave",value:function(e,t){delete this.form.plugins["tempPlugin"],this.showPluginDialog=!1,this.form.plugins[e]=t}},{key:"addPlugin",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.form.plugins.hasOwnProperty("tempPlugin")){e.next=2;break}return e.abrupt("return");case 2:this.form.plugins=P({},this.form.plugins,{tempPlugin:null});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removePlugin",value:function(e){var t=this;this.$confirm("Do you want to remove ".concat(e," plugin?"),"Warning",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then(Object(s["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:h["c"].delete(t.form.plugins,e);case 1:case"end":return r.stop()}}),r)})))).catch((function(){}))}},{key:"filteredPluginList",get:function(){var e=this;return this.pluginList.filter((function(t){return!e.form.plugins.hasOwnProperty(t)}))}}]),t}(h["c"]);k=m["a"]([Object(h["a"])({name:"RouterEdit",components:{PluginDialog:b["a"]}})],k);var x=k,_=x,D=(r("7bb4"),r("2877")),E=Object(D["a"])(_,n,a,!1,null,null,null);t["default"]=E.exports},"7bb4":function(e,t,r){"use strict";var n=r("f908"),a=r.n(n);a.a},"7d98":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("b32d"),a=function(){return Object(n["a"])({url:"/plugins/list",method:"get"})}},"80a7":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"e",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return u})),r.d(t,"a",(function(){return s}));var n=r("b32d"),a=function(){return Object(n["a"])({url:"/routes",method:"GET"})},i=function(e,t){return Object(n["a"])({url:"/routes/".concat(e),method:"PUT",data:t})},o=function(e){return Object(n["a"])({url:"/routes/".concat(e),method:"GET"})},u=function(e){return Object(n["a"])({url:"/routes/".concat(e),method:"DELETE"})},s=function(e){return Object(n["a"])({url:"/routes",method:"POST",data:e})}},b32d:function(e,t,r){"use strict";var n=r("bc3a"),a=r.n(n),i=r("5c96"),o=a.a.create({baseURL:"/apisix/admin/",timeout:5e3});o.interceptors.request.use((function(e){return e}),(function(e){Promise.reject(e)})),o.interceptors.response.use((function(e){return e.data}),(function(e){return Object(i["Message"])({message:e.response.data.error_msg||e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=o},b5f7:function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"a",(function(){return u})),r.d(t,"c",(function(){return s}));var n=r("b32d"),a=function(e,t){return Object(n["a"])({url:"/upstreams/".concat(e),method:"PUT",data:t})},i=function(e){return Object(n["a"])({url:"/upstreams/".concat(e),method:"GET"})},o=function(e){return Object(n["a"])({url:"/upstreams/".concat(e),method:"DELETE"})},u=function(e){return Object(n["a"])({url:"/upstreams",method:"POST",data:e})},s=function(){return Object(n["a"])({url:"/upstreams",method:"GET"})}},c437:function(e,t,r){var n,a,i=r("e1f4"),o=r("2366"),u=0,s=0;function c(e,t,r){var c=t&&r||0,l=t||[];e=e||{};var d=e.node||n,p=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==p){var f=i();null==d&&(d=n=[1|f[0],f[1],f[2],f[3],f[4],f[5]]),null==p&&(p=a=16383&(f[6]<<8|f[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:s+1,b=m-u+(h-s)/1e4;if(b<0&&void 0===e.clockseq&&(p=p+1&16383),(b<0||m>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=m,s=h,a=p,m+=122192928e5;var v=(1e4*(268435455&m)+h)%4294967296;l[c++]=v>>>24&255,l[c++]=v>>>16&255,l[c++]=v>>>8&255,l[c++]=255&v;var g=m/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var y=0;y<6;++y)l[c+y]=d[y];return t||o(l)}e.exports=c},c8f9:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plugin-dialog"},[r("el-dialog",{attrs:{title:"Plugin "+e.name+" Edit",visible:e.show},on:{"update:visible":function(t){e.show=t}}},[r("el-form",{ref:"form",attrs:{model:e.data,rules:e.rules,"show-message":!1}},e._l(e.schema.properties,(function(t,n){return r("el-form-item",{key:n,attrs:{label:n,"label-width":"160px",prop:n}},["integer"===e.schema.properties[n].type||"number"===e.schema.properties[n].type?r("el-input-number",{attrs:{min:e.schema.properties[n].minimum||-99999999999,max:e.schema.properties[n].maximum||99999999999,label:"描述文字"},on:{change:function(t){return e.onPropertyChange(n,t)}},model:{value:e.data[n],callback:function(t){e.$set(e.data,n,t)},expression:"data[key]"}}):e._e(),e.schema.properties[n].hasOwnProperty("enum")?r("el-select",{attrs:{clearable:!0,placeholder:"Select a "+n},on:{change:function(t){return e.onPropertyChange(n,t)}},model:{value:e.data[n],callback:function(t){e.$set(e.data,n,t)},expression:"data[key]"}},e._l(e.schema.properties[n]["enum"],(function(e){return r("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),"string"!==e.schema.properties[n].type||e.schema.properties[n].hasOwnProperty("enum")?e._e():r("el-input",{attrs:{placeholder:n},on:{input:function(t){return e.onPropertyChange(n,t)}},model:{value:e.data[n],callback:function(t){e.$set(e.data,n,t)},expression:"data[key]"}})],1)})),1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.onCancel}},[e._v("\n Cancel\n ")]),r("el-button",{attrs:{type:"primary",disabled:!e.isDataChanged},on:{click:e.onSave}},[e._v("\n Confirm\n ")])],1)],1)],1)},a=[],i=(r("8e6e"),r("ac6a"),r("456d"),r("6762"),r("2fdb"),r("bd86")),o=(r("96cf"),r("3b8d")),u=(r("7f7f"),r("d225")),s=r("b0b4"),c=r("308d"),l=r("6bb5"),d=r("4e2b"),p=r("9ab4"),f=r("60a3"),m=r("b32d"),h=function(e){return Object(m["a"])({url:"/schema/plugins/".concat(e),method:"get"})};function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(r,!0).forEach((function(t){Object(i["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=r("c437"),y=function(e){function t(){var e;return Object(u["a"])(this,t),e=Object(c["a"])(this,Object(l["a"])(t).apply(this,arguments)),e.schema={properties:{}},e.rules={},e.data={},e.isDataChanged=!1,e}return Object(d["a"])(t,e),Object(s["a"])(t,[{key:"onShowChange",value:function(e){this.resetPlugin(),e&&this.getschema(this.name)}},{key:"resetPlugin",value:function(){this.schema={properties:{}},this.rules={},this.data={},this.isDataChanged=!1}},{key:"getschema",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r,n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h(t);case 2:if(r=e.sent,r.properties){e.next=6;break}return this.isDataChanged=!0,e.abrupt("return");case 6:for(a in this.schema=Object.assign({},v({},r,{name:this.name})),n=Object.assign({},r.properties),n)i=Object.assign({},n[a]),n[a]={trigger:"blur"},r.required&&(n[a].required=r.required.includes(a)),i.hasOwnProperty("type")&&(n[a]["type"]=i["type"]),i.hasOwnProperty("minimum")&&(n[a]["min"]=i["minimum"]),i.hasOwnProperty("maximum")&&(n[a]["max"]=i["maximum"]),i.hasOwnProperty("enum")&&(n[a]["type"]="enum",n[a]["enum"]=i["enum"]);this.rules=n,this.pluginData&&(this.data=Object.assign({},this.pluginData)),"key-auth"!==this.name||this.pluginData||(this.data={key:g()},this.isDataChanged=!0);case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onCancel",value:function(){this.$emit("hidePlugin")}},{key:"onSave",value:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;e.$emit("save",e.name,e.data),e.$message.warning("Your data will be saved after you click the Save button")}))}},{key:"onPropertyChange",value:function(e,t){this.data[e]=t,this.isDataChanged=!0}}]),t}(f["c"]);p["a"]([Object(f["b"])({default:!1})],y.prototype,"show",void 0),p["a"]([Object(f["b"])({default:""})],y.prototype,"name",void 0),p["a"]([Object(f["b"])({default:null})],y.prototype,"pluginData",void 0),p["a"]([Object(f["d"])("show")],y.prototype,"onShowChange",null),y=p["a"]([Object(f["a"])({name:"PluginDialog"})],y);var O=y,w=O,j=(r("f02e"),r("2877")),P=Object(j["a"])(w,n,a,!1,null,null,null);t["a"]=P.exports},e1f4:function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},f02e:function(e,t,r){"use strict";var n=r("63aa"),a=r.n(n);a.a},f908:function(e,t,r){e.exports={menuBg:"#304156",menuText:"#bfcbd9",menuActiveText:"#409eff"}},ffc1:function(e,t,r){var n=r("5ca1"),a=r("504c")(!0);n(n.S,"Object",{entries:function(e){return a(e)}})}}]);