|
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[6],{bmMU:function(e,t){var n="undefined"!==typeof Element,r="function"===typeof Map,a="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var s,c,u,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;0!==c--;)if(!i(e[c],t[c]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;l=e.entries();while(!(c=l.next()).done)if(!t.has(c.value[0]))return!1;l=e.entries();while(!(c=l.next()).done)if(!i(c.value[1],t.get(c.value[0])))return!1;return!0}if(a&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;l=e.entries();while(!(c=l.next()).done)if(!t.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;0!==c--;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(u=Object.keys(e),s=u.length,s!==Object.keys(t).length)return!1;for(c=s;0!==c--;)if(!Object.prototype.hasOwnProperty.call(t,u[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;0!==c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!i(e[u[c]],t[u[c]]))return!1;return!0}return e!==e&&t!==t}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},mxmt:function(e,t,n){e.exports=n.p+"static/logo.f0355d39.svg"},"nsf+":function(e,t,n){"use strict";n.r(t);var r=n("k1fw"),a=n("oN5p"),o=n("Hx5s"),i=n("bmMU"),s=n.n(i),c=n("QLaP"),u=n.n(c),l=n("17x9"),p=n.n(l),f=n("q1tI"),d=n.n(f),h=n("Gytx"),m=n.n(h),y={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},b=Object.keys(y).map((function(e){return y[e]})),g={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},T=Object.keys(g).reduce((function(e,t){return e[g[t]]=t,e}),{}),v=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},O=function(e){var t=v(e,y.TITLE),n=v(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=v(e,"defaultTitle");return t||r||void 0},A=function(e){return v(e,"onChangeClientState")||function(){}},C=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Object.assign({},e,t)}),{})},E=function(e,t){return t.filter((function(e){return void 0!==e[y.BASE]})).map((function(e){return e[y.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},j=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var s=o[i],c=s.toLowerCase();-1===t.indexOf(c)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===c&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][u]&&(a[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var s=o[i],c=Object.assign({},r[s],a[s]);r[s]=c}return e}),[]).reverse()},S=function(e){return Array.isArray(e)?e.join(""):e},w=[y.NOSCRIPT,y.SCRIPT,y.STYLE],x=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},_=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},P=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[g[n]||n]=e[n],t}),t)},I=function(e,t,n){switch(e){case y.TITLE:return{toComponent:function(){return n=P(t.titleAttributes,{key:e=t.title,"data-rh":!0}),[d.a.createElement(y.TITLE,n,e)];var e,n},toString:function(){return function(e,n,r,a){var o=_(t.titleAttributes),i=S(n);return o?"<"+e+' data-rh="true" '+o+">"+x(i,a)+"</"+e+">":"<"+e+' data-rh="true">'+x(i,a)+"</"+e+">"}(e,t.title,0,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return P(t)},toString:function(){return _(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r={key:n,"data-rh":!0};return Object.keys(t).forEach((function(e){var n=g[e]||e;"innerHTML"===n||"cssText"===n?r.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:r[n]=t[e]})),d.a.createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+x(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===w.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},L=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.scriptTags,c=e.styleTags,u=e.title;void 0===u&&(u="");var l=e.titleAttributes;return{base:I(y.BASE,e.baseTag,n),bodyAttributes:I("bodyAttributes",t,n),htmlAttributes:I("htmlAttributes",r,n),link:I(y.LINK,a,n),meta:I(y.META,o,n),noscript:I(y.NOSCRIPT,i,n),script:I(y.SCRIPT,s,n),style:I(y.STYLE,c,n),title:I(y.TITLE,{title:u,titleAttributes:l},n)}},k=d.a.createContext({}),N=p.a.shape({setHelmet:p.a.func,helmetInstances:p.a.shape({get:p.a.func,add:p.a.func,remove:p.a.func})}),M="undefined"!=typeof document,H=function(e){function t(n){var r=this;e.call(this,n),this.instances=[],this.value={setHelmet:function(e){r.props.context.helmet=e},helmetInstances:{get:function(){return r.instances},add:function(e){r.instances.push(e)},remove:function(e){var t=r.instances.indexOf(e);r.instances.splice(t,1)}}},t.canUseDOM||(n.context.helmet=L({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.render=function(){return d.a.createElement(k.Provider,{value:this.value},this.props.children)},t}(f["Component"]);H.canUseDOM=M,H.propTypes={context:p.a.shape({helmet:p.a.shape()}),children:p.a.node.isRequired},H.defaultProps={context:{}},H.displayName="HelmetProvider";var R=function(e,t){var n,r=document.head||document.querySelector(y.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},D=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),s=0;s<i.length;s+=1){var c=i[s],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===a.indexOf(c)&&a.push(c);var l=o.indexOf(c);-1!==l&&o.splice(l,1)}for(var p=o.length-1;p>=0;p-=1)n.removeAttribute(o[p]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},B=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,l=e.title,p=e.titleAttributes;D(y.BODY,e.bodyAttributes),D(y.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=S(e)),D(y.TITLE,t)}(l,p);var f={baseTag:R(y.BASE,n),linkTags:R(y.LINK,a),metaTags:R(y.META,o),noscriptTags:R(y.NOSCRIPT,i),scriptTags:R(y.SCRIPT,c),styleTags:R(y.STYLE,u)},d={},h={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(d[e]=n),r.length&&(h[e]=f[e].oldTags)})),t&&t(),s(e,d,h)},Y=null,q=function(e){function t(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];e.apply(this,t),this.rendered=!1}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.shouldComponentUpdate=function(e){return!m()(e,this.props)},t.prototype.componentDidUpdate=function(){this.emitChange()},t.prototype.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},t.prototype.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=Object.assign({},e.props);return delete t.context,t})),{baseTag:E(["href"],e),bodyAttributes:C("bodyAttributes",e),defer:v(e,"defer"),encode:v(e,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",e),linkTags:j(y.LINK,["rel","href"],e),metaTags:j(y.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:j(y.NOSCRIPT,["innerHTML"],e),onChangeClientState:A(e),scriptTags:j(y.SCRIPT,["src","innerHTML"],e),styleTags:j(y.STYLE,["cssText"],e),title:O(e),titleAttributes:C("titleAttributes",e)});H.canUseDOM?(t=o,Y&&cancelAnimationFrame(Y),t.defer?Y=requestAnimationFrame((function(){B(t,(function(){Y=null}))})):(B(t),Y=null)):L&&(a=L(o)),r(a)},t.prototype.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},t.prototype.render=function(){return this.init(),null},t}(f["Component"]);function U(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}q.propTypes={context:N.isRequired},q.displayName="HelmetDispatcher";var K=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.shouldComponentUpdate=function(e){return!s()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:t};case y.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return Object.assign({},r,((t={})[n.type]=(r[n.type]||[]).concat([Object.assign({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case y.TITLE:return Object.assign({},a,((t={})[r.type]=i,t),{titleAttributes:Object.assign({},o)});case y.BODY:return Object.assign({},a,{bodyAttributes:Object.assign({},o)});case y.HTML:return Object.assign({},a,{htmlAttributes:Object.assign({},o)});default:return Object.assign({},a,((n={})[r.type]=Object.assign({},o),n))}},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Object.assign({},t);return Object.keys(e).forEach((function(t){var r;n=Object.assign({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return u()(b.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+b.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return d.a.Children.forEach(e,(function(e){if(e&&e.props){var a=e.props,o=a.children,i=U(a,["children"]),s=Object.keys(i).reduce((function(e,t){return e[T[t]||t]=i[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():n.warnOnInvalidChildren(e,o),c){case y.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=U(e,["children"]),r=Object.assign({},n);return t&&(r=this.mapChildrenToProps(t,r)),d.a.createElement(k.Consumer,null,(function(e){return d.a.createElement(q,Object.assign({},r,{context:e}))}))},t}(f["Component"]);K.propTypes={base:p.a.object,bodyAttributes:p.a.object,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node]),defaultTitle:p.a.string,defer:p.a.bool,encodeSpecialCharacters:p.a.bool,htmlAttributes:p.a.object,link:p.a.arrayOf(p.a.object),meta:p.a.arrayOf(p.a.object),noscript:p.a.arrayOf(p.a.object),onChangeClientState:p.a.func,script:p.a.arrayOf(p.a.object),style:p.a.arrayOf(p.a.object),title:p.a.string,titleAttributes:p.a.object,titleTemplate:p.a.string},K.defaultProps={defer:!0,encodeSpecialCharacters:!0},K.displayName="Helmet";var F=n("9kvl"),G=n("mxmt"),z=n.n(G),V=n("roml"),J=n.n(V),W=function(e){var t=e.route,n=void 0===t?{routes:[]}:t,i=n.routes,s=void 0===i?[]:i,c=e.children,u=e.location,l=void 0===u?{pathname:""}:u,p=Object(F["e"])(),f=p.formatMessage,h=Object(o["g"])(s),m=h.breadcrumb,y=Object(o["h"])(Object(r["a"])({pathname:l.pathname,formatMessage:f,breadcrumb:m},e));return d.a.createElement(H,null,d.a.createElement(K,null,d.a.createElement("title",null,y),d.a.createElement("meta",{name:"description",content:y})),d.a.createElement("div",{className:J.a.container},d.a.createElement("div",{className:J.a.lang},d.a.createElement(F["a"],null)),d.a.createElement("div",{className:J.a.content},d.a.createElement("div",{className:J.a.top},d.a.createElement("div",{className:J.a.header},d.a.createElement("img",{alt:"logo",className:J.a.logo,src:z.a}),d.a.createElement("span",{className:J.a.title},"TyAdmin")),d.a.createElement("div",{className:J.a.desc},"Generate By TyAdmin Cli")),c),d.a.createElement(o["a"],{copyright:"".concat((new Date).getFullYear()," TyAdmin By mtianyan"),links:[{key:"TyAdmin",title:"TyAdmin",href:"https://github.com/mtianyan/tyadmin_api_cli",blankTarget:!0},{key:"github",title:d.a.createElement(a["default"],null),href:"https://github.com/mtianyan",blankTarget:!0},{key:"Ant Design",title:"Ant Design Pro V4",href:"https://ant.design",blankTarget:!0}]})))};t["default"]=Object(F["b"])((function(e){var t=e.settings;return Object(r["a"])({},t)}))(W)},roml:function(e,t,n){e.exports={container:"container___3rwDa",lang:"lang___2ES0G",content:"content___3Paa8",top:"top___1W42Y",header:"header___1cl15",logo:"logo___29nS6",title:"title___3DxND",desc:"desc___2YLHe"}}}]);
|