\ No newline at end of file
+404: This page could not be found
404
This page could not be found.
\ No newline at end of file
diff --git a/404/index.html b/404/index.html
index c4e1fd8e2..1292c2842 100644
--- a/404/index.html
+++ b/404/index.html
@@ -1 +1 @@
-404: This page could not be found
404
This page could not be found.
\ No newline at end of file
+404: This page could not be found
404
This page could not be found.
\ No newline at end of file
diff --git a/_next/static/5bnJC4l5xCVOEVyj9eotO/_buildManifest.js b/_next/static/5bnJC4l5xCVOEVyj9eotO/_buildManifest.js
new file mode 100644
index 000000000..85cb6aafa
--- /dev/null
+++ b/_next/static/5bnJC4l5xCVOEVyj9eotO/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST=function(s,e,c,a,d,o,t,r,p,i,u){return{__rewrites:{afterFiles:[{has:void 0,source:"/api",destination:"/api/index.html"}],beforeFiles:[],fallback:[]},"/":[s,e,c,d,"static/chunks/877-181cb6f80ac2b65b.js","static/chunks/pages/index-68dbfd581eea4cec.js"],"/_error":["static/chunks/pages/_error-735dc60b184b15e5.js"],"/docs":[s,e,c,a,"static/chunks/pages/docs-26fcecf470fc1a9c.js"],"/docs/core/TypedBody":[s,e,"static/chunks/pages/docs/core/TypedBody-b32dd63192f53ff3.js"],"/docs/core/TypedException":[s,e,"static/chunks/pages/docs/core/TypedException-786d15871a962737.js"],"/docs/core/TypedFormData":[s,e,"static/chunks/pages/docs/core/TypedFormData-1f7dffbe7bb89aa1.js"],"/docs/core/TypedHeaders":[s,e,"static/chunks/pages/docs/core/TypedHeaders-00882e027e6cc02e.js"],"/docs/core/TypedParam":[s,e,"static/chunks/pages/docs/core/TypedParam-15548efd5535b657.js"],"/docs/core/TypedQuery":[s,e,"static/chunks/pages/docs/core/TypedQuery-f2794a275d6ce277.js"],"/docs/core/TypedRoute":[s,e,"static/chunks/pages/docs/core/TypedRoute-6b4198498d6e7007.js"],"/docs/core/WebSocketRoute":[s,e,"static/chunks/pages/docs/core/WebSocketRoute-0bbf53d1eb9e4052.js"],"/docs/e2e/benchmark":[s,e,"static/chunks/pages/docs/e2e/benchmark-c639edd12f38da6e.js"],"/docs/e2e/development":[s,e,"static/chunks/pages/docs/e2e/development-1f3d0cef41c99426.js"],"/docs/e2e/why":[s,e,"static/chunks/pages/docs/e2e/why-f959e93437cac912.js"],"/docs/editor":[o,t,r,p,s,e,c,a,i,d,u,"static/chunks/pages/docs/editor-884a6d247eb8c698.js"],"/docs/migrate":[o,t,r,p,s,e,c,a,i,d,u,"static/chunks/pages/docs/migrate-3853447ce06ae921.js"],"/docs/pure":[s,e,"static/chunks/pages/docs/pure-061a8e89a6fb0740.js"],"/docs/sdk/e2e":[s,e,"static/chunks/pages/docs/sdk/e2e-57746db7dd298198.js"],"/docs/sdk/sdk":[s,e,"static/chunks/pages/docs/sdk/sdk-fd16f397763be058.js"],"/docs/sdk/simulator":[s,e,"static/chunks/pages/docs/sdk/simulator-eee09cf5a7f0747a.js"],"/docs/sdk/swagger":[o,t,r,p,s,e,i,"static/chunks/pages/docs/sdk/swagger-da6fb9469d91efb6.js"],"/docs/setup":[s,e,c,a,"static/chunks/pages/docs/setup-24c6ecda2860b940.js"],"/playground":[s,e,"static/chunks/pages/playground-64daf95687985048.js"],sortedPages:["/","/_app","/_error","/docs","/docs/core/TypedBody","/docs/core/TypedException","/docs/core/TypedFormData","/docs/core/TypedHeaders","/docs/core/TypedParam","/docs/core/TypedQuery","/docs/core/TypedRoute","/docs/core/WebSocketRoute","/docs/e2e/benchmark","/docs/e2e/development","/docs/e2e/why","/docs/editor","/docs/migrate","/docs/pure","/docs/sdk/e2e","/docs/sdk/sdk","/docs/sdk/simulator","/docs/sdk/swagger","/docs/setup","/playground"]}}("static/css/445c4173ffc2bf04.css","static/chunks/718-c714ac7ed9d6e904.js","static/chunks/682-de0a854dc54ae681.js","static/chunks/435-10f519fbccca505b.js","static/chunks/61-7a737f47f707ac0c.js","static/chunks/88682331-7b10ae760fcfe482.js","static/chunks/d89928ee-6122a262afca31bb.js","static/chunks/e0385ce4-90eb211bf662c0f5.js","static/chunks/46d2146f-3e03994059d7bd1e.js","static/chunks/860-654844c2f0218966.js","static/chunks/113-22f6782890f0f0ed.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/_next/static/LjazRVsunON3shG2soXRq/_ssgManifest.js b/_next/static/5bnJC4l5xCVOEVyj9eotO/_ssgManifest.js
similarity index 100%
rename from _next/static/LjazRVsunON3shG2soXRq/_ssgManifest.js
rename to _next/static/5bnJC4l5xCVOEVyj9eotO/_ssgManifest.js
diff --git a/_next/static/LjazRVsunON3shG2soXRq/_buildManifest.js b/_next/static/LjazRVsunON3shG2soXRq/_buildManifest.js
deleted file mode 100644
index a2a8e64de..000000000
--- a/_next/static/LjazRVsunON3shG2soXRq/_buildManifest.js
+++ /dev/null
@@ -1 +0,0 @@
-self.__BUILD_MANIFEST=function(s,c,e,d,a,o,t,r,p,i,u){return{__rewrites:{afterFiles:[{has:void 0,source:"/api",destination:"/api/index.html"}],beforeFiles:[],fallback:[]},"/":[s,c,e,a,"static/chunks/877-181cb6f80ac2b65b.js","static/chunks/pages/index-a01c660ba189f51a.js"],"/_error":["static/chunks/pages/_error-735dc60b184b15e5.js"],"/docs":[s,c,e,d,"static/chunks/pages/docs-0c6310b9a1e608da.js"],"/docs/core/TypedBody":[s,c,"static/chunks/pages/docs/core/TypedBody-7e2d647c56ba3e02.js"],"/docs/core/TypedException":[s,c,"static/chunks/pages/docs/core/TypedException-55264e12e682f79e.js"],"/docs/core/TypedFormData":[s,c,"static/chunks/pages/docs/core/TypedFormData-5220e0b92c80b461.js"],"/docs/core/TypedHeaders":[s,c,"static/chunks/pages/docs/core/TypedHeaders-294d84c363dad0ec.js"],"/docs/core/TypedParam":[s,c,"static/chunks/pages/docs/core/TypedParam-9a7e362a54586d57.js"],"/docs/core/TypedQuery":[s,c,"static/chunks/pages/docs/core/TypedQuery-782f9a376c65ee2f.js"],"/docs/core/TypedRoute":[s,c,"static/chunks/pages/docs/core/TypedRoute-30f2e58af31ab78d.js"],"/docs/core/WebSocketRoute":[s,c,"static/chunks/pages/docs/core/WebSocketRoute-ed02e1e074f3cfc1.js"],"/docs/e2e/benchmark":[s,c,"static/chunks/pages/docs/e2e/benchmark-4b2958fd5b422b6d.js"],"/docs/e2e/development":[s,c,"static/chunks/pages/docs/e2e/development-cb6506200f79502f.js"],"/docs/e2e/why":[s,c,"static/chunks/pages/docs/e2e/why-93ec254bfc39c0f4.js"],"/docs/editor":[o,t,r,p,s,c,e,d,i,a,u,"static/chunks/pages/docs/editor-d32172facc252b84.js"],"/docs/migrate":[o,t,r,p,s,c,e,d,i,a,u,"static/chunks/pages/docs/migrate-f9a91718cf16a893.js"],"/docs/pure":[s,c,"static/chunks/pages/docs/pure-58aa3eb10aa5b156.js"],"/docs/sdk/e2e":[s,c,"static/chunks/pages/docs/sdk/e2e-8390598fb43b5be6.js"],"/docs/sdk/sdk":[s,c,"static/chunks/pages/docs/sdk/sdk-95897f9ff8c655d7.js"],"/docs/sdk/simulator":[s,c,"static/chunks/pages/docs/sdk/simulator-f492ccfe674749ab.js"],"/docs/sdk/swagger":[o,t,r,p,s,c,i,"static/chunks/pages/docs/sdk/swagger-49f05b348a60bc2d.js"],"/docs/setup":[s,c,e,d,"static/chunks/pages/docs/setup-71113cc4b50ef9c7.js"],"/playground":[s,c,"static/chunks/pages/playground-8f31f287484b7b3f.js"],sortedPages:["/","/_app","/_error","/docs","/docs/core/TypedBody","/docs/core/TypedException","/docs/core/TypedFormData","/docs/core/TypedHeaders","/docs/core/TypedParam","/docs/core/TypedQuery","/docs/core/TypedRoute","/docs/core/WebSocketRoute","/docs/e2e/benchmark","/docs/e2e/development","/docs/e2e/why","/docs/editor","/docs/migrate","/docs/pure","/docs/sdk/e2e","/docs/sdk/sdk","/docs/sdk/simulator","/docs/sdk/swagger","/docs/setup","/playground"]}}("static/css/445c4173ffc2bf04.css","static/chunks/718-c714ac7ed9d6e904.js","static/chunks/682-de0a854dc54ae681.js","static/chunks/435-10f519fbccca505b.js","static/chunks/61-7a737f47f707ac0c.js","static/chunks/88682331-7b10ae760fcfe482.js","static/chunks/d89928ee-6122a262afca31bb.js","static/chunks/e0385ce4-90eb211bf662c0f5.js","static/chunks/46d2146f-3e03994059d7bd1e.js","static/chunks/860-654844c2f0218966.js","static/chunks/485-863e3b5c50580457.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/_next/static/chunks/485-863e3b5c50580457.js b/_next/static/chunks/113-22f6782890f0f0ed.js
similarity index 86%
rename from _next/static/chunks/485-863e3b5c50580457.js
rename to _next/static/chunks/113-22f6782890f0f0ed.js
index 929911897..f4808a82d 100644
--- a/_next/static/chunks/485-863e3b5c50580457.js
+++ b/_next/static/chunks/113-22f6782890f0f0ed.js
@@ -1 +1 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[485],{44287:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M6.24 5h11.52l.81.97H5.44zM5 19V8h14v11zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined")},50594:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},28304:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined")},19602:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline")},27505:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(71657),c=n(90948);function u(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function d(e,t=!1){return e&&(u(e.value)&&""!==e.value||t&&u(e.defaultValue)&&""!==e.defaultValue)}var p=n(98216),f=n(56476),m=n(47167),g=n(1977),h=n(8027);function M(e){return(0,h.ZP)("MuiFormControl",e)}(0,g.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var j=n(85893);let I=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y=e=>{let{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,p.Z)(n)}`,r&&"fullWidth"]};return(0,l.Z)(i,M,t)},N=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.root,t[`margin${(0,p.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}));var x=o.forwardRef(function(e,t){let n;let l=(0,s.Z)({props:e,name:"MuiFormControl"}),{children:c,className:u,color:p="primary",component:g="div",disabled:h=!1,error:M=!1,focused:x,fullWidth:b=!1,hiddenLabel:w=!1,margin:v="none",required:L=!1,size:D="medium",variant:C="outlined"}=l,Z=(0,r.Z)(l,I),T=(0,i.Z)({},l,{color:p,component:g,disabled:h,error:M,fullWidth:b,hiddenLabel:w,margin:v,required:L,size:D,variant:C}),k=y(T),[S,A]=o.useState(()=>{let e=!1;return c&&o.Children.forEach(c,t=>{if(!(0,f.Z)(t,["Input","Select"]))return;let n=(0,f.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[E,O]=o.useState(()=>{let e=!1;return c&&o.Children.forEach(c,t=>{(0,f.Z)(t,["Input","Select"])&&(d(t.props,!0)||d(t.props.inputProps,!0))&&(e=!0)}),e}),[z,P]=o.useState(!1);h&&z&&P(!1);let Y=void 0===x||h?z:x,F=o.useMemo(()=>({adornedStart:S,setAdornedStart:A,color:p,disabled:h,error:M,filled:E,focused:Y,fullWidth:b,hiddenLabel:w,size:D,onBlur:()=>{P(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{P(!0)},registerEffect:n,required:L,variant:C}),[S,p,h,M,E,Y,b,w,n,L,D,C]);return(0,j.jsx)(m.Z.Provider,{value:F,children:(0,j.jsx)(N,(0,i.Z)({as:g,ownerState:T,className:(0,a.Z)(k.root,u),ref:t},Z,{children:c}))})})},47167:function(e,t,n){"use strict";let r=n(67294).createContext(void 0);t.Z=r},15704:function(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,{Z:function(){return r}})},74423:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(47167);function o(){return r.useContext(i.Z)}},50480:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(74423),c=n(51233),u=n(15861),d=n(98216),p=n(90948),f=n(71657),m=n(1977),g=n(8027);function h(e){return(0,g.ZP)("MuiFormControlLabel",e)}let M=(0,m.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var j=n(15704),I=n(85893);let y=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],N=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,d.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,l.Z)(a,h,t)},x=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${M.label}`]:t.label},t.root,t[`labelPlacement${(0,d.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${M.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${M.label}`]:{[`&.${M.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),b=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${M.error}`]:{color:(e.vars||e).palette.error.main}}));var w=o.forwardRef(function(e,t){var n,l;let d=(0,f.Z)({props:e,name:"MuiFormControlLabel"}),{className:p,componentsProps:m={},control:g,disabled:h,disableTypography:M,label:w,labelPlacement:v="end",required:L,slotProps:D={}}=d,C=(0,r.Z)(d,y),Z=(0,s.Z)(),T=null!=(n=null!=h?h:g.props.disabled)?n:null==Z?void 0:Z.disabled,k=null!=L?L:g.props.required,S={disabled:T,required:k};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==d[e]&&(S[e]=d[e])});let A=(0,j.Z)({props:d,muiFormControl:Z,states:["error"]}),E=(0,i.Z)({},d,{disabled:T,labelPlacement:v,required:k,error:A.error}),O=N(E),z=null!=(l=D.typography)?l:m.typography,P=w;return null==P||P.type===u.Z||M||(P=(0,I.jsx)(u.Z,(0,i.Z)({component:"span"},z,{className:(0,a.Z)(O.label,null==z?void 0:z.className),children:P}))),(0,I.jsxs)(x,(0,i.Z)({className:(0,a.Z)(O.root,p),ownerState:E,ref:t},C,{children:[o.cloneElement(g,S),k?(0,I.jsxs)(c.Z,{display:"block",children:[P,(0,I.jsxs)(b,{ownerState:E,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):P]}))})},30990:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(15704),c=n(74423),u=n(98216),d=n(71657),p=n(90948),f=n(1977),m=n(8027);function g(e){return(0,m.ZP)("MuiFormLabel",e)}let h=(0,f.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var M=n(85893);let j=["children","className","color","component","disabled","error","filled","focused","required"],I=e=>{let{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,c={root:["root",`color${(0,u.Z)(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return(0,l.Z)(c,g,t)},y=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${h.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${h.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${h.error}`]:{color:(e.vars||e).palette.error.main}})),N=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${h.error}`]:{color:(e.vars||e).palette.error.main}}));var x=o.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:o,className:l,component:u="label"}=n,p=(0,r.Z)(n,j),f=(0,c.Z)(),m=(0,s.Z)({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),g=(0,i.Z)({},n,{color:m.color||"primary",component:u,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),h=I(g);return(0,M.jsxs)(y,(0,i.Z)({as:u,ownerState:g,className:(0,a.Z)(h.root,l),ref:t},p,{children:[o,m.required&&(0,M.jsxs)(N,{ownerState:g,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))})},36872:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(88111),c=n(21964),u=n(71657),d=n(88169),p=n(85893),f=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),m=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),g=n(90948);let h=(0,g.ZP)("span",{shouldForwardProp:g.FO})({position:"relative",display:"flex"}),M=(0,g.ZP)(f)({transform:"scale(1)"}),j=(0,g.ZP)(m)(({theme:e,ownerState:t})=>(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));var I=function(e){let{checked:t=!1,classes:n={},fontSize:r}=e,o=(0,i.Z)({},e,{checked:t});return(0,p.jsxs)(h,{className:n.root,ownerState:o,children:[(0,p.jsx)(M,{fontSize:r,className:n.background,ownerState:o}),(0,p.jsx)(j,{fontSize:r,className:n.dot,ownerState:o})]})},y=n(98216),N=n(68557),x=n(80209),b=n(1977),w=n(8027);function v(e){return(0,w.ZP)("MuiRadio",e)}let L=(0,b.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),D=["checked","checkedIcon","color","icon","name","onChange","size","className"],C=e=>{let{classes:t,color:n,size:r}=e,o={root:["root",`color${(0,y.Z)(n)}`,"medium"!==r&&`size${(0,y.Z)(r)}`]};return(0,i.Z)({},t,(0,l.Z)(o,v,t))},Z=(0,g.ZP)(c.Z,{shouldForwardProp:e=>(0,g.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,y.Z)(n.size)}`],t[`color${(0,y.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${L.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${L.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),T=(0,p.jsx)(I,{checked:!0}),k=(0,p.jsx)(I,{});var S=o.forwardRef(function(e,t){var n,l,s,c;let d=(0,u.Z)({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:m=T,color:g="primary",icon:h=k,name:M,onChange:j,size:I="medium",className:y}=d,b=(0,r.Z)(d,D),w=(0,i.Z)({},d,{color:g,size:I}),v=C(w),L=o.useContext(x.Z),S=f,A=(0,N.Z)(j,L&&L.onChange),E=M;return L&&(void 0===S&&(s=L.value,S="object"==typeof(c=d.value)&&null!==c?s===c:String(s)===String(c)),void 0===E&&(E=L.name)),(0,p.jsx)(Z,(0,i.Z)({type:"radio",icon:o.cloneElement(h,{fontSize:null!=(n=k.props.fontSize)?n:I}),checkedIcon:o.cloneElement(m,{fontSize:null!=(l=T.props.fontSize)?l:I}),ownerState:w,classes:v,name:E,checked:S,onChange:A,ref:t,className:(0,a.Z)(v.root,y)},b))})},72890:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(87462),i=n(63366),o=n(67294),a=n(90512),l=n(58510),s=n(90948),c=n(71657),u=n(1977),d=n(8027);function p(e){return(0,d.ZP)("MuiFormGroup",e)}(0,u.Z)("MuiFormGroup",["root","row","error"]);var f=n(74423),m=n(15704),g=n(85893);let h=["className","row"],M=e=>{let{classes:t,row:n,error:r}=e;return(0,l.Z)({root:["root",n&&"row",r&&"error"]},p,t)},j=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>(0,r.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),I=o.forwardRef(function(e,t){let n=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:o,row:l=!1}=n,s=(0,i.Z)(n,h),u=(0,f.Z)(),d=(0,m.Z)({props:n,muiFormControl:u,states:["error"]}),p=(0,r.Z)({},n,{row:l,error:d.error}),I=M(p);return(0,g.jsx)(j,(0,r.Z)({className:(0,a.Z)(I.root,o),ownerState:p,ref:t},s))});var y=n(60020),N=n(37388),x=n(80209),b=n(68046);let w=["actions","children","defaultValue","name","onChange","value"];var v=o.forwardRef(function(e,t){let{actions:n,children:a,defaultValue:l,name:s,onChange:c,value:u}=e,d=(0,i.Z)(e,w),p=o.useRef(null),[f,m]=(0,N.Z)({controlled:u,default:l,name:"RadioGroup"});o.useImperativeHandle(n,()=>({focus:()=>{let e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let h=(0,y.Z)(t,p),M=(0,b.Z)(s),j=o.useMemo(()=>({name:M,onChange(e){m(e.target.value),c&&c(e,e.target.value)},value:f}),[M,c,m,f]);return(0,g.jsx)(x.Z.Provider,{value:j,children:(0,g.jsx)(I,(0,r.Z)({role:"radiogroup",ref:h},d,{children:a}))})})},80209:function(e,t,n){"use strict";let r=n(67294).createContext(void 0);t.Z=r},45843:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(88111),c=n(98216),u=n(21964),d=n(71657),p=n(90948),f=n(1977),m=n(8027);function g(e){return(0,m.ZP)("MuiSwitch",e)}let h=(0,f.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var M=n(85893);let j=["className","color","edge","size","sx"],I=e=>{let{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,u={root:["root",n&&`edge${(0,c.Z)(n)}`,`size${(0,c.Z)(r)}`],switchBase:["switchBase",`color${(0,c.Z)(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,l.Z)(u,g,t);return(0,i.Z)({},t,d)},y=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,c.Z)(n.edge)}`],t[`size${(0,c.Z)(n.size)}`]]}})(({ownerState:e})=>(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${h.thumb}`]:{width:16,height:16},[`& .${h.switchBase}`]:{padding:4,[`&.${h.checked}`]:{transform:"translateX(16px)"}}})),N=(0,p.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.switchBase,{[`& .${h.input}`]:t.input},"default"!==n.color&&t[`color${(0,c.Z)(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${h.checked}`]:{transform:"translateX(20px)"},[`&.${h.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${h.checked} + .${h.track}`]:{opacity:.5},[`&.${h.disabled} + .${h.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${"light"===e.palette.mode?.12:.2}`},[`& .${h.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>(0,i.Z)({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${h.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${"light"===e.palette.mode?(0,s.$n)(e.palette[t.color].main,.62):(0,s._j)(e.palette[t.color].main,.55)}`}},[`&.${h.checked} + .${h.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),x=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${"light"===e.palette.mode?.38:.3}`})),b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}));var w=o.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:c="medium",sx:u}=n,p=(0,r.Z)(n,j),f=(0,i.Z)({},n,{color:l,edge:s,size:c}),m=I(f),g=(0,M.jsx)(b,{className:m.thumb,ownerState:f});return(0,M.jsxs)(y,{className:(0,a.Z)(m.root,o),sx:u,ownerState:f,children:[(0,M.jsx)(N,(0,i.Z)({type:"checkbox",icon:g,checkedIcon:g,ref:t,ownerState:f},p,{classes:(0,i.Z)({},m,{root:m.switchBase})})),(0,M.jsx)(x,{className:m.track,ownerState:f})]})})},21964:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(98216),c=n(90948),u=n(37388),d=n(74423),p=n(77162),f=n(1977),m=n(8027);function g(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var h=n(85893);let M=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],j=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,s.Z)(i)}`],input:["input"]};return(0,l.Z)(o,g,t)},I=(0,c.ZP)(p.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),y=(0,c.ZP)("input",{shouldForwardProp:c.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var N=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:l,className:s,defaultChecked:c,disabled:p,disableFocusRipple:f=!1,edge:m=!1,icon:g,id:N,inputProps:x,inputRef:b,name:w,onBlur:v,onChange:L,onFocus:D,readOnly:C,required:Z=!1,tabIndex:T,type:k,value:S}=e,A=(0,r.Z)(e,M),[E,O]=(0,u.Z)({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),z=(0,d.Z)(),P=p;z&&void 0===P&&(P=z.disabled);let Y="checkbox"===k||"radio"===k,F=(0,i.Z)({},e,{checked:E,disabled:P,disableFocusRipple:f,edge:m}),G=j(F);return(0,h.jsxs)(I,(0,i.Z)({component:"span",className:(0,a.Z)(G.root,s),centerRipple:!0,focusRipple:!f,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{D&&D(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{v&&v(e),z&&z.onBlur&&z.onBlur(e)},ownerState:F,ref:t},A,{children:[(0,h.jsx)(y,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:c,className:G.input,disabled:P,id:Y?N:void 0,name:w,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;O(t),L&&L(e,t)},readOnly:C,ref:b,required:Z,ownerState:F,tabIndex:T,type:k},"checkbox"===k&&void 0===S?{}:{value:S},x)),E?l:g]}))})},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},40410:function(e,t,n){"use strict";n.d(t,{Z:function(){return eo}});var r=n(67294),i=n.t(r,2),o=n(45697),a=n.n(o),l=n(5616),s=n(63366),c=n(87462),u=n(90512),d=n(58510),p=n(90948),f=n(71657),m=n(88169),g=n(85893),h=(0,m.Z)((0,g.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),M=n(1977),j=n(8027);function I(e){return(0,j.ZP)("MuiAvatar",e)}(0,M.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);let y=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],N=e=>{let{classes:t,variant:n,colorDefault:r}=e;return(0,d.Z)({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},I,t)},x=(0,p.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,c.Z)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,c.Z)({backgroundColor:e.palette.grey[400]},e.applyDarkStyles({backgroundColor:e.palette.grey[600]})))}]})),b=(0,p.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),w=(0,p.ZP)(h,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),v=r.forwardRef(function(e,t){let n=(0,f.Z)({props:e,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:l="div",imgProps:d,sizes:p,src:m,srcSet:h,variant:M="circular"}=n,j=(0,s.Z)(n,y),I=null,v=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){let[o,a]=r.useState(!1);return r.useEffect(()=>{if(!n&&!i)return;a(!1);let r=!0,o=new Image;return o.onload=()=>{r&&a("loaded")},o.onerror=()=>{r&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,i&&(o.srcset=i),()=>{r=!1}},[e,t,n,i]),o}((0,c.Z)({},d,{src:m,srcSet:h})),L=m||h,D=L&&"error"!==v,C=(0,c.Z)({},n,{colorDefault:!D,component:l,variant:M}),Z=N(C);return I=D?(0,g.jsx)(b,(0,c.Z)({alt:i,srcSet:h,src:m,sizes:p,ownerState:C,className:Z.img},d)):null!=o?o:L&&i?i[0]:(0,g.jsx)(w,{ownerState:C,className:Z.fallback}),(0,g.jsx)(x,(0,c.Z)({as:l,ownerState:C,className:(0,u.Z)(Z.root,a),ref:t},j,{children:I}))});var L=n(15861),D=n(93946),C=n(34168),Z=n(20539),T=n(58974);let k=i.useSyncExternalStore;function S(e,t={}){let n=(0,C.Z)(),i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=i?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:s=!1}=(0,Z.Z)({name:"MuiUseMediaQuery",props:t,theme:n}),c="function"==typeof e?e(n):e;return(void 0!==k?function(e,t,n,i,o){let a=r.useCallback(()=>t,[t]),l=r.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==i){let{matches:t}=i(e);return()=>t}return a},[a,e,i,o,n]),[s,c]=r.useMemo(()=>{if(null===n)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[a,n,e]);return k(c,s,l)}:function(e,t,n,i,o){let[a,l]=r.useState(()=>o&&n?n(e).matches:i?i(e).matches:t);return(0,T.Z)(()=>{let t=!0;if(!n)return;let r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}},[e,n]),a})(c=c.replace(/^@media( ?)/m,""),o,a,l,s)}var A=n(90629),E=n(86886),O=n(2734);let z=["initialWidth","width"],P=["xs","sm","md","lg","xl"],Y=(e,t,n=!0)=>n?P.indexOf(e)<=P.indexOf(t):P.indexOf(e)n?P.indexOf(t)<=P.indexOf(e):P.indexOf(t)t=>{let{withTheme:n=!1,noSSR:i=!1,initialWidth:o}=e;return function(e){let a=(0,O.Z)(),l=e.theme||a,u=(0,Z.Z)({theme:l,name:"MuiWithWidth",props:e}),{initialWidth:d,width:p}=u,f=(0,s.Z)(u,z),[m,h]=r.useState(!1);(0,T.Z)(()=>{h(!0)},[]);let M=l.breakpoints.keys.slice().reverse().reduce((e,t)=>{let n=S(l.breakpoints.up(t));return!e&&n?t:e},null),j=(0,c.Z)({width:p||(m||i?M:void 0)||d||o},n?{theme:l}:{},f);return void 0===j.width?null:(0,g.jsx)(t,(0,c.Z)({},j))}})()(function(e){let{children:t,only:n,width:i}=e,o=(0,O.Z)(),a=!0;if(n){if(Array.isArray(n)){for(let e=0;e{let{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:e,dir:t})=>"only"===t?`${t}${(0,U.Z)(e)}`:`${e}${(0,U.Z)(t)}`)]};return(0,d.Z)(r,R,t)},W=(0,p.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{let n={display:"none"};return(0,c.Z)({},t.breakpoints.map(({breakpoint:t,dir:r})=>"only"===r?{[e.breakpoints.only(t)]:n}:"up"===r?{[e.breakpoints.up(t)]:n}:{[e.breakpoints.down(t)]:n}).reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),{}))});var H=function(e){let{children:t,className:n,only:r}=e,i=(0,s.Z)(e,B),o=(0,O.Z)(),a=[];for(let e=0;e{a.push({breakpoint:e,dir:"only"})});let l=(0,c.Z)({},e,{breakpoints:a}),d=Q(l);return(0,g.jsx)(W,{className:(0,u.Z)(d.root,n),ownerState:l,children:t})};let $=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var _=function(e){let{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:i=!1,mdUp:o=!1,smDown:a=!1,smUp:l=!1,xlDown:u=!1,xlUp:d=!1,xsDown:p=!1,xsUp:f=!1}=e,m=(0,s.Z)(e,$);return"js"===t?(0,g.jsx)(G,(0,c.Z)({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:l,xlDown:u,xlUp:d,xsDown:p,xsUp:f},m)):(0,g.jsx)(H,(0,c.Z)({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:l,xlDown:u,xlUp:d,xsDown:p,xsUp:f},m))},q=n(69417),V=n(21737),X=n(50594),J=n(44287),K=n(19602),ee=n(28304),et=function(){return(et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.size>1048576*m){var a=D||"The size of files cannot exceed ".concat(m,"Mb");return K(a),i&&i(a)}if(C&&C.length>0&&!(-1!==C.findIndex(function(e){return e.toLowerCase()===o.toLowerCase()}))){var l="Extension .".concat(o," has been excluded");return K(l),i&&i(l)}s||(em.push(n),eg(em)),r.addEventListener("load",function(){ed.push({name:n.name,size:n.size,path:this.result,type:n.type,contentType:n.type,lastModified:n.lastModified,extension:null==o?void 0:o.toLowerCase()}),ep(en([],ed,!0))},!1),r.readAsDataURL(n)}(r);return e.target.value="",!0}catch(e){K(e.toString())}return!1},eN=function(e,t){if(K(null),eh.current&&(eh.current.value=""),"number"!=typeof t){ep([]),eg([]);return}if(t<0||t>ed.length-1)return console.error("item's index not found...");var n=et({},ed[t]);return null==ed||ed.splice(t,1),null==em||em.splice(t,1),ep(en([],ed,!0)),eg(en([],em,!0)),n},ex=(0,r.useCallback)(function(e){e.preventDefault(),ec(!0)},[]),eb=(0,r.useCallback)(function(e){e.stopPropagation(),e.preventDefault()},[]),ew=(0,r.useCallback)(function(e){var t;e.stopPropagation(),e.preventDefault(),ec(!1),ea({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})},[]),ev=(0,r.useCallback)(function(){ec(!1)},[]),eL=function(){return{addFile:ey,removeFile:eN,input:eh.current,files:s?ed:em}};(0,r.useEffect)(function(){eh.current&&w&&"function"==typeof w&&w(eL())},[eh.current]),(0,r.useEffect)(function(){var e=ej.current;!e||e.ondrop||o||(e.ondrop=ew,e.ondragend=ev,e.ondragover=eb,e.ondragenter=ex)},[ej.current]),(0,r.useEffect)(function(){j&&j.length>0&&ed.length!==j.length&&ep(j)},[j]),(0,r.useEffect)(function(){(null==eo?void 0:eo.event)&&(null==eo?void 0:eo.files)&&(ey(eo.event,eo.files),ea(null)),I&&(I(s?ed:em),w&&w(eL()))},[ed,eo]);var eD=es?G.palette.secondary.light:G.palette.primary.light;return r.createElement(r.Fragment,null,r.createElement(A.Z,et({sx:{p:1},elevation:0,ref:ej,variant:"outlined"},R),r.createElement(L.Z,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},r.createElement(l.Z,{sx:{flexGrow:1,fontSize:12}},t),(null==ed?void 0:ed.length)>0&&r.createElement(l.Z,{sx:{fontSize:12}},ed.length,N>0&&"/".concat(N)," file",(null==ed?void 0:ed.length)>1&&"s"," joined")),r.createElement(A.Z,et({elevation:0,sx:{p:1,transition:500,background:eD}},U),r.createElement(E.ZP,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},v&&r.createElement(E.ZP,et({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},k),r.createElement("img",{alt:c,src:a||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:eI.width,height:eI.height})),r.createElement(E.ZP,et({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:v?-4:0,sm:2}}},T),r.createElement(_,{smDown:!0},r.createElement(L.Z,{variant:"h5"},r.createElement("b",null,n))),r.createElement(_,{smUp:!0},r.createElement(L.Z,{variant:"h6"},r.createElement("b",null,n))),r.createElement(L.Z,{variant:"caption"},d,r.createElement(q.Z,{size:"small",color:"secondary",variant:"outlined",disabled:o,onClick:function(){var e;return null===(e=eh.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:G.palette.grey["50"],borderColor:G.palette.grey["50"],"&:hover":{borderColor:G.palette.grey["50"]}}},f),p),r.createElement("input",{type:"file",ref:eh,onChange:function(e){return ey(e)},multiple:u,accept:M,style:{display:"none"}})))),J&&r.createElement(V.Z,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return K(null)}},J),(null==ed?void 0:ed.length)>0&&r.createElement(r.Fragment,null,r.createElement(ei,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:z,maxHeight:P}},null==ed?void 0:ed.map(function(e,t){var n=(e.size/1024).toFixed(2)+" Kb";return e.size>1048576&&(n=(e.size/1048576).toFixed(2)+" Mb"),r.createElement(er,{file:e,size:n,index:t,disabled:o,key:"upload-file--".concat(t),handleRemoveFile:eN})})),r.createElement(L.Z,{component:"div",align:"right",sx:{mt:1}},r.createElement(q.Z,{size:"small",disabled:o,onClick:eN,ref:eM},Z||"Remove all")))))}eo.propTypes={getBase64:a().bool,maxUploadFiles:a().number,title:a().string,header:a().string,leftLabel:a().string,rightLabel:a().string,buttonLabel:a().string,multiFile:a().bool,disabled:a().bool,defaultFiles:a().array,maxFileSize:a().number,maxFilesContainerHeight:a().number,errorSizeMessage:a().string,imageSrc:a().string,imageSrcAlt:a().string,acceptedType:a().string,bannerProps:a().object,BannerProps:a().object,containerProps:a().object,ContainerProps:a().object,allowedExtensions:a().array,onError:a().func,onContextReady:a().func,onFilesChange:a().func,showPlaceholderImage:a().bool,LabelsGridProps:a().object,PlaceholderGridProps:a().object,placeholderImageDimension:a().object,PlaceholderImageDimension:a().object},eo.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}}},1272:function(e,t,n){"use strict";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function r(e){return null==e}n.d(t,{zD:function(){return eE}});var i={isNothing:r,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:r(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;nl&&(t=r-l+(o=" ... ").length),n-r>l&&(n=r+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function s(e,t){return i.repeat(" ",t-e.length)+e}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(e){return this.name+": "+o(this,e)};var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],o=[],a=-1;c=n.exec(e.buffer);)o.push(c.index),r.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c,u,d,p="",f=Math.min(e.line+t.linesAfter,o.length).toString().length,m=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)d=l(e.buffer,r[a-u],o[a-u],e.position-(r[a]-r[a-u]),m),p=i.repeat(" ",t.indent)+s((e.line-u+1).toString(),f)+" | "+d.str+"\n"+p;for(d=l(e.buffer,r[a],o[a],e.position,m),p+=i.repeat(" ",t.indent)+s((e.line+1).toString(),f)+" | "+d.str+"\n"+i.repeat("-",t.indent+f+3+d.pos)+"^\n",u=1;u<=t.linesAfter&&!(a+u>=o.length);u++)d=l(e.buffer,r[a+u],o[a+u],e.position-(r[a]-r[a+u]),m),p+=i.repeat(" ",t.indent)+s((e.line+u+1).toString(),f)+" | "+d.str+"\n";return p.replace(/\n$/,"")},u=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d=["scalar","sequence","mapping"],p=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===u.indexOf(t))throw new a('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===d.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function m(e){return this.extend(e)}m.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new a("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof p))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof p))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(m.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=f(r,"implicit"),r.compiledExplicit=f(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),I=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),y=/^[-+]?[0-9]+e/,N=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&I.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||i.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(e))return"-0.0";return n=e.toString(10),y.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),x=g.extend({implicit:[h,M,j,N]}),b=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),w=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),v=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==b.exec(e)||null!==w.exec(e))},construct:function(e){var t,n,r,i,o,a,l,s,c=0,u=null;if(null===(t=b.exec(e))&&(t=w.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),s=new Date(Date.UTC(n,r,i,o,a,l,c)),u&&s.setTime(s.getTime()-u),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),L=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",C=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=0,a=[];for(t=0;t>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|D.indexOf(r.charAt(t));return 0==(n=i%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,o=e.length;for(t=0;t>18&63]+D[i>>12&63]+D[i>>6&63]+D[63&i]),i=(i<<8)+e[t];return 0==(n=o%3)?r+=D[i>>18&63]+D[i>>12&63]+D[i>>6&63]+D[63&i]:2===n?r+=D[i>>10&63]+D[i>>4&63]+D[i<<2&63]+D[64]:1===n&&(r+=D[i>>2&63]+D[i<<4&63]+D[64]+D[64]),r}}),Z=Object.prototype.hasOwnProperty,T=Object.prototype.toString,k=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,a=[];for(t=0,n=e.length;t1&&(e.result+=i.repeat("\n",t-1))}function eu(e,t){var n,r,i=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),45===r&&H(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,el(e,!0,-1)&&e.lineIndent<=t){a.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,ed(e,t,3,!1,!0),a.push(e.result),el(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)ee(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(M&&(a=e.line,l=e.lineStart,s=e.position),ed(e,t,4,!0,i)&&(M?g=e.result:h=e.result),M||(eo(e,p,f,m,g,h,a,l,s),m=g=h=null),el(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==c)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===a?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ee(e,"repeat of an indentation width identifier"):(d=t+a-1,u=!0);else break;if(W(l)){do l=e.input.charCodeAt(++e.position);while(W(l));if(35===l)do l=e.input.charCodeAt(++e.position);while(!Q(l)&&0!==l)}for(;0!==l;){for(ea(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!u||e.lineIndentd&&(d=e.lineIndent),Q(l)){p++;continue}if(e.lineIndent0){for(i=a,o=0;i>0;i--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:ee(e,"expected hexadecimal character");e.result+=(c=o)<=65535?String.fromCharCode(c):String.fromCharCode((c-65536>>10)+55296,(c-65536&1023)+56320),e.position++}else ee(e,"unknown escape sequence");n=r=e.position}else Q(l)?(er(e,n,r,!0),ec(e,el(e,!1,t)),n=r=e.position):e.position===e.lineStart&&es(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}(e,f)?M=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!H(r)&&!$(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),P.call(e.anchorMap,n)||ee(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],el(e,!0,-1),!0}(e)?(M=!0,(null!==e.tag||null!==e.anchor)&&ee(e,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,l,s,c,u,d=e.kind,p=e.result;if(H(u=e.input.charCodeAt(e.position))||$(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(H(r=e.input.charCodeAt(e.position+1))||n&&$(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==u;){if(58===u){if(H(r=e.input.charCodeAt(e.position+1))||n&&$(r))break}else if(35===u){if(H(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&es(e)||n&&$(u))break;else if(Q(u)){if(l=e.line,s=e.lineStart,c=e.lineIndent,el(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=s,e.lineIndent=c;break}a&&(er(e,i,o,!1),ec(e,e.line-l),i=o=e.position,a=!1),W(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return er(e,i,o,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,f,1===n)&&(M=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(M=s&&eu(e,m))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ee(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c"),null!==e.result&&p.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||M}function ep(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new J(e,t),r=e.indexOf("\x00");for(-1!==r&&(n.position=r,ee(n,"null byte is not allowed in input")),n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===i);){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!H(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&ee(e,"directive name must not be less than one character in length");0!==i;){for(;W(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!Q(i));break}if(Q(i))break;for(t=e.position;0!==i&&!H(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&ea(e),P.call(en,n)?en[n](e,n,r):et(e,'unknown document directive "'+n+'"')}if(el(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,el(e,!0,-1)):a&&ee(e,"directives end mark is expected"),ed(e,e.lineIndent-1,4,!1,!0),el(e,!0,-1),e.checkLineBreaks&&F.test(e.input.slice(o,e.position))&&et(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&es(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,el(e,!0,-1));return}e.position=55296&&r<=56319&&t+1=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function eL(e){return/^\n* /.test(e)}function eD(e,t){var n=eL(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function eC(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eZ(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,l=0,s="";n=i.exec(e);)(l=n.index)-o>t&&(r=a>o?a:l,s+="\n"+e.slice(o,r),o=r+1),a=l;return s+="\n",e.length-o>t&&a>o?s+=e.slice(o,a)+"\n"+e.slice(a+1):s+=e.slice(o),s.slice(1)}function eT(e,t,n,r){var i,o,a,l="",s=e.tag;for(i=0,o=n.length;i tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function eS(e,t,n,r,o,l,s){e.tag=null,e.dump=n,ek(e,n,!1)||ek(e,n,!0);var c,u=em.call(e.dump),d=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var p,f,m,g="[object Object]"===u||"[object Array]"===u;if(g&&(m=-1!==(f=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||m||2!==e.indent&&t>0)&&(o=!1),m&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(g&&m&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),"[object Object]"===u)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,o,l,s,c,u,d="",p=e.tag,f=Object.keys(n);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(i=0,o=f.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=ey(e,t)),eS(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,d+=u));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,o),m&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,o,a,l,s="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eS(e,t,a,!1,!1)&&(l+=e.dump,s+=l));e.tag=c,e.dump="{"+s+"}"}(e,t,e.dump),m&&(e.dump="&ref_"+f+" "+e.dump));else if("[object Array]"===u)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?eT(e,t-1,e.dump,o):eT(e,t,e.dump,o),m&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,o,a="",l=e.tag;for(r=0,i=n.length;r=65536?u+=2:u++){if(!ex(d=ev(e,u)))return 5;M=M&&ew(d,p,l),p=d}else{for(u=0;u=65536?u+=2:u++){if(10===(d=ev(e,u)))f=!0,g&&(m=m||u-h-1>r&&" "!==e[h+1],h=u);else if(!ex(d))return 5;M=M&&ew(d,p,l),p=d}m=m||g&&u-h-1>r&&" "!==e[h+1]}return f||m?n>9&&eL(e)?5:a?2===o?5:2:m?4:3:!M||a||i(e)?2===o?5:2:1}(c,l||e.flowLevel>-1&&t>=e.flowLevel,e.indent,r,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+eD(c,e.indent)+eC(eI(function(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,a=(n=-1!==(n=e.indexOf("\n"))?n:e.length,o.lastIndex=n,eZ(e.slice(0,n),t)),l="\n"===e[0]||" "===e[0];i=o.exec(e);){var s=i[1],c=i[2];r=" "===c[0],a+=s+(l||r||""===c?"":"\n")+eZ(c,t),l=r}return a}(c,r),n));case 5:return'"'+function(e){for(var t,n="",r=0,o=0;o=65536?o+=2:o++)!(t=eh[r=ev(e,o)])&&ex(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||function(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+i.repeat("0",r-t.length)+t}(r);return n}(c)+'"';default:throw new a("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===u||e.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+u)}null!==e.tag&&"?"!==e.tag&&(p=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),p="!"===e.tag[0]?"!"+p:"tag:yaml.org,2002:"===p.slice(0,18)?"!!"+p.slice(18):"!<"+p+">",e.dump=p+" "+e.dump)}return!0}function eA(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var eE=ef.load;ef.loadAll,eA("safeLoad","load"),eA("safeLoadAll","loadAll"),eA("safeDump","dump")}}]);
\ No newline at end of file
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[113],{44287:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M6.24 5h11.52l.81.97H5.44zM5 19V8h14v11zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined")},50594:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},28304:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined")},19602:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var i=r(n(64938)),o=n(85893);t.Z=(0,i.default)((0,o.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline")},50480:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(74423),c=n(51233),u=n(15861),d=n(98216),p=n(90948),f=n(71657),m=n(1977),g=n(8027);function h(e){return(0,g.ZP)("MuiFormControlLabel",e)}let M=(0,m.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var j=n(15704),I=n(85893);let y=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],N=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,d.Z)(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,l.Z)(a,h,t)},x=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${M.label}`]:t.label},t.root,t[`labelPlacement${(0,d.Z)(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${M.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${M.label}`]:{[`&.${M.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),b=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${M.error}`]:{color:(e.vars||e).palette.error.main}}));var w=o.forwardRef(function(e,t){var n,l;let d=(0,f.Z)({props:e,name:"MuiFormControlLabel"}),{className:p,componentsProps:m={},control:g,disabled:h,disableTypography:M,label:w,labelPlacement:v="end",required:L,slotProps:D={}}=d,C=(0,r.Z)(d,y),Z=(0,s.Z)(),T=null!=(n=null!=h?h:g.props.disabled)?n:null==Z?void 0:Z.disabled,k=null!=L?L:g.props.required,S={disabled:T,required:k};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==d[e]&&(S[e]=d[e])});let A=(0,j.Z)({props:d,muiFormControl:Z,states:["error"]}),E=(0,i.Z)({},d,{disabled:T,labelPlacement:v,required:k,error:A.error}),O=N(E),z=null!=(l=D.typography)?l:m.typography,P=w;return null==P||P.type===u.Z||M||(P=(0,I.jsx)(u.Z,(0,i.Z)({component:"span"},z,{className:(0,a.Z)(O.label,null==z?void 0:z.className),children:P}))),(0,I.jsxs)(x,(0,i.Z)({className:(0,a.Z)(O.root,p),ownerState:E,ref:t},C,{children:[o.cloneElement(g,S),k?(0,I.jsxs)(c.Z,{display:"block",children:[P,(0,I.jsxs)(b,{ownerState:E,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}):P]}))})},27505:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(71657),c=n(90948);function u(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function d(e,t=!1){return e&&(u(e.value)&&""!==e.value||t&&u(e.defaultValue)&&""!==e.defaultValue)}var p=n(98216),f=n(56476),m=n(47167),g=n(1977),h=n(8027);function M(e){return(0,h.ZP)("MuiFormControl",e)}(0,g.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var j=n(85893);let I=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],y=e=>{let{classes:t,margin:n,fullWidth:r}=e,i={root:["root","none"!==n&&`margin${(0,p.Z)(n)}`,r&&"fullWidth"]};return(0,l.Z)(i,M,t)},N=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.root,t[`margin${(0,p.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,i.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}));var x=o.forwardRef(function(e,t){let n;let l=(0,s.Z)({props:e,name:"MuiFormControl"}),{children:c,className:u,color:p="primary",component:g="div",disabled:h=!1,error:M=!1,focused:x,fullWidth:b=!1,hiddenLabel:w=!1,margin:v="none",required:L=!1,size:D="medium",variant:C="outlined"}=l,Z=(0,r.Z)(l,I),T=(0,i.Z)({},l,{color:p,component:g,disabled:h,error:M,fullWidth:b,hiddenLabel:w,margin:v,required:L,size:D,variant:C}),k=y(T),[S,A]=o.useState(()=>{let e=!1;return c&&o.Children.forEach(c,t=>{if(!(0,f.Z)(t,["Input","Select"]))return;let n=(0,f.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[E,O]=o.useState(()=>{let e=!1;return c&&o.Children.forEach(c,t=>{(0,f.Z)(t,["Input","Select"])&&(d(t.props,!0)||d(t.props.inputProps,!0))&&(e=!0)}),e}),[z,P]=o.useState(!1);h&&z&&P(!1);let Y=void 0===x||h?z:x,F=o.useMemo(()=>({adornedStart:S,setAdornedStart:A,color:p,disabled:h,error:M,filled:E,focused:Y,fullWidth:b,hiddenLabel:w,size:D,onBlur:()=>{P(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{P(!0)},registerEffect:n,required:L,variant:C}),[S,p,h,M,E,Y,b,w,n,L,D,C]);return(0,j.jsx)(m.Z.Provider,{value:F,children:(0,j.jsx)(N,(0,i.Z)({as:g,ownerState:T,className:(0,a.Z)(k.root,u),ref:t},Z,{children:c}))})})},47167:function(e,t,n){"use strict";let r=n(67294).createContext(void 0);t.Z=r},15704:function(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,{Z:function(){return r}})},74423:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(47167);function o(){return r.useContext(i.Z)}},30990:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(15704),c=n(74423),u=n(98216),d=n(71657),p=n(90948),f=n(1977),m=n(8027);function g(e){return(0,m.ZP)("MuiFormLabel",e)}let h=(0,f.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var M=n(85893);let j=["children","className","color","component","disabled","error","filled","focused","required"],I=e=>{let{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,c={root:["root",`color${(0,u.Z)(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return(0,l.Z)(c,g,t)},y=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,i.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${h.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${h.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${h.error}`]:{color:(e.vars||e).palette.error.main}})),N=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${h.error}`]:{color:(e.vars||e).palette.error.main}}));var x=o.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:o,className:l,component:u="label"}=n,p=(0,r.Z)(n,j),f=(0,c.Z)(),m=(0,s.Z)({props:n,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),g=(0,i.Z)({},n,{color:m.color||"primary",component:u,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required}),h=I(g);return(0,M.jsxs)(y,(0,i.Z)({as:u,ownerState:g,className:(0,a.Z)(h.root,l),ref:t},p,{children:[o,m.required&&(0,M.jsxs)(N,{ownerState:g,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))})},72890:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(87462),i=n(63366),o=n(67294),a=n(90512),l=n(58510),s=n(90948),c=n(71657),u=n(1977),d=n(8027);function p(e){return(0,d.ZP)("MuiFormGroup",e)}(0,u.Z)("MuiFormGroup",["root","row","error"]);var f=n(74423),m=n(15704),g=n(85893);let h=["className","row"],M=e=>{let{classes:t,row:n,error:r}=e;return(0,l.Z)({root:["root",n&&"row",r&&"error"]},p,t)},j=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>(0,r.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),I=o.forwardRef(function(e,t){let n=(0,c.Z)({props:e,name:"MuiFormGroup"}),{className:o,row:l=!1}=n,s=(0,i.Z)(n,h),u=(0,f.Z)(),d=(0,m.Z)({props:n,muiFormControl:u,states:["error"]}),p=(0,r.Z)({},n,{row:l,error:d.error}),I=M(p);return(0,g.jsx)(j,(0,r.Z)({className:(0,a.Z)(I.root,o),ownerState:p,ref:t},s))});var y=n(60020),N=n(37388),x=n(80209),b=n(68046);let w=["actions","children","defaultValue","name","onChange","value"];var v=o.forwardRef(function(e,t){let{actions:n,children:a,defaultValue:l,name:s,onChange:c,value:u}=e,d=(0,i.Z)(e,w),p=o.useRef(null),[f,m]=(0,N.Z)({controlled:u,default:l,name:"RadioGroup"});o.useImperativeHandle(n,()=>({focus:()=>{let e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let h=(0,y.Z)(t,p),M=(0,b.Z)(s),j=o.useMemo(()=>({name:M,onChange(e){m(e.target.value),c&&c(e,e.target.value)},value:f}),[M,c,m,f]);return(0,g.jsx)(x.Z.Provider,{value:j,children:(0,g.jsx)(I,(0,r.Z)({role:"radiogroup",ref:h},d,{children:a}))})})},80209:function(e,t,n){"use strict";let r=n(67294).createContext(void 0);t.Z=r},36872:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(88111),c=n(21964),u=n(71657),d=n(88169),p=n(85893),f=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),m=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),g=n(90948);let h=(0,g.ZP)("span",{shouldForwardProp:g.FO})({position:"relative",display:"flex"}),M=(0,g.ZP)(f)({transform:"scale(1)"}),j=(0,g.ZP)(m)(({theme:e,ownerState:t})=>(0,i.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));var I=function(e){let{checked:t=!1,classes:n={},fontSize:r}=e,o=(0,i.Z)({},e,{checked:t});return(0,p.jsxs)(h,{className:n.root,ownerState:o,children:[(0,p.jsx)(M,{fontSize:r,className:n.background,ownerState:o}),(0,p.jsx)(j,{fontSize:r,className:n.dot,ownerState:o})]})},y=n(98216),N=n(68557),x=n(80209),b=n(1977),w=n(8027);function v(e){return(0,w.ZP)("MuiRadio",e)}let L=(0,b.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),D=["checked","checkedIcon","color","icon","name","onChange","size","className"],C=e=>{let{classes:t,color:n,size:r}=e,o={root:["root",`color${(0,y.Z)(n)}`,"medium"!==r&&`size${(0,y.Z)(r)}`]};return(0,i.Z)({},t,(0,l.Z)(o,v,t))},Z=(0,g.ZP)(c.Z,{shouldForwardProp:e=>(0,g.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${(0,y.Z)(n.size)}`],t[`color${(0,y.Z)(n.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${L.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${L.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),T=(0,p.jsx)(I,{checked:!0}),k=(0,p.jsx)(I,{});var S=o.forwardRef(function(e,t){var n,l,s,c;let d=(0,u.Z)({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:m=T,color:g="primary",icon:h=k,name:M,onChange:j,size:I="medium",className:y}=d,b=(0,r.Z)(d,D),w=(0,i.Z)({},d,{color:g,size:I}),v=C(w),L=o.useContext(x.Z),S=f,A=(0,N.Z)(j,L&&L.onChange),E=M;return L&&(void 0===S&&(s=L.value,S="object"==typeof(c=d.value)&&null!==c?s===c:String(s)===String(c)),void 0===E&&(E=L.name)),(0,p.jsx)(Z,(0,i.Z)({type:"radio",icon:o.cloneElement(h,{fontSize:null!=(n=k.props.fontSize)?n:I}),checkedIcon:o.cloneElement(m,{fontSize:null!=(l=T.props.fontSize)?l:I}),ownerState:w,classes:v,name:E,checked:S,onChange:A,ref:t,className:(0,a.Z)(v.root,y)},b))})},45843:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(88111),c=n(98216),u=n(21964),d=n(71657),p=n(90948),f=n(1977),m=n(8027);function g(e){return(0,m.ZP)("MuiSwitch",e)}let h=(0,f.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var M=n(85893);let j=["className","color","edge","size","sx"],I=e=>{let{classes:t,edge:n,size:r,color:o,checked:a,disabled:s}=e,u={root:["root",n&&`edge${(0,c.Z)(n)}`,`size${(0,c.Z)(r)}`],switchBase:["switchBase",`color${(0,c.Z)(o)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,l.Z)(u,g,t);return(0,i.Z)({},t,d)},y=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,c.Z)(n.edge)}`],t[`size${(0,c.Z)(n.size)}`]]}})(({ownerState:e})=>(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${h.thumb}`]:{width:16,height:16},[`& .${h.switchBase}`]:{padding:4,[`&.${h.checked}`]:{transform:"translateX(16px)"}}})),N=(0,p.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.switchBase,{[`& .${h.input}`]:t.input},"default"!==n.color&&t[`color${(0,c.Z)(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${h.checked}`]:{transform:"translateX(20px)"},[`&.${h.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${h.checked} + .${h.track}`]:{opacity:.5},[`&.${h.disabled} + .${h.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${"light"===e.palette.mode?.12:.2}`},[`& .${h.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>(0,i.Z)({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${h.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${"light"===e.palette.mode?(0,s.$n)(e.palette[t.color].main,.62):(0,s._j)(e.palette[t.color].main,.55)}`}},[`&.${h.checked} + .${h.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),x=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${"light"===e.palette.mode?.38:.3}`})),b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}));var w=o.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:c="medium",sx:u}=n,p=(0,r.Z)(n,j),f=(0,i.Z)({},n,{color:l,edge:s,size:c}),m=I(f),g=(0,M.jsx)(b,{className:m.thumb,ownerState:f});return(0,M.jsxs)(y,{className:(0,a.Z)(m.root,o),sx:u,ownerState:f,children:[(0,M.jsx)(N,(0,i.Z)({type:"checkbox",icon:g,checkedIcon:g,ref:t,ownerState:f},p,{classes:(0,i.Z)({},m,{root:m.switchBase})})),(0,M.jsx)(x,{className:m.track,ownerState:f})]})})},21964:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(63366),i=n(87462),o=n(67294),a=n(90512),l=n(58510),s=n(98216),c=n(90948),u=n(37388),d=n(74423),p=n(77162),f=n(1977),m=n(8027);function g(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var h=n(85893);let M=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],j=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${(0,s.Z)(i)}`],input:["input"]};return(0,l.Z)(o,g,t)},I=(0,c.ZP)(p.Z)(({ownerState:e})=>(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),y=(0,c.ZP)("input",{shouldForwardProp:c.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var N=o.forwardRef(function(e,t){let{autoFocus:n,checked:o,checkedIcon:l,className:s,defaultChecked:c,disabled:p,disableFocusRipple:f=!1,edge:m=!1,icon:g,id:N,inputProps:x,inputRef:b,name:w,onBlur:v,onChange:L,onFocus:D,readOnly:C,required:Z=!1,tabIndex:T,type:k,value:S}=e,A=(0,r.Z)(e,M),[E,O]=(0,u.Z)({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),z=(0,d.Z)(),P=p;z&&void 0===P&&(P=z.disabled);let Y="checkbox"===k||"radio"===k,F=(0,i.Z)({},e,{checked:E,disabled:P,disableFocusRipple:f,edge:m}),G=j(F);return(0,h.jsxs)(I,(0,i.Z)({component:"span",className:(0,a.Z)(G.root,s),centerRipple:!0,focusRipple:!f,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{D&&D(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{v&&v(e),z&&z.onBlur&&z.onBlur(e)},ownerState:F,ref:t},A,{children:[(0,h.jsx)(y,(0,i.Z)({autoFocus:n,checked:o,defaultChecked:c,className:G.input,disabled:P,id:Y?N:void 0,name:w,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;O(t),L&&L(e,t)},readOnly:C,ref:b,required:Z,ownerState:F,tabIndex:T,type:k},"checkbox"===k&&void 0===S?{}:{value:S},x)),E?l:g]}))})},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},40410:function(e,t,n){"use strict";n.d(t,{Z:function(){return eo}});var r=n(67294),i=n.t(r,2),o=n(45697),a=n.n(o),l=n(5616),s=n(63366),c=n(87462),u=n(90512),d=n(58510),p=n(90948),f=n(71657),m=n(88169),g=n(85893),h=(0,m.Z)((0,g.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),M=n(1977),j=n(8027);function I(e){return(0,j.ZP)("MuiAvatar",e)}(0,M.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);let y=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],N=e=>{let{classes:t,variant:n,colorDefault:r}=e;return(0,d.Z)({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},I,t)},x=(0,p.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,c.Z)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,c.Z)({backgroundColor:e.palette.grey[400]},e.applyDarkStyles({backgroundColor:e.palette.grey[600]})))}]})),b=(0,p.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),w=(0,p.ZP)(h,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),v=r.forwardRef(function(e,t){let n=(0,f.Z)({props:e,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:l="div",imgProps:d,sizes:p,src:m,srcSet:h,variant:M="circular"}=n,j=(0,s.Z)(n,y),I=null,v=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){let[o,a]=r.useState(!1);return r.useEffect(()=>{if(!n&&!i)return;a(!1);let r=!0,o=new Image;return o.onload=()=>{r&&a("loaded")},o.onerror=()=>{r&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,i&&(o.srcset=i),()=>{r=!1}},[e,t,n,i]),o}((0,c.Z)({},d,{src:m,srcSet:h})),L=m||h,D=L&&"error"!==v,C=(0,c.Z)({},n,{colorDefault:!D,component:l,variant:M}),Z=N(C);return I=D?(0,g.jsx)(b,(0,c.Z)({alt:i,srcSet:h,src:m,sizes:p,ownerState:C,className:Z.img},d)):null!=o?o:L&&i?i[0]:(0,g.jsx)(w,{ownerState:C,className:Z.fallback}),(0,g.jsx)(x,(0,c.Z)({as:l,ownerState:C,className:(0,u.Z)(Z.root,a),ref:t},j,{children:I}))});var L=n(15861),D=n(93946),C=n(34168),Z=n(20539),T=n(58974);let k=i.useSyncExternalStore;function S(e,t={}){let n=(0,C.Z)(),i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:a=i?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:s=!1}=(0,Z.Z)({name:"MuiUseMediaQuery",props:t,theme:n}),c="function"==typeof e?e(n):e;return(void 0!==k?function(e,t,n,i,o){let a=r.useCallback(()=>t,[t]),l=r.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==i){let{matches:t}=i(e);return()=>t}return a},[a,e,i,o,n]),[s,c]=r.useMemo(()=>{if(null===n)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[a,n,e]);return k(c,s,l)}:function(e,t,n,i,o){let[a,l]=r.useState(()=>o&&n?n(e).matches:i?i(e).matches:t);return(0,T.Z)(()=>{let t=!0;if(!n)return;let r=n(e),i=()=>{t&&l(r.matches)};return i(),r.addListener(i),()=>{t=!1,r.removeListener(i)}},[e,n]),a})(c=c.replace(/^@media( ?)/m,""),o,a,l,s)}var A=n(90629),E=n(86886),O=n(2734);let z=["initialWidth","width"],P=["xs","sm","md","lg","xl"],Y=(e,t,n=!0)=>n?P.indexOf(e)<=P.indexOf(t):P.indexOf(e)n?P.indexOf(t)<=P.indexOf(e):P.indexOf(t)t=>{let{withTheme:n=!1,noSSR:i=!1,initialWidth:o}=e;return function(e){let a=(0,O.Z)(),l=e.theme||a,u=(0,Z.Z)({theme:l,name:"MuiWithWidth",props:e}),{initialWidth:d,width:p}=u,f=(0,s.Z)(u,z),[m,h]=r.useState(!1);(0,T.Z)(()=>{h(!0)},[]);let M=l.breakpoints.keys.slice().reverse().reduce((e,t)=>{let n=S(l.breakpoints.up(t));return!e&&n?t:e},null),j=(0,c.Z)({width:p||(m||i?M:void 0)||d||o},n?{theme:l}:{},f);return void 0===j.width?null:(0,g.jsx)(t,(0,c.Z)({},j))}})()(function(e){let{children:t,only:n,width:i}=e,o=(0,O.Z)(),a=!0;if(n){if(Array.isArray(n)){for(let e=0;e{let{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:e,dir:t})=>"only"===t?`${t}${(0,U.Z)(e)}`:`${e}${(0,U.Z)(t)}`)]};return(0,d.Z)(r,R,t)},W=(0,p.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{let n={display:"none"};return(0,c.Z)({},t.breakpoints.map(({breakpoint:t,dir:r})=>"only"===r?{[e.breakpoints.only(t)]:n}:"up"===r?{[e.breakpoints.up(t)]:n}:{[e.breakpoints.down(t)]:n}).reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),{}))});var H=function(e){let{children:t,className:n,only:r}=e,i=(0,s.Z)(e,B),o=(0,O.Z)(),a=[];for(let e=0;e{a.push({breakpoint:e,dir:"only"})});let l=(0,c.Z)({},e,{breakpoints:a}),d=Q(l);return(0,g.jsx)(W,{className:(0,u.Z)(d.root,n),ownerState:l,children:t})};let $=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var _=function(e){let{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:i=!1,mdUp:o=!1,smDown:a=!1,smUp:l=!1,xlDown:u=!1,xlUp:d=!1,xsDown:p=!1,xsUp:f=!1}=e,m=(0,s.Z)(e,$);return"js"===t?(0,g.jsx)(G,(0,c.Z)({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:l,xlDown:u,xlUp:d,xsDown:p,xsUp:f},m)):(0,g.jsx)(H,(0,c.Z)({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:l,xlDown:u,xlUp:d,xsDown:p,xsUp:f},m))},q=n(69417),V=n(21737),X=n(50594),J=n(44287),K=n(19602),ee=n(28304),et=function(){return(et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.size>1048576*m){var a=D||"The size of files cannot exceed ".concat(m,"Mb");return K(a),i&&i(a)}if(C&&C.length>0&&!(-1!==C.findIndex(function(e){return e.toLowerCase()===o.toLowerCase()}))){var l="Extension .".concat(o," has been excluded");return K(l),i&&i(l)}s||(em.push(n),eg(em)),r.addEventListener("load",function(){ed.push({name:n.name,size:n.size,path:this.result,type:n.type,contentType:n.type,lastModified:n.lastModified,extension:null==o?void 0:o.toLowerCase()}),ep(en([],ed,!0))},!1),r.readAsDataURL(n)}(r);return e.target.value="",!0}catch(e){K(e.toString())}return!1},eN=function(e,t){if(K(null),eh.current&&(eh.current.value=""),"number"!=typeof t){ep([]),eg([]);return}if(t<0||t>ed.length-1)return console.error("item's index not found...");var n=et({},ed[t]);return null==ed||ed.splice(t,1),null==em||em.splice(t,1),ep(en([],ed,!0)),eg(en([],em,!0)),n},ex=(0,r.useCallback)(function(e){e.preventDefault(),ec(!0)},[]),eb=(0,r.useCallback)(function(e){e.stopPropagation(),e.preventDefault()},[]),ew=(0,r.useCallback)(function(e){var t;e.stopPropagation(),e.preventDefault(),ec(!1),ea({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})},[]),ev=(0,r.useCallback)(function(){ec(!1)},[]),eL=function(){return{addFile:ey,removeFile:eN,input:eh.current,files:s?ed:em}};(0,r.useEffect)(function(){eh.current&&w&&"function"==typeof w&&w(eL())},[eh.current]),(0,r.useEffect)(function(){var e=ej.current;!e||e.ondrop||o||(e.ondrop=ew,e.ondragend=ev,e.ondragover=eb,e.ondragenter=ex)},[ej.current]),(0,r.useEffect)(function(){j&&j.length>0&&ed.length!==j.length&&ep(j)},[j]),(0,r.useEffect)(function(){(null==eo?void 0:eo.event)&&(null==eo?void 0:eo.files)&&(ey(eo.event,eo.files),ea(null)),I&&(I(s?ed:em),w&&w(eL()))},[ed,eo]);var eD=es?G.palette.secondary.light:G.palette.primary.light;return r.createElement(r.Fragment,null,r.createElement(A.Z,et({sx:{p:1},elevation:0,ref:ej,variant:"outlined"},R),r.createElement(L.Z,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},r.createElement(l.Z,{sx:{flexGrow:1,fontSize:12}},t),(null==ed?void 0:ed.length)>0&&r.createElement(l.Z,{sx:{fontSize:12}},ed.length,N>0&&"/".concat(N)," file",(null==ed?void 0:ed.length)>1&&"s"," joined")),r.createElement(A.Z,et({elevation:0,sx:{p:1,transition:500,background:eD}},U),r.createElement(E.ZP,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},v&&r.createElement(E.ZP,et({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},k),r.createElement("img",{alt:c,src:a||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:eI.width,height:eI.height})),r.createElement(E.ZP,et({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:v?-4:0,sm:2}}},T),r.createElement(_,{smDown:!0},r.createElement(L.Z,{variant:"h5"},r.createElement("b",null,n))),r.createElement(_,{smUp:!0},r.createElement(L.Z,{variant:"h6"},r.createElement("b",null,n))),r.createElement(L.Z,{variant:"caption"},d,r.createElement(q.Z,{size:"small",color:"secondary",variant:"outlined",disabled:o,onClick:function(){var e;return null===(e=eh.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:G.palette.grey["50"],borderColor:G.palette.grey["50"],"&:hover":{borderColor:G.palette.grey["50"]}}},f),p),r.createElement("input",{type:"file",ref:eh,onChange:function(e){return ey(e)},multiple:u,accept:M,style:{display:"none"}})))),J&&r.createElement(V.Z,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return K(null)}},J),(null==ed?void 0:ed.length)>0&&r.createElement(r.Fragment,null,r.createElement(ei,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:z,maxHeight:P}},null==ed?void 0:ed.map(function(e,t){var n=(e.size/1024).toFixed(2)+" Kb";return e.size>1048576&&(n=(e.size/1048576).toFixed(2)+" Mb"),r.createElement(er,{file:e,size:n,index:t,disabled:o,key:"upload-file--".concat(t),handleRemoveFile:eN})})),r.createElement(L.Z,{component:"div",align:"right",sx:{mt:1}},r.createElement(q.Z,{size:"small",disabled:o,onClick:eN,ref:eM},Z||"Remove all")))))}eo.propTypes={getBase64:a().bool,maxUploadFiles:a().number,title:a().string,header:a().string,leftLabel:a().string,rightLabel:a().string,buttonLabel:a().string,multiFile:a().bool,disabled:a().bool,defaultFiles:a().array,maxFileSize:a().number,maxFilesContainerHeight:a().number,errorSizeMessage:a().string,imageSrc:a().string,imageSrcAlt:a().string,acceptedType:a().string,bannerProps:a().object,BannerProps:a().object,containerProps:a().object,ContainerProps:a().object,allowedExtensions:a().array,onError:a().func,onContextReady:a().func,onFilesChange:a().func,showPlaceholderImage:a().bool,LabelsGridProps:a().object,PlaceholderGridProps:a().object,placeholderImageDimension:a().object,PlaceholderImageDimension:a().object},eo.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}}},1272:function(e,t,n){"use strict";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function r(e){return null==e}n.d(t,{zD:function(){return eE}});var i={isNothing:r,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:r(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;nl&&(t=r-l+(o=" ... ").length),n-r>l&&(n=r+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function s(e,t){return i.repeat(" ",t-e.length)+e}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(e){return this.name+": "+o(this,e)};var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],o=[],a=-1;c=n.exec(e.buffer);)o.push(c.index),r.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c,u,d,p="",f=Math.min(e.line+t.linesAfter,o.length).toString().length,m=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)d=l(e.buffer,r[a-u],o[a-u],e.position-(r[a]-r[a-u]),m),p=i.repeat(" ",t.indent)+s((e.line-u+1).toString(),f)+" | "+d.str+"\n"+p;for(d=l(e.buffer,r[a],o[a],e.position,m),p+=i.repeat(" ",t.indent)+s((e.line+1).toString(),f)+" | "+d.str+"\n"+i.repeat("-",t.indent+f+3+d.pos)+"^\n",u=1;u<=t.linesAfter&&!(a+u>=o.length);u++)d=l(e.buffer,r[a+u],o[a+u],e.position-(r[a]-r[a+u]),m),p+=i.repeat(" ",t.indent)+s((e.line+u+1).toString(),f)+" | "+d.str+"\n";return p.replace(/\n$/,"")},u=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],d=["scalar","sequence","mapping"],p=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===u.indexOf(t))throw new a('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===d.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function m(e){return this.extend(e)}m.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new a("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof p))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof p))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(m.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=f(r,"implicit"),r.compiledExplicit=f(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),I=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),y=/^[-+]?[0-9]+e/,N=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&I.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||i.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(e))return"-0.0";return n=e.toString(10),y.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),x=g.extend({implicit:[h,M,j,N]}),b=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),w=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),v=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==b.exec(e)||null!==w.exec(e))},construct:function(e){var t,n,r,i,o,a,l,s,c=0,u=null;if(null===(t=b.exec(e))&&(t=w.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(u=-u)),s=new Date(Date.UTC(n,r,i,o,a,l,c)),u&&s.setTime(s.getTime()-u),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),L=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",C=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=0,a=[];for(t=0;t>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|D.indexOf(r.charAt(t));return 0==(n=i%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,o=e.length;for(t=0;t>18&63]+D[i>>12&63]+D[i>>6&63]+D[63&i]),i=(i<<8)+e[t];return 0==(n=o%3)?r+=D[i>>18&63]+D[i>>12&63]+D[i>>6&63]+D[63&i]:2===n?r+=D[i>>10&63]+D[i>>4&63]+D[i<<2&63]+D[64]:1===n&&(r+=D[i>>2&63]+D[i<<4&63]+D[64]+D[64]),r}}),Z=Object.prototype.hasOwnProperty,T=Object.prototype.toString,k=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,a=[];for(t=0,n=e.length;t1&&(e.result+=i.repeat("\n",t-1))}function eu(e,t){var n,r,i=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),45===r&&H(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,el(e,!0,-1)&&e.lineIndent<=t){a.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,ed(e,t,3,!1,!0),a.push(e.result),el(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)ee(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(M&&(a=e.line,l=e.lineStart,s=e.position),ed(e,t,4,!0,i)&&(M?g=e.result:h=e.result),M||(eo(e,p,f,m,g,h,a,l,s),m=g=h=null),el(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==c)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===a?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ee(e,"repeat of an indentation width identifier"):(d=t+a-1,u=!0);else break;if(W(l)){do l=e.input.charCodeAt(++e.position);while(W(l));if(35===l)do l=e.input.charCodeAt(++e.position);while(!Q(l)&&0!==l)}for(;0!==l;){for(ea(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!u||e.lineIndentd&&(d=e.lineIndent),Q(l)){p++;continue}if(e.lineIndent0){for(i=a,o=0;i>0;i--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:ee(e,"expected hexadecimal character");e.result+=(c=o)<=65535?String.fromCharCode(c):String.fromCharCode((c-65536>>10)+55296,(c-65536&1023)+56320),e.position++}else ee(e,"unknown escape sequence");n=r=e.position}else Q(l)?(er(e,n,r,!0),ec(e,el(e,!1,t)),n=r=e.position):e.position===e.lineStart&&es(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}(e,f)?M=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!H(r)&&!$(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),P.call(e.anchorMap,n)||ee(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],el(e,!0,-1),!0}(e)?(M=!0,(null!==e.tag||null!==e.anchor)&&ee(e,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,l,s,c,u,d=e.kind,p=e.result;if(H(u=e.input.charCodeAt(e.position))||$(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u||(63===u||45===u)&&(H(r=e.input.charCodeAt(e.position+1))||n&&$(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==u;){if(58===u){if(H(r=e.input.charCodeAt(e.position+1))||n&&$(r))break}else if(35===u){if(H(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&es(e)||n&&$(u))break;else if(Q(u)){if(l=e.line,s=e.lineStart,c=e.lineIndent,el(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=s,e.lineIndent=c;break}a&&(er(e,i,o,!1),ec(e,e.line-l),i=o=e.position,a=!1),W(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return er(e,i,o,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,f,1===n)&&(M=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(M=s&&eu(e,m))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ee(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c"),null!==e.result&&p.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||M}function ep(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new J(e,t),r=e.indexOf("\x00");for(-1!==r&&(n.position=r,ee(n,"null byte is not allowed in input")),n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===i);){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!H(i);)i=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&ee(e,"directive name must not be less than one character in length");0!==i;){for(;W(i);)i=e.input.charCodeAt(++e.position);if(35===i){do i=e.input.charCodeAt(++e.position);while(0!==i&&!Q(i));break}if(Q(i))break;for(t=e.position;0!==i&&!H(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&ea(e),P.call(en,n)?en[n](e,n,r):et(e,'unknown document directive "'+n+'"')}if(el(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,el(e,!0,-1)):a&&ee(e,"directives end mark is expected"),ed(e,e.lineIndent-1,4,!1,!0),el(e,!0,-1),e.checkLineBreaks&&F.test(e.input.slice(o,e.position))&&et(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&es(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,el(e,!0,-1));return}e.position=55296&&r<=56319&&t+1=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function eL(e){return/^\n* /.test(e)}function eD(e,t){var n=eL(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function eC(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eZ(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,l=0,s="";n=i.exec(e);)(l=n.index)-o>t&&(r=a>o?a:l,s+="\n"+e.slice(o,r),o=r+1),a=l;return s+="\n",e.length-o>t&&a>o?s+=e.slice(o,a)+"\n"+e.slice(a+1):s+=e.slice(o),s.slice(1)}function eT(e,t,n,r){var i,o,a,l="",s=e.tag;for(i=0,o=n.length;i tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function eS(e,t,n,r,o,l,s){e.tag=null,e.dump=n,ek(e,n,!1)||ek(e,n,!0);var c,u=em.call(e.dump),d=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var p,f,m,g="[object Object]"===u||"[object Array]"===u;if(g&&(m=-1!==(f=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||m||2!==e.indent&&t>0)&&(o=!1),m&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(g&&m&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),"[object Object]"===u)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,o,l,s,c,u,d="",p=e.tag,f=Object.keys(n);if(!0===e.sortKeys)f.sort();else if("function"==typeof e.sortKeys)f.sort(e.sortKeys);else if(e.sortKeys)throw new a("sortKeys must be a boolean or a function");for(i=0,o=f.length;i1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=ey(e,t)),eS(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,d+=u));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,o),m&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,o,a,l,s="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eS(e,t,a,!1,!1)&&(l+=e.dump,s+=l));e.tag=c,e.dump="{"+s+"}"}(e,t,e.dump),m&&(e.dump="&ref_"+f+" "+e.dump));else if("[object Array]"===u)r&&0!==e.dump.length?(e.noArrayIndent&&!s&&t>0?eT(e,t-1,e.dump,o):eT(e,t,e.dump,o),m&&(e.dump="&ref_"+f+e.dump)):(!function(e,t,n){var r,i,o,a="",l=e.tag;for(r=0,i=n.length;r=65536?u+=2:u++){if(!ex(d=ev(e,u)))return 5;M=M&&ew(d,p,l),p=d}else{for(u=0;u=65536?u+=2:u++){if(10===(d=ev(e,u)))f=!0,g&&(m=m||u-h-1>r&&" "!==e[h+1],h=u);else if(!ex(d))return 5;M=M&&ew(d,p,l),p=d}m=m||g&&u-h-1>r&&" "!==e[h+1]}return f||m?n>9&&eL(e)?5:a?2===o?5:2:m?4:3:!M||a||i(e)?2===o?5:2:1}(c,l||e.flowLevel>-1&&t>=e.flowLevel,e.indent,r,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+eD(c,e.indent)+eC(eI(function(e,t){for(var n,r,i,o=/(\n+)([^\n]*)/g,a=(n=-1!==(n=e.indexOf("\n"))?n:e.length,o.lastIndex=n,eZ(e.slice(0,n),t)),l="\n"===e[0]||" "===e[0];i=o.exec(e);){var s=i[1],c=i[2];r=" "===c[0],a+=s+(l||r||""===c?"":"\n")+eZ(c,t),l=r}return a}(c,r),n));case 5:return'"'+function(e){for(var t,n="",r=0,o=0;o=65536?o+=2:o++)!(t=eh[r=ev(e,o)])&&ex(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||function(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new a("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+i.repeat("0",r-t.length)+t}(r);return n}(c)+'"';default:throw new a("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===u||e.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+u)}null!==e.tag&&"?"!==e.tag&&(p=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),p="!"===e.tag[0]?"!"+p:"tag:yaml.org,2002:"===p.slice(0,18)?"!!"+p.slice(18):"!<"+p+">",e.dump=p+" "+e.dump)}return!0}function eA(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var eE=ef.load;ef.loadAll,eA("safeLoad","load"),eA("safeLoadAll","loadAll"),eA("safeDump","dump")}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/nextra-data-en-US.json b/_next/static/chunks/nextra-data-en-US.json
index 51865b49f..8af066d36 100644
--- a/_next/static/chunks/nextra-data-en-US.json
+++ b/_next/static/chunks/nextra-data-en-US.json
@@ -1 +1 @@
-{"/docs/core/TypedException":{"title":"Typedexception","data":{"outline#Outline":"export function TypedException(\n status: number | \"2XX\" | \"3XX\" | \"4XX\" | \"5XX\",\n description?: string,\n): MethodDecorator;\nException decorator only for swagger documents.TypedException is a decorator function describing HTTP exception and its type which could be occured in a controller method. For reference, this decorator function does not affect to the method's behavior, but affects to the swagger documents generation, or SDK functions when propagation mode being used.","how-to-use#How to use":"import { Controller } from \"@nestjs/common\";\nimport typia, { TypeGuardError } from \"typia\";\nimport {\n TypedBody,\n TypedException,\n TypedParam,\n TypedRoute,\n} from \"@nestia/core\";\nimport { IBbsArticle } from \"@api/lib/structures/IBbsArticle\";\nimport { IInternalServerError } from \"@api/lib/structures/IInternalServerError\";\nimport { INotFound } from \"@api/lib/structures/INotFound\";\nimport { IUnprocessibleEntity } from \"@api/lib/structures/IUnprocessibleEntity\";\n@Controller(\"exception\")\nexport class ExceptionController {\n @TypedRoute.Post(\":section/typed\")\n @TypedException(400, \"invalid request\")\n @TypedException(404, \"unable to find the matched section\")\n @TypedException(428)\n @TypedException(\"5XX\", \"internal server error\")\n public async typed(\n @TypedParam(\"section\") section: string,\n @TypedBody() input: IBbsArticle.IStore,\n ): Promise {\n section;\n input;\n return typia.random();\n }\n}\nJust call TypedException() function with target type and status code.If you want to add description, you can add it as second parameter.For reference, swagger allows to use special pattern like 2XX, 3XX, 4XX, 5XX for status code.","swagger-example#Swagger Example":"Here is an example of swagger documents utilizing the @TypedException() decorator.https://editor.swagger.io/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsamchon%2Fnestia%2Fmaster%2Ftest%2Ffeatures%2Fexception%2Fswagger.json"}},"/docs/core/TypedParam":{"title":"Typedparam","data":{"outline#Outline":"export function TypedParam(name: string): ParameterDecorator;\nType safe path parameter decorator.@TypedParam() is a decorator parsing path parameter.It's almost same with original @Param() function of NestJS, however, @TypedParam() is more type safe.As @TypedParam() can anlayze source code in the compilation level, it can specify parameter type by itself. Also, while NestJS cannot distinguish nullable type and consider every parameter value as a string type, @TypedParam() can do it. Furthermore, @TypedParam() can validate special types like \"uuid\" or \"date\".Let's read below example code, and see how @TypedParam() works.\n@TypedParam() is not essential for Swagger Documents or SDK Library building.Therefore, it is not a matter to use @TypedParam() or @Param() of the original NestJS.","how-to-use#How to use":"import { TypedParam } from \"@nestia/core\";\nimport { Controller, Get } from \"@nestjs/common\";\nimport { tags } from \"typia\";\n@Controller(\"parameters\")\nexport class ParametersController {\n @Get(\"uint32/:value\")\n public async uint32(\n @TypedParam(\"value\") value: (number & tags.Type<\"uint32\">) | null,\n ): Promise<(number & tags.Type<\"uint32\">) | null> {\n return value;\n }\n @Get(\"string/:value\")\n public async string(\n @TypedParam(\"value\") value: string\n ): Promise {\n return value;\n }\n @Get(\"uuid/:value\")\n public async uuid(\n @TypedParam(\"value\") value: string & tags.Format<\"uuid\">,\n ): Promise {\n return value;\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ParametersController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet ParametersController = class ParametersController {\n uint32(value) {\n return __awaiter(this, void 0, void 0, function* () {\n return value;\n });\n }\n string(value) {\n return __awaiter(this, void 0, void 0, function* () {\n return value;\n });\n }\n uuid(value) {\n return __awaiter(this, void 0, void 0, function* () {\n return value;\n });\n }\n};\nexports.ParametersController = ParametersController;\n__decorate(\n [\n (0, common_1.Get)(\"uint32/:value\"),\n __param(\n 0,\n (0, core_1.TypedParam)(\"value\", {\n name: '((number & Type<\"uint32\">) | null)',\n is: (input) => {\n return (\n null === input ||\n (\"number\" === typeof input &&\n Math.floor(input) === input &&\n 0 <= input &&\n input <= 4294967295)\n );\n },\n cast: (str) => (\"null\" === str ? null : Number(str)),\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n ParametersController.prototype,\n \"uint32\",\n null,\n);\n__decorate(\n [\n (0, common_1.Get)(\"string/:value\"),\n __param(\n 0,\n (0, core_1.TypedParam)(\"value\", {\n name: \"string\",\n is: (input) => {\n return \"string\" === typeof input;\n },\n cast: (str) => str,\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [String]),\n __metadata(\"design:returntype\", Promise),\n ],\n ParametersController.prototype,\n \"string\",\n null,\n);\n__decorate(\n [\n (0, common_1.Get)(\"uuid/:value\"),\n __param(\n 0,\n (0, core_1.TypedParam)(\"value\", {\n name: '(string & Format<\"uuid\">)',\n is: (input) => {\n return (\n \"string\" === typeof input &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input,\n )\n );\n },\n cast: (str) => str,\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n ParametersController.prototype,\n \"uuid\",\n null,\n);\nexports.ParametersController = ParametersController = __decorate(\n [(0, common_1.Controller)(\"parameters\")],\n ParametersController,\n);\nJust call @TypedParam() function on the path paremeter, that's all.If you want to special parameter type like \"uint32\" or \"uuid\", utilize type tags of typia.When wrong typed value comes, 400 bad request error would be thrown.","restriction#Restriction":"@TypedParam() allows only atomic type.\nboolean\nnumber\nstring\nbigint\nAlso, @TypedParam() allows nullable like number | null, but undefindable type is not.\nnumber | null is allowed\nstring | undefined is prohibited\nIf you violate above condition, and try to declare object or union type, compilation error would be occured:\nError on nestia.core.TypedParam(): only atomic type is allowed"}},"/docs/e2e/benchmark":{"title":"Benchmark","data":{"outline#Outline":"Benchmark your backend server with e2e test functions.If you've developed e2e test functions utilizing SDK library of @nestia/sdk, you can re-use those e2e test functions in the benchmark program supported by @nestia/e2e. The benchmark program will run these e2e test functions in parellel and randomly to measure the performance of your backend server.If you want to pre-exprience the benchmark program utliizng the e2e test functions of @nestia/sdk, visit below playground website. Also, here is the benchmark report example generated by the benchmark program of @nestia/e2e executed in the below playgroud link.\n💻 https://stackblitz.com/~/github.com/samchon/nestia-start\n? Number of requests to make 1024\n? Number of threads to use 4\n? Number of simultaneous requests to make 32\n████████████████████████████████████████ 100% | ETA: 0s | 3654/1024","main-program#Main Program":"import { DynamicBenchmarker } from \"@nestia/e2e\";\nimport cliProgress from \"cli-progress\";\nimport fs from \"fs\";\nimport os from \"os\";\nimport { IPointer } from \"tstl\";\nimport { MyBackend } from \"../../src/MyBackend\";\nimport { MyConfiguration } from \"../../src/MyConfiguration\";\nimport { MyGlobal } from \"../../src/MyGlobal\";\nimport { ArgumentParser } from \"../helpers/ArgumentParser\";\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n count: number;\n threads: number;\n simultaneous: number;\n}\nconst getOptions = () =>\n ArgumentParser.parse(async (command, prompt, action) => {\n // command.option(\"--mode \", \"target mode\");\n // command.option(\"--reset \", \"reset local DB or not\");\n command.option(\"--include \", \"include feature files\");\n command.option(\"--exclude \", \"exclude feature files\");\n command.option(\"--count \", \"number of requests to make\");\n command.option(\"--threads \", \"number of threads to use\");\n command.option(\n \"--simultaneous \",\n \"number of simultaneous requests to make\",\n );\n return action(async (options) => {\n // if (typeof options.reset === \"string\")\n // options.reset = options.reset === \"true\";\n // options.mode ??= await prompt.select(\"mode\")(\"Select mode\")([\n // \"LOCAL\",\n // \"DEV\",\n // \"REAL\",\n // ]);\n // options.reset ??= await prompt.boolean(\"reset\")(\"Reset local DB\");\n options.count = Number(\n options.count ??\n (await prompt.number(\"count\")(\"Number of requests to make\")),\n );\n options.threads = Number(\n options.threads ??\n (await prompt.number(\"threads\")(\"Number of threads to use\")),\n );\n options.simultaneous = Number(\n options.simultaneous ??\n (await prompt.number(\"simultaneous\")(\n \"Number of simultaneous requests to make\",\n )),\n );\n return options as IOptions;\n });\n });\nconst main = async (): Promise => {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n // DO BENCHMARK\n const prev: IPointer = { value: 0 };\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\n {},\n cliProgress.Presets.shades_classic,\n );\n bar.start(options.count, 0);\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\n servant: `${__dirname}/servant.js`,\n count: options.count,\n threads: options.threads,\n simultaneous: options.simultaneous,\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n progress: (value: number) => {\n if (value >= 100 + prev.value) {\n bar.update(value);\n prev.value = value;\n }\n },\n stdio: \"ignore\",\n });\n bar.stop();\n // DOCUMENTATION\n try {\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\n recursive: true,\n });\n } catch {}\n await fs.promises.writeFile(\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\n .cpus()[0]\n .model.trim()\n .split(\"\\\\\")\n .join(\"\")\n .split(\"/\")\n .join(\"\")}.md`,\n DynamicBenchmarker.markdown(report),\n \"utf8\",\n );\n // CLOSE\n await backend.close();\n};\nmain().catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\nimport { DynamicBenchmarker } from \"@nestia/e2e\";\nimport { MyConfiguration } from \"../../src/MyConfiguration\";\nDynamicBenchmarker.servant({\n connection: {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n },\n location: `${__dirname}/../features`,\n parameters: (connection) => [connection],\n prefix: \"test_api_\",\n}).catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\nTo compose the benchmark program of @nestia/e2e on your backend application, you have to create two executable TypeScript programs; the main program and the servant program.The main program is executed by user (npm run benchmark command in the playground project), and centralizes the benchmark progress. It creates multiple servant programs parallel, and aggregate the benchmark results from them. After the aggregation, it publishes the benchmark report with markdown format.The servant program is executed by the main program multiply in parallel, and actually runs the e2e test functions for benchmarking. Composing the servant program, you have to specify the directory where the e2e test functions are located. Also, composing the main program of benchmark, you also have to specify the file location of the servant program.If you want to see more benchmark program cases, visit below links:\nProject\tMain\tServant\tReport\tsamchon/nestia-start\tindex.ts\tservant.ts\tREPORT.md\tsamchon/backend\tindex.ts\tservant.ts\tREPORT.md","test-functions#Test Functions":"import { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_create(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const stored: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password: v4(),\n },\n );\n // READ THE DATA AGAIN\n const read: IBbsArticle = await api.functional.bbs.articles.at(\n connection,\n stored.section,\n stored.id,\n );\n TestValidator.equals(\"created\")(stored)(read);\n}\nimport { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_update(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const password: string = v4();\n const article: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password,\n },\n );\n // UPDATE WITH EXACT PASSWORD\n const content: IBbsArticle.ISnapshot =\n await api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password,\n },\n );\n article.snapshots.push(content);\n // TRY UPDATE WITH WRONG PASSWORD\n await TestValidator.error(\"update with wrong password\")(() =>\n api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(5)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password: v4(),\n },\n ),\n );\n}\nimport { ArrayUtil, RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nimport { IPage } from \"@ORGANIZATION/PROJECT-api/lib/structures/common/IPage\";\nexport async function test_api_bbs_article_index_search(\n connection: api.IConnection,\n): Promise {\n // GENERATE 100 ARTICLES\n const section: string = \"general\";\n const articles: IBbsArticle[] = await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(4)(),\n body: RandomGenerator.content(3)()(),\n format: \"txt\",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n // GET ENTIRE DATA\n const total: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n sort: [\"-created_at\"],\n });\n // PREPARE SEARCH FUNCTION\n const search = TestValidator.search(\"BbsArticleProvider.index()\")(\n async (input: IBbsArticle.IRequest.ISearch) => {\n const page: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n search: input,\n sort: [\"-created_at\"],\n });\n return page.data;\n },\n )(total.data, 10);\n // SEARCH TITLE\n await search({\n fields: [\"title\"],\n values: (article) => [article.title],\n request: ([title]) => ({ title }),\n filter: (article, [title]) => article.title.includes(title),\n });\n // SEARCH WRITER\n await search({\n fields: [\"writer\"],\n values: (article) => [article.writer],\n request: ([writer]) => ({ writer }),\n filter: (article, [writer]) => article.writer.includes(writer),\n });\n // SEARCH BOTH OF THEM\n await search({\n fields: [\"title\", \"writer\"],\n values: (article) => [article.title, article.writer],\n request: ([title, writer]) => ({ title, writer }),\n filter: (article, [title, writer]) =>\n article.title.includes(title) && article.writer.includes(writer),\n });\n}\nDeveloping e2e test functions are very easy. Just make e2e based test function utilizing @nestia/sdk generated SDK library, and exports the function with test_ prefixed name (If you've configured another prefix property in the benchmark main program, just follow the configuration).Also, make the function to have parameter(s) configured in the servant program of the benchmark. As above test functions are examples of playground project that has configured to have only one connection parameter, All of them have the only one parameter connection.After composing these e2e test functions, just execute the benchmark main program. In the playground project, it can be exeucted by npm run benchmark command. The benchmark program will run these e2e test functions in parallel and randomly, and measure the performance of your backend server.\ngit clone https://github.com/samchon/nestia-start\ncd nestia-start\nnpm install\nnpm run build:test\nnpm run benchmark"}},"/docs/e2e/development":{"title":"Development","data":{"outline#Outline":"Test your backend server with e2e test functions.If you've succeded to generate SDK library by @nestia/sdk, you can utilize the SDK library to implement e2e test functions. As the SDK library ensures types safety for remote API calls, you can develop much more efficient and safer test program than unit testing case.If you want to pre-exprience the test program utliizng the e2e test functions of @nestia/sdk, visit below playground website.💻 https://stackblitz.com/~/github.com/samchon/nestia-start\n- test_api_bbs_article_at: 149 ms\n- test_api_bbs_article_create: 30 ms\n- test_api_bbs_article_index_search: 1,312 ms\n- test_api_bbs_article_index_sort: 1,110 ms\n- test_api_bbs_article_update: 28 m","main-program#Main Program":"import { DynamicExecutor } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api\";\nimport { MyBackend } from \"../src/MyBackend\";\nimport { MyConfiguration } from \"../src/MyConfiguration\";\nimport { MyGlobal } from \"../src/MyGlobal\";\nimport { ArgumentParser } from \"./helpers/ArgumentParser\";\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n}\nconst getOptions = () =>\n ArgumentParser.parse(async (command, _prompt, action) => {\n // command.option(\"--mode \", \"target mode\");\n // command.option(\"--reset \", \"reset local DB or not\");\n command.option(\"--include \", \"include feature files\");\n command.option(\"--exclude \", \"exclude feature files\");\n return action(async (options) => {\n // if (typeof options.reset === \"string\")\n // options.reset = options.reset === \"true\";\n // options.mode ??= await prompt.select(\"mode\")(\"Select mode\")([\n // \"LOCAL\",\n // \"DEV\",\n // \"REAL\",\n // ]);\n // options.reset ??= await prompt.boolean(\"reset\")(\"Reset local DB\");\n return options as IOptions;\n });\n });\nasync function main(): Promise {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n //----\n // CLINET CONNECTOR\n //----\n // DO TEST\n const connection: api.IConnection = {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n };\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: \"test\",\n parameters: () => [{ ...connection }],\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n })(__dirname + \"/features\");\n await backend.close();\n const failures: DynamicExecutor.IReport.IExecution[] =\n report.executions.filter((exec) => exec.error !== null);\n if (failures.length === 0) {\n console.log(\"Success\");\n console.log(\"Elapsed time\", report.time.toLocaleString(), `ms`);\n } else {\n for (const f of failures) console.log(f.error);\n process.exit(-1);\n }\n console.log(\n [\n `All: #${report.executions.length}`,\n `Success: #${report.executions.length - failures.length}`,\n `Failed: #${failures.length}`,\n ].join(\"\\n\"),\n );\n}\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\nTo compose the test program of @nestia/e2e on your backend application, you have to create one executable TypeScript program.The main program is executed by user (npm run benchmark command in the playground project), and it runs every (or some filtered) e2e test functions located in the target directory. In above case, test/features is the directory collecting e2e test functions.If you want to see more test program cases, visit below links:\nsamchon/nestia-start\nsamchon/backend","test-functions#Test Functions":"import { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_create(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const stored: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password: v4(),\n },\n );\n // READ THE DATA AGAIN\n const read: IBbsArticle = await api.functional.bbs.articles.at(\n connection,\n stored.section,\n stored.id,\n );\n TestValidator.equals(\"created\")(stored)(read);\n}\nimport { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_update(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const password: string = v4();\n const article: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password,\n },\n );\n // UPDATE WITH EXACT PASSWORD\n const content: IBbsArticle.ISnapshot =\n await api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password,\n },\n );\n article.snapshots.push(content);\n // TRY UPDATE WITH WRONG PASSWORD\n await TestValidator.error(\"update with wrong password\")(() =>\n api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(5)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password: v4(),\n },\n ),\n );\n}\nimport { ArrayUtil, RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nimport { IPage } from \"@ORGANIZATION/PROJECT-api/lib/structures/common/IPage\";\nexport async function test_api_bbs_article_index_search(\n connection: api.IConnection,\n): Promise {\n // GENERATE 100 ARTICLES\n const section: string = \"general\";\n const articles: IBbsArticle[] = await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(4)(),\n body: RandomGenerator.content(3)()(),\n format: \"txt\",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n // GET ENTIRE DATA\n const total: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n sort: [\"-created_at\"],\n });\n // PREPARE SEARCH FUNCTION\n const search = TestValidator.search(\"BbsArticleProvider.index()\")(\n async (input: IBbsArticle.IRequest.ISearch) => {\n const page: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n search: input,\n sort: [\"-created_at\"],\n });\n return page.data;\n },\n )(total.data, 10);\n // SEARCH TITLE\n await search({\n fields: [\"title\"],\n values: (article) => [article.title],\n request: ([title]) => ({ title }),\n filter: (article, [title]) => article.title.includes(title),\n });\n // SEARCH WRITER\n await search({\n fields: [\"writer\"],\n values: (article) => [article.writer],\n request: ([writer]) => ({ writer }),\n filter: (article, [writer]) => article.writer.includes(writer),\n });\n // SEARCH BOTH OF THEM\n await search({\n fields: [\"title\", \"writer\"],\n values: (article) => [article.title, article.writer],\n request: ([title, writer]) => ({ title, writer }),\n filter: (article, [title, writer]) =>\n article.title.includes(title) && article.writer.includes(writer),\n });\n}\nDeveloping e2e test functions are very easy. Just make e2e based test function utilizing @nestia/sdk generated SDK library, and exports the function with test_ prefixed name (If you've configured another prefix property in the test main program, just follow the configuration).Also, make the function to have parameter(s) configured in the servant program of the benchmark. As above test functions are examples of playground project that has configured to have only one connection parameter, All of them have the only one parameter connection.After composing these e2e test functions, just execute the test main program. In the playground project, it can be exeucted by npm run test command. The test program will run these e2e test functions, and report if some bugs be occured.\ngit clone https://github.com/samchon/nestia-start\ncd nestia-start\nnpm install\nnpm run build:test\nnpm run test"}},"/docs/editor":{"title":"Editor","data":{"typescript-swagger-editor#TypeScript Swagger Editor":"Put your swagger.json file, then \"TypeScript Swagger Editor\" be opened.\n\"TypeScript Swagger Editor\" is a web-based TypeScript editor (of StackBlitz) for Swagger API specifications, with SDK (Software Development Kit) library generated by @nestia/migrate. With the cloud \"TypeScript Swagger Editor\", you can easily test the backend API with TypeScript code, and it is much convenient than the traditional way of using Swagger UI, due to type checking and auto-completion.Also, \"TypeScript Swagger Editor\" provides Mockup Simulator. With the simulator, you can start the frontend (or client) development even when the backend API is not ready yet. Furthermore, \"TypeScript Swagger Editor\" supports automatic e2e (end-to-end) test functions' generation, so that you can easily validate the API with the generated test code.Here are the some example projects generated by \"TypeScript Swagger Editor\". Traveling those example projects, you may understand how to utilize the \"TypeScript Swagger Editor\". Let's start the type safe API interaction development with \"TypeScript Swagger Editor\"!","how-to-use-in-local#How to use in local":"npx @nestia/migrate\n? Migration mode (Use arrow keys):\n NestJS\n > SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true\nRelated document: Nestia > Guide Documents > Migration from Swagger\nRun npx @nestia/migrate command in your terminal. The @nestia/migrate program will inquiry you something. After that, you can generate the SDK library in your local machine, what you've seen in the \"TypeScript Swagger Editor\".For reference, if your backend application utilizes nestia (NestJS), you don't need to build the SDK (Software Development Kit) library by converting from the Swagger Documents. The nestia will automatically generate the much advanced SDK library, just by analyzing your backend application's source code.","roadmap#Roadmap":"Currently, \"TypeScript Swagger Editor\" is utilizing the StackBlitz as the web-based TypeScript editor.However, if many developers agree with the usefulness of the SDK and are interested in \"TypeScript Swagger Editor\", I am planning to develop a new standalone web application called @nestia/editor. It will take advantages of both \"Swagger-UI\" and \"TypeScript Swagger Editor\", and provide more convenient features for the API interaction development.I don't know how popular \"TypeScript Swagger Editor\" would be at this stage, but I hope that I can proceed with the @nestia/editor project as I have created something that front (client) developers desperately need.Let's nestia together."}},"/docs":{"title":"Index","data":{"outline#Outline":"Nestia is a set of helper libraries for NestJS, supporting below features:\n@nestia/core:\nSuper-fast/easy decorators\nAdvanced WebSocket routes\n@nestia/sdk:\nSwagger generator evolved than ever\nSDK library generator for clients\nMockup Simulator for client developers\nAutomatic E2E test functions generator\n@nestia/e2e\nTest program utilizing e2e test functions\nBenchmark program using e2e test functions\n@nestia/migrate: OpenAPI generator from Swagger to NestJS/SDK\n@nestia/editor: Swagger-UI with Online TypeScript Editor\nnestia: Just CLI (command line interface) tool\nOnly one line required, with pure TypeScript type\nEnhance performance 30x up\nRuntime validator is 20,000x faster than class-validator\nJSON serialization is 200x faster than class-transformer\nSoftware Development Kit\nCollection of typed fetch functions with DTO structures like tRPC\nMockup simulator means embedded backend simulator in the SDK\nsimilar with msw, but fully automated\nLeft is NestJS server code, and right is client (frontend) code utilizing SDK","sponsors#Sponsors":"Thanks for your support.Your donation would encourage nestia development."}},"/docs/migrate":{"title":"Migration from Swagger","data":{"outline#Outline":"npx @nestia/migrate\n@nestia/migrate converts swagger.json file to:\nNestJS Project\nStandalone SDK Library\nStandalone Mockup Simulator\nWhen you run npx @nestia/migrate command, @nestia/migrate will analyze your swagger.json file, and generate a NestJS project into the output direcory. If you're considering to migrate your backend project to NestJS, @nestia/migrate will be a good starting point.Of course, even if you're not considering to adapt NestJS, you can generate standalone SDK library and Mockup Simulator from the swagger.json file instead. Just run the npx @nestia/migrate command and build the SDK library and Mockup Simulator, then frontend (client) developers may get satisfied.\nLeft is NestJS server code, and right is client (frontend) code utilizing SDK","arguments#Arguments":"# GRAMMER\nnpx @nestia/migrate \n --mode [nest|sdk] \n --input [input] \n --output [output] \n --simulate [true|false]\n --e2e [true|false]\n# EXAMPLES\nnpx @nestia/migrate --mode nest --input swagger.json --output directory --simulate false --e2e false\nnpx @nestia/migrate --mode sdk --input swagger.json --output directory --simulate true --e2e true\nYou can specify migration options like above.However, don't worry anything. If you omit something, prompt inquiries will help you.\nnpx @nestia/migrate\n? Migration mode (Use arrow keys):\n > NestJS\n SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true","cloud-editor#Cloud Editor":"You can test @nestia/migrate on the web browser.Visit TypeScript Swagger Editor and upload your swagger.json file.Then, you can test the migrated NestJS Project, SDK library and Mockup Simulator in the web browser.\nPut your swagger.json file, then \"TypeScript Swagger Editor\" be opened."}},"/":{"title":"Index","data":{"key-features#Key Features":"","sponsors#Sponsors":"Thanks for your support.Your donation would encourage nestia development."}},"/playground":{"title":"Index","data":{}},"/docs/core/TypedBody":{"title":"Typedbody","data":{"outline#Outline":"export function TypedBody(): ParameterDecorator;\nRequest body decorator 20,000x faster, even easy to use.@TypedBody() is a decorator function parsing application/json typed request body, and validates the request body value type through typia.assert() function. If the request body is not following the promised type, 400 bad request error would be thrown.It is almost same with original @Body() function of NestJS, however, 20,000x faster.Also, @TypedBody() is much more easier to use than class-validator, because it can use pure TypeScript type. If you can't understand the word \"pure TypeScript type\", then move to below #How to use section and read the IBbsArticle.IUpdate interface type. You may understand what it means.\nIf you want other Content-Type, use one of below:\napplication/x-www-form-urlencoded: @TypedQuery.Body().\nmultipart/form-data: @TypedFormData.Body()\n@TypedBody() is not essential for Swagger Documents or SDK Library building.Therefore, it is not a matter to use @TypedBody() or @Body() of the original NestJS.","how-to-use#How to use":"import { tags } from \"typia\";\nexport interface IBbsArticle extends IBbsArticle.IStore {\n id: string & tags.Format<\"uuid\">;\n created_at: string & tags.Format<\"date-time\">;\n}\nexport namespace IBbsArticle {\n export interface IStore {\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n files: IAttachmentFile[];\n }\n}\nimport { tags } from \"typia\";\nexport interface IAttachmentFile {\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\n url: string & tags.Format<\"url\">;\n}\nimport { TypedBody, TypedRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { tags } from \"typia\";\nimport { IBbsArticle } from \"./IBbsArticle\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedRoute.Post()\n public async store(\n @TypedBody() input: IBbsArticle.IStore,\n ): Promise {\n return {\n ...input,\n id: \"2b5e21d8-0e44-4482-bd3e-4540dee7f3d6\",\n created_at: \"2023-04-23T12:04:54.168Z\",\n };\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n store(input) {\n return __awaiter(this, void 0, void 0, function* () {\n return Object.assign(Object.assign({}, input), {\n id: \"2b5e21d8-0e44-4482-bd3e-4540dee7f3d6\",\n created_at: \"2023-04-23T12:04:54.168Z\",\n });\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedRoute.Post({\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n \"string\" === typeof input.id &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime()) &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n Array.isArray(input.files) &&\n input.files.every(\n (elem) =>\n \"object\" === typeof elem && null !== elem && $io1(elem),\n );\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedRoute.Post.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.id &&\n (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: 'string & Format<\"uuid\">',\n value: input.id,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: '(string & Format<\"uuid\">)',\n value: input.id,\n })) &&\n ((\"string\" === typeof input.created_at &&\n (!isNaN(new Date(input.created_at).getTime()) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: 'string & Format<\"date-time\">',\n value: input.created_at,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: '(string & Format<\"date-time\">)',\n value: input.created_at,\n })) &&\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n (((Array.isArray(input.files) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n input.files.every(\n (elem, _index1) =>\n (((\"object\" === typeof elem && null !== elem) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n })) &&\n $ao1(\n elem,\n _path + \".files[\" + _index1 + \"]\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n }));\n const $ao1 = (input, _path, _exceptionable = true) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n (1 <= input.name.length ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MinLength<1>\",\n value: input.name,\n })) &&\n (input.name.length <= 255 ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MaxLength<255>\",\n value: input.name,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected:\n \"((string & MinLength<1> & MaxLength<255>) | null)\",\n value: input.name,\n })) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n (1 <= input.extension.length ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MinLength<1>\",\n value: input.extension,\n })) &&\n (input.extension.length <= 8 ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MaxLength<8>\",\n value: input.extension,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"((string & MinLength<1> & MaxLength<8>) | null)\",\n value: input.extension,\n })) &&\n ((\"string\" === typeof input.url &&\n (/^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: 'string & Format<\"url\">',\n value: input.url,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: '(string & Format<\"url\">)',\n value: input.url,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n );\n const $string = core_1.TypedRoute.Post.string;\n const $so0 = (input) =>\n `{\"id\":${$string(input.id)},\"created_at\":${$string(\n input.created_at,\n )},\"title\":${$string(input.title)},\"body\":${$string(\n input.body,\n )},\"files\":${`[${input.files\n .map((elem) => $so1(elem))\n .join(\",\")}]`}}`;\n const $so1 = (input) =>\n `{\"name\":${\n null !== input.name ? $string(input.name) : \"null\"\n },\"extension\":${\n null !== input.extension ? $string(input.extension) : \"null\"\n },\"url\":${$string(input.url)}}`;\n return $so0(input);\n };\n return stringify(assert(input));\n },\n }),\n __param(\n 0,\n (0, core_1.TypedBody)({\n type: \"assert\",\n assert: (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n Array.isArray(input.files) &&\n input.files.every(\n (elem) =>\n \"object\" === typeof elem && null !== elem && $io1(elem),\n );\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedBody.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n (((Array.isArray(input.files) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n input.files.every(\n (elem, _index1) =>\n (((\"object\" === typeof elem && null !== elem) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n })) &&\n $ao1(\n elem,\n _path + \".files[\" + _index1 + \"]\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n }));\n const $ao1 = (input, _path, _exceptionable = true) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n (1 <= input.name.length ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MinLength<1>\",\n value: input.name,\n })) &&\n (input.name.length <= 255 ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MaxLength<255>\",\n value: input.name,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected:\n \"((string & MinLength<1> & MaxLength<255>) | null)\",\n value: input.name,\n })) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n (1 <= input.extension.length ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MinLength<1>\",\n value: input.extension,\n })) &&\n (input.extension.length <= 8 ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MaxLength<8>\",\n value: input.extension,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"((string & MinLength<1> & MaxLength<8>) | null)\",\n value: input.extension,\n })) &&\n ((\"string\" === typeof input.url &&\n (/^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: 'string & Format<\"url\">',\n value: input.url,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: '(string & Format<\"url\">)',\n value: input.url,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.IStore\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.IStore\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n },\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"store\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);\nJust call @TypedBody() function on the request body parameter, that's all.Nestia will analyze your type (IBbsArticle.IUpdate), and writes optimal code for the target type, in the compilation level. If you click the \"Complied JavaScript File\" tab of above, you can see the optimal validation code.Such optimization is called AOT (Ahead of Time) compilation, and it is the secret of @TypedBody.","special-tags#Special Tags":"You can enhance validation logic, of @TypedBody(), through special tags.You know what? @TypedBody() utilizes typia.assert() function for request body data validation, and the typia.assert() function supports additional type checking logics through type and comment tags. For reference, \"Type Tag\" means a intersection type with atomic type and special tag type of typia like number & tags.Type<\"uint32\">, and \"Comment Tag\" means a comment starting from @ symbol following @${name} ${value} format.With those type and comment tags, you can add additional validation logics. If you want to add a custom validation logic, you also can do it. Read below Guide Docments of typia, and see the example code. You may understand how to utilize such type and comment tags, in a few minutes.\ntypia > Validators > Custom Tags\nOutline\nType Tags\nComment Tags\nCustomization\nimport typia, { tags } from \"typia\";\nexport const checkSpecialTag = typia.createIs();\ninterface SpecialTag {\n int32: number & tags.Type<\"int32\">;\n range?: number & tags.ExclusiveMinimum<19> & tags.Maximum<100>;\n minLength: string & tags.MinLength<3>;\n pattern: string & tags.Pattern<\"^[a-z]+$\">;\n date: null | (string & tags.Format<\"date\">);\n ip: string & (tags.Format<\"ipv4\"> | tags.Format<\"ipv6\">);\n uuids: Array> &\n tags.MinItems<3> &\n tags.MaxItems<100>;\n}\n\"use strict\";\nvar __importDefault =\n (this && this.__importDefault) ||\n function (mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkSpecialTag = void 0;\nconst typia_1 = __importDefault(require(\"typia\"));\nconst checkSpecialTag = (input) => {\n const $io0 = (input) =>\n \"number\" === typeof input.int32 &&\n Math.floor(input.int32) === input.int32 &&\n -2147483648 <= input.int32 &&\n input.int32 <= 2147483647 &&\n (undefined === input.range ||\n (\"number\" === typeof input.range &&\n 19 < input.range &&\n input.range <= 100)) &&\n \"string\" === typeof input.minLength &&\n 3 <= input.minLength.length &&\n \"string\" === typeof input.pattern &&\n /^[a-z]+$/.test(input.pattern) &&\n (null === input.date ||\n (\"string\" === typeof input.date &&\n /^(d{4})-(d{2})-(d{2})$/.test(input.date))) &&\n \"string\" === typeof input.ip &&\n (/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(\n input.ip,\n ) ||\n /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(\n input.ip,\n )) &&\n Array.isArray(input.uuids) &&\n 3 <= input.uuids.length &&\n input.uuids.length <= 100 &&\n input.uuids.every(\n (elem) =>\n \"string\" === typeof elem &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n elem,\n ),\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n};\nexports.checkSpecialTag = checkSpecialTag;","configuration#Configuration":"{\n \"strict\": true,\n \"strictNullChecks\": true,\n \"compilerOptions\": {\n \"plugins\": [\n { \"transform\": \"typia/lib/transform\" },\n { \n \"transform\": \"@nestia/core/lib/transform\",\n \"validate\": \"valiateEquals\",\n \"stringify\": \"assert\", \n },\n ],\n },\n}\nChange type validation function to other one.If you configure validate property of plugin defined in the tsconfig.json file, you can change the @TypedBody() to use another validation function instead of using the default typia.assert function. For example, if you want to use typia.validateEquals() function instead, then set the validate property to validateEquals.Below is the list of available validation functions.\nis or equals: check validation only, and do not reveal the reason why\nassert or assertEquals: find the 1st type error with reason\nvalidate or validateEquals: find every type errors with detailed reasons\nassertPrune or validatePrune: prune extra properties with type checking\nassertClone or validateClone: deep clone with type checking for faster pruning","encryptedbody#EncryptedBody":"Encrypted request body decorator function.@EncryptedBody() is a decorator function similar with @TypedBody(), but it encrypts the request body through AES-128/256-CBC algorithm like below. Therefore, it would be slower than @TypedBody(), but it guarantees the security of request body data.\nAES-128/256\nCBC mode\nPKCS #5 Padding\nBase64 Encoding\nFor reference, such encryption spec is not supported in the Swagger-UI. Instead, SDK (Software Development Kit) generated by @nestia/sdk supports it. Thus, you have to build and distribute the SDK library to the client developers when using such encryption decorators.","benchmark#Benchmark":"Super-fast and super-safe.Nestia utilizes typia, and NestJS uses class-validator. One thing amazing is, typia is maximum 20,000x faster than class-validator of NestJS. Color of class-transformer is skyblue, and can you find the skyblue color in the below benchmark graph? It may hard to find because class-validator is extremely slow.\nMeasured on AMD R9-7940HS, Rog Flow X13\nFurthermore, while other libraries can't validate complicate union types, typia can validate every TypeScript types. However, in the class-validator case, it always be failed when any type of complicate comes. I can't understand why NestJS has adopted such slow and unstable library.Moreover, only typia can utilize pure TypeScript type, without any extra schema definition. Beside, all of other libraries require extra and duplicated schema definition, different with pure TypeScript type. Nestia is using such wonderful, super-fast and super-fast typia library.\nTypeBox requires TypeBox schema\najv requires JSON schema definition\nio-ts requires io-ts schema\nzod requires zod schema\nclass-validator requires DTO class with decorator function calls\nComponents\ttypia\tTypeBox\tajv\tio-ts\tzod\tC.V.\tEasy to use\t✅\t❌\t❌\t❌\t❌\t❌\tObject (simple)\t✔\t✔\t✔\t✔\t✔\t✔\tObject (hierarchical)\t✔\t✔\t✔\t✔\t✔\t✔\tObject (recursive)\t✔\t❌\t✔\t✔\t✔\t✔\t✔\tObject (union, implicit)\t✅\t❌\t❌\t❌\t❌\t❌\tObject (union, explicit)\t✔\t✔\t✔\t✔\t✔\t❌\tObject (additional tags)\t✔\t✔\t✔\t✔\t✔\t✔\tObject (template literal types)\t✔\t✔\t✔\t❌\t❌\t❌\tObject (dynamic properties)\t✔\t✔\t✔\t❌\t❌\t❌\tArray (rest tuple)\t✅\t❌\t❌\t❌\t❌\t❌\tArray (hierarchical)\t✔\t✔\t✔\t✔\t✔\t✔\tArray (recursive)\t✔\t✔\t✔\t✔\t✔\t❌\tArray (recursive, union)\t✔\t✔\t❌\t✔\t✔\t❌\tArray (R+U, implicit)\t✅\t❌\t❌\t❌\t❌\t❌\tUltimate Union Type\t✅\t❌\t❌\t❌\t❌\t❌\t\nC.V. means class-validator"}},"/docs/core/TypedHeaders":{"title":"Typedheaders","data":{"outline#Outline":"export function TypedHeaders(): ParameterDecorator;\nRequest headers decorator, type safe.@TypedHeaders() is a decorator function parsing request headers to a typed object. It validates the request header values through typia.assert(). If the request header values are invalid, it will throw 400 bad request exception.It is almost same with original @Headers() of NestJS, but much type safe.\n@TypedHeaders() is not essential for Swagger Documents or SDK Library building.Therefore, it is not a matter to use @TypedHeaders() or @Headers() of the original NestJS.","how-to-use#How to use":"export interface IHeaders {\n \"x-category\": \"x\" | \"y\" | \"z\";\n \"x-memo\"?: string;\n \"x-name\"?: string;\n \"x-values\": number[];\n \"x-flags\": boolean[];\n \"X-Descriptions\": string[]; // ALLOW UPPER-CASE\n}\nimport { Controller } from \"@nestjs/common\";\nimport core from \"@nestia/core\";\nimport { IHeaders } from \"@api/lib/structures/IHeaders\";\n@Controller(\"headers/:section\")\nexport class HeadersController {\n /**\n * Emplace headers.\n *\n * @param headers Headers for authentication\n * @param section Target section code\n * @returns Store article\n *\n * @author Samchon\n */\n @core.TypedRoute.Patch()\n public emplace(\n @core.TypedHeaders() headers: IHeaders,\n @core.TypedParam(\"section\", \"string\") section: string,\n ): void {\n headers;\n section;\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __importDefault =\n (this && this.__importDefault) ||\n function (mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HeadersController = void 0;\nconst common_1 = require(\"@nestjs/common\");\nconst core_1 = __importDefault(require(\"@nestia/core\"));\nlet HeadersController = (exports.HeadersController = class HeadersController {\n /**\n * Emplace headers.\n *\n * @param headers Headers for authentication\n * @param section Target section code\n * @returns Store article\n *\n * @author Samchon\n */\n emplace(headers, section) {\n headers;\n section;\n }\n});\n__decorate(\n [\n (0, common_1.Get)(),\n __param(\n 0,\n core_1.default.TypedHeaders((input) => {\n const $number = core_1.default.TypedHeaders.number;\n const $boolean = core_1.default.TypedHeaders.boolean;\n const $string = core_1.default.TypedHeaders.string;\n const output = {\n \"x-category\": input[\"x-category\"],\n \"x-memo\": input[\"x-memo\"],\n \"x-name\": input[\"x-name\"],\n \"x-values\": input[\"x-values\"]?.split(\", \")?.map($number),\n \"x-flags\": input[\"x-flags\"]?.split(\", \")?.map($boolean),\n \"X-Descriptions\": input[\"x-descriptions\"]?.split(\", \")?.map($string),\n // AUTOMATIC UPPER-CASE CONVERTING\n };\n return ((input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n (\"x\" === input[\"x-category\"] ||\n \"y\" === input[\"x-category\"] ||\n \"z\" === input[\"x-category\"]) &&\n (undefined === input[\"x-memo\"] ||\n \"string\" === typeof input[\"x-memo\"]) &&\n (undefined === input[\"x-name\"] ||\n \"string\" === typeof input[\"x-name\"]) &&\n Array.isArray(input[\"x-values\"]) &&\n input[\"x-values\"].every(\n (elem) => \"number\" === typeof elem && Number.isFinite(elem),\n ) &&\n Array.isArray(input[\"x-flags\"]) &&\n input[\"x-flags\"].every((elem) => \"boolean\" === typeof elem) &&\n Array.isArray(input[\"X-Descriptions\"]) &&\n input[\"X-Descriptions\"].every((elem) => \"string\" === typeof elem);\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.default.TypedHeaders.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n (\"x\" === input[\"x-category\"] ||\n \"y\" === input[\"x-category\"] ||\n \"z\" === input[\"x-category\"] ||\n $guard(_exceptionable, {\n path: _path + '[\"x-category\"]',\n expected: '(\"x\" | \"y\" | \"z\")',\n value: input[\"x-category\"],\n })) &&\n (undefined === input[\"x-memo\"] ||\n \"string\" === typeof input[\"x-memo\"] ||\n $guard(_exceptionable, {\n path: _path + '[\"x-memo\"]',\n expected: \"(string | undefined)\",\n value: input[\"x-memo\"],\n })) &&\n (undefined === input[\"x-name\"] ||\n \"string\" === typeof input[\"x-name\"] ||\n $guard(_exceptionable, {\n path: _path + '[\"x-name\"]',\n expected: \"(string | undefined)\",\n value: input[\"x-name\"],\n })) &&\n (((Array.isArray(input[\"x-values\"]) ||\n $guard(_exceptionable, {\n path: _path + '[\"x-values\"]',\n expected: \"Array\",\n value: input[\"x-values\"],\n })) &&\n input[\"x-values\"].every(\n (elem, _index1) =>\n (\"number\" === typeof elem && Number.isFinite(elem)) ||\n $guard(_exceptionable, {\n path: _path + '[\"x-values\"][' + _index1 + \"]\",\n expected: \"number\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + '[\"x-values\"]',\n expected: \"Array\",\n value: input[\"x-values\"],\n })) &&\n (((Array.isArray(input[\"x-flags\"]) ||\n $guard(_exceptionable, {\n path: _path + '[\"x-flags\"]',\n expected: \"Array\",\n value: input[\"x-flags\"],\n })) &&\n input[\"x-flags\"].every(\n (elem, _index2) =>\n \"boolean\" === typeof elem ||\n $guard(_exceptionable, {\n path: _path + '[\"x-flags\"][' + _index2 + \"]\",\n expected: \"boolean\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + '[\"x-flags\"]',\n expected: \"Array\",\n value: input[\"x-flags\"],\n })) &&\n (((Array.isArray(input[\"X-Descriptions\"]) ||\n $guard(_exceptionable, {\n path: _path + '[\"X-Descriptions\"]',\n expected: \"Array\",\n value: input[\"X-Descriptions\"],\n })) &&\n input[\"X-Descriptions\"].every(\n (elem, _index3) =>\n \"string\" === typeof elem ||\n $guard(_exceptionable, {\n path: _path + '[\"X-Descriptions\"][' + _index3 + \"]\",\n expected: \"string\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + '[\"X-Descriptions\"]',\n expected: \"Array\",\n value: input[\"X-Descriptions\"],\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IHeaders\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IHeaders\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n })(output);\n }),\n ),\n __param(1, core_1.default.TypedParam(\"section\", \"string\", false)),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object, String]),\n __metadata(\"design:returntype\", void 0),\n ],\n HeadersController.prototype,\n \"emplace\",\n null,\n);\nexports.HeadersController = HeadersController = __decorate(\n [(0, common_1.Controller)(\"headers/:section\")],\n HeadersController,\n);\nJust call @TypedHeaders() function on the request headers parameter, that's all.Nestia will analyze your type (IHeaders), and write optimal conversion and validation code for the target type, in the compilation level. If you click the \"Compiled JavaScript File\" tab of above, you can see the optimal code.Also, as you can see from the \"Compiled JavaScript File\", when upper case alphabet is used in the header key name like IHeaders[\"X-Descriptions\"], @TypedHeaders() would automatically convert to the upper case alphabet key named property from lower case key named property of raw data.Such optimization is called AOT (Ahead of Time) compilation, and it is the secret of @TypedHeaders\nBesides, the original @Headers() decorator of NestJS does not support such automatic upper case conversion. When you've define upper-cased property name in DTO, undefined value always be assigned, even if you've sent upper-cased property in the client side.","special-tags#Special Tags":"You can enhance validation logic, of @TypedHeaders(), through comment tags.You know what? @TypedHeaders() utilizes typia.assert() function for query data validation, and the typia.assert() function supports additional type checking logics through comment tags. For reference, \"Type Tag\" means a intersection type with atomic type and special tag type of typia like number & tags.Type<\"uint32\">, and \"Comment Tag\" means a comment starting from @ symbol following @${name} ${value} format.With those type and comment tags, you can add additional validation logics. If you want to add a custom validation logic, you also can do it. Read below Guide Docments of typia, and see the example code. You may understand how to utilize such type and comment tags, in a few minutes.\ntypia > Validators > Custom Tags\nOutline\nType Tags\nComment Tags\nCustomization\nimport typia, { tags } from \"typia\";\nexport const checkSpecialTag = typia.createIs();\ninterface SpecialTag {\n int32: number & tags.Type<\"int32\">;\n range?: number & tags.ExclusiveMinimum<19> & tags.Maximum<100>;\n minLength: string & tags.MinLength<3>;\n pattern: string & tags.Pattern<\"^[a-z]+$\">;\n date: null | (string & tags.Format<\"date\">);\n ip: string & (tags.Format<\"ipv4\"> | tags.Format<\"ipv6\">);\n uuids: Array> &\n tags.MinItems<3> &\n tags.MaxItems<100>;\n}\n\"use strict\";\nvar __importDefault =\n (this && this.__importDefault) ||\n function (mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkSpecialTag = void 0;\nconst typia_1 = __importDefault(require(\"typia\"));\nconst checkSpecialTag = (input) => {\n const $io0 = (input) =>\n \"number\" === typeof input.int32 &&\n Math.floor(input.int32) === input.int32 &&\n -2147483648 <= input.int32 &&\n input.int32 <= 2147483647 &&\n (undefined === input.range ||\n (\"number\" === typeof input.range &&\n 19 < input.range &&\n input.range <= 100)) &&\n \"string\" === typeof input.minLength &&\n 3 <= input.minLength.length &&\n \"string\" === typeof input.pattern &&\n /^[a-z]+$/.test(input.pattern) &&\n (null === input.date ||\n (\"string\" === typeof input.date &&\n /^(d{4})-(d{2})-(d{2})$/.test(input.date))) &&\n \"string\" === typeof input.ip &&\n (/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(\n input.ip,\n ) ||\n /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(\n input.ip,\n )) &&\n Array.isArray(input.uuids) &&\n 3 <= input.uuids.length &&\n input.uuids.length <= 100 &&\n input.uuids.every(\n (elem) =>\n \"string\" === typeof elem &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n elem,\n ),\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n};\nexports.checkSpecialTag = checkSpecialTag;","restriction#Restriction":"When using @TypedHeaders(), you've to follow such restrictions.At first, type of @TypedHeaders() must be a pure object type. It does not allow union type. Also, nullable types are not allowed, either. Note that, request headers type must be a sole object type without any extra definition. Of course, the word object does not contain array type.At next, type of properties must be atomic, or array of atomic type. In the atomic type case, the atomic type allows both nullable and undefindable types. However, mixed union atomic type like string | number or \"1\" | \"2\" | 3 are not allowed. Also, the array type does not allow both nullable and undefindable types, either.\nboolean\nnumber\nbigint\nstring\nAt last, HTTP headers has special restriction on value types for specific key names. For example, Set-Cookie must be Array type, and Authorization must be an atomic type like string. Therefore, @TypedHeaders() also restricts the value type of specific key names, and it is described in below.\nOnly array type allowed:\nset-cookie\nOnly atomic type allowed:\nage\nauthorization\ncontent-length\ncontent-type\netag\nexpires\nfrom\nhost\nif-modified-since\nif-unmodified-since\nlast-modified\nlocation\nmax-forwards\nproxy-authorization\nreferer\nretry-after\nserver\nuser-agent\nexport interface SomeHeadersDto {\n //----\n // ATOMIC TYPES\n //----\n // ALLOWED\n boolean: boolean;\n number: number;\n string: string;\n bigint: bigint;\n optional_number?: number;\n nullable_string: string | null;\n literal_union: \"A\" | \"B\" | \"C\" | \"D\";\n // NOT ALLOWED\n mixed_union: string | number | boolean;\n mixed_literal: \"A\" | \"B\" | 3;\n //----\n // ARRAY TYPES\n //----\n // ALLOWED\n nullable_element_array: (string | null)[];\n string_array: string[];\n number_array: number[];\n literal_union_array: (\"A\" | \"B\" | \"C\")[];\n literal_tuple: [\"A\", \"B\", \"C\"];\n // NOT ALLOWED\n optional_element_array: (string | undefined)[];\n optional_array: string[] | undefined;\n nullable_array: string[] | null;\n union_atomic_array: (string | number)[];\n mixed_literal_array: (\"A\", \"B\", 3)[];\n mixed_tuple: [\"A\", \"B\", 3];\n //----\n // SPECIAL CASES\n //----\n // MUST BE ARRAY\n \"Set-Cookie\": string[];\n // MUST BE ATOMIC\n Accept: string;\n Authorization: string;\n // NOT ALLOWED - MUST BE ATOMIC\n referer: string[];\n age: number[];\n}"}},"/docs/core/TypedFormData":{"title":"Typedformdata","data":{"outline#Outline":"export namespace TypedFormData {\n export function Body(): ParameterDecorator;\n}\nRequest body decorator of multipart/form-data.@TypedFormData.Body() is a request body decorator function, for the multipart/form-data content type. It is useful for file uploading with additional data, and automatically casts property type following its DTO definition, performing the type validation.As you can see from the below code, @TypedFormData.Body() function is much easier and type safer than @UploadFile() of NestJS. Also, if you're considering the SDK library generation, only @TypedFormData.Body() is supported. Therefore, I recommend you to utilize @TypedFormData.Body() instead of the @UploadFile() function.Of course, as every features of nestia does, you don't need to define any extra schema definition for the Swagger Documents generation. @nestia/sdk and @TypedFormData.Body() will do everything just by analyzing your TypeScript types and codes.\nimport { TypedFormData, TypedRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedRoute.Post()\n public async create(\n @TypedFormData.Body() input: IBbsArticleCreate,\n ): Promise {\n input;\n }\n}\nexport interface IBbsArticleCreate {\n title: string;\n body: string | null;\n thumbnail?: File | undefined;\n files: File[];\n tags: string[];\n}\nimport { \n Body, \n Controller, \n Post, \n UploadedFile, \n UploadedFiles, \n UseInterceptors \n} from \"@nestjs/common\";\nimport { ApiBody, ApiConsumes } from \"@nestjs/swagger\";\nimport { FileFieldsInterceptor } from \"@nestjs/platform-express\";\nimport { IsArray, IsOptional, IsString } from \"class-validator\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @Post()\n @ApiConsumes(\"multipart/form-data\")\n @UseInterceptors(\n FileFieldsInterceptor([\n { name: \"thumbnail\", maxCount: 1 },\n { name: \"files\" },\n ]),\n )\n @ApiBody({\n schema: {\n type: \"object\",\n properties: {\n title: {\n type: \"string\",\n },\n body: {\n type: \"string\",\n nullable: true,\n },\n thumbnail: {\n type: \"string\",\n format: \"binary\",\n },\n files: {\n type: \"array\",\n items: {\n type: \"string\",\n format: \"binary\",\n },\n },\n },\n required: [\n \"id\", \n \"title\", \n \"body\", \n \"files\",\n \"tags\",\n \"created_at\",\n ],\n },\n })\n public async create(\n @Body() input: BbsArticleCreateDto,\n @UploadedFiles() binary: {\n thumbnail?: Express.Multer.File[];\n files: Express.Multer.File[];\n },\n ): Promise {\n input;\n binary;\n }\n}\nexport class BbsArticleCreateDto {\n @IsString()\n title: string;\n @IsString()\n @IsOptional()\n body: string | null;\n @IsArray({ each: true })\n @IsString()\n tags: string[];\n}","how-to-use#How to use":"export interface IBbsArticleCreate {\n title: string;\n body: string | null;\n thumbnail?: File | undefined;\n files: File[];\n tags: string[];\n}\nimport { TypedFormData, TypedRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { IBbsArticleCreate } from \"./IBbsArticleCreate\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedRoute.Post()\n public async create(\n @TypedFormData.Body() input: IBbsArticleCreate,\n ): Promise {\n input;\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n create(input) {\n return __awaiter(this, void 0, void 0, function* () {\n input;\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedRoute.Post({\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n return null !== input && undefined === input;\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedRoute.Post.guard;\n return (\n (null !== input ||\n $guard(true, {\n path: _path + \"\",\n expected: \"undefined\",\n value: input,\n })) &&\n (undefined === input ||\n $guard(true, {\n path: _path + \"\",\n expected: \"undefined\",\n value: input,\n }))\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n return undefined;\n };\n return stringify(assert(input));\n },\n }),\n __param(\n 0,\n core_1.TypedFormData.Body({\n files: [\n {\n name: \"thumbnail\",\n limit: 1,\n },\n {\n name: \"files\",\n limit: null,\n },\n ],\n validator: {\n type: \"assert\",\n assert: (input) => {\n const decode = (input) => {\n var _a;\n const $string = core_1.TypedFormData.Body.string;\n const $file = core_1.TypedFormData.Body.file;\n const output = {\n title: $string(input.get(\"title\")),\n body: $string(input.get(\"body\")),\n thumbnail:\n (_a = $file(input.get(\"thumbnail\"))) !== null && _a !== void 0\n ? _a\n : undefined,\n files: input.getAll(\"files\").map((elem) => $file(elem)),\n tags: input.getAll(\"tags\").map((elem) => $string(elem)),\n };\n return output;\n };\n const assert = (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n \"string\" === typeof input.title &&\n (null === input.body || \"string\" === typeof input.body) &&\n (undefined === input.thumbnail ||\n input.thumbnail instanceof File) &&\n Array.isArray(input.files) &&\n input.files.every((elem) => elem instanceof File) &&\n Array.isArray(input.tags) &&\n input.tags.every((elem) => \"string\" === typeof elem);\n return (\n \"object\" === typeof input && null !== input && $io0(input)\n );\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedFormData.Body.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n (\"string\" === typeof input.title ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string\",\n value: input.title,\n })) &&\n (null === input.body ||\n \"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"(null | string)\",\n value: input.body,\n })) &&\n (undefined === input.thumbnail ||\n input.thumbnail instanceof File ||\n $guard(_exceptionable, {\n path: _path + \".thumbnail\",\n expected: \"(File | undefined)\",\n value: input.thumbnail,\n })) &&\n (((Array.isArray(input.files) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n input.files.every(\n (elem, _index1) =>\n elem instanceof File ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"File\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n (((Array.isArray(input.tags) ||\n $guard(_exceptionable, {\n path: _path + \".tags\",\n expected: \"Array\",\n value: input.tags,\n })) &&\n input.tags.every(\n (elem, _index2) =>\n \"string\" === typeof elem ||\n $guard(_exceptionable, {\n path: _path + \".tags[\" + _index2 + \"]\",\n expected: \"string\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".tags\",\n expected: \"Array\",\n value: input.tags,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticleCreate\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticleCreate\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const output = decode(input);\n return assert(output);\n },\n },\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"create\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);\n//# sourceMappingURL=BbsArticlesController.js.map\nJust call @TypedFormData.Body() function on the request body parameter, that's all.Nestia will analyze your type (IBbsArticleCreate), and writes optimal code for the target type, in the compilation level. If you click the \"Compiled JavaScript File\" tab of above, you can see the optimal transformation and validation code.Such optimization is called AOT (Ahead of Time) compilation, and it is the secret of @TypedFormData.Body.By the way, if you're using fastify, you have to setup @fastify/multipart and configure like below when composing the NestJS application. If you don't do it, @TypedFormData.Body() will not work properly, and throw 500 internal server error when Blob or File type being utilized.\nimport multipart from \"fastify-multipart\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { \n FastifyAdapter, \n NestFastifyApplication \n} from \"@nestjs/platform-fastify\";\nexport async function main() {\n const app = await NestFactory.create(\n AppModule,\n new FastifyAdapter(),\n );\n app.register(multipart);\n await app.listen(3000);\n}","special-tags#Special Tags":"You can enhance validation logic, of @TypedFormData.Body(), through comment tags.You know what? @TypedFormData.Body() utilizes typia.assert() function for form data validation, and the typia.assert() function supports additional type checking logics through comment tags. For reference, \"Type Tag\" means a intersection type with atomic type and special tag type of typia like number & tags.Type<\"uint32\">, and \"Comment Tag\" means a comment starting from @ symbol following @${name} ${value} format.With those type and comment tags, you can add additional validation logics. If you want to add a custom validation logic, you also can do it. Read below Guide Documents of typia, and see the example code. You may understand how to utilize such type and comment tags, in a few minutes.\ntypia > Validators > Custom Tags\nOutline\nType Tags\nComment Tags\nCustomization\nimport typia, { tags } from \"typia\";\nexport const checkSpecialTag = typia.createIs();\ninterface SpecialTag {\n int32: number & tags.Type<\"int32\">;\n range?: number & tags.ExclusiveMinimum<19> & tags.Maximum<100>;\n minLength: string & tags.MinLength<3>;\n pattern: string & tags.Pattern<\"^[a-z]+$\">;\n date: null | (string & tags.Format<\"date\">);\n ip: string & (tags.Format<\"ipv4\"> | tags.Format<\"ipv6\">);\n uuids: Array> &\n tags.MinItems<3> &\n tags.MaxItems<100>;\n}\n\"use strict\";\nvar __importDefault =\n (this && this.__importDefault) ||\n function (mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkSpecialTag = void 0;\nconst typia_1 = __importDefault(require(\"typia\"));\nconst checkSpecialTag = (input) => {\n const $io0 = (input) =>\n \"number\" === typeof input.int32 &&\n Math.floor(input.int32) === input.int32 &&\n -2147483648 <= input.int32 &&\n input.int32 <= 2147483647 &&\n (undefined === input.range ||\n (\"number\" === typeof input.range &&\n 19 < input.range &&\n input.range <= 100)) &&\n \"string\" === typeof input.minLength &&\n 3 <= input.minLength.length &&\n \"string\" === typeof input.pattern &&\n /^[a-z]+$/.test(input.pattern) &&\n (null === input.date ||\n (\"string\" === typeof input.date &&\n /^(d{4})-(d{2})-(d{2})$/.test(input.date))) &&\n \"string\" === typeof input.ip &&\n (/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(\n input.ip,\n ) ||\n /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(\n input.ip,\n )) &&\n Array.isArray(input.uuids) &&\n 3 <= input.uuids.length &&\n input.uuids.length <= 100 &&\n input.uuids.every(\n (elem) =>\n \"string\" === typeof elem &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n elem,\n ),\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n};\nexports.checkSpecialTag = checkSpecialTag;","restriction#Restriction":"When using @TypedFormData.Body(), you've to follow such restrction.At first, type of @TypedFormData.Body() must be a pure object type. It does not allow union type. Also, nullable and undefindable types are not allowed, either. Note that, query parameter type must be a sole object type without any extra definition.At next, type of properties must be atomic, Blob, File or array of them. In the atomic type case, the atomic type allows both nullable and undefindable types. However, mixed union atomic type like string | number or \"1\" | \"2\" | 3 are not allowed. Also, the array type does not allow both nullable and undefindable types, either.\nboolean\nnumber\nbigint\nstring\nBlob\nFile\nexport interface SomeFormDataDto {\n //----\n // ATOMIC OR FILE TYPES\n //----\n // ALLOWED\n boolean: boolean;\n number: number;\n string: string;\n bigint: bigint;\n optional_number?: number;\n nullable_string: string | null;\n literal_union: \"A\" | \"B\" | \"C\" | \"D\";\n blob: Blob;\n file: File;\n // NOT ALLOWED\n mixed_union: string | number | boolean;\n mixed_literal: \"A\" | \"B\" | 3;\n //----\n // ARRAY TYPES\n //----\n // ALLOWED\n nullable_element_array: (string | null)[];\n string_array: string[];\n number_array: number[];\n literal_union_array: (\"A\" | \"B\" | \"C\")[];\n literal_tuple: [\"A\", \"B\", \"C\"];\n blobs: Blob[];\n files: File[];\n // NOT ALLOWED\n optional_element_array: (string | undefined)[];\n optional_array: string[] | undefined;\n nullable_array: string[] | null;\n union_atomic_array: (string | number)[];\n mixed_literal_array: (\"A\", \"B\", 3)[];\n mixed_tuple: [\"A\", \"B\", 3];\n}"}},"/docs/core/TypedQuery":{"title":"Typedquery","data":{"outline#Outline":"export function TypedQuery(): ParameterDecorator;\nexport namespace TypedQuery {\n export function Body(): ParameterDecorator;\n export function Get(path?: string): MethodDecorator;\n export function Post(path?: string): MethodDecorator;\n export function Put(path?: string): MethodDecorator;\n export function Patch(path?: string): MethodDecorator;\n export function Delete(path?: string): MethodDecorator;\n}\nDecorators for query parameters.\nWhat the query parameters are?This is the query parameters!\nname=Samchon&age=20&sex=male\n@TypedQuery() is not essential for Swagger Documents or SDK Library building.Therefore, it is not a matter to use @TypedQuery() or @Query() of the original NestJS.","typedquery#@TypedQuery()":"export function TypedQuery(): ParameterDecorator;\nType safe URL query decorator.@TypedQuery() is a decorator parsing URL query.It's almost same with original @Query() function of NestJS, but @TypedQuery() is more stable and general.While NestJS does not support query type validation, @TypedQuery() validates the request query type and throws 400 bad request error when mismatched. Also, while NestJS does not support property type (@Query() only supports string typed properties), @TypedQuery() can define variable property types like bigint, number or boolean.\nimport { tags } from \"typia\";\nexport namespace IBbsArticle {\n export interface ISummary {\n id: string & tags.Format<\"uuid\">;\n writer: string;\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n created_at: string & tags.Format<\"date-time\">;\n }\n}\nimport { tags } from \"typia\";\nexport interface IPage {\n data: T[];\n pagination: IPage.IPagination;\n}\nexport namespace IPage {\n /**\n * Page request data\n */\n export interface IRequest {\n page?: number & tags.Type<\"uint32\">;\n limit?: number & tags.Type<\"uint32\">;\n }\n /**\n * Page information.\n */\n export interface IPagination {\n current: number & tags.Type<\"uint32\">;\n limit: number & tags.Type<\"uint32\">;\n records: number & tags.Type<\"uint32\">;\n pages: number & tags.Type<\"uint32\">;\n }\n}\nimport { TypedQuery, TypedRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { tags } from \"typia\";\nimport { IBbsArticle } from \"./IBbsArticle\";\nimport { IPage } from \"./IPage\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedRoute.Get()\n public async index(\n @TypedQuery() query: IPage.IRequest\n ): Promise> {\n return {\n pagination: {\n current: query.page ?? 1,\n limit: query.limit ?? 100,\n records: 0,\n pages: 0,\n },\n data: [],\n };\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n index(query) {\n var _a, _b;\n return __awaiter(this, void 0, void 0, function* () {\n return {\n pagination: {\n current: (_a = query.page) !== null && _a !== void 0 ? _a : 1,\n limit: (_b = query.limit) !== null && _b !== void 0 ? _b : 100,\n records: 0,\n pages: 0,\n },\n data: [],\n };\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedRoute.Get({\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n Array.isArray(input.data) &&\n input.data.every(\n (elem) =>\n \"object\" === typeof elem && null !== elem && $io1(elem),\n ) &&\n \"object\" === typeof input.pagination &&\n null !== input.pagination &&\n \"number\" === typeof input.pagination.current &&\n Math.floor(input.pagination.current) ===\n input.pagination.current &&\n 0 <= input.pagination.current &&\n input.pagination.current <= 4294967295 &&\n \"number\" === typeof input.pagination.limit &&\n Math.floor(input.pagination.limit) === input.pagination.limit &&\n 0 <= input.pagination.limit &&\n input.pagination.limit <= 4294967295 &&\n \"number\" === typeof input.pagination.records &&\n Math.floor(input.pagination.records) ===\n input.pagination.records &&\n 0 <= input.pagination.records &&\n input.pagination.records <= 4294967295 &&\n \"number\" === typeof input.pagination.pages &&\n Math.floor(input.pagination.pages) === input.pagination.pages &&\n 0 <= input.pagination.pages &&\n input.pagination.pages <= 4294967295;\n const $io1 = (input) =>\n \"string\" === typeof input.id &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) &&\n \"string\" === typeof input.writer &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime());\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedRoute.Get.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n (((Array.isArray(input.data) ||\n $guard(_exceptionable, {\n path: _path + \".data\",\n expected: \"Array\",\n value: input.data,\n })) &&\n input.data.every(\n (elem, _index1) =>\n (((\"object\" === typeof elem && null !== elem) ||\n $guard(_exceptionable, {\n path: _path + \".data[\" + _index1 + \"]\",\n expected: \"IBbsArticle.ISummary\",\n value: elem,\n })) &&\n $ao1(\n elem,\n _path + \".data[\" + _index1 + \"]\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".data[\" + _index1 + \"]\",\n expected: \"IBbsArticle.ISummary\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".data\",\n expected: \"Array\",\n value: input.data,\n })) &&\n ((((\"object\" === typeof input.pagination &&\n null !== input.pagination) ||\n $guard(_exceptionable, {\n path: _path + \".pagination\",\n expected: \"IPage.IPagination\",\n value: input.pagination,\n })) &&\n $ao2(\n input.pagination,\n _path + \".pagination\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".pagination\",\n expected: \"IPage.IPagination\",\n value: input.pagination,\n }));\n const $ao1 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.id &&\n (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: 'string & Format<\"uuid\">',\n value: input.id,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: '(string & Format<\"uuid\">)',\n value: input.id,\n })) &&\n (\"string\" === typeof input.writer ||\n $guard(_exceptionable, {\n path: _path + \".writer\",\n expected: \"string\",\n value: input.writer,\n })) &&\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n ((\"string\" === typeof input.created_at &&\n (!isNaN(new Date(input.created_at).getTime()) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: 'string & Format<\"date-time\">',\n value: input.created_at,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: '(string & Format<\"date-time\">)',\n value: input.created_at,\n }));\n const $ao2 = (input, _path, _exceptionable = true) =>\n ((\"number\" === typeof input.current &&\n ((Math.floor(input.current) === input.current &&\n 0 <= input.current &&\n input.current <= 4294967295) ||\n $guard(_exceptionable, {\n path: _path + \".current\",\n expected: 'number & Type<\"uint32\">',\n value: input.current,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".current\",\n expected: '(number & Type<\"uint32\">)',\n value: input.current,\n })) &&\n ((\"number\" === typeof input.limit &&\n ((Math.floor(input.limit) === input.limit &&\n 0 <= input.limit &&\n input.limit <= 4294967295) ||\n $guard(_exceptionable, {\n path: _path + \".limit\",\n expected: 'number & Type<\"uint32\">',\n value: input.limit,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".limit\",\n expected: '(number & Type<\"uint32\">)',\n value: input.limit,\n })) &&\n ((\"number\" === typeof input.records &&\n ((Math.floor(input.records) === input.records &&\n 0 <= input.records &&\n input.records <= 4294967295) ||\n $guard(_exceptionable, {\n path: _path + \".records\",\n expected: 'number & Type<\"uint32\">',\n value: input.records,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".records\",\n expected: '(number & Type<\"uint32\">)',\n value: input.records,\n })) &&\n ((\"number\" === typeof input.pages &&\n ((Math.floor(input.pages) === input.pages &&\n 0 <= input.pages &&\n input.pages <= 4294967295) ||\n $guard(_exceptionable, {\n path: _path + \".pages\",\n expected: 'number & Type<\"uint32\">',\n value: input.pages,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".pages\",\n expected: '(number & Type<\"uint32\">)',\n value: input.pages,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IPage\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IPage\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n const $io1 = (input) =>\n \"string\" === typeof input.id &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) &&\n \"string\" === typeof input.writer &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime());\n const $io2 = (input) =>\n \"number\" === typeof input.current &&\n Math.floor(input.current) === input.current &&\n 0 <= input.current &&\n input.current <= 4294967295 &&\n \"number\" === typeof input.limit &&\n Math.floor(input.limit) === input.limit &&\n 0 <= input.limit &&\n input.limit <= 4294967295 &&\n \"number\" === typeof input.records &&\n Math.floor(input.records) === input.records &&\n 0 <= input.records &&\n input.records <= 4294967295 &&\n \"number\" === typeof input.pages &&\n Math.floor(input.pages) === input.pages &&\n 0 <= input.pages &&\n input.pages <= 4294967295;\n const $string = core_1.TypedRoute.Get.string;\n const $so0 = (input) =>\n `{\"data\":${`[${input.data\n .map(\n (elem) =>\n `{\"id\":${$string(elem.id)},\"writer\":${$string(\n elem.writer,\n )},\"title\":${$string(elem.title)},\"created_at\":${$string(\n elem.created_at,\n )}}`,\n )\n .join(\n \",\",\n )}]`},\"pagination\":${`{\"current\":${input.pagination.current},\"limit\":${input.pagination.limit},\"records\":${input.pagination.records},\"pages\":${input.pagination.pages}}`}}`;\n return $so0(input);\n };\n return stringify(assert(input));\n },\n }),\n __param(\n 0,\n (0, core_1.TypedQuery)((input) => {\n var _a, _b;\n const $number = core_1.TypedQuery.number;\n const output = {\n page:\n (_a = $number(input.get(\"page\"))) !== null && _a !== void 0\n ? _a\n : undefined,\n limit:\n (_b = $number(input.get(\"limit\"))) !== null && _b !== void 0\n ? _b\n : undefined,\n };\n return ((input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n (undefined === input.page ||\n (\"number\" === typeof input.page &&\n Math.floor(input.page) === input.page &&\n 0 <= input.page &&\n input.page <= 4294967295)) &&\n (undefined === input.limit ||\n (\"number\" === typeof input.limit &&\n Math.floor(input.limit) === input.limit &&\n 0 <= input.limit &&\n input.limit <= 4294967295));\n return (\n \"object\" === typeof input &&\n null !== input &&\n false === Array.isArray(input) &&\n $io0(input)\n );\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedQuery.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n (undefined === input.page ||\n (\"number\" === typeof input.page &&\n ((Math.floor(input.page) === input.page &&\n 0 <= input.page &&\n input.page <= 4294967295) ||\n $guard(_exceptionable, {\n path: _path + \".page\",\n expected: 'number & Type<\"uint32\">',\n value: input.page,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".page\",\n expected: '((number & Type<\"uint32\">) | undefined)',\n value: input.page,\n })) &&\n (undefined === input.limit ||\n (\"number\" === typeof input.limit &&\n ((Math.floor(input.limit) === input.limit &&\n 0 <= input.limit &&\n input.limit <= 4294967295) ||\n $guard(_exceptionable, {\n path: _path + \".limit\",\n expected: 'number & Type<\"uint32\">',\n value: input.limit,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".limit\",\n expected: '((number & Type<\"uint32\">) | undefined)',\n value: input.limit,\n }));\n return (\n (((\"object\" === typeof input &&\n null !== input &&\n false === Array.isArray(input)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IPage.IRequest\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IPage.IRequest\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n })(output);\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"index\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);\nJust call @TypedQuery() function on the query parameter, that's all.Nestia will analyze your type (IPage.IRequest), and writes optimal code for the target type, in the compilation level. If you click the \"Compiled JavaScript\" file tab of above and fine enhanced lines by blue lines, you can see the optimal parsing and validation code.Such optimization is called AOT (Ahead of Time) compilation, and it is the secret of @TypedQuery.","typedquerybody#TypedQuery.Body()":"export namespace TypedQuery {\n export function Body(): ParameterDecorator;\n}\nRequest body decorator of application/x-www-form-urlencoded format.If you call @TypedQuery.Body() decorator function on a specific parameter, the parameter will be parsed from the request body as application/x-www-form-urlencoded format. Otherwise, you want to declare a application/json format response body, use @TypedBody() decorator function instead.\nimport { tags } from \"typia\";\nexport interface IBbsArticle {\n id: string;\n writer: string;\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n created_at: string & tags.Format<\"date-time\">;\n}\nexport namespace IBbsArticle {\n export interface IStore {\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n }\n}\nimport { TypedQuery } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { IBbsArticle } from \"@api/lib/structures/IBbsArticle\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedQuery.Post()\n public async store(\n @TypedQuery.Body() body: IBbsArticle.IStore,\n ): Promise {\n return {\n id: \"00000000-0000-0000-0000-000000000000\",\n writer: \"Samchon\",\n title: body.title,\n body: body.body,\n created_at: new Date().toISOString(),\n };\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n store(body) {\n return __awaiter(this, void 0, void 0, function* () {\n return {\n id: \"00000000-0000-0000-0000-000000000000\",\n writer: \"Samchon\",\n title: body.title,\n body: body.body,\n created_at: new Date().toISOString(),\n };\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedQuery.Post({\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n return (\n \"object\" === typeof input &&\n null !== input &&\n \"string\" === typeof input.id &&\n \"string\" === typeof input.writer &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime())\n );\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedQuery.Post.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n (\"string\" === typeof input.id ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: \"string\",\n value: input.id,\n })) &&\n (\"string\" === typeof input.writer ||\n $guard(_exceptionable, {\n path: _path + \".writer\",\n expected: \"string\",\n value: input.writer,\n })) &&\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n ((\"string\" === typeof input.created_at &&\n (!isNaN(new Date(input.created_at).getTime()) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: 'string & Format<\"date-time\">',\n value: input.created_at,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: '(string & Format<\"date-time\">)',\n value: input.created_at,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n const output = new URLSearchParams();\n output.append(\"id\", input.id);\n output.append(\"writer\", input.writer);\n output.append(\"title\", input.title);\n output.append(\"body\", input.body);\n output.append(\"created_at\", input.created_at);\n return output;\n };\n return stringify(assert(input));\n },\n }),\n __param(\n 0,\n core_1.TypedQuery.Body({\n type: \"assert\",\n assert: (input) => {\n const decode = (input) => {\n const $params = core_1.TypedQuery.Body.params;\n const $string = core_1.TypedQuery.Body.string;\n input = $params(input);\n const output = {\n title: $string(input.get(\"title\")),\n body: $string(input.get(\"body\")),\n };\n return output;\n };\n const assert = (input) => {\n const __is = (input) => {\n return (\n \"object\" === typeof input &&\n null !== input &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body\n );\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedQuery.Body.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.IStore\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.IStore\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const output = decode(input);\n return assert(output);\n },\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"store\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);","typedquerypost#TypedQuery.Post()":"export namespace TypedQuery {\n export function Get(path?: string): MethodDecorator;\n export function Post(path?: string): MethodDecorator;\n export function Put(path?: string): MethodDecorator;\n export function Patch(path?: string): MethodDecorator;\n export function Delete(path?: string): MethodDecorator;\n}\nRoute decorators of application/x-www-form-urlencoded format response body.If you call one of below decorator functions on a method, the method will return application/x-www-form-urlencoded format response body. Otherwise, you want to declare a application/json format response body, use @TypedRoute.Post() decorator function instead.\n@TypedQuery.Get()\n@TypedQuery.Post()\n@TypedQuery.Put()\n@TypedQuery.Patch()\n@TypedQuery.Delete()\nimport { tags } from \"typia\";\nexport interface IBbsArticle {\n id: string;\n writer: string;\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n created_at: string & tags.Format<\"date-time\">;\n}\nexport namespace IBbsArticle {\n export interface IStore {\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n }\n}\nimport { TypedQuery } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { IBbsArticle } from \"@api/lib/structures/IBbsArticle\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedQuery.Post()\n public async store(\n @TypedQuery.Body() body: IBbsArticle.IStore,\n ): Promise {\n return {\n id: \"00000000-0000-0000-0000-000000000000\",\n writer: \"Samchon\",\n title: body.title,\n body: body.body,\n created_at: new Date().toISOString(),\n };\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n store(body) {\n return __awaiter(this, void 0, void 0, function* () {\n return {\n id: \"00000000-0000-0000-0000-000000000000\",\n writer: \"Samchon\",\n title: body.title,\n body: body.body,\n created_at: new Date().toISOString(),\n };\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedQuery.Post({\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n return (\n \"object\" === typeof input &&\n null !== input &&\n \"string\" === typeof input.id &&\n \"string\" === typeof input.writer &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime())\n );\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedQuery.Post.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n (\"string\" === typeof input.id ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: \"string\",\n value: input.id,\n })) &&\n (\"string\" === typeof input.writer ||\n $guard(_exceptionable, {\n path: _path + \".writer\",\n expected: \"string\",\n value: input.writer,\n })) &&\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n ((\"string\" === typeof input.created_at &&\n (!isNaN(new Date(input.created_at).getTime()) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: 'string & Format<\"date-time\">',\n value: input.created_at,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: '(string & Format<\"date-time\">)',\n value: input.created_at,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n const output = new URLSearchParams();\n output.append(\"id\", input.id);\n output.append(\"writer\", input.writer);\n output.append(\"title\", input.title);\n output.append(\"body\", input.body);\n output.append(\"created_at\", input.created_at);\n return output;\n };\n return stringify(assert(input));\n },\n }),\n __param(\n 0,\n core_1.TypedQuery.Body({\n type: \"assert\",\n assert: (input) => {\n const decode = (input) => {\n const $params = core_1.TypedQuery.Body.params;\n const $string = core_1.TypedQuery.Body.string;\n input = $params(input);\n const output = {\n title: $string(input.get(\"title\")),\n body: $string(input.get(\"body\")),\n };\n return output;\n };\n const assert = (input) => {\n const __is = (input) => {\n return (\n \"object\" === typeof input &&\n null !== input &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body\n );\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedQuery.Body.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.IStore\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.IStore\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const output = decode(input);\n return assert(output);\n },\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"store\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);","special-tags#Special Tags":"You can enhance validation logic, of @TypedQuery(), through comment tags.You know what? @TypedQuery() utilizes typia.assert() function for query data validation, and the typia.assert() function supports additional type checking logics through comment tags. For reference, \"Type Tag\" means a intersection type with atomic type and special tag type of typia like number & tags.Type<\"uint32\">, and \"Comment Tag\" means a comment starting from @ symbol following @${name} ${value} format.With those type and comment tags, you can add additional validation logics. If you want to add a custom validation logic, you also can do it. Read below Guide Docments of typia, and see the example code. You may understand how to utilize such type and comment tags, in a few minutes.\ntypia > Validators > Custom Tags\nOutline\nType Tags\nComment Tags\nCustomization\nimport typia, { tags } from \"typia\";\nexport const checkSpecialTag = typia.createIs();\ninterface SpecialTag {\n int32: number & tags.Type<\"int32\">;\n range?: number & tags.ExclusiveMinimum<19> & tags.Maximum<100>;\n minLength: string & tags.MinLength<3>;\n pattern: string & tags.Pattern<\"^[a-z]+$\">;\n date: null | (string & tags.Format<\"date\">);\n ip: string & (tags.Format<\"ipv4\"> | tags.Format<\"ipv6\">);\n uuids: Array> &\n tags.MinItems<3> &\n tags.MaxItems<100>;\n}\n\"use strict\";\nvar __importDefault =\n (this && this.__importDefault) ||\n function (mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkSpecialTag = void 0;\nconst typia_1 = __importDefault(require(\"typia\"));\nconst checkSpecialTag = (input) => {\n const $io0 = (input) =>\n \"number\" === typeof input.int32 &&\n Math.floor(input.int32) === input.int32 &&\n -2147483648 <= input.int32 &&\n input.int32 <= 2147483647 &&\n (undefined === input.range ||\n (\"number\" === typeof input.range &&\n 19 < input.range &&\n input.range <= 100)) &&\n \"string\" === typeof input.minLength &&\n 3 <= input.minLength.length &&\n \"string\" === typeof input.pattern &&\n /^[a-z]+$/.test(input.pattern) &&\n (null === input.date ||\n (\"string\" === typeof input.date &&\n /^(d{4})-(d{2})-(d{2})$/.test(input.date))) &&\n \"string\" === typeof input.ip &&\n (/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(\n input.ip,\n ) ||\n /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(\n input.ip,\n )) &&\n Array.isArray(input.uuids) &&\n 3 <= input.uuids.length &&\n input.uuids.length <= 100 &&\n input.uuids.every(\n (elem) =>\n \"string\" === typeof elem &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n elem,\n ),\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n};\nexports.checkSpecialTag = checkSpecialTag;","restriction#Restriction":"When using @TypedQuery(), you've to follow such restrction.At first, type of @TypedQuery() must be a pure object type. It does not allow union type. Also, nullable and undefindable types are not allowed, either. Note that, query parameter type must be a sole object type without any extra definition.At next, type of properties must be atomic, or array of atomic type. In the atomic type case, the atomic type allows both nullable and undefindable types. However, mixed union atomic type like string | number or \"1\" | \"2\" | 3 are not allowed. Also, the array type does not allow both nullable and undefindable types, either.\nboolean\nnumber\nbigint\nstring\nexport interface SomeQueryDto {\n //----\n // ATOMIC TYPES\n //----\n // ALLOWED\n boolean: boolean;\n number: number;\n string: string;\n bigint: bigint;\n optional_number?: number;\n nullable_string: string | null;\n literal_union: \"A\" | \"B\" | \"C\" | \"D\";\n // NOT ALLOWED\n mixed_union: string | number | boolean;\n mixed_literal: \"A\" | \"B\" | 3;\n //----\n // ARRAY TYPES\n //----\n // ALLOWED\n nullable_element_array: (string | null)[];\n string_array: string[];\n number_array: number[];\n literal_union_array: (\"A\" | \"B\" | \"C\")[];\n literal_tuple: [\"A\", \"B\", \"C\"];\n // NOT ALLOWED\n optional_element_array: (string | undefined)[];\n optional_array: string[] | undefined;\n nullable_array: string[] | null;\n union_atomic_array: (string | number)[];\n mixed_literal_array: (\"A\", \"B\", 3)[];\n mixed_tuple: [\"A\", \"B\", 3];\n}"}},"/docs/core/TypedRoute":{"title":"Typedroute","data":{"outline#Outline":"export namespace TypedRoute {\n export function Get(path?: string): MethodDecorator;\n export function Post(path?: string): MethodDecorator;\n export function Put(path?: string): MethodDecorator;\n export function Patch(path?: string): MethodDecorator;\n export function Delete(path?: string): MethodDecorator;\n}\nRoute decorators 200x faster, even type safe and easy to use.TypedRoute is a namespaced module containing router decorators utilizing typia.assertStringify() function. Those decorators are almost same with original NestJS, but TypedRoute can boost up JSON serialization speed maximum 200x times faster than class-transformer, therefore much faster than original NestJS.Furthermore, as TypedRoute utilizes typia.assertStringify() function, it is even type safe. The typia.assertStringify() function validates response data type, via typia.assert() function, before JSON serialization. Therefore, if you try to return wrong typed value, it would be blocked with 500 internal server error.Moreover, TypedRoute is much easier than class-transformer, because it just needs only pure TypeScript type definition. If you can't understand the word \"pure TypeScript type\", then move to below #How to use section and read the IBbsArticle interface type. You may understand what it means.\nIf you want application/x-www-form-urlencoded type, use @TypedQuery.Post() instead.\n@TypedRoute.Get() is not essential for Swagger Documents or SDK Library building.Therefore, it is not a matter to use @TypedRoute.Post() or @Post() of the original NestJS.","how-to-use#How to use":"import { tags } from \"typia\";\nexport interface IBbsArticle extends IBbsArticle.IStore {\n id: string & tags.Format<\"uuid\">;\n created_at: string & tags.Format<\"date-time\">;\n}\nexport namespace IBbsArticle {\n export interface IStore {\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n files: IAttachmentFile[];\n }\n}\nexport interface IAttachmentFile {\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\n url: string & tags.Format<\"url\">;\n}\nimport { TypedRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { IBbsArticle } from \"./IBbsArticle\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n /**\n * Get random article for testing.\n */\n @TypedRoute.Get(\"random\")\n public async random(): Promise {\n return {\n id: \"2b5e21d8-0e44-4482-bd3e-4540dee7f3d6\",\n title: \"Hello nestia users\",\n body: \"Just use `TypedRoute.Get()` function like this\",\n created_at: \"2023-04-23T12:04:54.168Z\",\n files: [],\n };\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n /**\n * Get random article for testing.\n */\n random() {\n return __awaiter(this, void 0, void 0, function* () {\n return {\n id: \"2b5e21d8-0e44-4482-bd3e-4540dee7f3d6\",\n title: \"Hello nestia users\",\n body: \"Just use `TypedRoute.Get()` function like this\",\n created_at: \"2023-04-23T12:04:54.168Z\",\n files: [],\n };\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedRoute.Get(\"random\", {\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n \"string\" === typeof input.id &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime()) &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n Array.isArray(input.files) &&\n input.files.every(\n (elem) =>\n \"object\" === typeof elem && null !== elem && $io1(elem),\n );\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedRoute.Get.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.id &&\n (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input.id,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: 'string & Format<\"uuid\">',\n value: input.id,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: '(string & Format<\"uuid\">)',\n value: input.id,\n })) &&\n ((\"string\" === typeof input.created_at &&\n (!isNaN(new Date(input.created_at).getTime()) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: 'string & Format<\"date-time\">',\n value: input.created_at,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: '(string & Format<\"date-time\">)',\n value: input.created_at,\n })) &&\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n (((Array.isArray(input.files) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n input.files.every(\n (elem, _index1) =>\n (((\"object\" === typeof elem && null !== elem) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n })) &&\n $ao1(\n elem,\n _path + \".files[\" + _index1 + \"]\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n }));\n const $ao1 = (input, _path, _exceptionable = true) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n (1 <= input.name.length ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MinLength<1>\",\n value: input.name,\n })) &&\n (input.name.length <= 255 ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MaxLength<255>\",\n value: input.name,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected:\n \"((string & MinLength<1> & MaxLength<255>) | null)\",\n value: input.name,\n })) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n (1 <= input.extension.length ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MinLength<1>\",\n value: input.extension,\n })) &&\n (input.extension.length <= 8 ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MaxLength<8>\",\n value: input.extension,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"((string & MinLength<1> & MaxLength<8>) | null)\",\n value: input.extension,\n })) &&\n ((\"string\" === typeof input.url &&\n (/^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: 'string & Format<\"url\">',\n value: input.url,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: '(string & Format<\"url\">)',\n value: input.url,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^[a-zA-Z0-9]+:\\/\\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(\n input.url,\n );\n const $string = core_1.TypedRoute.Get.string;\n const $so0 = (input) =>\n `{\"id\":${$string(input.id)},\"created_at\":${$string(\n input.created_at,\n )},\"title\":${$string(input.title)},\"body\":${$string(\n input.body,\n )},\"files\":${`[${input.files\n .map((elem) => $so1(elem))\n .join(\",\")}]`}}`;\n const $so1 = (input) =>\n `{\"name\":${\n null !== input.name ? $string(input.name) : \"null\"\n },\"extension\":${\n null !== input.extension ? $string(input.extension) : \"null\"\n },\"url\":${$string(input.url)}}`;\n return $so0(input);\n };\n return stringify(assert(input));\n },\n }),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", []),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"random\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);\nJust call @TypedRoute.${method}() function on the target method, that's all.Nestia will analyze your type (IBbsArticle), and writes optimal code for the target type, in the compilation level. If you click the \"Compiled JavaScript File\" tab of above, you can see the optimal validation and JSON serialization code.Such optimization is called AOT (Ahead of Time) compilation, and it is the secret of TypedRoute.","special-tags#Special Tags":"You can enhance validation logic, of TypedRoute, through comment tags.You know what? @TypedRoute.${method}() functions are using typia.assertStringify() function, that is combined with typia.assert() and typia.stringify() functions. It is the secret of @TypedRoute.${method}() functions, which can validates response body data type before JSON serialization, and throws 500 internal server error when the data type is not matched.Also, as typia.assert() function can utililze comment tags for additional validation, TypedRoute also can utillze them, too. For reference, \"Type Tag\" means a intersection type with atomic type and special tag type of typia like number & tags.Type<\"uint32\">, and \"Comment Tag\" means a comment starting from @ symbol following @${name} ${value} format.With those type and comment tags, you can add additional validation logics. If you want to add a custom validation logic, you also can do it. Read below Guide Docments of typia, and see the example code. You may understand how to utilize such type and comment tags, in a few minutes.\ntypia > Validators > Custom Tags\nOutline\nType Tags\nComment Tags\nCustomization\nimport typia, { tags } from \"typia\";\nexport const checkSpecialTag = typia.createIs();\ninterface SpecialTag {\n int32: number & tags.Type<\"int32\">;\n range?: number & tags.ExclusiveMinimum<19> & tags.Maximum<100>;\n minLength: string & tags.MinLength<3>;\n pattern: string & tags.Pattern<\"^[a-z]+$\">;\n date: null | (string & tags.Format<\"date\">);\n ip: string & (tags.Format<\"ipv4\"> | tags.Format<\"ipv6\">);\n uuids: Array> &\n tags.MinItems<3> &\n tags.MaxItems<100>;\n}\n\"use strict\";\nvar __importDefault =\n (this && this.__importDefault) ||\n function (mod) {\n return mod && mod.__esModule ? mod : { default: mod };\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.checkSpecialTag = void 0;\nconst typia_1 = __importDefault(require(\"typia\"));\nconst checkSpecialTag = (input) => {\n const $io0 = (input) =>\n \"number\" === typeof input.int32 &&\n Math.floor(input.int32) === input.int32 &&\n -2147483648 <= input.int32 &&\n input.int32 <= 2147483647 &&\n (undefined === input.range ||\n (\"number\" === typeof input.range &&\n 19 < input.range &&\n input.range <= 100)) &&\n \"string\" === typeof input.minLength &&\n 3 <= input.minLength.length &&\n \"string\" === typeof input.pattern &&\n /^[a-z]+$/.test(input.pattern) &&\n (null === input.date ||\n (\"string\" === typeof input.date &&\n /^(d{4})-(d{2})-(d{2})$/.test(input.date))) &&\n \"string\" === typeof input.ip &&\n (/^(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(\n input.ip,\n ) ||\n /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/.test(\n input.ip,\n )) &&\n Array.isArray(input.uuids) &&\n 3 <= input.uuids.length &&\n input.uuids.length <= 100 &&\n input.uuids.every(\n (elem) =>\n \"string\" === typeof elem &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n elem,\n ),\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n};\nexports.checkSpecialTag = checkSpecialTag;","encrypedroute#EncrypedRoute":"export namespace EncrypedRoute {\n export function Get(path?: string): MethodDecorator;\n export function Post(path?: string): MethodDecorator;\n export function Put(path?: string): MethodDecorator;\n export function Patch(path?: string): MethodDecorator;\n export function Delete(path?: string): MethodDecorator;\n}\nEncrypted router decorator functions.EncryptedRoute is a namespaced module similar with TypedRoute, but it encrypts response body data through AES-128/256 CBC algorithm like below. Therefore, it would be slower than TypedRoute, but it guarantees the security of response body data.\nAES-128/256\nCBC mode\nPKCS #5 Padding\nBase64 Encoding\nFor reference, such encryption spec is not supported in the Swagger-UI. Instead, SDK (Software Development Kit) generated by @nestia/sdk supports it. Thus, you have to build and distribute the SDK library to the client developers when using such encryption decorators.","benchmark#Benchmark":"","json#JSON":"Comparing JSON serialization speed, typia is maximum 200x faster than class-transformer.For reference, Nestia is using typia, and NestJS is using class-transformer. The other one fast-json-stringify is made and used by fastify (do not mean NestJS fastify mode, but mean pure fastify library. NestJS fastify mode still utilizes class-transformer), and it requires JSON schema definition.From above benchmark graph, you can see that class-transformer is extremely slower than others, even including built-in JSON.stringify() function. I can't understand why NestJS has adopted such slow and difficult library. The other fast-json-stringify is enough faster, but it needs extra schema definition like class-validator, therefore not easy to use.\ntypia needs only pure TypeScript type.\nclass-transformer requires DTO class with decorator function calls.\nfast-json-stringify requires JSON schema definition.\nMeasured on AMD R9-7940HS, Rog Flow X13","server#Server":"Looking at above benchmark, someone may ask:\nJSON serialization speed affects on the server performance?I think that the JSON serialization is just a tiny thing in the server side, isn't it?\nMy answer is, \"Yes, it affects on the server performance\".Most operations in NodeJS server are asynchronously executed in background thread, what are called \"event based non-blocking I/O model\". However, JSON serialization is a synchronous operation running on the main thread. Therefore, if the JSON serialization speed is slow, it makes the entire server program slow.I'll show you the benchmark result that, how JSON serizliation speed affects on the server performance.\nMeasured on AMD R9-7940HS, Rog Flow X13"}},"/docs/core/WebSocketRoute":{"title":"Websocketroute","data":{"outline#Outline":"export function WebSocketRoute(path?: string): MethodDecorator;\nexport namespace WebSocketRoute {\n export function Acceptor(): ParameterDecorator;\n export function Driver(): ParameterDecorator;\n export function Header(): ParameterDecorator;\n export function Param(field: string): ParameterDecorator;\n export function Query(): ParameterDecorator;\n}\nimport { WebSocketRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { Driver, WebSocketAcceptor } from \"tgrid\";\nimport { ICalculator } from \"./api/structures/ICalculator\";\nimport { IListener } from \"./api/structures/IListener\";\nimport { Calculator } from \"./providers/Calculator\";\n@Controller(\"calculate\")\nexport class CalculateController {\n /**\n * Start simple calculator.\n *\n * Start simple calculator through WebSocket.\n */\n @WebSocketRoute(\"start\")\n public async start(\n @WebSocketRoute.Acceptor()\n acceptor: WebSocketAcceptor,\n @WebSocketRoute.Driver() driver: Driver,\n ): Promise {\n await acceptor.accept(new Calculator(driver));\n }\n}\nimport { TestValidator } from \"@nestia/e2e\";\nimport api from \"@samchon/calculator-api/lib/index\";\nimport { IListener } from \"@samchon/calculator-api/lib/structures/IListener\";\nexport const test_api_calculate_start = async (\n connection: api.IConnection,\n): Promise => {\n const stack: IListener.IEvent[] = [];\n const listener: IListener = {\n on: (event) => stack.push(event),\n };\n const { connector, driver } = await api.functional.calculate.start(\n connection,\n listener,\n );\n try {\n TestValidator.equals(\"plus\")(await driver.plus(4, 2))(6);\n TestValidator.equals(\"minus\")(await driver.minus(4, 2))(2);\n TestValidator.equals(\"multiply\")(await driver.multiply(4, 2))(8);\n TestValidator.equals(\"divide\")(await driver.divide(4, 2))(2);\n TestValidator.equals(\"events\")(stack)([\n { type: \"plus\", x: 4, y: 2, z: 6 },\n { type: \"minus\", x: 4, y: 2, z: 2 },\n { type: \"multiply\", x: 4, y: 2, z: 8 },\n { type: \"divide\", x: 4, y: 2, z: 2 },\n ]);\n } catch (exp) {\n throw exp;\n } finally {\n await connector.close();\n }\n};\nWebSocket route decorators.@WebSocketRoute() is a collection of decorators for WebSocket routes.Also, supports SDK (Software Development Kit), so that you can easily develop the WebSocket client.\nReferences\nTGrid > Guide Documents > Remote Procedure Call\nTGrid > Guide Documents > Features > Components\nTGrid > Guide Documents > Features > WebSocket Protocol\nTGrid > Guide Documents > Learn from Examples > NestJS WebSocket\n💻 Playground Website","how-to-use#How to use":"","application-setup#Application Setup":"import { WebSocketAdaptor } from \"@nestia/core\";\nimport { INestApplication } from \"@nestjs/common\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { CalculateModule } from \"./CalculateModule\";\nexport namespace CalculateBackend {\n export const start = async (): Promise => {\n const app: INestApplication = await NestFactory.create(CalculateModule);\n await WebSocketAdaptor.upgrade(app);\n await app.listen(3_000, \"0.0.0.0\");\n return app;\n };\n}\nAt first, you need to upgrade your NestJS application to support WebSocket protocol.Import WebSocketAdaptor class from @nestia/core, and call WebSocketAdaptor.upgrade() function with the NestJS application instance like above.If you don't upgrade it, @WebSocketRoute() decorated methods never work.","websocketroute#@WebSocketRoute()":"import { WebSocketRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { Driver, WebSocketAcceptor } from \"tgrid\";\nimport { ICalculator } from \"./api/structures/ICalculator\";\nimport { IListener } from \"./api/structures/IListener\";\nimport { Calculator } from \"./providers/Calculator\";\n@Controller(\"calculate\")\nexport class CalculateController {\n /**\n * Start simple calculator.\n *\n * Start simple calculator through WebSocket.\n */\n @WebSocketRoute(\"start\")\n public async start(\n @WebSocketRoute.Acceptor()\n acceptor: WebSocketAcceptor,\n @WebSocketRoute.Driver() driver: Driver,\n ): Promise {\n await acceptor.accept(new Calculator(driver));\n }\n}\nimport { Driver } from \"tgrid\";\nimport { ICalculator } from \"../api/structures/ICalculator\";\nimport { IListener } from \"../api/structures/IListener\";\nexport class Calculator implements ICalculator {\n public constructor(private readonly listener: Driver) {}\n public plus(x: number, y: number): number {\n const z: number = x + y;\n this.listener.on({ type: \"plus\", x, y, z }).catch(() => {});\n return z;\n }\n public minus(x: number, y: number): number {\n const z: number = x - y;\n this.listener.on({ type: \"minus\", x, y, z }).catch(() => {});\n return z;\n }\n public multiply(x: number, y: number): number {\n const z: number = x * y;\n this.listener.on({ type: \"multiply\", x, y, z }).catch(() => {});\n return z;\n }\n public divide(x: number, y: number): number {\n const z: number = x / y;\n this.listener.on({ type: \"divide\", x, y, z }).catch(() => {});\n return z;\n }\n}\nexport interface ICalculator {\n plus(a: number, b: number): number;\n minus(a: number, b: number): number;\n multiply(a: number, b: number): number;\n divide(a: number, b: number): number;\n}\nexport interface IListener {\n on(event: IListener.IEvent): void;\n}\nexport namespace IListener {\n export interface IEvent {\n type: string;\n x: number;\n y: number;\n z: number;\n }\n}\nimport { TestValidator } from \"@nestia/e2e\";\nimport api from \"@samchon/calculator-api/lib/index\";\nimport { IListener } from \"@samchon/calculator-api/lib/structures/IListener\";\nexport const test_api_calculate_start = async (\n connection: api.IConnection,\n): Promise => {\n const stack: IListener.IEvent[] = [];\n const listener: IListener = {\n on: (event) => stack.push(event),\n };\n const { connector, driver } = await api.functional.calculate.start(\n connection,\n listener,\n );\n try {\n TestValidator.equals(\"plus\")(await driver.plus(4, 2))(6);\n TestValidator.equals(\"minus\")(await driver.minus(4, 2))(2);\n TestValidator.equals(\"multiply\")(await driver.multiply(4, 2))(8);\n TestValidator.equals(\"divide\")(await driver.divide(4, 2))(2);\n TestValidator.equals(\"events\")(stack)([\n { type: \"plus\", x: 4, y: 2, z: 6 },\n { type: \"minus\", x: 4, y: 2, z: 2 },\n { type: \"multiply\", x: 4, y: 2, z: 8 },\n { type: \"divide\", x: 4, y: 2, z: 2 },\n ]);\n } catch (exp) {\n throw exp;\n } finally {\n await connector.close();\n }\n};\nAfter that, attach @WebSocketRoute() decorator function onto target method like above.Note that, never forget to defining the @WebSocketRoute.Acceptor() decorated parameter. It is essential for both WebSocket route method and SDK library generation. Each generic arguments of WebSocketAcceptor means like below:\nHeader: Header information received by client\nProvider: Service provider for client\nListener: Remote service provider from client\nAlso, the Driver is a type of the remote provider by client. If you call any function of the remote provider, your function call request will be sent to the remote client, and returned value would be recived from the client asynchronouly.Therefore, the Driver type converts every functions' return type to be Promise. In the client side, your Provider would be also wrapped into the Driver, so that client can call your functions asynchronously, too.","nested-decorators#Nested Decorators":"import { WebSocketRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { Driver, WebSocketAcceptor } from \"tgrid\";\nimport { tags } from \"typia\";\nimport { IAdvancedCalculator } from \"./api/structures/IAdvancedCalculator\";\nimport { IHeader } from \"./api/structures/IHeader\";\nimport { IListener } from \"./api/structures/IListener\";\nimport { IMemo } from \"./api/structures/IMemo\";\nimport { AdvancedCalculator } from \"./providers/AdvancedCalculator\";\n@Controller(\"calculate\")\nexport class CalculateController {\n /**\n * Start advanced calculator.\n *\n * Start advanced calculator through WebSocket with additional informations.\n *\n * @param id ID to assign\n * @param header Header information\n * @param memo Memo to archive\n */\n @WebSocketRoute(\":id/advance\")\n public async advance(\n @WebSocketRoute.Param(\"id\") id: string & tags.Format<\"uuid\">,\n @WebSocketRoute.Header() header: undefined | Partial,\n @WebSocketRoute.Query() memo: IMemo,\n @WebSocketRoute.Acceptor()\n acceptor: WebSocketAcceptor,\n ): Promise {\n if (header?.precision !== undefined && header.precision < 0)\n await acceptor.reject(1008, \"Invalid precision value\");\n else\n await acceptor.accept(\n new AdvancedCalculator(\n id,\n { precision: header?.precision ?? 2 },\n memo,\n acceptor.getDriver(),\n ),\n );\n }\n}\nimport { Driver } from \"tgrid\";\nimport { IAdvancedCalculator } from \"../api/structures/IAdvancedCalculator\";\nimport { IHeader } from \"../api/structures/IHeader\";\nimport { IListener } from \"../api/structures/IListener\";\nimport { IMemo } from \"../api/structures/IMemo\";\nexport class AdvancedCalculator implements IAdvancedCalculator {\n private round: (value: number) => number;\n public constructor(\n private readonly id: string,\n private readonly header: IHeader,\n private readonly memo: IMemo,\n private readonly listener: Driver,\n ) {\n this.round = roundPrecision(header.precision);\n }\n public getId(): string {\n return this.id;\n }\n public getPrecision(): number {\n return this.header.precision;\n }\n public getMemo(): IMemo {\n return this.memo;\n }\n public plus(x: number, y: number): number {\n const z: number = this.round(x + y);\n this.listener.on({ type: \"plus\", x, y, z }).catch(() => {});\n return z;\n }\n public minus(x: number, y: number): number {\n const z: number = this.round(x - y);\n this.listener.on({ type: \"minus\", x, y, z }).catch(() => {});\n return z;\n }\n public multiply(x: number, y: number): number {\n const z: number = this.round(x * y);\n this.listener.on({ type: \"multiply\", x, y, z }).catch(() => {});\n return z;\n }\n public divide(x: number, y: number): number {\n const z: number = this.round(x / y);\n this.listener.on({ type: \"divide\", x, y, z }).catch(() => {});\n return z;\n }\n}\nconst roundPrecision =\n (precision: number) =>\n (value: number): number => {\n const factor: number = Math.pow(10, precision);\n return Math.round(value * factor) / factor;\n };\nimport { IMemo } from \"./IMemo\";\nexport interface IAdvancedCalculator {\n plus(a: number, b: number): number;\n minus(a: number, b: number): number;\n multiply(a: number, b: number): number;\n divide(a: number, b: number): number;\n getId(): string;\n getPrecision(): number;\n getMemo(): IMemo;\n}\nexport interface IListener {\n on(event: IListener.IEvent): void;\n}\nexport namespace IListener {\n export interface IEvent {\n type: string;\n x: number;\n y: number;\n z: number;\n }\n}\nimport { TestValidator } from \"@nestia/e2e\";\nimport api from \"@samchon/calculator-api/lib/index\";\nimport { IListener } from \"@samchon/calculator-api/lib/structures/IListener\";\nimport { IMemo } from \"@samchon/calculator-api/lib/structures/IMemo\";\nimport { v4 } from \"uuid\";\nexport const test_api_calculate_advance = async (\n connection: api.IConnection,\n): Promise => {\n const stack: IListener.IEvent[] = [];\n const listener: IListener = {\n on: (event) => stack.push(event),\n };\n const id: string = v4();\n const memo: IMemo = {\n title: \"test\",\n description: null,\n time: Date.now(),\n };\n const { connector, driver } = await api.functional.calculate.advance(\n {\n ...connection,\n headers: { precision: 2 },\n },\n id,\n memo,\n listener,\n );\n try {\n TestValidator.equals(\"id\")(await driver.getId())(id);\n TestValidator.equals(\"memo\")(await driver.getMemo())(memo);\n TestValidator.equals(\"precision\")(await driver.getPrecision())(2);\n TestValidator.equals(\"plus\")(await driver.plus(1, 2))(3);\n TestValidator.equals(\"minus\")(await driver.minus(1, 2))(-1);\n TestValidator.equals(\"multiply\")(await driver.multiply(0.01, 0.02))(0);\n TestValidator.equals(\"divide\")(await driver.divide(1, 3))(0.33);\n TestValidator.equals(\"events\")(stack)([\n { type: \"plus\", x: 1, y: 2, z: 3 },\n { type: \"minus\", x: 1, y: 2, z: -1 },\n { type: \"multiply\", x: 0.01, y: 0.02, z: 0 },\n { type: \"divide\", x: 1, y: 3, z: 0.33 },\n ]);\n } catch (exp) {\n throw exp;\n } finally {\n await connector.close();\n }\n};\nIf you need additional parameters, you can use nested decorators.\n@WebSocketRoute.Acceptor(): Acceptor for the client connection\n@WebSocketRoute.Driver(): Driver for the remote provider by client\n@WebSocketRoute.Header(): Header information from the client\n@WebSocketRoute.Param(): URL path parameter\n@WebSocketRoute.Query(): URL query parameter\nFor reference, those decorators are almost same with @TypedHeaders(), @TypedParam() and @TypedQuery(). However, they can't be used in @WebSocketRoute() decorated method. Only nested decorator functions under the WebSocketRoute module are allowed.Also, if you don't want to accept the client connection, reject it through WebSocketAcceptor.close() function.","software-development-kit#Software Development Kit":"Related Document: Software Development KitWhen you configure a nestia.config.ts file and run npx nestia sdk command, @nestia/sdk will generate a SDK (Software Development Kit) library for the WebSocket route. With the SDK library, you can easily develop the WebSocket client application with TypeScript types.Also, as I've mentioned above, remote provider by WebSocket server is wrapped into the Driver type, so that the client application can call the remote provider's function asynchronously. For example, ICalculator.plus() function returned number value in the server side, but Driver returns Promise type.In the same reason, the IListener type would be wrapped into the Driver in the server side, and the listener provider would be called asynchronously in the server side through the WebSocket network communication.\nimport { TestValidator } from \"@nestia/e2e\";\nimport api from \"@samchon/calculator-api/lib/index\";\nimport { IListener } from \"@samchon/calculator-api/lib/structures/IListener\";\nexport const test_api_calculate_start = async (\n connection: api.IConnection,\n): Promise => {\n const stack: IListener.IEvent[] = [];\n const listener: IListener = {\n on: (event) => stack.push(event),\n };\n const { connector, driver } = await api.functional.calculate.start(\n connection,\n listener,\n );\n try {\n TestValidator.equals(\"plus\")(await driver.plus(4, 2))(6);\n TestValidator.equals(\"minus\")(await driver.minus(4, 2))(2);\n TestValidator.equals(\"multiply\")(await driver.multiply(4, 2))(8);\n TestValidator.equals(\"divide\")(await driver.divide(4, 2))(2);\n TestValidator.equals(\"events\")(stack)([\n { type: \"plus\", x: 4, y: 2, z: 6 },\n { type: \"minus\", x: 4, y: 2, z: 2 },\n { type: \"multiply\", x: 4, y: 2, z: 8 },\n { type: \"divide\", x: 4, y: 2, z: 2 },\n ]);\n } catch (exp) {\n throw exp;\n } finally {\n await connector.close();\n }\n};\n/**\n * @packageDocumentation\n * @module api.functional.calculate\n * @nestia Generated by Nestia - https://github.com/samchon/nestia\n */\n//================================================================\nimport type { IConnection } from \"@nestia/fetcher\";\nimport { WebSocketConnector } from \"tgrid\";\nimport type { Driver } from \"tgrid\";\nimport type { Format } from \"typia/lib/tags/Format\";\nimport type { IAdvancedCalculator } from \"../../structures/IAdvancedCalculator\";\nimport type { IHeader } from \"../../structures/IHeader\";\nimport type { IListener } from \"../../structures/IListener\";\nimport type { IMemo } from \"../../structures/IMemo\";\n/**\n * Start advanced calculator.\n *\n * Start advanced calculator through WebSocket with additional informations.\n *\n * @param id ID to assign\n * @param memo Memo to archive\n *\n * @controller CalculateController.advance\n * @path /calculate/:id/advance\n * @nestia Generated by Nestia - https://github.com/samchon/nestia\n */\nexport async function advance(\n connection: IConnection,\n id: string & Format<\"uuid\">,\n memo: advance.Query,\n provider: advance.Provider,\n): Promise {\n const connector: WebSocketConnector<\n advance.Header,\n advance.Provider,\n advance.Listener\n > = new WebSocketConnector(connection.headers ?? ({} as any), provider);\n await connector.connect(\n `${connection.host}/${advance.path(id, memo)}`\n .split(\"/\")\n .filter((str) => !!str)\n .join(\"/\"),\n );\n const driver: Driver = connector.getDriver();\n return {\n connector,\n driver,\n };\n}\nexport namespace advance {\n export type Output = {\n connector: WebSocketConnector;\n driver: Driver;\n };\n export type Header = undefined | Partial;\n export type Provider = IListener;\n export type Listener = IAdvancedCalculator;\n export type Query = IMemo;\n export const path = (id: string & Format<\"uuid\">, memo: advance.Query) => {\n const variables: URLSearchParams = new URLSearchParams();\n for (const [key, value] of Object.entries(memo as any))\n if (undefined === value) continue;\n else if (Array.isArray(value))\n value.forEach((elem: any) => variables.append(key, String(elem)));\n else variables.set(key, String(value));\n const location: string = `/calculate/${encodeURIComponent(id ?? \"null\")}/advance`;\n return 0 === variables.size\n ? location\n : `${location}?${variables.toString()}`;\n };\n}\nimport { WebSocketRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { Driver, WebSocketAcceptor } from \"tgrid\";\nimport { tags } from \"typia\";\nimport { IAdvancedCalculator } from \"./api/structures/IAdvancedCalculator\";\nimport { IHeader } from \"./api/structures/IHeader\";\nimport { IListener } from \"./api/structures/IListener\";\nimport { IMemo } from \"./api/structures/IMemo\";\nimport { AdvancedCalculator } from \"./providers/AdvancedCalculator\";\n@Controller(\"calculate\")\nexport class CalculateController {\n /**\n * Start advanced calculator.\n *\n * Start advanced calculator through WebSocket with additional informations.\n *\n * @param id ID to assign\n * @param header Header information\n * @param memo Memo to archive\n */\n @WebSocketRoute(\":id/advance\")\n public async advance(\n @WebSocketRoute.Param(\"id\") id: string & tags.Format<\"uuid\">,\n @WebSocketRoute.Header() header: undefined | Partial,\n @WebSocketRoute.Query() memo: IMemo,\n @WebSocketRoute.Acceptor()\n acceptor: WebSocketAcceptor,\n ): Promise {\n if (header?.precision !== undefined && header.precision < 0)\n await acceptor.reject(1008, \"Invalid precision value\");\n else\n await acceptor.accept(\n new AdvancedCalculator(\n id,\n { precision: header?.precision ?? 2 },\n memo,\n acceptor.getDriver(),\n ),\n );\n }\n}\nimport { IMemo } from \"./IMemo\";\nexport interface IAdvancedCalculator {\n plus(a: number, b: number): number;\n minus(a: number, b: number): number;\n multiply(a: number, b: number): number;\n divide(a: number, b: number): number;\n getId(): string;\n getPrecision(): number;\n getMemo(): IMemo;\n}\nexport interface IListener {\n on(event: IListener.IEvent): void;\n}\nexport namespace IListener {\n export interface IEvent {\n type: string;\n x: number;\n y: number;\n z: number;\n }\n}","restrictions#Restrictions":"","websocketacceptor#@WebSocketAcceptor()":"When defining @WebSocketRoute() decorated method, you must define the @WebSocketRoute.Acceptor() decorated parameter. It is essential for both WebSocket route method and SDK library generation, because its target type WebSocketAcceptor has significant type definitions for WebSocket communication.\nHeader: Header information received by client\nProvider: Service provider for client\nListener: Remote service provider from client\nimport { WebSocketRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { Driver, WebSocketAcceptor } from \"tgrid\";\nimport { ICalculator } from \"./api/structures/ICalculator\";\nimport { IListener } from \"./api/structures/IListener\";\nimport { Calculator } from \"./providers/Calculator\";\n@Controller(\"calculate\")\nexport class CalculateController {\n /**\n * Start simple calculator.\n *\n * Start simple calculator through WebSocket.\n */\n @WebSocketRoute(\"start\")\n public async start(\n @WebSocketRoute.Acceptor()\n acceptor: WebSocketAcceptor,\n @WebSocketRoute.Driver() driver: Driver,\n ): Promise {\n await acceptor.accept(new Calculator(driver));\n }\n}","websocketrouteparam#@WebSocketRoute.Param()":"@WebSocketRoute.Param() allows only atomic type.\nboolean\nnumber\nstring\nAlso, @WebSocketRoute.Param() allows nullable like number | null, but undefindable type is not.\nnumber | null is allowed\nstring | undefined is prohibited\nIf you violate above condition, and try to declare object or union type, compilation error would be occured:\nError on nestia.core.WebSocketRoute.Param(): only atomic type is allowed","websocketroutequery#@WebSocketRoute.Query()":"When using @WebSocketRoute.Query(), you've to follow such restrction.At first, type of @WebSocketRoute.Query() must be a pure object type. It does not allow union type. Also, nullable and undefindable types are not allowed, either. Note that, query parameter type must be a sole object type without any extra definition.At next, type of properties must be atomic, or array of atomic type. In the atomic type case, the atomic type allows both nullable and undefindable types. However, mixed union atomic type like string | number or \"1\" | \"2\" | 3 are not allowed. Also, the array type does not allow both nullable and undefindable types, either.\nboolean\nnumber\nbigint\nstring\nexport interface SomeQueryDto {\n //----\n // ATOMIC TYPES\n //----\n // ALLOWED\n boolean: boolean;\n number: number;\n string: string;\n bigint: bigint;\n optional_number?: number;\n nullable_string: string | null;\n literal_union: \"A\" | \"B\" | \"C\" | \"D\";\n // NOT ALLOWED\n mixed_union: string | number | boolean;\n mixed_literal: \"A\" | \"B\" | 3;\n //----\n // ARRAY TYPES\n //----\n // ALLOWED\n nullable_element_array: (string | null)[];\n string_array: string[];\n number_array: number[];\n literal_union_array: (\"A\" | \"B\" | \"C\")[];\n literal_tuple: [\"A\", \"B\", \"C\"];\n // NOT ALLOWED\n optional_element_array: (string | undefined)[];\n optional_array: string[] | undefined;\n nullable_array: string[] | null;\n union_atomic_array: (string | number)[];\n mixed_literal_array: (\"A\", \"B\", 3)[];\n mixed_tuple: [\"A\", \"B\", 3];\n}"}},"/docs/e2e/why":{"title":"Why","data":{"outline#Outline":"E2E test functions rather than unit test functions.When developing a test program for NestJS developed backend server, I recommend to adapt E2E test paradigm instead of unit test paradigm. It's because with the @nestia/sdk generated SDK library, E2E test functions can be much easier, safer and efficient for production than the traditional unit test functions.Furthermore, if you develop test functions utilizing the SDK library, you can easily switch the e2e test functions to the performance benchmark functions. Just by utilizing @nestia/e2e library, you can easily measure your NestJS developed backend server's performance through the SDK library utilizing e2e test functions.\nE2E Test Function Example\nBenchmark Result Example\nSDK library utilizing test functions can be used in the performance benchmark program","efficient-for-production#Efficient for Production":"New era, age of E2E testing paradigm comes.In the past era, backend developers had developed test programs following the unit test paradigm. It's because traditional E2E test functions' development could not take any advantage of compiled language's type safety. As you can see from the below example code, E2E test functions had to write hard-coded fetch() function with string literals.Besides, unit test could take advantages of compiled language's type safety by importing related modules. Therefore, it was more efficient to develop test functions following the unit test paradigm. This is the reason why unit test paradigm had been loved in the past era.\nimport { TestValidator } from \"@nestia/e2e\";\nimport typia from \"typia\";\nimport { IBbsArticle } from \"@samchon/bbs-api/lib/structures/bbs/IBbsArticle\";\nexport const test_api_bbs_article_create = async (\n host: string,\n): Promise => {\n // In the traditional age, E2E test function could not take advantages \n // of type safety of the TypeScript. Instead, have to write hard-coded\n // `fetch()` function with string literals.\n const response: Response = await fetch(`${host}/bbs/articles`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n writer: \"someone\",\n password: \"1234\",\n title: \"title\",\n body: \"content\",\n format: \"md\",\n files: [],\n } satisfies IBbsArticle.ICreate),\n });\n const article: IBbsArticle = await response.json();\n typia.assert(article);\n const read: IBbsArticle = await (async () => {\n const response: Response = await fetch(`${host}/bbs/articles/${article.id}`);\n const article: IBbsArticle = await response.json();\n return typia.assert(article);\n })();\n TestValidator.equals(\"written\")(article)(read);\n};\nimport { TestValidator } from \"@nestia/e2e\";\nimport typia from \"typia\";\nimport { IBbsArticle } from \"@samchon/bbs-api/lib/structures/bbs/IBbsArticle\";\nimport { BbsArticleProvider } from \"../../../../src/providers/bbs/BbsArticleProvider\";\nexport const test_provider_bbs_article_create = async (): Promise => {\n // Besides, unit test could take advantages of type safety.\n const article: IBbsArticle = await BbsArticleProvider.write({\n writer: \"someone\",\n password: \"1234\",\n title: \"title\",\n body: \"content\",\n format: \"md\",\n files: [],\n });\n typia.assert(article);\n // Therefore, unit test had been loved in the past era\n const read: IBbsArticle = await BbsArticleProvider.at(article.id);\n typia.assert(read);\n TestValidator.equals(\"written\")(article)(read);\n};\nHowever, in the new era, e2e test functions also can take advantages of the type safety. Just import SDK library generated by @nestia/e2e, and call API funtions of it with TypeScript type hints. In this way, as both e2e test paradigm and unit test paradigm can take advantages of type safety, we have to consider which strategy is suitable for the production environment.In here article, I recommend to adapt e2e test paradigm in the below reasons.\nsuitable for CDD (Contract Driven Development)\neasy to develop and maintain\nmuch safer than unit testing due to its coverage\ncan be used for the performance benchmark\ncan guide client developers as an example code\nLook at the below example code of new era's e2e test function, and compare it with the traditional unit test function. As you can see, e2e test function actually tests the backend server's behavior by calling the real API endpoints of it. Besides, unit test can't test the backend server's actual behavior. It just validates the provider's behavior. This is the reason why new era's e2e test function is safer than unit test function.Also, such new era's e2e test function can be provided to the client or frontend developers as an example code. It guides them how to call the backend server's API endpoints through the SDK library. In this way, e2e test function can be used as a well-structured document for the client developers.\nimport { TestValidator } from \"@nestia/e2e\";\nimport typia from \"typia\";\nimport BbsApi from \"@samchon/bbs-api\";\nimport { IBbsArticle } from \"@samchon/bbs-api/lib/structures/bbs/IBbsArticle\";\nexport const test_provider_bbs_article_create = async (\n connection: BbsApi.IConnection\n): Promise => {\n // Unit test functions can't validate \n // the backend server's actual behavior.\n const article: IBbsArticle = await BbsApi.functional.bbs.articles.create(\n connection,\n {\n writer: \"someone\",\n password: \"1234\",\n title: \"title\",\n body: \"content\",\n format: \"md\",\n files: [],\n },\n );\n typia.assert(article);\n // This is the reason why I've adopted the e2e test paradigm\n const read: IBbsArticle = await BbsApi.functional.bbs.articles.at(\n connection,\n article.id,\n );\n typia.assert(read);\n TestValidator.equals(\"written\")(article)(read);\n};\nimport { TestValidator } from \"@nestia/e2e\";\nimport typia from \"typia\";\nimport BbsApi from \"@samchon/bbs-api\";\nimport { BbsArticleProvider } from \"../../../../src/providers/bbs/BbsArticleProvider\";\nexport const test_provider_bbs_article_create = async (): Promise => {\n // Unit test functions can't validate \n // the backend server's actual behavior.\n const article: IBbsArticle = await BbsArticleProvider.write({\n writer: \"someone\",\n password: \"1234\",\n title: \"title\",\n body: \"content\",\n format: \"md\",\n files: [],\n });\n typia.assert(article);\n // This is the reason why I've adopted the e2e test paradigm\n const read: IBbsArticle = await BbsArticleProvider.at(article.id);\n typia.assert(read);\n TestValidator.equals(\"written\")(article)(read);\n};\nAt last, the new era's e2e test functions can be used for the performance benchmark without any extra dedication. As the e2e test function directly calls the API endpoints of the backend server, backend server performance benchmark program can be easily developed by utilizing them.Those are the reasons why I recommend to adapt the new era's e2e test paradigm instead of the traditional unit test paradigm. Those are the reason why I am insisting that e2e test functions are efficient for production. From now on, let's see how to compose the e2e test functions for the NestJS developed backend server.\nYou can experience benchmark program utilizing e2e test functions.💻 https://stackblitz.com/~/github.com/samchon/nestia-start","test-program-development#Test Program Development":"import { DynamicExecutor } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api\";\nimport { MyBackend } from \"../src/MyBackend\";\nimport { MyConfiguration } from \"../src/MyConfiguration\";\nimport { MyGlobal } from \"../src/MyGlobal\";\nimport { ArgumentParser } from \"./helpers/ArgumentParser\";\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n}\nconst getOptions = () =>\n ArgumentParser.parse(async (command, _prompt, action) => {\n // command.option(\"--mode \", \"target mode\");\n // command.option(\"--reset \", \"reset local DB or not\");\n command.option(\"--include \", \"include feature files\");\n command.option(\"--exclude \", \"exclude feature files\");\n return action(async (options) => {\n // if (typeof options.reset === \"string\")\n // options.reset = options.reset === \"true\";\n // options.mode ??= await prompt.select(\"mode\")(\"Select mode\")([\n // \"LOCAL\",\n // \"DEV\",\n // \"REAL\",\n // ]);\n // options.reset ??= await prompt.boolean(\"reset\")(\"Reset local DB\");\n return options as IOptions;\n });\n });\nasync function main(): Promise {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n //----\n // CLINET CONNECTOR\n //----\n // DO TEST\n const connection: api.IConnection = {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n };\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: \"test\",\n parameters: () => [{ ...connection }],\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n })(__dirname + \"/features\");\n await backend.close();\n const failures: DynamicExecutor.IReport.IExecution[] =\n report.executions.filter((exec) => exec.error !== null);\n if (failures.length === 0) {\n console.log(\"Success\");\n console.log(\"Elapsed time\", report.time.toLocaleString(), `ms`);\n } else {\n for (const f of failures) console.log(f.error);\n process.exit(-1);\n }\n console.log(\n [\n `All: #${report.executions.length}`,\n `Success: #${report.executions.length - failures.length}`,\n `Failed: #${failures.length}`,\n ].join(\"\\n\"),\n );\n}\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\nimport { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_create(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const stored: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password: v4(),\n },\n );\n // READ THE DATA AGAIN\n const read: IBbsArticle = await api.functional.bbs.articles.at(\n connection,\n stored.section,\n stored.id,\n );\n TestValidator.equals(\"created\")(stored)(read);\n}\nimport { ArrayUtil, RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nimport { IPage } from \"@ORGANIZATION/PROJECT-api/lib/structures/common/IPage\";\nexport async function test_api_bbs_article_index_search(\n connection: api.IConnection,\n): Promise {\n // GENERATE 100 ARTICLES\n const section: string = \"general\";\n const articles: IBbsArticle[] = await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(4)(),\n body: RandomGenerator.content(3)()(),\n format: \"txt\",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n // GET ENTIRE DATA\n const total: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n sort: [\"-created_at\"],\n });\n // PREPARE SEARCH FUNCTION\n const search = TestValidator.search(\"BbsArticleProvider.index()\")(\n async (input: IBbsArticle.IRequest.ISearch) => {\n const page: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n search: input,\n sort: [\"-created_at\"],\n });\n return page.data;\n },\n )(total.data, 10);\n // SEARCH TITLE\n await search({\n fields: [\"title\"],\n values: (article) => [article.title],\n request: ([title]) => ({ title }),\n filter: (article, [title]) => article.title.includes(title),\n });\n // SEARCH WRITER\n await search({\n fields: [\"writer\"],\n values: (article) => [article.writer],\n request: ([writer]) => ({ writer }),\n filter: (article, [writer]) => article.writer.includes(writer),\n });\n // SEARCH BOTH OF THEM\n await search({\n fields: [\"title\", \"writer\"],\n values: (article) => [article.title, article.writer],\n request: ([title, writer]) => ({ title, writer }),\n filter: (article, [title, writer]) =>\n article.title.includes(title) && article.writer.includes(writer),\n });\n}\nJust make test functions utillizing SDK library, and export those functions with test_ prefixed names. And then if compose the main program of the test, all of the test functions would be automatically mounted and executed whenever you run the main test program.If you want to experience the test program earlier, visit below playground website.💻 https://stackblitz.com/~/github.com/samchon/nestia-start\n- test_api_bbs_article_at: 149 ms\n- test_api_bbs_article_create: 30 ms\n- test_api_bbs_article_index_search: 1,312 ms\n- test_api_bbs_article_index_sort: 1,110 ms\n- test_api_bbs_article_update: 28 m","performance-benchmark#Performance Benchmark":"import { DynamicBenchmarker } from \"@nestia/e2e\";\nimport cliProgress from \"cli-progress\";\nimport fs from \"fs\";\nimport os from \"os\";\nimport { IPointer } from \"tstl\";\nimport { MyBackend } from \"../../src/MyBackend\";\nimport { MyConfiguration } from \"../../src/MyConfiguration\";\nimport { MyGlobal } from \"../../src/MyGlobal\";\nimport { ArgumentParser } from \"../helpers/ArgumentParser\";\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n count: number;\n threads: number;\n simultaneous: number;\n}\nconst getOptions = () =>\n ArgumentParser.parse(async (command, prompt, action) => {\n // command.option(\"--mode \", \"target mode\");\n // command.option(\"--reset \", \"reset local DB or not\");\n command.option(\"--include \", \"include feature files\");\n command.option(\"--exclude \", \"exclude feature files\");\n command.option(\"--count \", \"number of requests to make\");\n command.option(\"--threads \", \"number of threads to use\");\n command.option(\n \"--simultaneous \",\n \"number of simultaneous requests to make\",\n );\n return action(async (options) => {\n // if (typeof options.reset === \"string\")\n // options.reset = options.reset === \"true\";\n // options.mode ??= await prompt.select(\"mode\")(\"Select mode\")([\n // \"LOCAL\",\n // \"DEV\",\n // \"REAL\",\n // ]);\n // options.reset ??= await prompt.boolean(\"reset\")(\"Reset local DB\");\n options.count = Number(\n options.count ??\n (await prompt.number(\"count\")(\"Number of requests to make\")),\n );\n options.threads = Number(\n options.threads ??\n (await prompt.number(\"threads\")(\"Number of threads to use\")),\n );\n options.simultaneous = Number(\n options.simultaneous ??\n (await prompt.number(\"simultaneous\")(\n \"Number of simultaneous requests to make\",\n )),\n );\n return options as IOptions;\n });\n });\nconst main = async (): Promise => {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n // DO BENCHMARK\n const prev: IPointer = { value: 0 };\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\n {},\n cliProgress.Presets.shades_classic,\n );\n bar.start(options.count, 0);\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\n servant: `${__dirname}/servant.js`,\n count: options.count,\n threads: options.threads,\n simultaneous: options.simultaneous,\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n progress: (value: number) => {\n if (value >= 100 + prev.value) {\n bar.update(value);\n prev.value = value;\n }\n },\n stdio: \"ignore\",\n });\n bar.stop();\n // DOCUMENTATION\n try {\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\n recursive: true,\n });\n } catch {}\n await fs.promises.writeFile(\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\n .cpus()[0]\n .model.trim()\n .split(\"\\\\\")\n .join(\"\")\n .split(\"/\")\n .join(\"\")}.md`,\n DynamicBenchmarker.markdown(report),\n \"utf8\",\n );\n // CLOSE\n await backend.close();\n};\nmain().catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\nimport { DynamicBenchmarker } from \"@nestia/e2e\";\nimport { MyConfiguration } from \"../../src/MyConfiguration\";\nDynamicBenchmarker.servant({\n connection: {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n },\n location: `${__dirname}/../features`,\n parameters: (connection) => [connection],\n prefix: \"test_api_\",\n}).catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\nimport { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_create(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const stored: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password: v4(),\n },\n );\n // READ THE DATA AGAIN\n const read: IBbsArticle = await api.functional.bbs.articles.at(\n connection,\n stored.section,\n stored.id,\n );\n TestValidator.equals(\"created\")(stored)(read);\n}\nimport { ArrayUtil, RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nimport { IPage } from \"@ORGANIZATION/PROJECT-api/lib/structures/common/IPage\";\nexport async function test_api_bbs_article_index_search(\n connection: api.IConnection,\n): Promise {\n // GENERATE 100 ARTICLES\n const section: string = \"general\";\n const articles: IBbsArticle[] = await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(4)(),\n body: RandomGenerator.content(3)()(),\n format: \"txt\",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n // GET ENTIRE DATA\n const total: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n sort: [\"-created_at\"],\n });\n // PREPARE SEARCH FUNCTION\n const search = TestValidator.search(\"BbsArticleProvider.index()\")(\n async (input: IBbsArticle.IRequest.ISearch) => {\n const page: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n search: input,\n sort: [\"-created_at\"],\n });\n return page.data;\n },\n )(total.data, 10);\n // SEARCH TITLE\n await search({\n fields: [\"title\"],\n values: (article) => [article.title],\n request: ([title]) => ({ title }),\n filter: (article, [title]) => article.title.includes(title),\n });\n // SEARCH WRITER\n await search({\n fields: [\"writer\"],\n values: (article) => [article.writer],\n request: ([writer]) => ({ writer }),\n filter: (article, [writer]) => article.writer.includes(writer),\n });\n // SEARCH BOTH OF THEM\n await search({\n fields: [\"title\", \"writer\"],\n values: (article) => [article.title, article.writer],\n request: ([title, writer]) => ({ title, writer }),\n filter: (article, [title, writer]) =>\n article.title.includes(title) && article.writer.includes(writer),\n });\n}\nYou can re-use test functions for the performance benchmark program.Just compose the benchmark's main and servant programs like above pointing the test functions' directory, then the benchmark program would utilize those test functions for the backend server performance measurement. The benchmark program will make multiple worker threads, and let them to make requests to the backend server simultaneously through the test functions.If you want to experience the benchmark program earlier, visit below playground website.💻 https://stackblitz.com/~/github.com/samchon/nestia-start\n? Number of requests to make 1024\n? Number of threads to use 4\n? Number of simultaneous requests to make 32\n████████████████████████████████████████ 100% | ETA: 0s | 3654/1024"}},"/docs/pure":{"title":"Pure TypeScript","data":{"outline#Outline":"nestia can use pure TypeScript type.You know what? NestJS needs triple duplicated DTO schema definitions. The 1st is defining TypeScript type, the 2nd and 3rd are calling decorator functions of class-validator and @nestjs/swagger. It's not only annoying, but also error-prone. If you take any mistake on the 2nd or 3rd, it can't be detected by TypeScript compiler. It will be detected only at runtime. Another words, it is not type safe.Besides, nestia needs only pure TypeScript type. You don't need to define any extra schema like class-validator or @nestjs/swagger. Just define pure TypeScript type only (especially recommend to use interface type), then nestia will do all the rest.","demonstration#Demonstration":"If you're confusing how DTO of NestJS and nestia are different, just see example codes below.At first, look at the first (Triple duplicated NestJS DTO) tab, and find the BbsArticle.files property, enhanced by blue coloured blocks. Looking at the files property, how do you feel? Just defining an array object type, you've to call 7 decorator functions. If you take any mistake when using the decorator like omitting isArray property, it would be a critical runtime error.Besides, nestia needs only one line. Click the second (Pure Nestia DTO) tab, and find the IAttachmentFile.files property. Only one line being used, and IBbsArticle and IAttachment types are not even class, but just interface types. Comparing it to the first tab, how do you feel? Isn't it more simple and readable?This is the power of nestia, with pure TypeScript type.\nimport { ApiProperty } from \"@nestjs/swagger\";\nimport {\n ArrayNotEmpty,\n IsArray,\n IsObject,\n IsOptional,\n IsString,\n Match,\n MaxLength,\n Type,\n ValidateNested,\n} from \"class-validator\";\nexport class BbsArticle {\n @ApiProperty({\n format: \"uuid\",\n })\n @IsString()\n id!: string;\n // DUPLICATED SCHEMA DEFINITION\n // - duplicated function call + property type\n // - have to specify `isArray` and `nullable` props by yourself\n @ApiProperty({\n type: () => AttachmentFile,\n nullable: true,\n isArray: true,\n description: \"List of attached files.\",\n })\n @Type(() => AttachmentFile)\n @IsArray()\n @IsOptional()\n @IsObject({ each: true })\n @ValidateNested({ each: true })\n files!: AttachmentFile[] | null;\n @ApiProperty({\n type: \"string\",\n nullable: true,\n minLength: 5,\n maxLength: 100,\n description: \"Title of the article.\",\n })\n @IsOptional()\n @IsString()\n title!: string | null;\n @ApiProperty({\n description: \"Main content body of the article.\",\n })\n @IsString()\n body!: string;\n @ApiProperty({\n format: \"date-time\",\n description: \"Creation time of article\",\n })\n @IsString()\n created_at!: string;\n}\nexport class AttachmentFile {\n @ApiProperty({\n type: \"string\",\n maxLength: 255,\n pattern: \"^[a-zA-Z0-9-_]+$\",\n description: \"File name.\",\n })\n @Matches(/^[a-z0-9]+$/)\n @MaxLength(255)\n @IsString()\n name!: string | null;\n @ApiProperty({\n type: \"string\",\n nullable: true,\n maxLength: 255,\n pattern: \"^[a-zA-Z0-9-_]+$\",\n description: \"File extension.\",\n })\n @Matches(/^[a-z0-9]+$/)\n @MaxLength(8)\n @IsOptional()\n @IsString()\n extension!: string | null;\n @ApiProperty({\n format: \"url\",\n description: \"URL of the file.\",\n })\n @IsString()\n url!: string;\n}\nimport { tags } from \"typia\";\nexport interface IBbsArticle {\n /**\n * Primary Key.\n */\n id: string & tags.Format<\"uuid\">;\n /**\n * List of attached files.\n */\n files: null | IAttachmentFile[];\n /**\n * Title of the article.\n *\n * @minLength 5\n * @maxLength 100\n */\n title: null | (string & tags.MinLength<5> & tags.MaxLength<100>);\n /**\n * Main content body of the article.\n */\n body: string;\n /**\n * Creation time of article.\n *\n * @format date-time\n */\n created_at: string & tags.Format<\"date-time\">;\n}\nexport interface IAttachmentFile {\n /**\n * File name.\n *\n * @pattern ^[a-z0-9]+$\n * @maxLength 255\n */\n name: string & tags.Pattern<\"^[a-z0-9]+$\"> & tags.MaxLength<255>;\n /**\n * File extension.\n */\n extension: null | (string & tags.Pattern<\"^[a-z0-9]+$\"> & tags.MaxLength<8>);\n /**\n * URL of the file.\n */\n url: string;\n}","aot-compilation#AOT Compilation":"Someone may be suspicious of the phrase \"Pure TypeScript Type\".\n\"As you know, TypeScript types do not have any tangible instance when compiled to JS.However, with only these fictitious TypeScript types, how can nestia validates types at runtime? How nestia builds swagger documents or SDK library with only these types? Are these things really possible without extra schema definition like class-validator or @nestjs/swagger?\"\nMy answer is: \"Yes, it is possible due to nestia analyzes your server code, and performs AOT compilation\".When compiling, nestia travels your NestJS server codes, and analyzes DTO definitions. And then, nestia writes optimal code to the compiled JavaScript file. In the @TypedBody() case, nestia transforms it to optimal validation code for the IBbsArticle.IStore type. Also, nestia transforms @TypedRoute.Post() function to optimal JSON serialization code for the IBbsArticle type.Such compile time optimization is called AOT (Ahead of Time) compilation. And this is the secret why nestia can do everything with only pure TypeScript type. Read below example codes, and just look how JavaScript file being compiled. Then you may understand why nestia is much easier, and futhermore much faster.\nRuntime validator is 20,000x faster than class-validator\nJSON serialization is 200x faster than class-transformer\nimport { tags } from \"typia\";\nexport interface IBbsArticle extends IBbsArticle.ICreate {\n id: string & tags.Format<\"uuid\">;\n created_at: string & tags.Format<\"date-time\">;\n}\nexport namespace IBbsArticle {\n export interface ICreate {\n title: string & tags.MinLength<3> & tags.MaxLength<50>;\n body: string;\n files: IAttachmentFile[];\n }\n}\nexport interface IAttachmentFile {\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\n url: string | (string & tags.Format<\"url\">);\n}\nimport { TypedBody, TypedRoute } from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport { IBbsArticle } from \"./IBbsArticle\";\n@Controller(\"bbs/articles\")\nexport class BbsArticlesController {\n @TypedRoute.Post() // 200x faster JSON serialization\n public async store(\n // 20,000x faster validation\n @TypedBody() input: IBbsArticle.ICreate,\n ): Promise {\n return {\n ...input,\n id: \"2b5e21d8-0e44-4482-bd3e-4540dee7f3d6\",\n created_at: \"2023-04-23T12:04:54.168Z\",\n };\n }\n}\n\"use strict\";\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BbsArticlesController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet BbsArticlesController = class BbsArticlesController {\n store(\n // 20,000x faster validation\n input,\n ) {\n return __awaiter(this, void 0, void 0, function* () {\n return Object.assign(Object.assign({}, input), {\n id: \"2b5e21d8-0e44-4482-bd3e-4540dee7f3d6\",\n created_at: \"2023-04-23T12:04:54.168Z\",\n });\n });\n }\n};\nexports.BbsArticlesController = BbsArticlesController;\n__decorate(\n [\n core_1.TypedRoute.Post({\n type: \"assert\",\n assert: (input) => {\n const assert = (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n \"string\" === typeof input.id &&\n /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(\n input.id,\n ) &&\n \"string\" === typeof input.created_at &&\n !isNaN(new Date(input.created_at).getTime()) &&\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n Array.isArray(input.files) &&\n input.files.every(\n (elem) =>\n \"object\" === typeof elem && null !== elem && $io1(elem),\n );\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu.test(\n input.url,\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedRoute.Post.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.id &&\n (/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(\n input.id,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: 'string & Format<\"uuid\">',\n value: input.id,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".id\",\n expected: '(string & Format<\"uuid\">)',\n value: input.id,\n })) &&\n ((\"string\" === typeof input.created_at &&\n (!isNaN(new Date(input.created_at).getTime()) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: 'string & Format<\"date-time\">',\n value: input.created_at,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".created_at\",\n expected: '(string & Format<\"date-time\">)',\n value: input.created_at,\n })) &&\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n (((Array.isArray(input.files) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n input.files.every(\n (elem, _index1) =>\n (((\"object\" === typeof elem && null !== elem) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n })) &&\n $ao1(\n elem,\n _path + \".files[\" + _index1 + \"]\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n }));\n const $ao1 = (input, _path, _exceptionable = true) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n (1 <= input.name.length ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MinLength<1>\",\n value: input.name,\n })) &&\n (input.name.length <= 255 ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MaxLength<255>\",\n value: input.name,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected:\n \"((string & MinLength<1> & MaxLength<255>) | null)\",\n value: input.name,\n })) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n (1 <= input.extension.length ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MinLength<1>\",\n value: input.extension,\n })) &&\n (input.extension.length <= 8 ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MaxLength<8>\",\n value: input.extension,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"((string & MinLength<1> & MaxLength<8>) | null)\",\n value: input.extension,\n })) &&\n ((\"string\" === typeof input.url &&\n (/^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu.test(\n input.url,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: 'string & Format<\"url\">',\n value: input.url,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: '(string & Format<\"url\">)',\n value: input.url,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n };\n const stringify = (input) => {\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu.test(\n input.url,\n );\n const $string = core_1.TypedRoute.Post.string;\n const $so0 = (input) =>\n `{\"id\":${$string(input.id)},\"created_at\":${$string(\n input.created_at,\n )},\"title\":${$string(input.title)},\"body\":${$string(\n input.body,\n )},\"files\":${`[${input.files\n .map((elem) => $so1(elem))\n .join(\",\")}]`}}`;\n const $so1 = (input) =>\n `{\"name\":${\n null !== input.name ? $string(input.name) : \"null\"\n },\"extension\":${\n null !== input.extension ? $string(input.extension) : \"null\"\n },\"url\":${$string(input.url)}}`;\n return $so0(input);\n };\n return stringify(assert(input));\n },\n }), // 200x faster JSON serialization\n __param(\n 0,\n (0, core_1.TypedBody)({\n type: \"assert\",\n assert: (input) => {\n const __is = (input) => {\n const $io0 = (input) =>\n \"string\" === typeof input.title &&\n 3 <= input.title.length &&\n input.title.length <= 50 &&\n \"string\" === typeof input.body &&\n Array.isArray(input.files) &&\n input.files.every(\n (elem) =>\n \"object\" === typeof elem && null !== elem && $io1(elem),\n );\n const $io1 = (input) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n 1 <= input.name.length &&\n input.name.length <= 255)) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n 1 <= input.extension.length &&\n input.extension.length <= 8)) &&\n \"string\" === typeof input.url &&\n /^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu.test(\n input.url,\n );\n return \"object\" === typeof input && null !== input && $io0(input);\n };\n if (false === __is(input))\n ((input, _path, _exceptionable = true) => {\n const $guard = core_1.TypedBody.guard;\n const $ao0 = (input, _path, _exceptionable = true) =>\n ((\"string\" === typeof input.title &&\n (3 <= input.title.length ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MinLength<3>\",\n value: input.title,\n })) &&\n (input.title.length <= 50 ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"string & MaxLength<50>\",\n value: input.title,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".title\",\n expected: \"(string & MinLength<3> & MaxLength<50>)\",\n value: input.title,\n })) &&\n (\"string\" === typeof input.body ||\n $guard(_exceptionable, {\n path: _path + \".body\",\n expected: \"string\",\n value: input.body,\n })) &&\n (((Array.isArray(input.files) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n })) &&\n input.files.every(\n (elem, _index1) =>\n (((\"object\" === typeof elem && null !== elem) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n })) &&\n $ao1(\n elem,\n _path + \".files[\" + _index1 + \"]\",\n true && _exceptionable,\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files[\" + _index1 + \"]\",\n expected: \"IAttachmentFile\",\n value: elem,\n }),\n )) ||\n $guard(_exceptionable, {\n path: _path + \".files\",\n expected: \"Array\",\n value: input.files,\n }));\n const $ao1 = (input, _path, _exceptionable = true) =>\n (null === input.name ||\n (\"string\" === typeof input.name &&\n (1 <= input.name.length ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MinLength<1>\",\n value: input.name,\n })) &&\n (input.name.length <= 255 ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected: \"string & MaxLength<255>\",\n value: input.name,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".name\",\n expected:\n \"((string & MinLength<1> & MaxLength<255>) | null)\",\n value: input.name,\n })) &&\n (null === input.extension ||\n (\"string\" === typeof input.extension &&\n (1 <= input.extension.length ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MinLength<1>\",\n value: input.extension,\n })) &&\n (input.extension.length <= 8 ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"string & MaxLength<8>\",\n value: input.extension,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".extension\",\n expected: \"((string & MinLength<1> & MaxLength<8>) | null)\",\n value: input.extension,\n })) &&\n ((\"string\" === typeof input.url &&\n (/^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu.test(\n input.url,\n ) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: 'string & Format<\"url\">',\n value: input.url,\n }))) ||\n $guard(_exceptionable, {\n path: _path + \".url\",\n expected: '(string & Format<\"url\">)',\n value: input.url,\n }));\n return (\n (((\"object\" === typeof input && null !== input) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.ICreate\",\n value: input,\n })) &&\n $ao0(input, _path + \"\", true)) ||\n $guard(true, {\n path: _path + \"\",\n expected: \"IBbsArticle.ICreate\",\n value: input,\n })\n );\n })(input, \"$input\", true);\n return input;\n },\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n BbsArticlesController.prototype,\n \"store\",\n null,\n);\nexports.BbsArticlesController = BbsArticlesController = __decorate(\n [(0, common_1.Controller)(\"bbs/articles\")],\n BbsArticlesController,\n);\n//# sourceMappingURL=BbsArticlesController.js.map\nMeasured on AMD R9-7940HS, Rog Flow X13"}},"/docs/sdk/e2e":{"title":"E2e","data":{"outline#Outline":"import { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\n// import { FastifyAdaptor } from \"@nestjs/platform-fastify\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;\nnpx nestia e2e\nnpx nestia e2e --config nestia.config.ts --project tsconfig.json\nConfigure nestia.config.ts file and run npx nestia e2e command.Then, @nestia/sdk will analyze your NestJS backend server code, and generate both SDK (Software Development Kit) library for client developers. Also, E2E test functions, utilizing the SDK library, will be automatically generated for correspnding to every API functions.Here is an example of generated E2E test functions:\nimport typia, { Primitive } from \"typia\";\nimport api from \"../../../../src/api\";\nimport type { IBbsArticle } from \"../../../../src/api/structures/IBbsArticle\";\nexport const test_api_body_store = async (\n connection: api.IConnection,\n): Promise => {\n const output = await api.functional.body.store(\n connection,\n typia.random>(),\n );\n typia.assert(output);\n};\nLeft is server code, and right is e2e test code utilizing SDK library","configuration#Configuration":"import { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\n// import { FastifyAdaptor } from \"@nestjs/platform-fastify\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;\nimport type { INestApplication } from \"@nestjs/common\";\nimport { OpenApi } from \"@samchon/openapi\";\n/**\n * Definition for the `nestia.config.ts` file.\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nexport interface INestiaConfig {\n /**\n * Accessor of controller classes.\n *\n * You can specify it within two ways\n *\n * - Asynchronous function returning `INestApplication` instance\n * - Specify the path or directory of controller class files\n */\n input:\n | (() => Promise)\n | INestiaConfig.IInput\n | string[]\n | string;\n /**\n * Output directory that SDK would be placed in.\n *\n * If not configured, you can't build the SDK library.\n */\n output?: string;\n /**\n * Building `swagger.json` is also possible.\n *\n * If not specified, you can't build the `swagger.json`.\n */\n swagger?: INestiaConfig.ISwaggerConfig;\n /**\n * Target directory that SDK distribution files would be placed in.\n *\n * If you configure this property and runs `npx nestia sdk` command,\n * distribution environments for the SDK library would be generated.\n *\n * After the SDK library generation, move to the `distribute` directory,\n * and runs `npm publish` command, then you can share SDK library with\n * other client (frontend) developers.\n *\n * Recommend to use `\"packages/api\"` value.\n */\n distribute?: string;\n /**\n * Allow simulation mode.\n *\n * If you configure this property to be `true`, the SDK library would be contain\n * simulation mode. In the simulation mode, the SDK library would not communicate\n * with the real backend server, but just returns random mock-up data\n * with requestion data validation.\n *\n * For reference, random mock-up data would be generated by `typia.random()`\n * function.\n *\n * @default false\n */\n simulate?: boolean;\n /**\n * Target directory that e2e test functions would be placed in.\n *\n * If you configure this property and runs `npx nestia e2e` command,\n * `@nestia/sdk` will analyze your NestJS backend server code, and\n * generates e2e test functions for every API endpoints.\n *\n * If not configured, you can't run `npx nestia e2e` command.\n */\n e2e?: string;\n /**\n * Whether to use propagation mode or not.\n *\n * If being configured, interaction functions of the SDK library would\n * perform the propagation mode. The propagation mode means that never\n * throwing exception even when status code is not 200 (or 201), but just\n * returning the {@link IPropagation} typed instance, which can specify its body\n * type through discriminated union determined by status code.\n *\n * @default false\n */\n propagate?: boolean;\n /**\n * Whether to clone DTO structures or not.\n *\n * If being configured, all of DTOs used in the backend server would be cloned\n * into the `structures` directory, and the SDK library would be refer to the\n * cloned DTOs instead of the original.\n *\n * @default false\n */\n clone?: boolean;\n /**\n * Whether to wrap DTO by primitive type.\n *\n * If you don't configure this property as `false`, all of DTOs in the\n * SDK library would be automatically wrapped by {@link Primitive} type.\n *\n * For refenrece, if a DTO type be capsuled by the {@link Primitive} type,\n * all of methods in the DTO type would be automatically erased. Also, if\n * the DTO has a `toJSON()` method, the DTO type would be automatically\n * converted to return type of the `toJSON()` method.\n *\n * @default true\n */\n primitive?: boolean;\n /**\n * Whether to assert parameter types or not.\n *\n * If you configure this property to be `true`, all of the function\n * parameters of SDK library would be checked through\n * [`typia.assert()` function](https://typia.io/docs/validators/assert/).\n *\n * This option would make your SDK library compilation time a little bit slower,\n * but would enahcne the type safety even in the runtime level.\n *\n * @default false\n */\n assert?: boolean;\n /**\n * Whether to optimize JSON string conversion 10x faster or not.\n *\n * If you configure this property to be `true`, the SDK library would utilize the\n * [`typia.assertStringify() function`](https://github.com/samchon/typia#enhanced-json)\n * to boost up JSON serialization speed and ensure type safety.\n *\n * This option would make your SDK library compilation time a little bit slower,\n * but would enhance JSON serialization speed 10x faster. Also, it can ensure type\n * safety even in the rumtime level.\n *\n * @default false\n */\n json?: boolean;\n}\nexport namespace INestiaConfig {\n /**\n * List of files or directories to include or exclude to specifying the NestJS\n * controllers.\n */\n export interface IInput {\n /**\n * List of files or directories containing the NestJS controller classes.\n */\n include: string[];\n /**\n * List of files or directories to be excluded.\n */\n exclude?: string[];\n }\n /**\n * Building `swagger.json` is also possible.\n */\n export interface ISwaggerConfig {\n /**\n * Output path of the `swagger.json`.\n *\n * If you've configured only directory, the file name would be the `swagger.json`.\n * Otherwise you've configured the full path with file name and extension, the\n * `swagger.json` file would be renamed to it.\n */\n output: string;\n /**\n * API information.\n *\n * If omitted, `package.json` content would be used instead.\n */\n info?: Partial;\n /**\n * List of server addresses.\n */\n servers?: OpenApi.IServer[];\n /**\n * Security schemes.\n *\n * When generating `swagger.json` file through `nestia`, if your controllers or\n * theirs methods have a security key which is not enrolled in here property,\n * it would be an error.\n */\n security?: Record;\n /**\n * List of tag names with description.\n *\n * It is possible to omit this property or skip some tag name even if\n * the tag name is used in the API routes. In that case, the tag name\n * would be used without description.\n *\n * Of course, if you've written a comment like `@tag {name} {descrition}`,\n * you can entirely replace this property specification.\n */\n tags?: OpenApi.IDocument.ITag[];\n /**\n * Decompose query DTO.\n *\n * If you configure this property to be `true`, the query DTO would be decomposed\n * into individual query parameters per each property. Otherwise you set it to be\n * `false`, the query DTO would be one object type which contains all of query\n * parameters.\n *\n * @default false\n */\n decompose?: boolean;\n /**\n * Operation ID generator.\n *\n * @param props Properties of the API endpoint.\n * @returns Operation ID.\n */\n operationId?(props: {\n class: string;\n function: string;\n method: \"HEAD\" | \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n path: string;\n }): string;\n }\n}\nMake nestia.config.ts file and run npx nestia e2e command.At first, create nestia.config.ts file through npx nestia init command. It would be placed on the top level directory of your NestJS backend project. For reference, tsconfig.json file also must be placed in the top level directory, too. After creation, configure the nestia.config.ts file referencing above example code and type definition.At least, you've to configure those three properties:\ninput: Accessor of controller classes\noutput: Path of output directory for SDK library\ne2e: Path of output directory for E2E test functions\nWhen you've completed above configuration, just run npx nestia e2e command. Then, SDK library would be generated into the $config.output directory, and E2E test functions would be generated into the $config.e2e directory, following your nestia.config.ts option.By the way, nestia.config.ts supports alternative options specifying the target controller classes instead of using the Module instance. If your backend application server does not have special configuration like setGlobalPrefix, enableVersioning and RouterModule, it is okay to specifying the target controller classes just by writing their file path like below.\nimport { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { FastifyAdaptor } from \"@nestjs/platform-fastify\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: [\"src/controllers\", \"src/fake/controllers\", \"src/test/controllers\"],\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: \"src/**/*.controller.ts\",\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: {\n include: [\"src/controllers\"],\n exclude: [\"src/**/*.fake.ts\"],\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n e2e: \"test\",\n};\nexport default NESTIA_CONFIG;","customization#Customization":"import core from \"@nestia/core\";\nimport { DynamicExecutor } from \"@nestia/e2e\";\nimport { INestApplication } from \"@nestjs/common\";\nimport { NestFactory } from \"@nestjs/core\";\nasync function main(): Promise {\n const server: INestApplication = await NestFactory.create(\n await core.DynamicModule.mount({\n // follows your nestia.config.ts setting\n controllers: {\n input: [\"src/controllers\"],\n exclude: [\"src/**/*.fake.ts\"],\n },\n }),\n );\n await server.listen(37_000);\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: \"test\",\n parameters: () => [\n {\n host: \"http://127.0.0.1:37000\",\n },\n ],\n })(`${__dirname}/features`);\n await server.close();\n const exceptions: Error[] = report.executions\n .filter((exec) => exec.error !== null)\n .map((exec) => exec.error!);\n if (exceptions.length === 0) {\n console.log(\"Success\");\n console.log(\"Elapsed time\", report.time.toLocaleString(), `ms`);\n } else {\n for (const exp of exceptions) console.log(exp);\n console.log(\"Failed\");\n console.log(\"Elapsed time\", report.time.toLocaleString(), `ms`);\n process.exit(-1);\n }\n}\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\nNothing be specified, customize by yourself.When you generate e2e test functions through npx nestia e2e command, such index.ts file would be placed into the top level directory of test program. As you can see, the initial e2e test program only opens your NestJS backend server only with path of controllers with port number 37,000.However, it may not fully meet your requirements. For example, you may connect to a database server, and also need to configure DI (Dependency Injection) classes, too. You've to configure those things by yourself. @nestia/sdk can analyzes your backend server in the compilation level, but unable to reproduce such customizations.\nimport { Controller } from \"@nestjs/common\";\nimport typia, { tags } from \"typia\";\nimport core from \"@nestia/core\";\nimport { IBbsArticle } from \"@api/lib/structures/IBbsArticle\";\n@Controller(\"bbs/articles/:section\")\nexport class BbsArticlesController {\n /**\n * Store a new article.\n *\n * @param section Section code\n * @param input Content to store\n * @returns Newly archived article\n */\n @core.TypedRoute.Post()\n public async store(\n @core.TypedParam(\"section\") section: string,\n @core.TypedBody() input: IBbsArticle.IStore,\n ): Promise {\n return {\n ...typia.random(),\n section,\n ...input,\n };\n }\n /**\n * Update an article.\n *\n * @param section Section code\n * @param id Target article ID\n * @param input Content to update\n * @returns Updated content\n */\n @core.TypedRoute.Put(\":id\")\n public async update(\n @core.TypedParam(\"section\") section: string,\n @core.TypedParam(\"id\") id: string & tags.Format<\"uuid\">,\n @core.TypedBody() input: IBbsArticle.IStore,\n ): Promise {\n return {\n ...typia.random(),\n id,\n section,\n ...input,\n };\n }\n}\n/**\n * @packageDocumentation\n * @module api.functional.bbs.articles\n * @nestia Generated by Nestia - https://github.com/samchon/nestia\n */\n//================================================================\nimport type { IConnection, Primitive } from \"@nestia/fetcher\";\nimport { PlainFetcher } from \"@nestia/fetcher/lib/PlainFetcher\";\nimport type { Format } from \"typia/lib/tags/Format\";\nimport type { IBbsArticle } from \"../../../structures/IBbsArticle\";\n/**\n * Store a new article.\n *\n * @param section Section code\n * @param input Content to store\n * @returns Newly archived article\n *\n * @controller [object Object]\n * @path POST /bbs/articles/:section\n * @nestia Generated by Nestia - https://github.com/samchon/nestia\n */\nexport async function store(\n connection: IConnection,\n section: string,\n input: store.Input,\n): Promise {\n return PlainFetcher.fetch(\n {\n ...connection,\n headers: {\n ...connection.headers,\n \"Content-Type\": \"application/json\",\n },\n },\n {\n ...store.METADATA,\n path: store.path(section),\n } as const,\n input,\n );\n}\nexport namespace store {\n export type Input = Primitive;\n export type Output = Primitive;\n export const METADATA = {\n method: \"POST\",\n path: \"/bbs/articles/:section\",\n request: {\n type: \"application/json\",\n encrypted: false,\n },\n response: {\n type: \"application/json\",\n encrypted: false,\n },\n status: null,\n } as const;\n export const path = (section: string): string => {\n return `/bbs/articles/${encodeURIComponent(section ?? \"null\")}`;\n };\n}\n/**\n * Update an article.\n *\n * @param section Section code\n * @param id Target article ID\n * @param input Content to update\n * @returns Updated content\n *\n * @controller [object Object]\n * @path PUT /bbs/articles/:section/:id\n * @nestia Generated by Nestia - https://github.com/samchon/nestia\n */\nexport async function update(\n connection: IConnection,\n section: string,\n id: string & Format<\"uuid\">,\n input: update.Input,\n): Promise {\n return PlainFetcher.fetch(\n {\n ...connection,\n headers: {\n ...connection.headers,\n \"Content-Type\": \"application/json\",\n },\n },\n {\n ...update.METADATA,\n path: update.path(section, id),\n } as const,\n input,\n );\n}\nexport namespace update {\n export type Input = Primitive;\n export type Output = Primitive;\n export const METADATA = {\n method: \"PUT\",\n path: \"/bbs/articles/:section/:id\",\n request: {\n type: \"application/json\",\n encrypted: false,\n },\n response: {\n type: \"application/json\",\n encrypted: false,\n },\n status: null,\n } as const;\n export const path = (\n section: string,\n id: string & Format<\"uuid\">,\n ): string => {\n return `/bbs/articles/${encodeURIComponent(\n section ?? \"null\",\n )}/${encodeURIComponent(id ?? \"null\")}`;\n };\n}\nimport type { IConnection, Primitive } from \"@nestia/fetcher\";\nimport { PlainFetcher } from \"@nestia/fetcher/lib/PlainFetcher\";\nimport type { Format } from \"typia/lib/tags/Format\";\nimport api from \"../../../../src/api\";\nimport type { IBbsArticle } from \"../../../../src/api/structures/IBbsArticle\";\nexport const test_api_bbs_articles_update = async (\n connection: api.IConnection,\n): Promise => {\n const output = await api.functional.bbs.articles.update(\n connection,\n typia.random(),\n typia.random>(),\n typia.random>(),\n );\n typia.assert(output);\n};\nYou also need to customize each e2e test functions.When you run npx nestia e2e command, every e2e functions would be placed into $config.e2e/features/api/automated directory. Also, automatically generated e2e test functions are composing parameters through typia.random() function.If your NestJS backend server development has not been completed, and your API functions are in the mock-up level, such random parameter composition would not be problem. Otherwise your API functions are enoughly completed, such random parameter composition may occur logic error.Therefore, you also need to customize automatically generated e2e test functions. Move each e2e test files from the $config.e2e/features/api/automated directory to somewhere else, and customize those e2e test functions to be suitable for your domain logics."}},"/docs/sdk/sdk":{"title":"Sdk","data":{"outline#Outline":"import { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\n// import { FastifyAdaptor } from \"@nestjs/platform-fastify\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nnpx nestia sdk\nnpx nestia sdk --config nestia.config.ts --project tsconfig.json\n/**\n * Update an article.\n *\n * @param section Section code\n * @param id Target article ID\n * @param input Content to update\n * @returns Updated content\n *\n * @controller BbsArticlesController.update()\n * @path PUT /bbs/:section/articles/:id\n * @nestia Generated by Nestia - https://github.com/samchon/nestia\n */\nexport async function update(\n connection: IConnection,\n section: string,\n id: string & Format<\"uuid\">,\n input: update.Input,\n): Promise {\n return PlainFetcher.fetch(\n {\n ...connection,\n headers: {\n ...connection.headers,\n \"Content-Type\": \"application/json\",\n },\n },\n {\n ...update.METADATA,\n path: update.path(section, id),\n } as const,\n input,\n );\n}\nexport namespace update {\n export type Input = Primitive;\n export type Output = Primitive;\n export const METADATA = {\n method: \"PUT\",\n path: \"/bbs/articles/:section/:id\",\n request: {\n type: \"application/json\",\n encrypted: false,\n },\n response: {\n type: \"application/json\",\n encrypted: false,\n },\n status: null,\n } as const;\n export const path = (\n section: string,\n id: string & Format<\"uuid\">,\n ): string => {\n return `/bbs/articles/${encodeURIComponent(\n section ?? \"null\",\n )}/${encodeURIComponent(id ?? \"null\")}`;\n };\n}\nCollection of typed fetch functions with DTO structures.Configure nestia.config.ts file and run npx nestia sdk command. Then, @nestia/sdk will analyze your NestJS backend server code, and generate SDK (Software Development Kit) library composed with. The newly generated SDK library would be composed with DTO and fetch functions with type definitions following your NestJS server.With the SDK library composed with RPC (Remote Procedure Call) functions, you can easily develop e2e test program. Also, frontend developers can utilize the SDK library to interact with your NestJS backend server, much safely and conveniently. If you can't imagine how the SDK library works, then look at the gif image of below. Left side is the NestJS backend server program, and right side is the Frontend program interacting with your server.Isn't it look like much more convenient and safer than before when using Swagger Documents?\nLeft is NestJS server code, and right is client (frontend) code utilizing SDK","configuration#Configuration":"","nestiaconfigts#nestia.config.ts":"import { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\n// import { FastifyAdaptor } from \"@nestjs/platform-fastify\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nimport type { INestApplication } from \"@nestjs/common\";\nimport type { OpenApi } from \"@samchon/openapi\";\n/**\n * Definition for the `nestia.config.ts` file.\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nexport interface INestiaConfig {\n /**\n * Accessor of controller classes.\n *\n * You can specify it within two ways\n *\n * - Asynchronous function returning `INestApplication` instance\n * - Specify the path or directory of controller class files\n */\n input:\n | (() => Promise)\n | INestiaConfig.IInput\n | string[]\n | string;\n /**\n * Output directory that SDK would be placed in.\n *\n * If not configured, you can't build the SDK library.\n */\n output?: string;\n /**\n * Building `swagger.json` is also possible.\n *\n * If not specified, you can't build the `swagger.json`.\n */\n swagger?: INestiaConfig.ISwaggerConfig;\n /**\n * Target directory that SDK distribution files would be placed in.\n *\n * If you configure this property and runs `npx nestia sdk` command,\n * distribution environments for the SDK library would be generated.\n *\n * After the SDK library generation, move to the `distribute` directory,\n * and runs `npm publish` command, then you can share SDK library with\n * other client (frontend) developers.\n *\n * Recommend to use `\"packages/api\"` value.\n */\n distribute?: string;\n /**\n * Allow simulation mode.\n *\n * If you configure this property to be `true`, the SDK library would be contain\n * simulation mode. In the simulation mode, the SDK library would not communicate\n * with the real backend server, but just returns random mock-up data\n * with requestion data validation.\n *\n * For reference, random mock-up data would be generated by `typia.random()`\n * function.\n *\n * @default false\n */\n simulate?: boolean;\n /**\n * Target directory that e2e test functions would be placed in.\n *\n * If you configure this property and runs `npx nestia e2e` command,\n * `@nestia/sdk` will analyze your NestJS backend server code, and\n * generates e2e test functions for every API endpoints.\n *\n * If not configured, you can't run `npx nestia e2e` command.\n */\n e2e?: string;\n /**\n * Whether to use propagation mode or not.\n *\n * If being configured, interaction functions of the SDK library would\n * perform the propagation mode. The propagation mode means that never\n * throwing exception even when status code is not 200 (or 201), but just\n * returning the {@link IPropagation} typed instance, which can specify its body\n * type through discriminated union determined by status code.\n *\n * @default false\n */\n propagate?: boolean;\n /**\n * Whether to clone DTO structures or not.\n *\n * If being configured, all of DTOs used in the backend server would be cloned\n * into the `structures` directory, and the SDK library would be refer to the\n * cloned DTOs instead of the original.\n *\n * @default false\n */\n clone?: boolean;\n /**\n * Whether to wrap DTO by primitive type.\n *\n * If you don't configure this property as `false`, all of DTOs in the\n * SDK library would be automatically wrapped by {@link Primitive} type.\n *\n * For refenrece, if a DTO type be capsuled by the {@link Primitive} type,\n * all of methods in the DTO type would be automatically erased. Also, if\n * the DTO has a `toJSON()` method, the DTO type would be automatically\n * converted to return type of the `toJSON()` method.\n *\n * @default true\n */\n primitive?: boolean;\n /**\n * Whether to assert parameter types or not.\n *\n * If you configure this property to be `true`, all of the function\n * parameters of SDK library would be checked through\n * [`typia.assert()` function](https://typia.io/docs/validators/assert/).\n *\n * This option would make your SDK library compilation time a little bit slower,\n * but would enahcne the type safety even in the runtime level.\n *\n * @default false\n */\n assert?: boolean;\n /**\n * Whether to optimize JSON string conversion 10x faster or not.\n *\n * If you configure this property to be `true`, the SDK library would utilize the\n * [`typia.assertStringify() function`](https://github.com/samchon/typia#enhanced-json)\n * to boost up JSON serialization speed and ensure type safety.\n *\n * This option would make your SDK library compilation time a little bit slower,\n * but would enhance JSON serialization speed 10x faster. Also, it can ensure type\n * safety even in the rumtime level.\n *\n * @default false\n */\n json?: boolean;\n}\nexport namespace INestiaConfig {\n /**\n * List of files or directories to include or exclude to specifying the NestJS\n * controllers.\n */\n export interface IInput {\n /**\n * List of files or directories containing the NestJS controller classes.\n */\n include: string[];\n /**\n * List of files or directories to be excluded.\n */\n exclude?: string[];\n }\n /**\n * Building `swagger.json` is also possible.\n */\n export interface ISwaggerConfig {\n /**\n * Output path of the `swagger.json`.\n *\n * If you've configured only directory, the file name would be the `swagger.json`.\n * Otherwise you've configured the full path with file name and extension, the\n * `swagger.json` file would be renamed to it.\n */\n output: string;\n /**\n * API information.\n *\n * If omitted, `package.json` content would be used instead.\n */\n info?: Partial;\n /**\n * List of server addresses.\n */\n servers?: OpenApi.IServer[];\n /**\n * Security schemes.\n *\n * When generating `swagger.json` file through `nestia`, if your controllers or\n * theirs methods have a security key which is not enrolled in here property,\n * it would be an error.\n */\n security?: Record;\n /**\n * List of tag names with description.\n *\n * It is possible to omit this property or skip some tag name even if\n * the tag name is used in the API routes. In that case, the tag name\n * would be used without description.\n *\n * Of course, if you've written a comment like `@tag {name} {descrition}`,\n * you can entirely replace this property specification.\n */\n tags?: OpenApi.IDocument.ITag[];\n /**\n * Decompose query DTO.\n *\n * If you configure this property to be `true`, the query DTO would be decomposed\n * into individual query parameters per each property. Otherwise you set it to be\n * `false`, the query DTO would be one object type which contains all of query\n * parameters.\n *\n * @default false\n */\n decompose?: boolean;\n /**\n * Operation ID generator.\n *\n * @param props Properties of the API endpoint.\n * @returns Operation ID.\n */\n operationId?(props: {\n class: string;\n function: string;\n method: \"HEAD\" | \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\";\n path: string;\n }): string;\n }\n}\nMake nestia.config.ts file and run npx nestia sdk command.At first, create nestia.config.ts file through npx nestia init command. It would be placed on the top level directory of your NestJS backend project. For reference, tsconfig.json file also must be placed in the top level directory, too. After creation, configure the nestia.config.ts file referencing above example code and type definition.At least, you've to configure those two properties:\ninput: Accessor of controller classes\noutput: Path of output directory for SDK library\nWhen you've completed above configuration, just run npx nestia sdk command. Then, SDK library would be newly generated, and placed into the $config.output directory following your nestia.config.ts configuration.","input-pattern#Input Pattern":"nestia.config.ts supports alternative options instead of using the Module instance.If your backend application server does not have special configuration like setGlobalPrefix, enableVersioning and RouterModule, it is okay to specifying the target controller classes just by writing their file path like below.\nimport { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\nimport { FastifyAdaptor } from \"@nestjs/platform-fastify\";\nimport { YourModule } from \"./src/YourModule\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: [\"src/controllers\", \"src/fake/controllers\", \"src/test/controllers\"],\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: \"src/**/*.controller.ts\",\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nimport { INestiaConfig } from \"@nestia/sdk\";\nconst NESTIA_CONFIG: INestiaConfig = {\n input: {\n include: [\"src/controllers\"],\n exclude: [\"src/**/*.fake.ts\"],\n },\n output: \"src/api\",\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;","clone-mode#Clone Mode":"import { INestiaConfig } from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\n// import { FastifyAdaptor } from \"@nestjs/platform-fastify\";\n \nimport { YourModule } from \"./src/YourModule\";\n \nconst NESTIA_CONFIG: INestiaConfig = {\n input: async () => {\n const app = await NestFactory.create(YourModule);\n // const app = await NestFactory.create(YourModule, new FastifyAdaptor());\n // app.setGlobalPrefix(\"api\");\n // app.enableVersioning({\n // type: VersioningType.URI,\n // prefix: \"v\",\n // })\n return app;\n },\n output: \"src/api\",\n clone: true,\n distribute: \"packages/api\",\n};\nexport default NESTIA_CONFIG;\nimport core from \"@nestia/core\";\nimport { Controller } from \"@nestjs/common\";\nimport typia, { tags } from \"typia\";\n@Controller(\"bbs/articles/:section\")\nexport class TypedBodyControlleer {\n @core.TypedRoute.Get()\n public async index(\n @core.TypedParam(\"section\") section: string,\n @core.TypedQuery() query: IPage.IRequest,\n ): Promise