PageSourceSearch

https://www.randstad.pt/search-app/static/js/55.75a1870f.chunk.js

js randstad.pt collected 2026-10-02 04:26:35 UTC 212,162 bytes, 2 lines download raw bytes

1/*! For license information please see 55.75a1870f.chunk.js.LICENSE.txt */
2(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[55],{25017(e,t,r){var n=r(35225).default,s=r(83083).default,i=r(81231).default;const o=["metadata","level","caller","message","splunkOnly"];e.exports=class{static expressMiddleware(e,t,n){r(Object(function(){const e=new Error("Cannot find module './transports/splunk.js'");throw e.code="MODULE_NOT_FOUND",e}())).expressMiddleware(e,t,n)}static getMetadata(){return{opco:"",accountType:"",environment:"",appName:"",traceId:"",logTime:(new Date).toISOString()}}static log(e,t,n,s){let a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],c="warning"===e?"warn":e;"function"!==typeof console[c]&&(c="log");const u=this.prepareLogData(e,t,n,s,a,l);if(this.isLocalEnvironment())if("object"===typeof t&&t.isAxiosError){const e=n?"Encountered axios error - ".concat(n):void 0;this.logAxiosError(t,e,!0,s)}else{const r=[];r.push("[".concat(e.toUpperCase(),"]")),n&&r.push(n+":"),r.push(t),"object"===typeof s&&Object.keys(s).length>0&&(r.push("\n [CONTEXT]: "),r.push(s)),console[c](...r)}else if("object"===typeof t&&t.isAxiosError){const e=n?"Encountered axios error - ".concat(n):void 0;this.logAxiosError(t,e,!0,s)}else{u.metadata;const e=u.level,t=(u.caller,u.message),r=u.splunkOnly,s=i(u,o);if(!r){const r="string"===typeof t?t:"";r||(s.message=t),console[c]("[".concat(e.toUpperCase(),"] ").concat(n,": ").concat(r," ").concat(JSON.stringify(s)))}}if("undefined"===typeof window){(new(r(Object(function(){const e=new Error("Cannot find module './transports/splunk.js'");throw e.code="MODULE_NOT_FOUND",e}())))).log(u)}}static getStackTrace(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{throw new Error}catch(t){if(e){const e=t.stack.split("\n");return s(e,6)[5].trim()}return t.stack}}static logAxiosError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Encountered axios error",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s={isAxiosError:e.isAxiosError,message:e.message};if(e.code&&(s.code=e.code),e.config){const t=e.config,r=t.url,n=t.method,i=t.headers,o=t.baseURL;s.config={url:r,method:n,headers:i,baseURL:o}}if(e.request){const t=e.request,r=t.method,n=t.path;s.request={method:r,path:n}}if(e.response){const t=e.response,r=t.status,n=t.headers,i=t.data;s.response={status:r,headers:n,data:i}}r&&e.stack&&(s.stack=e.stack),"object"===typeof n&&Object.keys(n).length>0&&(s.context=n);let i=null;this.isLocalEnvironment()&&(i=2),console.error("[ERROR] "+t+": "+JSON.stringify(s,null,i))}static isLocalEnvironment(){return!0}static prepareLogData(e,t,r,s){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a="undefined"!==typeof t&&"undefined"!==typeof t.stack?t.stack:this.getStackTrace("error"!==e);return"object"===typeof t&&((t=t.response&&t.response.data?t.response.data:t).data&&t.status&&(t="object"===typeof t.data&&"object"===typeof t.status?n(n({},t.data),t.status):{message:t.data,status:t.status}),t=t.message?t.message:t),{level:e,caller:r||"",message:t,stack:a,context:s&&"object"===typeof s?s:{},metadata:i?this.getMetadata():{},splunkOnly:o}}static debug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];const i=JSON.stringify({request:{url:e.originalUrl,method:e.method,headers:e.headers,params:e.params,query:e.query}});this.log("debug",i,t,r,n,s)}static info(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];this.log("info",e,t,r,n,s)}static warning(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];this.log("warning",e,t,r,n,s)}static error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.log("error",e,t,r,n,s)}}},62770(e,t,r){"use strict";r.d(t,{Card:()=>s});var n=r.cjs(function(e,t){var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==("undefined"===typeof e?"undefined":n(e))&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(s,i,function(t){return e[t]}.bind(null,i));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=77)}({0:function(e,t){e.exports=function(){function e(){s(this,e)}return r(e,null,[{key:"triggerEvent",value:function(e,t){var r=void 0;"function"==typeof Event?r=new Event(t):(r=document.createEvent("Event")).initEvent(t,!0,!0),e.dispatchEvent(r)}},{key:"getElementByAttribute",value:function(e,t){return t?document.querySelector("["+e+'="'+t+'"]'):document.querySelector("["+e+"]")}},{key:"getElementsByAttribute",value:function(e,t){return t?document.querySelectorAll("["+e+'="'+t+'"]'):document.querySelectorAll("["+e+"]")}},{key:"getElementByAttributeWithinElement",value:function(e,t,r){return r?e.querySelector("["+t+'="'+r+'"]'):e.querySelector("["+t+"]")}},{key:"isMouseOver",value:function(e){return Array.prototype.slice.call(e.parentElement.querySelectorAll(":hover")).filter(function(){return e[0]==this}).length>0}},{key:"getElementsByAttributeWithinElement",value:function(e,t,r){return r?e.querySelectorAll("["+t+'="'+r+'"]'):e.querySelectorAll("["+t+"]")}},{key:"getElementByClassWithinElement",value:function(e,t){return e.querySelector("."+t)}},{key:"maxWidthMobileViewports",value:function(){return 940}},{key:"createEvent",value:function(e){var t=void 0;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}},{key:"isDesktop",value:function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)>this.maxWidthMobileViewports()}},{key:"isIE11",value:function(){return-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1}},{key:"getKeyCodeOnKeyDownEvent",value:function(e){var t=void 0;if(null!=e)if(void 0===e.code)switch(e.keyCode){case 13:t="Enter";break;case 38:t="ArrowUp";break;case 40:t="ArrowDown";break;case 8:t="Backspace";break;case 9:t="Tab";break;case 27:t="Escape";break;case 33:t="PageUp";break;case 34:t="PageDown";break;case 32:t="Space";break;default:t=void 0}else t=e.code;return t}},{key:"getKeyboardFocusableElements",value:function(e){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e.querySelectorAll('a[href], button, input, textarea, iframe, select, details,[tabindex]:not([tabindex="-1"])'))).filter(function(e){return!function(e){return"hidden"===window.getComputedStyle(e).visibility}(e)&&!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")})}}]),e}()},77:function(e,t,r){e.exports=r(78)},78:function(e,t,n){n.r(t),n.d(t,"Card",function(){return a});var i=n(0),o=n.n(i),a=function(){function e(t){s(this,e),this.element=t,this.initVariables(),this.addEventHandlers()}return r(e,[{key:"initVariables",value:function(){this.showBackSideCard=o.a.getElementByAttributeWithinElement(this.element,this.attributes.showBackSideCard),this.hideBackSideCard=o.a.getElementByAttributeWithinElement(this.element,this.attributes.hideBackSideCard),this.listParent=this.element.closest("ul"),this.selectAllCards=this.listParent.querySelectorAll(this.attributes.selectAllCards)}},{key:"addEventHandlers",value:function(){var e=this;["click","keydown"].forEach(function(t){e.showBackSideCard&&e.showBackSideCard.addEventListener(t,function(t){("keydown"===t.type&&13===t.keyCode||"click"===t.type)&&e.setCardHeights(!0)}),e.hideBackSideCard&&e.hideBackSideCard.addEventListener(t,function(t){("keydown"===t.type&&13===t.keyCode||"click"===t.type)&&e.setCardHeights()})}),window.addEventListener("resize",function(){e.resizeCards()})}},{key:"slickSliderActive",value:function(e){return e.hasAttribute("data-rs-carousel-card")&&"DIV"===e.parentElement.tagName}},{key:"removeAnimationAndHeight",value:function(){this.element.classList.remove(this.classes.animate),this.element.style.removeProperty("height")}},{key:"setCardHeights",value:function(e){var t=this;if(e){var r=this.element.getBoundingClientRect();this.selectAllCards.forEach(function(e){t.slickSliderActive(e)&&(e.parentElement.style.height=r.height+"px"),e!==t.element&&e.classList.contains(t.classes.backsideActive)&&(e.classList.remove(t.classes.backsideActive),e.classList.add(t.classes.animate),setTimeout(function(){return e.classList.remove(t.classes.animate)},100))}),this.element.setAttribute("aria-expanded",!0),this.element.style.height=r.height+"px",this.element.classList.add(this.classes.backsideActive),this.hideBackSideCard.setAttribute("tabindex","0"),this.hideBackSideCard.previousElementSibling.setAttribute("tabindex","0"),this.element}else this.selectAllCards.forEach(function(e){t.slickSliderActive(e)&&e.parentElement.style.removeProperty("height")}),this.element.setAttribute("aria-expanded",!1),this.element.classList.remove(this.classes.backsideActive),this.element.classList.add(this.classes.animate),this.hideBackSideCard.setAttribute("tabindex","-1"),this.hideBackSideCard.previousElementSibling.setAttribute("tabindex","-1"),setTimeout(this.removeAnimationAndHeight.bind(this),100)}},{key:"resizeCards",value:function(){var e=this;this.selectAllCards.forEach(function(t){e.slickSliderActive(t)&&t.parentElement.style.removeProperty("height")}),this.element.classList.remove(this.classes.backsideActive)}},{key:"attributes",get:function(){return{showBackSideCard:"data-rs-card-show-backside",hideBackSideCard:"data-rs-card-hide-backside",selectAllCards:"li[data-rs-card]"}}},{key:"classes",get:function(){return{backsideActive:"cards__item--backside-active",animate:"cards__item--animate"}}}],[{key:"getSelector",value:function(){return"[data-rs-card]"}}]),e}()}}))});class s extends n.Card{slickSliderActive(e){if(e&&e.parentElement)return e.hasAttribute("data-rs-carousel-card")&&"DIV"===e.parentElement.tagName}}},5253(e,t,r){"use strict";r.d(t,{Modal:()=>l});var n=r(30313),s=r.n(n),i=r.cjs(function(e,t){var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==("undefined"===typeof e?"undefined":n(e))&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(s,i,function(t){return e[t]}.bind(null,i));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=107)}({0:function(e,t){e.exports=function(){function e(){s(this,e)}return r(e,null,[{key:"triggerEvent",value:function(e,t){var r=void 0;"function"==typeof Event?r=new Event(t):(r=document.createEvent("Event")).initEvent(t,!0,!0),e.dispatchEvent(r)}},{key:"getElementByAttribute",value:function(e,t){return t?document.querySelector("["+e+'="'+t+'"]'):document.querySelector("["+e+"]")}},{key:"getElementsByAttribute",value:function(e,t){return t?document.querySelectorAll("["+e+'="'+t+'"]'):document.querySelectorAll("["+e+"]")}},{key:"getElementByAttributeWithinElement",value:function(e,t,r){return r?e.querySelector("["+t+'="'+r+'"]'):e.querySelector("["+t+"]")}},{key:"isMouseOver",value:function(e){return Array.prototype.slice.call(e.parentElement.querySelectorAll(":hover")).filter(function(){return e[0]==this}).length>0}},{key:"getElementsByAttributeWithinElement",value:function(e,t,r){return r?e.querySelectorAll("["+t+'="'+r+'"]'):e.querySelectorAll("["+t+"]")}},{key:"getElementByClassWithinElement",value:function(e,t){return e.querySelector("."+t)}},{key:"maxWidthMobileViewports",value:function(){return 940}},{key:"createEvent",value:function(e){var t=void 0;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}},{key:"isDesktop",value:function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)>this.maxWidthMobileViewports()}},{key:"isIE11",value:function(){return-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1}},{key:"getKeyCodeOnKeyDownEvent",value:function(e){var t=void 0;if(null!=e)if(void 0===e.code)switch(e.keyCode){case 13:t="Enter";break;case 38:t="ArrowUp";break;case 40:t="ArrowDown";break;case 8:t="Backspace";break;case 9:t="Tab";break;case 27:t="Escape";break;case 33:t="PageUp";break;case 34:t="PageDown";break;case 32:t="Space";break;default:t=void 0}else t=e.code;return t}},{key:"getKeyboardFocusableElements",value:function(e){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e.querySelectorAll('a[href], button, input, textarea, iframe, select, details,[tabindex]:not([tabindex="-1"])'))).filter(function(e){return!function(e){return"hidden"===window.getComputedStyle(e).visibility}(e)&&!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")})}}]),e}()},107:function(e,t,r){e.exports=r(108)},108:function(e,t,n){n.r(t),n.d(t,"Modal",function(){return l});var i=n(0),o=n.n(i),a=n(2),l=function(){function e(t){s(this,e),this.element=t,this.openTrigger=o.a.getElementByAttribute(this.attributes.trigger,this.element.getAttribute("data-rs-modal")),this.closeTrigger=o.a.getElementByAttributeWithinElement(this.element,this.attributes.closeTrigger),this.doNotCloseOnClickOverlay=o.a.getElementByAttributeWithinElement(this.element,this.attributes.doNotCloseOnClickOverlay),this.dialog=o.a.getElementByAttributeWithinElement(this.element,this.attributes.dialog),this.main=o.a.getElementByAttributeWithinElement(this.element,this.attributes.main),this.header=o.a.getElementByAttributeWithinElement(this.element,this.attributes.header),this.footer=o.a.getElementByAttributeWithinElement(this.element,this.attributes.footer),this.disableHistory=null!==this.element.getAttribute(this.attributes.disableHistory),this.popupDelay=this.element.getAttribute(this.attributes.popupDelay),this.defaultPopupDelay=5,this.scrollbarWidth=window.innerWidth-document.documentElement.clientWidth,this.scrollPosition=3,this.bodyMarginTop=e.initializeBodyMarginTop(),this.addEventHandlers(),this.handleDividers(),this.handleQueryStringParameters(),this.initializePopup(),this.keystroke=0,this.modalOpen}return r(e,[{key:"addEventHandlers",value:function(){var e=this;this.openTrigger.addEventListener("click",function(t){e.modalOpen=!0,t.preventDefault(),e.scrollPosition=window.pageYOffset,e.toggleModal(!e.disableHistory)}),this.closeTrigger.addEventListener("click",function(t){t.preventDefault(),e.toggleModal(!e.disableHistory),document.body.style.marginTop=e.bodyMarginTop+"px",window.scrollTo(0,e.scrollPosition),e.modalOpen=!1}),this.element.addEventListener("mousedown",function(t){e.doNotCloseOnClickOverlay||t.target===e.dialog||e.dialog.contains(t.target)||(e.toggleModal(!e.disableHistory),document.body.style.marginTop=e.bodyMarginTop+"px",window.scrollTo(0,e.scrollPosition))}),window.addEventListener("resize",function(){e.handleDividers()}),this.main.addEventListener("scroll",function(){e.checkPosition()},{passive:!0}),window.addEventListener("popstate",function(){e.handleQueryStringParameters(!1)}),document.addEventListener("keydown",function(t){e.handleButtonKeys(t)})}},{key:"toggleModal",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.element.classList.contains(this.classes.modalActive)?this.closeModal(e):this.openModal(e)}},{key:"closeModal",value:function(e){document.body.style.paddingRight="0px",this.element.style.paddingRight="",e&&window.history.pushState({},"",window.location.pathname),document.querySelector("html").classList.remove(this.classes.modalOpen),this.element.setAttribute(this.attributes.hidden,"true"),this.element.classList.remove(this.classes.modalActive),this.keystroke=0,this.modalOpen&&this.openTrigger.focus(),this.modalOpen=!1}},{key:"openModal",value:function(e){this.modalOpen=!0,document.body.style.marginTop=this.bodyMarginTop-this.scrollPosition+"px",document.body.style.paddingRight=this.scrollbarWidth+"px",this.element.style.paddingRight=this.scrollbarWidth+"px",e&&window.history.pushState({},"",window.location.pathname+"?"+this.attributes.modalOpen+"="+this.element.getAttribute("data-rs-modal")),document.querySelector("html").classList.add(this.classes.modalOpen),this.element.removeAttribute(this.attributes.hidden),this.element.classList.add(this.classes.modalActive)}},{key:"handleDividers",value:function(){this.main.scrollHeight>this.main.offsetHeight?this.addDivider():this.header&&this.header.classList.contains(this.classes.divider)&&this.removeDivider()}},{key:"addDivider",value:function(){this.main.classList.add(this.classes.modalMainOverflow),null!==this.footer&&this.footer.classList.add(this.classes.divider,this.classes.dividerTop)}},{key:"removeDivider",value:function(){this.header.classList.remove(this.classes.divider),this.main.classList.remove(this.classes.modalMainOverflow),null!==this.footer&&this.footer.classList.remove(this.classes.dividerTop)}},{key:"checkPosition",value:function(){var e=this.main.scrollTop;this.header&&e>this.scrollPosition&&(this.header.classList.add(this.classes.divider),this.header.classList.add(this.classes.modalHeaderDividerIn),this.header.classList.remove(this.classes.modalHeaderDividerOut)),(this.header&&e<this.scrollPosition||this.header&&0===e)&&(this.header.classList.add(this.classes.modalHeaderDividerOut),this.header.classList.remove(this.classes.divider),this.header.classList.remove(this.classes.modalHeaderDividerIn))}},{key:"handleQueryStringParameters",value:function(){if(window.location.href.includes("?"+this.attributes.modalOpen)){var e=new URLSearchParams(window.location.search);this.openModalElement=e.get(this.attributes.modalOpen),this.openModalElement===this.element.getAttribute("data-rs-modal")&&this.openModal(!1)}else this.closeModal(!1)}},{key:"initializePopup",value:function(){var e=this;if(null!==this.popupDelay){var t=this.element.getAttribute(this.attributes.popupDelay);setTimeout(function(){e.openModal(!1)},1e3*(""===t?this.defaultPopupDelay:t))}}},{key:"handleButtonKeys",value:function(e){if(null!=e)switch(o.a.getKeyCodeOnKeyDownEvent(e)){case this.keyCodes.Escape:e.preventDefault(),this.closeModal(!0),document.body.style.marginTop=this.bodyMarginTop+"px",window.scrollTo(0,this.scrollPosition);break;case this.keyCodes.Tab:Object(a.a)(e,this.element,this.modalOpen,this.keystroke),this.modalOpen&&this.keystroke++}}},{key:"classes",get:function(){return{modalActive:"modal--active",modalOpen:"modal-open",modalHeaderDivider:"divider",modalHeaderDividerIn:"modal__header--divider-in",modalHeaderDividerOut:"modal__header--divider-out",modalMainOverflow:"modal__main--overflow",divider:"divider",dividerTop:"divider--top"}}},{key:"attributes",get:function(){return{trigger:"data-rs-modal-trigger",popupDelay:"data-rs-modal-popup-delay",closeTrigger:"data-rs-modal-close-trigger",dialog:"data-rs-modal-dialog",main:"data-rs-modal-main",doNotCloseOnClickOverlay:"data-rs-modal-do-not-close-on-click-overlay",header:"data-rs-modal-header",footer:"data-rs-modal-footer",disableHistory:"data-rs-modal-disable-history",modalOpen:"modal_open",hidden:"aria-hidden"}}},{key:"keyCodes",get:function(){return{Escape:"Escape",Tab:"Tab"}}}],[{key:"initializeBodyMarginTop",value:function(){var e=document.body.style.marginTop;return e?e.slice(0,e.length-2):0}},{key:"getSelector",value:function(){return"[data-rs-modal]"}}]),e}()},2:function(e,t,r){var n=r(0),s=r.n(n);t.a=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=s.a.getKeyboardFocusableElements(t),o=i[0],a=i[i.length-1];if(r){if(a.tagName&&"IFRAME"===a.tagName){var l=document.createElement("div");l.setAttribute("tabindex","0"),a.parentNode.insertBefore(l,a.nextSibling)}if(o.tagName&&"IFRAME"===o.tagName){var c=document.createElement("div");c.setAttribute("tabindex","0"),a.parentNode.insertBefore(c,a.nextSibling),o.parentNode.insertBefore(c,o)}n<1&&(e.preventDefault(),setTimeout(function(){o.focus()},100)),e.shiftKey?document.activeElement===o&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),o.focus())}}}}))});const o=r(89952).default,a="data-rs-modal";class l extends i.Modal{constructor(e){super(e),this.openTriggers=s().getElementsByAttribute(this.attributes.trigger,this.element.getAttribute(a)),this.trackWindowHistory=!e.hasAttribute("data-rs-modal-disable-window-history"),this.searchParams=window.location.search,this.isInit=e.getAttribute("data-rs-modal-init")||!1,"true"===this.isInit&&this.openModal(!1),this.addAdditionalHandlers(),this.keystroke=0}addAdditionalHandlers(){let e=[...this.openTriggers];const t=e.indexOf(this.openTrigger);e=e.filter((e,r)=>r!==t),e.map(e=>{e.addEventListener("click",e=>{e.preventDefault(),this.scrollPosition=window.pageYOffset,this.toggleModal(!this.disableHistory)})})}addEventHandlers(){this.openTrigger&&this.openTrigger.addEventListener("click",e=>{this.modalOpen=!0,e.preventDefault(),this.scrollPosition=window.pageYOffset,this.toggleModal(!this.disableHistory)}),this.closeTrigger&&this.closeTrigger.addEventListener("click",e=>{e.preventDefault(),this.toggleModal(!this.disableHistory),this.modalOpen=!1}),this.element.addEventListener("mousedown",e=>{var t=e.target.hasAttribute("data-rs-auto-suggest-list-value"),r=!!e.target.parentElement&&e.target.parentElement.hasAttribute("data-rs-auto-suggest-list-value"),n=!(t||r);this.doNotCloseOnClickOverlay||e.target===this.dialog||this.dialog.contains(e.target)||!n||this.toggleModal()}),window.addEventListener("resize",()=>{this.handleDividers()}),this.main.addEventListener("scroll",()=>{this.checkPosition()},{passive:!0}),window.addEventListener("popstate",()=>{this.handleQueryStringParameters(!1)}),document.addEventListener("keydown",e=>{this.handleButtonKeys(e)})}closeModal(e){this.trackWindowHistory&&e&&window.history.pushState({},"","".concat(window.location.pathname).concat(this.searchParams)),document.querySelector("html").classList.remove(this.classes.modalOpen),this.element.setAttribute(this.attributes.hidden,"true"),this.element.classList.remove(this.classes.modalActive),this.keystroke=0,this.modalOpen&&this.openTrigger&&this.openTrigger.focus(),this.modalOpen=!1;let t=new CustomEvent("modal-close");this.element.dispatchEvent(t)}openModal(e){this.modalOpen=!0,this.trackWindowHistory&&e&&window.history.pushState({},"","".concat(window.location.pathname).concat(this.searchParams,"?").concat(this.attributes.modalOpen,"=").concat(this.element.getAttribute(a))),document.querySelector("html").classList.add(this.classes.modalOpen),this.element.removeAttribute(this.attributes.hidden),this.element.classList.add(this.classes.modalActive);let t=new CustomEvent("modal-open");this.element.dispatchEvent(t)}handleButtonKeys(e){if(null!=e)switch(s().getKeyCodeOnKeyDownEvent(e)){case this.keyCodes.Escape:e.preventDefault(),this.closeModal(!0);break;case this.keyCodes.Tab:o(e,this.element,this.modalOpen,this.keystroke),this.modalOpen&&this.keystroke++}}}window.orbit=window.orbit||{},window.orbit.modal=e=>new l(e)},30313(e){e.exports=class{static triggerEvent(e,t){let r;
2"function"===typeof Event?r=new Event(t):(r=document.createEvent("Event"),r.initEvent(t,!0,!0)),e.dispatchEvent(r)}static getElementByAttribute(e,t){return t?document.querySelector("[".concat(e,'="').concat(t,'"]')):document.querySelector("[".concat(e,"]"))}static getElementsByAttribute(e,t){return t?document.querySelectorAll("[".concat(e,'="').concat(t,'"]')):document.querySelectorAll("[".concat(e,"]"))}static getElementByAttributeWithinElement(e,t,r){return r?e.querySelector("[".concat(t,'="').concat(r,'"]')):e.querySelector("[".concat(t,"]"))}static isMouseOver(e){return Array.prototype.slice.call(e.parentElement.querySelectorAll(":hover")).filter(function(){return e[0]==this}).length>0}static getElementsByAttributeWithinElement(e,t,r){return r?e.querySelectorAll("[".concat(t,'="').concat(r,'"]')):e.querySelectorAll("[".concat(t,"]"))}static getElementByClassWithinElement(e,t){return e.querySelector(".".concat(t))}static maxWidthMobileViewports(){return 940}static createEvent(e){let t;return"function"===typeof Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),t}static isDesktop(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)>this.maxWidthMobileViewports()}static isIE11(){return-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1}static getKeyCodeOnKeyDownEvent(e){let t;if(null!=e)if("undefined"===typeof e.code)switch(e.keyCode){case 13:t="Enter";break;case 38:t="ArrowUp";break;case 40:t="ArrowDown";break;case 8:t="Backspace";break;case 9:t="Tab";break;case 27:t="Escape";break;case 33:t="PageUp";break;case 34:t="PageDown";break;case 32:t="Space";break;default:t=void 0}else t=e.code;return t}static getKeyboardFocusableElements(e){return[...e.querySelectorAll('a[href], button, input, textarea, iframe, select, details,[tabindex]:not([tabindex="-1"])')].filter(e=>!(e=>"hidden"===window.getComputedStyle(e).visibility)(e)&&!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"))}}},89952(e,t){"use strict";var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e,t){for(var r in t)e[r]=t[r]}(t,function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==("undefined"===typeof e?"undefined":n(e))&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(s,i,function(t){return e[t]}.bind(null,i));return s},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"triggerEvent",value:function(e,t){var r=void 0;"function"==typeof Event?r=new Event(t):(r=document.createEvent("Event")).initEvent(t,!0,!0),e.dispatchEvent(r)}},{key:"getElementByAttribute",value:function(e,t){return t?document.querySelector("["+e+'="'+t+'"]'):document.querySelector("["+e+"]")}},{key:"getElementsByAttribute",value:function(e,t){return t?document.querySelectorAll("["+e+'="'+t+'"]'):document.querySelectorAll("["+e+"]")}},{key:"getElementByAttributeWithinElement",value:function(e,t,r){return r?e.querySelector("["+t+'="'+r+'"]'):e.querySelector("["+t+"]")}},{key:"isMouseOver",value:function(e){return Array.prototype.slice.call(e.parentElement.querySelectorAll(":hover")).filter(function(){return e[0]==this}).length>0}},{key:"getElementsByAttributeWithinElement",value:function(e,t,r){return r?e.querySelectorAll("["+t+'="'+r+'"]'):e.querySelectorAll("["+t+"]")}},{key:"getElementByClassWithinElement",value:function(e,t){return e.querySelector("."+t)}},{key:"maxWidthMobileViewports",value:function(){return 940}},{key:"createEvent",value:function(e){var t=void 0;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}},{key:"isDesktop",value:function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)>this.maxWidthMobileViewports()}},{key:"isIE11",value:function(){return-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1}},{key:"getKeyCodeOnKeyDownEvent",value:function(e){var t=void 0;if(null!=e)if(void 0===e.code)switch(e.keyCode){case 13:t="Enter";break;case 38:t="ArrowUp";break;case 40:t="ArrowDown";break;case 8:t="Backspace";break;case 9:t="Tab";break;case 27:t="Escape";break;case 33:t="PageUp";break;case 34:t="PageDown";break;case 32:t="Space";break;default:t=void 0}else t=e.code;return t}},{key:"getKeyboardFocusableElements",value:function(e){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(e.querySelectorAll('a[href], button, input, textarea, iframe, select, details,[tabindex]:not
2([tabindex="-1"])'))).filter(function(e){return!function(e){return"hidden"===window.getComputedStyle(e).visibility}(e)&&!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")})}}]),e}()},function(e,t,r){e.exports=r(2)},function(e,t,r){r.r(t);var n=r(0),s=r.n(n);t.default=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=s.a.getKeyboardFocusableElements(t),o=i[0],a=i[i.length-1];if(r){if(a.tagName&&"IFRAME"===a.tagName){var l=document.createElement("div");l.setAttribute("tabindex","0"),a.parentNode.insertBefore(l,a.nextSibling)}if(o.tagName&&"IFRAME"===o.tagName){var c=document.createElement("div");c.setAttribute("tabindex","0"),a.parentNode.insertBefore(c,a.nextSibling),o.parentNode.insertBefore(c,o)}n<1&&(e.preventDefault(),setTimeout(function(){o.focus()},100)),e.shiftKey?document.activeElement===o&&(e.preventDefault(),a.focus()):document.activeElement===a&&(e.preventDefault(),o.focus())}}}]))},41212(e,t,r){var n=r(83083).default;window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t,r){"use strict";const n=r(13);e.exports=function(e){if(!e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];if(1===r.length&&r[0]instanceof Error)throw r[0];throw new n(r)}}},function(e,t,r){"use strict";const n=r(0),s=r(13),i=r(28);let o,a;const l={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=i.version,t.defaults={abortEarly:!0,allowUnknown:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrapArrays:!0},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),literal:Symbol("literal"),override:Symbol("override"),prefs:Symbol("prefs"),ref:Symbol("ref"),values:Symbol("values"),template:Symbol("template")},t.assertOptions=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Options";n(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const s=Object.keys(e).filter(e=>!t.includes(e));n(0===s.length,"".concat(r," contain unknown keys: ").concat(s))},t.checkPreferences=function(e){const t=(a=a||r(16)).preferences.validate(e);if(t.error)throw new s([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return l.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e&&e[t.symbols.any];return!!s&&(n(r.legacy||s.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,n){o=o||r(9),e=e||{},n=n||{};const s=Object.assign({},e,n);return n.errors&&e.errors&&(s.errors=Object.assign({},e.errors,n.errors)),n.messages&&(s.messages=o.compile(n.messages,e.messages)),delete s[t.symbols.prefs],s},t.tryWithPath=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message="".concat(e.message," (").concat(e.path,")")),e}},t.validateArg=function(e,r,n){let s=n.assert,i=n.message;if(t.isSchema(s)){const t=s.validate(e);if(!t.error)return;return t.error.message}if(!s(e))return r?"".concat(r," ").concat(i):i},t.verifyFlat=function(e,t){for(const r of e)n(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},function(e,t,r){"use strict";const s=r(14),i=r(10),o={needsProtoHack:new Set([s.set,s.map,s.weakSet,s.weakMap])};e.exports=o.clone=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("object"!=typeof e||null===e)return e;let a=o.clone,l=r;if(t.shallow){if(!0!==t.shallow)return o.cloneWithShallow(e,t);a=e=>e}else{const t=(l=l||new Map).get(e);if(t)return t}const c=s.getInternalProto(e);if(c===s.buffer)return!1;if(c===s.date)return new Date(e.getTime());if(c===s.regex)return new RegExp(e);const u=o.base(e,c,t);
2if(u===e)return e;if(l&&l.set(e,u),c===s.set)for(const n of e)u.add(a(n,t,l));else if(c===s.map)for(const s of e){var d=n(s,2);const e=d[0],r=d[1];u.set(e,a(r,t,l))}const f=i.keys(e,t);for(const n of f){if(c===s.array&&"length"===n){u.length=e.length;continue}const r=Object.getOwnPropertyDescriptor(e,n);r?r.get||r.set?Object.defineProperty(u,n,r):r.enumerable?u[n]=a(e[n],t,l):Object.defineProperty(u,n,{enumerable:!1,writable:!0,configurable:!0,value:a(e[n],t,l)}):Object.defineProperty(u,n,{enumerable:!0,writable:!0,configurable:!0,value:a(e[n],t,l)})}return u},o.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const n=i.store(e,r),s=o.clone(e,t);return i.restore(s,e,n),s},o.base=function(e,t,r){if(t===s.array)return[];if(!1===r.prototype)return o.needsProtoHack.has(t)?new t.constructor:{};const n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(o.needsProtoHack.has(t)){const e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},function(e,t,r){"use strict";const n=r(0),s=r(32),i=r(1),o=r(9);e.exports=s.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,r){let n=r.method;try{return n(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(i.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate(e,t,r){let n=r.code,s=r.local;return t.error(n,s)},args:["code","local"],multi:!0}},modifiers:{keep(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.keep=t},message(e,t){e.message=o.compile(t)},warn(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.warn=t}},manifest:{build(e,t){for(const r in t){const n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of n)e=e.shared(t)}else for(const t of n){const r=t.ref,n=t.is,s=t.not,i=t.then,o=t.otherwise,a=t.concat;e=a?e.concat(a):r?e.when(r,{is:n,not:s,then:i,otherwise:o,switch:t.switch,break:t.break}):e.when(n,{then:i,otherwise:o,break:t.break})}else{const t={};for(const e of n){const r=e.target,n=e.adjuster;t[r]=n}e=e.alter(t)}}return e}},messages:{"any.custom":'"{{#label}}" failed custom validation because {{#error.message}}',"any.default":'"{{#label}}" threw an error when running default method',"any.failover":'"{{#label}}" threw an error when running failover method',"any.invalid":'"{{#label}}" contains an invalid value',"any.only":'"{{#label}}" must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":'"{{#label}}" {{#arg}} references "{{#ref}}" which {{#reason}}',"any.required":'"{{#label}}" is required',"any.unknown":'"{{#label}}" is not allowed'}})},function(e,t,r){"use strict";const n=r(2),s=r(1),i=r(6),o={annotations:Symbol("annotations")};t.Report=class{constructor(e,r,n,s,i,o,a){if(this.code=e,this.flags=s,this.messages=i,this.path=o.path,this.prefs=a,this.state=o,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;
2if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?'Error code "'.concat(e,'" is not defined, your custom type is missing the correct messages definition'):(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+="[".concat(r,"]"));return t},t.template=function(e,t,r,n,o){if(!t)return;if(i.isTemplate(t))return"root"!==r?t:null;let a=o.errors.language;return s.isResolvable(a)&&(a=a.resolve(e,n,o)),a&&t[a]&&void 0!==t[a][r]?t[a][r]:t[r]},t.label=function(e,r,n,s){if(e.label)return e.label;if(!n.errors.label)return"";let i=r.path;return"key"===n.errors.label&&r.path.length>1&&(i=r.path.slice(-1)),t.path(i)||t.template(null,n.messages,"root",r,n)||s&&t.template(null,s,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;const s=t.details(e),i=s.override,o=s.message,a=s.details;if(i)return i;if(n.errors.stack)return new t.ValidationError(o,a,r);const l=Error.stackTraceLimit;Error.stackTraceLimit=0;const c=new t.ValidationError(o,a,r);return Error.stackTraceLimit=l,c},t.details=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];const n=[];for(const s of e){if(s instanceof Error){if(!1!==t.override)return{override:s};const e=s.toString();r.push(e),n.push({message:e,type:"override",context:{error:s}});continue}const e=s.toString();r.push(e),n.push({message:e,path:s.path.filter(e=>"object"!=typeof e),type:s.code,context:s.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}annotate(e){if(!this._original||"object"!=typeof this._original)return this.details[0].message;const t=e?"":"\x1b[31m",r=e?"":"\x1b[41m",i=e?"":"\x1b[0m",a=n(this._original);for(let n=this.details.length-1;n>=0;--n){const e=n+1,t=this.details[n],r=t.path;let i=a;for(let n=0;;++n){const a=r[n];if(s.isSchema(i)&&(i=i.clone()),!(n+1<r.length&&"string"!=typeof i[a])){const r=i[o.annotations]||{errors:{},missing:{}};i[o.annotations]=r;const n=a||t.context.key;void 0!==i[a]?(r.errors[n]=r.errors[n]||[],r.errors[n].push(e)):r.missing[n]=e;break}i=i[a]}}const l=/_\$key\$_([, \d]+)_\$end\$_"/g,c=/"_\$miss\$_([^|]+)\|(\d+)_\$end\$_": "__missing__"/g,u=/\s*"_\$idx\$_([, \d]+)_\$end\$_",?\n(.*)/g,d=/"\[(NaN|Symbol.*|-?Infinity|function.*|\(.*)]"/g;let f=o.safeStringify(a,2).replace(l,(e,r)=>'" '.concat(t,"[").concat(r,"]").concat(i)).replace(c,(e,n,s)=>"".concat(r,'"').concat(n,'"').concat(i).concat(t," [").concat(s,"]: -- missing --").concat(i)).replace(u,(e,r,n)=>"\n".concat(n," ").concat(t,"[").concat(r,"]").concat(i)).replace(d,(e,t)=>t);f="".concat(f,"\n").concat(t);for(let n=0;n<this.details.length;++n){const e=n+1;f="".concat(f,"\n[").concat(e,"] ").concat(this.details[n].message)}return f+i}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",o.safeStringify=function(e,t){return JSON.stringify(e,o.serializer(),t)},o.serializer=function(){const e=[],t=[],r=(r,n)=>t[0]===n?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(n)).join(".")+"]";return function(n,s){if(t.length>0){const i=t.indexOf(this);~i?(t.length=i+1,e.length=i+1,e[i]=n):(t.push(this),e.push(n)),~t.indexOf(s)&&(s=r.call(this,n,s))}else t.push(s);if(s){const e=s[o.annotations];if(e){if(Array.isArray(s)){const t=[];for(let r=0;r<s.length;++r)e.errors[r]&&t.push("_$idx$_".concat(e.errors[r].sort().join(", "),"_$end$_")),t.push(s[r]);s=t}else{for(const t in e.errors)s["".concat(t,"_$key$_").concat(e.errors[t].sort().join(", "),"_$end$_")]=s[t],s[t]=void 0;for(const t in e.missing)s["_$miss$_".concat(t,"|").concat(e.missing[t],"_$end$_")]="__missing__"}return s}}return s===1/0||s===-1/0||Number.isNaN(s)||"function"==typeof s||"symbol"==typeof s?"["+s.toString()+"]":s}}},function(e,t,r){"use strict";const s=r(0),i=r(2),o=r(8),a=r(1);let l;
2const c={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s("string"==typeof e,"Invalid reference key:",e),a.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","separator"]),s(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},c.defaults,t);delete r.prefix;const i=r.separator,o=c.context(e,i,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(s(!i||e[0]!==i,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),i&&i===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)s(!i||!e||e[0]!==i,"Cannot combine prefix with ancestor option");else{const t=c.ancestor(e,i),s=n(t,2),o=s[0],a=s[1];a&&""===(e=e.slice(a))&&(e=null),r.ancestor=o}return r.path=i?null===e?[]:e.split(i):[e],new c.Ref(r)},t.in=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.create(e,Object.assign({},r,{in:!0}))},t.isRef=function(e){return!!e&&!!e[a.symbols.ref]},c.Ref=class{constructor(e){s("object"==typeof e,"Invalid reference construction"),a.assertOptions(e,["adjust","ancestor","in","iterables","map","path","separator","type","depth","key","root","display"]),s([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),s(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),s(!e.map||Array.isArray(e.map),"options.map must be an array"),s(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,c.defaults,e),s("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s(!this.in||i.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,i):"local"===this.type?this._resolve(n,t,i):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,i):(s(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,i)):this._resolve(e,t,i)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=o(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){const e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new c.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables"])null!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display="ref:".concat(this.type,":").concat(e));if(!this.separator)return void(this.display="ref:".concat(e));if(!this.ancestor)return void(this.display="ref:".concat(this.separator).concat(e));if("root"===this.ancestor)return void(this.display="ref:root:".concat(e));if(1===this.ancestor)return void(this.display="ref:".concat(e||".."));const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display="ref:".concat(t).concat(e||"")}},c.Ref.prototype[a.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},c.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new c.Ref(e)},c.context=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e=e.trim(),r){const n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};const s=void 0===r.local?"#":r.local;if(s!==t&&e.startsWith(s))return{key:e.slice(s.length),type:"local"};const i=void 0===r.root?"/":r.root;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"value",root:!0}}return{key:e,type:"value"}},c.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,n){if(e)if(n=void 0===n?t.toParent:n,Array.isArray(e))for(const t of e)this.register(t,n);else if(a.isSchema(e))for(const t of e._refs.refs)t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root}),(l=l||r(6)).isTemplate(e)&&this.register(e.refs(),n)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=i(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}},function(e,t,r){"use strict";
2const s=r(0),i=r(2),o=r(29),a=r(30),l=r(1),c=r(4),u=r(5),d={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\x01"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=d.Template=class{constructor(e,t){s("string"==typeof e,"Template source must be a string"),s(!e.includes("\0")&&!e.includes("\x01"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=i(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=d.encode(this.source),t=d.split(e);let r=!1;const n=[],s=t.shift();s&&n.push(s);for(const i of t){const e="{"!==i[0],t=e?"}":"}}",s=i.indexOf(t);if(-1===s||"{"===i[1]){n.push("{".concat(d.decode(i)));continue}const o=i.slice(e?0:1,s),a=this._ref(d.decode(o),e);n.push(a),"string"!=typeof a&&(r=!0);const l=i.slice(s+t.length);l&&n.push(d.decode(l))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return d.dateFormat[t.dateFormat].call(e)}describe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new d.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[l.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.ref?e.ref.resolve(...r):e.formula.evaluate(r)}render(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this.isDynamic())return this.rendered;const i=[];for(const a of this._template)if("string"==typeof a)i.push(a);else{const l=this._part(a,e,t,r,n,s),c=d.stringify(l,r,s.errors);if(void 0!==c){const e=a.raw||!1===(s.errors&&s.errors.escapeHtml)?c:o(c);i.push(e)}}return i.join("")}_ref(e,t){const r=[],n=e=>{const t=u.create(e,this._settings);return r.push(t),e=>t.resolve(...e)};try{var s=new a(e,{reference:n,functions:d.functions,constants:d.constants})}catch(t){throw t.message='Invalid template variable "'.concat(e,'" fails due to: ').concat(t.message),t}return s.single?"reference"===s.single.type?{ref:r[0],raw:t,refs:r}:d.stringify(s.single.value):{formula:s,raw:t,refs:r}}toString(){return this.source}},d.Template.prototype[l.symbols.template]=!0,d.Template.prototype.isImmutable=!0,d.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>d.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>d.closes.slice(0,t.length))},d.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},d.split=function(e){const t=[];let r="";for(let n=0;n<e.length;++n){const s=e[n];if("{"===s){let s="";for(;n+1<e.length&&"{"===e[n+1];)s+="{",++n;t.push(r),r=s}else r+=s}return t.push(r),t},d.stringify=function(e,t,r){const s=typeof e;if(null===e)return"null";if("string"===s)return e;if("number"===s||"function"===s||"symbol"===s)return e.toString();if("object"!==s)return JSON.stringify(e);if(e instanceof Date)return d.Template.date(e,t);if(e instanceof Map){const t=[];for(const r of e.entries()){var i=n(r,2);const e=i[0],s=i[1];t.push("".concat(e.toString()," -> ").concat(s.toString()))}e=t}if(!Array.isArray(e))return e.toString();let o="";for(const n of e)o=o+(o.length?", ":"")+d.stringify(n,t,r);return r.wrapArrays?"["+o+"]":o},d.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},d.functions={if:(e,t,r)=>e?t:r,msg(e){const t=n(this,5),r=t[0],s=t[1],i=t[2],o=t[3],a=t[4],l=a.messages;if(!l)return"";const u=c.template(r,l[0],e,s,i)||c.template(r,l[1],e,s,i);return u?u.render(r,s,i,o,a):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},function(e,t,r){"use strict";const n=r(0),s=r(1),i=r(5),o={};
vendor: 4,928 bytes, line 2
2t.schema=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s.assertOptions(r,["appendPath","override"]);try{return o.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message="".concat(e.message," (").concat(e.path,")")),e}},o.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const i=function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return!1!==r.override?t.valid(e.override,...s):t.valid(...s)};if(o.simple(t))return i(e,t);if("function"==typeof t)return e.custom(t);if(n("object"==typeof t,"Invalid schema content:",typeof t),s.isResolvable(t))return i(e,t);if(s.isSchema(t))return t;if(Array.isArray(t)){for(const r of t)if(!o.simple(r))return e.alternatives().try(...t);return i(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?i(e.date(),t):(n(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return i.isRef(e)?e:i.create(e,t)},t.compile=function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s.assertOptions(i,["legacy"]);const a=r&&r[s.symbols.any];if(a)return n(i.legacy||a.version===s.version,"Cannot mix different versions of joi schemas:",a.version,s.version),r;if("object"!=typeof r||!i.legacy)return t.schema(e,r,{appendPath:!0});const l=o.walk(r);return l?l.compile(l.root,r):t.schema(e,r,{appendPath:!0})},o.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=o.walk(t);if(e)return e}return null}const t=e[s.symbols.any];if(t)return{root:e[t.root],compile:t.compile};n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const r in e){const t=o.walk(e[r]);if(t)return t}return null},o.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,a){if(void 0===a&&(n(r&&"object"==typeof r,"Missing options"),a=r,r=i.create(".")),Array.isArray(a)&&(a={switch:a}),s.assertOptions(a,["is","not","then","otherwise","switch","break"]),s.isSchema(r))return n(void 0===a.is,'"is" can not be used with a schema condition'),n(void 0===a.not,'"not" can not be used with a schema condition'),n(void 0===a.switch,'"switch" can not be used with a schema condition'),o.condition(e,{is:r,then:a.then,otherwise:a.otherwise,break:a.break});if(n(i.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===a.not||void 0===a.is,'Cannot combine "is" with "not"'),void 0===a.switch){let l=a;void 0!==a.not&&(l={is:a.not,then:a.otherwise,otherwise:a.then,break:a.break});let c=void 0!==l.is?e.$_compile(l.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==l.then||void 0!==l.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===l.break||void 0===l.then||void 0===l.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===a.is||i.isRef(a.is)||s.isSchema(a.is)||(c=c.required()),o.condition(e,{ref:t.ref(r),is:c,then:l.then,otherwise:l.otherwise,break:l.break})}n(Array.isArray(a.switch),'"switch" must be an array'),n(void 0===a.is,'Cannot combine "switch" with "is"'),n(void 0===a.not,'Cannot combine "switch" with "not"'),n(void 0===a.then,'Cannot combine "switch" with "then"');const l={ref:t.ref(r),switch:[],break:a.break};for(let t=0;t<a.switch.length;++t){const r=a.switch[t],o=t===a.switch.length-1;s.assertOptions(r,o?["is","then","otherwise"]:["is","then"]),n(void 0!==r.is,'Switch statement missing "is"'),n(void 0!==r.then,'Switch statement missing "then"');const c={is:e.$_compile(r.is),then:e.$_compile(r.then)};if(i.isRef(r.is)||s.isSchema(r.is)||(c.is=c.is.required()),o){n(void 0===a.otherwise||void 0===r.otherwise,'Cannot specify "otherwise" inside and outside a "switch"');const t=void 0!==a.otherwise?a.otherwise:r.otherwise;void 0!==t&&(n(void 0===l.break,"Cannot specify both otherwise and break"),c.otherwise=e.$_compile(t))}l.switch.push(c)}return l},o.condition=function(e,t){for(const r of["then","otherwise"])void 0===t[r]?delete t[r]:t[r]=e.$_compile(t[r]);return t}},function(e,t,r){"use strict";const n=r(0),s={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const i=Array.isArray(t);n(!i||!r.separator,"Separator option no valid for array-based chain");const o=i?t:t.split(r.separator||".");let a=e;for(let l=0;l<o.length;++l){let e=o[l];const i=r.iterables&&s.iterables(a);if(Array.isArray(a)||"set"===i){const t=Number(e);Number.isInteger(t)&&(e=t<0?a.length+t:t)}if(!a||"function"==typeof a&&!1===r.functions||!i&&void 0===a[e]){n(!r.strict||l+1===o.length,"Missing segment",e,"in reach path ",t),n("object"==typeof a||!0===r.functions||"function"!=typeof a,"Invalid segment",e,"in reach path ",t),a=r.default;break}
2a=i?"set"===i?[...a][e]:a.get(e):a[e]}return a},s.iterables=function(e){return e instanceof Set?"set":e instanceof Map?"map":void 0}},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(6);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new i(e);if(i.isTemplate(e))return n(!t,"Cannot set single message template"),e;n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?s(t):{};for(let r in e){const s=e[r];if("root"===r||i.isTemplate(s)){t[r]=s;continue}if("string"==typeof s){t[r]=new i(s);continue}n("object"==typeof s&&!Array.isArray(s),"Invalid message for",r);const o=r;for(r in t[o]=t[o]||{},s){const e=s[r];"root"===r||i.isTemplate(e)?t[o][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",o),t[o][r]=new i(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const n=e[r];if("root"===r){t[r]=n;continue}if(i.isTemplate(n)){t[r]=n.describe({compact:!0});continue}const s=r;for(r in t[s]={},n){const e=n[r];t[s][r]="root"!==r?e.describe({compact:!0}):e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new i(r);if(i.isTemplate(r))return r;const o=s(e);for(let t in r){const e=r[t];if("root"===t||i.isTemplate(e)){o[t]=e;continue}if("string"==typeof e){o[t]=new i(e);continue}n("object"==typeof e&&!Array.isArray(e),"Invalid message for",t);const s=t;for(t in o[s]=o[s]||{},e){const r=e[t];"root"===t||i.isTemplate(r)?o[s][t]=r:(n("string"==typeof r,"Invalid message for",t,"in",s),o[s][t]=new i(r))}}return o}},function(e,t,r){"use strict";const s=r(8),i={};t.keys=function(e){return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)},t.store=function(e,t){const r=new Map;for(let n=0;n<t.length;++n){const o=t[n],a=s(e,o);"object"!=typeof a&&"function"!=typeof a||(r.set(o,a),i.reachSet(e,o,void 0))}return r},t.restore=function(e,t,r){for(const o of r){var s=n(o,2);const r=s[0],a=s[1];i.reachSet(e,r,a),i.reachSet(t,r,a)}},i.reachSet=function(e,t,r){const n=Array.isArray(t)?t:t.split(".");let s=e;for(let i=0;i<n.length;++i){const e=n[i];i+1===n.length&&(s[e]=r),s=s[e]}}},function(e,t,r){"use strict";const s=r(14),i={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!i.isDeepEqual(e,t,r,[])},i.isDeepEqual=function(e,t,r,n){if(e===t)return 0!==e||1/e==1/t;const o=typeof e;if(o!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===o){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==o)return e!=e&&t!=t;const a=i.getSharedType(e,t,!!r.prototype);switch(a){case s.buffer:return!1;case s.promise:return e===t;case s.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let s=n.length-1;s>=0;--s)if(n[s].isSame(e,t))return!0;n.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(a,e,t,r,n)}finally{n.pop()}},i.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:s.getInternalProto(e);const n=s.getInternalProto(e);return n!==s.getInternalProto(t)?i.mismatched:n},i.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(const r of e)if(!t.has(r))return!1;return!0},i.isDeepEqualObj=function(e,t,r,o,a){const l=i.isDeepEqual,c=i.valueOf,u=i.hasOwnEnumerableProperty,d=Object.keys,f=Object.getOwnPropertySymbols;if(e===s.array){if(!o.part){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!l(t[e],r[e],o,a))return!1;return!0}for(const e of t)for(const t of r)if(l(e,t,o,a))return!0}else if(e===s.set){if(t.size!==r.size)return!1;if(!i.isSetSimpleEqual(t,r)){const e=new Set(r);for(const r of t){if(e.delete(r))continue;let t=!1;for(const n of e)if(l(r,n,o,a)){e.delete(n),t=!0;break}if(!t)return!1}}}else if(e===s.map){if(t.size!==r.size)return!1;for(const e of t){var h=n(e,2);const t=h[0],s=h[1];if(void 0===s&&!r.has(t))return!1;if(!l(s,r.get(t),o,a))return!1}}else if(e===s.error&&(t.name!==r.name||t.message!==r.message))return!1;const m=c(t),p=c(r);if((t!==m||r!==p)&&!l(m,p,o,a))return!1;const g=d(t);if(!o.part&&g.length!==d(r).length&&!o.skip)return!1;let y=0;for(const n of g)if(o.skip&&o.skip.includes(n))void 0===r[n]&&++y;else{if(!u(r,n))return!1;if(!l(t[n],r[n],o,a))return!1}if(!o.part&&g.length-y!==d(r).length)return!1;if(!1!==o.symbols){const e=f(t),n=new Set(f(r));for(const s of e){if(!o.skip||!o.skip.includes(s))if(u(t,s)){if(!u(r,s))return!1;if(!l(t[s],r[s],o,a))return!1}else if(u(r,s))return!1;n.delete(s)}for(const t of n)if(u(r,t))return!1}return!0},i.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(15),o=r(1),a=r(7),l=r(4),c=r(17),u=r(18),d=r(5),f=r(6),h=r(19);let m;const p={types:{alternatives:r(31),any:r(3),array:r(37),boolean:r(38),date:r(39),function:r(40),link:r(43),number:r(44),object:r(45),string:r(46),symbol:r(50)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(p.types))};for(const t of e._types)e[t]=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];return n(!r.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),p.generate(this,p.types[t],r)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invali
2d","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(){return this.any()[t](...arguments)};Object.assign(e,p.methods);for(const t in p.aliases){const r=p.aliases[t];e[t]=e[r]}return e.x=e.expression,h.setup&&h.setup(e),e}};p.methods={ValidationError:l.ValidationError,version:o.version,cache:i.provider,assert(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];p.assert(e,t,!0,n)},attempt(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return p.assert(e,t,!1,n)},build(e){return n("function"==typeof u.build,"Manifest functionality disabled"),u.build(this,e)},checkPreferences(e){o.checkPreferences(e)},compile(e,t){return a.compile(this,e,t)},defaults(e){n("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const r of t._types){const s=e(t[r]());n(o.isSchema(s),"modifier must return a valid schema object"),t[r]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return p.generate(this,s,t)}}return t},expression(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new f(...t)},extend(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];o.verifyFlat(t,"extend"),m=m||r(16),n(t.length,"You need to provide at least one extension"),this.assert(t,m.extensions);const i=Object.assign({},this);i._types=new Set(i._types);for(let r of t){"function"==typeof r&&(r=r(i)),this.assert(r,m.extension),n(void 0===i[r.type]||i._types.has(r.type),"Cannot override name",r.type);const e=r.base||this.any(),t=c.type(e,r);i._types.add(r.type),i[r.type]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return p.generate(this,t,r)}}return i},isExpression:f.isTemplate,isRef:d.isRef,isSchema:o.isSchema,in(){return d.in(...arguments)},override:o.symbols.override,ref(){return d.create(...arguments)},types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in p.aliases)e[t]=this[t]();return e}},p.assert=function(e,t,r,n){const i=n[0]instanceof Error||"string"==typeof n[0]?n[0]:null,a=i?n[1]:n[0],c=t.validate(e,o.preferences({errors:{stack:!0}},a||{}));let u=c.error;if(!u)return c.value;if(i instanceof Error)throw i;const d=(r=r&&"function"==typeof u.annotate)?u.annotate():u.message;throw u instanceof l.ValidationError==0&&(u=s(u)),u.message=i?"".concat(i," ").concat(d):d,u},p.generate=function(e,t,r){return n(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},e.exports=p.root()},function(e,t,r){"use strict";const n=r(27);e.exports=class extends Error{constructor(e){super(e.filter(e=>""!==e).map(e=>"string"==typeof e?e:e instanceof Error?e.message:n(e)).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},function(e,t,r){"use strict";const n={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const r=Object.prototype.toString.call(e);return n.typeMap.get(r)||t.generic}},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(1),o={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new o.Cache(e)},o.Cache=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||o.max,this._map=new Map,this._list=new o.List}get length(){return this._map.size}set(e,t){if(null!==e&&!o.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),s(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},o.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const t=e.next,r=e.prev;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},function(e,t,r){"use strict";const n=r(12),s={};t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrapArrays:n.boolean()},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),s.nameRx=/^[a-zA-Z0-9]+$/,s.rule=n.object({alias:n.array().items(n.string().pattern(s.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(s.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.string().required(),args:n.function(),base:n.object().schema(),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(s.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(s.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(s.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(s.nameRx,s.rule),terms:n.object().pattern(s.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])}
vendor: 9,000 bytes, line 2
2)),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),s.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},s.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),s.desc.buffer,s.desc.func,s.desc.ref,s.desc.regex,s.desc.special,s.desc.template,s.desc.value,n.link("/")]),s.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),s.desc.buffer,s.desc.func,s.desc.override,s.desc.ref,s.desc.regex,s.desc.template,s.desc.value),s.desc.messages=n.object().pattern(/.+/,[n.string(),s.desc.template,n.object().pattern(/.+/,[n.string(),s.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:s.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),s.desc.ref],wrapArrays:n.boolean()},externals:n.boolean(),messages:s.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:s.desc.values,invalid:s.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),s.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:s.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(1),o=r(9),a={};t.type=function(e,t){const r=Object.getPrototypeOf(e),l=s(r),c=e._assign(Object.create(l)),u=Object.assign({},t);delete u.base,l._definition=u;const d=r._definition||{};u.messages=o.merge(d.messages,u.messages),u.properties=Object.assign({},d.properties,u.properties),c.type=u.type,u.flags=Object.assign({},d.flags,u.flags);const f=Object.assign({},d.terms);if(u.terms)for(const s in u.terms){const e=u.terms[s];n(void 0===c.$_terms[s],"Invalid term override for",u.type,s),c.$_terms[s]=e.init,f[s]=e}u.terms=f,u.args||(u.args=d.args),u.prepare=a.prepare(u.prepare,d.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=a.coerce(u.coerce,d.coerce),u.validate=a.validate(u.validate,d.validate);const h=Object.assign({},d.rules);if(u.rules)for(const s in u.rules){const e=u.rules[s];n("object"==typeof e,"Invalid rule definition for",u.type,s);let t=e.method;if(void 0===t&&(t=function(){return this.$_addRule(s)}),t&&(n(!l[s],"Rule conflict in",u.type,s),l[s]=t),n(!h[s],"Rule conflict in",u.type,s),h[s]=e,e.alias){const t=[].concat(e.alias);for(const r of t)l[r]=e.method}e.args&&(e.argsByName=new Map,e.args=e.args.map(t=>("string"==typeof t&&(t={name:t}),n(!e.argsByName.has(t.name),"Duplicated argument name",t.name),i.isSchema(t.assert)&&(t.assert=t.assert.strict().label(t.name)),e.argsByName.set(t.name,t),t)))}u.rules=h;const m=Object.assign({},d.modifiers);if(u.modifiers)for(const s in u.modifiers){n(!l[s],"Rule conflict in",u.type,s);const e=u.modifiers[s];n("function"==typeof e,"Invalid modifier definition for",u.type,s);const t=function(e){return this.rule({[s]:e})};l[s]=t,m[s]=e}if(u.modifiers=m,u.overrides){l._super=r,c.$_super={};for(const e in u.overrides)n(r[e],"Cannot override missing",e),c.$_super[e]=r[e].bind(c);Object.assign(l,u.overrides)}u.cast=Object.assign({},d.cast,u.cast);const p=Object.assign({},d.manifest,u.manifest);return p.build=a.build(u.manifest&&u.manifest.build,d.manifest&&d.manifest.build),u.manifest=p,u.rebuild=a.rebuild(u.rebuild,d.rebuild),c},a.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},a.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let s;if((!t.from||t.from.includes(typeof r))&&(s=t.method(r,n))){if(s.errors||void 0===s.value)return s;r=s.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,n);if(t)return t}return s}}:e||t},a.prepare=function(e,t){return e&&t?function(r,n){const s=e(r,n);if(s){if(s.errors||void 0===s.value)return s;r=s.value}return t(r,n)||s}:e||t},a.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},a.validate=function(e,t){return e&&t?function(r,n){const s=t(r,n);if(s){if(s.errors&&(!Array.isArray(s.errors)||s.errors.length))return s;r=s.value}return e(r,n)||s}:e||t}},function(e,t){},function(e,t){},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(10),o={};e.exports=o.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(s(t[n],{symbols:r.symbols}));return e}const a=i.keys(t,r);for(let n=0;n<a.length;++n){const i=a[n];if("__proto__"===i||!Object.prototype.propertyIsEnumerable.call(t,i))continue;const l=t[i];l&&"object"==typeof l?!e[i]||"object"!=typeof e[i]||Array.isArray(e[i])!==Array.isArray(l)||l instanceof Date||l instanceof RegExp?e[i]=s(l,{symbols:r.symbols}):o.merge(e[i],l,r):(null!=l||r.nullOverride)&&(e[i]=l)}return e}},function(e,t,r){"use strict";const n=r(0),s=r(11),i=r(1),o={};e.exports=o.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=o.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){i.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new o.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const n of[...r._values,...r._refs])e.remove(n);return e.length?e:null}remove(e){i.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const i of this._values)if(s(i,e))return{value:i};if(t)for(const i of this._refs){const o=i.resolve(e,t,r,null,{in:!0});if(void 0===o)continue;const a=i.in&&"object"==typeof o?Array.isArray(o)?o:Object.keys(o):[o];for(const t of a)if(typeof t==typeof e)if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:i}}else if(s(t,e))return{value:t,ref:i}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new o.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");const t=new o.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},o.Values.prototype[i.symbols.values]=!0,o.Values.prototype.slice=o.Values.prototype.clone,o.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},function(e,t,r){"use strict";const n=r(41),s=r(0),i=r(2),o=r(42),a=r(3),l=r(1),c=r(7),u=r(4),d=r(5),f=r(6),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=a.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}}
2,terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,t){let r=t.schema,n=t.error,s=t.state,i=t.prefs;if(!e||typeof e!==r.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:r.$_property("typeof")})};if(!(r.$_terms.renames||r.$_terms.dependencies||r.$_terms.keys||r.$_terms.patterns||r.$_terms.externals))return;e=h.clone(e,i);const o=[];if(r.$_terms.renames&&!h.rename(r,e,s,i,o))return{value:e,errors:o};if(!r.$_terms.keys&&!r.$_terms.patterns&&!r.$_terms.dependencies)return{value:e,errors:o};const a=new Set(Object.keys(e));if(r.$_terms.keys){const t=[e,...s.ancestors];for(const n of r.$_terms.keys){const r=n.key,l=e[r];a.delete(r);const c=s.localize([...s.path,r],t,n),u=n.schema.$_validate(l,c,i);if(u.errors){if(i.abortEarly)return{value:e,errors:u.errors};o.push(...u.errors)}else"strip"===n.schema._flags.result||void 0===u.value&&void 0!==l?delete e[r]:void 0!==u.value&&(e[r]=u.value)}}if(a.size||r._flags._hasPatternMatch){const t=h.unknown(r,e,a,o,s,i);if(t)return t}if(r.$_terms.dependencies)for(const l of r.$_terms.dependencies){if(l.key&&void 0===l.key.resolve(e,s,i,null,{shadow:!1}))continue;const t=h.dependencies[l.rel](r,l,e,s,i);if(t){const n=r.$_createError(t.code,e,t.context,s,i);if(i.abortEarly)return{value:e,errors:n};o.push(n)}}return{value:e,errors:o}},rules:{and:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"and"),h.dependency(this,"and",null,t)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){f.isTemplate(e)||(e=c.ref(e)),s(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const n=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return n.$_mutateRegister(e),n.$_mutateRegister(t),n},validate(e,t,r){let n=t.error,s=t.prefs,i=t.state,o=r.subject,a=r.schema,l=r.message;const c=o.resolve(e,i,s),u=d.isRef(o)?o.absolute(i):[];return a.$_match(c,i.localize(u,[e,...i.ancestors],a),s)?e:n("object.assert",{subject:o,message:l})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return s("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate(e,t,r){let n=r.constructor,s=r.name;return e instanceof n?e:t.error("object.instance",{type:s,value:e})},args:["constructor","name"]},keys:{method(e){s(void 0===e||"object"==typeof e,"Object schema must be a valid object"),s(!l.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):[];for(const r in e)l.tryWithPath(()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])}),r)}else t.$_terms.keys=[];else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let s=r.limit,i=n.name,o=n.operator,a=n.args;return l.compare(Object.keys(e).length,s,o)?e:t.error("object."+i,{limit:a.limit,value:e})},args:[{name:"limit",ref:!0,assert:l.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"nand"),h.dependency(this,"nand",null,t)}},or:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"or"),h.dependency(this,"or",null,t)}},oxor:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return h.dependency(this,"oxor",null,t)}},pattern:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),s(void 0!==t,"Invalid rule"),l.assertOptions(r,["fallthrough","matches"]),n&&s(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const i=this.clone();i.$_terms.patterns=i.$_terms.patterns||[];const o={[n?"regex":"schema"]:e,rule:t};return r.matches&&(o.matches=this.$_compile(r.matches),"array"!==o.matches.type&&(o.matches=o.matches.$_root.array().items(o.matches)),i.$_mutateRegister(o.matches),i.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(o.fallthrough=!0),i.$_terms.patterns.push(o),i.$_mutateRegister(t),i}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>
2d.isRef(e)?e:t.error("object.refType",{value:e})},rename:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),s("string"==typeof t||t instanceof f,"Invalid rename to argument"),s(t!==e,"Cannot rename key to same name:",e),l.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const i=this.clone();i.$_terms.renames=i.$_terms.renames||[];for(const n of i.$_terms.renames)s(n.from!==e,"Cannot rename the same key multiple times");return t instanceof f&&i.$_mutateRegister(t),i.$_terms.renames.push({from:e,to:t,options:n(h.renameDefaults,r)}),i}},schema:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return this.$_addRule({name:"schema",args:{type:e}})},validate(e,t,r){let n=r.type;return!l.isSchema(e)||"any"!==n&&e.type!==n?t.error("object.schema",{type:n}):e}},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"with",e,t,r)}},without:{method(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h.dependency(this,"without",e,t,r)}},xor:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"xor"),h.dependency(this,"xor",null,t)}}},overrides:{default(e,t){return void 0===e&&(e=l.symbols.deepDefault),this.$_super.default(e,t)}},rebuild(e){if(e.$_terms.keys){const t=new o;for(const r of e.$_terms.keys)l.tryWithPath(()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key}),r.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const r of t.dependencies){const t=r.rel,n=r.key,s=void 0===n?null:n,i=r.peers,o=r.options;e=h.dependency(e,t,s,i,o)}if(t.patterns)for(const r of t.patterns){const t=r.regex,n=r.schema,s=r.rule,i=r.fallthrough,o=r.matches;e=e.pattern(t||n,s,{fallthrough:i,matches:o})}if(t.renames)for(const r of t.renames){const t=r.from,n=r.to,s=r.options;e=e.rename(t,n,s)}return e}},messages:{"object.and":'"{{#label}}" contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}',"object.assert":'"{{#label}}" is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":'"{{#label}}" must be of type {{#type}}',"object.instance":'"{{#label}}" must be an instance of "{{#type}}"',"object.length":'"{{#label}}" must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'"{{#label}}" must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'"{{#label}}" must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":'"{{#label}}" must contain at least one of {{#peersWithLabels}}',"object.nand":'"{{#mainWithLabel}}" must not exist simultaneously with {{#peersWithLabels}}',"object.oxor":'"{{#label}}" contains a conflict between optional exclusive peers {{#peersWithLabels}}',"object.pattern.match":'"{{#label}}" keys failed to match pattern requirements',"object.refType":'"{{#label}}" must be a Joi reference',"object.rename.multiple":'"{{#label}}" cannot rename "{{#from}}" because multiple renames are disabled and another key was already renamed to "{{#to}}"',"object.rename.override":'"{{#label}}" cannot rename "{{#from}}" because override is disabled and target "{{#to}}" exists',"object.schema":'"{{#label}}" must be a Joi schema of {{#type}} type',"object.unknown":'"{{#label}}" is not allowed',"object.with":'"{{#mainWithLabel}}" missing required peer "{{#peerWithLabel}}"',"object.without":'"{{#mainWithLabel}}" conflict with forbidden peer "{{#peerWithLabel}}"',"object.xor":'"{{#label}}" contains a conflict between exclusive peers {{#peersWithLabels}}'}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return i(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)};return r.prototype=i(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r},h.dependency=function(e,t,r,n,i){s(null===r||"string"==typeof r,t,"key must be a strings"),i||(i=n.length>1&&"object"==typeof n[n.length-1]?n.pop():{}),l.assertOptions(i,["separator"]),n=[].concat(n);const o=l.default(i.separator,"."),a=[];for(const l of n)s("string"==typeof l,t,"peers must be a string or a reference"),a.push(c.ref(l,{separator:o,ancestor:0,prefix:!1}));null!==r&&(r=c.ref(r,{separator:o,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new h.Dependency(t,r,a,n)),u},h.dependencies={and(e,t,r,n,s){const i=[],o=[],a=t.peers.length;for(const l of t.peers)void 0===l.resolve(r,n,s,null,{shadow:!1})?i.push(l.key):o.push(l.key);if(i.length!==a&&o.length!==a)return{code:"object.and",context:{present:o,presentWithLabels:h.keysToLabels(e,o),missing:i,missingWithLabels:h.keysToLabels(e,i)}}},nand(e,t,r,n,s){const i=[];for(const l of t.peers)void 0!==l.resolve(r,n,s,null,{shadow:!1})&&i.push(l.key);if(i.length!==t.peers.length)return;const o=t.paths[0],a=t.paths.slice(1);return{code:"object.nand",context:{main:o,mainWithLabel:h.keysToLabels(e,o),peers:a,peersWithLabels:h.keysToLabels(e,a)}}},or(e,t,r,n,s){for(const i of t.peers)if(void 0!==i.resolve(r,n,s,null,{shadow:!1}))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,s){const i=[];for(const a of t.peers)void 0!==a.resolve(r,n,s,null,{shadow:!1})&&i.push(a.key);if(!i.length||1===i.length)return;const o={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return o.present=i,o.presentWithLabels=h.keysToLabels(e,i),{code:"object.oxor",context:o}},with(e,t,r,n,s){for(const i of t.peers)if(void 0===i.resolve(r,n,s,null,{shadow:!1}))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:i.key,peerWithLabel:h.keysToLabels(e,i.key)}}},without(e,t,r,n,s){for(const i of t.peers)if(void 0!==i.resolve(r,n,s,null,{shadow:!1}))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:i.key,peerWithLabel:h.keysToLabels(e,i.key)}}},xor(e,t,r,n,s){const i=[];for(const a of t.peers)void 0!==a.resolve(r,n,s,null,{shadow:!1})&&i.push(a.key);if(1===i.length)return;const o={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===i.length?{code:"object.missing",context:o}:(o.present=i,o.presentWithLabels=h.keysToLabels(e,i),{code:"object.xor",context:o})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},h.rename=function(e,t,r,n,s){const i={};for(const o of e.$_terms.renames){const a=[],l="string"!=typeof o.from;if(l)for(const e in t){if(void 0===t[e]&&o.options.ignoreUndefined)continue;if(e===o.to)continue;const r=o.from.exec(e);r&&a.push({from:e,to:o.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,o.from)||void 0===t[o.from]&&o.options.ignoreUndefined||a.push(o);for(const c of a){const a=c.from;let u=c.to;if(u instanceof f&&(u=u.render(t,r,n,c.match)),a!==u){if(!o.options.multiple&&i[u]&&(s.push(e.$_createError("object.rename.multiple",t,{from:a,to:u,pattern:l},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!o.options.override&&!i[u]&&(s.push(e.$_createError("object.rename.override",t,{from:a,to:u,pattern:l},r,n)),n.abortEarly))return!1;void 0===t[a]?delete t[u]:t[u]=t[a],i[u]=!0,o.options.alias||delete t[a]}}}return!0},h.unknown=function(e,t,r,n,s,i){if(e.$_terms.patterns){let o=!1;const a=e.$_terms.patterns.map(e=>{if(e.matches)return o=!0,[]}),l=[t,...s.ancestors];for(const c of r){const o=t[c],u=[...s.path,c];for(let d=0;d<e.$_terms.patterns.length;++d){const f=e.$_terms.patterns[d];if(f.regex){const e=f.regex.test(c);if(s.mainstay.tracer.debug(s,"rule","pattern.".concat(d),e?"pass":"error"),!e)continue}else if(!f.schema.$_match(c,s.nest(f.schema,"pattern.".concat(d)),i))continue;r.delete(c);const h=s.localize(u,l,{schema:f.rule,key:c}),m=f.rule.$_validate(o,h,i);if(m.errors){if(i.abortEarly)return{value:t,errors:m.errors};n.push(...m.errors)}if(f.matches&&a[d].push(c),t[c]=m.value,!f.fallthrough)break}}if(o)for(let r=0;r<a.length;++r){const o=a[r];if(!o)continue;const c=e.$_terms.patterns[r].matches,d=s.localize(s.path,l,c),f=c.$_validate(o,d,i);if(f.errors){const r=u.details(f.errors,{override:!1});r.matches=o;const a=e.$_createError("object.pattern.match",t,r,s,i);if(i.abortEarly)return{value:t,errors:a};n.push(a)}}}
2if(r.size&&(e.$_terms.keys||e.$_terms.patterns)){if(i.stripUnknown&&!e._flags.unknown||i.skipFunctions){const e=!!i.stripUnknown&&(!0===i.stripUnknown||!!i.stripUnknown.objects);for(const n of r)e?(delete t[n],r.delete(n)):"function"==typeof t[n]&&r.delete(n)}if(!l.default(e._flags.unknown,i.allowUnknown))for(const o of r){const r=s.localize([...s.path,o],[]),a=e.$_createError("object.unknown",t[o],{child:o},r,i,{flags:!1});if(i.abortEarly)return{value:t,errors:a};n.push(a)}}},h.Dependency=class{constructor(e,t,r,n){this.rel=e,this.key=t,this.peers=r,this.paths=n}describe(){const e={rel:this.rel,peers:this.paths};return null!==this.key&&(e.key=this.key.key),"."!==this.peers[0].separator&&(e.options={separator:this.peers[0].separator}),e}},h.Keys=class extends Array{concat(e){const t=this.slice(),r=new Map;for(let n=0;n<t.length;++n)r.set(t[n].key,n);for(const n of e){const e=n.key,s=r.get(e);void 0!==s?t[s]={key:e,schema:t[s].schema.concat(n.schema)}:t.push(n)}return t}}},function(e,t,r){"use strict";const n={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:r(24).URL||URL};t.analyze=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return{error:"Domain must be a non-empty string"};if(e.length>256)return{error:"Domain too long"};if(n.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return{error:"Domain contains forbidden Unicode characters"};e=e.normalize("NFC")}if(n.domainControlRx.test(e))return{error:"Domain contains invalid character"};e=n.punycode(e);const r=t.minDomainSegments||n.minDomainSegments,s=e.split(".");if(s.length<r)return{error:"Domain lacks the minimum required number of segments"};const i=t.tlds;if(i){const e=s[s.length-1].toLowerCase();if(i.deny&&i.deny.has(e)||i.allow&&!i.allow.has(e))return{error:"Domain uses forbidden TLD"}}for(let o=0;o<s.length;++o){const e=s[o];if(!e.length)return{error:"Domain contains empty dot-separated segment"};if(e.length>63)return{error:"Domain contains dot-separated segment that is too long"};if(o<s.length-1){if(!n.domainSegmentRx.test(e))return{error:"Domain contains invalid character"}}else if(!n.tldSegmentRx.test(e))return{error:"Domain contains invalid tld character"}}},t.isValid=function(e,r){return!t.analyze(e,r)},n.punycode=function(e){try{return new n.URL("http://".concat(e)).host}catch(t){return e}}},function(e,t){},function(e,t,r){"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},function(e,t,r){"use strict";const n=r(0),s=r(25),i={generate:function(){const e={},t="!\\$&'\\(\\)\\*\\+,;=",r="\\w-\\.~%\\dA-Fa-f"+t+":@",n="["+r+"]",s="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+s+"\\.){3}"+s;const i="[\\dA-Fa-f]{1,4}",o="(?:"+i+":"+i+"|"+e.ipv4address+")",a="(?:"+i+":){6}"+o,l="::(?:"+i+":){5}"+o,c="(?:"+i+")?::(?:"+i+":){4}"+o,u="(?:(?:"+i+":){0,1}"+i+")?::(?:"+i+":){3}"+o,d="(?:(?:"+i+":){0,2}"+i+")?::(?:"+i+":){2}"+o,f="(?:(?:"+i+":){0,3}"+i+")?::"+i+":"+o,h="(?:(?:"+i+":){0,4}"+i+")?::"+o;e.ipv4Cidr="\\d|[1-2]\\d|3[0-2]",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+a+"|"+l+"|"+c+"|"+u+"|"+d+"|"+f+"|"+h+"|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)",e.ipvFuture="v[\\dA-Fa-f]+\\.[\\w-\\.~"+t+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const m="[\\w-\\.~%\\dA-Fa-f"+t+":]*",p="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})",g="(?:"+m+"@)?"+p+"(?::\\d*)?",y="(?:"+m+"@)?("+p+")(?::\\d*)?",v=n+"+",b="(?:\\/"+n+"*)*",_="\\/(?:"+v+b+")?",w=v+b;return e.hierPart="(?:(?:\\/\\/"+g+b+")|"+_+"|"+w+"|(?:\\/\\/\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*))",e.hierPartCapture="(?:(?:\\/\\/"+y+b+")|"+_+"|"+w+")",e.relativeRef="(?:(?:\\/\\/"+g+b+")|"+_+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*|)",e.query="["+r+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+r+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+r+"\\/\\?]*",e}};e.exports=t=i.rfc3986=i.generate(),i.createRegex=function(e){const t=i.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?$";if(e.relativeOnly)return new RegExp("^"+t.relativeRef+r);let o="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.sc
2heme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");const i=[];for(let e=0;e<r.length;++e){const o=r[e];n(o instanceof RegExp||"string"==typeof o,"scheme at position "+e+" must be a RegExp or String"),o instanceof RegExp?i.push(o.source.toString()):(n(t.schemeRegex.test(o),"scheme at position "+e+" must be a valid scheme"),i.push(s(o)))}o=i.join("|")}const a="(?:"+(o?"(?:"+o+")":t.scheme)+":"+(e.domain?t.hierPartCapture:t.hierPart)+")",l=e.allowRelative?"(?:"+a+"|"+t.relativeRef+")":a,c=new RegExp("^"+l+r);return c.scheme=o,c},i.uriRegex=i.createRegex({}),t.createRegex=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?i.createRegex(e):i.uriRegex}},function(e,t,r){"use strict";e.exports=function(){try{for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return JSON.stringify.apply(null,t)}catch(e){return"[Cannot display object: "+e.message+"]"}}},function(e){e.exports=JSON.parse('{"version":"16.1.8"}')},function(e,t,r){"use strict";const n={};e.exports=function(e){if(!e)return"";let t="";for(let r=0;r<e.length;++r){const s=e.charCodeAt(r);n.isSafe(s)?t+=e[r]:t+=n.escapeHtmlChar(s)}return t},n.escapeHtmlChar=function(e){const t=n.namedHtml[e];if(void 0!==t)return t;if(e>=256)return"&#"+e+";";const r=e.toString(16).padStart(2,"0");return"&#x".concat(r,";")},n.isSafe=function(e){return void 0!==n.safeCharCodes[e]},n.namedHtml={38:"&amp;",60:"&lt;",62:"&gt;",34:"&quot;",160:"&nbsp;",162:"&cent;",163:"&pound;",164:"&curren;",169:"&copy;",174:"&reg;"},n.safeCharCodes=function(){const e={};for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&(e[t]=null);return e}()},function(e,t,r){"use strict";const n={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*\.?[0-9]*){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};e.exports=n.Formula=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t[n.settings]&&t.constants)for(const r in t.constants){const e=t.constants[r];if(null!==e&&!["boolean","number","string"].includes(typeof e))throw new Error("Formula constant ".concat(r," contains invalid ").concat(typeof e," value type"))}this.settings=t[n.settings]?t:Object.assign({[n.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let t=[],r="",s=0,i=!1;const o=e=>{if(s)throw new Error("Formula missing closing parenthesis");const o=t.length?t[t.length-1]:null;if(i||r||e){if(o&&"reference"===o.type&&")"===e)return o.type="function",o.value=this._subFormula(r,o.value),void(r="");if(")"===e){const e=new n.Formula(r,this.settings);t.push({type:"segment",value:e})}else if(i){if("]"===i)return t.push({type:"reference",value:r}),void(r="");t.push({type:"literal",value:r})}else if(n.operatorCharacters.includes(r))o&&"operator"===o.type&&n.operators.includes(o.value+r)?o.value+=r:t.push({type:"operator",value:r});else if(r.match(n.numberRx))t.push({type:"constant",value:parseFloat(r)});else if(void 0!==this.settings.constants[r])t.push({type:"constant",value:this.settings.constants[r]});else{if(!r.match(n.tokenRx))throw new Error("Formula contains invalid token: ".concat(r));t.push({type:"reference",value:r})}r=""}};for(const l of e)i?l===i?(o(),i=!1):r+=l:s?"("===l?(r+=l,++s):")"===l?--s?r+=l:o(l):r+=l:l in n.literals?i=n.literals[l]:"("===l?(o(),++s):n.operatorCharacters.includes(l)?(o(),r=l,o()):" "!==l?r+=l:o();o(),t=t.map((e,r)=>"operator"!==e.type||"-"!==e.value||r&&"operator"!==t[r-1].type?e:{type:"operator",value:"n"});let a=!1;for(const l of t){if("operator"===l.type){if(n.operatorsPrefix.includes(l.value))continue;
vendor: 2,462 bytes, line 2
2if(!a)throw new Error("Formula contains an operator in invalid position");if(!n.operators.includes(l.value))throw new Error("Formula contains an unknown operator ".concat(l.value))}else if(a)throw new Error("Formula missing expected operator");a=!a}if(!a)throw new Error("Formula contains invalid trailing operator");1===t.length&&["reference","literal","constant"].includes(t[0].type)&&(this.single={type:"reference"===t[0].type?"reference":"value",value:t[0].value}),this._parts=t.map(e=>{if("operator"===e.type)return n.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error("Formula contains invalid reference ".concat(e.value));return this.settings.reference?this.settings.reference(e.value):n.reference(e.value)})}_subFormula(e,t){const r=this.settings.functions[t];if("function"!=typeof r)throw new Error("Formula contains unknown function ".concat(t));let s=[];if(e){let r="",i=0,o=!1;const a=()=>{if(!r)throw new Error("Formula contains function ".concat(t," with invalid arguments ").concat(e));s.push(r),r=""};for(let t=0;t<e.length;++t){const s=e[t];o?(r+=s,s===o&&(o=!1)):s in n.literals&&!i?(r+=s,o=n.literals[s]):","!==s||i?(r+=s,"("===s?++i:")"===s&&--i):a()}a()}return s=s.map(e=>new n.Formula(e,this.settings)),function(e){const t=[];for(const r of s)t.push(r.evaluate(e));return r.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let r=t.length-2;r>=0;--r){const s=t[r];if(s&&"operator"===s.type){const i=t[r+1];t.splice(r+1,1);const o=n.evaluate(i,e);t[r]=n.single(s.value,o)}}return n.operatorsOrder.forEach(r=>{for(let s=1;s<t.length-1;)if(r.includes(t[s])){const r=t[s],i=n.evaluate(t[s-1],e),o=n.evaluate(t[s+1],e);t.splice(s,2);const a=n.calculate(r,i,o);t[s-1]=0===a?0:a}else s+=2}),n.evaluate(t[0],e)}},n.Formula.prototype[n.symbol]=!0,n.reference=function(e){return function(t){return t&&void 0!==t[e]?t[e]:null}},n.evaluate=function(e,t){return null===e?null:"function"==typeof e?e(t):e[n.symbol]?e.evaluate(t):e},n.single=function(e,t){if("!"===e)return!t;const r=-t;return 0===r?0:r},n.calculate=function(e,t,r){if("??"===e)return n.exists(t)?t:r;if("string"==typeof t||"string"==typeof r){if("+"===e)return(t=n.exists(t)?t:"")+(n.exists(r)?r:"")}else switch(e){case"^":return Math.pow(t,r);case"*":return t*r;case"/":return t/r;case"%":return t%r;case"+":return t+r;case"-":return t-r}switch(e){case"<":return t<r;
2case"<=":return t<=r;case">":return t>r;case">=":return t>=r;case"==":return t===r;case"!=":return t!==r;case"&&":return t&&r;case"||":return t||r}return null},n.exists=function(e){return null!=e}},function(e,t,r){"use strict";const s=r(0),i=r(3),o=r(1),a=r(7),l=r(4),c=r(5),u={};e.exports=i.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return 1===r.length&&Array.isArray(r[0])?e.try(...r[0]):e.try(...r)},validate(e,t){const r=t.schema,n=t.error,s=t.state,i=t.prefs;if(r._flags.match){let t,o=0;for(let n=0;n<r.$_terms.matches.length;++n){const a=r.$_terms.matches[n],l=s.nest(a.schema,"match.".concat(n));l.snapshot();const c=a.schema.$_validate(e,l,i);c.errors?l.restore():(++o,t=c.value)}return o?"one"===r._flags.match?1===o?{value:t}:{errors:n("alternatives.one")}:o===r.$_terms.matches.length?{value:e}:{errors:n("alternatives.all")}:{errors:n("alternatives.any")}}const o=[];for(let a=0;a<r.$_terms.matches.length;++a){const t=r.$_terms.matches[a];if(t.schema){const r=s.nest(t.schema,"match.".concat(a));r.snapshot();const n=t.schema.$_validate(e,r,i);if(!n.errors)return n;r.restore(),o.push({schema:t.schema,reports:n.errors});continue}const n=t.ref?t.ref.resolve(e,s,i):e,l=t.is?[t]:t.switch;for(let r=0;r<l.length;++r){const o=l[r],c=o.is,u=o.then,d=o.otherwise,f="match.".concat(a).concat(t.switch?"."+r:"");if(c.$_match(n,s.nest(c,"".concat(f,".is")),i)){if(u)return u.$_validate(e,s.nest(u,"".concat(f,".then")),i)}else if(d)return d.$_validate(e,s.nest(d,"".concat(f,".otherwise")),i)}}return u.errors(o,t)},rules:{conditional:{method(e,t){s(!this._flags._endedSwitch,"Unreachable condition"),s(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),s(void 0===t.break,"Cannot use break option with alternatives conditional");const r=this.clone(),n=a.when(r,e,t),i=n.is?[n]:n.switch;for(const s of i)if(s.then&&s.otherwise){r.$_setFlag("_endedSwitch",!0,{clone:!1});break}return r.$_terms.matches.push(n),r.$_mutateRebuild()}},match:{method(e){if(s(["any","one","all"].includes(e),"Invalid alternatives match mode",e),"any"!==e)for(const t of this.$_terms.matches)s(t.schema,"Cannot combine match mode",e,"with conditional rules");return this.$_setFlag("match",e)}},try:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];s(t.length,"Missing alternative schemas"),o.verifyFlat(t,"try"),s(!this._flags._endedSwitch,"Unreachable condition");const n=this.clone();for(const s of t)n.$_terms.matches.push({schema:n.$_compile(s)});return n.$_mutateRebuild()}}},overrides:{label(e){return this.$_super.label(e).$_modify({each:(t,r)=>"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{o.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const t=r.schema,n=r.ref,s=r.is,i=r.not,o=r.then,a=r.otherwise;e=t?e.try(t):n?e.conditional(n,{is:s,then:o,not:i,otherwise:a,switch:r.switch}):e.conditional(s,{then:o,otherwise:a})}return e}},messages:{"alternatives.all":'"{{#label}}" does not match all of the required types',"alternatives.any":'"{{#label}}" does not match any of the allowed types',"alternatives.match":'"{{#label}}" does not match any of the allowed types',"alternatives.one":'"{{#label}}" matches more than one allowed type',"alternatives.types":'"{{#label}}" must be one of {{#types}}'}}),u.errors=function(e,t){let r=t.error,s=t.state;if(!e.length)return{errors:r("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const i=new Set,o=[];for(const a of e){const t=a.reports,c=a.schema;if(t.length>1)return u.unmatched(e,r);const d=t[0];if(d instanceof l.Report==0)return u.unmatched(e,r);if(d.state.path.length!==s.path.length){o.push({type:c.type,report:d});continue}if("any.only"===d.code){for(const e of d.local.valids)i.add(e);continue}const f=d.code.split("."),h=n(f,2),m=h[0];"base"===h[1]?i.add(m):o.push({type:c.type,report:d})}return o.length?1===o.length?{errors:o[0].report}:u.unmatched(e,r):{errors:r("alternatives.types",{types:[...i]})}},u.unmatched=function(e,t){const r=[];for(const n of e)r.push(...n.reports);return{errors:t("alternatives.match",l.details(r,{override:!1}))}}},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(11),o=r(20),a=r(15),l=r(1),c=r(7),u=r(4),d=r(17),f=r(18),h=r(9),m=r(33),p=r(5),g=r(19),y=r(34),v=r(21),b={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._ids=new m.Ids,this._preferences=null,this._refs=new p.Manager,this._cache=null,this._val
2ids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof f.describe,"Manifest functionality disabled"),f.describe(this)}allow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l.verifyFlat(t,"allow"),this._values(t,"_valids")}alter(e){n(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const r in e){const s=e[r];n("function"==typeof s,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:s})}return t.$_temp.ruleset=!1,t}cast(e){return n(!1===e||"string"==typeof e,"Invalid to value"),n(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return n(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return n(e,"Missing error"),n(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(void 0!==e,"Missing example"),l.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}
2forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this._values(t,"_invalids")}label(e){return n(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return n(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n(t.length,"Missing notes");for(const s of t)n(s&&"string"==typeof s,"Notes must be non-empty strings");return this._inner("notes",t)}only(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),l.checkPreferences(e);const t=this.clone();return t._preferences=l.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=l.preferences(t._preferences,{convert:r}),t}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("result",e?"strip":void 0)}tag(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n(t.length,"Missing tags");for(const s of t)n(s&&"string"==typeof s,"Tags must be non-empty strings");return this._inner("tags",t)}unit(e){return n(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(){const e=this.allow(...arguments);return e.$_setFlag("only",!!e._valids,{clone:!1}),e}when(e,t){const r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);const s=c.when(r,e,t);if(!["any","link"].includes(r.type)){const e=s.is?[s]:s.switch;for(const t of e)n(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),n(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(s),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache");const t=this.clone();return t._cache=e||a.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(l.isSchema(e),"Invalid schema object"),n("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const r=e.clone();for(const e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}t._ids.concat(e._ids),t._refs.register(e,p.toSibling),t._preferences=t._preferences?l.preferences(t._preferences,e._preferences):e._preferences,t._valids=v.merge(t._valids,e._valids,e._invalids),t._invalids=v.merge(t._invalids,e._invalids,e._valids);for(const r of e._singleRules.keys())t._singleRules.has(r)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==r),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.c
2oncat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,o(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,o(t._flags,r)}else o(t._flags,e._flags);for(const r in e.$_terms){const n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),d.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;l.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&r<this._rules.length,"Cannot apply rules to empty ruleset");const i=this.clone();for(let o=r;o<i._rules.length;++o){const r=i._rules[o],a=s(r);for(const s in e)t.modifiers[s](a,e[s]),n(a.name===r.name,"Cannot change rule name");i._rules[o]=a,i._singleRules.get(a.name)===r&&i._singleRules.set(a.name,a)}return i.$_temp.ruleset=!1,i.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),n(!this._inRuleset(),"Cannot tailor inside a ruleset");let t=this;if(this.$_terms.alterations)for(const r of this.$_terms.alterations){const s=r.target,i=r.adjuster;e.includes(s)&&(t=i(t),n(l.isSchema(t),"Alteration adjuster for",s,"failed to return a schema object"))}return(t=t.$_modify({each:t=>t.tailor(e),ref:!1})).$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return g.location?g.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name");for(const o in e)n("_"!==o[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],s=t.args;n(r,"Unknown rule",t.method);const i=this.clone();if(s){n(1===Object.keys(s).length||Object.keys(s).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in s){let o=s[e];if(void 0!==o){if(r.argsByName){const a=r.argsByName.get(e);if(a.ref&&l.isResolvable(o))t._resolve.push(e),i.$_mutateRegister(o);else if(a.normalize&&(o=a.normalize(o),s[e]=o),a.assert){const t=l.validateArg(o,e,a);n(!t,t,"or reference")}}s[e]=o}else delete s[e]}}return r.multi||(i._ruleRemove(t.name,{clone:!1}),i._singleRules.set(t.name,t)),!1===i.$_temp.ruleset&&(i.$_temp.ruleset=null),r.priority?i._rules.unshift(t):i._rules.push(t),i}$_compile(e,t){return c.schema(this.$_root,e,t)}$_createError(e,t,r,n,s){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const o=!1!==i.flags?this._flags:{},a=i.messages?h.merge(this._definition.messages,i.messages):this._definition.messages;return new u.Report(e,t,r,o,a,n,s)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const s=!y.validate(e,this,t,r,n).errors;return t.restore(),s}$_modify(e){return l.assertOptions(e,["each","once","ref","schema"]),m.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,t)=>{let r=t.source,n=t.name,s=(t.path,t.key);const i=this._definition[r][n]&&this._definition[r][n].register;!1!==i&&this.$_mutateRegister(e,{family:i,key:s})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.family,n=t.key;this._refs.register(e,r),this._ids.register(e,{key:n})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const s=this._definition.flags[e]||{};if(i(t,s.default)&&(t=void 0),i(t,this._flags[e]))return this;const o=!1!==r.clone?this.clone():this;return void 0!==t?(o._flags[e]=t,o.$_mutateRegister(t)):delete o._flags[e],"_"!==e[0]&&(o.$_temp.ruleset=!1),o}$_validate(e,t,r){return y.validate(e,this,t,r)}
2_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=s(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_default(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[l.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const n=[],s=[];for(let a=0;a<this.$_terms.whens.length;++a){const i=this.$_terms.whens[a];if(i.concat){n.push(i.concat),s.push("".concat(a,".concat"));continue}const o=i.ref?i.ref.resolve(e,t,r):e,l=i.is?[i]:i.switch,c=s.length;for(let u=0;u<l.length;++u){const c=l[u],d=c.is,f=c.then,h=c.otherwise,m="".concat(a).concat(i.switch?"."+u:"");if(d.$_match(o,t.nest(d,"".concat(m,".is")),r)){if(f){const i=t.localize([...t.path,"".concat(m,".then")],t.ancestors,t.schemas),o=f._generate(e,i,r),a=o.schema,l=o.id;n.push(a),s.push("".concat(m,".then").concat(l?"(".concat(l,")"):""));break}}else if(h){const i=t.localize([...t.path,"".concat(m,".otherwise")],t.ancestors,t.schemas),o=h._generate(e,i,r),a=o.schema,l=o.id;n.push(a),s.push("".concat(m,".otherwise").concat(l?"(".concat(l,")"):""));break}}if(i.break&&s.length>c)break}const i=s.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",i),!i)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[i])return{schema:this.$_temp.whens[i],id:i};let o=this;this._definition.generate&&(o=this._definition.generate(this,e,t,r));for(const a of n)o=o.concat(a);return this.$_root._tracer&&this.$_root._tracer._combine(o,[this,...n]),this.$_temp.whens[i]=o,{schema:o,id:i}}_inner(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n(!this._inRuleset(),"Cannot set ".concat(e," inside a ruleset"));const s=this.clone();return s.$_terms[e]&&!r.override||(s.$_terms[e]=[]),r.single?s.$_terms[e].push(t):s.$_terms[e].push(...t),s.$_temp.ruleset=!1,s}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const n=[];for(let s=0;s<r._rules.length;++s){const t=r._rules[s];t.name!==e||t.keep?n.push(t):r._inRuleset()&&s<r.$_temp.ruleset&&--r.$_temp.ruleset}return r._rules=n,r}_values(e,t){l.verifyFlat(e,t.slice(1,-1));const r=this.clone(),s=e[0]===l.symbols.override;if(s&&(e=e.slice(1)),!r[t]&&e.length?r[t]=new v:s&&(r[t]=e.length?new v:null,r.$_mutateRebuild()),!r[t])return r;s&&r[t].override();for(const i of e){n(void 0!==i,"Cannot call allow/valid/invalid with undefined"),n(i!==l.symbols.override,"Override must be the first value");const e="_invalids"===t?"_valids":"_invalids";r[e]&&(r[e].remove(i),r[e].length||(n("_valids"===t||!r._flags.only,"Setting invalid value",i,"leaves schema rejecting all values due to previous valid rule"),r[e]=null)),r[t].add(i,r._refs)}return r}}};b.Base.prototype.isImmutable=!0,b.Base.prototype[l.symbols.any]={version:l.version,compile:c.compile,root:"$_root"},b.Base.prototype.deny=b.Base.prototype.invalid,b.Base.prototype.disallow=b.Base.prototype.invalid,b.Base.prototype.equal=b.Base.prototype.valid,b.Base.prototype.exist=b.Base.prototype.required,b.Base.prototype.not=b.Base.prototype.invalid,b.Base.prototype.options=b.Base.prototype.prefs,b.Base.prototype.preferences=b.Base.prototype.prefs,e.exports=new b.Base},function(e,t,r){"use strict";function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const o=r(0),a=r(1),l=r(5),c={};t.Ids=c.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new c.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);
2for(const s of e._byId.entries()){var t=n(s,2);const e=t[0],r=t[1];o(!this._byKey.has(e),"Schema id conflicts with existing key:",e),this._byId.set(e,r)}for(const s of e._byKey.entries()){var r=n(s,2);const e=r[0],t=r[1];o(!this._byId.has(e),"Schema key conflicts with existing id:",e),this._byKey.set(e,t)}}fork(e,t,r){const n=this._collect(e);n.push({schema:r});const s=n.shift();let i={id:s.id,schema:t(s.schema)};o(a.isSchema(i.schema),"adjuster function failed to return a joi schema type");for(const o of n)i={id:o.id,schema:c.fork(o.schema,i.id,i.schema)};return i.schema}labels(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");const s=e.slice(1);return t=[...t,n.schema._flags.label||r],s.length?n.schema._ids.labels(s,t):t.join(".")}reach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=e[0],n=this._get(r);o(n,"Schema does not contain path",[...t,...e].join("."));const s=e.slice(1);return s.length?n.schema._ids.reach(s,[...t,r]):n.schema}register(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).key;if(!e||!a.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);o(!t||t.schema===e,"Cannot add different schemas with the same id:",r),o(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(o(!this._byKey.has(t),"Schema already contains key:",t),o(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=e[0],s=this._get(n);o(s,"Schema does not contain path",[...t,...e].join(".")),r=[s,...r];const i=e.slice(1);return i.length?s.schema._ids._collect(i,[...t,n],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},c.fork=function(e,r,n){return t.schema(e,{each:(e,t)=>{let s=t.key;if(r===(e._flags.id||s))return n},ref:!1}).$_mutateRebuild()},t.schema=function(e,t){let r;for(const n in e._flags){if("_"===n[0])continue;const s=c.scan(e._flags[n],{source:"flags",name:n},t);void 0!==s&&((r=r||e.clone())._flags[n]=s)}for(let n=0;n<e._rules.length;++n){const s=e._rules[n],i=c.scan(s.args,{source:"rules",name:s.name},t);if(void 0!==i){r=r||e.clone();const t=Object.assign({},s);t.args=i,r._rules[n]=t,r._singleRules.get(s.name)===s&&r._singleRules.set(s.name,t)}}for(const n in e.$_terms){if("_"===n[0])continue;const s=c.scan(e.$_terms[n],{source:"terms",name:n},t);void 0!==s&&((r=r||e.clone()).$_terms[n]=s)}return r},c.scan=function(e,t,r,n,o){const u=n||[];if(null===e||"object"!=typeof e)return;let d;if(Array.isArray(e)){for(let n=0;n<e.length;++n){const s="terms"===t.source&&"keys"===t.name&&e[n].key,i=c.scan(e[n],t,r,[n,...u],s);void 0!==i&&((d=d||e.slice())[n]=i)}return d}if(!1!==r.schema&&a.isSchema(e)||!1!==r.ref&&l.isRef(e)){const n=r.each(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(r,!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{path:u,key:o}));if(n===e)return;return n}for(const s in e){if("_"===s[0])continue;const n=c.scan(e[s],t,r,[s,...u],o);void 0!==n&&((d=d||Object.assign({},e))[s]=n)}return d}},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(35),o=r(8),a=r(1),l=r(4),c=r(36),u={result:Symbol("result")};t.entry=function(e,t,r){let s=a.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),s=a.preferences(a.defaults,r));const i=u.entry(e,t,s);n(!i.mainstay.externals.length,"Schema with external rules must use validateAsync()");const o={value:i.value};return i.error&&(o.error=i.error),i.mainstay.warnings.length&&(o.warning=l.details(i.mainstay.warnings)
2),i.mainstay.debug&&(o.debug=i.mainstay.debug),o},t.entryAsync=async function(e,t,r){let n=a.defaults;r&&(n=a.preferences(a.defaults,r));const s=u.entry(e,t,n),i=s.mainstay;if(s.error)throw i.debug&&(s.error.debug=i.debug),s.error;if(i.externals.length){let t=s.value;for(const r of i.externals){const n=r.method,s=r.path,i=r.label;let a,l,c=t;s.length&&(a=s[s.length-1],c=(l=o(t,s.slice(0,-1)))[a]);try{const e=await n(c);if(void 0===e||e===c)continue;l?l[a]=e:t=e}catch(e){throw e.message+=" (".concat(i,")"),e}}s.value=t}if(!n.warnings&&!n.debug)return s.value;const c={value:s.value};return i.warnings.length&&(c.warning=l.details(i.warnings)),i.debug&&(c.debug=i.debug),c},u.entry=function(e,r,n){const s=u.tracer(r,n),i=s.tracer,o=s.cleanup,a={externals:[],warnings:[],tracer:i,debug:n.debug?[]:null,links:r._ids._schemaChain?new Map:null},d=r._ids._schemaChain?[{schema:r}]:null,f=new c([],[],{mainstay:a,schemas:d}),h=t.validate(e,r,f,n);o&&r.$_root.untrace();const m=l.process(h.errors,e,n);return{value:h.value,error:m,mainstay:a}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=u.prefs(t,n)),t._cache&&n.cache){const n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}const i=(s,i,o)=>t.$_createError(s,e,i,o||r,n),o={original:e,prefs:n,schema:t,state:r,error:i,warn:(e,t,n)=>r.mainstay.warnings.push(i(e,t,n)),message:(s,i)=>t.$_createError("custom",e,i,r,n,{messages:s})};r.mainstay.tracer.entry(t,r);const l=t._definition;if(l.prepare&&void 0!==e&&n.convert){const t=l.prepare(e,o);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),o);e=t.value}}if(l.coerce&&void 0!==e&&n.convert&&(!l.coerce.from||l.coerce.from.includes(typeof e))){const t=l.coerce.method(e,o);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),o);e=t.value}}const c=t._flags.empty;c&&c.$_match(u.trim(e,t),r.nest(c),a.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const d=s.presence||t._flags.presence||(t._flags._endedSwitch?"ignore":n.presence);if(void 0===e){if("forbidden"===d)return u.finalize(e,null,o);if("required"===d)return u.finalize(e,[t.$_createError("any.required",e,null,r,n)],o);if("optional"===d){if(t._flags.default!==a.symbols.deepDefault)return u.finalize(e,null,o);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===d)return u.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],o);const f=[];if(t._valids){const s=t._valids.get(e,r,n,t._flags.insensitive);if(s)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,s.value),e=s.value),r.mainstay.tracer.filter(t,r,"valid",s),u.finalize(e,null,o);if(t._flags.only){const s=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return u.finalize(e,[s],o);f.push(s)}}if(t._invalids){const s=t._invalids.get(e,r,n,t._flags.insensitive);if(s){r.mainstay.tracer.filter(t,r,"invalid",s);const i=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return u.finalize(e,[i],o);f.push(i)}}if(l.validate){const t=l.validate(e,o);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return f.push(t.errors),u.finalize(e,f,o);if(t.errors.length)return f.push(...t.errors),u.finalize(e,f,o)}}return t._rules.length?u.rules(e,f,o):u.finalize(e,f,o)},u.rules=function(e,t,r){const n=r.schema,s=r.state,i=r.prefs;for(const o of n._rules){const l=n._definition.rules[o.method];if(l.convert&&i.convert){s.mainstay.tracer.log(n,s,"rule",o.name,"full");continue}let c,d=o.args;if(o._resolve.length){d=Object.assign({},d);for(const t of o._resolve){const r=l.argsByName.get(t),o=d[t].resolve(e,s,i),u=r.normalize?r.normalize(o):o,f=a.validateArg(u,null,r);if(f){c=n.$_createError("any.ref",o,{arg:t,ref:d[t],reason:f},s,i);break}d[t]=u}}c=c||l.validate(e,r,d,o);const f=u.rule(c,o);if(f.errors){if(s.mainstay.tracer.log(n,s,"rule",o.name,"error"),o.warn){s.mainstay.warnings.push(...f.errors);continue}if(i.abortEarly)return u.finalize(e,f.errors,r);t.push(...f.errors)}else s.mainstay.tracer.log(n,s,"rule",o.name,"pass"),s.mainstay.tracer.value(s,"rule",e,f.value,o.name),e=f.value}return u.finalize(e,t,r)},u.rule=function(e,t){return e instanceof l.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&(e[0]instanceof l.Report||e[0]instanceof Error)?(e.forEach(e
2=>u.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,r){t=t||[];const s=r.schema,i=r.state,o=r.prefs;if(t.length){const n=u.default("failover",void 0,t,r);void 0!==n&&(i.mainstay.tracer.value(i,"failover",e,n),e=n,t=[])}if(t.length&&s._flags.error)if("function"==typeof s._flags.error){t=s._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)n(e instanceof Error||e instanceof l.Report,"error() must return an Error object")}else t=[s._flags.error];if(void 0===e){const n=u.default("default",e,t,r);i.mainstay.tracer.value(i,"default",e,n),e=n}if(s._flags.cast&&void 0!==e){const t=s._definition.cast[s._flags.cast];if(t.from(e)){const n=t.to(e,r);i.mainstay.tracer.value(i,"cast",e,n,s._flags.cast),e=n}}if(s.$_terms.externals&&o.externals&&!1!==o._externals)for(const n of s.$_terms.externals){const e=n.method;i.mainstay.externals.push({method:e,path:i.path,label:l.label(s._flags,i,o)})}const a={value:e,errors:t.length?t:null};return s._flags.result&&(a.value="strip"===s._flags.result?void 0:r.original,i.mainstay.tracer.value(i,s._flags.result,e,a.value),i.shadow(e,s._flags.result)),s._cache&&!1!==o.cache&&!s._refs.length&&s._cache.set(r.original,a),a},u.prefs=function(e,t){const r=t===a.defaults;return r&&e._preferences[a.symbols.prefs]?e._preferences[a.symbols.prefs]:(t=a.preferences(t,e._preferences),r&&(e._preferences[a.symbols.prefs]=t),t)},u.default=function(e,t,r,n){let i=n.schema,o=n.state,l=n.prefs;const c=i._flags[e];if(l.noDefaults||void 0===c)return t;if(o.mainstay.tracer.log(i,o,"rule",e,"full"),!c)return c;if("function"==typeof c){const n=c.length>0?[s(o.ancestors[0]),l]:[];try{return c(...n)}catch(t){return void r.push(i.$_createError("any.".concat(e),null,{error:t},o,l))}}return"object"!=typeof c?c:c[a.symbols.literal]?c.literal:a.isResolvable(c)?c.resolve(t,o,l):s(c)},u.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},u.ignore={active:!1,debug:i,entry:i,filter:i,log:i,resolve:i,value:i}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";const n=r(2),s=r(8),i=r(1),o={value:Symbol("value")};e.exports=o.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=new o.State(e,t,this);return r&&n.schemas&&(n.schemas=[o.schemas(r),...n.schemas]),n}nest(e,t){const r=new o.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[o.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new o.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},o.schemas=function(e){return i.isSchema(e)?{schema:e}:e},o.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let s=0;s<e.length;++s){const t=e[s];let r=n.get(t);r||(r=new Map,n.set(t,r)),n=r}n[o.value]=t}get(e){const t=this.node(e);if(t)return t[o.value]}node(e){if(this._values)return s(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;const r=e.slice(0,-1),n=e[e.length-1],i=s(this._values,r,{iterables:!0});t?i.set(n,t):i&&i.delete(n)}}},function(e,t,r){"use strict";const n=r(0),s=r(11),i=r(8),o=r(3),a=r(1),l=r(7),c={};e.exports=o.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,t){let r=t.schema,n=t.state,s=t.prefs;if(!Array.isArray(e))return;const i=r.$_getRule("sort");return i?c.sort(r,e,i.args.options,n,s):void 0}},validate(e,t){let r=t.schema,n=t.error;if(!Array.isArray(e)){if(r._flags.single){const t=[e];return t[a.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(r.$_getRule("items")||r.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t}
2,validate(e,t,r){let n=t.state,s=t.prefs,i=t.error,o=r.schema;const a=[e,...n.ancestors];for(let c=0;c<e.length;++c){const t=n.localize([...n.path,c],a,o);if(o.$_match(e[c],t,s))return e}const l=o._flags.label;return l?i("array.hasKnown",{patternLabel:l}):i("array.hasUnknown",null)},multi:!0},items:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.verifyFlat(t,"items");const n=this.$_addRule("items");for(let s=0;s<t.length;++s){const e=a.tryWithPath(()=>this.$_compile(t[s]),s,{append:!0});n.$_terms.items.push(e)}return n.$_mutateRebuild()},validate(e,t){let r=t.schema,n=t.error,s=t.state,i=t.prefs;const o=r.$_terms._requireds.slice(),l=r.$_terms.ordered.slice(),u=[...r.$_terms._inclusions,...o],d=!e[a.symbols.arraySingle];delete e[a.symbols.arraySingle];const f=[];let h=e.length;for(let a=0;a<h;++a){const t=e[a];let m=!1,p=!1;const g=d?a:new Number(a),y=[...s.path,g];if(!r._flags.sparse&&void 0===t){if(f.push(n("array.sparse",{key:g,path:y,pos:a,value:void 0},s.localize(y))),i.abortEarly)return f;l.shift();continue}const v=[e,...s.ancestors];for(const e of r.$_terms._exclusions)if(e.$_match(t,s.localize(y,v,e),i,{presence:"ignore"})){if(f.push(n("array.excludes",{pos:a,value:t},s.localize(y))),i.abortEarly)return f;m=!0,l.shift();break}if(m)continue;if(r.$_terms.ordered.length){if(l.length){const o=l.shift(),u=o.$_validate(t,s.localize(y,v,o),i);if(u.errors){if(f.push(...u.errors),i.abortEarly)return f}else if("strip"===o._flags.result)c.fastSplice(e,a),--a,--h;else{if(!r._flags.sparse&&void 0===u.value){if(f.push(n("array.sparse",{key:g,path:y,pos:a,value:void 0},s.localize(y))),i.abortEarly)return f;continue}e[a]=u.value}continue}if(!r.$_terms.items.length){if(f.push(n("array.orderedLength",{pos:a,limit:r.$_terms.ordered.length})),i.abortEarly)return f;break}}const b=[];let _=o.length;for(let l=0;l<_;++l){const u=s.localize(y,v,o[l]);u.snapshot();const d=o[l].$_validate(t,u,i);if(b[l]=d,!d.errors){if(e[a]=d.value,p=!0,c.fastSplice(o,l),--l,--_,!r._flags.sparse&&void 0===d.value&&(f.push(n("array.sparse",{key:g,path:y,pos:a,value:void 0},s.localize(y))),i.abortEarly))return f;break}u.restore()}if(p)continue;const w=i.stripUnknown&&!!i.stripUnknown.arrays||!1;_=u.length;for(const l of u){let u;const d=o.indexOf(l);if(-1!==d)u=b[d];else{const o=s.localize(y,v,l);if(o.snapshot(),!(u=l.$_validate(t,o,i)).errors){"strip"===l._flags.result?(c.fastSplice(e,a),--a,--h):r._flags.sparse||void 0!==u.value?e[a]=u.value:(f.push(n("array.sparse",{key:g,path:y,pos:a,value:void 0},s.localize(y))),m=!0),p=!0;break}o.restore()}if(1===_){if(w){c.fastSplice(e,a),--a,--h,p=!0;break}if(f.push(...u.errors),i.abortEarly)return f;m=!0;break}}if(!m&&r.$_terms._inclusions.length&&!p){if(w){c.fastSplice(e,a),--a,--h;continue}if(f.push(n("array.includes",{pos:a,value:t},s.localize(y))),i.abortEarly)return f}}return o.length&&c.fillMissedErrors(r,f,o,e,s,i),l.length&&c.fillOrderedErrors(r,f,l,e,s,i),f.length?f:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate(e,t,r,n){let s=r.limit,i=n.name,o=n.operator,l=n.args;return a.compare(e.length,s,o)?e:t.error("array."+i,{limit:l.limit,value:e})},args:[{name:"limit",ref:!0,assert:a.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},ordered:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];a.verifyFlat(t,"ordered");const n=this.$_addRule("items");for(let s=0;s<t.length;++s){const e=a.tryWithPath(()=>this.$_compile(t[s]),s,{append:!0});c.validateSingle(e,n),n.$_mutateRegister(e),n.$_terms.ordered.push(e)}return n.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=l.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,t,r){let n=t.error,s=t.state,i=t.prefs,o=t.schema,a=r.options;const l=c.sort(o,e,a,s,i),u=l.value,d=l.errors;if(d)return d;for(let c=0;c<e.length;++c)if(e[c]!==u[c])return n("array.sort",{order:a.order,by:a.by?a.by.key:"value"});return e},convert:!0},sparse:{method(e){const t=void 0===e||!!e;return this._flags.sparse===t?this:(t?this.clone():this.$_addRule("items")).$_setFlag("sparse",t,{clone:!1})}},unique:{method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),a.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};
2if(e)if("string"==typeof e){const n=a.default(t.separator,".");r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,t,r,o){let a=t.state,l=t.error,c=(t.schema,r.comparator),u=r.options,d=o.comparator,f=o.path;const h={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},m=d||s,p=u.ignoreUndefined;for(let s=0;s<e.length;++s){const t=f?i(e[s],f):e[s],r=d?h.custom:h[typeof t];if(n(r,"Failed to find unique map container for type",typeof t),r instanceof Map){const n=r.entries();let i;for(;!(i=n.next()).done;)if(m(i.value[0],t)){const t=a.localize([...a.path,s],[e,...a.ancestors]),r={pos:s,value:e[s],dupePos:i.value[1],dupeValue:e[i.value[1]]};return f&&(r.path=c),l("array.unique",r,t)}r.set(t,s)}else{if((!p||void 0!==t)&&void 0!==r[t]){const n={pos:s,value:e[s],dupePos:r[t],dupeValue:e[r[t]]};return f&&(n.path=c),l("array.unique",n,a.localize([...a.path,s],[e,...a.ancestors]))}r[t]=s}}return e},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(e,t)=>new Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)c.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)c.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":'"{{#label}}" must be an array',"array.excludes":'"{{#label}}" contains an excluded value',"array.hasKnown":'"{{#label}}" does not contain at least one required match for type "{#patternLabel}"',"array.hasUnknown":'"{{#label}}" does not contain at least one required match',"array.includes":'"{{#label}}" does not match any of the allowed types',"array.includesRequiredBoth":'"{{#label}}" does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)',"array.includesRequiredKnowns":'"{{#label}}" does not contain {{#knownMisses}}',"array.includesRequiredUnknowns":'"{{#label}}" does not contain {{#unknownMisses}} required value(s)',"array.length":'"{{#label}}" must contain {{#limit}} items',"array.max":'"{{#label}}" must contain less than or equal to {{#limit}} items',"array.min":'"{{#label}}" must contain at least {{#limit}} items',"array.orderedLength":'"{{#label}}" must contain at most {{#limit}} items',"array.sort":'"{{#label}}" must be sorted in {#order} order by {{#by}}',"array.sort.mismatching":'"{{#label}}" cannot be sorted due to mismatching types',"array.sort.unsupported":'"{{#label}}" cannot be sorted due to unsupported type {#type}',"array.sparse":'"{{#label}}" must not be a sparse array item',"array.unique":'"{{#label}}" contains a duplicate value'}}),c.fillMissedErrors=function(e,t,r,n,s,i){const o=[];let a=0;for(const l of r){const e=l._flags.label;e?o.push(e):++a}o.length?a?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:o,unknownMisses:a},s,i)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:o},s,i)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:a},s,i))},c.fillOrderedErrors=function(e,t,r,n,s,i){const o=[];for(const a of r)"required"===a._flags.presence&&o.push(a);o.length&&c.fillMissedErrors(e,t,o,n,s,i)},c.fastSplice=function(e,t){let r=t;for(;r<e.length;)e[r++]=e[r];--e.length},c.validateSingle=function(e,t){("array"===e.type||e._flags._arrayItems)&&(n(!t._flags.single,"Cannot specify array item with single rule enabled"),t.$_setFlag("_arrayItems",!0,{clone:!1}))},c.sort=function(e,t,r,n,s){const i="ascending"===r.order?1:-1,o=-1*i,a=i,l=(l,u)=>{let d=c.compare(l,u,o,a);if(null!==d)return d;if(r.by&&(l=r.by.resolve(l,n,s),u=r.by.resolve(u,n,s)),null!==(d=c.compare(l,u,o,a)))return d;const f=typeof l;if(f!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,n,s);if("number"!==f&&"string"!==f)throw e.$_createError("array.sort.unsupported",t,{type:f},n,s);return"number"===f?(l-u)*i:l<u?o:a};try{return{value:t.slice().sort(l)}}catch(e){return{errors:e}}},c.compare=function(e,t,r,n){return e===t?0:void 0===e?1:void 0===t?-1:null===e?n:null===t?r:null}},function(e,t,r){"use strict";const n=r(0),s=r(3),i=r(1),o=r(21),a={isBool:function(e){return"boolean"==typeof e}};e.exports=s.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,t){let r=t.schema;if("boolean"!=typeof e){if("string"==typeof e){const t=r._flags.sensitive?e:e.toLowerCase();e="true"===t||"false"!==t&&e}return"boolean"!=typeof e&&(e=r.$_terms.truthy&&r.$_terms.truthy.has(e,null,null,!r._flags.sensitive)||(!r.$_terms.falsy||!r.$_terms.falsy.has(e,null,null,!r._flags.sensitive))&&e),{value:e}}},validate(e,t){let r=t.error;if("boolean"!=typeof e)return{value:e,errors:r("boolean.base")}},rules:{truthy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.verifyFlat(t,"truthy");const s=this.clone();s.$_terms.truthy=s.$_terms.truthy||new o;for(let i=0;i<t.length;++i){const e=t[i];n(void 0!==e,"Cannot call truthy with undefined"),s.$_terms.truthy.add(e)}return s}},falsy:{method(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i.verifyFlat(t,"falsy");const s=this.clone();s.$_terms.falsy=s.$_terms.falsy||new o;for(let i=0;i<t.length;++i){const e=t[i];n(void 0!==e,"Cannot call falsy with undefined"),s.$_terms.falsy.add(e)}return s}},sensitive:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("sensitive",e)}}},cast:{number:{from:a.isBool,to:(e,t)=>e?1:0},string:{from:a.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":'"{{#label}}" must be a boolean'}})},function(e,t,r){"use strict";const n=r(0),s=r(3),i=r(1),o=r(6),a={isDate:function(e){return e instanceof Date}};e.exports=s.extend({type:"date",coerce:{from:["number","string"],method(e,t){let r=t.schema;return{value:a.parse(e,r._flags.format)||e}}},validate(e,t){let r=t.schema,n=t.error,s=t.prefs;if(e instanceof Date&&!isNaN(e.getTime()))return;const i=r._flags.format;return s.convert&&i&&"string"==typeof e?{value:e,errors:n("date.format",{format:i})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,r,n){let s=r.date,o=n.name,a=n.operator,l=n.args;const c="now"===s?Date.now():s.getTime();return i.compare(e.getTime(),c,a)?e:t.error("date."+o,{limit:l.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:a.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"javascript";return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:a.isDate,to:(e,t)=>e.getTime()},string:{from:a.isDate,to(e,t){let r=t.prefs;return o.date(e,r)}}},messages:{"date.base":'"{{#label}}" must be a valid date',"date.format":'"{{#label}}" must be in {msg("date.format." + #format) || #format} format',"date.greater":'"{{#label}}" must be greater than "{{#limit}}"',"date.less":'"{{#label}}" must be less than "{{#limit}}"',"date.max":'"{{#label}}" must be less than or equal to "{{#limit}}"',"date.min":'"{{#label}}" must be larger than or equal to "{{#limit}}"',"date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),a.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return i.isIsoDate(e)?a.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return a.date(1*e);if("unix"===t)return a.date(1e3*e);if("string"==typeof r)return null}return a.date(e)},a.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},function(e,t,r){"use strict";const n=r(0),s=r(22);e.exports=s.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate(e,t,r){let n=r.n;return e.length===n?e:t.error("function.arity",{n:n})}},class:{method(){return this.$_addRule("class")},validate:(e,t)=>
2/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate(e,t,r){let n=r.n;return e.length>=n?e:t.error("function.minArity",{n:n})}},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate(e,t,r){let n=r.n;return e.length<=n?e:t.error("function.maxArity",{n:n})}}},messages:{"function.arity":'"{{#label}}" must have an arity of {{#n}}',"function.class":'"{{#label}}" must be a class',"function.maxArity":'"{{#label}}" must have an arity lesser or equal to {{#n}}',"function.minArity":'"{{#label}}" must have an arity greater or equal to {{#n}}'}})},function(e,t,r){"use strict";const n=r(0),s=r(2),i=r(20),o=r(10),a={};e.exports=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return a.applyToDefaultsWithShallow(e,t,r);const o=s(e);if(!0===t)return o;const l=void 0!==r.nullOverride&&r.nullOverride;return i(o,t,{nullOverride:l,mergeArrays:!1})},a.applyToDefaultsWithShallow=function(e,t,r){const a=r.shallow;n(Array.isArray(a),"Invalid keys"),(r=Object.assign({},r)).shallow=!1;const l=s(e,{shallow:a});if(!0===t)return l;const c=o.store(t,a);return i(l,t,{mergeArrays:!1,nullOverride:!1}),o.restore(l,t,c),l}},function(e,t,r){"use strict";const n=r(0),s={};e.exports=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),s=[].concat(t.after||[]),i=t.group||"?",o=t.sort||0;n(!r.includes(i),"Item cannot come before itself: ".concat(i)),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!s.includes(i),"Item cannot come after itself: ".concat(i)),n(!s.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const n of e){const e={seq:this._items.length,sort:o,before:r,after:s,group:i,node:n};this._items.push(e)}const a=this._sort();return n(a,"item","?"!==i?"added into group ".concat(i):"","created a dependencies error"),this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const r of e)if(r)for(const e of r._items)this._items.push(Object.assign({},e));this._items.sort(s.mergeSort);for(let r=0;r<this._items.length;++r)this._items[r].seq=r;const t=this._sort();return n(t,"merge created a dependencies error"),this.nodes}_sort(){const e={},t=Object.create(null),r=Object.create(null);for(const a of this._items){const n=a.seq,s=a.group;r[s]=r[s]||[],r[s].push(n),e[n]=a.before;for(const e of a.after)t[e]=t[e]||[],t[e].push(n)}for(const a in e){const t=[];for(const n in e[a]){const s=e[a][n];r[s]=r[s]||[],t.push(...r[s])}e[a]=t}for(const a in t)if(r[a])for(const n of r[a])e[n].push(...t[a]);const n={};for(const a in e){const t=e[a];for(const e of t)n[e]=n[e]||[],n[e].push(a)}const s={},i=[];for(let a=0;a<this._items.length;++a){let e=a;if(n[a]){e=null;for(let t=0;t<this._items.length;++t){if(!0===s[t])continue;n[t]||(n[t]=[]);const r=n[t].length;let i=0;for(let e=0;e<r;++e)s[n[t][e]]&&++i;if(i===r){e=t;break}}}null!==e&&(s[e]=!0,i.push(e))}if(i.length!==this._items.length)return!1;const o={};for(const a of this._items)o[a.seq]=a;this._items=[],this.nodes=[];for(const a of i){const e=o[a];this.nodes.push(e.node),this._items.push(e)}return!0}},s.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1},function(e,t,r){"use strict";const n=r(0),s=r(3),i=r(1),o=r(7),a=r(4),l={};e.exports=s.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,t){let r=t.schema,s=t.state,i=t.prefs;n(r.$_terms.link,"Uninitialized link schema");const o=l.generate(r,e,s,i),a=r.$_terms.link[0].ref;return o.$_validate(e,s.nest(o,"link:".concat(a.display,":").concat(o.type)),i)},generate:(e,t,r,n)=>l.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),e=o.ref(e),n("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(i.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),l.generate=function(e,t,r,n){let s=r.mainstay.links.get(e);if(s)return s._generate(t,r,n).schema;const i=e.$_terms.link[0].ref,o=l.perspective(i,r),a=o.perspective,c=o.path;l.assert(a,"which is outside of schema boundaries",i,e,r,n);try{s=c.length?a.$_reach(c):a}catch(t){l.assert(!1,"to non-existing schema",i,e,r,n)}return l.assert("link"!==s.type,"which is another link",i,e,r,n),e._flags.relative||r.mainstay.links.set(e,s),s._generate(t,r,n).schema},l.perspective=function(e,t){if("local"===e.type){for(const r of t.schemas){const t=r.schema,n=r.key;if((t._flags.id||n)===e.path[0])return{perspective:t,path:e.path.slice(1)};if(t.$_terms.shared)for(const r of t.$_terms.shared)if(r._flags.id===e.path[0])return{perspective:r,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},l.assert=function(e,t,r,s,i,o){e||n(!1,'"'.concat(a.label(s._flags,i,o),'" contains link reference "').concat(r.display,'" ').concat(t))}},function(e,t,r){"use strict";const n=r(0),s=r(3),i=r(1),o={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};e.exports=s.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,t){let r=t.schema,n=t.error;const s=e.match(o.numberRx);if(!s)return;e=e.trim();const i={value:parseFloat(e)};if(0===i.value&&(i.value=0),!r._flags.unsafe)if(e.match(/e/i)){if(o.normalizeExponent("".concat(i.value/Math.pow(10,s[1]),"e").concat(s[1]))!==o.normalizeExponent(e))return i.errors=n("number.unsafe"),i}else{const t=i.value.toString();if(t.match(/e/i))return i;if(t!==o.normalizeDecimal(e))return i.errors=n("number.unsafe"),i}return i}},validate(e,t){let r=t.schema,n=t.error,s=t.prefs;if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!i.isNumber(e))return{value:e,errors:n("number.base")};const o={value:e};if(s.convert){const e=r.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);o.value=Math.round(o.value*t)/t}}return 0===o.value&&(o.value=0),!r._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(o.errors=n("number.unsafe")),o},rules:{compare:{method:!1,validate(e,t,r,n){let s=r.limit,o=n.name,a=n.operator,l=n.args;return i.compare(e,s,a)?e:t.error("number."+o,{limit:l.limit,value:e})},args:[{name:"limit",ref:!0,assert:i.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>
2Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate:(e,t,r,n)=>e%r.base==0?e:t.error("number.multiple",{multiple:n.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,r){let n=r.limit;const s=e.toString().match(o.precisionRx);return Math.max((s[1]?s[1].length:0)-(s[2]?parseInt(s[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate(e,t,r){let n=r.sign;return"negative"===n&&e<0||"positive"===n&&e>0?e:t.error("number.".concat(n))}},unsafe:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":'"{{#label}}" must be a number',"number.greater":'"{{#label}}" must be greater than {{#limit}}',"number.infinity":'"{{#label}}" cannot be infinity',"number.integer":'"{{#label}}" must be an integer',"number.less":'"{{#label}}" must be less than {{#limit}}',"number.max":'"{{#label}}" must be less than or equal to {{#limit}}',"number.min":'"{{#label}}" must be larger than or equal to {{#limit}}',"number.multiple":'"{{#label}}" must be a multiple of {{#multiple}}',"number.negative":'"{{#label}}" must be a negative number',"number.port":'"{{#label}}" must be a valid port',"number.positive":'"{{#label}}" must be a positive number',"number.precision":'"{{#label}}" must have no more than {{#limit}} decimal places',"number.unsafe":'"{{#label}}" must be a safe number'}}),o.normalizeExponent=function(e){return e.replace(/E/,"e").replace(/\.(\d*[1-9])?0+e/,".$1e").replace(/\.e/,"e").replace(/e\+/,"e").replace(/^\+/,"").replace(/^(-?)0+([1-9])/,"$1$2")},o.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0+$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([1-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},function(e,t,r){"use strict";const n=r(22);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(r,!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const o=r(0),a=r(23),l=r(47),c=r(25),u=r(48),d=r(3),f=r(1),h=r(49),m=r(26),p={tlds:u instanceof Set&&{tlds:{allow:u,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,hostRegex:/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/,ipRegex:h.createIpRegex(["ipv4","ipv6","ipvfuture"],"optional"),isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},cidrPresences:["required","optional","forbidden"],normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=d.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,t){let r=t.schema,n=t.state,s=t.prefs;const i=r.$_getRule("normalize");i&&(e=e.normalize(i.args.form));const o=r.$_getRule("case");o&&(e="upper"===o.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const a=r.$_getRule("trim");if(a&&a.args.enabled&&(e=e.trim()),r.$_terms.replacements)for(const c of r.$_terms.replacements)e=e.replace(c.pattern,c.replacement);const l=r.$_getRule("hex");
2if(l&&l.args.options.byteAligned&&e.length%2!=0&&(e="0".concat(e)),r.$_getRule("isoDate")){const t=p.isoDate(e);t&&(e=t)}if(r._flags.truncate){const t=r.$_getRule("max");if(t){let i=t.args.limit;if(f.isResolvable(i)&&(i=i.resolve(e,n,s),!f.limit(i)))return{value:e,errors:r.$_createError("any.ref",i,{ref:t.args.limit,arg:"limit",reason:"must be a positive integer"},n,s)};e=e.slice(0,i)}}return{value:e}}},validate(e,t){let r=t.error;return"string"!=typeof e?{value:e,errors:r("string.base")}:""===e?{value:e,errors:r("string.empty")}:void 0},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.assertOptions(e,["paddingRequired","urlSafe"]),e=s({urlSafe:!1,paddingRequired:!0},e),o("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),o("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate(e,t,r){let n=r.options;return p.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")}},case:{method(e){return o(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate(e,t,r){let n=r.direction;return"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error("string.".concat(n,"case"))},convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,s=1;for(;r--;){const t=e.charAt(r)*s;n+=t-9*(t>9),s^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.assertOptions(e,["paddingRequired"]),e=s({paddingRequired:!0},e),o("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,r){let n=r.options;const s=e.match(p.dataUriRegex);if(s){if(!s[2])return e;if("base64"!==s[2])return e;if(p.base64Regex[n.paddingRequired].false.test(s[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&f.assertOptions(e,["allowUnicode","minDomainSegments","tlds"]);const t=p.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate(e,t,r,n){let s=n.address;return a.isValid(e,s)?e:t.error("string.domain")}},email:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["allowUnicode","ignoreLength","minDomainSegments","multiple","separator","tlds"]),o(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=p.addressOptions(e),r=new RegExp("\\s*[".concat(e.separator?c(e.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,r,n){let s=r.options,i=n.regex,o=n.address;const a=s.multiple?e.split(i):[e],c=[];for(const u of a)l.isValid(u,o)||c.push(u);return c.length?t.error("string.email",{value:e,invalids:c}):e}},guid:{alias:"uuid",method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["version"]);let t="";if(e.version){const r=[].concat(e.version);o(r.length>=1,"version must have at least 1 valid version specified");const n=new Set;for(let e=0;e<r.length;++e){const s=r[e];o("string"==typeof s,"version at position "+e+" must be a string");const i=p.guidVersions[s.toLowerCase()];o(i,"version at position "+e+" must be one of "+Object.keys(p.guidVersions).join(", ")),o(!n.has(i),"version at position "+e+" must not be a duplicate"),t+=i,n.add(i)}}const r=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}([:-]?)[0-9A-F]{4}\\2?[".concat(t||"0-9A-F","][0-9A-F]{3}\\2?[").concat(t?"89AB":"0-9A-F","][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$"),"i");return this.$_addRule({name:"guid",args:{options:e},regex:r})},validate(e,t,r,n){const s=n.regex.exec(e);return s?p.guidBrackets[s[1]]!==s[s.length-1]?t.error("string.guid"):e:t.error("string.guid")}},hex:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f.assertOptions(e,["byteAligned"]),e=s({byteAligned:!1},e),o("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate(e,t,r){let n=r.options;return p.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")}},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>
2e.length<=255&&p.hostRegex.test(e)||p.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["cidr","version"]),e=Object.assign({},e);let t,r=p.ipRegex;if(e.cidr?(o("string"==typeof e.cidr,"cidr must be a string"),e.cidr=e.cidr.toLowerCase(),o(p.cidrPresences.includes(e.cidr),"cidr must be one of "+p.cidrPresences.join(", ")),e.version||"optional"===e.cidr||(r=h.createIpRegex(["ipv4","ipv6","ipvfuture"],e.cidr))):e.cidr="optional",e.version){Array.isArray(e.version)||(e.version=[e.version]),o(e.version.length>=1,"version must have at least 1 version specified"),t=[];for(let r=0;r<e.version.length;++r){let n=e.version[r];o("string"==typeof n,"version at position "+r+" must be a string"),n=n.toLowerCase(),o(h.versions[n],"version at position "+r+" must be one of "+Object.keys(h.versions).join(", ")),t.push(n)}t=Array.from(new Set(t)),r=h.createIpRegex(t,e.cidr)}return this.$_addRule({name:"ip",args:{options:e},versions:t,regex:r})},validate(e,t,r,n){let s=r.options,i=n.versions;return n.regex.test(e)?e:i?t.error("string.ipVersion",{value:e,cidr:s.cidr,version:i}):t.error("string.ip",{value:e,cidr:s.cidr})}},isoDate:{method(){return this.$_addRule("isoDate")},validate(e,t){let r=t.error;return p.isoDate(e)?e:r("string.isoDate")}},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>p.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return p.length(this,"length",e,"=",t)},validate(e,t,r,n){let s=r.limit,i=r.encoding,o=n.name,a=n.operator,l=n.args;const c=!i&&e.length;return f.compare(c,s,a)?e:t.error("string."+o,{limit:l.limit,value:e,encoding:i})},args:[{name:"limit",ref:!0,assert:f.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return p.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return p.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NFC";return o(p.normalizationForms.includes(e),"normalization form must be one of "+p.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate(e,t,r){let n=t.error,s=r.form;return e===e.normalize(s)?e:n("string.normalize",{value:e,form:s})},convert:!0},pattern:{alias:"regex",method(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(e instanceof RegExp,"regex must be a RegExp"),o(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),f.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate(e,t,r,n){let s=r.regex,i=r.options,o=n.errorCode;return s.test(e)^i.invert?e:t.error(o,{name:i.name,regex:s,value:e})},args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(c(e),"g")),o(e instanceof RegExp,"pattern must be a RegExp"),o("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return o("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,r)=>r.enabled&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return o("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&f.assertOptions(e.domain,["allowUnicode","minDomainSegments","tlds"]);const t=m.createRegex(e),r=e.domain?p.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:r})},validate(e,t,r,n){let s=r.options,i=n.regex,o=n.domain;if(["http:/","https:/"].includes(e))return t.error("string.uri");const l=i.exec(e);return l?o&&!a.isValid(l[1],o)?t.error("string.domain",{value:l[1]}):e:s.relativeOnly?t.error("string.uriRelativeOnly"):s.scheme?t.error("string.uriCustomScheme",{scheme:i.scheme,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const r of t.replacements){const t=r.pattern,n=r.replacement;e=e.replace(t,n)}return e}},messages:{"string.alphanum":'"{{#label}}" must only contain alpha-numeric characters',"string.base":'"{{#label}}" must be a string',"string.base64":'"{{#label}}
2" must be a valid base64 string',"string.creditCard":'"{{#label}}" must be a credit card',"string.dataUri":'"{{#label}}" must be a valid dataUri string',"string.domain":'"{{#label}}" must contain a valid domain name',"string.email":'"{{#label}}" must be a valid email',"string.empty":'"{{#label}}" is not allowed to be empty',"string.guid":'"{{#label}}" must be a valid GUID',"string.hex":'"{{#label}}" must only contain hexadecimal characters',"string.hexAlign":'"{{#label}}" hex decoded representation must be byte aligned',"string.hostname":'"{{#label}}" must be a valid hostname',"string.ip":'"{{#label}}" must be a valid ip address with a {{#cidr}} CIDR',"string.ipVersion":'"{{#label}}" must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR',"string.isoDate":'"{{#label}}" must be in iso format',"string.isoDuration":'"{{#label}}" must be a valid ISO 8601 duration',"string.length":'"{{#label}}" length must be {{#limit}} characters long',"string.lowercase":'"{{#label}}" must only contain lowercase characters',"string.max":'"{{#label}}" length must be less than or equal to {{#limit}} characters long',"string.min":'"{{#label}}" length must be at least {{#limit}} characters long',"string.normalize":'"{{#label}}" must be unicode normalized in the {{#form}} form',"string.token":'"{{#label}}" must only contain alpha-numeric and underscore characters',"string.pattern.base":'"{{#label}}" with value "{[.]}" fails to match the required pattern: {{#regex}}',"string.pattern.name":'"{{#label}}" with value "{[.]}" fails to match the {{#name}} pattern',"string.pattern.invert.base":'"{{#label}}" with value "{[.]}" matches the inverted pattern: {{#regex}}',"string.pattern.invert.name":'"{{#label}}" with value "{[.]}" matches the inverted {{#name}} pattern',"string.trim":'"{{#label}}" must not have leading or trailing whitespace',"string.uri":'"{{#label}}" must be a valid uri',"string.uriCustomScheme":'"{{#label}}" must be a valid uri with a scheme matching the {{#scheme}} pattern',"string.uriRelativeOnly":'"{{#label}}" must be a valid relative uri',"string.uppercase":'"{{#label}}" must only contain uppercase characters'}}),p.addressOptions=function(e){if(!e)return e;if(o(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return o(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds);o("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),o(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),o(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),e;const r=e.tlds.allow;return r?!0===r?(o(p.tlds,"Built-in TLD list disabled"),Object.assign({},e,p.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),o(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),e):e},p.isoDate=function(e){if(!f.isIsoDate(e))return null;const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},p.length=function(e,t,r,n,s){return o(!s||!1,"Invalid encoding:",s),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:s},operator:n})}},function(e,t,r){"use strict";const s=r(24),i=r(23),o={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(s.TextEncoder||TextEncoder)};t.analyze=function(e,t){return o.email(e,t)},t.isValid=function(e,t){return!o.email(e,t)},o.email=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return{error:"Address must be a non-empty string"};const r=!o.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return{error:"Address contains forbidden Unicode characters"};e=e.normalize("NFC")}const s=e.split("@");if(2!==s.length)return{error:s.length>2?"Address cannot contain more than one @ character":"Address must contain one @ 
2character"};const a=n(s,2),l=a[0],c=a[1];if(!l)return{error:"Address local part cannot be empty"};if(!t.ignoreLength){if(e.length>254)return{error:"Address too long"};if(o.encoder.encode(l).length>64)return{error:"Address local part too long"}}return o.local(l,r)||i.analyze(c,t)},o.local=function(e,t){const r=e.split(".");for(const n of r){if(!n.length)return{error:"Address local part contains empty dot-separated segment"};if(t){if(!o.atextRx.test(n))return{error:"Address local part contains invalid character"}}else for(const e of n){if(o.atextRx.test(e))continue;const t=o.binary(e);if(!o.atomRx.test(t))return{error:"Address local part contains invalid character"}}}},o.binary=function(e){return Array.from(o.encoder.encode(e)).map(e=>String.fromCharCode(e)).join("")},o.atextRx=/^[\w!#\$%&'\*\+\-\/=\?\^`\{\|\}~]+$/,o.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},function(e,t){},function(e,t,r){"use strict";const n=r(26);t.cidrs={ipv4:{required:"\\/(?:"+n.ipv4Cidr+")",optional:"(?:\\/(?:"+n.ipv4Cidr+"))?",forbidden:""},ipv6:{required:"\\/"+n.ipv6Cidr,optional:"(?:\\/"+n.ipv6Cidr+")?",forbidden:""},ipvfuture:{required:"\\/"+n.ipv6Cidr,optional:"(?:\\/"+n.ipv6Cidr+")?",forbidden:""}},t.versions={ipv4:n.ipv4address,ipv6:n.ipv6address,ipvfuture:n.ipvFuture},t.createIpRegex=function(e,r){const n=e.map(e=>t.versions[e]+t.cidrs[e][r]);return new RegExp("^(?:"+n.join("|")+")$")}},function(e,t,r){"use strict";const s=r(0),i=r(3),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,t){let r=t.schema,n=t.error;const s=r.$_terms.map.get(e);return s&&(e=s),r._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:r.$_terms.map})}:{value:e}}},validate(e,t){let r=t.error;if("symbol"!=typeof e)return{value:e,errors:r("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),s(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const i of e){s(i&&i[Symbol.iterator],"Entry must be an iterable");const e=n(i,2),o=e[0],a=e[1];s("object"!=typeof o&&"function"!=typeof o&&"symbol"!=typeof o,"Key must not be of type object, function, or Symbol"),s("symbol"==typeof a,"Value must be a Symbol"),t.$_terms.map.set(o,a),r.push(a)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":'"{{#label}}" must be a symbol',"symbol.map":'"{{#label}}" must be one of {{#map}}'}})}])},74895(e,t,r){var n=r(7289),s=r(58205);r(53314);function i(e){return void 0===e||null===e}function o(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).whiteList=e.whiteList||n.whiteList,e.onAttr=e.onAttr||n.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||n.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||n.safeAttrValue,this.options=e}o.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,n=t.onAttr,o=t.onIgnoreAttr,a=t.safeAttrValue;return s(e,function(e,t,s,l,c){var u=r[s],d=!1;if(!0===u?d=u:"function"===typeof u?d=u(l):u instanceof RegExp&&(d=u.test(l)),!0!==d&&(d=!1),l=a(s,l)){var f,h={position:t,sourcePosition:e,source:c,isWhite:d};return d?i(f=n(s,l,h))?s+":"+l:f:i(f=o(s,l,h))?void 0:f}})},e.exports=o},7289(e,t){function r(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice"
2:!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var n=/javascript\s*\:/gim;t.whiteList=r(),t.getDefaultWhiteList=r,t.onAttr=function(e,t,r){},t.onIgnoreAttr=function(e,t,r){},t.safeAttrValue=function(e,t){return n.test(t)?"":t}},89688(e,t,r){var n=r(7289),s=r(74895);for(var i in(t=e.exports=function(e,t){return new s(t).process(e)}).FilterCSS=s,n)t[i]=n[i];"undefined"!==typeof window&&(window.filterCSS=e.exports)},58205(e,t,r){var n=r(53314);e.exports=function(e,t){";"!==(e=n.trimRight(e))[e.length-1]&&(e+=";");var r=e.length,s=!1,i=0,o=0,a="";function l(){if(!s){var r=n.trim(e.slice(i,o)),l=r.indexOf(":");if(-1!==l){var c=n.trim(r.slice(0,l)),u=n.trim(r.slice(l+1));if(c){var d=t(i,a.length,c,u,r);d&&(a+=d+"; ")}}}i=o+1}for(;o<r;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var u=e.indexOf("*/",o+2);if(-1===u)break;i=(o=u+1)+1,s=!1}else"("===c?s=!0:")"===c?s=!1:";"===c?s||l():"\n"===c&&l()}return n.trim(a)}},53314(e){e.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,s;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,s=e.length;n<s;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},74266(e,t,r){"use strict";r.d(t,{B8:()=>l});var n=r(88094),s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},s.apply(this,arguments)};var i=function(e){var t=e.animate,r=void 0===t||t,i=e.backgroundColor,o=void 0===i?"#f5f6f7":i,a=e.backgroundOpacity,l=void 0===a?1:a,c=e.baseUrl,u=void 0===c?"":c,d=e.children,f=e.foregroundColor,h=void 0===f?"#eee":f,m=e.foregroundOpacity,p=void 0===m?1:m,g=e.gradientRatio,y=void 0===g?2:g,v=e.uniqueKey,b=e.rtl,_=void 0!==b&&b,w=e.speed,x=void 0===w?1.2:w,k=e.style,A=void 0===k?{}
2:k,$=e.title,j=void 0===$?"Loading...":$,E=e.beforeMask,S=void 0===E?null:E,O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","rtl","speed","style","title","beforeMask"]),R=(0,n.useId)();v&&(R=v);var C="".concat(R,"-diff"),D="".concat(R,"-animated-diff"),M="".concat(R,"-aria"),T=_?{transform:"scaleX(-1)"}:null,P="".concat(x,"s"),I="".concat(-1*y," 0"),q="".concat(y," 0");return(0,n.createElement)("svg",s({"aria-labelledby":M,role:"img",style:s(s({},A),T)},O),j?(0,n.createElement)("title",{id:M},j):null,S&&(0,n.isValidElement)(S)?S:null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url(".concat(u,"#").concat(C,")"),style:{fill:"url(".concat(u,"#").concat(D,")")}}),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:C},d),(0,n.createElement)("linearGradient",{id:D,gradientTransform:"translate(".concat(I,")")},(0,n.createElement)("stop",{offset:"0%",stopColor:o,stopOpacity:l}),(0,n.createElement)("stop",{offset:"50%",stopColor:h,stopOpacity:p}),(0,n.createElement)("stop",{offset:"100%",stopColor:o,stopOpacity:l}),r&&(0,n.createElement)("animateTransform",{attributeName:"gradientTransform",type:"translate",values:"".concat(I,"; 0 0; ").concat(q),dur:P,repeatCount:"indefinite"}))))},o=function(e){return e.children?(0,n.createElement)(i,s({},e)):(0,n.createElement)(a,s({},e))},a=function(e){return(0,n.createElement)(o,s({viewBox:"0 0 476 124"},e),(0,n.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,n.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},l=function(e){return(0,n.createElement)(o,s({viewBox:"0 0 400 110"},e),(0,n.createElement)("rect",{x:"0",y:"0",rx:"3",ry:"3",width:"250",height:"10"}),(0,n.createElement)("rect",{x:"20",y:"20",rx:"3",ry:"3",width:"220",height:"10"}),(0,n.createElement)("rect",{x:"20",y:"40",rx:"3",ry:"3",width:"170",height:"10"}),(0,n.createElement)("rect",{x:"0",y:"60",rx:"3",ry:"3",width:"250",height:"10"}),(0,n.createElement)("rect",{x:"20",y:"80",rx:"3",ry:"3",width:"200",height:"10"}),(0,n.createElement)("rect",{x:"20",y:"100",rx:"3",ry:"3",width:"80",height:"10"}))}},57186(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(88094),s=r(53777);function i(e){var t=(0,n.useContext)(s.Ay);if(!t)throw new Error("Missing <CookiesProvider>");var r=t.getAll(),i=(0,n.useState)(r),o=i[0],a=i[1],l=(0,n.useRef)(o);return"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement&&(0,n.useLayoutEffect)(function(){function r(){var r=t.getAll();(function(e,t,r){if(!e)return!0;for(var n=0,s=e;n<s.length;n++){var i=s[n];if(t[i]!==r[i])return!0}return!1})(e||null,r,l.current)&&a(r),l.current=r}return t.addChangeListener(r),function(){t.removeChangeListener(r)}},[t]),[o,(0,n.useMemo)(function(){return t.set.bind(t)},[t]),(0,n.useMemo)(function(){return t.remove.bind(t)},[t])]}},90568(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(88094),s=r(10538),i=r(51784);function o(){var e=n.useContext(i.ob);return(0,s.HM)(e),e}},1829(e,t){var r,n,s;n=[],void 0===(s="function"===typeof(r=function(){"use strict";var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function t(e){return e.split("").reverse().join("")}function r(e,t){return e.substring(0,t.length)===t}function n(e,t){return e.slice(-1*t.length)===t}function s(e,t,r){if((e[t]||e[r])&&e[t]===e[r])throw new Error(t)}function i(e){return"number"===typeof e&&isFinite(e)}function o(e,t){return e=e.toString().split("e"),(+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))).toFixed(t)}function a(e,r,n,s,a,l,c,u,d,f,h,m){var p,g,y,v=m,b="",_="";return l&&(m=l(m)),!!i(m)&&(!1!==e&&0===parseFloat(m.toFixed(e))&&(m=0),m<0&&(p=!0,m=Math.abs(m)),!1!==e&&(m=o(m,e)),-1!==(m=m.toString()).indexOf(".")?(y=(g=m.split("."))[0],n&&(b=n+g[1])):y=m,r&&(y=t(y).match(/.{1,3}/g),y=t(y.join(t(r)))),p&&u&&(_+=u),s&&(_+=s),p&&d&&(_+=d),_+=y,_+=b,a&&(_+=a),f&&(_=f(_,v)),_)}function l(e,t,s,o,a,l,c,u,d,f,h,m){var p,g="";return h&&(m=h(m)),!(!m||"string"!==typeof m)&&(u&&r(m,u)&&(m=m.replace(u,""),p=!0),o&&r(m,o)&&(m=m.replace(o,"")),d&&r(m,d)&&(m=m.replace(d,""),p=!0),a&&n(m,a)&&(m=m.slice(0,-1*a.length)),t&&(m=m.split(t).join("")),s&&(m=m.replace(s,".")),p&&(g+="-"),""!==(g=(g+=m).replace(/[^0-9\.\-.]/g,""))&&(g=Number(g),c&&(g=c(g)),!!i(g)&&g))}function c(t){var r,n,i,o={};for(void 0===t.suffix&&(t.suffix=t.postfix),r=0;r<e.length;r+=1)if(void 0===(i=t[n=e[r]]))"negative"!==n||o.negativeBefore?"mark"===n&&"."!==o.thousand?o[n]=".":o[n]=!1:o[n]="-";else if("decimals"===n){if(!(i>=0&&i<8))throw new Error(n);o[n]=i}else if("encoder"===n||"decoder"===n||"edit"===n||"undo"===n){if("function"!==typeof i)throw new Error(n);o[n]=i}else{if("string"!==typeof i)throw new Error(n);o[n]=i}return s(o,"mark","thousand"),s(o,"prefix","negative"),s(o,"prefix","negativeBefore"),o}function u(t,r,n){var s,i=[];for(s=0;s<e.length;s+=1)i.push(t[e[s]]);return i.push(n),r.apply("",i)}function d(e){if(!(this instanceof d))return new d(e);"object"===typeof e&&(e=c(e),this.to=function(t){return u(e,a,t)},this.from=function(t){return u(e,l,t)})}return d})?r.apply(t,n):r)||(e.exports=s)},52762(e,t,r){var n=r(89688).FilterCSS,s=r(89688).getDefaultWhiteList,i=r(3967);function o(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rows
2pan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]}}var a=new n;function l(e){return e.replace(c,"&lt;").replace(u,"&gt;")}var c=/</g,u=/>/g,d=/"/g,f=/&quot;/g,h=/&#([a-zA-Z0-9]*);?/gim,m=/&colon;?/gim,p=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,y=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/u\s*r\s*l\s*\(.*/gi;function b(e){return e.replace(d,"&quot;")}function _(e){return e.replace(f,'"')}function w(e){return e.replace(h,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function x(e){return e.replace(m,":").replace(p," ")}function k(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return i.trim(t)}function A(e){return e=k(e=x(e=w(e=_(e))))}function $(e){return e=l(e=b(e))}var j=/<!--[\s\S]*?-->/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},t.getDefaultWhiteList=o,t.onTag=function(e,t,r){},t.onIgnoreTag=function(e,t,r){},t.onTagAttr=function(e,t,r){},t.onIgnoreTagAttr=function(e,t,r){},t.safeAttrValue=function(e,t,r,n){if(r=A(r),"href"===t||"src"===t){if("#"===(r=i.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===t){if(g.lastIndex=0,g.test(r))return""}else if("style"===t){if(y.lastIndex=0,y.test(r))return"";if(v.lastIndex=0,v.test(r)&&(g.lastIndex=0,g.test(r)))return"";!1!==n&&(r=(n=n||a).process(r))}return r=$(r)},t.escapeHtml=l,t.escapeQuote=b,t.unescapeQuote=_,t.escapeHtmlEntities=w,t.escapeDangerHtml5Entities=x,t.clearNonPrintableCharacter=k,t.friendlyAttrValue=A,t.escapeAttrValue=$,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!==typeof t&&(t=function(){});var r=!Array.isArray(e),n=[],s=!1;return{onIgnoreTag:function(o,a,l){if(function(t){return!!r||-1!==i.indexOf(e,t)}(o)){if(l.isClosing){var c="[/removed]",u=l.position+10;return n.push([!1!==s?s:l.position,u]),s=!1,c}return s||(s=l.position),"[removed]"}return t(o,a,l)},remove:function(e){var t="",r=0;return i.forEach(n,function(n){t+=e.slice(r,n[0]),r=n[1]}),t+=e.slice(r)}}},t.stripCommentTag=function(e){return e.replace(j,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))})).join("")},t.cssFilter=a,t.getDefaultCSSWhiteList=s},34399(e,t,r){var n=r(52762),s=r(65216),i=r(68541);function o(e,t){return new i(t).process(e)}
2for(var a in(t=e.exports=o).filterXSS=o,t.FilterXSS=i,n)t[a]=n[a];for(var a in s)t[a]=s[a];"undefined"!==typeof window&&(window.filterXSS=e.exports),"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},65216(e,t,r){var n=r(3967);function s(e){var t=n.spaceIndex(e);if(-1===t)var r=e.slice(1,-1);else r=e.slice(1,t+1);return"/"===(r=n.trim(r).toLowerCase()).slice(0,1)&&(r=r.slice(1)),"/"===r.slice(-1)&&(r=r.slice(0,-1)),r}function i(e){return"</"===e.slice(0,2)}var o=/[^a-zA-Z0-9_:\.\-]/gim;function a(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r)return"="===r?t:-1}}function l(e,t){for(;t>0;t--){var r=e[t];if(" "!==r)return"="===r?t:-1}}function c(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,r){"use strict";var n="",o=0,a=!1,l=!1,c=0,u=e.length,d="",f="";e:for(c=0;c<u;c++){var h=e.charAt(c);if(!1===a){if("<"===h){a=c;continue}}else if(!1===l){if("<"===h){n+=r(e.slice(o,c)),a=c,o=c;continue}if(">"===h){n+=r(e.slice(o,a)),d=s(f=e.slice(a,c+1)),n+=t(a,n.length,d,f,i(f)),o=c+1,a=!1;continue}if('"'===h||"'"===h)for(var m=1,p=e.charAt(c-m);" "===p||"="===p;){if("="===p){l=h;continue e}p=e.charAt(c-++m)}}else if(h===l){l=!1;continue}}return o<e.length&&(n+=r(e.substr(o))),n},t.parseAttr=function(e,t){"use strict";var r=0,s=[],i=!1,u=e.length;function d(e,r){if(!((e=(e=n.trim(e)).replace(o,"").toLowerCase()).length<1)){var i=t(e,r||"");i&&s.push(i)}}for(var f=0;f<u;f++){var h,m=e.charAt(f);if(!1!==i||"="!==m)if(!1===i||f!==r||'"'!==m&&"'"!==m||"="!==e.charAt(f-1))if(/\s|\n|\t/.test(m)){if(e=e.replace(/\s|\n|\t/g," "),!1===i){if(-1===(h=a(e,f))){d(n.trim(e.slice(r,f))),i=!1,r=f+1;continue}f=h-1;continue}if(-1===(h=l(e,f-1))){d(i,c(n.trim(e.slice(r,f)))),i=!1,r=f+1;continue}}else;else{if(-1===(h=e.indexOf(m,f+1)))break;d(i,n.trim(e.slice(r+1,h))),i=!1,r=(f=h)+1}else i=e.slice(r,f),r=f+1}return r<e.length&&(!1===i?d(e.slice(r)):d(i,c(n.trim(e.slice(r))))),n.trim(s.join(" "))}},3967(e){e.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,s;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,s=e.length;n<s;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}},68541(e,t,r){var n=r(89688).FilterCSS,s=r(52762),i=r(65216),o=i.parseTag,a=i.parseAttr,l=r(3967);function c(e){return void 0===e||null===e}function u(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=s.onIgnoreTagStripAll),e.whiteList=e.whiteList||s.whiteList,e.onTag=e.onTag||s.onTag,e.onTagAttr=e.onTagAttr||s.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||s.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||s.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||s.safeAttrValue,e.escapeHtml=e.escapeHtml||s.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new n(e.css))}u.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,n=t.onTag,i=t.onIgnoreTag,u=t.onTagAttr,d=t.onIgnoreTagAttr,f=t.safeAttrValue,h=t.escapeHtml,m=this.cssFilter;t.stripBlankChar&&(e=s.stripBlankChar(e)),t.allowCommentTag||(e=s.stripCommentTag(e));var p=!1;if(t.stripIgnoreTagBody){p=s.StripTagBody(t.stripIgnoreTagBody,i);i=p.onIgnoreTag}var g=o(e,function(e,t,s,o,p){var g,y={sourcePosition:e,position:t,isClosing:p,isWhite:r.hasOwnProperty(s)};if(!c(g=n(s,o,y)))return g;if(y.isWhite){if(y.isClosing)return"</"+s+">";var v=function(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=l.trim(e.slice(t+1,-1)))[e.length-1];return r&&(e=l.trim(e.slice(0,-1))),{html:e,closing:r}}(o),b=r[s],_=a(v.html,function(e,t){var r,n=-1!==l.indexOf(b,e);return c(r=u(s,e,t,n))?n?(t=f(s,e,t,m))?e+'="'+t+'"':e:c(r=d(s,e,t,n))?void 0:r:r});o="<"+s;return _&&(o+=" "+_),v.closing&&(o+=" /"),o+=">"}return c(g=i(s,o,y))?h(o):g},h);return p&&(g=p.remove(g)),g},e.exports=u},24711(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},16131(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},28853(e,t,r){var n=r(50896);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},82988(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,s,i,o,a=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,s=e}
2finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},94736(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},35225(e,t,r){var n=r(28853);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports},81231(e,t,r){var n=r(30005);e.exports=function(e,t){if(null==e)return{};var r,s,i=n(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},30005(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},83083(e,t,r){var n=r(16131),s=r(82988),i=r(91658),o=r(94736);e.exports=function(e,t){return n(e)||s(e,t)||i(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},18429(e,t,r){var n=r(8498).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},50896(e,t,r){var n=r(8498).default,s=r(18429);e.exports=function(e){var t=s(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},8498(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},91658(e,t,r){var n=r(24711);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},79222(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}r.d(t,{A:()=>n})}}]);

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.