1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[528],{12154:function(t,e,r){r.d(e,{default:function(){return a}});var n=r(53533),i=r(7803),s=r(19410);function a(t){let e,{children:r,locale:a,now:l,...u}=t;try{e=(0,n.useRouter)()}catch(t){}if(!a&&e&&(a=e.locale),"string"==typeof l&&(l=new Date(l)),!a)throw Error(void 0);return i.createElement(s.Z,{locale:a,now:l,...u},r)}},90503:function(t,e,r){r.d(e,{O7:function(){return b},hT:function(){return w},Ry:function(){return m},iH:function(){return _},Z_:function(){return g}});class n{constructor(t){this.key=t}}function i(t,e){let r=t.split("../"),n=r.length-1,i=r[r.length-1],s=e;for(let t=0;t<n;t++)s=null==s?void 0:s.___parent;return s&&null!=i?s[i]:i}function s(t,e){return t instanceof n?i(t.key,e):t}function a(t){return t.split(/[,[\].]/g).filter(Boolean)}function l(t,e,r=!1){if(!t)return;let n=a(t);n=r?n.slice(0,-1):n;let i=e;for(let t of n)i=i[t];return i}function u(t,e,r){let n=!1;return t.reduce(function(t,i){return n?t:t.then(function(t){return t?(n=!0,t):i(e,r)}).catch(function(t){return t?(n=!0,t):i(e,r)})},Promise.resolve())}function o(t){return!(null!=t)}class h{constructor(t){this.validationRules=[],this._type="object",this.objectShape=t||{}}getType(){return this._type}shape(t){return Object.assign(this.objectShape,t),this}extend(t){return Object.assign(this.objectShape,t.objectShape),this}noUnknown(t="Input contains invalid keys"){return this.validationRules.push(e=>{let r=!1;for(let t in this.objectShape){r=!0;break}if(!r)throw Error("noUnknown must be used with a schema");let n=!1;for(let t in e)n=n||!(t in this.objectShape);if(n)return t}),this}validate(t,e,r){for(let e of this.validationRules){let r=e(t);if(r)return r}let n=!1,i=null==r?void 0:r.abortEarly,s={},a=Object.assign({___parent:e},t);for(let e in this.objectShape){let l=this.objectShape[e].validate(t[e],a,r);if(l&&(n=!0,s[e]=l,i))return s}if(n)return s}validateAsync(t,e,r){return u(this.validationRules,t,e).then(n=>{if(n)return n;let i=[],s=[],a=Object.assign({___parent:e},t);for(let e in this.objectShape){let n=this.objectShape[e].validateAsync(t[e],a,r);i.push(e),s.push(n)}return Promise.all(s).then(t=>{let e={},r=!1;for(let n=0;n<i.length;n++){let s=t[n];s&&(r=!0,e[i[n]]=s)}if(r)return e})})}validateAt(t,e){var r,n;let i=a(t),s=this.objectShape;for(let t of i)isNaN(parseInt(t,10))&&(s=(null===(r=s[t])||void 0===r?void 0:r.objectShape)?s[t].objectShape:(null===(n=s[t])||void 0===n?void 0:n.ofShape)?s[t].ofShape.objectShape||s[t].ofShape:s[t]);let u=l(t,e,!0),o=l(t,e);return s.validate(o,u)}}let f=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,c=/^([a-z][a-z0-9\*\-\.]*):\/\/(?:(?:(?:[\w\.\-\+!$&'\(\)*\+,;=]|%[0-9a-f]{2})+:)*(?:[\w\.\-\+%!$&'\(\)*\+,;=]|%[0-9a-f]{2})+@)?(?:(?:[a-z0-9\-\.]|%[0-9a-f]{2})+|(?:\[(?:[0-9a-f]{0,4}:)*(?:[0-9a-f]{0,4})\]))(?::[0-9]+)?(?:[\/|\?](?:[\w#!:\.\?\+=&@!$'~*,;\/\(\)\[\]\-]|%[0-9a-f]{2})*)?$/i;class p{constructor(){this.validationRules=[],this._type="undefined"}getType(){return this._type}isEmpty(t){return o(t)}required(t="This field is required"){return this.test(e=>{if(this.isEmpty(e))return t})}notAllowed(t="Field is not allowed"){return this.test(e=>{if(!this.isEmpty(e))return t})}when(t,e){let r=Array.isArray(t)?t:[t];return this.test((t,n)=>{let s=r.map(t=>i(t,n)),a=[...s],l=e.is;return("function"==typeof l?l(...a):s.every(t=>t===l))?e.then:e.otherwise})}oneOf(t,e="Invalid option"){return this.test((r,i)=>{if(void 0!==r&&-1===(t instanceof n?s(t,i):t.map(t=>s(t,i))).indexOf(r))return e})}notOneOf(t,e="Invalid Option"){return this.test((r,n)=>{if(-1!==t.map(t=>s(t,n)).indexOf(r))return e})}test(t){return this.validationRules.push(t),this}validate(t,e){for(let r of(this._entry=t,this.validationRules)){let t=r(this._entry,e);if(t instanceof p)return t.validate(this._entry,e);if(t)return t}}validateAsync(t,e){var r;return u(this.validationRules,null!==(r=this._entry)&&void 0!==r?r:t,e).then(r=>{var n;return r instanceof p?r.validateAsync(null!==(n=this._entry)&&void 0!==n?n:t,e):r||void 0})}}class d extends p{constructor(){super(...arguments),this._type="string"}validate(t,e){let r=t?String(t):t;return super.validate(r,e)}validateAsync(t,e){let r=t?String(t):t;return super.validateAsync(r,e)}isEmpty(t){return o(t)||0===t.trim().length}regex(t,e="Doesn't satisfy the rule"){return this.test(r=>{if(!this.isEmpty(r)&&!t.test(r))return e})}url(t="Input is not a valid url"){return this.regex(c,t),this}email(t="Input is not a valid email"){return this.regex(f,t),this}min(t,e){return this.greaterThan(t,e),this}max(t,e){return this.lessThan(t,e),this}greaterThan(t,e="Input is too short"){return this.test(r=>{if(!this.isEmpty(r)&&r.length<=t)return e})}lessThan(t,e="Input is too long"){return this.test(r=>{if(!this.isEmpty(r)&&r.length>=t)return e})}atLeast(t,e="Input is too short"){return this.test(r=>{if(!this.isEmpty(r)&&r.length<t)return e})}atMost(t,e="Input is too long"){return this.test(r=>{if(!this.isEmpty(r)&&r.length>t)return e})}between(t,e,r="Input is too short",n="Input is too long"){return t&&e&&t>e?this.test(()=>{throw Error("between must receive an initial length (startLength) smaller than the final length (endLength) parameter")}):(this.atLeast(t,r),this.atMost(e,n),this)}exactLength(t,e=`Must be at exactly of length ${t}`){return this.test(r=>{if(!this.isEmpty(r)&&r.length!==t)return e})}trim(){return this.test(t=>{this._entry=t.trim()})}}class y extends p{constructor(){super(...arguments),this._type="boolean"}true(t="Input must be true"){return this.test(e=>{if(!this.isEmpty(e)&&!0!==e)return t})}false(t="Input must be false"){return this.test(e=>{if(!this.isEmpty(e)&&!1!==e)return t})}validate(t,e){let r=o(t)?t:!!t;return super.validate(r,e)}validateAsync(t,e){let r=o(t)?t:!!t;return super.validateAsync(r,e)}}class v extends p{constructor(t="The field is not a valid date"){super(),this._type="object",this.message=t}before(t,e=`Date must be before ${t.toString()}`){return this.test((r,i)=>{if(this.isEmpty(r))return;let s=t instanceof n&&i?i[t.key]:t;if(new Date(r)>=new Date(s))return e})}after(t,e=`Date must be after ${t}`){return this.test((r,i)=>{if(this.isEmpty(r))return;let s=t instanceof n&&i?i[t.key]:t;if(new Date(r)<=new Date(s))return e})}parseDate(t){let e=t;if(this.isEmpty(t)||t instanceof Date)e=t;else if(isNaN(+new Date(t))){let r=new Date(t);if(isNaN(+r))throw this.message;e=new Date(r)}else e=new Date(t);return e}validate(t,e){let r;try{r=this.parseDate(t)}catch(t){return t}return super.validate(r,e)}validateAsync(t,e){let r;try{r=this.parseDate(t)}catch(t){return Promise.resolve(t)}return super.validateAsync(r,e)}}let m=()=>new h,g=()=>new d,b=()=>new y,w=t=>new v(t),_=t=>new n(t)},55614:function(t,e,r){r.d(e,{M:function(){return s},_:function(){return a}});var n=r(91981);let i=(t,e,r)=>{if(t&&"reportValidity"in t){let i=(0,n.U2)(r,e);t.setCustomValidity(i&&i.message||""),t.reportValidity()}},s=(t,e)=>{for(let r in e.fields){let n=e.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,t):n.refs&&n.refs.forEac
1h(e=>i(e,r,t))}},a=(t,e)=>{e.shouldUseNativeValidation&&s(t,e);let r={};for(let i in t){let s=(0,n.U2)(e.fields,i),a=Object.assign(t[i]||{},{ref:s&&s.ref});if(l(e.names||Object.keys(t),i)){let t=Object.assign({},(0,n.U2)(r,i));(0,n.t8)(t,"root",a),(0,n.t8)(r,i,t)}else(0,n.t8)(r,i,a)}return r},l=(t,e)=>t.some(t=>t.startsWith(e+"."))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.