import{r as Fe,i as Ue,k as z,D as cr,h as ue}from"./lit-element-DDcuVA3y.js";import{t as $e}from"./custom-element-BhZVzxrc.js";import{n as x}from"./property-1JAdfsvf.js";import{e as me}from"./query-__j_ZMY6.js";import{r as Se}from"./state-D77yjKEp.js";import{F as Ye,a as Je,S as nt}from"./form-control-dependency-mixin-D_1gc3TK.js";import{a as it,s as gr}from"./variables-BWf6YqMz.js";import{g as Hi}from"./_commonjsHelpers-CqkleIqs.js";import{n as ot}from"./when-BxLAFfhK.js";import{a as Pe}from"./unsafe-html-IgFVxnfP.js";import{o as Nn}from"./query-assigned-elements-B9QUVdYT.js";import{o as Gi,r as Un}from"./map-BTiu792s.js";const ii=Fe(`${it}`),Vt=Ue`
    :host {
        --input__color: var(--_input__color, var(--sbkInputFgColorOnLightDefault));
        --input__color--disabled: var(--_input__color--disabled, var(--sbkInputFgColorOnLightDisabled));
        --input__color--error: var(--_input__color--error, var(--sbkInputFgColorOnLightError));

        --input__bg: var(--_input__bg, var(--sbkInputBgColorOnLightEnabled));
        --input__bg--active: var(--_input__bg--active, var(--sbkInputBgColorOnLightActive));
        --input__bg--hover: var(--_input__bg--hover, var(--sbkInputBgColorOnLightHover));
        --input__bg--focus: var(--_input__bg--focus, var(--sbkInputBgColorOnLightFocus));
        --input__bg--disabled: var(--_input__bg--disabled, var(--sbkInputBgColorOnLightDisabled));
        --input__bg--error: var(--_input__bg--error, var(--sbkInputBgColorOnLightError));

        --input__border: var(--_input__border, var(--sbkInputBorderOnLightEnabled));
        --input__border--active: var(--_input__border--active, var(--sbkInputBorderOnLightActive));
        --input__border--disabled: var(--_input__border--disabled, var(--sbkInputBorderOnLightDisabled));
        --input__border--error: var(--_input__border--error, var(--sbkInputBorderOnLightError));
        --input__border--focus: var(--_input__border--focus, var(--sbkInputBorderOnLightFocus));
        --input__border--hover: var(--_input__border--hover, var(--sbkInputBorderOnLightHover));
        --input__border--readonly: var(--_input__border--readonly, var(--sbkInputBorderOnLightDisabled));

        --input__margin-bottom: var(--_input__margin-bottom, var(--sbkCoreSpacingMd));
    }

    .input__wrapper {
        margin-bottom: var(--input__margin-bottom);
    }

    .input__wrapper--error {
        .input {
            background-color: var(--input__bg--error);
            border: var(--input__border--error);
            color: var(--input__color--error);
        }
    }

    .input {
        background-color: var(--input__bg);
        border-radius: var(--sbkInputBorderRadiusDefault);
        border: var(--input__border);
        color: var(--input__color);
        outline: transparent;
        outline-offset: var(--sbkInputBorderGapFocus);
        font: var(--sbkInputSmallTextSm);
        padding: var(--sbkInput2xs);
        width: 100%;

        &[type="search"]::-webkit-search-decoration,
        &[type="search"]::-webkit-search-cancel-button,
        &[type="search"]::-webkit-search-results-button,
        &[type="search"]::-webkit-search-results-decoration {
            appearance: none;
        }

        &:active {
            background-color: var(--input__bg--active);
            border: var(--input__border--active);
        }

        &:focus {
            background-color: var(--input__bg--focus);
            outline: var(--input__border--focus);
        }

        @media (hover: hover) and (pointer: fine) {
            &:hover:not(:focus) {
                background-color: var(--input__bg--hover);
                border: var(--input__border--hover);
            }
        }


        &[disabled] {
            background-color: var(--input__bg--disabled);
            border: var(--input__border--disabled);
            color: var(--input__color--disabled);
        }

        &[readonly] {
            background-color: var(--input__bg--disabled);
            border: var(--input__border--readonly);
            color: var(--input__color--disabled);
        }

        &::placeholder {
            color: var(--input__color--disabled);
        }
    }

    .input--large {
        font: var(--sbkInputSmallTextSm);

        @media all and (min-width: ${ii}) {
            font: var(--sbkInputLargeTextLg);
            padding: var(--sbkInputXs);
        }
    }

    .input-container {
        position: relative;
    }

    .eye-icon-button {
        position: absolute;
        right: var(--sbkInput2xs);
        top: calc(50% - var(--sbkRoundButtonSizingMaxHeightSmallIconOnly) / 2);
        background-color: transparent;
        color: var(--input__color);
        outline: 2px solid transparent;
        outline-offset: var(--sbkButtonBorderGapFocus);
        border-radius: var(--sbkButtonBorderRadiusDefault);
        border: none;
        cursor: pointer;
        text-decoration: none;
        fill: currentColor;

        .input__wrapper--error & {
            color: var(--input__color--error);
        }

        @media all and (min-width: ${ii}) {
            top: calc(50% - var(--sbkInputXs));
        }
    }

    input[type=password]::-ms-reveal,
    input[type=password]::-ms-clear {
        display: none;
    }

    input[type=password]::-webkit-contacts-auto-fill-button,
    input[type=password]::-webkit-credentials-auto-fill-button {
        visibility: hidden;
        display: none !important;
        pointer-events: none;
        height: 0;
        width: 0;
        margin: 0;
    }

    input[type=number]::-webkit-outer-spin-button,
    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type=number] {
      -moz-appearance: textfield;
    }
`;var Pr={exports:{}},Tr={exports:{}},Nr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;function r(n){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r(n)}function a(n){var i=typeof n=="string"||n instanceof String;if(!i){var o=r(n);throw n===null?o="null":o==="object"&&(o=n.constructor.name),new TypeError("Expected a string but received a ".concat(o))}}t.exports=e.default,t.exports.default=e.default})(Nr,Nr.exports);var R=Nr.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i),i=Date.parse(i),isNaN(i)?null:new Date(i)}t.exports=e.default,t.exports.default=e.default})(Tr,Tr.exports);var Vn=Tr.exports,Ur={exports:{}},At={},ae={};Object.defineProperty(ae,"__esModule",{value:!0});ae.farsiLocales=ae.englishLocales=ae.dotDecimal=ae.decimal=ae.commaDecimal=ae.bengaliLocales=ae.arabicLocales=ae.alphanumeric=ae.alpha=void 0;var Ee=ae.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/},xe=ae.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/},Ae=ae.decimal={"en-US":".",ar:"٫"},oi=ae.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"];for(var tr,wr=0;wr<oi.length;wr++)tr="en-".concat(oi[wr]),Ee[tr]=Ee["en-US"],xe[tr]=xe["en-US"],Ae[tr]=Ae["en-US"];var si=ae.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];for(var rr,Cr=0;Cr<si.length;Cr++)rr="ar-".concat(si[Cr]),Ee[rr]=Ee.ar,xe[rr]=xe.ar,Ae[rr]=Ae.ar;var li=ae.farsiLocales=["IR","AF"];for(var Or,Ir=0;Ir<li.length;Ir++)Or="fa-".concat(li[Ir]),xe[Or]=xe.fa,Ae[Or]=Ae.ar;var ui=ae.bengaliLocales=["BD","IN"];for(var ar,Mr=0;Mr<ui.length;Mr++)ar="bn-".concat(ui[Mr]),Ee[ar]=Ee.bn,xe[ar]=xe.bn,Ae[ar]=Ae["en-US"];var ci=ae.dotDecimal=["ar-EG","ar-LB","ar-LY"],di=ae.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];for(var Rr=0;Rr<ci.length;Rr++)Ae[ci[Rr]]=Ae["en-US"];for(var Fr=0;Fr<di.length;Fr++)Ae[di[Fr]]=",";Ee["fr-CA"]=Ee["fr-FR"];xe["fr-CA"]=xe["fr-FR"];Ee["pt-BR"]=Ee["pt-PT"];xe["pt-BR"]=xe["pt-PT"];Ae["pt-BR"]=Ae["pt-PT"];Ee["pl-Pl"]=Ee["pl-PL"];xe["pl-Pl"]=xe["pl-PL"];Ae["pl-Pl"]=Ae["pl-PL"];Ee["fa-AF"]=Ee.fa;Object.defineProperty(At,"__esModule",{value:!0});At.default=ys;At.locales=void 0;var bs=ms(R),zi=ae;function ms(t){return t&&t.__esModule?t:{default:t}}function ys(t,e){(0,bs.default)(t),e=e||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(e.locale?zi.decimal[e.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(t===""||t==="."||t===","||t==="-"||t==="+")return!1;var a=parseFloat(t.replace(",","."));return r.test(t)&&(!e.hasOwnProperty("min")||a>=e.min)&&(!e.hasOwnProperty("max")||a<=e.max)&&(!e.hasOwnProperty("lt")||a<e.lt)&&(!e.hasOwnProperty("gt")||a>e.gt)}At.locales=Object.keys(zi.decimal);(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(At);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i)?parseFloat(i):NaN}t.exports=e.default,t.exports.default=e.default})(Ur,Ur.exports);var Ki=Ur.exports,Vr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){return(0,r.default)(i),parseInt(i,o||10)}t.exports=e.default,t.exports.default=e.default})(Vr,Vr.exports);var Ss=Vr.exports,Zr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){return(0,r.default)(i),o?i==="1"||/^true$/i.test(i):i!=="0"&&!/^false$/i.test(i)&&i!==""}t.exports=e.default,t.exports.default=e.default})(Zr,Zr.exports);var As=Zr.exports,Hr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){return(0,r.default)(i),i===o}t.exports=e.default,t.exports.default=e.default})(Hr,Hr.exports);var $s=Hr.exports,Gr={exports:{}},zr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;function r(n){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r(n)}function a(n){return r(n)==="object"&&n!==null?typeof n.toString=="function"?n=n.toString():n="[object Object]":(n===null||typeof n>"u"||isNaN(n)&&!n.length)&&(n=""),String(n)}t.exports=e.default,t.exports.default=e.default})(zr,zr.exports);var Wi=zr.exports,Kr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;for(var i in n)typeof a[i]>"u"&&(a[i]=n[i]);return a}t.exports=e.default,t.exports.default=e.default})(Kr,Kr.exports);var ke=Kr.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=i(R),a=i(Wi),n=i(ke);function i(l){return l&&l.__esModule?l:{default:l}}var o={ignoreCase:!1,minOccurrences:1};function s(l,u,d){return(0,r.default)(l),d=(0,n.default)(d,o),d.ignoreCase?l.toLowerCase().split((0,a.default)(u).toLowerCase()).length>d.minOccurrences:l.split((0,a.default)(u)).length>d.minOccurrences}t.exports=e.default,t.exports.default=e.default})(Gr,Gr.exports);var ks=Gr.exports,Wr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o,s){return(0,r.default)(i),Object.prototype.toString.call(o)!=="[object RegExp]"&&(o=new RegExp(o,s)),!!i.match(o)}t.exports=e.default,t.exports.default=e.default})(Wr,Wr.exports);var Ds=Wr.exports,qr={exports:{}},Yr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n(o)}function i(o,s){(0,r.default)(o);var l,u;n(s)==="object"?(l=s.min||0,u=s.max):(l=arguments[1],u=arguments[2]);var d=encodeURI(o).split(/%..|./).length-1;return d>=l&&(typeof u>"u"||d<=u)}t.exports=e.default,t.exports.default=e.default})(Yr,Yr.exports);var qi=Yr.exports,Jr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=n(ke);function n(s){return s&&s.__esModule?s:{default:s}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function o(s,l){(0,r.default)(s),l=(0,a.default)(l,i),l.allow_trailing_dot&&s[s.length-1]==="."&&(s=s.substring(0,s.length-1)),l.allow_wildcard===!0&&s.indexOf("*.")===0&&(s=s.substring(2));var u=s.split("."),d=u[u.length-1];return l.require_tld&&(u.length<2||!l.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(d)||/\s/.test(d))||!l.allow_numeric_tld&&/^\d+$/.test(d)?!1:u.every(function(c){return!(c.length>63&&!l.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(c)||/[\uff01-\uff5e]/.test(c)||/^-|-$/.test(c)||!l.allow_underscores&&/_/.test(c))})}t.exports=e.default,t.exports.default=e.default})(Jr,Jr.exports);var Zn=Jr.exports,Xr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var r=a(R);function a(d){return d&&d.__esModule?d:{default:d}}var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(n,"[.]){3}").concat(n),o=new RegExp("^".concat(i,"$")),s="(?:[0-9a-fA-F]{1,4})",l=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(i,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(i,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(i,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(i,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(i,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(i,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(i,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function u(d){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.default)(d),c=String(c),c?c==="4"?o.test(d):c==="6"?l.test(d):!1:u(d,4)||u(d,6)}t.exports=e.default,t.exports.default=e.default})(Xr,Xr.exports);var _r=Xr.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=$;var r=s(R),a=s(qi),n=s(Zn),i=s(_r),o=s(ke);function s(S){return S&&S.__esModule?S:{default:S}}var l={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},u=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,c=/^[a-z\d]+$/,_=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,D=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,O=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;function v(S){var A=S.replace(/^"(.+)"$/,"$1");if(!A.trim())return!1;var k=/[\.";<>]/.test(A);if(k){if(A===S)return!1;var B=A.split('"').length===A.split('\\"').length;if(!B)return!1}return!0}function $(S,A){if((0,r.default)(S),A=(0,o.default)(A,l),A.require_display_name||A.allow_display_name){var k=S.match(u);if(k){var B=k[1];if(S=S.replace(B,"").replace(/(^<|>$)/g,""),B.endsWith(" ")&&(B=B.slice(0,-1)),!v(B))return!1}else if(A.require_display_name)return!1}if(!A.ignore_max_length&&S.length>g)return!1;var T=S.split("@"),P=T.pop(),U=P.toLowerCase();if(A.host_blacklist.includes(U)||A.host_whitelist.length>0&&!A.host_whitelist.includes(U))return!1;var V=T.join("@");if(A.domain_specific_validation&&(U==="gmail.com"||U==="googlemail.com")){V=V.toLowerCase();var K=V.split("+")[0];if(!(0,a.default)(K.replace(/\./g,""),{min:6,max:30}))return!1;for(var j=K.split("."),ge=0;ge<j.length;ge++)if(!c.test(j[ge]))return!1}if(A.ignore_max_length===!1&&(!(0,a.default)(V,{max:64})||!(0,a.default)(P,{max:254})))return!1;if(!(0,n.default)(P,{require_tld:A.require_tld,ignore_max_length:A.ignore_max_length,allow_underscores:A.allow_underscores})){if(!A.allow_ip_domain)return!1;if(!(0,i.default)(P)){if(!P.startsWith("[")||!P.endsWith("]"))return!1;var ce=P.slice(1,-1);if(ce.length===0||!(0,i.default)(ce))return!1}}if(V[0]==='"')return V=V.slice(1,V.length-1),A.allow_utf8_local_part?O.test(V):_.test(V);for(var pe=A.allow_utf8_local_part?D:d,se=V.split("."),m=0;m<se.length;m++)if(!pe.test(se[m]))return!1;return!(A.blacklisted_chars&&V.search(new RegExp("[".concat(A.blacklisted_chars,"]+"),"g"))!==-1)}t.exports=e.default,t.exports.default=e.default})(qr,qr.exports);var Yi=qr.exports,Qr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=$;var r=o(R),a=o(Zn),n=o(_r),i=o(ke);function o(S){return S&&S.__esModule?S:{default:S}}function s(S,A){return _(S)||c(S,A)||u(S,A)||l()}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(S,A){if(S){if(typeof S=="string")return d(S,A);var k=Object.prototype.toString.call(S).slice(8,-1);if(k==="Object"&&S.constructor&&(k=S.constructor.name),k==="Map"||k==="Set")return Array.from(S);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return d(S,A)}}function d(S,A){(A==null||A>S.length)&&(A=S.length);for(var k=0,B=new Array(A);k<A;k++)B[k]=S[k];return B}function c(S,A){var k=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(k!=null){var B,T,P,U,V=[],K=!0,j=!1;try{if(P=(k=k.call(S)).next,A!==0)for(;!(K=(B=P.call(k)).done)&&(V.push(B.value),V.length!==A);K=!0);}catch(ge){j=!0,T=ge}finally{try{if(!K&&k.return!=null&&(U=k.return(),Object(U)!==U))return}finally{if(j)throw T}}return V}}function _(S){if(Array.isArray(S))return S}var D={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},O=/^\[([^\]]+)\](?::([0-9]+))?$/;function g(S){return Object.prototype.toString.call(S)==="[object RegExp]"}function v(S,A){for(var k=0;k<A.length;k++){var B=A[k];if(S===B||g(B)&&B.test(S))return!0}return!1}function $(S,A){if((0,r.default)(S),!S||/[\s<>]/.test(S)||S.indexOf("mailto:")===0||(A=(0,i.default)(A,D),A.validate_length&&S.length>=2083)||!A.allow_fragments&&S.includes("#")||!A.allow_query_components&&(S.includes("?")||S.includes("&")))return!1;var k,B,T,P,U,V,K,j;if(K=S.split("#"),S=K.shift(),K=S.split("?"),S=K.shift(),K=S.split("://"),K.length>1){if(k=K.shift().toLowerCase(),A.require_valid_protocol&&A.protocols.indexOf(k)===-1)return!1}else{if(A.require_protocol)return!1;if(S.slice(0,2)==="//"){if(!A.allow_protocol_relative_urls)return!1;K[0]=S.slice(2)}}if(S=K.join("://"),S==="")return!1;if(K=S.split("/"),S=K.shift(),S===""&&!A.require_host)return!0;if(K=S.split("@"),K.length>1){if(A.disallow_auth||K[0]===""||(B=K.shift(),B.indexOf(":")>=0&&B.split(":").length>2))return!1;var ge=B.split(":"),ce=s(ge,2),pe=ce[0],se=ce[1];if(pe===""&&se==="")return!1}P=K.join("@"),V=null,j=null;var m=P.match(O);if(m?(T="",j=m[1],V=m[2]||null):(K=P.split(":"),T=K.shift(),K.length&&(V=K.join(":"))),V!==null&&V.length>0){if(U=parseInt(V,10),!/^[0-9]+$/.test(V)||U<=0||U>65535)return!1}else if(A.require_port)return!1;return A.host_whitelist?v(T,A.host_whitelist):T===""&&!A.require_host?!0:!(!(0,n.default)(T)&&!(0,a.default)(T,A)&&(!j||!(0,n.default)(j,6))||(T=T||j,A.host_blacklist&&v(T,A.host_blacklist)))}t.exports=e.default,t.exports.default=e.default})(Qr,Qr.exports);var Es=Qr.exports,jr={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var r=a(R);function a(c){return c&&c.__esModule?c:{default:c}}var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,s=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,l=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;function d(c,_){return(0,r.default)(c),_!=null&&_.eui&&(_.eui=String(_.eui)),_!=null&&_.no_colons||_!=null&&_.no_separators?_.eui==="48"?i.test(c):_.eui==="64"?l.test(c):i.test(c)||l.test(c):(_==null?void 0:_.eui)==="48"?n.test(c)||o.test(c):(_==null?void 0:_.eui)==="64"?s.test(c)||u.test(c):d(c,{eui:"48"})||d(c,{eui:"64"})}t.exports=e.default,t.exports.default=e.default})(jr,jr.exports);var xs=jr.exports,ea={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=n(R),a=n(_r);function n(u){return u&&u.__esModule?u:{default:u}}var i=/^\d{1,3}$/,o=32,s=128;function l(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(0,r.default)(u);var c=u.split("/");if(c.length!==2||!i.test(c[1])||c[1].length>1&&c[1].startsWith("0"))return!1;var _=(0,a.default)(c[0],d);if(!_)return!1;var D=null;switch(String(d)){case"4":D=o;break;case"6":D=s;break;default:D=(0,a.default)(c[0],"6")?s:o}return c[1]<=D&&c[1]>=0}t.exports=e.default,t.exports.default=e.default})(ea,ea.exports);var ws=ea.exports,ta={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=O;var r=a(ke);function a(g){return g&&g.__esModule?g:{default:g}}function n(g,v){return s(g)||o(g,v)||u(g,v)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(g,v){var $=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if($!=null){var S,A,k,B,T=[],P=!0,U=!1;try{if(k=($=$.call(g)).next,v!==0)for(;!(P=(S=k.call($)).done)&&(T.push(S.value),T.length!==v);P=!0);}catch(V){U=!0,A=V}finally{try{if(!P&&$.return!=null&&(B=$.return(),Object(B)!==B))return}finally{if(U)throw A}}return T}}function s(g){if(Array.isArray(g))return g}function l(g,v){var $=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!$){if(Array.isArray(g)||($=u(g))||v){$&&(g=$);var S=0,A=function(){};return{s:A,n:function(){return S>=g.length?{done:!0}:{done:!1,value:g[S++]}},e:function(U){throw U},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=!0,B=!1,T;return{s:function(){$=$.call(g)},n:function(){var U=$.next();return k=U.done,U},e:function(U){B=!0,T=U},f:function(){try{!k&&$.return!=null&&$.return()}finally{if(B)throw T}}}}function u(g,v){if(g){if(typeof g=="string")return d(g,v);var $=Object.prototype.toString.call(g).slice(8,-1);if($==="Object"&&g.constructor&&($=g.constructor.name),$==="Map"||$==="Set")return Array.from(g);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return d(g,v)}}function d(g,v){(v==null||v>g.length)&&(v=g.length);for(var $=0,S=new Array(v);$<v;$++)S[$]=g[$];return S}var c={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function _(g){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(g)}function D(g,v){for(var $=[],S=Math.min(g.length,v.length),A=0;A<S;A++)$.push([g[A],v[A]]);return $}function O(g,v){if(typeof v=="string"?v=(0,r.default)({format:v},c):v=(0,r.default)(v,c),typeof g=="string"&&_(v.format)){var $=v.delimiters.find(function(se){return v.format.indexOf(se)!==-1}),S=v.strictMode?$:v.delimiters.find(function(se){return g.indexOf(se)!==-1}),A=D(g.split(S),v.format.toLowerCase().split($)),k={},B=l(A),T;try{for(B.s();!(T=B.n()).done;){var P=n(T.value,2),U=P[0],V=P[1];if(U.length!==V.length)return!1;k[V.charAt(0)]=U}}catch(se){B.e(se)}finally{B.f()}var K=k.y;if(K.startsWith("-"))return!1;if(k.y.length===2){var j=parseInt(k.y,10);if(isNaN(j))return!1;var ge=new Date().getFullYear()%100;j<ge?K="20".concat(k.y):K="19".concat(k.y)}var ce=k.m;k.m.length===1&&(ce="0".concat(k.m));var pe=k.d;return k.d.length===1&&(pe="0".concat(k.d)),new Date("".concat(K,"-").concat(ce,"-").concat(pe,"T00:00:00.000Z")).getUTCDate()===+k.d}return v.strictMode?!1:Object.prototype.toString.call(g)==="[object Date]"&&isFinite(g)}t.exports=e.default,t.exports.default=e.default})(ta,ta.exports);var Ji=ta.exports,ra={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=a(ke);function a(s){return s&&s.__esModule?s:{default:s}}var n={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};function o(s,l){return l=(0,r.default)(l,n),typeof s!="string"?!1:i[l.hourFormat][l.mode].test(s)}t.exports=e.default,t.exports.default=e.default})(ra,ra.exports);var Cs=ra.exports,aa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=a(R);function a(l){return l&&l.__esModule?l:{default:l}}var n={loose:!1},i=["true","false","1","0"],o=[].concat(i,["yes","no"]);function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n;return(0,r.default)(l),u.loose?o.includes(l.toLowerCase()):i.includes(l)}t.exports=e.default,t.exports.default=e.default})(aa,aa.exports);var Os=aa.exports,na={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=S;var r=a(R);function a(A){return A&&A.__esModule?A:{default:A}}var n="([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",i="(([a-zA-Z]{2,3}(-".concat(n,")?)|([a-zA-Z]{5,8}))"),o="([A-Za-z]{4})",s="([A-Za-z]{2}|\\d{3})",l="([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",u="(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])",d="(".concat(u,"(-[A-Za-z0-9]{2,8})+)"),c="(x(-[A-Za-z0-9]{1,8})+)",_="((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))",D="((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",O="(".concat(_,"|").concat(D,")"),g="(-|_)",v="".concat(i,"(").concat(g).concat(o,")?(").concat(g).concat(s,")?(").concat(g).concat(l,")*(").concat(g).concat(d,")*(").concat(g).concat(c,")?"),$=new RegExp("(^".concat(c,"$)|(^").concat(O,"$)|(^").concat(v,"$)"));function S(A){return(0,r.default)(A),$.test(A)}t.exports=e.default,t.exports.default=e.default})(na,na.exports);var Is=na.exports,ia={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;function i(o){if((0,r.default)(o),!n.test(o))return!1;for(var s=0,l=0;l<o.length;l++)l%3===0?s+=o[l]*3:l%3===1?s+=o[l]*7:s+=o[l]*1;return s%10===0}t.exports=e.default,t.exports.default=e.default})(ia,ia.exports);var Ms=ia.exports,Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=Ls;Zt.locales=void 0;var Rs=Fs(R),oa=ae;function Fs(t){return t&&t.__esModule?t:{default:t}}function Ls(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,Rs.default)(t);var a=t,n=r.ignore;if(n)if(n instanceof RegExp)a=a.replace(n,"");else if(typeof n=="string")a=a.replace(new RegExp("[".concat(n.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(e in oa.alpha)return oa.alpha[e].test(a);throw new Error("Invalid locale '".concat(e,"'"))}Zt.locales=Object.keys(oa.alpha);var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=Ts;Ht.locales=void 0;var Bs=Ps(R),sa=ae;function Ps(t){return t&&t.__esModule?t:{default:t}}function Ts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,Bs.default)(t);var a=t,n=r.ignore;if(n)if(n instanceof RegExp)a=a.replace(n,"");else if(typeof n=="string")a=a.replace(new RegExp("[".concat(n.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(e in sa.alphanumeric)return sa.alphanumeric[e].test(a);throw new Error("Invalid locale '".concat(e,"'"))}Ht.locales=Object.keys(sa.alphanumeric);var la={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=ae;function n(s){return s&&s.__esModule?s:{default:s}}var i=/^[0-9]+$/;function o(s,l){return(0,r.default)(s),l&&l.no_symbols?i.test(s):new RegExp("^[+-]?([0-9]*[".concat((l||{}).locale?a.decimal[l.locale]:".","])?[0-9]+$")).test(s)}t.exports=e.default,t.exports.default=e.default})(la,la.exports);var Ns=la.exports,ua={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};function i(o,s){(0,r.default)(o);var l=o.replace(/\s/g,"").toUpperCase();return s.toUpperCase()in n&&n[s].test(l)}t.exports=e.default,t.exports.default=e.default})(ua,ua.exports);var Us=ua.exports,ca={exports:{}},da={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=a(R);function a(s){return s&&s.__esModule?s:{default:s}}var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;function o(s,l){(0,r.default)(s),l=l||{};var u=l.allow_leading_zeroes===!1?n:i,d=!l.hasOwnProperty("min")||s>=l.min,c=!l.hasOwnProperty("max")||s<=l.max,_=!l.hasOwnProperty("lt")||s<l.lt,D=!l.hasOwnProperty("gt")||s>l.gt;return u.test(s)&&d&&c&&_&&D}t.exports=e.default,t.exports.default=e.default})(da,da.exports);var Hn=da.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(Hn);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i,{allow_leading_zeroes:!1,min:0,max:65535})}t.exports=e.default,t.exports.default=e.default})(ca,ca.exports);var Vs=ca.exports,fa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i),i===i.toLowerCase()}t.exports=e.default,t.exports.default=e.default})(fa,fa.exports);var Zs=fa.exports,pa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i),i===i.toUpperCase()}t.exports=e.default,t.exports.default=e.default})(pa,pa.exports);var Hs=pa.exports,ha={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=a(R);function a(s){return s&&s.__esModule?s:{default:s}}var n=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;function o(s,l){(0,r.default)(s),l=l||{};var u=n;if(l.allow_hyphens&&(u=i),!u.test(s))return!1;s=s.replace(/-/g,"");for(var d=0,c=2,_=14,D=0;D<_;D++){var O=s.substring(_-D-1,_-D),g=parseInt(O,10)*c;g>=10?d+=g%10+1:d+=g,c===1?c+=1:c-=1}var v=(10-d%10)%10;return v===parseInt(s.substring(14,15),10)}t.exports=e.default,t.exports.default=e.default})(ha,ha.exports);var Gs=ha.exports,va={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^[\x00-\x7F]+$/;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(va,va.exports);var zs=va.exports,$t={};Object.defineProperty($t,"__esModule",{value:!0});$t.default=Ys;$t.fullWidth=void 0;var Ks=Ws(R);function Ws(t){return t&&t.__esModule?t:{default:t}}var qs=$t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function Ys(t){return(0,Ks.default)(t),qs.test(t)}var kt={};Object.defineProperty(kt,"__esModule",{value:!0});kt.default=js;kt.halfWidth=void 0;var Js=Xs(R);function Xs(t){return t&&t.__esModule?t:{default:t}}var Qs=kt.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function js(t){return(0,Js.default)(t),Qs.test(t)}var ga={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=i(R),a=$t,n=kt;function i(s){return s&&s.__esModule?s:{default:s}}function o(s){return(0,r.default)(s),a.fullWidth.test(s)&&n.halfWidth.test(s)}t.exports=e.default,t.exports.default=e.default})(ga,ga.exports);var el=ga.exports,_a={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/[^\x00-\x7F]/;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(_a,_a.exports);var tl=_a.exports,ba={exports:{}},ma={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(a,n){var i=a.join("");return new RegExp(i,n)}t.exports=e.default,t.exports.default=e.default})(ma,ma.exports);var rl=ma.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=n(rl);function n(s){return s&&s.__esModule?s:{default:s}}var i=(0,a.default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");function o(s){return(0,r.default)(s),i.test(s)}t.exports=e.default,t.exports.default=e.default})(ba,ba.exports);var al=ba.exports,ya={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(ya,ya.exports);var nl=ya.exports,Sa={exports:{}},Aa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(n,i){return n.some(function(o){return i===o})};e.default=r,t.exports=e.default,t.exports.default=e.default})(Aa,Aa.exports);var il=Aa.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var r=o(ke),a=o(R),n=o(il),i=ae;function o(c){return c&&c.__esModule?c:{default:c}}function s(c){var _=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.decimal[c.locale],"[0-9]{").concat(c.decimal_digits,"})").concat(c.force_decimal?"":"?","$"));return _}var l={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];function d(c,_){if((0,a.default)(c),_=(0,r.default)(_,l),_.locale in i.decimal)return!(0,n.default)(u,c.replace(/ /g,""))&&s(_).test(c);throw new Error("Invalid locale '".concat(_.locale,"'"))}t.exports=e.default,t.exports.default=e.default})(Sa,Sa.exports);var ol=Sa.exports,$a={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^(0x|0h)?[0-9A-F]+$/i;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})($a,$a.exports);var Xi=$a.exports,ka={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^(0o)?[0-7]+$/i;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(ka,ka.exports);var sl=ka.exports,Da={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(R),a=n(Ki);function n(o){return o&&o.__esModule?o:{default:o}}function i(o,s){return(0,r.default)(o),(0,a.default)(o)%parseInt(s,10)===0}t.exports=e.default,t.exports.default=e.default})(Da,Da.exports);var ll=Da.exports,Ea={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(Ea,Ea.exports);var ul=Ea.exports,xa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=a(R);function a(u){return u&&u.__esModule?u:{default:u}}var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,o=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;function l(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,r.default)(u),d?n.test(u)||i.test(u)||o.test(u)||s.test(u):n.test(u)||i.test(u)}t.exports=e.default,t.exports.default=e.default})(xa,xa.exports);var cl=xa.exports,wa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=a(R);function a(s){return s&&s.__esModule?s:{default:s}}var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;function o(s){(0,r.default)(s);var l=s.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/ig,"$1");return l.indexOf(",")!==-1?n.test(l):i.test(l)}t.exports=e.default,t.exports.default=e.default})(wa,wa.exports);var dl=wa.exports,Ca={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(Ca,Ca.exports);var fl=Ca.exports,Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=bl;Gt.locales=void 0;var pl=hl(R);function hl(t){return t&&t.__esModule?t:{default:t}}var dr={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function vl(t){var e=t.filter(function(r){return!(r in dr)});return!(e.length>0)}function gl(t,e){var r=t.replace(/[\s\-]+/gi,"").toUpperCase(),a=r.slice(0,2).toUpperCase(),n=a in dr;if(e.whitelist){if(!vl(e.whitelist))return!1;var i=e.whitelist.includes(a);if(!i)return!1}if(e.blacklist){var o=e.blacklist.includes(a);if(o)return!1}return n&&dr[a].test(r)}function _l(t){var e=t.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),r=e.slice(4)+e.slice(0,4),a=r.replace(/[A-Z]/g,function(i){return i.charCodeAt(0)-55}),n=a.match(/\d{1,7}/g).reduce(function(i,o){return Number(i+o)%97},"");return n===1}function bl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,pl.default)(t),gl(t,e)&&_l(t)}Gt.locales=Object.keys(dr);var Oa={exports:{}},Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.CountryCodes=void 0;Dt.default=Sl;var ml=yl(R);function yl(t){return t&&t.__esModule?t:{default:t}}var Qi=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function Sl(t){return(0,ml.default)(t),Qi.has(t.toUpperCase())}Dt.CountryCodes=Qi;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=Dt;function n(s){return s&&s.__esModule?s:{default:s}}var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function o(s){(0,r.default)(s);var l=s.slice(4,6).toUpperCase();return!a.CountryCodes.has(l)&&l!=="XK"?!1:i.test(s)}t.exports=e.default,t.exports.default=e.default})(Oa,Oa.exports);var Al=Oa.exports,Ia={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^[a-f0-9]{32}$/;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(Ia,Ia.exports);var $l=Ia.exports,Ma={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};function i(o,s){(0,r.default)(o);var l=new RegExp("^[a-fA-F0-9]{".concat(n[s],"}$"));return l.test(o)}t.exports=e.default,t.exports.default=e.default})(Ma,Ma.exports);var kl=Ma.exports,Ra={exports:{}},Fa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=n(R),a=n(ke);function n(u){return u&&u.__esModule?u:{default:u}}var i=/[^A-Z0-9+\/=]/i,o=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};function l(u,d){(0,r.default)(u),d=(0,a.default)(d,s);var c=u.length;if(d.urlSafe)return o.test(u);if(c%4!==0||i.test(u))return!1;var _=u.indexOf("=");return _===-1||_===c-1||_===c-2&&u[c-1]==="="}t.exports=e.default,t.exports.default=e.default})(Fa,Fa.exports);var ji=Fa.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(R),a=n(ji);function n(o){return o&&o.__esModule?o:{default:o}}function i(o){(0,r.default)(o);var s=o.split("."),l=s.length;return l!==3?!1:s.reduce(function(u,d){return u&&(0,a.default)(d,{urlSafe:!0})},!0)}t.exports=e.default,t.exports.default=e.default})(Ra,Ra.exports);var Dl=Ra.exports,La={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=n(R),a=n(ke);function n(l){return l&&l.__esModule?l:{default:l}}function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(l)}var o={allow_primitives:!1};function s(l,u){(0,r.default)(l);try{u=(0,a.default)(u,o);var d=[];u.allow_primitives&&(d=[null,!1,!0]);var c=JSON.parse(l);return d.includes(c)||!!c&&i(c)==="object"}catch{}return!1}t.exports=e.default,t.exports.default=e.default})(La,La.exports);var El=La.exports,Ba={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=n(ke);function n(s){return s&&s.__esModule?s:{default:s}}var i={ignore_whitespace:!1};function o(s,l){return(0,r.default)(s),l=(0,a.default)(l,i),(l.ignore_whitespace?s.trim().length:s.length)===0}t.exports=e.default,t.exports.default=e.default})(Ba,Ba.exports);var xl=Ba.exports,Pa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n(o)}function i(o,s){(0,r.default)(o);var l,u;n(s)==="object"?(l=s.min||0,u=s.max):(l=arguments[1]||0,u=arguments[2]);var d=o.match(/(\uFE0F|\uFE0E)/g)||[],c=o.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],_=o.length-d.length-c.length;return _>=l&&(typeof u>"u"||_<=u)}t.exports=e.default,t.exports.default=e.default})(Pa,Pa.exports);var wl=Pa.exports,Ta={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function i(o,s){(0,r.default)(o);var l=n[[void 0,null].includes(s)?"all":s];return!!l&&l.test(o)}t.exports=e.default,t.exports.default=e.default})(Ta,Ta.exports);var Cl=Ta.exports,Na={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(R),a=n(Xi);function n(o){return o&&o.__esModule?o:{default:o}}function i(o){return(0,r.default)(o),(0,a.default)(o)&&o.length===24}t.exports=e.default,t.exports.default=e.default})(Na,Na.exports);var Ol=Na.exports,Ua={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(Vn);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){var s=(o==null?void 0:o.comparisonDate)||o||Date().toString(),l=(0,r.default)(s),u=(0,r.default)(i);return!!(u&&l&&u>l)}t.exports=e.default,t.exports.default=e.default})(Ua,Ua.exports);var Il=Ua.exports,Va={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(R),a=n(Vn);function n(o){return o&&o.__esModule?o:{default:o}}function i(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:String(new Date);(0,r.default)(o);var l=(0,a.default)(s),u=(0,a.default)(o);return!!(u&&l&&u<l)}t.exports=e.default,t.exports.default=e.default})(Va,Va.exports);var Ml=Va.exports,Za={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=n(Wi);function n(s){return s&&s.__esModule?s:{default:s}}function i(s){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},i(s)}function o(s,l){(0,r.default)(s);var u;if(Object.prototype.toString.call(l)==="[object Array]"){var d=[];for(u in l)({}).hasOwnProperty.call(l,u)&&(d[u]=(0,a.default)(l[u]));return d.indexOf(s)>=0}else{if(i(l)==="object")return l.hasOwnProperty(s);if(l&&typeof l.indexOf=="function")return l.indexOf(s)>=0}return!1}t.exports=e.default,t.exports.default=e.default})(Za,Za.exports);var Rl=Za.exports,Ha={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){(0,r.default)(i);for(var o=i.replace(/[- ]+/g,""),s=0,l,u,d,c=o.length-1;c>=0;c--)l=o.substring(c,c+1),u=parseInt(l,10),d?(u*=2,u>=10?s+=u%10+1:s+=u):s+=u,d=!d;return!!(s%10===0&&o)}t.exports=e.default,t.exports.default=e.default})(Ha,Ha.exports);var eo=Ha.exports,Ga={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=n(R),a=n(eo);function n(l){return l&&l.__esModule?l:{default:l}}var i={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},o=function(){var l=[];for(var u in i)i.hasOwnProperty(u)&&l.push(i[u]);return l}();function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(l);var d=u.provider,c=l.replace(/[- ]+/g,"");if(d&&d.toLowerCase()in i){if(!i[d.toLowerCase()].test(c))return!1}else{if(d&&!(d.toLowerCase()in i))throw new Error("".concat(d," is not a valid credit card provider."));if(!o.some(function(_){return _.test(c)}))return!1}return(0,a.default)(l)}t.exports=e.default,t.exports.default=e.default})(Ga,Ga.exports);var Fl=Ga.exports,za={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=n(R),a=n(Hn);function n(s){return s&&s.__esModule?s:{default:s}}var i={PL:function(l){(0,r.default)(l);var u={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(l!=null&&l.length===11&&(0,a.default)(l,{allow_leading_zeroes:!0})){var d=l.split("").slice(0,-1),c=d.reduce(function(O,g,v){return O+Number(g)*u[v+1]},0),_=c%10,D=Number(l.charAt(l.length-1));if(_===0&&D===0||D===10-_)return!0}return!1},ES:function(l){(0,r.default)(l);var u=/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/,d={X:0,Y:1,Z:2},c=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"],_=l.trim().toUpperCase();if(!u.test(_))return!1;var D=_.slice(0,-1).replace(/[X,Y,Z]/g,function(O){return d[O]});return _.endsWith(c[D%23])},FI:function(l){if((0,r.default)(l),l.length!==11||!l.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;var u="0123456789ABCDEFHJKLMNPRSTUVWXY",d=parseInt(l.slice(0,6),10)*1e3+parseInt(l.slice(7,10),10),c=d%31,_=u[c];return _===l.slice(10,11)},IN:function(l){var u=/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/,d=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],c=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],_=l.trim();if(!u.test(_))return!1;var D=0,O=_.replace(/\s/g,"").split("").map(Number).reverse();return O.forEach(function(g,v){D=d[D][c[v%8][g]]}),D===0},IR:function(l){if(!l.match(/^\d{10}$/)||(l="0000".concat(l).slice(l.length-6),parseInt(l.slice(3,9),10)===0))return!1;for(var u=parseInt(l.slice(9,10),10),d=0,c=0;c<9;c++)d+=parseInt(l.slice(c,c+1),10)*(10-c);return d%=11,d<2&&u===d||d>=2&&u===11-d},IT:function(l){return l.length!==9||l==="CA00000AA"?!1:l.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1},NO:function(l){var u=l.trim();if(isNaN(Number(u))||u.length!==11||u==="00000000000")return!1;var d=u.split("").map(Number),c=(11-(3*d[0]+7*d[1]+6*d[2]+1*d[3]+8*d[4]+9*d[5]+4*d[6]+5*d[7]+2*d[8])%11)%11,_=(11-(5*d[0]+4*d[1]+3*d[2]+2*d[3]+7*d[4]+6*d[5]+5*d[6]+4*d[7]+3*d[8]+2*c)%11)%11;return!(c!==d[9]||_!==d[10])},TH:function(l){if(!l.match(/^[1-8]\d{12}$/))return!1;for(var u=0,d=0;d<12;d++)u+=parseInt(l[d],10)*(13-d);return l[12]===((11-u%11)%10).toString()},LK:function(l){var u=/^[1-9]\d{8}[vx]$/i,d=/^[1-9]\d{11}$/i;return l.length===10&&u.test(l)?!0:!!(l.length===12&&d.test(l))},"he-IL":function(l){var u=/^\d{9}$/,d=l.trim();if(!u.test(d))return!1;for(var c=d,_=0,D,O=0;O<c.length;O++)D=Number(c[O])*(O%2+1),_+=D>9?D-9:D;return _%10===0},"ar-LY":function(l){var u=/^(1|2)\d{11}$/,d=l.trim();return!!u.test(d)},"ar-TN":function(l){var u=/^\d{8}$/,d=l.trim();return!!u.test(d)},"zh-CN":function(l){var u=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],d=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],c=["1","0","X","9","8","7","6","5","4","3","2"],_=function(k){return u.includes(k)},D=function(k){var B=parseInt(k.substring(0,4),10),T=parseInt(k.substring(4,6),10),P=parseInt(k.substring(6),10),U=new Date(B,T-1,P);return U>new Date?!1:U.getFullYear()===B&&U.getMonth()===T-1&&U.getDate()===P},O=function(k){for(var B=k.substring(0,17),T=0,P=0;P<17;P++)T+=parseInt(B.charAt(P),10)*parseInt(d[P],10);var U=T%11;return c[U]},g=function(k){return O(k)===k.charAt(17).toUpperCase()},v=function(k){var B=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(k);if(!B)return!1;var T=k.substring(0,2);if(B=_(T),!B)return!1;var P="19".concat(k.substring(6,12));return B=D(P),!!B},$=function(k){var B=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(k);if(!B)return!1;var T=k.substring(0,2);if(B=_(T),!B)return!1;var P=k.substring(6,14);return B=D(P),B?g(k):!1},S=function(k){var B=/^\d{15}|(\d{17}(\d|x|X))$/.test(k);return B?k.length===15?v(k):$(k):!1};return S(l)},"zh-HK":function(l){l=l.trim();var u=/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/,d=/^[0-9]$/;if(l=l.toUpperCase(),!u.test(l))return!1;l=l.replace(/\[|\]|\(|\)/g,""),l.length===8&&(l="3".concat(l));for(var c=0,_=0;_<=7;_++){var D=void 0;d.test(l[_])?D=l[_]:D=(l[_].charCodeAt(0)-55)%11,c+=D*(9-_)}c%=11;var O;return c===0?O="0":c===1?O="A":O=String(11-c),O===l[l.length-1]},"zh-TW":function(l){var u={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},d=l.trim().toUpperCase();return/^[A-Z][0-9]{9}$/.test(d)?Array.from(d).reduce(function(c,_,D){if(D===0){var O=u[_];return O%10*9+Math.floor(O/10)}return D===9?(10-c%10-Number(_))%10===0:c+Number(_)*(9-D)},0):!1}};function o(s,l){if((0,r.default)(s),l in i)return i[l](s);if(l==="any"){for(var u in i)if(i.hasOwnProperty(u)){var d=i[u];if(d(s))return!0}return!1}throw new Error("Invalid locale '".concat(l,"'"))}t.exports=e.default,t.exports.default=e.default})(za,za.exports);var Ll=za.exports,Ka={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var r=a(R);function a(d){return d&&d.__esModule?d:{default:d}}var n=8,i=14,o=/^(\d{8}|\d{13}|\d{14})$/;function s(d,c){return d===n||d===i?c%2===0?3:1:c%2===0?1:3}function l(d){var c=d.slice(0,-1).split("").map(function(D,O){return Number(D)*s(d.length,O)}).reduce(function(D,O){return D+O},0),_=10-c%10;return _<10?_:0}function u(d){(0,r.default)(d);var c=Number(d.slice(-1));return o.test(d)&&c===l(d)}t.exports=e.default,t.exports.default=e.default})(Ka,Ka.exports);var Bl=Ka.exports,Wa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function i(o){if((0,r.default)(o),!n.test(o))return!1;for(var s=!0,l=0,u=o.length-2;u>=0;u--)if(o[u]>="A"&&o[u]<="Z")for(var d=o[u].charCodeAt(0)-55,c=d%10,_=Math.trunc(d/10),D=0,O=[c,_];D<O.length;D++){var g=O[D];s?g>=5?l+=1+(g-5)*2:l+=g*2:l+=g,s=!s}else{var v=o[u].charCodeAt(0)-48;s?v>=5?l+=1+(v-5)*2:l+=v*2:l+=v,s=!s}var $=Math.trunc((l+9)/10)*10-l;return+o[o.length-1]===$}t.exports=e.default,t.exports.default=e.default})(Wa,Wa.exports);var Pl=Wa.exports,qa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=a(R);function a(l){return l&&l.__esModule?l:{default:l}}var n=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,o=[1,3];function s(l,u){(0,r.default)(l);var d=String((u==null?void 0:u.version)||u);if(!(u!=null&&u.version||u))return s(l,{version:10})||s(l,{version:13});var c=l.replace(/[\s-]+/g,""),_=0;if(d==="10"){if(!n.test(c))return!1;for(var D=0;D<d-1;D++)_+=(D+1)*c.charAt(D);if(c.charAt(9)==="X"?_+=10*10:_+=10*c.charAt(9),_%11===0)return!0}else if(d==="13"){if(!i.test(c))return!1;for(var O=0;O<12;O++)_+=o[O%2]*c.charAt(O);if(c.charAt(12)-(10-_%10)%10===0)return!0}return!1}t.exports=e.default,t.exports.default=e.default})(qa,qa.exports);var Tl=qa.exports,Ya={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n="^\\d{4}-?\\d{3}[\\dX]$";function i(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(o);var l=n;if(l=s.require_hyphen?l.replace("?",""):l,l=s.case_sensitive?new RegExp(l):new RegExp(l,"i"),!l.test(o))return!1;for(var u=o.replace("-","").toUpperCase(),d=0,c=0;c<u.length;c++){var _=u[c];d+=(_==="X"?10:+_)*(8-c)}return d%11===0}t.exports=e.default,t.exports.default=e.default})(Ya,Ya.exports);var Nl=Ya.exports,Ja={exports:{}},st={};Object.defineProperty(st,"__esModule",{value:!0});st.iso7064Check=Ul;st.luhnCheck=Vl;st.reverseMultiplyAndSum=Zl;st.verhoeffCheck=Hl;function Ul(t){for(var e=10,r=0;r<t.length-1;r++)e=(parseInt(t[r],10)+e)%10===0?10*2%11:(parseInt(t[r],10)+e)%10*2%11;return e=e===1?0:11-e,e===parseInt(t[10],10)}function Vl(t){for(var e=0,r=!1,a=t.length-1;a>=0;a--){if(r){var n=parseInt(t[a],10)*2;n>9?e+=n.toString().split("").map(function(i){return parseInt(i,10)}).reduce(function(i,o){return i+o},0):e+=n}else e+=parseInt(t[a],10);r=!r}return e%10===0}function Zl(t,e){for(var r=0,a=0;a<t.length;a++)r+=t[a]*(e-a);return r}function Hl(t){for(var e=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],a=t.split("").reverse().join(""),n=0,i=0;i<a.length;i++)n=e[n][r[i%8][parseInt(a[i],10)]];return n===0}(function(t,e){function r(f){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},r(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=Er;var a=l(R),n=s(st),i=l(Ji);function o(f){if(typeof WeakMap!="function")return null;var p=new WeakMap,y=new WeakMap;return(o=function(C){return C?y:p})(f)}function s(f,p){if(f&&f.__esModule)return f;if(f===null||r(f)!="object"&&typeof f!="function")return{default:f};var y=o(p);if(y&&y.has(f))return y.get(f);var I={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in f)if(L!=="default"&&{}.hasOwnProperty.call(f,L)){var Z=C?Object.getOwnPropertyDescriptor(f,L):null;Z&&(Z.get||Z.set)?Object.defineProperty(I,L,Z):I[L]=f[L]}return I.default=f,y&&y.set(f,I),I}function l(f){return f&&f.__esModule?f:{default:f}}function u(f){return D(f)||_(f)||c(f)||d()}function d(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,p){if(f){if(typeof f=="string")return O(f,p);var y=Object.prototype.toString.call(f).slice(8,-1);if(y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set")return Array.from(f);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return O(f,p)}}function _(f){if(typeof Symbol<"u"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}function D(f){if(Array.isArray(f))return O(f)}function O(f,p){(p==null||p>f.length)&&(p=f.length);for(var y=0,I=new Array(p);y<p;y++)I[y]=f[y];return I}function g(f){var p=f.slice(0,2),y=parseInt(f.slice(2,4),10);y>40?(y-=40,p="20".concat(p)):y>20?(y-=20,p="18".concat(p)):p="19".concat(p),y<10&&(y="0".concat(y));var I="".concat(p,"/").concat(y,"/").concat(f.slice(4,6));if(!(0,i.default)(I,"YYYY/MM/DD"))return!1;for(var C=f.split("").map(function(J){return parseInt(J,10)}),L=[2,4,8,5,10,9,7,3,6],Z=0,W=0;W<L.length;W++)Z+=C[W]*L[W];return Z=Z%11===10?0:Z%11,Z===C[9]}function v(f){var p=f.split(""),y=p.filter(function(C,L){return L%2}).map(function(C){return Number(C)*2}).join("").split(""),I=p.filter(function(C,L){return!(L%2)}).concat(y).map(function(C){return Number(C)}).reduce(function(C,L){return C+L});return I%10===0}function $(f){f=f.replace(/\W/,"");var p=parseInt(f.slice(0,2),10);if(f.length===10)p<54?p="20".concat(p):p="19".concat(p);else{if(f.slice(6)==="000")return!1;if(p<54)p="19".concat(p);else return!1}p.length===3&&(p=[p.slice(0,2),"0",p.slice(2)].join(""));var y=parseInt(f.slice(2,4),10);if(y>50&&(y-=50),y>20){if(parseInt(p,10)<2004)return!1;y-=20}y<10&&(y="0".concat(y));var I="".concat(p,"/").concat(y,"/").concat(f.slice(4,6));if(!(0,i.default)(I,"YYYY/MM/DD"))return!1;if(f.length===10&&parseInt(f,10)%11!==0){var C=parseInt(f.slice(0,9),10)%11;if(parseInt(p,10)<1986&&C===10){if(parseInt(f.slice(9),10)!==0)return!1}else return!1}return!0}function S(f){return n.luhnCheck(f)}function A(f){for(var p=f.split("").map(function(J){return parseInt(J,10)}),y=[],I=0;I<p.length-1;I++){y.push("");for(var C=0;C<p.length-1;C++)p[I]===p[C]&&(y[I]+=C)}if(y=y.filter(function(J){return J.length>1}),y.length!==2&&y.length!==3)return!1;if(y[0].length===3){for(var L=y[0].split("").map(function(J){return parseInt(J,10)}),Z=0,W=0;W<L.length-1;W++)L[W]+1===L[W+1]&&(Z+=1);if(Z===2)return!1}return n.iso7064Check(f)}function k(f){f=f.replace(/\W/,"");var p=parseInt(f.slice(4,6),10),y=f.slice(6,7);switch(y){case"0":case"1":case"2":case"3":p="19".concat(p);break;case"4":case"9":p<37?p="20".concat(p):p="19".concat(p);break;default:if(p<37)p="20".concat(p);else if(p>58)p="18".concat(p);else return!1;break}p.length===3&&(p=[p.slice(0,2),"0",p.slice(2)].join(""));var I="".concat(p,"/").concat(f.slice(2,4),"/").concat(f.slice(0,2));if(!(0,i.default)(I,"YYYY/MM/DD"))return!1;for(var C=f.split("").map(function(J){return parseInt(J,10)}),L=0,Z=4,W=0;W<9;W++)L+=C[W]*Z,Z-=1,Z===1&&(Z=7);return L%=11,L===1?!1:L===0?C[9]===0:C[9]===11-L}function B(f){for(var p=f.slice(0,8).split("").map(function(L){return parseInt(L,10)}),y=0,I=1;I<p.length;I+=2)y+=p[I];for(var C=0;C<p.length;C+=2)p[C]<2?y+=1-p[C]:(y+=2*(p[C]-2)+5,p[C]>4&&(y+=2));return String.fromCharCode(y%26+65)===f.charAt(8)}function T(f){for(var p=f.split("").map(function(C){return parseInt(C,10)}),y=0,I=0;I<8;I++)y+=p[I]*Math.pow(2,8-I);return y%11%10===p[8]}function P(f){var p=n.reverseMultiplyAndSum(f.split("").slice(0,7).map(function(y){return parseInt(y,10)}),8);return f.length===9&&f[8]!=="W"&&(p+=(f[8].charCodeAt(0)-64)*9),p%=23,p===0?f[7].toUpperCase()==="W":f[7].toUpperCase()===String.fromCharCode(64+p)}var U={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function V(){var f=[];for(var p in U)U.hasOwnProperty(p)&&f.push.apply(f,u(U[p]));return f}function K(f){return V().indexOf(f.slice(0,2))!==-1}function j(f){for(var p=0,y=f.split(""),I=parseInt(y.pop(),10),C=0;C<y.length;C++)p+=y[9-C]*(2+C%6);var L=11-p%11;return L===11?L=0:L===10&&(L=9),I===L}function ge(f){var p=f.toUpperCase().split("");if(isNaN(parseInt(p[0],10))&&p.length>1){var y=0;switch(p[0]){case"Y":y=1;break;case"Z":y=2;break}p.splice(0,1,y)}else for(;p.length<9;)p.unshift(0);var I=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"];p=p.join("");var C=parseInt(p.slice(0,8),10)%23;return p[8]===I[C]}function ce(f){var p=f.slice(1,3),y=f.slice(0,1);switch(y){case"1":case"2":p="18".concat(p);break;case"3":case"4":p="19".concat(p);break;default:p="20".concat(p);break}var I="".concat(p,"/").concat(f.slice(3,5),"/").concat(f.slice(5,7));if(!(0,i.default)(I,"YYYY/MM/DD"))return!1;for(var C=f.split("").map(function(te){return parseInt(te,10)}),L=0,Z=1,W=0;W<10;W++)L+=C[W]*Z,Z+=1,Z===10&&(Z=1);if(L%11===10){L=0,Z=3;for(var J=0;J<10;J++)L+=C[J]*Z,Z+=1,Z===10&&(Z=1);if(L%11===10)return C[10]===0}return L%11===C[10]}function pe(f){var p=f.slice(4,6),y=f.slice(6,7);switch(y){case"+":p="18".concat(p);break;case"-":p="19".concat(p);break;default:p="20".concat(p);break}var I="".concat(p,"/").concat(f.slice(2,4),"/").concat(f.slice(0,2));if(!(0,i.default)(I,"YYYY/MM/DD"))return!1;var C=parseInt(f.slice(0,6)+f.slice(7,10),10)%31;if(C<10)return C===parseInt(f.slice(10),10);C-=10;var L=["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"];return L[C]===f.slice(10)}function se(f){if(f.slice(2,4)!=="00"||f.slice(4,6)!=="00"){var p="".concat(f.slice(0,2),"/").concat(f.slice(2,4),"/").concat(f.slice(4,6));if(!(0,i.default)(p,"YY/MM/DD"))return!1}var y=97-parseInt(f.slice(0,9),10)%97,I=parseInt(f.slice(9,11),10);return!(y!==I&&(y=97-parseInt("2".concat(f.slice(0,9)),10)%97,y!==I))}function m(f){f=f.replace(/\s/g,"");var p=parseInt(f.slice(0,10),10)%511,y=parseInt(f.slice(10,13),10);return p===y}function h(f){var p="".concat(f.slice(0,4),"/").concat(f.slice(4,6),"/").concat(f.slice(6,8));return!(0,i.default)(p,"YYYY/MM/DD")||!n.luhnCheck(f.slice(0,12))?!1:n.verhoeffCheck("".concat(f.slice(0,11)).concat(f[12]))}function b(f){return n.iso7064Check(f)}function E(f){for(var p=f.split("").map(function(C){return parseInt(C,10)}),y=8,I=1;I<9;I++)y+=p[I]*(I+1);return y%11===p[9]}function F(f){for(var p=!1,y=!1,I=0;I<3;I++)if(!p&&/[AEIOU]/.test(f[I]))p=!0;else if(!y&&p&&f[I]==="X")y=!0;else if(I>0&&(p&&!y&&!/[AEIOU]/.test(f[I])||y&&!/X/.test(f[I])))return!1;return!0}function w(f){var p=f.toUpperCase().split("");if(!F(p.slice(0,3))||!F(p.slice(3,6)))return!1;for(var y=[6,7,9,10,12,13,14],I={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},C=0,L=y;C<L.length;C++){var Z=L[C];p[Z]in I&&p.splice(Z,1,I[p[Z]])}var W={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"},J=W[p[8]],te=parseInt(p[9]+p[10],10);te>40&&(te-=40),te<10&&(te="0".concat(te));var Xe="".concat(p[6]).concat(p[7],"/").concat(J,"/").concat(te);if(!(0,i.default)(Xe,"YY/MM/DD"))return!1;for(var Ze=0,Le=1;Le<p.length-1;Le+=2){var Ct=parseInt(p[Le],10);isNaN(Ct)&&(Ct=p[Le].charCodeAt(0)-65),Ze+=Ct}for(var Ot={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},Qe=0;Qe<p.length-1;Qe+=2){var dt=0;if(p[Qe]in Ot)dt=Ot[p[Qe]];else{var jt=parseInt(p[Qe],10);dt=2*jt+1,jt>4&&(dt+=2)}Ze+=dt}return String.fromCharCode(65+Ze%26)===p[15]}function H(f){f=f.replace(/\W/,"");var p=f.slice(0,2);if(p!=="32"){var y=f.slice(2,4);if(y!=="00"){var I=f.slice(4,6);switch(f[6]){case"0":I="18".concat(I);break;case"1":I="19".concat(I);break;default:I="20".concat(I);break}var C="".concat(I,"/").concat(f.slice(2,4),"/").concat(p);if(!(0,i.default)(C,"YYYY/MM/DD"))return!1}for(var L=1101,Z=[1,6,3,7,9,10,5,8,4,2],W=0;W<f.length-1;W++)L-=parseInt(f[W],10)*Z[W];return parseInt(f[10],10)===L%11}return!0}function q(f){if(f.length!==9){for(var p=f.toUpperCase().split("");p.length<8;)p.unshift(0);switch(f[7]){case"A":case"P":if(parseInt(p[6],10)===0)return!1;break;default:{var y=parseInt(p.join("").slice(0,5),10);if(y>32e3)return!1;var I=parseInt(p.join("").slice(5,7),10);if(y===I)return!1}}}return!0}function Y(f){return n.reverseMultiplyAndSum(f.split("").slice(0,8).map(function(p){return parseInt(p,10)}),9)%11===parseInt(f[8],10)}function de(f){if(f.length===10){for(var p=[6,5,7,2,3,4,5,6,7],y=0,I=0;I<p.length;I++)y+=parseInt(f[I],10)*p[I];return y%=11,y===10?!1:y===parseInt(f[9],10)}var C=f.slice(0,2),L=parseInt(f.slice(2,4),10);L>80?(C="18".concat(C),L-=80):L>60?(C="22".concat(C),L-=60):L>40?(C="21".concat(C),L-=40):L>20?(C="20".concat(C),L-=20):C="19".concat(C),L<10&&(L="0".concat(L));var Z="".concat(C,"/").concat(L,"/").concat(f.slice(4,6));if(!(0,i.default)(Z,"YYYY/MM/DD"))return!1;for(var W=0,J=1,te=0;te<f.length-1;te++)W+=parseInt(f[te],10)*J%10,J+=2,J>10?J=1:J===5&&(J+=2);return W=10-W%10,W===parseInt(f[10],10)}function le(f){if(f.length===11){var p,y;if(p=0,f==="11111111111"||f==="22222222222"||f==="33333333333"||f==="44444444444"||f==="55555555555"||f==="66666666666"||f==="77777777777"||f==="88888888888"||f==="99999999999"||f==="00000000000")return!1;for(var I=1;I<=9;I++)p+=parseInt(f.substring(I-1,I),10)*(11-I);if(y=p*10%11,y===10&&(y=0),y!==parseInt(f.substring(9,10),10))return!1;p=0;for(var C=1;C<=10;C++)p+=parseInt(f.substring(C-1,C),10)*(12-C);return y=p*10%11,y===10&&(y=0),y===parseInt(f.substring(10,11),10)}if(f==="00000000000000"||f==="11111111111111"||f==="22222222222222"||f==="33333333333333"||f==="44444444444444"||f==="55555555555555"||f==="66666666666666"||f==="77777777777777"||f==="88888888888888"||f==="99999999999999")return!1;for(var L=f.length-2,Z=f.substring(0,L),W=f.substring(L),J=0,te=L-7,Xe=L;Xe>=1;Xe--)J+=Z.charAt(L-Xe)*te,te-=1,te<2&&(te=9);var Ze=J%11<2?0:11-J%11;if(Ze!==parseInt(W.charAt(0),10))return!1;L+=1,Z=f.substring(0,L),J=0,te=L-7;for(var Le=L;Le>=1;Le--)J+=Z.charAt(L-Le)*te,te-=1,te<2&&(te=9);return Ze=J%11<2?0:11-J%11,Ze===parseInt(W.charAt(1),10)}function fe(f){var p=11-n.reverseMultiplyAndSum(f.split("").slice(0,8).map(function(y){return parseInt(y,10)}),9)%11;return p>9?parseInt(f[8],10)===0:p===parseInt(f[8],10)}function Ar(f){if(f.slice(0,4)!=="9000"){var p=f.slice(1,3);switch(f[0]){case"1":case"2":p="19".concat(p);break;case"3":case"4":p="18".concat(p);break;case"5":case"6":p="20".concat(p);break}var y="".concat(p,"/").concat(f.slice(3,5),"/").concat(f.slice(5,7));if(y.length===8){if(!(0,i.default)(y,"YY/MM/DD"))return!1}else if(!(0,i.default)(y,"YYYY/MM/DD"))return!1;for(var I=f.split("").map(function(W){return parseInt(W,10)}),C=[2,7,9,1,4,6,3,5,8,2,7,9],L=0,Z=0;Z<C.length;Z++)L+=I[Z]*C[Z];return L%11===10?I[12]===1:I[12]===L%11}return!0}function $r(f){if(f.length===9){if(f=f.replace(/\W/,""),f.slice(6)==="000")return!1;var p=parseInt(f.slice(0,2),10);if(p>53)return!1;p<10?p="190".concat(p):p="19".concat(p);var y=parseInt(f.slice(2,4),10);y>50&&(y-=50),y<10&&(y="0".concat(y));var I="".concat(p,"/").concat(y,"/").concat(f.slice(4,6));if(!(0,i.default)(I,"YYYY/MM/DD"))return!1}return!0}function Xt(f){var p=11-n.reverseMultiplyAndSum(f.split("").slice(0,7).map(function(y){return parseInt(y,10)}),8)%11;return p===10?parseInt(f[7],10)===0:p===parseInt(f[7],10)}function kr(f){var p=f.slice(0);f.length>11&&(p=p.slice(2));var y="",I=p.slice(2,4),C=parseInt(p.slice(4,6),10);if(f.length>11)y=f.slice(0,4);else if(y=f.slice(0,2),f.length===11&&C<60){var L=new Date().getFullYear().toString(),Z=parseInt(L.slice(0,2),10);if(L=parseInt(L,10),f[6]==="-")parseInt("".concat(Z).concat(y),10)>L?y="".concat(Z-1).concat(y):y="".concat(Z).concat(y);else if(y="".concat(Z-1).concat(y),L-parseInt(y,10)<100)return!1}C>60&&(C-=60),C<10&&(C="0".concat(C));var W="".concat(y,"/").concat(I,"/").concat(C);if(W.length===8){if(!(0,i.default)(W,"YY/MM/DD"))return!1}else if(!(0,i.default)(W,"YYYY/MM/DD"))return!1;return n.luhnCheck(f.replace(/\W/,""))}function Dr(f){for(var p=f.split("").map(function(L){return parseInt(L,10)}),y=[-1,5,7,9,4,6,10,5,7],I=0,C=0;C<y.length;C++)I+=p[C]*y[C];return I%11===10?p[9]===0:p[9]===I%11}var Ie={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-AR":/(20|23|24|27|30|33|34)[0-9]{8}[0-9]/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,"uk-UA":/^\d{10}$/};Ie["lb-LU"]=Ie["fr-LU"],Ie["lt-LT"]=Ie["et-EE"],Ie["nl-BE"]=Ie["fr-BE"],Ie["fr-CA"]=Ie["en-CA"];var Me={"bg-BG":g,"cs-CZ":$,"de-AT":S,"de-DE":A,"dk-DK":k,"el-CY":B,"el-GR":T,"en-CA":v,"en-IE":P,"en-US":K,"es-AR":j,"es-ES":ge,"et-EE":ce,"fi-FI":pe,"fr-BE":se,"fr-FR":m,"fr-LU":h,"hr-HR":b,"hu-HU":E,"it-IT":w,"lv-LV":H,"mt-MT":q,"nl-NL":Y,"pl-PL":de,"pt-BR":le,"pt-PT":fe,"ro-RO":Ar,"sk-SK":$r,"sl-SI":Xt,"sv-SE":kr,"uk-UA":Dr};Me["lb-LU"]=Me["fr-LU"],Me["lt-LT"]=Me["et-EE"],Me["nl-BE"]=Me["fr-BE"],Me["fr-CA"]=Me["en-CA"];var Qt=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,ct={"de-AT":Qt,"de-DE":/[\/\\]/g,"fr-BE":Qt};ct["nl-BE"]=ct["fr-BE"];function Er(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US";(0,a.default)(f);var y=f.slice(0);if(p in Ie)return p in ct&&(y=y.replace(ct[p],"")),Ie[p].test(y)?p in Me?Me[p](y):!0:!1;throw new Error("Invalid locale '".concat(p,"'"))}t.exports=e.default,t.exports.default=e.default})(Ja,Ja.exports);var Gl=Ja.exports,zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.default=Wl;zt.locales=void 0;var zl=Kl(R);function Kl(t){return t&&t.__esModule?t:{default:t}}var ne={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};ne["en-CA"]=ne["en-US"];ne["fr-CA"]=ne["en-CA"];ne["fr-BE"]=ne["nl-BE"];ne["zh-HK"]=ne["en-HK"];ne["zh-MO"]=ne["en-MO"];ne["ga-IE"]=ne["en-IE"];ne["fr-CH"]=ne["de-CH"];ne["it-CH"]=ne["fr-CH"];function Wl(t,e,r){if((0,zl.default)(t),r&&r.strictMode&&!t.startsWith("+"))return!1;if(Array.isArray(e))return e.some(function(i){if(ne.hasOwnProperty(i)){var o=ne[i];if(o.test(t))return!0}return!1});if(e in ne)return ne[e].test(t);if(!e||e==="any"){for(var a in ne)if(ne.hasOwnProperty(a)){var n=ne[a];if(n.test(t))return!0}return!1}throw new Error("Invalid locale '".concat(e,"'"))}zt.locales=Object.keys(ne);var Xa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^(0x)[0-9a-f]{40}$/i;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(Xa,Xa.exports);var ql=Xa.exports,Qa={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=n(ke),a=n(R);function n(l){return l&&l.__esModule?l:{default:l}}function i(l){var u="\\d{".concat(l.digits_after_decimal[0],"}");l.digits_after_decimal.forEach(function(S,A){A!==0&&(u="".concat(u,"|\\d{").concat(S,"}"))});var d="(".concat(l.symbol.replace(/\W/,function(S){return"\\".concat(S)}),")").concat(l.require_symbol?"":"?"),c="-?",_="[1-9]\\d*",D="[1-9]\\d{0,2}(\\".concat(l.thousands_separator,"\\d{3})*"),O=["0",_,D],g="(".concat(O.join("|"),")?"),v="(\\".concat(l.decimal_separator,"(").concat(u,"))").concat(l.require_decimal?"":"?"),$=g+(l.allow_decimal||l.require_decimal?v:"");return l.allow_negatives&&!l.parens_for_negatives&&(l.negative_sign_after_digits?$+=c:l.negative_sign_before_digits&&($=c+$)),l.allow_negative_sign_placeholder?$="( (?!\\-))?".concat($):l.allow_space_after_symbol?$=" ?".concat($):l.allow_space_after_digits&&($+="( (?!$))?"),l.symbol_after_digits?$+=d:$=d+$,l.allow_negatives&&(l.parens_for_negatives?$="(\\(".concat($,"\\)|").concat($,")"):l.negative_sign_before_digits||l.negative_sign_after_digits||($=c+$)),new RegExp("^(?!-? )(?=.*\\d)".concat($,"$"))}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};function s(l,u){return(0,a.default)(l),u=(0,r.default)(u,o),i(u).test(l)}t.exports=e.default,t.exports.default=e.default})(Qa,Qa.exports);var Yl=Qa.exports,ja={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=a(R);function a(s){return s&&s.__esModule?s:{default:s}}var n=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;function o(s){return(0,r.default)(s),n.test(s)||i.test(s)}t.exports=e.default,t.exports.default=e.default})(ja,ja.exports);var Jl=ja.exports,Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.isFreightContainerID=void 0;Kt.isISO6346=to;var Xl=Ql(R);function Ql(t){return t&&t.__esModule?t:{default:t}}var jl=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,eu=/^[0-9]$/;function to(t){if((0,Xl.default)(t),t=t.toUpperCase(),!jl.test(t))return!1;if(t.length===11){for(var e=0,r=0;r<t.length-1;r++)if(eu.test(t[r]))e+=t[r]*Math.pow(2,r);else{var a=void 0,n=t.charCodeAt(r)-55;n<11?a=n:n>=11&&n<=20?a=12+n%11:n>=21&&n<=30?a=23+n%21:a=34+n%31,e+=a*Math.pow(2,r)}var i=e%11;return Number(t[t.length-1])===i}return!0}Kt.isFreightContainerID=to;var en={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);function i(o){return(0,r.default)(o),n.has(o)}t.exports=e.default,t.exports.default=e.default})(en,en.exports);var tu=en.exports,tn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=a(R);function a(l){return l&&l.__esModule?l:{default:l}}var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=function(u){var d=u.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(d){var c=Number(d[1]),_=Number(d[2]);return c%4===0&&c%100!==0||c%400===0?_<=366:_<=365}var D=u.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),O=D[1],g=D[2],v=D[3],$=g&&"0".concat(g).slice(-2),S=v&&"0".concat(v).slice(-2),A=new Date("".concat(O,"-").concat($||"01","-").concat(S||"01"));return g&&v?A.getUTCFullYear()===O&&A.getUTCMonth()+1===g&&A.getUTCDate()===v:!0};function s(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(l);var d=u.strictSeparator?i.test(l):n.test(l);return d&&u.strict?o(l):d}t.exports=e.default,t.exports.default=e.default})(tn,tn.exports);var ru=tn.exports,rn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=$;var r=a(R);function a(S){return S&&S.__esModule?S:{default:S}}var n=/[0-9]{4}/,i=/(0[1-9]|1[0-2])/,o=/([12]\d|0[1-9]|3[01])/,s=/([01][0-9]|2[0-3])/,l=/[0-5][0-9]/,u=/([0-5][0-9]|60)/,d=/(\.[0-9]+)?/,c=new RegExp("[-+]".concat(s.source,":").concat(l.source)),_=new RegExp("([zZ]|".concat(c.source,")")),D=new RegExp("".concat(s.source,":").concat(l.source,":").concat(u.source).concat(d.source)),O=new RegExp("".concat(n.source,"-").concat(i.source,"-").concat(o.source)),g=new RegExp("".concat(D.source).concat(_.source)),v=new RegExp("^".concat(O.source,"[ tT]").concat(g.source,"$"));function $(S){return(0,r.default)(S),v.test(S)}t.exports=e.default,t.exports.default=e.default})(rn,rn.exports);var au=rn.exports,an={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);function i(o){return(0,r.default)(o),n.has(o.toUpperCase())}t.exports=e.default,t.exports.default=e.default})(an,an.exports);var nu=an.exports,Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.CurrencyCodes=void 0;Wt.default=su;var iu=ou(R);function ou(t){return t&&t.__esModule?t:{default:t}}var ro=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);function su(t){return(0,iu.default)(t),ro.has(t.toUpperCase())}Wt.CurrencyCodes=ro;var nn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=n(R),a=n(ke);function n(u){return u&&u.__esModule?u:{default:u}}var i=/^[A-Z2-7]+=*$/,o=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};function l(u,d){if((0,r.default)(u),d=(0,a.default)(d,s),d.crockford)return o.test(u);var c=u.length;return!!(c%8===0&&i.test(u))}t.exports=e.default,t.exports.default=e.default})(nn,nn.exports);var lu=nn.exports,on={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^[A-HJ-NP-Za-km-z1-9]*$/;function i(o){return(0,r.default)(o),!!n.test(o)}t.exports=e.default,t.exports.default=e.default})(on,on.exports);var uu=on.exports,sn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=a(R);function a(l){return l&&l.__esModule?l:{default:l}}var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,i=/^[a-z\-]+=[a-z0-9\-]+$/i,o=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;function s(l){(0,r.default)(l);var u=l.split(",");if(u.length<2)return!1;var d=u.shift().trim().split(";"),c=d.shift();if(c.slice(0,5)!=="data:")return!1;var _=c.slice(5);if(_!==""&&!n.test(_))return!1;for(var D=0;D<d.length;D++)if(!(D===d.length-1&&d[D].toLowerCase()==="base64")&&!i.test(d[D]))return!1;for(var O=0;O<u.length;O++)if(!o.test(u[O]))return!1;return!0}t.exports=e.default,t.exports.default=e.default})(sn,sn.exports);var cu=sn.exports,ln={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;function i(o){return(0,r.default)(o),o.indexOf("magnet:?")!==0?!1:n.test(o)}t.exports=e.default,t.exports.default=e.default})(ln,ln.exports);var du=ln.exports,un={exports:{}},cn={exports:{}},dn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){if((0,r.default)(i),o){var s=new RegExp("[".concat(o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return i.replace(s,"")}for(var l=i.length-1;/\s/.test(i.charAt(l));)l-=1;return i.slice(0,l+1)}t.exports=e.default,t.exports.default=e.default})(dn,dn.exports);var ao=dn.exports,fn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){(0,r.default)(i);var s=o?new RegExp("^[".concat(o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return i.replace(s,"")}t.exports=e.default,t.exports.default=e.default})(fn,fn.exports);var no=fn.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(ao),a=n(no);function n(o){return o&&o.__esModule?o:{default:o}}function i(o,s){return(0,r.default)((0,a.default)(o,s),s)}t.exports=e.default,t.exports.default=e.default})(cn,cn.exports);var io=cn.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=O;var r=i(io),a=i(Yi),n=i(R);function i(g){return g&&g.__esModule?g:{default:g}}function o(g,v){return u(g)||l(g,v)||c(g,v)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(g,v){var $=g==null?null:typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if($!=null){var S,A,k,B,T=[],P=!0,U=!1;try{if(k=($=$.call(g)).next,v!==0)for(;!(P=(S=k.call($)).done)&&(T.push(S.value),T.length!==v);P=!0);}catch(V){U=!0,A=V}finally{try{if(!P&&$.return!=null&&(B=$.return(),Object(B)!==B))return}finally{if(U)throw A}}return T}}function u(g){if(Array.isArray(g))return g}function d(g,v){var $=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!$){if(Array.isArray(g)||($=c(g))||v){$&&(g=$);var S=0,A=function(){};return{s:A,n:function(){return S>=g.length?{done:!0}:{done:!1,value:g[S++]}},e:function(U){throw U},f:A}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=!0,B=!1,T;return{s:function(){$=$.call(g)},n:function(){var U=$.next();return k=U.done,U},e:function(U){B=!0,T=U},f:function(){try{!k&&$.return!=null&&$.return()}finally{if(B)throw T}}}}function c(g,v){if(g){if(typeof g=="string")return _(g,v);var $=Object.prototype.toString.call(g).slice(8,-1);if($==="Object"&&g.constructor&&($=g.constructor.name),$==="Map"||$==="Set")return Array.from(g);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return _(g,v)}}function _(g,v){(v==null||v>g.length)&&(v=g.length);for(var $=0,S=new Array(v);$<v;$++)S[$]=g[$];return S}function D(g){var v=new Set(["subject","body","cc","bcc"]),$={cc:"",bcc:""},S=!1,A=g.split("&");if(A.length>4)return!1;var k=d(A),B;try{for(k.s();!(B=k.n()).done;){var T=B.value,P=T.split("="),U=o(P,2),V=U[0],K=U[1];if(V&&!v.has(V)){S=!0;break}K&&(V==="cc"||V==="bcc")&&($[V]=K),V&&v.delete(V)}}catch(j){k.e(j)}finally{k.f()}return S?!1:$}function O(g,v){if((0,n.default)(g),g.indexOf("mailto:")!==0)return!1;var $=g.replace("mailto:","").split("?"),S=o($,2),A=S[0],k=S[1],B=k===void 0?"":k;if(!A&&!B)return!0;var T=D(B);return T?"".concat(A,",").concat(T.cc,",").concat(T.bcc).split(",").every(function(P){return P=(0,r.default)(P," "),P?(0,a.default)(P,v):!0}):!1}t.exports=e.default,t.exports.default=e.default})(un,un.exports);var fu=un.exports,pn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=a(R);function a(l){return l&&l.__esModule?l:{default:l}}var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function s(l){return(0,r.default)(l),n.test(l)||i.test(l)||o.test(l)}t.exports=e.default,t.exports.default=e.default})(pn,pn.exports);var pu=pn.exports,hn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var r=n(R),a=n(ke);function n(c){return c&&c.__esModule?c:{default:c}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,o=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,l=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,u={checkDMS:!1};function d(c,_){if((0,r.default)(c),_=(0,a.default)(_,u),!c.includes(","))return!1;var D=c.split(",");return D[0].startsWith("(")&&!D[1].endsWith(")")||D[1].endsWith(")")&&!D[0].startsWith("(")?!1:_.checkDMS?s.test(D[0])&&l.test(D[1]):i.test(D[0])&&o.test(D[1])}t.exports=e.default,t.exports.default=e.default})(hn,hn.exports);var hu=hn.exports,qt={};Object.defineProperty(qt,"__esModule",{value:!0});qt.default=_u;qt.locales=void 0;var vu=gu(R);function gu(t){return t&&t.__esModule?t:{default:t}}var fi=/^\d{3}$/,Ce=/^\d{4}$/,ye=/^\d{5}$/,Lr=/^\d{6}$/,gt={AD:/^AD\d{3}$/,AT:Ce,AU:Ce,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:Ce,BG:Ce,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:Ce,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:ye,DK:Ce,DO:ye,DZ:ye,EE:ye,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:ye,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:Ce,ID:ye,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:fi,IT:ye,JP:/^\d{3}\-\d{4}$/,KE:ye,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:Ce,LV:/^LV\-\d{4}$/,LK:ye,MG:fi,MX:ye,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:ye,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:Ce,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:Ce,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:Lr,RU:Lr,SA:ye,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:Lr,SI:Ce,SK:/^\d{3}\s?\d{2}$/,TH:ye,TN:Ce,TW:/^\d{3}(\d{2})?$/,UA:ye,US:/^\d{5}(-\d{4})?$/,ZA:Ce,ZM:ye};qt.locales=Object.keys(gt);function _u(t,e){if((0,vu.default)(t),e in gt)return gt[e].test(t);if(e==="any"){for(var r in gt)if(gt.hasOwnProperty(r)){var a=gt[r];if(a.test(t))return!0}return!1}throw new Error("Invalid locale '".concat(e,"'"))}var vn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i),i.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")}t.exports=e.default,t.exports.default=e.default})(vn,vn.exports);var bu=vn.exports,gn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i){return(0,r.default)(i),i.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")}t.exports=e.default,t.exports.default=e.default})(gn,gn.exports);var mu=gn.exports,_n={exports:{}},bn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){return(0,r.default)(i),i.replace(new RegExp("[".concat(o,"]+"),"g"),"")}t.exports=e.default,t.exports.default=e.default})(bn,bn.exports);var oo=bn.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=n(R),a=n(oo);function n(o){return o&&o.__esModule?o:{default:o}}function i(o,s){(0,r.default)(o);var l=s?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,a.default)(o,l)}t.exports=e.default,t.exports.default=e.default})(_n,_n.exports);var yu=_n.exports,mn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){return(0,r.default)(i),i.replace(new RegExp("[^".concat(o,"]+"),"g"),"")}t.exports=e.default,t.exports.default=e.default})(mn,mn.exports);var Su=mn.exports,yn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var r=a(R);function a(i){return i&&i.__esModule?i:{default:i}}function n(i,o){(0,r.default)(i);for(var s=i.length-1;s>=0;s--)if(o.indexOf(i[s])===-1)return!1;return!0}t.exports=e.default,t.exports.default=e.default})(yn,yn.exports);var Au=yn.exports,Sn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var r=a(ke);function a(c){return c&&c.__esModule?c:{default:c}}var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],o=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],l=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(c){return c.length>1?c:""}function d(c,_){_=(0,r.default)(_,n);var D=c.split("@"),O=D.pop(),g=D.join("@"),v=[g,O];if(v[1]=v[1].toLowerCase(),v[1]==="gmail.com"||v[1]==="googlemail.com"){if(_.gmail_remove_subaddress&&(v[0]=v[0].split("+")[0]),_.gmail_remove_dots&&(v[0]=v[0].replace(/\.+/g,u)),!v[0].length)return!1;(_.all_lowercase||_.gmail_lowercase)&&(v[0]=v[0].toLowerCase()),v[1]=_.gmail_convert_googlemaildotcom?"gmail.com":v[1]}else if(i.indexOf(v[1])>=0){if(_.icloud_remove_subaddress&&(v[0]=v[0].split("+")[0]),!v[0].length)return!1;(_.all_lowercase||_.icloud_lowercase)&&(v[0]=v[0].toLowerCase())}else if(o.indexOf(v[1])>=0){if(_.outlookdotcom_remove_subaddress&&(v[0]=v[0].split("+")[0]),!v[0].length)return!1;(_.all_lowercase||_.outlookdotcom_lowercase)&&(v[0]=v[0].toLowerCase())}else if(s.indexOf(v[1])>=0){if(_.yahoo_remove_subaddress){var $=v[0].split("-");v[0]=$.length>1?$.slice(0,-1).join("-"):$[0]}if(!v[0].length)return!1;(_.all_lowercase||_.yahoo_lowercase)&&(v[0]=v[0].toLowerCase())}else l.indexOf(v[1])>=0?((_.all_lowercase||_.yandex_lowercase)&&(v[0]=v[0].toLowerCase()),v[1]="yandex.ru"):_.all_lowercase&&(v[0]=v[0].toLowerCase());return v.join("@")}t.exports=e.default,t.exports.default=e.default})(Sn,Sn.exports);var $u=Sn.exports,An={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function i(o){return(0,r.default)(o),n.test(o)}t.exports=e.default,t.exports.default=e.default})(An,An.exports);var ku=An.exports,$n={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=a(R);function a(o){return o&&o.__esModule?o:{default:o}}var n={"cs-CZ":function(s){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(s)},"de-DE":function(s){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(s)},"de-LI":function(s){return/^FL[- ]?\d{1,5}[UZ]?$/.test(s)},"en-IN":function(s){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(s)},"es-AR":function(s){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(s)},"fi-FI":function(s){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(s)},"hu-HU":function(s){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(s)},"pt-BR":function(s){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(s)},"pt-PT":function(s){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(s)},"sq-AL":function(s){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(s)},"sv-SE":function(s){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(s.trim())},"en-PK":function(s){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(s.trim())}};function i(o,s){if((0,r.default)(o),s in n)return n[s](o);if(s==="any"){for(var l in n){var u=n[l];if(u(o))return!0}return!1}throw new Error("Invalid locale '".concat(s,"'"))}t.exports=e.default,t.exports.default=e.default})($n,$n.exports);var Du=$n.exports,kn={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=D;var r=n(ke),a=n(R);function n(O){return O&&O.__esModule?O:{default:O}}var i=/^[A-Z]$/,o=/^[a-z]$/,s=/^[0-9]$/,l=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,u={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function d(O){var g={};return Array.from(O).forEach(function(v){var $=g[v];$?g[v]+=1:g[v]=1}),g}function c(O){var g=d(O),v={length:O.length,uniqueChars:Object.keys(g).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(g).forEach(function($){i.test($)?v.uppercaseCount+=g[$]:o.test($)?v.lowercaseCount+=g[$]:s.test($)?v.numberCount+=g[$]:l.test($)&&(v.symbolCount+=g[$])}),v}function _(O,g){var v=0;return v+=O.uniqueChars*g.pointsPerUnique,v+=(O.length-O.uniqueChars)*g.pointsPerRepeat,O.lowercaseCount>0&&(v+=g.pointsForContainingLower),O.uppercaseCount>0&&(v+=g.pointsForContainingUpper),O.numberCount>0&&(v+=g.pointsForContainingNumber),O.symbolCount>0&&(v+=g.pointsForContainingSymbol),v}function D(O){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,a.default)(O);var v=c(O);return g=(0,r.default)(g||{},u),g.returnScore?_(v,g):v.length>=g.minLength&&v.lowercaseCount>=g.minLowercase&&v.uppercaseCount>=g.minUppercase&&v.numberCount>=g.minNumbers&&v.symbolCount>=g.minSymbols}t.exports=e.default,t.exports.default=e.default})(kn,kn.exports);var Eu=kn.exports,Yt={};function Dn(t){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(t)}Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=Ru;Yt.vatMatchers=void 0;var pi=Cu(R),xu=wu(st);function so(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(so=function(n){return n?r:e})(t)}function wu(t,e){if(t&&t.__esModule)return t;if(t===null||Dn(t)!="object"&&typeof t!="function")return{default:t};var r=so(e);if(r&&r.has(t))return r.get(t);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&{}.hasOwnProperty.call(t,i)){var o=n?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=t[i]}return a.default=t,r&&r.set(t,a),a}function Cu(t){return t&&t.__esModule?t:{default:t}}var Ou=function(e){var r=e.match(/^(AU)?(\d{11})$/);if(!r)return!1;var a=[10,1,3,5,7,9,11,13,15,17,19];e=e.replace(/^AU/,"");for(var n=(parseInt(e.slice(0,1),10)-1).toString()+e.slice(1),i=0,o=0;o<11;o++)i+=a[o]*n.charAt(o);return i!==0&&i%89===0},Iu=function(e){var r=function(n){var i=n.pop(),o=[5,4,3,2,7,6,5,4],s=(11-n.reduce(function(l,u,d){return l+u*o[d]},0)%11)%11;return i===s};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&r(e.match(/\d/g).map(function(a){return+a}))},Mu=function(e){var r=e.match(/^(PT)?(\d{9})$/);if(!r)return!1;var a=r[2],n=11-xu.reverseMultiplyAndSum(a.split("").slice(0,8).map(function(i){return parseInt(i,10)}),9)%11;return n>9?parseInt(a[8],10)===0:n===parseInt(a[8],10)},hi=Yt.vatMatchers={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:Mu,RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:Ou,BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{12}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:Iu,TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};function Ru(t,e){if((0,pi.default)(t),(0,pi.default)(e),e in hi)return hi[e](t);throw new Error("Invalid country code: '".concat(e,"'"))}(function(t,e){function r(re){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},r(re)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=M(Vn),n=M(Ki),i=M(Ss),o=M(As),s=M($s),l=M(ks),u=M(Ds),d=M(Yi),c=M(Es),_=M(xs),D=M(_r),O=M(ws),g=M(Zn),v=M(Ji),$=M(Cs),S=M(Os),A=M(Is),k=M(Ms),B=ft(Zt),T=ft(Ht),P=M(Ns),U=M(Us),V=M(Vs),K=M(Zs),j=M(Hs),ge=M(Gs),ce=M(zs),pe=M($t),se=M(kt),m=M(el),h=M(tl),b=M(al),E=M(nl),F=M(Hn),w=ft(At),H=M(ol),q=M(Xi),Y=M(sl),de=M(ll),le=M(ul),fe=M(cl),Ar=M(dl),$r=M(fl),Xt=ft(Gt),kr=M(Al),Dr=M($l),Ie=M(kl),Me=M(Dl),Qt=M(El),ct=M(xl),Er=M(wl),f=M(qi),p=M(Cl),y=M(Ol),I=M(Il),C=M(Ml),L=M(Rl),Z=M(eo),W=M(Fl),J=M(Ll),te=M(Bl),Xe=M(Pl),Ze=M(Tl),Le=M(Nl),Ct=M(Gl),Ot=ft(zt),Qe=M(ql),dt=M(Yl),jt=M(Jl),ri=Kt,Zo=M(tu),Ho=M(ru),Go=M(au),zo=M(Dt),Ko=M(nu),Wo=M(Wt),qo=M(lu),Yo=M(uu),Jo=M(ji),Xo=M(cu),Qo=M(du),jo=M(fu),es=M(pu),ts=M(hu),ai=ft(qt),rs=M(no),as=M(ao),ns=M(io),is=M(bu),os=M(mu),ss=M(yu),ls=M(Su),us=M(oo),cs=M(Au),ds=M($u),fs=M(ku),ps=M(Du),hs=M(Eu),vs=M(Yt);function ni(re){if(typeof WeakMap!="function")return null;var Be=new WeakMap,je=new WeakMap;return(ni=function(xr){return xr?je:Be})(re)}function ft(re,Be){if(re&&re.__esModule)return re;if(re===null||r(re)!="object"&&typeof re!="function")return{default:re};var je=ni(Be);if(je&&je.has(re))return je.get(re);var pt={__proto__:null},xr=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ht in re)if(ht!=="default"&&{}.hasOwnProperty.call(re,ht)){var er=xr?Object.getOwnPropertyDescriptor(re,ht):null;er&&(er.get||er.set)?Object.defineProperty(pt,ht,er):pt[ht]=re[ht]}return pt.default=re,je&&je.set(re,pt),pt}function M(re){return re&&re.__esModule?re:{default:re}}var gs="13.12.0",_s={version:gs,toDate:a.default,toFloat:n.default,toInt:i.default,toBoolean:o.default,equals:s.default,contains:l.default,matches:u.default,isEmail:d.default,isURL:c.default,isMACAddress:_.default,isIP:D.default,isIPRange:O.default,isFQDN:g.default,isBoolean:S.default,isIBAN:Xt.default,isBIC:kr.default,isAbaRouting:k.default,isAlpha:B.default,isAlphaLocales:B.locales,isAlphanumeric:T.default,isAlphanumericLocales:T.locales,isNumeric:P.default,isPassportNumber:U.default,isPort:V.default,isLowercase:K.default,isUppercase:j.default,isAscii:ce.default,isFullWidth:pe.default,isHalfWidth:se.default,isVariableWidth:m.default,isMultibyte:h.default,isSemVer:b.default,isSurrogatePair:E.default,isInt:F.default,isIMEI:ge.default,isFloat:w.default,isFloatLocales:w.locales,isDecimal:H.default,isHexadecimal:q.default,isOctal:Y.default,isDivisibleBy:de.default,isHexColor:le.default,isRgbColor:fe.default,isHSL:Ar.default,isISRC:$r.default,isMD5:Dr.default,isHash:Ie.default,isJWT:Me.default,isJSON:Qt.default,isEmpty:ct.default,isLength:Er.default,isLocale:A.default,isByteLength:f.default,isUUID:p.default,isMongoId:y.default,isAfter:I.default,isBefore:C.default,isIn:L.default,isLuhnNumber:Z.default,isCreditCard:W.default,isIdentityCard:J.default,isEAN:te.default,isISIN:Xe.default,isISBN:Ze.default,isISSN:Le.default,isMobilePhone:Ot.default,isMobilePhoneLocales:Ot.locales,isPostalCode:ai.default,isPostalCodeLocales:ai.locales,isEthereumAddress:Qe.default,isCurrency:dt.default,isBtcAddress:jt.default,isISO6346:ri.isISO6346,isFreightContainerID:ri.isFreightContainerID,isISO6391:Zo.default,isISO8601:Ho.default,isRFC3339:Go.default,isISO31661Alpha2:zo.default,isISO31661Alpha3:Ko.default,isISO4217:Wo.default,isBase32:qo.default,isBase58:Yo.default,isBase64:Jo.default,isDataURI:Xo.default,isMagnetURI:Qo.default,isMailtoURI:jo.default,isMimeType:es.default,isLatLong:ts.default,ltrim:rs.default,rtrim:as.default,trim:ns.default,escape:is.default,unescape:os.default,stripLow:ss.default,whitelist:ls.default,blacklist:us.default,isWhitelisted:cs.default,normalizeEmail:ds.default,toString,isSlug:fs.default,isStrongPassword:hs.default,isTaxID:Ct.default,isDate:v.default,isTime:$.default,isLicensePlate:ps.default,isVAT:vs.default,ibanLocales:Xt.locales};e.default=_s,t.exports=e.default,t.exports.default=e.default})(Pr,Pr.exports);var Fu=Pr.exports;const N=Hi(Fu),br=/^(\d{2})(\.|-)(\d{2})(\.|-)(\d{4})$/,Lu=new RegExp("^((0[1-9])|(1[0-2]))[.](([1-2][0-9][0-9][0-9]))$","i"),Bu=/^(\d{4})(\.|-)(\d{2})(\.|-)(\d{2})$/,lo=new RegExp("^[1-9]{1}[0-9]*$","i"),Pu=new RegExp("^[0-9]*$","i"),Tu=new RegExp("^([0-9 \\/+-]+)$"),Nu=new RegExp("^(?![\\d])[^()\\[\\]{}\\\\*/@:;^~$€%&=+!?#.,§<>|_¥£´`·]*$"),Uu=new RegExp("^[0-9]*$"),Vu=/^\d{8}[A-Za-z]\d{3}/,Zu=/^[a-zA-Z]\d{9}$/,Hu=/^([A-Za-z]{2})(\d{2})([A-Za-z\d]+)$/,Gu={AL:/^AL(\d{2})(\d{8})([A-Za-z0-9]{16})$/,DZ:/^DZ(\d{2})(\d{20})$/,AD:/^AD(\d{2})(\d{4})(\d{4})([A-Za-z0-9]{12})$/,AO:/^AO(\d{2})(\d{21})$/,AT:/^AT(\d{2})(\d{5})(\d{11})$/,AZ:/^AZ(\d{2})([A-Z]{4})([A-Za-z0-9]{20})$/,BH:/^BH(\d{2})([A-Z]{4})([A-Za-z0-9]{14})$/,BE:/^BE(\d{2})(\d{3})(\d{7})(\d{2})$/,BJ:/^BJ(\d{2})([A-Z]{1}[0-9]{23})$/,BA:/^BA(\d{2})(\d{3})(\d{3})(\d{8})(\d{2})$/,BR:/^BR(\d{2})(\d{8})(\d{5})(\d{10})([A-Z]{1})([A-Za-z0-9]{1})$/,VG:/^VG(\d{2})([A-Z]{4})(\d{16})$/,BG:/^BG(\d{2})([A-Z]{4})(\d{4})(\d{2})([A-Za-z0-9]{8})$/,BF:/^BF(\d{2})(\d{23})$/,BI:/^BI(\d{2})(\d{12})$/,BY:/^BY(\d{2})([A-Za-z0-9]{4})(\d{4})([A-Za-z0-9]{16})$/,CM:/^CM(\d{2})(\d{23})$/,CV:/^CV(\d{2})(\d{21})$/,CF:/^CF(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,TD:/^TD(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,KM:/^KM(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,CG:/^CG(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,CR:/^CR(\d{2})(\d{4})(\d{14})$/,CI:/^CI(\d{2})([A-Z]{1})(\d{23})$/,HR:/^HR(\d{2})(\d{7})(\d{10})$/,CY:/^CY(\d{2})(\d{3})(\d{5})([A-Za-z0-9]{16})$/,CZ:/^CZ(\d{2})(\d{4})(\d{6})(\d{10})$/,DK:/^DK(\d{2})(\d{4})(\d{9})(\d{1})$/,FO:/^FO(\d{2})(\d{4})(\d{9})(\d{1})$/,GL:/^GL(\d{2})(\d{4})(\d{9})(\d{1})$/,DJ:/^DJ(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,DO:/^DO(\d{2})([A-Za-z0-9]{4})(\d{20})$/,EG:/^EG(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,SV:/^SV(\d{2})([A-Za-z0-9]{4})(\d{20})$/,GQ:/^GQ(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,EE:/^EE(\d{2})(\d{2})(\d{2})(\d{11})(\d{1})$/,FI:/^FI(\d{2})(\d{6})(\d{7})(\d{1})$/,AX:/^AX(\d{2})(\d{6})(\d{7})(\d{1})$/,FR:/^FR(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,GF:/^GF(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,PF:/^PF(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,TF:/^TF(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,GP:/^GP(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,MQ:/^MQ(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,YT:/^YT(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,NC:/^NC(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,RE:/^RE(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,BL:/^BL(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,MF:/^MF(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,PM:/^PM(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,WF:/^WF(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,GA:/^GA(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,GE:/^GE(\d{2})([A-Z]{2})(\d{16})$/,DE:/^DE(\d{2})(\d{8})(\d{10})$/,GI:/^GI(\d{2})([A-Z]{4})([A-Za-z0-9]{15})$/,GR:/^GR(\d{2})(\d{3})(\d{4})([A-Za-z0-9]{16})$/,GT:/^GT(\d{2})([A-Za-z0-9]{4})([A-Za-z0-9]{20})$/,GW:/^GW(\d{2})([A-Za-z0-9]{2}\d{2})(\d{4})(\d{11})(\d{2})$/,HN:/^HN(\d{2})([A-Za-z]{4})(\d{20})$/,HU:/^HU(\d{2})(\d{3})(\d{4})(\d{1})(\d{15})(\d{1})$/,IS:/^IS(\d{2})(\d{4})(\d{2})(\d{6})(\d{10})$/,AA:/^AA(\d{2})([A-Z0-9]{12})$/,IR:/^IR(\d{2})(\d{22})$/,IQ:/^IQ(\d{2})([A-Za-z]{4})(\d{3})(\d{12})$/,IE:/^IE(\d{2})([A-Z]{4})(\d{6})(\d{8})$/,IL:/^IL(\d{2})(\d{3})(\d{3})(\d{13})$/,IT:/^IT(\d{2})([A-Z]{1})(\d{5})(\d{5})([A-Za-z0-9]{12})$/,JO:/^JO(\d{2})([A-Z]{4})(\d{4})([A-Za-z0-9]{18})$/,KZ:/^KZ(\d{2})(\d{3})([A-Za-z0-9]{13})$/,XK:/^XK(\d{2})(\d{4})(\d{10})(\d{2})$/,KW:/^KW(\d{2})([A-Z]{4})([A-Za-z0-9]{22})$/,LV:/^LV(\d{2})([A-Z]{4})([A-Za-z0-9]{13})$/,LB:/^LB(\d{2})(\d{4})([A-Za-z0-9]{20})$/,LI:/^LI(\d{2})(\d{5})([A-Za-z0-9]{12})$/,LT:/^LT(\d{2})(\d{5})(\d{11})$/,LU:/^LU(\d{2})(\d{3})([A-Za-z0-9]{13})$/,MK:/^MK(\d{2})(\d{3})([A-Za-z0-9]{10})(\d{2})$/,MG:/^MG(\d{2})(\d{23})$/,ML:/^ML(\d{2})([A-Z]{1})(\d{23})$/,MT:/^MT(\d{2})([A-Z]{4})(\d{5})([A-Za-z0-9]{18})$/,MR:/^MR(\d{2})(\d{5})(\d{5})(\d{11})(\d{2})$/,MU:/^MU(\d{2})([A-Z]{4})(\d{2})(\d{2})(\d{12})(\d{3})([A-Z]{3})$/,MD:/^MD(\d{2})([A-Za-z0-9]{20})$/,MC:/^MC(\d{2})(\d{5})(\d{5})([A-Za-z0-9]{11})(\d{2})$/,ME:/^ME(\d{2})(\d{3})(\d{13})(\d{2})$/,MA:/^MA(\d{2})(\d{3})(\d{5})(\d{14})(\d{2})$/,MZ:/^MZ(\d{2})(\d{21})$/,NL:/^NL(\d{2})([A-Z]{4})(\d{10})$/,NI:/^NI(\d{2})([A-Za-z]{4})(\d{24})$/,NE:/^NE(\d{2})([A-Za-z]{2}\d{3})(\d{5})(\d{12})(\d{2})$/,NO:/^NO(\d{2})(\d{4})(\d{6})(\d{1})$/,PK:/^PK(\d{2})([A-Z]{4})([A-Za-z0-9]{16})$/,PS:/^PS(\d{2})([A-Z]{4})([A-Za-z0-9]{21})$/,PL:/^PL(\d{2})(\d{8})(\d{1,16})$/,PT:/^PT(\d{2})(\d{4})(\d{4})(\d{11})(\d{2})$/,QA:/^QA(\d{2})([A-Z]{4})(\d{4})([A-Za-z0-9]{17})$/,RO:/^RO(\d{2})([A-Z]{4})([A-Za-z0-9]{16})$/,LC:/^LC(\d{2})([A-Z]{4})([A-Za-z0-9]{24})$/,SM:/^SM(\d{2})([A-Z]{1})(\d{5})(\d{5})([A-Za-z0-9]{12})$/,ST:/^ST(\d{2})(\d{8})(\d{11})(\d{2})$/,SA:/^SA(\d{2})(\d{2})([A-Za-z0-9]{18})$/,SN:/^SN(\d{2})([A-Z]{1})(\d{23})$/,RS:/^RS(\d{2})(\d{3})(\d{13})(\d{2})$/,SC:/^SC(\d{2})([A-Z]{4})(\d{2})(\d{2})(\d{16})([A-Z]{3})$/,SK:/^SK(\d{2})(\d{4})(\d{6})(\d{10})$/,SI:/^SI(\d{2})(\d{5})(\d{8})(\d{2})$/,ES:/^ES(\d{2})(\d{4})(\d{4})(\d{1})(\d{1})(\d{10})$/,SE:/^SE(\d{2})(\d{3})(\d{16})(\d{1})$/,CH:/^CH(\d{2})(\d{5})([A-Za-z0-9]{12})$/,TL:/^TL(\d{2})(\d{3})(\d{14})(\d{2})$/,TG:/^TG(\d{2})([A-Za-z]{2}\d{3})(\d{5})(\d{12})(\d{2})$/,TN:/^TN(\d{2})(\d{2})(\d{3})(\d{13})(\d{2})$/,TR:/^TR(\d{2})(\d{5})(\d{1})([A-Za-z0-9]{16})$/,UA:/^UA(\d{2})(\d{6})([A-Za-z0-9]{19})$/,AE:/^AE(\d{2})(\d{3})(\d{16})$/,GB:/^GB(\d{2})([A-Z]{4})(\d{6})(\d{8})$/},zu={AL:28,DZ:24,AD:24,AO:25,AT:20,AZ:28,BH:22,BE:16,BJ:28,BA:20,BR:29,VG:24,BG:22,BF:27,BI:16,BY:28,CM:27,CV:25,CF:27,TD:27,KM:27,CG:27,CR:22,CI:28,HR:21,CY:28,CZ:24,DK:18,FO:18,GL:18,DJ:27,DO:28,EG:27,SV:28,GQ:27,EE:20,FI:18,AX:18,FR:27,GF:27,PF:27,TF:27,GP:27,MQ:27,YT:27,NC:27,RE:27,BL:27,MF:27,PM:27,WF:27,GA:27,GE:22,DE:22,GI:23,GR:27,GT:28,GW:25,HN:28,HU:28,IS:26,AA:16,IR:26,IQ:23,IE:22,IL:23,IT:27,JO:30,KZ:20,XK:20,KW:30,LV:21,LB:28,LI:21,LT:20,LU:20,MK:19,MG:27,ML:28,MT:31,MR:27,MU:30,MD:24,MC:27,ME:22,MA:28,MZ:25,NL:18,NI:32,NE:28,NO:15,PK:24,PS:29,PL:28,PT:25,QA:29,RO:24,LC:32,SM:27,ST:25,SA:24,SN:28,RS:22,SC:31,SK:24,SI:19,ES:24,SE:24,CH:21,TL:23,TG:28,TN:24,TR:26,UA:29,AE:23,GB:22},Ku=new RegExp("^[0-9]{4,5}$","i"),Wu=new RegExp(`^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_\`{\\|}~]|[ -퟿豈-﷏ﷰ-￯])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_\`{\\|}~]|[ -퟿豈-﷏ﷰ-￯])+)*)|((")(((( |	)*(\r
))?( |	)+)?(([-\b\v\f-]|!|[#-[]|[]-~]|[ -퟿豈-﷏ﷰ-￯])|(\\\\([-	\v\f\r-]|[ -퟿豈-﷏ﷰ-￯]))))*((( |	)*(\r
))?( |	)+)?(")))@((([a-z]|\\d|[ -퟿豈-﷏ﷰ-￯])|(([a-z]|\\d|[ -퟿豈-﷏ﷰ-￯])([a-z]|\\d|-|\\.|_|~|[ -퟿豈-﷏ﷰ-￯])*([a-z]|\\d|[ -퟿豈-﷏ﷰ-￯])))\\.)+(([a-z]|[ -퟿豈-﷏ﷰ-￯])|(([a-z]|[ -퟿豈-﷏ﷰ-￯])([a-z]|\\d|-|\\.|_|~|[ -퟿豈-﷏ﷰ-￯])*([a-z]|[ -퟿豈-﷏ﷰ-￯])))\\.?$`),qu=new RegExp('.*^(?=^.{8,32}$)(?=(?:.*?[\\\\§\\/!@#$%*\\[\\]<>()"_=+^&}{:;,°~?.-]){1})(?=(?:.*?[0-9]){1})(?=(?:.*?[a-zäöüß]){1})(?=(?:.*?[A-ZÄÖÜ]){1}).*$'),Yu=new RegExp("^.{10,12}$","i"),Ju=new RegExp(/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i),Xu=t=>t.match(br),mr=()=>new Date(new Date().setHours(0,0,0,0)),He=t=>{const e=t.match(br);if(e){const r=parseInt(e[1]),a=parseInt(e[3]),n=parseInt(e[5]);return new Date(n,a-1,r)}return null},Qu=t=>{const e=t.split(""),r=e.reduce((a,n,i)=>{if(i<a.offset+7)return{...a,checksumString:`${a.checksumString}${n}`};const o=parseInt(a.checksumString,10)%97;return{...a,checksum:o,checksumString:`${o}${e[i]}`,offset:a.offset+7}},{checksum:0,checksumString:"",offset:2});return parseInt(r.checksumString,10)%97},G=t=>typeof TYPO3<"u"?TYPO3.lang[t]:"invalid",lt={isValid:t=>!N.isEmpty(t.trim()),getErrorMessage:()=>G("JsValidationCheckRequired")},vi={isValid:(t,e)=>{if(typeof e>"u")return!0;const r=Array.from(e.querySelectorAll("sbk-checkbox"));return globalThis.isSingleCheckbox=r.length===1,(r&&r.filter(n=>n.checked&&n)).length>0},getErrorMessage:()=>globalThis.isSingleCheckbox?G("JsValidationCheckRequired"):G("JsValidationCheckRequiredOption")},ju={isValid:t=>N.isEmpty(t.trim())?!0:N.isEmail(t),getErrorMessage:()=>G("JsValidationCheckEmail")},ec={isValid:t=>N.isEmpty(t.trim())?!0:N.isNumeric(t,{no_symbols:!0})&&N.isLength(t,{min:4,max:4}),getErrorMessage:()=>G("JsValidationCheckForYear")},tc={isValid:t=>N.isEmpty(t.trim())?!0:N.isNumeric(t,{no_symbols:!0})&&N.isLength(t,{min:2,max:2})&&N.isInt(t,{min:1,max:12}),getErrorMessage:()=>G("JsValidationCheckForMonth")},rc={isValid:(t,e,r)=>{const a=new Date(r,e,0).getDate();return N.isEmpty(t.trim())?!0:N.isNumeric(t,{no_symbols:!0})&&N.isLength(t,{min:2,max:2})&&N.isInt(t,{min:1,max:a})},getErrorMessage:()=>G("JsValidationCheckForDay")},De={isValid:t=>{if(N.isEmpty(t.trim()))return!0;const r=N.contains(t,".")?t.split(".").reverse().join("-"):t,a=r.split("-");if(!a[0]||!a[1]||!a[2])return!1;if(!N.isNumeric(a[0])||!N.isNumeric(a[1])||!N.isNumeric(a[2]))return!1;const n=a[0],i=ec.isValid(n),o=a[1],s=tc.isValid(o),l=a[2],u=rc.isValid(l,parseInt(o),parseInt(n));return N.toDate(r)!==null&&i&&s&&u},getErrorMessage:()=>G("JsValidationCheckDate")},ac={isValid:t=>{const e=new Date().getFullYear(),n=(N.contains(t,".")?t.split(".").reverse().join("-"):t).split("-"),i=parseInt(n[0]);return e-i<=120},getErrorMessage:()=>G("JsValidationCheckBirthdayPast")},nc={isValid:t=>{const a=(N.contains(t,".")?t.split(".").reverse().join("-"):t).split("-"),n=parseInt(a[2]),i=parseInt(a[1]),o=parseInt(a[0]),s=new Date(new Date().setHours(0,0,0,0)),l=new Date(o,i-1,n,0,0,0);return s.getTime()>=l.getTime()},getErrorMessage:()=>G("JsValidationCheckBirthdayFuture")},et={isValid:t=>{if(N.isEmpty(t.trim())||!De.isValid(t))return!0;const r=N.contains(t,".")?t.split(".").reverse().join("-"):t,a=ac.isValid(r),n=nc.isValid(r);return et.args={isValidBirthdayPast:a,isValidBirthdayFuture:n},a&&n},getErrorMessage:()=>et.args&&!et.args.isValidBirthdayPast?G("JsValidationCheckBirthdayPast"):et.args&&!et.args.isValidBirthdayFuture?G("JsValidationCheckBirthdayFuture"):G("JsValidationCheckBirthday")},uo={isValid:(t,e)=>{if(N.isEmpty(t.trim())||!De.isValid(t))return!0;const a=N.contains(t,".")?t.split(".").reverse().join("-"):t,i=e.closest("sbk-datepicker").className.match(/\d+/);if(i===null)return!0;const o=parseInt(i[0]),s=new Date;return s.setFullYear(s.getFullYear()-o),N.isAfter(a,s.toString())},getErrorMessage:()=>G("JsValidationCheckBirthdayYounger25Years")},ic={isValid:t=>{if(N.isEmpty(t.trim()))return!0;if(isNaN(parseInt(t))||parseInt(t)<0)return!1;const e=parseFloat(t);return(e|0)===e},getErrorMessage:()=>G("JsValidationCheckNumber")},oc={isValid:t=>N.isEmpty(t.trim())?!0:!!t.match(Uu),getErrorMessage:()=>G("validator.numeric.notvalid")},sc={isValid:t=>N.isEmpty(t.trim())?!0:N.isCurrency(t,{decimal_separator:",",thousands_separator:".",allow_negatives:!1}),getErrorMessage:()=>G("JsValidationCheckCurrency")},co={isValid:t=>{if(N.isEmpty(t.trim()))return!0;if(!De.isValid(t))return!1;const r=mr(),a=He(t);if(globalThis.isFutureDate=En.isValid(t),!globalThis.isFutureDate)return!1;const i=new Date().getHours();return!a||a.getTime()===r.getTime()&&i>=17?!1:!(a.getDay()===6||a.getDay()===0)},getErrorMessage:()=>globalThis.isFutureDate?G("JsValidationCheckWeekday"):En.getErrorMessage()},lc={isValid:(t,e)=>{if(N.isEmpty(t.trim()))return!0;if(!De.isValid(t)||!co.isValid(t)||(globalThis.isNationalHoliday=!gi.isValid(t,e),globalThis.isNationalHoliday))return!1;const a=mr(),n=He(t);return!!n&&n.getTime()<=a.getTime()+52704e5},getErrorMessage:()=>globalThis.isNationalHoliday?gi.getErrorMessage():G("JsValidationCheckCallBackDay")},uc={isValid:t=>{if(N.isEmpty(t.trim()))return!0;const e=t.trim().toUpperCase().replace(/\s+/g,""),r=e.match(Hu);if(!r)return!1;const a=r[1],n=r[2],i=r[3];if(e.length!==zu[a]||!e.match(Gu[a]))return!1;const o=`${i}${a}${n}`.replace(/[A-Z]/g,l=>(l.charCodeAt(0)-55).toString());return Qu(o)===1},getErrorMessage:()=>G("iban.error.validation")},cc={isValid:t=>{if(N.isEmpty(t.trim()))return!0;const e=t.trim().toUpperCase();return Zu.test(e)},getErrorMessage:()=>G("kvnr.error.validation")},dc={isValid:t=>N.isEmpty(t.trim())?!0:lo.test(t)?t.length<5:!1,getErrorMessage:()=>G("JsValidationCheckPhoneArea")},fc={isValid:t=>N.isEmpty(t.trim())?!0:lo.test(t)?(globalThis.isPhoneAreaCodeTooLong=!0,t.length<=5):(globalThis.isPhoneAreaCodeTooLong=!1,!1),getErrorMessage:()=>globalThis.isPhoneAreaCodeTooLong?G("JsValidationPhoneAreaCodeLength"):G("JsValidationCheckPhoneAreaCode")},pc={isValid:t=>N.isEmpty(t.trim())?!0:Pu.test(t),getErrorMessage:()=>G("JsValidationCheckPhoneNumber")},hc={isValid:t=>N.isEmpty(t.trim())?!0:Tu.test(t),getErrorMessage:()=>G("validator.telephoneNumber.notvalid")},vc={isValid:t=>N.isEmpty(t.trim())?!0:Vu.test(t)?!(t.length!==0&&t.length!==12):!1,getErrorMessage:()=>G("JsValidationCheckPensionInsuranceNumberVpt")},gc={isValid:t=>{if(N.isEmpty(t.trim())||!Xu(t)||!De.isValid(t))return!1;const e=t.split(br),r=parseInt(e[5]),a=parseInt(e[3]),n=parseInt(e[1]),i=new Date;i.setDate(i.getDate()-6),i.setFullYear(i.getFullYear()-1);const o=new Date;o.setFullYear(o.getFullYear()+1);const s=new Date(`${n} ${a} ${r}`);return i.getTime()>s.getTime()?!1:!(o.getTime()<s.getTime())},getErrorMessage:()=>G("JsValidationCheckBonusprogrammDate")},_c={isValid:t=>N.isEmpty(t.trim())?!0:isNaN(parseInt(t))||parseInt(t)<0?!1:parseInt(t)<40,getErrorMessage:()=>G("JsValidationCheckNumberOgs")},bc={isValid:t=>N.isEmpty(t.trim())?!0:Ku.test(t.trim()),getErrorMessage:()=>G("postleitzahl.error.validation")},fo={isValid:t=>{if(N.isEmpty(t.trim()))return!0;if(!De.isValid(t))return!1;const e=t.split(br),r=parseInt(e[1]),a=parseInt(e[3]),n=parseInt(e[5]),i=new Date(n,a-1,r),o=new Date,s=new Date;return o.setFullYear(o.getFullYear()-120),s.setFullYear(s.getFullYear()-15),!(i.getDate()!==r||i.getMonth()!==a-1||i.getFullYear()!==n||i<o||s<i)},getErrorMessage:()=>G("geburtsdatum.error.validation")},mc={isValid:t=>N.isEmpty(t.trim())?!0:Yu.test(t.trim()),getErrorMessage:()=>G("versichertennummer.error.validation")},yc={isValid:t=>N.isEmpty(t.trim())?!0:qu.test(t),getErrorMessage:()=>G("passwortNeu.error.validation")},Sc={isValid:t=>N.isEmpty(t.trim())?!0:Wu.test(t.trim().toLowerCase()),getErrorMessage:()=>G("JsValidationCheckEmail")},En={isValid:t=>{if(N.isEmpty(t.trim())||!De.isValid(t))return!0;const e=mr(),r=He(t);return!!r&&e.getTime()<=r.getTime()},getErrorMessage:()=>G("JsValidationCheckFutureDate")},Ac={isValid:t=>{if(N.isEmpty(t.trim()))return!0;if(!De.isValid(t))return!1;const e=mr(),r=He(t);return!!r&&r.getTime()<=e.getTime()},getErrorMessage:()=>G("JsValidationCheckPastDate")},$c={isValid:t=>N.isEmpty(t.trim())?!0:Lu.test(t),getErrorMessage:()=>G("JsValidationCheckForMonthYear")},sr={isValid:(t,e)=>{if(typeof e>"u")return!0;const r=e.className.match(/\d{1}/);if(r===null)return!0;const a=parseInt(r[0]);sr.args={minCheckboxes:a};const n=Array.from(e.querySelectorAll("sbk-checkbox"));return(n&&n.filter(o=>o.checked&&o)).length>=a},getErrorMessage:()=>{let t;return typeof sr.args<"u"&&(t=sr.args.minCheckboxes),typeof TYPO3<"u"?TYPO3.lang.JsValidationMinCheckboxBegin+t+TYPO3.lang.JsValidationMinCheckboxEnd:"min "+t}},kc={isValid:t=>N.isEmpty(t.trim())?!0:Ju.test(t.trim()),getErrorMessage:()=>G("JsValidationCheckUrl")},gi={isValid:(t,e)=>{if(N.isEmpty(t.trim())||!De.isValid(t))return!0;if(e){const r=e.getAttribute("data-holidays");if(r){const a=r.split("|"),n=He(t);if(n){const i=Math.floor(n.getTime()/1e3);return!a.includes(String(i))}}}return!0},getErrorMessage:()=>G("JsValidationCheckHoliday")},po={isValid:(t,e)=>{var D;if(N.isEmpty(t.trim())||!De.isValid(t))return!0;const r=e.getAttribute("data-date-plausibility-comparison-field"),a=(D=e.closest("form"))==null?void 0:D.querySelector(`[id$='${r}']`),n=e.getAttribute("data-date-plausibility-comparison-operator"),i=parseInt(e.getAttribute("data-date-plausibility-comparison-delta")??""),s=(a==null?void 0:a.datepickerValue).split(Bu),l=s[5],u=s[3],d=s[1],c=He(t),_=He(l+"."+u+"."+d);if(globalThis.DatePlausibilityValidator={comparisonDelta:i,comparisonOperator:n},!isNaN(i)&&i!==0&&(_==null||_.setDate(_.getDate()+i)),c&&_)switch(n){case"greaterThan":return c.getTime()>=_.getTime();case"lessThan":return c.getTime()<=_.getTime();case"equals":return c.getTime()==_.getTime()}return!0},getErrorMessage:()=>{const t=globalThis.DatePlausibilityValidator.comparisonDelta,e=Math.abs(t),r=e===1?TYPO3.lang["JsValidationCheckDatePlausibility.Day"]:TYPO3.lang["JsValidationCheckDatePlausibility.Days"],a=globalThis.DatePlausibilityValidator.comparisonOperator;let n;if(a==="equals")n=TYPO3.lang["JsValidationCheckDatePlausibility.NotEqual"],n=n.replace("%d",e+1),n=n.replace("%s",r);else if(n=TYPO3.lang.JsValidationCheckDatePlausibility,isNaN(e)||e===0)n=n.replace("%s",a==="lessThan"?TYPO3.lang["JsValidationCheckDatePlausibility.Before"]:TYPO3.lang["JsValidationCheckDatePlausibility.After"]);else{let i=TYPO3.lang["JsValidationCheckDatePlausibility.AtLeast"];a==="lessThan"&&t>0&&(i=TYPO3.lang["JsValidationCheckDatePlausibility.NotMore"]),a==="greaterThan"&&t<0&&(i=TYPO3.lang["JsValidationCheckDatePlausibility.NotMore"]),i=i.replace("%d",String(e)),i=i.replace("%s",r),i=i.replace("%s",t<0?TYPO3.lang["JsValidationCheckDatePlausibility.Before"]:TYPO3.lang["JsValidationCheckDatePlausibility.After"]),n=n.replace("%s",i)}return n}},_i={isValid:(t,e)=>{if(typeof e>"u")return!0;const r=Array.from(e.querySelectorAll("sbk-radio"));return(r&&r.filter(n=>n.checked&&n)).length===1},getErrorMessage:()=>G("JsValidationCheckRequiredOption")},Dc={isValid:(t,e)=>{const r=t.replace(",","."),a=e.nextElementSibling;if(N.isEmpty(t))return!0;if(+r<0||+r>48)return!1;let n="validate[minCheckbox[1]]";switch(!0){case+r>30:n="validate[minCheckbox[4]]";break;case+r>20:n="validate[minCheckbox[3]]";break;case+r>10:n="validate[minCheckbox[2]]";break}if(a){const i=a.classList;for(let o=0;o<i.length;o++)i[o].indexOf("validate[")>=0&&a.classList.remove(a.classList[o]);a.classList.add(n),a._checkValidity()}return!0},getErrorMessage:()=>TYPO3.lang.JsValidationCheckMaxWeeklyWorkHoursWst},Ec={isValid:(t,e)=>{Array.from(e.querySelectorAll("sbk-radio")).forEach(i=>{i.checked&&(t=i.value)});const a=parseInt(t.split("#")[0]);let n=t.split("#")[1];if(+a==1?n="325":+a==2?n=t.split("#")[1]:+a==4&&(n=t.split("#")[2]),+a!=3){const i=document.querySelector(`#${e.getAttribute("data-field-from")}`),o=document.querySelector(`#${e.getAttribute("data-field-to")}`),s=document.querySelector(`#${e.getAttribute("data-field-workhours")}`),l=document.querySelector("#birthDate");if(!i||!o||!s||!l)return!1;const u=i.datepickerValue.split("."),d=Math.floor(new Date(`${u[1]}/${u[0]}/${u[2]} 00:00:00`).getTime()/1e3),c=o.datepickerValue.split("."),_=Math.floor(new Date(`${c[1]}/${c[0]}/${c[2]} 00:00:00`).getTime()/1e3),D=(_-d)/(7*24*60*60)>=4?4:(_-d)/(7*24*60*60),g=+n/D/+s.value,v=l.datepickerValue.includes("-")?l.datepickerValue.split("-"):l.datepickerValue.split("."),$=new Date(+v[0],+v[1]-1,+v[2]),A=Math.floor((new Date().getTime()-$.getTime())/(365.25*24*60*60*1e3)),k={first:Math.floor(new Date("2021/01/01 00:00:00").getTime()/1e3),second:Math.floor(new Date("2021/07/01 00:00:00").getTime()/1e3),third:Math.floor(new Date("2022/01/01 00:00:00").getTime()/1e3),fourth:Math.floor(new Date("2022/07/01 00:00:00").getTime()/1e3)};let B=9.19;return d>=k.fourth?B=10.45:d>=k.third?B=9.82:d>=k.second?B=9.6:d>=k.first&&(B=9.5),A>18&&g>B}return!0},getErrorMessage:()=>TYPO3.lang.JsValidationCheckMinimumWage},xc={isValid:t=>N.isEmpty(t)?!0:/^(19|20)\d{2}$/.test(t),getErrorMessage:()=>G("JsValidationCheckForYear")},wc={isValid:(t,e)=>e.files.length>0,getErrorMessage:()=>G("JsValidationCheckRequired")},Cc={isValid:t=>{if(N.isEmpty(t))return!0;const e=t.match(/^(\d{2})(\.|-)(\d{2})(\.|-)(\d{4})$/);if(e===null)return!1;const r=+e[1],a=+e[3],n=+e[5];if(a<1||a>12)return!1;if(r<1||r>31)return!1;if((a==4||a==6||a==9||a==11)&&r==31)return!1;if(a==2){const c=n%4==0&&(n%100!=0||n%400==0);if(r>29||r==29&&!c)return!1}const i=15,o=new Date,s=new Date(o.setFullYear(n,a-1,r-1)),l=Date.now(),d=new Date().setFullYear(s.getFullYear()+i,a-1,r-1);if(l-d<=0){let c="";const _=window.isSelfService,D=window.isLanguage;return typeof _<"u"?D==="de"?c="https://werkstudenten.sbk.org/selfservice-hinweis/":c="https://werkstudenten.sbk.org/en/selfservice-note/":D==="de"?c="https://werkstudenten.sbk.org/pdf-formular/":c="https://werkstudenten.sbk.org/en/pdf-formular/",globalThis.BirthdayWstUri=c,globalThis.isBirthday15=!0,!1}return!0},getErrorMessage:()=>globalThis.isBirthday15?TYPO3.lang.JsValidationCheckBirthdayWst15+'<sbk-link variant="regular" href="'+globalThis.BirthdayWstUri+'" title="" >'+TYPO3.lang.JsValidationCheckBirthdayWst15ToAssessmentSheet+"</sbk-link>":G("JsValidationCheckBirthdayWst")},ho={isValid:function(){const t=Array.from(document.querySelectorAll(".nextCareerMove sbk-radio")),e=t.some(n=>n.checked&&n.value==="JA"),r=document.querySelector("#pupilOthers"),a=e||r.value.length>0;return a&&(t.forEach(n=>{n.invalid=!1,n.parentElement.invalid=!1}),r.invalid=!1),a},getErrorMessage:function(){return G("JsValidationCheckNextCareerMoveWst")}},Oc={isValid:(t,e)=>{var u,d,c;if(N.isEmpty(t))return!0;const r=t.split("."),a=new Date(+r[2],+r[1]-1,+r[0]),n=(u=e.closest("sbk-datepicker"))==null?void 0:u.getAttribute("data-from-date-validator-comparison-field"),i=(d=e.closest("form"))==null?void 0:d.querySelector(`#${n}`);if(!i||i.hidden)return!0;const o=(c=i.shadowRoot)==null?void 0:c.querySelector("#input"),s=o==null?void 0:o.value;if(!s)return!0;const l=He(s);return l?+l>=+a:!0},getErrorMessage:()=>G("JsValidationCheckFromDate")},Ic={isValid:(t,e)=>{var u,d,c;if(N.isEmpty(t))return!0;const r=t.split("."),a=new Date(+r[2],+r[1]-1,+r[0]),n=(u=e.closest("sbk-datepicker"))==null?void 0:u.getAttribute("data-to-date-validator-comparison-field"),i=(d=e.closest("form"))==null?void 0:d.querySelector(`#${n}`);if(!i)return!0;const o=(c=i.shadowRoot)==null?void 0:c.querySelector("#input"),s=o==null?void 0:o.value;if(!s||!s)return!0;const l=He(s);return l?+l<=+a:!0},getErrorMessage:()=>G("JsValidationCheckFromDate")},Mc={isValid:(t,e)=>typeof e>"u"?!0:e.querySelector("sbk-checkbox").checked,getErrorMessage:function(){return TYPO3.lang.JsValidationCheckDataAgreement}},Rc={isValid:t=>Nu.test(t),getErrorMessage:()=>G("JsValidationCheckName")},Fc=Fe(`${gr}`),Lc=Fe(`${it}`),We=Ue`
  :host {
    --label__border--focus: var(--_label__border--focus, var(--sbkLabelOnLightFocus));
    --label__color: var(--_label__color, var(--sbkLabelFgColorOnLightDefault));
    --label__color--disabled: var(--_label__color--disabled, var(--sbkLabelFgColorOnLightDisabled));
    --label__color--error: var(--_label__color--error, var(--sbkLabelFgColorOnLightError));
  }
  
  * {
    box-sizing: border-box;
  }
  
  .input__wrapper--error {
    & .label__wrapper {
      color: var(--label__color--error);
    }

    & sbk-button::part(button) {
      background: var(--label__color--error);
    }
  }

  .input__wrapper--disabled {
    & .label__wrapper {
      color: var(--label__color--disabled);
    }

    & sbk-button {
      cursor: not-allowed;
      pointer-events: none;
      
      &::part(button) {
        background: var(--label__color--disabled);
      }
    }
  }

  .label__wrapper {
    align-items: flex-end;
    display: flex;
    gap: var(--sbkLabelSpacing4xs);

    @media all and (max-width: ${Fc}) {
      justify-content: space-between;
    }
    
    .label {
      font: var(--sbkLabelTypographyLabel);
      margin-bottom: var(--sbkInput4xs);

      @media all and (min-width: ${Lc}) {
        font: var(--sbkLabelTypographyLabel);
        margin-bottom: var(--sbkInput3xs);
      }
    }
    
    i {
      font-style: normal;
    }
    
    .input__label-link {
      background: transparent;
      outline: 2px solid transparent;
      outline-offset: var(--sbkLabelBorderGapFocus);
      align-items: center;
      color: inherit;
      margin: 0;
      border: 0;
      padding: 6px;
      width: 36px;
      height: 36px;
      cursor: pointer;

        @media (hover: hover) and (pointer: fine) {
            &:hover {
                color: var(--label__color--error)
            }
        }
      
      &:focus-visible {
        outline: var(--label__border--focus)
      }
      
      .label__text {
        cursor: pointer;
        text-decoration: underline dotted;
        text-underline-offset: 2px;
      }
    }
  }

    .sr-only {
        position: absolute;
        clip: rect(1px, 1px, 1px, 1px);
        padding: 0;
        border: 0;
        height: 1px;
        width: 1px;
        overflow: hidden;
    }
`;var Bc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,we=(t,e,r,a)=>{for(var n=a>1?void 0:a?Pc(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&Bc(e,r,n),n};let he=class extends Ye(Je(nt(ue))){constructor(){super(),this.autocomplete="",this.disabled=!1,this.description="",this.name="",this.placeholder="",this.readonly=!1,this.required=!1,this.size="large",this.type="text",this.inputPattern="",this.value="",this.maxlength=null,this.visible=!0,this.initialType="",this.validatorMapper={required:lt,email:ju,url:kc,validateNumber:ic,validateNumeric:oc,validateCurrency:sc,validateIban:uc,validateKvnr:cc,validatePhoneArea:dc,validatePhoneNumber:pc,validateTelephoneNumber:hc,validatePensionInsuranceNumber:vc,validateNumberOgs:_c,validateZipOgs:bc,validateBirthdayOgs:fo,validateInsuredNumberOgs:mc,validatePasswordOgs:yc,validateEmailOgs:Sc,validatePhoneAreaCode:fc,validateMonthYear:$c,validateBirthdayMaxAge:uo,validateDatePlausibility:po,validateBirthday:et,validateDate:De,validateWeeklyWorkHours:Dc,validateYearVpt:xc,validateBirthdayWst:Cc,validateNextCareerMoveWst:ho,validateName:Rc},this._internals=this.attachInternals(),this.addEventListener("form-control-dependency-show",()=>{this.show(),this.setValue()}),this.addEventListener("form-control-dependency-hide",()=>{this.hide(),this.resetValue()})}connectedCallback(){super.connectedCallback(),this._internals.setFormValue(this.value)}static get styles(){return[We,Vt]}willUpdate(t){t.has("value")&&this._internals.setFormValue(this.value),this.initialType||(this.initialType=this.type)}render(){return z`
            <div class="input__wrapper${this.invalid?" input__wrapper--error":""}${this.disabled||this.readonly?" input__wrapper--disabled":""}">
                ${this.labelTemplate(`${this.name}-input`,!1,this.invalid)}
                <div class="input-container">
                    <input id="${this.name}-input"
                           class="input input--${this.size}"
                           type=${this.type}
                           maxlength=${this.maxlength||""}
                           .value=${this.value}
                           name=${this.name}
                           autocomplete=${this.autocomplete||cr}
                           aria-describedby="${this.name}-annotation"
                           ?disabled=${this.disabled}
                           ?readonly=${this.readonly}
                           ?required=${this.required}
                           placeholder=${this.placeholder}
                           @change=${this._changeValue}
                           @keydown=${this._onKeyDown}
                           @input=${this._input}
                           @blur=${this._validate} />
                    ${this.renderEyeIcon()}
                </div>
                ${ot(this.description&&!this.invalid,()=>z`
                                <sbk-annotation id="${this.name}-annotation" variant="info" ?disabled=${this.disabled||this.readonly}>${Pe(this.description)}</sbk-annotation>
                            `)}
                ${this.invalid?this.validationErrorTemplate(`${this.name}-annotation`):""}
            </div>
        `}_input(t){const e=t.target;this.inputPattern==="decimal"&&(e.value=e.value.replace(/[^0-9.,]/g,""));const r=new CustomEvent("input-input",{detail:{value:e.value},bubbles:!0,composed:!0});this.dispatchEvent(r)}_changeValue(t){const e=t.target;this._internals.setFormValue(e.value),this.value=e.value;const r=new CustomEvent("input-change",{detail:{value:e.value},bubbles:!0,composed:!0});this.dispatchEvent(r)}_validate(t){const e=t.target,r=this.getValidators();this.handleErrors(r,e.value);const a=new CustomEvent("input-blur");this.dispatchEvent(a)}hide(){this.hidden=!0}show(){this.hidden=!1}resetValue(){this._internals.setFormValue("")}setValue(){this._internals.setFormValue(this.value)}renderEyeIcon(){return this.initialType==="password"?z`
                <sbk-round-button icon=${this.type==="password"?"eye-show":"eye-hide"}  variant="icon-only" size="small" class="eye-icon-button" @click=${this.togglePassword}></sbk-round-button></sbk-round-button>
            `:""}togglePassword(){this.type=this.type==="password"?"text":"password"}_onKeyDown(t){var e,r;if(t.key==="Enter"){const a=t.target;this._internals.setFormValue(a.value),this.value=a.value;const n=(e=this.closest("form"))==null?void 0:e.querySelector('input[type="submit"]');(r=this._internals.form)==null||r.requestSubmit(n)}}};he.formAssociated=!0;he.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:!0};we([x()],he.prototype,"autocomplete",2);we([x({type:Boolean})],he.prototype,"disabled",2);we([x()],he.prototype,"description",2);we([x({reflect:!0})],he.prototype,"name",2);we([x()],he.prototype,"placeholder",2);we([x({type:Boolean})],he.prototype,"readonly",2);we([x({type:Boolean})],he.prototype,"required",2);we([x()],he.prototype,"size",2);we([x()],he.prototype,"type",2);we([x({attribute:"input-pattern"})],he.prototype,"inputPattern",2);we([x({reflect:!0})],he.prototype,"value",2);we([x({type:Number})],he.prototype,"maxlength",2);we([Se()],he.prototype,"visible",2);he=we([$e("sbk-input")],he);const Tc=Fe(`${gr}`),Nc=Fe(`${it}`),Uc=Ue`
  
    :host {
      --_checkbox__margin-bottom: 0;
    }

    .checkbox-group {
        border: none;
        margin: 0 0 var(--sbkCoreSpacingMd) 0;
        padding: 0;
    }

    .checkbox-slot {
        display: flex;
        flex-direction: column;
        gap: var(--sbkCoreSpacing2xs);

        @media all and (max-width: ${Tc}) {
            margin-bottom: var(--sbkInput3xs);
        }
    }

    @media all and (min-width: ${Nc}) {
        .checkbox-group--horizontal .checkbox-slot {
            flex-direction: row;
            gap: var(--sbkCoreSpacingXsBase);
        }
    }
`;var Vc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,Et=(t,e,r,a)=>{for(var n=a>1?void 0:a?Zc(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&Vc(e,r,n),n};let Ge=class extends Ye(Je(nt(ue))){constructor(){super(),this.description="",this.name="",this.direction="vertical",this.disabled=!1,this.validatorMapper={required:vi,minCheckbox:sr,validateCheckBoxes:vi,validateDataAgreement:Mc},this.addEventListener("form-control-dependency-show",()=>{this.show(),this.setValue()}),this.addEventListener("form-control-dependency-hide",()=>{this.hide(),this.resetValue()})}static get styles(){return[We,Uc]}render(){return z`
            <fieldset @checkbox-change=${this._checkValidity} class="checkbox-group checkbox-group--${this.direction}${this.invalid?" input__wrapper--error":""}${this.disabled?" input__wrapper--disabled":""}" aria-describedby="${this.name}-annotation" aria-labelledby="groupLabel">
                ${this.labelTemplate("groupLabel",!0,this.invalid)}
                <slot @slotchange=${this._onSlotChange} class="checkbox-slot"></slot>
                ${ot(this.description&&!this.invalid,()=>z`
                            <sbk-annotation id="${this.name}-annotation" variant="info" ?disabled=${this.disabled}>${Pe(this.description)}</sbk-annotation>
                        `)}
                ${this.invalid?this.validationErrorTemplate(`${this.name}-annotation`):""}
            </fieldset>
        `}_checkValidity(){const t=this.getValidators();this.handleErrors(t,"")}_onSlotChange(){this._checkboxes.forEach(t=>{t.multiple=!0})}hide(){this.hidden=!0}show(){this.hidden=!1}resetValue(){this._checkboxes.forEach(t=>{t.resetValue()})}setValue(){this._checkboxes.forEach(t=>{t.setValue()})}};Et([x()],Ge.prototype,"description",2);Et([x()],Ge.prototype,"name",2);Et([x()],Ge.prototype,"direction",2);Et([x({type:Boolean})],Ge.prototype,"disabled",2);Et([Nn({selector:"sbk-checkbox"})],Ge.prototype,"_checkboxes",2);Ge=Et([$e("sbk-checkbox-group")],Ge);const Hc=Fe(`${it}`),Gc=Ue`
    :host {
       
    }

    .radio-group {
        border: none;
        margin: 0 0 var(--sbkCoreSpacingMd) 0;
        padding: 0;
    }

    .radio-slot {
        display: flex;
        flex-direction: column;
        gap: var(--sbkCoreSpacing3xs);
    }

    @media all and (min-width: ${Hc}) {
        .radio-group--horizontal .radio-slot {
            flex-direction: row;
            gap: var(--sbkCoreSpacingXsBase);
        }
    }
`;var zc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,xt=(t,e,r,a)=>{for(var n=a>1?void 0:a?Kc(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&zc(e,r,n),n};let ze=class extends Ye(Je(nt(ue))){constructor(){super(),this.description="",this.name="",this.disabled=!1,this.direction="vertical",this.validatorMapper={required:_i,validateMinimumWage:Ec,validateRadioButtons:_i,validateNextCareerMoveWst:ho},this.addEventListener("form-control-dependency-show",()=>{this.show(),this.setValue(),this.triggerFormControlDependencyChangeEvent()}),this.addEventListener("form-control-dependency-hide",()=>{this.hide(),this.resetValue(),this.triggerFormControlDependencyChangeEvent()}),this.addEventListener("keydown",this._onKeyDown)}async connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),await this.updateComplete;const t=this._checkedRadioButton;this._uncheckAll(),t?this._checkNode(t):this._firstRadioButton&&(this._firstRadioButton.tabIndex=0)}static get styles(){return[Gc,We]}render(){return z`
            <fieldset @radio-change=${this._checkValidity}
                      class="radio-group--${this.direction} radio-group${this.invalid?" input__wrapper--error":""}${this.disabled?" input__wrapper--disabled":""}"
                      aria-describedby="${this.name}-annotation" aria-labelledby="groupLabel">
                ${this.labelTemplate("radio-group",!0,this.invalid)}
                <slot class="radio-slot"></slot>
                    ${ot(this.description&&!this.invalid,()=>z`
                            <sbk-annotation id="${this.name}-annotation" variant="info">${Pe(this.description)}</sbk-annotation>
                        `)}
                ${this.invalid?this.validationErrorTemplate(`${this.name}-annotation`):""}
            </fieldset>
        `}hide(){this.hidden=!0}show(){this.hidden=!1}resetValue(){this._radioButtons.forEach(t=>{t.resetValue()})}setValue(){this._radioButtons.forEach(t=>{t.setValue()})}async _checkValidity(t){const e=t.target;this._setChecked(e);const r=this.getValidators();this.handleErrors(r,"")}_onKeyDown(t){const{key:e}=t;switch(e){case"ArrowUp":case"ArrowLeft":t.preventDefault(),this._setCheckedToPrevButton();break;case"ArrowDown":case"ArrowRight":t.preventDefault(),this._setCheckedToNextButton();break;case"Home":t.preventDefault(),this._firstRadioButton&&this._setChecked(this._firstRadioButton);break;case"End":t.preventDefault(),this._lastRadioButton&&this._setChecked(this._lastRadioButton);break;case" ":{t.preventDefault();const r=t.target;this._setChecked(r);break}}}get _checkedRadioButton(){const t=this.renderRoot.querySelector("slot.radio-slot");if(t)return t.assignedElements().find(e=>e.matches("sbk-radio[checked]"))}get _firstRadioButton(){const t=this.renderRoot.querySelector("slot.radio-slot");if(t)return t.assignedElements().filter(r=>r.matches('sbk-radio[role="radio"]:not([disabled])'))[0]}get _lastRadioButton(){const t=this.renderRoot.querySelector("slot.radio-slot");if(t){const e=t.assignedElements().filter(r=>r.matches('sbk-radio[role="radio"]:not([disabled])'));return e[e.length-1]}}_prevRadioButton(t){let e=t.previousElementSibling;for(;e;){if(e.getAttribute("role")==="radio"&&!e.hasAttribute("disabled"))return e;e=e.previousElementSibling}return null}_nextRadioButton(t){let e=t.nextElementSibling;for(;e;){if(e.getAttribute("role")==="radio"&&!e.hasAttribute("disabled"))return e;e=e.nextElementSibling}return null}_setCheckedToPrevButton(){const t=this._checkedRadioButton||this._firstRadioButton;t===this._firstRadioButton?this._lastRadioButton&&this._setChecked(this._lastRadioButton):t&&this._setChecked(this._prevRadioButton(t))}_setCheckedToNextButton(){const t=this._checkedRadioButton??this._firstRadioButton;t===this._lastRadioButton?this._firstRadioButton&&this._setChecked(this._firstRadioButton):t&&this._setChecked(this._nextRadioButton(t))}async _setChecked(t){if(!t)return;this._uncheckAll(),this._checkNode(t),this._focusNode(t),await t.updateComplete;const e=new CustomEvent("radio-group-change",{bubbles:!0});t.dispatchEvent(e)}_uncheckAll(){this._radioButtons.forEach(t=>{t.checked=!1,t.tabIndex=-1})}_checkNode(t){t.checked=!0,t.tabIndex=0}_focusNode(t){t.focus()}triggerFormControlDependencyChangeEvent(){this._radioButtons.forEach(t=>{const e=new CustomEvent("form-control-dependency-change",{bubbles:!0});t.dispatchEvent(e)})}};xt([x()],ze.prototype,"description",2);xt([x({reflect:!0})],ze.prototype,"name",2);xt([x({type:Boolean})],ze.prototype,"disabled",2);xt([x()],ze.prototype,"direction",2);xt([Nn({selector:"sbk-radio"})],ze.prototype,"_radioButtons",2);ze=xt([$e("sbk-radio-group")],ze);const Wc=Fe(`${it}`),qc=Ue`

    :host {
        display: block;
        --textarea-border-radius-default: var(--_textarea-border-radius-default, var(--sbkInputBorderRadiusDefault));
        --textarea-border-on-light-enabled: var(--_textarea-border-on-light-enabled, var(--sbkInputBorderOnLightEnabled));


        --gap-small-inputs: var(--sbkInputXs, 0.5rem);
        --gap-large-small-inputs: var(--_gap-large-small-inputs, var(--sbkInput4xs));
        --gap-annotation-counter: var(--_gap-annotation-counter, var(--sbkInput4xs));
        --gap-annotation-text-counter: var(--_gap-annotation-text-counter, var(--sbkInput3xs));
        --gap-icons-text-area: var(--_gap-icons-text-area, var(--sbkInput3xs));

        --input__color: var(--_input__color, var(--sbkInputFgColorOnLightDefault));
        --input__color--disabled: var(--_input__color--disabled, var(--sbkInputFgColorOnLightDisabled));
        --input__color--error: var(--_input__color--error, var(--sbkInputFgColorOnLightError));

        --input__bg: var(--_input__bg, var(--sbkInputBgColorOnLightEnabled));
        --input__bg--active: var(--_input__bg--active, var(--sbkInputBgColorOnLightActive));
        --input__bg--hover: var(--_input__bg--hover, var(--sbkInputBgColorOnLightHover));
        --input__bg--focus: var(--_input__bg--focus, var(--sbkInputBgColorOnLightFocus));
        --input__bg--disabled: var(--_input__bg--disabled, var(--sbkInputBgColorOnLightDisabled));
        --input__bg--error: var(--_input__bg--error, var(--sbkInputBgColorOnLightError));

        --input__border: var(--_input__border, var(--sbkInputBorderOnLightEnabled));
        --input__border--active: var(--_input__border--active, var(--sbkInputBorderOnLightActive));
        --input__border--disabled: var(--_input__border--disabled, var(--sbkInputBorderOnLightDisabled));
        --input__border--error: var(--_input__border--error, var(--sbkInputBorderOnLightError));
        --input__border--focus: var(--_input__border--focus, var(--sbkInputBorderOnLightFocus));
        --input__border--hover: var(--_input__border--hover, var(--sbkInputBorderOnLightHover));
        --input__border--readonly: var(--_input__border--readonly, var(--sbkInputBorderOnLightDisabled));

    }

    :host(.hide) {
        display: none;
    }

    .input__wrapper {
        margin-bottom: var(--sbkCoreSpacingMd);
    }


    :host([error]) textarea {
        border: var(--sbkInputBorderOnLightError);
    }

    .input__wrapper--error {
        color: var(--input__color--error);

        .textarea {
            background-color: var(--input__bg--error);
            border: var(--input__border--error);
        }
    }

    .textarea {
        background-color: var(--input__bg);
        border-radius: var(--textarea-border-radius-default);
        border: var(--input__border);
        color: var(--input__color);
        outline: transparent;
        outline-offset: var(--sbkInputBorderGapFocus);
        font: var(--sbkInputSmallTextSm);
        padding: var(--sbkInput2xs);
        resize: vertical;
        width: 100%;

        @media all and (min-width: ${Wc}) {
            font: var(--sbkInputLargeTextLg);
            padding: var(--sbkInputXs);
        }

        &:active {
            background-color: var(--input__bg--active);
            border: var(--input__border--active);
        }

        &:focus {
            background-color: var(--input__bg--focus);
            outline: var(--input__border--focus);
        }

        @media (hover: hover) and (pointer: fine) {
            &:hover:not(:focus) {
                background-color: var(--input__bg--hover);
                border: var(--input__border--hover);
            }
        }

        &[disabled] {
            background-color: var(--input__bg--disabled);
            border: var(--input__border--disabled);
            color: var(--input__color--disabled);
        }

        &[readonly] {
            background-color: var(--input__bg--disabled);
            border: var(--input__border--readonly);
            color: var(--input__color--disabled);
        }
    }

`;var Yc=Object.defineProperty,Jc=Object.getOwnPropertyDescriptor,qe=(t,e,r,a)=>{for(var n=a>1?void 0:a?Jc(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&Yc(e,r,n),n};let Oe=class extends Ye(Je(nt(ue))){constructor(){super(),this.disabled=!1,this.description="",this.name="",this.rows=null,this.readonly=!1,this.required=!1,this.value="",this.placeholder="",this.validatorMapper={required:lt},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._internals.setFormValue(this.value)}static get styles(){return[We,qc]}render(){return z`
            <div class="input__wrapper${this.invalid?" input__wrapper--error":""}${this.disabled?" input__wrapper--disabled":""}">
                ${this.labelTemplate("textarea",!1,this.invalid)}
                <textarea id="textarea"
                          class="textarea"
                          .value=${this.value}
                          .placeholder=${this.placeholder}
                          name=${this.name}
                          rows=${this.rows}
                          aria-describedby="${this.name}-annotation"
                          ?disabled=${this.disabled}
                          ?readonly=${this.readonly}
                          ?required=${this.required}
                          @blur=${this._validate}
                          @change=${this.handleInput}></textarea>
                ${this.invalid?this.validationErrorTemplate(`${this.name}-annotation`):""}
                ${ot(this.description&&!this.invalid,()=>z`
                                <sbk-annotation id="${this.name}-annotation" variant="info" ?disabled=${this.disabled||this.readonly}>${Pe(this.description)}</sbk-annotation>
                            `)}
            </div>
        `}handleInput(t){const e=t.target;this.value=e.value,this._internals.setFormValue(this.value)}_validate(){const t=this.getValidators();this.handleErrors(t,this.value);const e=new CustomEvent("textarea-blur");this.dispatchEvent(e)}};Oe.formAssociated=!0;Oe.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:!0};qe([x({type:Boolean})],Oe.prototype,"disabled",2);qe([x()],Oe.prototype,"description",2);qe([x({reflect:!0})],Oe.prototype,"name",2);qe([x()],Oe.prototype,"rows",2);qe([x({type:Boolean})],Oe.prototype,"readonly",2);qe([x({type:Boolean})],Oe.prototype,"required",2);qe([x()],Oe.prototype,"value",2);qe([x()],Oe.prototype,"placeholder",2);Oe=qe([$e("sbk-textarea")],Oe);const Xc=Fe(`${gr}`),Qc=Fe(`${it}`),jc=Ue`
    :host {
      position: relative;

      --select__color: var(--_select__color, var(--sbkSelectColorFgColorOnLightDefault));
      --select__color--disabled: var(--_select__color--disabled, var(--sbkSelectColorFgColorOnLightDisabled));
      --select__color--error: var(--_select__color--error, var(--sbkSelectColorFgColorOnLightError));

      --select__bg: var(--_select__bg, var(--sbkSelectColorBgColorOnLightTriggerEnabled));
      --select__bg--active: var(--_select__bg--active, var(--sbkSelectColorBgColorOnLightTriggerActive));
      --select__bg--hover: var(--_select__bg--hover, var(--sbkSelectColorBgColorOnLightTriggerHover));
      --select__bg--focus: var(--_select__bg--focus, var(--sbkSelectColorBgColorOnLightTriggerFocus));
      --select__bg--disabled: var(--_select__bg--disabled, var(--sbkSelectColorBgColorOnLightTriggerDisabled));
      --select__bg--error: var(--_select__bg--error, var(--sbkSelectColorBgColorOnLightTriggerError));

      --select__border: var(--_select__border, var(--sbkSelectBorderOnLightEnabled));
      --select__border--active: var(--_select__border--active, var(--sbkSelectBorderOnLightActive));
      --select__border--disabled: var(--_select__border--disabled, var(--sbkSelectBorderOnLightDisabled));
      --select__border--error: var(--_select__border--error, var(--sbkSelectBorderOnLightError));
      --select__border--focus: var(--_select__border--focus, var(--sbkSelectBorderOnLightFocus));
      --select__border--hover: var(--_select__border--hover, var(--sbkSelectBorderOnLightHover));
      --select__border--readonly: var(--_select__border--readonly, var(--sbkSelectBorderOnLightDisabled));


      --select-flyout__bg: var(--_select__bg, var(--sbkSelectColorBgColorOnLightFlyoutEnabled));
      --select-flyout__box-shadow: var(--_select-flyout__box-shadow, var(--sbkSelectFlyoutOnLightShadow));

      --_input__color: var(--sbkInputFgColorOnLightDefault);
      --_input__color--disabled: var(--sbkInputFgColorOnLightDisabled);
      --_input__color--error: var(--sbkInputFgColorOnLightError);

      --_input__bg: var(--sbkInputBgColorOnLightEnabled);
      --_input__bg--active: var(--sbkInputBgColorOnLightActive);
      --_input__bg--hover: var(--sbkInputBgColorOnLightHover);
      --_input__bg--focus: var(--sbkInputBgColorOnLightFocus);
      --_input__bg--disabled: var(--sbkInputBgColorOnLightDisabled);
      --_input__bg--error: var(--sbkInputBgColorOnLightError);

      --_input__border: var(--sbkInputBorderOnLightEnabled);
      --_input__border--active: var(--sbkInputBorderOnLightActive);
      --_input__border--disabled: var(--sbkInputBorderOnLightDisabled);
      --_input__border--error: var(--sbkInputBorderOnLightError);
      --_input__border--focus: var(--sbkInputBorderOnLightFocus);
      --_input__border--hover: var(--sbkInputBorderOnLightHover);
      --_input__border--readonly: var(--sbkInputBorderOnLightDisabled);

      --_input__margin-bottom: 0;
    }

  * {
    box-sizing: border-box;
  }

  .input__wrapper {
    margin-bottom: var(--sbkCoreSpacingMd);
    width: 100%;
  }

  .input__wrapper--error {
    .select-input {
      background-color: var(--select__bg--error);
      border: var(--select__border--error);
      color: var(--select__color--error);
    }
  }

  .select-menu__wrapper {
    display: block;
    position: relative;
  }

  .select-input {
    background-color: var(--select__bg);
    border: var(--select__border);
    border-radius: var(--sbkSelectBorderRadiusDefault);
    color: var(--select__color);
    font: var(--sbkSelectTypographySelectSmallTextSm);
    outline: transparent;
    outline-offset: var(--sbkSelectBorderGapFocus);
    padding: var(--sbkInput2xs);
    position: relative;
    cursor: pointer;

    @media all and (min-width: ${Qc}) {
      font: var(--sbkSelectTypographySelectLargeTextLg);
      padding: var(--sbkInputXs);
    }

    &:active {
      background-color: var(--select__bg--active);
      border: var(--select__border--active);
    }

    &:focus {
      background-color: var(--select__bg--focus);
      outline: var(--select__border--focus);
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover:not(:focus) {
        background-color: var(--select__bg--hover);
        border: var(--select__border--hover);
      }
    }

    &[disabled] {
      background-color: var(--select__bg--disabled);
      border: var(--select__border--disabled);
      color: var(--select__color--disabled);
      cursor: not-allowed;
      pointer-events: none;
    }

    &[readonly] {
      background-color: var(--select__bg--disabled);
      border: var(--select__border--readonly);
      color: var(--select__color--disabled);
      cursor: not-allowed;
      pointer-events: none;
    }
  }

  .select__icon-wrapper {
    position: absolute;
    right: var(--sbkInput2xs);
    top: calc(50% - var(--sbkInput2xs));

  }

  sbk-badge{
    position: absolute;
    right: 0;
    top: 30%;
    margin-right: 3rem;
  }

  .select__text-wrapper {
    margin-right: calc(var(--sbkSelectSpacingXs) + var(--sbkSelectSpacing2xs));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    @media all and (max-width: calc(${Xc} - 1px)) {
      font-size: 13px;
    }
  }

  .select__text-wrapper--empty-option {
    color: var(--select__color--disabled)
  }

  .select__search-wrapper {
    padding: var(--sbkSelectSpacingXs);
    background-color: var(--select-flyout__bg);
  }

  .select-menu {
    background-color: var(--select-flyout__bg);
    border-radius: var(--sbkSelectBorderRadiusDefault);
    display: none;
    left: 0;
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 100;
    margin-top: var(--sbkSelectSpacing3xs);
    box-shadow: var(--select-flyout__box-shadow);
    overflow: hidden;
  }

  .select__listbox {
    position: relative;
    overflow-y: auto;
    max-height: 300px;
  }

  .select--open .select-menu {
    display: block;
  }

  .select-no-option {
    font: var(--sbkSelectTypographyFlyoutSm);
    color: var(--sbkSelectColorFgColorOnLightDisabled);
    padding: var(--sbkSelectSpacingXs);
  }

`,ed=Ue`
  :host {
      display: inline-flex;
      align-items: center;
    }

   sbk-tag {
    margin-right: var(--sbkMultiSelectSpacingNewSelectedLargeGapTags);
   }
`;var td=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Gn=(t,e,r,a)=>{for(var n=a>1?void 0:a?rd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&td(e,r,n),n};let fr=class extends ue{constructor(){super(...arguments),this.label="",this.value=""}static get styles(){return[ed]}render(){return z`
      <sbk-tag 
        href="#" 
        title=${this.label} 
        area="select" 
        variant="muted" 
        hasCloseButton 
        @remove-tag=${this._onRemove}
        @keydown=${this._handleKeydown}>
        ${this.label}
      </sbk-tag>
    `}_onRemove(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-option",{detail:{value:this.value},bubbles:!0,composed:!0}))}_handleKeydown(t){if(t.key==="Enter"||t.key===" "){t.preventDefault();const e=new CustomEvent("remove-option",{detail:{value:this.value},bubbles:!0,composed:!0});this._onRemove(e)}}};Gn([x()],fr.prototype,"label",2);Gn([x()],fr.prototype,"value",2);fr=Gn([$e("sbk-select-option-tag")],fr);var ad=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,ie=(t,e,r,a)=>{for(var n=a>1?void 0:a?nd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&ad(e,r,n),n};let Q=class extends Ye(Je(nt(ue))){constructor(){super(),this.activeIndex=0,this.selectedOptions=[],this.options=[],this.multiple=!1,this.overflowCount=0,this.disabled=!1,this.description="",this.enableSearch=!1,this.name="",this.readonly=!1,this.required=!1,this.sort=!1,this.visible=!0,this.open=!1,this.noFilterResult=!1,this.validatorMapper={required:lt},this.selectActions={Close:0,CloseSelect:1,First:2,Last:3,Next:4,Open:5,PageDown:6,PageUp:7,Previous:8,Select:9,Type:10},this._internals=this.attachInternals(),this.addEventListener("form-control-dependency-show",()=>{this.show(),this.setValue()}),this.addEventListener("form-control-dependency-hide",()=>{this.hide(),this.resetValue()}),this._resizeHandler=this._updateOverflowChip.bind(this)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._resizeHandler),this._updateOverflowChip()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._resizeHandler)}static get styles(){return[We,jc]}render(){var t;return z`
            <div @selectItem=${this._updateValue} class="input__wrapper${this.invalid?" input__wrapper--error":""}${this.disabled||this.readonly?" input__wrapper--disabled":""}${this.open?" select--open":""}">
                <div id="selectMenuWrapper" class="select-menu__wrapper">
                    ${this.labelTemplate("label",!0,this.invalid)}
                    <div aria-controls="listbox"
                         aria-expanded=${this.open}
                         aria-haspopup="listbox"
                         aria-labelledby="label"
                         aria-describedby=${this.description||this.invalid?"annotation":cr}
                         id="select"
                         class="select-input"
                         ?disabled=${this.disabled}
                         ?readonly=${this.readonly}
                         @click=${this._toggleSelect}
                         @blur=${this._onBlur}
                         @keydown=${this._onKeyDown}
                         role="combobox"
                         tabindex="0">
                        <div class="select__text-wrapper${this.selectedOptions.length||(t=this.selectedOption)!=null&&t.value?"":" select__text-wrapper--empty-option"}">
                            ${this._renderSelectedOption()}
                        </div>
                        ${this.overflowCount>0?z`
                            <sbk-badge>+${this.overflowCount}</sbk-badge>
                        `:cr}
                        <div class="select__icon-wrapper">
                            <sbk-icon size="24" symbol="chevron-down"></sbk-icon>
                        </div>
                    </div>
                    <div class="select-menu"
                         @focusout=${this._onBlur}>
                        ${this._renderSearchInput()}
                        <div class="select__listbox"
                             role="listbox"
                             id="listbox"
                             aria-labelledby="label"
                             tabindex="-1"
                             aria-multiselectable=${this.multiple}>
                            ${Gi(this.options,(e,r)=>z`
                                <sbk-select-option role="option" id="${this.id}-${r}" index=${r} value=${e.value} description=${e.description} ?selected=${e.selected} ?multiple=${this.multiple} label=${e.label}></sbk-select-option>
                            `)}
                            <p class="select-no-option" ?hidden=${!this.noFilterResult}>${this._getTYPO3Label("noEntriesFound","Keine Einträge gefunden")}</p>
                        </div>
                    </div>
                </div>
                ${ot(this.description&&!this.invalid,()=>z`
                            <sbk-annotation id="annotation" variant="info" ?disabled=${this.disabled||this.readonly}>${Pe(this.description)}</sbk-annotation>
                        `)}
                ${this.invalid?this.validationErrorTemplate("annotation"):""}
            </div>
        `}_renderSearchInput(){return this.enableSearch?z`
            <div id="selectSearchWrapper" class="select__search-wrapper">
                <sbk-input @input-input=${this._filter} @keydown=${this._onKeyDown} id="search" name="search" placeholder=${this._getTYPO3Label("search","Suchen")} type="search" autocomplete="off" aria-label="search"
                           size="small"></sbk-input>
            </div>
        `:""}willUpdate(t){if(t.has("options")){this.selectedOptions=[],this.options.forEach((r,a)=>{r.selected&&(this.selectedOptions.push(r),this.activeIndex=a,this.selectedOption=r)}),this.selectedOptions.length===0&&this.options.length>0&&(this.activeIndex=0,this.selectedOption=this.options[this.activeIndex]),this._internals.setFormValue(this.multiple?this.selectedOptions.map(r=>r.value).join(","):this.selectedOption.value);const e=new CustomEvent("select-value-changed",{detail:{value:this.multiple?this.selectedOptions.map(r=>r.value).join(","):this.selectedOption.value},bubbles:!0});this.dispatchEvent(e)}}updated(t){t.has("open")&&this.open&&this.enableSearch&&this._searchElement.focus(),t.has("options")&&this.requestUpdate()}_getTYPO3Label(t,e){return typeof TYPO3<"u"?TYPO3.lang[t]:e}_filter(t){this.selectOptions.forEach(e=>{const r=e.getAttribute("label"),a=r?r.toLowerCase():"";e.hidden=!a.includes(t.detail.value.toLowerCase())}),this.noFilterResult=!this._visibleSelectOptions.length,this.activeIndex=0}_updateValue(t){var e;(e=this.options)!=null&&e.length&&(this.multiple?this.options.forEach(r=>{r.value===t.detail.value&&(r.selected=!r.selected,r.selected?this.selectedOptions.push(r):this.selectedOptions=this.selectedOptions.filter(a=>a.value!==r.value))}):this.options.forEach((r,a)=>{r.value===t.detail.value?(r.selected=!0,this.activeIndex=a,this.selectedOption=r):r.selected=!1}),this.updateValue())}updateValue(){this._updateOverflowChip();const t=this.getValidators(),e=this.multiple?this.selectedOptions.map(a=>a.value).join(","):this.selectedOption.value;this.handleErrors(t,e),this._internals.setFormValue(e),this._updateMenuState(!1);const r=new CustomEvent("select-value-changed",{detail:{value:e},bubbles:!0});this.dispatchEvent(r)}_toggleSelect(){this._updateMenuState(!this.open)}_updateMenuState(t,e=!0){if(this.open===t)return;this.open=t,this.open||this.selectOptions.forEach(a=>{a.classList.remove("select-option--current")});const r=t?`${this.id}-${this.activeIndex}`:"";this._selectElement.setAttribute("aria-activedescendant",r),r===""&&!this._isElementInView(this._selectElement)&&this._selectElement.scrollIntoView({behavior:"smooth",block:"nearest"}),e&&this._selectElement.focus()}_onKeyDown(t){const e=this._visibleSelectOptions.length-1,r=this._getActionFromKey(t,this.open);switch(r){case this.selectActions.Last:case this.selectActions.First:return this._updateMenuState(!0);case this.selectActions.Next:case this.selectActions.Previous:case this.selectActions.PageUp:case this.selectActions.PageDown:return t.preventDefault(),this._onOptionChange(this._getUpdatedIndex(this.activeIndex,e,r));case this.selectActions.CloseSelect:return t.preventDefault(),this._selectOption(this.activeIndex),this._updateMenuState(!1);case this.selectActions.Close:return t.preventDefault(),this._updateMenuState(!1);case this.selectActions.Open:return t.preventDefault(),this._visibleSelectOptions[this.activeIndex].classList.add("select-option--current"),this._updateMenuState(!0)}}_selectOption(t){this.activeIndex=t;const e=this.options[this._visibleSelectOptions[t].index];this.multiple?(e.selected=!e.selected,e.selected?this.selectedOptions.push(e):this.selectedOptions=this.selectedOptions.filter(r=>r.value!==e.value)):(this.options.forEach((r,a)=>{r.selected=a===t}),this.selectedOption=e),this.updateValue()}_renderSelectedOption(){return this.multiple&&this.selectedOptions.length>0?z`
                ${this.selectedOptions.map(t=>z`
                    <sbk-select-option-tag
                        .label=${t.label}
                        .value=${t.value}
                        @remove-option=${this._handleRemoveOption}
                    ></sbk-select-option-tag>
                `)}
            `:!this.multiple&&this.selectedOption?this.selectedOption.label||this._getTYPO3Label("selectPlaceholder","Select option"):this._getTYPO3Label("selectPlaceholder","Select option")}_handleRemoveOption(t){const e=t.detail.value;this.selectedOptions=this.selectedOptions.filter(r=>r.value!==e),this.options=this.options.map(r=>(r.value===e&&(r.selected=!1),r)),this.updateValue()}_getActionFromKey(t,e){const{key:r,altKey:a,ctrlKey:n,metaKey:i}=t;if(!e&&["ArrowDown","ArrowUp","Enter"," "].includes(r))return this.selectActions.Open;if(r==="Home")return this.selectActions.First;if(r==="End")return this.selectActions.Last;if(r==="Backspace"||r==="Clear"||r.length===1&&r!==" "&&!a&&!n&&!i)return this.selectActions.Type;if(e){if(r==="ArrowUp"&&a)return this.selectActions.CloseSelect;if(r==="ArrowDown"&&!a)return this.selectActions.Next;if(r==="ArrowUp")return this.selectActions.Previous;if(r==="PageUp")return this.selectActions.PageUp;if(r==="PageDown")return this.selectActions.PageDown;if(r==="Escape")return this.selectActions.Close;if(r==="Enter"||r===" ")return this.selectActions.CloseSelect}}_getUpdatedIndex(t,e,r){switch(r){case this.selectActions.First:return 0;case this.selectActions.Last:return e;case this.selectActions.Previous:return Math.max(0,t-1);case this.selectActions.Next:return Math.min(e,t+1);case this.selectActions.PageUp:return Math.max(0,t-10);case this.selectActions.PageDown:return Math.min(e,t+10);default:return t}}_onOptionChange(t){this.activeIndex=t,this._selectElement.setAttribute("aria-activedescendant",`${this.id}-${t}`);const e=this._visibleSelectOptions;[...e].forEach(r=>{r.classList.remove("select-option--current")}),e[t].classList.add("select-option--current"),this._isScrollable(this._listboxElement)&&this._maintainScrollVisibility(e[t],this._listboxElement),this._isElementInView(e[t])||e[t].scrollIntoView({behavior:"smooth",block:"nearest"})}_isElementInView(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}_isScrollable(t){return t&&t.clientHeight<t.scrollHeight}_maintainScrollVisibility(t,e){const{offsetHeight:r,offsetTop:a}=t,n=this._selectSearchWrapperElement?this._selectSearchWrapperElement.clientHeight:0;e.scrollTo(0,a-n+r)}_onBlur(t){t instanceof FocusEvent&&(this._listboxElement.contains(t.relatedTarget)||Array.from(this.selectOptions).find(e=>{var r;return e.id===((r=t.relatedTarget)==null?void 0:r.id)})||this._searchElement&&t.relatedTarget===this._searchElement)||this.open&&this._updateMenuState(!1,!1)}hide(){this.hidden=!0}show(){this.hidden=!1}resetValue(){this._internals.setFormValue("")}setValue(){this._internals.setFormValue(this.selectedOption.value)}async _updateOverflowChip(){!this.textWrapper||!this.multiple||(await this.updateComplete,requestAnimationFrame(()=>{const t=this.textWrapper.offsetWidth-28,e=Array.from(this.textWrapper.querySelectorAll("sbk-select-option-tag"));let r=0,a=0;for(const i of e){if(r+=i.offsetWidth,r>t)break;a++}const n=this.selectedOptions.length-a;this.overflowCount=n>0?n:0}))}};Q.formAssociated=!0;Q.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:!0};ie([Se()],Q.prototype,"selectedOption",2);ie([Se()],Q.prototype,"selectedOptions",2);ie([x({type:Array})],Q.prototype,"options",2);ie([x({type:Boolean})],Q.prototype,"multiple",2);ie([Un("sbk-select-option")],Q.prototype,"selectOptions",2);ie([Un("sbk-select-option:not([hidden])")],Q.prototype,"_visibleSelectOptions",2);ie([me("#select")],Q.prototype,"_selectElement",2);ie([me("#selectMenuWrapper")],Q.prototype,"_selectMenuWrapperElement",2);ie([me("#selectSearchWrapper")],Q.prototype,"_selectSearchWrapperElement",2);ie([me("#listbox")],Q.prototype,"_listboxElement",2);ie([me("#search")],Q.prototype,"_searchElement",2);ie([Se()],Q.prototype,"overflowCount",2);ie([me(".select__text-wrapper")],Q.prototype,"textWrapper",2);ie([x({type:Boolean})],Q.prototype,"disabled",2);ie([x()],Q.prototype,"description",2);ie([x({type:Boolean,attribute:"enable-search"})],Q.prototype,"enableSearch",2);ie([x({reflect:!0})],Q.prototype,"name",2);ie([x({type:Boolean})],Q.prototype,"readonly",2);ie([x({type:Boolean})],Q.prototype,"required",2);ie([x({type:Boolean})],Q.prototype,"sort",2);ie([Se()],Q.prototype,"visible",2);ie([Se()],Q.prototype,"open",2);ie([Se()],Q.prototype,"noFilterResult",2);Q=ie([$e("sbk-select")],Q);const nr=Fe(`${it}`),yr=Ue`
    :host {
        position: relative;

        --select__border: var(--_select__border, var(--sbkSelectBorderOnLightEnabled));
        --select__color: var(--_select__color, var(--sbkSelectColorFgColorOnLightDefault));
        --select__bg: var(--_select__bg, var(--sbkSelectColorBgColorOnLightTriggerEnabled));
        --select__bg--active: var(--_select__bg--active, var(--sbkSelectColorBgColorOnLightTriggerActive));
        --select__bg--hover: var(--_select__bg--hover, var(--sbkSelectColorBgColorOnLightTriggerHover));
        --select__bg--focus: var(--_select__bg--focus, var(--sbkSelectColorBgColorOnLightTriggerFocus));
        --select__border--active: var(--_select__border--active, var(--sbkSelectBorderOnLightActive));
        --select__border--focus: var(--_select__border--focus, var(--sbkSelectBorderOnLightFocus));
        --select__border--hover: var(--_select__border--hover, var(--sbkSelectBorderOnLightHover));
    }

    .input--only {
        display: none;
    }

    .datepicker {
        box-sizing: border-box;
        max-width: var(--sbkDatePickerSizingFlyoutFlyoutMaxWidth);
        min-width: var(--sbkDatePickerSizingFlyoutFlyoutMinWidth);
        position: absolute;
        margin-top: var(--sbkDatePickerSizingMd);
        left: 0;
        z-index: 1;
        background: var(--sbkDatePickerColorBgColorOnLightFlyoutEnabled);
        padding: var(--sbkDatePickerSpacingTriggerXs);
        box-shadow: var(--sbkDatePickerFlyoutOnLightShadow);
        border-radius: var(--sbkDatePickerBorderRadiusDefault);
        border: 0;
    }

    .datepicker__above {
        bottom: calc(60px + var(--sbkDatePickerSizingMd));
        margin-top: 0;

        @media all and (max-width: ${nr}) {
            bottom: calc(48px + var(--sbkDatePickerSizingMd));
        }
    }

    .input__container {
        position: relative;
    }

    .datepicker-icon {
        position: absolute;
        right: calc(var(--sbkInput2xs) - 4px);
        top: calc(var(--sbkInput2xs) - 4px);
        background-color: transparent;
        color: var(--input__color);
        outline: 2px solid transparent;
        outline-offset: var(--sbkButtonBorderGapFocus);
        border-radius: var(--sbkButtonBorderRadiusDefault);
        border: none;
        cursor: pointer;
        text-decoration: none;
        fill: currentColor;

        .input__wrapper--error & {
            color: var(--input__color--error);
        }

        @media all and (min-width: ${nr}) {
            right: calc(var(--sbkInput2xs) - 2px);
            top: calc(var(--sbkInput2xs) + 2px);
        }
    }

    table {
        width: 100%;
        border-collapse: collapse;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    th {
        color: var(--sbkColorContentFgColorOnLightDefault);
        font: var(--sbkDatePickerTypographyFlyoutSm);
    }

    th, td {
        width: var(--sbkDatePickerSizingFlyoutWeekDayTextFixedWidth);
        text-align: center;
    }

    .select-wrapper {
        box-sizing: border-box;
        margin-bottom: var(--sbkDatePickerSpacingTriggerXs);
    }

    .datepicker-navigation {
        text-align: center;
    }

    select {
        box-sizing: border-box;
        margin: var(--sbkDatePickerSpacingFlyoutSelectAreaGap);
        background-color: var(--select__bg);
        border: var(--sbkSelectBorderOnLightEnabled);
        border-radius: var(--sbkSelectBorderRadiusDefault);
        color: var(--select__color);
        font: var(--sbkSelectTypographySelectSmallTextSm);
        outline: transparent;
        outline-offset: var(--sbkSelectBorderGapFocus);
        padding: var(--sbkInput2xs) 32px var(--sbkInput2xs) 16px;
        position: relative;
        cursor: pointer;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        min-width: 100%;


        @media all and (min-width: ${nr}) {
            font: var(--sbkSelectTypographySelectLargeTextLg);
            padding: var(--sbkInputXs) 32px var(--sbkInputXs) var(--sbkInputXs);
        }

        &:active {
            background-color: var(--select__bg--active);
            border: var(--select__border--active);
        }

        &:focus {
            background-color: var(--select__bg--focus);
            outline: var(--select__border--focus);
        }

        @media (hover: hover) and (pointer: fine) {
            &:hover:not(:focus) {
                background-color: var(--select__bg--hover);
                border: var(--select__border--hover);
            }
        }
    }

    .select-wrapper {
        width: 100%;
        box-sizing: border-box;
    }

    .select-container {
        box-sizing: border-box;
        position: relative;
        display: inline-block;
    }

    .select-container--month {
        box-sizing: border-box;
        max-width: 54%;
        margin-right: 8px;
    }

    .select-container--year {
        box-sizing: border-box;
    }

    .select-icon {
        position: absolute;
        color: var(--select__color);
        right: 8px;
        top: 21px;
        pointer-events: none;
        @media all and (min-width: ${nr}) {
            top: 26px;
        }
    }

    .datepicker__calendar-item.selected::part(button) {
        background-color: var(--sbkRoundButtonBgColorOnLightActive);
        border: var(--sbkButtonBorderOnLightActive);
        color: var(--sbkRoundButtonBgColorOnDarkEnabled);
    }

    .datepicker__calendar-item.today::part(button) {
        border: var(--round-button__border-color--disabled);
    }

    .datepicker-navigation {
        .prev {
            margin-right: var(--sbkDatePickerSpacingFlyoutButtonsAreaInsetLeftRightBottom);
        }
    }

    .datepicker__calendar-item--not-current::part(button) {
        background-color: var(--round-button__bg--disabled);
        color: var(--round-button__color--disabled);
    }

    #datepicker-dialog {
        overflow: hidden;
        --_round-button__color: var(--sbkRoundButtonBgColorOnDarkEnabled);
        --_round-button__color--hover: var(--sbkRoundButtonFgColorOnLightDefault);
        --_round-button__color--focus: var(--sbkRoundButtonBgColorOnDarkEnabled);
        --_round-button__color--disabled: var(--sbkRoundButtonFgColorOnLightDisabled);
        --_round-button__color--error: var(--sbkRoundButtonFgColorOnDarkDefault);
        --_round-button-icon-only__color: var(--sbkRoundButtonBgColorOnLightEnabled);

        --_round-button__bg--hover: var(--sbkRoundButtonBgColorOnLightHover);
        --_round-button__bg--focus: var(--sbkRoundButtonBgColorOnLightFocus);
        --_round-button__bg--disabled: var(--sbkRoundButtonBgColorOnLightDisabledTransparent);
        --_round-button__bg--error: var(--sbkRoundButtonBgColorOnLightError);
        --_round-button-icon-only__bg: var(--sbkRoundButtonBgColorOnLightEnabledTransparent);

        --_round-button__border-color: var(--sbkRoundButtonBorderOnLightMarked);
        --_round-button__border-color--hover: var(--sbkButtonBorderOnLightHover);
        --_round-button__border-color--focus: var(--sbkButtonBorderOnLightFocus);
        --_secondary-button__border-color--disabled: var(--sbkButtonBorderOnLightDisabled);
        --_secondary-button__border-color--error: var(--sbkButtonBorderOnLightDisabled);

        --_round-button__bg--active: var(--sbkRoundButtonBgColorOnLightMarked);
        --_round-button__border-color--active: var(--sbkRoundButtonBorderOnLightMarked);
        --_round-button__color--active: var(--sbkRoundButtonFgColorOnLightDefault);
    }

    /* Keyframes for slide-in and slide-out animations */

    .slide-out-left {
        transform: translateX(-100%);
        opacity: 0;
    }

    .slide-out-right {
        transform: translateX(100%);
        opacity: 0;
    }

    .slide-in-left {
        transform: translateX(0);
        opacity: 1;
    }

    .slide-in-right {
        transform: translateX(0);
        opacity: 1;
    }

`,vo={German:["Mo","Di","Mi","Do","Fr","Sa","So"],English:["Mo","Tu","We","Th","Fr","Sa","Su"]},bi={German:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],English:["January","February","March","April","May","June","July","August","September","October","November","December"]},mi={previous:{German:["Vorheriges"],English:["Previous"]},next:{German:["Nächstes"],English:["Next"]}},Mt={day:{German:["Tag"],English:["Day"]},month:{German:["Monat"],English:["Month"]},year:{German:["Jahr"],English:["Year"]}};var id=Object.defineProperty,od=Object.getOwnPropertyDescriptor,ut=(t,e,r,a)=>{for(var n=a>1?void 0:a?od(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&id(e,r,n),n};let Ke=class extends ue{constructor(){super(),this.minDate="1900-01-01",this.maxDate="2035-12-31",this.month=[]}render(){return z`
          <div class="select-wrapper">
              <div class="select-container select-container--month">
                <select name="month" class="month-select" @change=${this.handleMonthChange} tabindex="0" aria-label=${this.setLanguage(Mt.month)}>
                  ${this.getMonthOptions()}
                </select>
                <sbk-icon class="select-icon" size="24" symbol="chevron-down"></sbk-icon>
              </div>
              <div class="select-container select-container--year">
                <select name="year" class="year-select" @change=${this.handleYearChange} @keydown=${this.handleTabKey} tabindex="0" aria-label=${this.setLanguage(Mt.year)}>
                  ${this.getYearOptions()}
                </select>
                <sbk-icon class="select-icon" size="24" symbol="chevron-down"></sbk-icon>
              </div>
            </div>
        `}setLanguage(t){return document.documentElement.lang.includes("de")?t.German:t.English}getMonthOptions(){return this.setLanguage(bi).map((e,r)=>z`
          <option ?selected=${this.selectedMonth===r+1} ?disabled=${this.isMonthDisabled(r+1)}>${e}</option>
        `)}getYearOptions(){const t=new Date(this.minDate).getFullYear(),e=new Date(this.maxDate).getFullYear();return Array.from({length:e-t+1},(r,a)=>t+a).map(r=>z`
          <option ?selected=${this.selectedYear===r}>${r}</option>
        `)}handleMonthChange(){for(const t of this._monthSelect.options)t.selected&&(this.selectedMonth=this.setLanguage(bi).indexOf(t.text)+1);this.dispatchEvent(new CustomEvent("select-changed",{detail:{month:this.selectedMonth,year:this.selectedYear}}))}handleYearChange(){for(const t of this._yearSelect.options)if(t.selected){this.selectedYear=parseInt(t.text,10);break}this.dispatchEvent(new CustomEvent("select-changed",{detail:{month:this.selectedMonth,year:this.selectedYear}}))}isMonthDisabled(t,e=this.selectedYear){const r=new Date(e,t-1,1),a=new Date(e,t,0),n=new Date(this.minDate),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),o=new Date(this.maxDate);return!(r>=i&&r<=o||a>=i&&a<=o)}updateMonthSelect(){for(const t of this._monthSelect.options)t.selected=!1;this._monthSelect.options[this.selectedMonth-1].selected=!0}updateYearSelect(){for(const t of this._yearSelect.options)t.selected=!1;for(const t of this._yearSelect.options)if(parseInt(t.text,10)===this.selectedYear){t.selected=!0;break}}handleTabKey(t){t.key==="Tab"&&!t.shiftKey&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("tab-keydown")))}focus(){this._yearSelect.focus()}};Ke.styles=[yr];ut([x({type:String})],Ke.prototype,"minDate",2);ut([x({type:String})],Ke.prototype,"maxDate",2);ut([x({type:Number})],Ke.prototype,"selectedMonth",2);ut([x({type:Number})],Ke.prototype,"selectedYear",2);ut([me(".month-select")],Ke.prototype,"_monthSelect",2);ut([me(".year-select")],Ke.prototype,"_yearSelect",2);Ke=ut([$e("datepicker-timeframe")],Ke);var sd=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,Ve=(t,e,r,a)=>{for(var n=a>1?void 0:a?ld(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&sd(e,r,n),n};let Re=class extends ue{constructor(){super(),this.prevMonthDays=[],this.currentMonthDays=[],this.nextMonthDays=[],this.selectedTimeframe={month:new Date().getMonth()+1,year:new Date().getFullYear()},this.selectedDay=null,this.selectedMonth=null,this.selectedYear=null,this.allowSelectingDaysInPrevAndNextMonths=!0,this.minDate="1900-01-01",this.maxDate="2035-12-31",this.disableWeekendDays=!1,this.disabledDays=""}setLanguage(t){return document.documentElement.lang.includes("de")?t.German:t.English}render(){return z`
            <table role="grid">
              <thead>
                <tr>
                  ${this.setLanguage(vo).map(t=>z`<th scope="col">${t}</th>`)}
                </tr>
              </thead>
              <tbody>
                ${this.getCalendarRows()}
              </tbody>
            </table>
        `}generateCalendar(t=this.selectedTimeframe.month,e=this.selectedTimeframe.year){const r=new Date(e,t-1,1).getDay()||7,a=new Date(e,t-1,0).getDate(),n=new Date(e,t,0).getDate(),i=Array.from({length:r-1},(l,u)=>({day:a-u,disabled:!this.allowSelectingDaysInPrevAndNextMonths})).reverse(),o=Array.from({length:n},(l,u)=>({day:u+1,disabled:!1})),s=Array.from({length:42-(i.length+o.length)},(l,u)=>({day:u+1,disabled:!this.allowSelectingDaysInPrevAndNextMonths}));this.prevMonthDays=i,this.currentMonthDays=o,this.nextMonthDays=s}getCalendarRows(){this.generateCalendar();const t=[];let e=[];return this.prevMonthDays.forEach(({day:r,disabled:a},n)=>{e.length>=7&&(t.push(z`<tr>${e}</tr>`),e=[]);const i=`${this.selectedTimeframe.year}-${this.selectedTimeframe.month}-${r}-${n}`;e.push(z`
            <td data-id=${i}>
              <sbk-round-button
                  size="medium"
                  class="datepicker__calendar-item datepicker__calendar-item--not-current ${this.handleClass(r,this.selectedTimeframe.month-1,this.selectedTimeframe.year)}"
                  @click=${()=>this.setDay(r,this.selectedTimeframe.month-1)}
                  @keydown=${o=>this.handleDayKeyDown(o,i)}
                  ?disabled=${this.isDayDisabled(r,this.selectedTimeframe.month-1)||a}
                  tabindex="0"
                  aria-label="${this.setLanguage(Mt.day)} ${r}"
                  variant="text"
              >
                ${r}
              </sbk-round-button>
            </td>
          `)}),this.currentMonthDays.forEach(({day:r,disabled:a},n)=>{e.length>=7&&(t.push(z`<tr>${e}</tr>`),e=[]);const i=`${this.selectedTimeframe.year}-${this.selectedTimeframe.month}-${r}-${n}`;e.push(z`
            <td data-id=${i}>
              <sbk-round-button
                size="medium"
                class="datepicker__calendar-item ${this.handleClass(r,this.selectedTimeframe.month,this.selectedTimeframe.year)}"
                @click=${()=>this.setDay(r)}
                @keydown=${o=>this.handleDayKeyDown(o,i)}
                ?disabled=${this.isDayDisabled(r)||a}
                tabindex="0"
                aria-label="${this.setLanguage(Mt.day)} ${r}"
                variant="text"
              >
                ${r}
              </sbk-round-button>
            </td>
          `)}),this.nextMonthDays.forEach(({day:r,disabled:a},n)=>{e.length>=7&&(t.push(z`<tr>${e}</tr>`),e=[]);const i=`${this.selectedTimeframe.year}-${this.selectedTimeframe.month}-${r}-${n}`;e.push(z`
            <td data-id=${i}>
              <sbk-round-button
                size="medium"
                class="datepicker__calendar-item datepicker__calendar-item--not-current ${this.handleClass(r,this.selectedTimeframe.month+1,this.selectedTimeframe.year)}"
                @click=${()=>this.setDay(r,this.selectedTimeframe.month+1)}
                @keydown=${o=>this.handleDayKeyDown(o,i)}
                ?disabled=${this.isDayDisabled(r,this.selectedTimeframe.month+1)||a}
                tabindex="0"
                aria-label="${this.setLanguage(Mt.day)} ${r}"
                variant="text"
              >
                ${r}
              </sbk-round-button>
            </td>
          `)}),e.length&&t.push(z`<tr>${e}</tr>`),t}handleClass(t,e,r){return this.isSelectedDay(t,e,r)?"selected":this.isToday(t,e,r)?"today":""}isSelectedDay(t,e,r){return this.selectedDay===t&&this.selectedMonth===e&&this.selectedYear===r}isToday(t,e,r){const a=new Date;return t===a.getDate()&&e===a.getMonth()+1&&r===a.getFullYear()}isDayDisabled(t,e=this.selectedTimeframe.month,r=this.selectedTimeframe.year){const a=new Date(r,e-1,t),n=new Date(this.minDate),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),o=new Date(this.maxDate),s=this.disableWeekendDays&&(a.getDay()===0||a.getDay()===6);let l=!1;const u=this.disabledDays.split("|");for(const d of u){const c=new Date(parseInt(d)*1e3);if(`${t}.${e}`==`${c.getDate()}.${c.getMonth()+1}`){l=!0;break}}return a<i||a>o||s||l}setDay(t,e=this.selectedTimeframe.month,r=this.selectedTimeframe.year){this.isDayDisabled(t,e)||(this.selectedDay=t,this.selectedMonth=e,this.selectedYear=r,e!==this.selectedTimeframe.month&&(this.selectedTimeframe.month=e),r!==this.selectedTimeframe.year&&(this.selectedTimeframe.year=r),this.dispatchEvent(new CustomEvent("date-selected",{detail:{day:t,month:e,year:r}})))}handleDayKeyDown(t,e){const r={ArrowUp:-7,ArrowDown:7,ArrowLeft:-1,ArrowRight:1};if(t.key in r){t.preventDefault();const a=Array.from(this.shadowRoot.querySelectorAll("td")),i=a.findIndex(o=>o.getAttribute("data-id")===e)+r[t.key];if(i>=0&&i<a.length){const s=a[i].querySelector("sbk-round-button");s==null||s.focus()}}else t.key==="Tab"&&this.handleTabKey(t)}handleTabKey(t){t.preventDefault(),this.dispatchEvent(new CustomEvent("tab-keydown",{detail:t}))}focus(){const e=Array.from(this.shadowRoot.querySelectorAll("td"))[0].querySelector("sbk-round-button");e==null||e.focus()}};Re.styles=[yr];Ve([x({type:Object})],Re.prototype,"selectedTimeframe",2);Ve([x({type:Number})],Re.prototype,"selectedDay",2);Ve([x({type:Number})],Re.prototype,"selectedMonth",2);Ve([x({type:Number})],Re.prototype,"selectedYear",2);Ve([x({type:Boolean})],Re.prototype,"allowSelectingDaysInPrevAndNextMonths",2);Ve([x({type:String})],Re.prototype,"minDate",2);Ve([x({type:String})],Re.prototype,"maxDate",2);Ve([x({type:Boolean})],Re.prototype,"disableWeekendDays",2);Ve([x({type:String})],Re.prototype,"disabledDays",2);Re=Ve([$e("datepicker-calendar")],Re);var ud=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,Jt=(t,e,r,a)=>{for(var n=a>1?void 0:a?cd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&ud(e,r,n),n};let tt=class extends ue{constructor(){super(),this.prevButtonDisabled=!1,this.nextButtonDisabled=!1,this.month=[]}render(){return z`
          <div class="datepicker-navigation">
              <sbk-round-button class="prev navigation-button"
                    @mousedown=${()=>this.changeMonth(-1)}
                    @touchdown=${()=>this.changeMonth(-1)}
                    @keydown=${this.handleTabKey}
                    ?disabled=${this.prevButtonDisabled}
                    tabindex="0" icon="chevron-left" variant="icon-only" size="medium">${this.setLanguage(mi.previous)}</sbk-round-button>
              <sbk-round-button class="next navigation-button"
                    @mousedown=${()=>this.changeMonth(1)}
                    @touchdown=${()=>this.changeMonth(1)}
                    @keydown=${this.handleTabKey}
                    ?disabled=${this.nextButtonDisabled}
                    tabindex="0" icon="chevron-right" variant="icon-only" size="medium">${this.setLanguage(mi.next)}</sbk-round-button>
            </div>
        `}updated(){this._prevButton.disabled||this._prevButton.removeAttribute("disabled"),this._nextButton.disabled||this._nextButton.removeAttribute("disabled")}setLanguage(t){return document.documentElement.lang.includes("de")?t.German:t.English}changeMonth(t){this.dispatchEvent(new CustomEvent("navigation-changed",{detail:{increment:t}}))}handleTabKey(t){t.target===this._prevButton?(t.preventDefault(),t.shiftKey?this.dispatchEvent(new CustomEvent("navigation-tab-keydown",{detail:"prev"})):this._nextButton.focus()):t.target===this._nextButton&&(t.preventDefault(),t.shiftKey?this._prevButton.focus():this.dispatchEvent(new CustomEvent("navigation-tab-keydown",{detail:"next"})))}focus(){this._prevButton.focus()}};tt.styles=[yr];Jt([x({type:Boolean})],tt.prototype,"prevButtonDisabled",2);Jt([x({type:Boolean})],tt.prototype,"nextButtonDisabled",2);Jt([me(".prev")],tt.prototype,"_prevButton",2);Jt([me(".next")],tt.prototype,"_nextButton",2);tt=Jt([$e("datepicker-navigation")],tt);var dd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,ee=(t,e,r,a)=>{for(var n=a>1?void 0:a?fd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&dd(e,r,n),n};let X=class extends Ye(Je(nt(ue))){constructor(){super(),this.datepickerValue="",this.name="",this.disabled=!1,this.readonly=!1,this.required=!1,this.hidePopup=!1,this.daysInMonth=[],this.selectedYear=null,this.selectedMonth=null,this.selectedYearInDatepicker=new Date().getFullYear(),this.selectedMonthInDatepicker=new Date().getMonth()+1,this.selectedDay=null,this.minDate="1900-01-01",this.maxDate="2035-12-31",this.disableWeekendDays=!1,this.disabledDays="",this.allowSelectingDaysInPrevAndNextMonths=!0,this.weekDays=this.setLanguage(vo),this.description="",this.placeholder="",this.isOpen=!1,this.renderAbove=!1,this.datepickerHeight=410,this.preventFocusOut=!1,this.touchStart=null,this.validatorMapper={required:lt,validateDate:De,validateBirthday:et,validateWorkday:co,validateCallBackDay:lc,validateBonusprogramDate:gc,validateBirthdayOgs:fo,validateFutureDate:En,validatePastDate:Ac,validateBirthdayMaxAge:uo,validateDatePlausibility:po,validateFromDate:Oc,validateToDate:Ic},this.handleDocumentClick=t=>{if(this.hidePopup)return;t.composedPath().includes(this)||this.closeDatepicker()},this.handleFocusOut=t=>{var r;const e=t.relatedTarget;(r=this.shadowRoot)!=null&&r.contains(e)||(this.preventFocusOut||this.closeDatepicker(),this.preventFocusOut=!1)},this._internals=this.attachInternals(),this.addEventListener("form-control-dependency-show",()=>{this.show(),this.setValue()}),this.addEventListener("form-control-dependency-hide",()=>{this.hide(),this.resetValue()})}connectedCallback(){if(super.connectedCallback(),this.datepickerValue){this.datepickerValue=this.transformToGermanDateFormat(this.datepickerValue);const t=this.transformDate(this.datepickerValue);this._internals.setFormValue(t),this.selectedDay=new Date(t).getDate(),this.selectedMonth=new Date(t).getMonth()+1,this.selectedYear=new Date(t).getFullYear()}document.addEventListener("click",this.handleDocumentClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("touchstart",this.handleTouchStart),this.addEventListener("touchmove",this.handleTouchMove),this.addEventListener("touchend",this.handleTouchEnd)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleDocumentClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("focusout",this.handleFocusOut),this.removeEventListener("touchstart",this.handleTouchStart),this.removeEventListener("touchmove",this.handleTouchMove),this.removeEventListener("touchend",this.handleTouchEnd)}willUpdate(t){if(t.has("datepickerValue")){De.isValid(this.datepickerValue)&&this._internals.setFormValue(this.transformDate(this.datepickerValue));const r=new CustomEvent("datepicker-change",{detail:{value:this.datepickerValue},bubbles:!0,composed:!0});this.dispatchEvent(r)}}setLanguage(t){return document.documentElement.lang.includes("de")?t.German:t.English}render(){return z`
            <div
                class="input__wrapper${this.invalid?" input__wrapper--error":""}${this.disabled||this.readonly?" input__wrapper--disabled":""}">
                ${this.labelTemplate("label",!1,this.invalid)}
                <div class="input__container">
                    <input
                        id="input"
                        class="input input--large"
                        ?disabled=${this.disabled}
                        ?readonly=${this.readonly}
                        ?required=${this.required}
                        .value=${this.datepickerValue}
                        @input=${this.handleInput}
                        @keydown=${this.handleInputKeyDown}
                        @blur=${this._validate}
                        tabindex="0"
                        placeholder=${this.placeholder}
                        aria-haspopup="dialog"
                        aria-expanded=${this.isOpen}
                        aria-controls="datepicker-dialog"></input>
                    ${this.renderDatepickerIcon()}
                    ${this.isOpen?this.renderDatePicker():""}
                </div>
                ${ot(this.description&&!this.invalid,()=>z`
                            <sbk-annotation id="annotation" variant="info" ?disabled=${this.disabled||this.readonly}>${Pe(this.description)}</sbk-annotation>
                        `)}
                ${this.invalid?this.validationErrorTemplate("annotation"):""}
            </div>
        `}renderDatepickerIcon(){return this.hidePopup?"":z`
            <sbk-round-button icon="calender" variant="icon-only" size="small" class="datepicker-icon" @click=${this.toggleDatepicker}></sbk-round-button>
        `}renderDatePicker(){return z`
            <div
                class="datepicker ${this.hidePopup?"input--only":""} ${this.renderAbove?"datepicker__above":""}"
                id="datepicker-dialog" @click=${t=>t.stopPropagation()} role="dialog"
                aria-modal="true" part="datepicker-dialog">
                <datepicker-timeframe
                    minDate=${this.minDate}
                    maxDate=${this.maxDate}
                    selectedMonth=${this.selectedMonthInDatepicker}
                    selectedYear=${this.selectedYearInDatepicker}
                    @select-changed=${this.handleChange}
                    @tab-keydown=${this.handleTabFromTimeframe}></datepicker-timeframe>
                <datepicker-calendar
                    minDate=${this.minDate}
                    maxDate=${this.maxDate}
                    selectedDay=${this.selectedDay}
                    selectedMonth=${this.selectedMonth}
                    selectedYear=${this.selectedYear}
                    ?disableWeekendDays=${this.disableWeekendDays}
                    disabledDays=${this.disabledDays}
                    @date-selected=${this.selectDate}
                    @tab-keydown=${this.handleTabKey}></datepicker-calendar>
                <datepicker-navigation
                    .prevButtonDisabled=${this.isMonthDisabled(this.selectedMonthInDatepicker-1)}
                    .nextButtonDisabled=${this.isMonthDisabled(this.selectedMonthInDatepicker+1)}
                    @navigation-changed=${this.handleNavigation}
                    @navigation-tab-keydown=${this.handleNavigationTabKeydown}
                ></datepicker-navigation>
            </div>
        `}transformDate(t){if(!t)return"";const[e,r,a]=t.split(".");return`${a}-${r}-${e}`}transformToGermanDateFormat(t){const[e,r,a]=t.split("-");return`${a}.${r}.${e}`}handleInput(t){const e=t.target,r=e==null?void 0:e.value.replace(/[^0-9.]/g,"");if(e.value=r,!r){this.datepickerValue="";return}if(!De.isValid(r)){this.datepickerValue=r;return}const[n,i,o]=r.split(".").map(Number);this.isDayDisabled(n,i,o)||(this.selectedDay=n,this.selectedMonth=i,this.selectedYear=o,this.selectedMonthInDatepicker=i,this.selectedYearInDatepicker=o,this.datepickerValue=r)}_validate(t){var n;if(t instanceof FocusEvent){const i=t.relatedTarget;if((n=this.shadowRoot)!=null&&n.contains(i))return}const e=t.target,r=this.getValidators();this.handleErrors(r,e.value);const a=new CustomEvent("datepicker-blur");this.dispatchEvent(a)}handleInputKeyDown(t){var e,r;if(t.key==="Enter"){const a=t.target;this.datepickerValue=a.value,this._internals.setFormValue(this.transformDate(this.datepickerValue));const n=(e=this.closest("form"))==null?void 0:e.querySelector('input[type="submit"]');(r=this._internals.form)==null||r.requestSubmit(n)}else t.key==="Escape"&&this.isOpen&&this.closeDatepicker()}handleKeyDown(t){t.key==="Escape"&&this.isOpen&&this.closeDatepicker()}handleTabFromTimeframe(){this.calendar.focus()}handleNavigation(t){this.changeMonth(t.detail.increment)}handleNavigationTabKeydown(t){t.detail==="prev"?this.calendar.focus():this.isOpen=!1}changeMonth(t){this.preventFocusOut=!0;const e=this.selectedMonthInDatepicker+t;e>12?(this.selectedMonthInDatepicker=1,this.selectedYearInDatepicker++):e<1?(this.selectedMonthInDatepicker=12,this.selectedYearInDatepicker--):this.selectedMonthInDatepicker+=t,this.timeframe.selectedMonth=this.selectedMonthInDatepicker,this.timeframe.selectedYear=this.selectedYearInDatepicker,this.calendar.selectedTimeframe={month:this.selectedMonthInDatepicker,year:this.selectedYearInDatepicker},this.setNavigationButtons()}selectDate(t){this.setDay(t.detail.day,t.detail.month,t.detail.year)}setDay(t,e=this.selectedMonthInDatepicker,r=this.selectedYearInDatepicker){this.isDayDisabled(t,e)||(this.selectedDay=t,e!==this.selectedMonthInDatepicker&&(this.selectedMonthInDatepicker=e),r!==this.selectedYearInDatepicker&&(this.selectedYearInDatepicker=r),this.updateDatepickerValue(),this.closeDatepicker())}isDayDisabled(t,e=this.selectedMonthInDatepicker,r=this.selectedYearInDatepicker){const a=new Date(r,e-1,t),n=new Date(this.minDate),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),o=new Date(this.maxDate),s=this.disableWeekendDays&&(a.getDay()===0||a.getDay()===6);let l=!1;const u=this.disabledDays.split("|");for(const d of u){const c=new Date(parseInt(d)*1e3);if(`${t}.${e}`==`${c.getDate()}.${c.getMonth()+1}`){l=!0;break}}return a<i||a>o||s||l}isMonthDisabled(t,e=this.selectedYearInDatepicker){const r=new Date(e,t-1,1),a=new Date(e,t,0),n=new Date(this.minDate),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()),o=new Date(this.maxDate);return!(r>=i&&r<=o||a>=i&&a<=o)}handleTabKey(t){t.preventDefault();const e=t.detail.shiftKey?this.timeframe:this.navigation;e==null||e.focus()}handleTouchStart(t){if(this.preventFocusOut=!0,this.isOpen){const e=this.shadowRoot.querySelector("datepicker-calendar").shadowRoot.querySelector("table"),r=t.touches[0];e&&this.isInArea(r,e.getBoundingClientRect())&&(this.touchStart=r.screenX,e.style.cssText="",e.classList.remove("slide-in-left","slide-in-right"))}}handleTouchMove(t){if(this.preventFocusOut=!0,!!this.touchStart&&this.isOpen){const e=this.shadowRoot.querySelector("datepicker-calendar").shadowRoot.querySelector("table"),a=t.touches[0].screenX-this.touchStart;e&&(a>0&&this.isMonthDisabled(this.selectedMonthInDatepicker+1)||a<0&&this.isMonthDisabled(this.selectedMonthInDatepicker-1))&&(e.style.transform=`translateX(${a}px)`,e.style.opacity=`${1-Math.abs(a)/e.offsetWidth}`)}}handleTouchEnd(t){if(this.preventFocusOut=!0,!!this.touchStart&&this.isOpen){const e=this.shadowRoot.querySelector("datepicker-calendar").shadowRoot.querySelector("table");if(e){e.style.transition="transform 0.3s ease, opacity 0.3s ease";const r=t.changedTouches[0].screenX,a=this.touchStart-r;Math.abs(a)>50?(a>0?(e.classList.add("slide-out-left"),this.isMonthDisabled(this.selectedMonthInDatepicker+1)||this.changeMonth(1)):(e.classList.add("slide-out-right"),this.isMonthDisabled(this.selectedMonthInDatepicker-1)||this.changeMonth(-1)),setTimeout(()=>{this.resetSwipe(e)},300)):this.resetSwipe(e)}}}isInArea(t,e){const r=t.clientX,a=t.clientY;return r>=e.left&&r<=e.right&&a>=e.top&&a<=e.bottom}resetSwipe(t){t.classList.remove("slide-out-left","slide-out-right"),t.classList.add("slide-in-left","slide-in-right"),t.style.transform="translateX(0)",t.style.opacity="1",this.touchStart=null}handleChange(t){this.preventFocusOut=!0,this.selectedMonthInDatepicker=t.detail.month,this.selectedYearInDatepicker=t.detail.year,this.calendar.selectedTimeframe={month:t.detail.month,year:t.detail.year},this.setNavigationButtons()}setNavigationButtons(){this.navigation.prevButtonDisabled=this.isMonthDisabled(this.selectedMonthInDatepicker-1),this.navigation.nextButtonDisabled=this.isMonthDisabled(this.selectedMonthInDatepicker+1)}toggleDatepicker(t){t.stopPropagation(),!this.hidePopup&&(this.isOpen=!this.isOpen,this.isOpen&&this.updateComplete.then(()=>{this.selectedMonth&&this.selectedYear?(this.calendar.selectedTimeframe={month:this.selectedMonth,year:this.selectedYear},this.selectedMonthInDatepicker=this.selectedMonth,this.selectedYearInDatepicker=this.selectedYear):this.calendar.selectedTimeframe={month:this.selectedMonthInDatepicker,year:this.selectedYearInDatepicker};const e=this.shadowRoot.querySelector(".selected sbk-round-button");e==null||e.focus()}),this.renderAbove=!this.isEnoughSpaceBelow())}closeDatepicker(){this.isOpen=!1}updateDatepickerValue(){this.datepickerValue=`${this.selectedDay.toString().padStart(2,"0")}.${this.selectedMonthInDatepicker.toString().padStart(2,"0")}.${this.selectedYearInDatepicker}`,this.selectedMonth=this.selectedMonthInDatepicker,this.selectedYear=this.selectedYearInDatepicker,this.validate(),this._internals.setFormValue(this.transformDate(this.datepickerValue))}validate(){const t=this.getValidators();this.handleErrors(t,this.datepickerValue)}hide(){this.hidden=!0}show(){this.hidden=!1}resetValue(){this._internals.setFormValue("")}setValue(){this._internals.setFormValue(this.transformDate(this.datepickerValue))}isEnoughSpaceBelow(){const t=this.getBoundingClientRect();return window.innerHeight-t.bottom>=this.datepickerHeight}};X.formAssociated=!0;X.styles=[We,Vt,yr];ee([x({reflect:!0,attribute:"datepicker-value"})],X.prototype,"datepickerValue",2);ee([x({reflect:!0})],X.prototype,"name",2);ee([x({type:Boolean})],X.prototype,"disabled",2);ee([x({type:Boolean})],X.prototype,"readonly",2);ee([x({type:Boolean})],X.prototype,"required",2);ee([x({type:Boolean})],X.prototype,"hidePopup",2);ee([x({type:Array})],X.prototype,"daysInMonth",2);ee([x({type:Number})],X.prototype,"selectedYear",2);ee([x({type:Number})],X.prototype,"selectedMonth",2);ee([x({type:Number})],X.prototype,"selectedDay",2);ee([x({type:String})],X.prototype,"minDate",2);ee([x({type:String})],X.prototype,"maxDate",2);ee([x({type:Boolean})],X.prototype,"disableWeekendDays",2);ee([x({type:String})],X.prototype,"disabledDays",2);ee([x({type:Boolean})],X.prototype,"allowSelectingDaysInPrevAndNextMonths",2);ee([x({type:Array})],X.prototype,"weekDays",2);ee([x()],X.prototype,"description",2);ee([x()],X.prototype,"placeholder",2);ee([Se()],X.prototype,"isOpen",2);ee([Se()],X.prototype,"renderAbove",2);ee([Se()],X.prototype,"datepickerHeight",2);ee([me("datepicker-timeframe")],X.prototype,"timeframe",2);ee([me("datepicker-calendar")],X.prototype,"calendar",2);ee([me("datepicker-navigation")],X.prototype,"navigation",2);X=ee([$e("sbk-datepicker")],X);var pd=Object.defineProperty,be=(t,e,r,a)=>{for(var n=void 0,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=o(e,r,n)||n);return n&&pd(e,r,n),n};const zn=t=>{const r=class r extends Ye(Je(nt(t))){constructor(){super(),this.autocompleteDisabled=!1,this.disabled=!1,this.description="",this.name="",this.placeholder="",this.readonly=!1,this.required=!1,this.size="large",this.value="",this.visible=!0,this._expanded=!1,this.suggestions=[],this.listboxHasVisualFocus=!1,this.comboboxHasVisualFocus=!1,this.option=null,this.firstOption=null,this.lastOption=null,this.isList=!0,this.isNone=!1,this.isBoth=!1,this.hasHover=!1,this.selectOnlyOption=!1,this.onBackgroundPointerUp=n=>{n.target&&n.target instanceof Node&&!this.isPointerWithinElement(n,this._combobox)&&!this.isPointerWithinElement(n,this._listbox)&&(this.comboboxHasVisualFocus=!1,this.setCurrentOptionStyle(!1),this.removeVisualFocusAll(),setTimeout(this.close.bind(this,!0),300))},this._internals=this.attachInternals(),this.onComboboxKeyUp=this.debounce(this.onComboboxKeyUp.bind(this),1e3)}willUpdate(n){if(n.has("value")){this._internals.setFormValue(this.value);const i=new CustomEvent("input-value-changed",{detail:{value:this.value},bubbles:!0});this.dispatchEvent(i)}}connectedCallback(){super.connectedCallback(),this._internals.setFormValue(this.value),document.body.addEventListener("pointerup",this.onBackgroundPointerUp,!0)}disconnectedCallback(){document.body.removeEventListener("pointerup",this.onBackgroundPointerUp,!0),super.disconnectedCallback()}render(){return z`
                <div class="input__wrapper${this.invalid?" input__wrapper--error":""}${this.disabled||this.readonly?" input__wrapper--disabled":""}">
                    <div class="autocomplete__wrapper">
                        ${this.labelTemplate("input",!1,this.invalid)} 
                        ${this.autocompleteDisabled?this.renderStandardInput():this.renderAutocompleteInput()}
                    </div>
                    ${ot(this.description&&!this.invalid,()=>z`
                        <sbk-annotation id="annotation" variant="info" ?disabled=${this.disabled||this.readonly}>${this.description}</sbk-annotation>
                    `)} 
                    ${this.invalid?this.validationErrorTemplate("annotation"):""}
                </div>
            `}renderStandardInput(){return z`
                <input id="autocompleteInput" 
                       class="input input--large" 
                       name=${this.name} 
                       placeholder=${this.placeholder} 
                       .value=${this.value}
                       @change=${this.onComboboxChange}
                       @blur=${this.onComboboxBlur} />
                ${this.renderSuggestions()}
            `}renderAutocompleteInput(){return z`
                <input id="autocompleteInput" 
                       class="input input--large" 
                       name=${this.name} 
                       placeholder=${this.placeholder} 
                       .value=${this.value} 
                       @keydown=${this.onComboboxKeyDown} 
                       @keyup=${this.onComboboxKeyUp} 
                       @change=${this.onComboboxChange} 
                       @focus=${this.onComboboxFocus} 
                       @blur=${this.onComboboxBlur} 
                       @click=${this.onComboboxClick} 
                       role="combobox" 
                       aria-expanded=${this._expanded} 
                       autocomplete="off" 
                       aria-autocomplete="list" 
                       aria-controls="listbox" />
                ${this.renderSuggestions()}
            `}renderSuggestions(){return this._combobox&&this._combobox.value.length>0&&this.suggestions.length===0?z`
                <ul role="listbox"
                    @pointerover=${this.onListboxPointerover}
                    @pointerout=${this.onListboxPointerout}
                    id="listbox"
                    aria-label="Autocomplete"
                    class="autocomplete-items">
                        <li id="option"
                                    role="option"
                                    class="autocomplete-item"
                                    @click=${this.onNotFoundOptionClick}
                                    disabled><span>${this._getTYPO3Label("noMatchesFound","Keine Treffer gefunden")}</span></li>
                </ul>
            `:z`
                <ul role="listbox"
                    @pointerover=${this.onListboxPointerover}
                    @pointerout=${this.onListboxPointerout}
                    id="listbox"
                    aria-label="Autocomplete"
                    class="autocomplete-items">
                    ${Gi(this.suggestions,(n,i)=>z`
                                <li id="option${i+1}"
                                    role="option"
                                    class="autocomplete-item"
                                    @click=${this.onOptionClick}
                                    @pointerover=${this.onOptionPointerover}
                                    @pointerout=${this.onOptionPointerout}
                                    data-suggestion=${n.value}><span>${Pe(this._decorateAutosuggestion(n.label))}</span></li>
                    `)}
                </ul>
            `}_decorateAutosuggestion(n){const i=new RegExp(this._combobox.value,"gi");return n.replace(i,"<strong>$&</strong>")}_getTYPO3Label(n,i){return typeof TYPO3<"u"?TYPO3.lang[n]:i}debounce(n,i){let o;return function(...s){clearTimeout(o),o=setTimeout(()=>n.apply(this,s),i)}}async _querySuggestions(n){console.log(n),await this.updateComplete}getLowercaseContent(n){var i;return((i=n.dataset.suggestion)==null?void 0:i.toLowerCase())??""}isOptionInView(n){const i=n.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&i.right<=(window.innerWidth||document.documentElement.clientWidth)}isPointerWithinElement(n,i){const o=i.getBoundingClientRect(),s=n.clientX,l=n.clientY;return s>=o.left&&s<=o.right&&l>=o.top&&l<=o.bottom}setActiveDescendant(n){n&&this.listboxHasVisualFocus?(this._combobox.setAttribute("aria-activedescendant",n.id),this.isOptionInView(n)||n.scrollIntoView({behavior:"smooth",block:"nearest"})):this._combobox.setAttribute("aria-activedescendant","")}setValue(n){this._combobox.value=n,this.value=n,this._combobox.setSelectionRange(n.length,n.length)}setOption(n,i=!1){n&&(this.option=n,this.setCurrentOptionStyle(this.option),this.setActiveDescendant(this.option),this.isBoth&&(this._combobox.value=this.option.dataset.suggestion??"",this.value=this.option.dataset.suggestion??"",i?this.option.dataset.suggestion&&this._combobox.setSelectionRange(this.option.dataset.suggestion.length,this.option.dataset.suggestion.length):this.option.dataset.suggestion&&this._combobox.setSelectionRange(this._combobox.value.length,this.option.dataset.suggestion.length)))}setVisualFocusCombobox(){this._listbox.classList.remove("focus"),this._combobox.classList.add("focus"),this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1,this.setActiveDescendant(!1)}setVisualFocusListbox(){this._combobox.classList.remove("focus"),this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0,this._listbox.classList.add("focus"),this.option&&this.setActiveDescendant(this.option)}removeVisualFocusAll(){this._combobox.classList.remove("focus"),this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this._listbox.classList.remove("focus"),this.option=null,this.setActiveDescendant(!1)}async filterOptions(){await this._querySuggestions(this._combobox.value);let n=null;const i=this.option,o=this._optionNodes.length;if(o>0){this.firstOption=this._optionNodes[0],this.lastOption=this._optionNodes[o-1];const s=[...this._optionNodes];i&&s.indexOf(i)>=0?n=i:n=this.firstOption}else this.firstOption=null,n=null,this.lastOption=null;return n}setCurrentOptionStyle(n){for(let i=0;i<this._optionNodes.length;i++){const o=this._optionNodes[i];o===n?(o.setAttribute("aria-selected","true"),this._listbox.scrollTop+this._listbox.offsetHeight<o.offsetTop+o.offsetHeight?this._listbox.scrollTop=o.offsetTop+o.offsetHeight-this._listbox.offsetHeight:this._listbox.scrollTop>o.offsetTop+2&&(this._listbox.scrollTop=o.offsetTop)):o.removeAttribute("aria-selected")}}getPreviousOption(n){if(n&&n!==this.firstOption){const i=Array.from(this._optionNodes),o=i.indexOf(n);return i[o-1]}return this.lastOption}getNextOption(n){if(n&&n!==this.lastOption){const i=Array.from(this._optionNodes),o=i.indexOf(n);return i[o+1]}return this.firstOption}doesOptionHaveFocus(){return this._combobox.getAttribute("aria-activedescendant")!==""}isOpen(){return this._listbox.style.display==="block"}isClosed(){return this._listbox.style.display!=="block"}hasOptions(){return this._optionNodes.length}open(){this._listbox.style.display="block",this._expanded=!0}close(n=!1){(n||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus&&!this.hasHover)&&(this.setCurrentOptionStyle(!1),this._listbox.style.display="none",this._expanded=!1,this.setActiveDescendant(!1),this._combobox.classList.add("focus"))}onComboboxChange(n){const i=n.target;this._internals.setFormValue(i.value),this.value=i.value;const o=new CustomEvent("input-value-changed",{detail:{value:this.value},bubbles:!0});this.dispatchEvent(o)}async onComboboxKeyDown(n){var s,l;let i=!1;const o=n.altKey;if(!(n.ctrlKey||n.shiftKey)){switch(n.key){case"Enter":this.listboxHasVisualFocus&&this.setValue(((s=this.option)==null?void 0:s.dataset.suggestion)??""),this.close(!0),this.setVisualFocusCombobox(),i=!0;break;case"Down":case"ArrowDown":this._optionNodes.length>0&&(o?this.open():(this.open(),this.listboxHasVisualFocus||this.isBoth&&this._optionNodes.length>1?(this.setOption(this.getNextOption(this.option),!0),this.setVisualFocusListbox()):(this.setOption(this.firstOption,!0),this.setVisualFocusListbox()))),i=!0;break;case"Up":case"ArrowUp":this.hasOptions()&&(this.listboxHasVisualFocus?this.setOption(this.getPreviousOption(this.option),!0):(this.open(),o||(this.setOption(this.lastOption,!0),this.setVisualFocusListbox()))),i=!0;break;case"Esc":case"Escape":this.isOpen()?(this.close(!0),await this.filterOptions(),this.setVisualFocusCombobox()):(this.setValue(""),this._combobox.value="",this.value=""),this.option=null,i=!0;break;case"Tab":this.close(!0),this.listboxHasVisualFocus&&this.option&&this.setValue(((l=this.option)==null?void 0:l.dataset.suggestion)??"");break;case"Home":this._combobox.setSelectionRange(0,0),i=!0;break;case"End":this._combobox.setSelectionRange(this._combobox.value.length,this._combobox.value.length),i=!0;break}i&&(n.stopPropagation(),n.preventDefault())}}isPrintableCharacter(n){return n.length===1&&n.match(/\S| /)}async onComboboxKeyUp(n){let i=!1,o=null;const s=n.key;if(!(n.key==="Escape"||n.key==="Esc")){switch(n.key){case"Backspace":this.setVisualFocusCombobox(),this.setCurrentOptionStyle(!1),this.option=null,o=await this.filterOptions(),i=!0,o?this.isClosed()&&this._combobox.value.length&&this.open():this.close();break;case"Left":case"ArrowLeft":case"Right":case"ArrowRight":case"Home":case"End":this.option=null,this.setCurrentOptionStyle(!1),this.setVisualFocusCombobox(),i=!0;break;default:this.isPrintableCharacter(s)&&(this.setVisualFocusCombobox(),this.setCurrentOptionStyle(!1),i=!0,this.isList||this.isBoth?(o=await this.filterOptions(),o?(this.isClosed()&&this._combobox.value.length&&this.open(),this.getLowercaseContent(o).indexOf(this._combobox.value.toLowerCase())===0?(this.option=o,(this.isBoth||this.listboxHasVisualFocus)&&(this.setCurrentOptionStyle(o),this.isBoth&&this.setOption(o))):(this.option=null,this.setCurrentOptionStyle(!1))):(this.close(),this.option=null,this.setActiveDescendant(!1))):this._combobox.value.length&&this.open());break}i&&(n.stopPropagation(),n.preventDefault())}}onComboboxClick(){this._optionNodes.length!==0&&(this.isOpen()?this.close(!0):this.open())}async onComboboxFocus(){var n;this.setVisualFocusCombobox(),this.option=null,this.setCurrentOptionStyle(!1),await this.filterOptions(),this.suggestions.length&&(this.suggestions.length===1?this.setValue(((n=this.firstOption)==null?void 0:n.dataset.suggestion)??""):this.open())}onComboboxBlur(){this.removeVisualFocusAll();const n=this.getValidators();this.handleErrors(n,this._combobox.value)}onListboxPointerover(){this.hasHover=!0}onListboxPointerout(){this.hasHover=!1,setTimeout(this.close.bind(this,!1),300)}onOptionClick(n){if(n.target&&n.target instanceof HTMLElement){let i=n.target;n.target.classList.contains("autocomplete-item")||(i=i.closest(".autocomplete-item")),this._combobox.value=(i==null?void 0:i.dataset.suggestion)??"",this.value=(i==null?void 0:i.dataset.suggestion)??"",this.close(!0)}}onNotFoundOptionClick(n){n.target&&n.target instanceof HTMLElement&&(this.value=this._combobox.value,this.close(!0))}onOptionPointerover(){this.hasHover=!0,this.open()}onOptionPointerout(){this.hasHover=!1,setTimeout(this.close.bind(this,!1),300)}};r.formAssociated=!0,r.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:!0};let e=r;return be([x({attribute:"autocomplete-disabled"})],e.prototype,"autocompleteDisabled"),be([x({type:Boolean})],e.prototype,"disabled"),be([x()],e.prototype,"description"),be([x()],e.prototype,"name"),be([x()],e.prototype,"placeholder"),be([x({type:Boolean})],e.prototype,"readonly"),be([x({type:Boolean})],e.prototype,"required"),be([x()],e.prototype,"size"),be([x()],e.prototype,"value"),be([Se()],e.prototype,"visible"),be([Nn({slot:"additionalInputs"})],e.prototype,"_assignedElements"),be([Se()],e.prototype,"_expanded"),be([Se()],e.prototype,"suggestions"),be([me("input")],e.prototype,"_combobox"),be([me('[role="listbox"]')],e.prototype,"_listbox"),be([Un('[role="option"]')],e.prototype,"_optionNodes"),e},Kn=Ue` 
    :host {
        --search-input__color: var(--_search-input__color, var(--sbkInputFgColorOnLightDefault));
        --search-input__color--disabled: var(--_search-input__color--disabled, var(--sbkInputFgColorOnLightDisabled));
        --search-inputt__color--error: var(--_search-input__color--error, var(--sbkInputFgColorOnLightError));

        --search-input__bg: var(--_search-input__bg, var(--sbkInputBgColorOnLightEnabled));
        --search-input__bg--active: var(--_search-input__bg--active, var(--sbkInputBgColorOnLightActive));
        --search-input__bg--hover: var(--_search-input__bg--hover, var(--sbkInputBgColorOnLightHover));
        --search-input__bg--focus: var(--_search-input__bg--focus, var(--sbkInputBgColorOnLightFocus));
        --search-input__bg--disabled: var(--_search-input__bg--disabled, var(--sbkInputBgColorOnLightDisabled));
        --search-input__bg--error: var(--_search-input__bg--error, var(--sbkSearchBgColorInputFieldOnLightError));

        --search-input__border: var(--_search-input__border, var(--sbkInputBorderOnLightEnabled));
        --search-input__border--active: var(--_search-input__border--active, var(--sbkInputBorderOnLightActive));
        --search-input__border--disabled: var(--_search-input__border--disabled, var(--sbkInputBorderOnLightDisabled));
        --search-input__border--error: var(--_search-input__border--error, var(--sbkInputBorderOnLightError));
        --search-input__border--focus: var(--_search-input__border--focus, var(--sbkInputBorderOnLightFocus));
        --search-input__border--hover: var(--_search-input__border--hover, var(--sbkInputBorderOnLightHover));
        --search-input__border--readonly: var(--_search-input__border--readonly, var(--sbkInputBorderOnLightDisabled));

        --search-flyout__bg: var(--_search__bg, var(--sbkSelectColorBgColorOnLightFlyoutEnabled));
        --search-flyout-item__bg: var(--_search-flyout-item__bg, var(--sbkSearchBgColorFlyoutEnabled));
        --search-flyout-item__bg--active: var(--_search-flyout-item__bg--active, var(--sbkSearchBgColorFlyoutActive));
        --search-flyout__box-shadow: var(--_search-flyout__box-shadow, var(--sbkSelectFlyoutOnLightShadow));
        --search-option__color: var(--_select-option__color, var(--sbkSelectColorFgColorOnLightDefault));
        --search-option__color--active: var(--_select-option__color--active, var(--sbkSelectColorFgColorOnDarkEnabled));
        --search-option__color--disabled: var(--_select-option__color--disabled, var(--sbkSelectColorFgColorOnLightDisabled));
        --search-option__bg--active: var(--_select-option__bg--active, var(--sbkSelectColorBgColorOnLightFlyoutActive));
    }
    
    * {
        box-sizing: border-box;
    }
    
    .autocomplete__wrapper {
        position: relative;
    }

    #listbox {
        background-color: var(--search-flyout__bg);
        border-radius: var(--sbkSelectBorderRadiusDefault);
        display: none;
        left: 0;
        position: absolute;
        top: 100%;
        width: 100%;
        z-index: 100;
        margin-top: var(--sbkSelectSpacing3xs);
        box-shadow: var(--search-flyout__box-shadow);
        max-height: 300px;
        overflow-y: scroll;
        padding: var(--sbkSelectSpacingXs) 0;
    }

    .autocomplete-item {
        cursor: pointer;
        font: var(--sbkSelectTypographyFlyoutSm);
        color: var(--search-option__color);
        padding: var(--sbkSelectListItemSpacingInsetTopBottom) var(--sbkSelectListItemSpacingInsetLeftRight);
        display: flex;
        gap: var(--sbkSearchSpacingInputField3xs);
        background-color: var(--sbkSearchBgColorFlyoutActive);

        sbk-icon {
            padding-right: var(--sbkSelectListItemSpacingIconGap);
        }
    }

    @media (hover: hover) and (pointer: fine) {
        .autocomplete-item:hover {
            background-color: var(--search-option__bg--active);
            color: var(--search-option__color--active);
        }
    }

    .autocomplete-item[aria-selected] {
        background-color: var(--search-option__bg--active);
        color: var(--search-option__color--active);
    }

    .autocomplete-item[disabled] {
      color: var(--sbkSelectColorFgColorOnLightDisabled)
    }

    @media (hover: hover) and (pointer: fine) {
        .autocomplete-item[disabled]:hover {
            background-color: var(--sbkSelectColorBgColorOnLightFlyoutEnabled);
            color: var(--sbkSelectColorFgColorOnLightDisabled);
        }
    }
    
`;var hd=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,gd=(t,e,r,a)=>{for(var n=a>1?void 0:a?vd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&hd(e,r,n),n};let xn=class extends zn(ue){constructor(){super(...arguments),this.validatorMapper={required:lt}}static get styles(){return[Kn,We,Vt]}async _querySuggestions(t){if(t.length<3){this.suggestions=[],this.close(!0);return}await fetch("/ajax/middleware/searchAddress?"+new URLSearchParams({zipCode:t.toLowerCase()})).then(e=>e.text()).then(e=>{const r=JSON.parse(e),a=[];Object.entries(r).forEach(n=>{a.push({label:n[0],value:n[1]})}),this.suggestions=a}),await this.updateComplete}};xn=gd([$e("sbk-autocomplete-input-zip")],xn);var _d=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,go=(t,e,r,a)=>{for(var n=a>1?void 0:a?bd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&_d(e,r,n),n};let pr=class extends zn(ue){constructor(){super(...arguments),this.zipInputValue="",this.selectOnlyOption=!0,this.validatorMapper={required:lt}}static get styles(){return[Kn,We,Vt]}async _querySuggestions(t){if(this.zipInputValue.length!==5){this.suggestions=[],this.close(!0);return}let e;this.zipInputValue?e=new URLSearchParams({zipCodeCity:this.zipInputValue,city:t.toLowerCase()}):e=new URLSearchParams({zipOrCity:t.toLowerCase()}),await fetch("/ajax/middleware/searchAddress?"+e).then(r=>r.text()).then(r=>{const a=JSON.parse(r),n=[];Object.entries(a).forEach(i=>{n.push({label:i[1],value:i[1]})}),this.suggestions=n}),await this.updateComplete}};go([x({attribute:"zip-input-value"})],pr.prototype,"zipInputValue",2);pr=go([$e("sbk-autocomplete-input-city")],pr);var md=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,Wn=(t,e,r,a)=>{for(var n=a>1?void 0:a?yd(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&md(e,r,n),n};let yt=class extends zn(ue){constructor(){super(...arguments),this.zipInputValue="",this.cityInputValue="",this.validatorMapper={required:lt}}static get styles(){return[Kn,We,Vt]}async _querySuggestions(t){if(t.length<3){this.suggestions=[],this.close(!0);return}const e=new URLSearchParams({zipCode:this.zipInputValue,city:this.cityInputValue,street:t.toLowerCase()});await fetch("/ajax/middleware/searchAddress?"+e).then(r=>r.text()).then(r=>{const a=JSON.parse(r),n=[];Object.entries(a).forEach(i=>{n.push({label:i[1],value:i[1]})}),this.suggestions=n}),await this.updateComplete}};yt.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:!0};Wn([x({attribute:"zip-input-value"})],yt.prototype,"zipInputValue",2);Wn([x({attribute:"city-input-value"})],yt.prototype,"cityInputValue",2);yt=Wn([$e("sbk-autocomplete-input-street")],yt);const Sd=Fe(`${gr}`),Ad=Ue`

    :host {
        --button__border--focus: var(--_button__border--focus, var(--sbkButtonBorderOnLightFocus));

        --secondary-button__bg: var(--_secondary-button__bg, var(--sbkButtonBgColorSecondaryOnLightEnabled));
        --secondary-button__color: var(--_secondary-button__color, var(--sbkButtonFgColorOnLightDefault));
        --secondary-button__bg--hover: var(--_secondary-button__bg--hover, var(--sbkButtonBgColorSecondaryOnLightHover));
        --secondary-button__color--hover: var(--_secondary-button__color--hover, var(--sbkButtonSecondaryFgColorOnLightHover));
        --secondary-button__bg--active: var(--_secondary-button__bg--active, var(--sbkButtonBgColorSecondaryOnLightActive));
        --secondary-button__color--active: var(--_secondary-button__color--active, var(--sbkButtonFgColorOnDarkDefault));
        --secondary-button__bg--focus: var(--_secondary-button__bg--focus, var(--sbkButtonBgColorSecondaryOnLightFocus));
        --secondary-button__color--focus: var(--_secondary-button__color--focus, var(--sbkButtonFgColorOnLightDefault));
        --secondary-button__bg--disabled: var(--_secondary-button__bg--disabled, var(--sbkButtonBgColorSecondaryOnLightDisabled));
        --secondary-button__color--disabled: var(--_secondary-button__color--disabled, var(--sbkButtonFgColorOnLightDisabled));
        --secondary-button__border-color: var(--_secondary-button__border-color, var(--sbkButtonBorderOnLightEnabled));
        --secondary-button__border-color--hover: var(--_secondary-button__border-color--hover, var(--sbkButtonBorderOnLightHover));
        --secondary-button__border-color--focus: var(--_secondary-button__border-color--focus, var(--sbkButtonBgColorSecondaryOnLightFocus));
        --secondary-button__border-color--active: var(--_secondary-button__border-color--active, var(--sbkButtonBorderOnLightActive));
        --secondary-button__border-color--disabled: var(--_secondary-button__border-color--disabled, var(--sbkButtonBorderOnLightDisabled));

        --upload__margin-bottom: var(--fileupload__margin-bottom, var(--sbkCoreSpacingMd));

        display: inline-block;
        width: 100%;

    }

    * {
        box-sizing: border-box;
    }

    .upload-wrapper {
        margin-bottom: var(--upload__margin-bottom);
    }

    #annotation {
        @media (min-width: 1280px) {
            margin: var(--sbkCoreSpacingSm) 0;
        }
    }

    .file-list {
        list-style-type: none;
        padding: 0;
        margin: 10px 0;
    }

    .file-list-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
        border-radius: var(--sbkFileUploadBorderRadiusDefault);
        color: var(--sbkFileUploadColorFgcolorDefault);
        font: var(--sbkFileUploadTypographyTitle);
        max-width: 720px;
        position: relative;
        overflow: hidden;
    }

    .icon-status {
        padding: var(--sbkFileUploadSpacingIconAreaInsetTopBottom) var(--sbkFileUploadSpacingIconAreaInstLeftRight);
    }

    .file-list-item span {
        z-index: 99999;
        flex: 1;
        padding: var(--sbkFileUploadSpacingStatusAreaInsetTop) var(--sbkFileUploadSpacingStatusAreaInsetLeft) var(--sbkFileUploadSpacingStatusAreaInsetBottom) var(--sbkFileUploadSpacingStatusAreaInsetRight);
    }

    .file-list-item span.title {
        font: var(--sbkFileUploadTypographyTitle);
        padding-bottom: var(--sbkFileUploadSpacingStatusAreaGapTitleStatusText);
    }

    .file-list-item span.status {
        font: var(--sbkFileUploadTypographyStatus);
    }

    sbk-round-button {
        padding-right: var(--sbkFileUploadSpacingIconAreaInstLeftRight);
    }

    .file-uploading {
        background-color: var(--sbkFileUploadColorBgColorInProgress);
    }

    .file-error {
        background-color: var(--sbkFileUploadColorBgColorError);
    }

    .file-success {
        background-color: var(--sbkFileUploadColorBgColorSuccess);
    }

    .upload-button {
        padding: 10px 20px;
        display: inline-flex;
        gap: var(--sbkButton3xs);
        align-items: center;
        outline: 2px solid transparent;
        outline-offset: var(--sbkButtonBorderGapFocus);
        border-radius: var(--sbkButtonBorderRadiusDefault);
        border: none;
        cursor: pointer;
        text-decoration: none;
        fill: currentColor;
    }

    .upload-button:focus-visible {
        outline: var(--button__border--focus);
    }

    .upload-button[disabled] {
        cursor: not-allowed;
    }

    .upload-button-small {
        font: var(--sbkButtonSmallLabelSm);
        padding: var(--sbkButton2xs) var(--sbkButtonMd);
    }

    .upload-button-large {
        font: var(--sbkButtonLargeLableMd);
        padding: var(--sbkButtonXs) var(--sbkButtonXl);
    }

    .upload-button-adaptive {
        font: var(--sbkButtonSmallLabelSm);
        padding: var(--sbkButton2xs) var(--sbkButtonMd);
    }

    @media screen and (min-width: ${Sd}) {
        .upload-button-adaptive {
            font: var(--sbkButtonLargeLableMd);
            padding: var(--sbkButtonXs) var(--sbkButtonXl);
        }
    }


    .upload-button {
        background-color: var(--secondary-button__bg);
        border: var(--secondary-button__border-color);
        color: var(--secondary-button__color);
    }

    .upload-button--error {
        border: 2px solid var(--sbkFileUploadColorBgColorError);
        color: var(--sbkFileUploadColorBgColorError);
    }

    @media (hover: hover) and (pointer: fine) {
        .upload-button:hover {
            background-color: var(--secondary-button__bg--hover);
            border: var(--secondary-button__border-color--hover);
            color: var(--secondary-button__color--hover);
        }
    }

    .upload-button:active {
        background-color: var(--secondary-button__bg--active);
        border: var(--secondary-button__border-color--active);
        color: var(--secondary-button__color--active);
    }

    .upload-button:focus-visible {
        background-color: var(--secondary-button__bg--focus);
        border-color: var(--secondary-button__border-color--focus);
        color: var(--secondary-button__color--focus);
    }

    .upload-button[disabled] {
        background-color: var(--secondary-button__bg--disabled);
        border: var(--secondary-button__border-color--disabled);
        color: var(--secondary-button__color--disabled);
    }


    .file-input {
        display: none;
    }

    .upload-button:focus {
        outline: 2px solid #004085;
    }


    .progress-bar-inner {
        position: absolute;
        max-width: 655px;
        margin-left: 65px;
        height: 100%;
        width: 0;
        background-color: #0000002e;
        transition: width 0.4s ease;
        border-radius: 0 8px 8px 0;
    }
`;function wn(t){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wn(t)}function $d(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}function kd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dd(t,e,r){return e=Ft(e),Ed(t,qn()?Reflect.construct(e,r||[],Ft(t).constructor):e.apply(t,r))}function Ed(t,e){if(e&&(wn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xd(t)}function xd(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rt(t,e)}function Cn(t){var e=typeof Map=="function"?new Map:void 0;return Cn=function(a){if(a===null||!Od(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(a))return e.get(a);e.set(a,n)}function n(){return Cd(a,arguments,Ft(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Rt(n,a)},Cn(t)}function Cd(t,e,r){if(qn())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,e);var n=new(t.bind.apply(t,a));return r&&Rt(n,r.prototype),n}function qn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qn=function(){return!!t})()}function Od(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function Rt(t,e){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Rt(t,e)}function Ft(t){return Ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ft(t)}var ir=function(t){function e(r){var a,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(kd(this,e),a=Dd(this,e,[r]),a.originalRequest=i,a.originalResponse=o,a.causingError=n,n!=null&&(r+=", caused by ".concat(n.toString())),i!=null){var s=i.getHeader("X-Request-ID")||"n/a",l=i.getMethod(),u=i.getURL(),d=o?o.getStatus():"n/a",c=o?o.getBody()||"":"n/a";r+=", originated from request (method: ".concat(l,", url: ").concat(u,", response code: ").concat(d,", response text: ").concat(c,", request id: ").concat(s,")")}return a.message=r,a}return wd(e,t),$d(e)}(Cn(Error));function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function Id(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Md(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Fd(a.key),a)}}function Rd(t,e,r){return e&&Md(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fd(t){var e=Ld(t,"string");return Lt(e)=="symbol"?e:e+""}function Ld(t,e){if(Lt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Lt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Bd=function(){function t(){Id(this,t)}return Rd(t,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,a){return Promise.resolve(null)}}])}();const _o="3.7.7",Pd=_o,wt=typeof Buffer=="function",yi=typeof TextDecoder=="function"?new TextDecoder:void 0,Si=typeof TextEncoder=="function"?new TextEncoder:void 0,Td="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",It=Array.prototype.slice.call(Td),or=(t=>{let e={};return t.forEach((r,a)=>e[r]=a),e})(It),Nd=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_e=String.fromCharCode.bind(String),Ai=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),bo=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),mo=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),yo=t=>{let e,r,a,n,i="";const o=t.length%3;for(let s=0;s<t.length;){if((r=t.charCodeAt(s++))>255||(a=t.charCodeAt(s++))>255||(n=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=r<<16|a<<8|n,i+=It[e>>18&63]+It[e>>12&63]+It[e>>6&63]+It[e&63]}return o?i.slice(0,o-3)+"===".substring(o):i},Yn=typeof btoa=="function"?t=>btoa(t):wt?t=>Buffer.from(t,"binary").toString("base64"):yo,On=wt?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let a=0,n=t.length;a<n;a+=4096)r.push(_e.apply(null,t.subarray(a,a+4096)));return Yn(r.join(""))},lr=(t,e=!1)=>e?bo(On(t)):On(t),Ud=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?_e(192|e>>>6)+_e(128|e&63):_e(224|e>>>12&15)+_e(128|e>>>6&63)+_e(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return _e(240|e>>>18&7)+_e(128|e>>>12&63)+_e(128|e>>>6&63)+_e(128|e&63)}},Vd=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,So=t=>t.replace(Vd,Ud),$i=wt?t=>Buffer.from(t,"utf8").toString("base64"):Si?t=>On(Si.encode(t)):t=>Yn(So(t)),mt=(t,e=!1)=>e?bo($i(t)):$i(t),ki=t=>mt(t,!0),Zd=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Hd=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return _e((r>>>10)+55296)+_e((r&1023)+56320);case 3:return _e((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return _e((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ao=t=>t.replace(Zd,Hd),$o=t=>{if(t=t.replace(/\s+/g,""),!Nd.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",a,n;for(let i=0;i<t.length;)e=or[t.charAt(i++)]<<18|or[t.charAt(i++)]<<12|(a=or[t.charAt(i++)])<<6|(n=or[t.charAt(i++)]),r+=a===64?_e(e>>16&255):n===64?_e(e>>16&255,e>>8&255):_e(e>>16&255,e>>8&255,e&255);return r},Jn=typeof atob=="function"?t=>atob(mo(t)):wt?t=>Buffer.from(t,"base64").toString("binary"):$o,ko=wt?t=>Ai(Buffer.from(t,"base64")):t=>Ai(Jn(t).split("").map(e=>e.charCodeAt(0))),Do=t=>ko(Eo(t)),Gd=wt?t=>Buffer.from(t,"base64").toString("utf8"):yi?t=>yi.decode(ko(t)):t=>Ao(Jn(t)),Eo=t=>mo(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),In=t=>Gd(Eo(t)),zd=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},xo=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),wo=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,xo(r));t("fromBase64",function(){return In(this)}),t("toBase64",function(e){return mt(this,e)}),t("toBase64URI",function(){return mt(this,!0)}),t("toBase64URL",function(){return mt(this,!0)}),t("toUint8Array",function(){return Do(this)})},Co=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,xo(r));t("toBase64",function(e){return lr(this,e)}),t("toBase64URI",function(){return lr(this,!0)}),t("toBase64URL",function(){return lr(this,!0)})},Kd=()=>{wo(),Co()},Wd={version:_o,VERSION:Pd,atob:Jn,atobPolyfill:$o,btoa:Yn,btoaPolyfill:yo,fromBase64:In,toBase64:mt,encode:mt,encodeURI:ki,encodeURL:ki,utob:So,btou:Ao,decode:In,isValid:zd,fromUint8Array:lr,toUint8Array:Do,extendString:wo,extendUint8Array:Co,extendBuiltins:Kd};var qd=function(e,r){if(r=r.split(":")[0],e=+e,!e)return!1;switch(r){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0},Xn={},Yd=Object.prototype.hasOwnProperty,Jd;function Di(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function Ei(t){try{return encodeURIComponent(t)}catch{return null}}function Xd(t){for(var e=/([^=?#&]+)=?([^&]*)/g,r={},a;a=e.exec(t);){var n=Di(a[1]),i=Di(a[2]);n===null||i===null||n in r||(r[n]=i)}return r}function Qd(t,e){e=e||"";var r=[],a,n;typeof e!="string"&&(e="?");for(n in t)if(Yd.call(t,n)){if(a=t[n],!a&&(a===null||a===Jd||isNaN(a))&&(a=""),n=Ei(n),a=Ei(a),n===null||a===null)continue;r.push(n+"="+a)}return r.length?e+r.join("&"):""}Xn.stringify=Qd;Xn.parse=Xd;var Oo=qd,Sr=Xn,jd=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Io=/[\n\r\t]/g,ef=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Mo=/:\d+$/,tf=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,rf=/^[a-zA-Z]:/;function Qn(t){return(t||"").toString().replace(jd,"")}var Mn=[["#","hash"],["?","query"],function(e,r){return Te(r.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],xi={hash:1,query:1};function Ro(t){var e;typeof window<"u"||typeof window<"u"?e=window:typeof self<"u"?e=self:e={};var r=e.location||{};t=t||r;var a={},n=typeof t,i;if(t.protocol==="blob:")a=new Ne(unescape(t.pathname),{});else if(n==="string"){a=new Ne(t,{});for(i in xi)delete a[i]}else if(n==="object"){for(i in t)i in xi||(a[i]=t[i]);a.slashes===void 0&&(a.slashes=ef.test(t.href))}return a}function Te(t){return t==="file:"||t==="ftp:"||t==="http:"||t==="https:"||t==="ws:"||t==="wss:"}function Fo(t,e){t=Qn(t),t=t.replace(Io,""),e=e||{};var r=tf.exec(t),a=r[1]?r[1].toLowerCase():"",n=!!r[2],i=!!r[3],o=0,s;return n?i?(s=r[2]+r[3]+r[4],o=r[2].length+r[3].length):(s=r[2]+r[4],o=r[2].length):i?(s=r[3]+r[4],o=r[3].length):s=r[4],a==="file:"?o>=2&&(s=s.slice(2)):Te(a)?s=r[4]:a?n&&(s=s.slice(2)):o>=2&&Te(e.protocol)&&(s=r[4]),{protocol:a,slashes:n||Te(a),slashesCount:o,rest:s}}function af(t,e){if(t==="")return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),a=r.length,n=r[a-1],i=!1,o=0;a--;)r[a]==="."?r.splice(a,1):r[a]===".."?(r.splice(a,1),o++):o&&(a===0&&(i=!0),r.splice(a,1),o--);return i&&r.unshift(""),(n==="."||n==="..")&&r.push(""),r.join("/")}function Ne(t,e,r){if(t=Qn(t),t=t.replace(Io,""),!(this instanceof Ne))return new Ne(t,e,r);var a,n,i,o,s,l,u=Mn.slice(),d=typeof e,c=this,_=0;for(d!=="object"&&d!=="string"&&(r=e,e=null),r&&typeof r!="function"&&(r=Sr.parse),e=Ro(e),n=Fo(t||"",e),a=!n.protocol&&!n.slashes,c.slashes=n.slashes||a&&e.slashes,c.protocol=n.protocol||e.protocol||"",t=n.rest,(n.protocol==="file:"&&(n.slashesCount!==2||rf.test(t))||!n.slashes&&(n.protocol||n.slashesCount<2||!Te(c.protocol)))&&(u[3]=[/(.*)/,"pathname"]);_<u.length;_++){if(o=u[_],typeof o=="function"){t=o(t,c);continue}i=o[0],l=o[1],i!==i?c[l]=t:typeof i=="string"?(s=i==="@"?t.lastIndexOf(i):t.indexOf(i),~s&&(typeof o[2]=="number"?(c[l]=t.slice(0,s),t=t.slice(s+o[2])):(c[l]=t.slice(s),t=t.slice(0,s)))):(s=i.exec(t))&&(c[l]=s[1],t=t.slice(0,s.index)),c[l]=c[l]||a&&o[3]&&e[l]||"",o[4]&&(c[l]=c[l].toLowerCase())}r&&(c.query=r(c.query)),a&&e.slashes&&c.pathname.charAt(0)!=="/"&&(c.pathname!==""||e.pathname!=="")&&(c.pathname=af(c.pathname,e.pathname)),c.pathname.charAt(0)!=="/"&&Te(c.protocol)&&(c.pathname="/"+c.pathname),Oo(c.port,c.protocol)||(c.host=c.hostname,c.port=""),c.username=c.password="",c.auth&&(s=c.auth.indexOf(":"),~s?(c.username=c.auth.slice(0,s),c.username=encodeURIComponent(decodeURIComponent(c.username)),c.password=c.auth.slice(s+1),c.password=encodeURIComponent(decodeURIComponent(c.password))):c.username=encodeURIComponent(decodeURIComponent(c.auth)),c.auth=c.password?c.username+":"+c.password:c.username),c.origin=c.protocol!=="file:"&&Te(c.protocol)&&c.host?c.protocol+"//"+c.host:"null",c.href=c.toString()}function nf(t,e,r){var a=this;switch(t){case"query":typeof e=="string"&&e.length&&(e=(r||Sr.parse)(e)),a[t]=e;break;case"port":a[t]=e,Oo(e,a.protocol)?e&&(a.host=a.hostname+":"+e):(a.host=a.hostname,a[t]="");break;case"hostname":a[t]=e,a.port&&(e+=":"+a.port),a.host=e;break;case"host":a[t]=e,Mo.test(e)?(e=e.split(":"),a.port=e.pop(),a.hostname=e.join(":")):(a.hostname=e,a.port="");break;case"protocol":a.protocol=e.toLowerCase(),a.slashes=!r;break;case"pathname":case"hash":if(e){var n=t==="pathname"?"/":"#";a[t]=e.charAt(0)!==n?n+e:e}else a[t]=e;break;case"username":case"password":a[t]=encodeURIComponent(e);break;case"auth":var i=e.indexOf(":");~i?(a.username=e.slice(0,i),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=e.slice(i+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(e))}for(var o=0;o<Mn.length;o++){var s=Mn[o];s[4]&&(a[s[1]]=a[s[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin=a.protocol!=="file:"&&Te(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a}function of(t){(!t||typeof t!="function")&&(t=Sr.stringify);var e,r=this,a=r.host,n=r.protocol;n&&n.charAt(n.length-1)!==":"&&(n+=":");var i=n+(r.protocol&&r.slashes||Te(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):r.protocol!=="file:"&&Te(r.protocol)&&!a&&r.pathname!=="/"&&(i+="@"),(a[a.length-1]===":"||Mo.test(r.hostname)&&!r.port)&&(a+=":"),i+=a+r.pathname,e=typeof r.query=="object"?t(r.query):r.query,e&&(i+=e.charAt(0)!=="?"?"?"+e:e),r.hash&&(i+=r.hash),i}Ne.prototype={set:nf,toString:of};Ne.extractProtocol=Fo;Ne.location=Ro;Ne.trimLeft=Qn;Ne.qs=Sr;var sf=Ne;const lf=Hi(sf);function uf(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,r=t==="x"?e:e&3|8;return r.toString(16)})}function Rn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rn=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(m,h,b){m[h]=b.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(m,h,b){return Object.defineProperty(m,h,{value:b,enumerable:!0,configurable:!0,writable:!0}),m[h]}try{u({},"")}catch{u=function(b,E,F){return b[E]=F}}function d(m,h,b,E){var F=h&&h.prototype instanceof $?h:$,w=Object.create(F.prototype),H=new pe(E||[]);return n(w,"_invoke",{value:K(m,b,H)}),w}function c(m,h,b){try{return{type:"normal",arg:m.call(h,b)}}catch(E){return{type:"throw",arg:E}}}e.wrap=d;var _="suspendedStart",D="suspendedYield",O="executing",g="completed",v={};function $(){}function S(){}function A(){}var k={};u(k,o,function(){return this});var B=Object.getPrototypeOf,T=B&&B(B(se([])));T&&T!==r&&a.call(T,o)&&(k=T);var P=A.prototype=$.prototype=Object.create(k);function U(m){["next","throw","return"].forEach(function(h){u(m,h,function(b){return this._invoke(h,b)})})}function V(m,h){function b(F,w,H,q){var Y=c(m[F],m,w);if(Y.type!=="throw"){var de=Y.arg,le=de.value;return le&&rt(le)=="object"&&a.call(le,"__await")?h.resolve(le.__await).then(function(fe){b("next",fe,H,q)},function(fe){b("throw",fe,H,q)}):h.resolve(le).then(function(fe){de.value=fe,H(de)},function(fe){return b("throw",fe,H,q)})}q(Y.arg)}var E;n(this,"_invoke",{value:function(w,H){function q(){return new h(function(Y,de){b(w,H,Y,de)})}return E=E?E.then(q,q):q()}})}function K(m,h,b){var E=_;return function(F,w){if(E===O)throw Error("Generator is already running");if(E===g){if(F==="throw")throw w;return{value:t,done:!0}}for(b.method=F,b.arg=w;;){var H=b.delegate;if(H){var q=j(H,b);if(q){if(q===v)continue;return q}}if(b.method==="next")b.sent=b._sent=b.arg;else if(b.method==="throw"){if(E===_)throw E=g,b.arg;b.dispatchException(b.arg)}else b.method==="return"&&b.abrupt("return",b.arg);E=O;var Y=c(m,h,b);if(Y.type==="normal"){if(E=b.done?g:D,Y.arg===v)continue;return{value:Y.arg,done:b.done}}Y.type==="throw"&&(E=g,b.method="throw",b.arg=Y.arg)}}}function j(m,h){var b=h.method,E=m.iterator[b];if(E===t)return h.delegate=null,b==="throw"&&m.iterator.return&&(h.method="return",h.arg=t,j(m,h),h.method==="throw")||b!=="return"&&(h.method="throw",h.arg=new TypeError("The iterator does not provide a '"+b+"' method")),v;var F=c(E,m.iterator,h.arg);if(F.type==="throw")return h.method="throw",h.arg=F.arg,h.delegate=null,v;var w=F.arg;return w?w.done?(h[m.resultName]=w.value,h.next=m.nextLoc,h.method!=="return"&&(h.method="next",h.arg=t),h.delegate=null,v):w:(h.method="throw",h.arg=new TypeError("iterator result is not an object"),h.delegate=null,v)}function ge(m){var h={tryLoc:m[0]};1 in m&&(h.catchLoc=m[1]),2 in m&&(h.finallyLoc=m[2],h.afterLoc=m[3]),this.tryEntries.push(h)}function ce(m){var h=m.completion||{};h.type="normal",delete h.arg,m.completion=h}function pe(m){this.tryEntries=[{tryLoc:"root"}],m.forEach(ge,this),this.reset(!0)}function se(m){if(m||m===""){var h=m[o];if(h)return h.call(m);if(typeof m.next=="function")return m;if(!isNaN(m.length)){var b=-1,E=function F(){for(;++b<m.length;)if(a.call(m,b))return F.value=m[b],F.done=!1,F;return F.value=t,F.done=!0,F};return E.next=E}}throw new TypeError(rt(m)+" is not iterable")}return S.prototype=A,n(P,"constructor",{value:A,configurable:!0}),n(A,"constructor",{value:S,configurable:!0}),S.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(m){var h=typeof m=="function"&&m.constructor;return!!h&&(h===S||(h.displayName||h.name)==="GeneratorFunction")},e.mark=function(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,A):(m.__proto__=A,u(m,l,"GeneratorFunction")),m.prototype=Object.create(P),m},e.awrap=function(m){return{__await:m}},U(V.prototype),u(V.prototype,s,function(){return this}),e.AsyncIterator=V,e.async=function(m,h,b,E,F){F===void 0&&(F=Promise);var w=new V(d(m,h,b,E),F);return e.isGeneratorFunction(h)?w:w.next().then(function(H){return H.done?H.value:w.next()})},U(P),u(P,l,"Generator"),u(P,o,function(){return this}),u(P,"toString",function(){return"[object Generator]"}),e.keys=function(m){var h=Object(m),b=[];for(var E in h)b.push(E);return b.reverse(),function F(){for(;b.length;){var w=b.pop();if(w in h)return F.value=w,F.done=!1,F}return F.done=!0,F}},e.values=se,pe.prototype={constructor:pe,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ce),!h)for(var b in this)b.charAt(0)==="t"&&a.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=t)},stop:function(){this.done=!0;var h=this.tryEntries[0].completion;if(h.type==="throw")throw h.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var b=this;function E(de,le){return H.type="throw",H.arg=h,b.next=de,le&&(b.method="next",b.arg=t),!!le}for(var F=this.tryEntries.length-1;F>=0;--F){var w=this.tryEntries[F],H=w.completion;if(w.tryLoc==="root")return E("end");if(w.tryLoc<=this.prev){var q=a.call(w,"catchLoc"),Y=a.call(w,"finallyLoc");if(q&&Y){if(this.prev<w.catchLoc)return E(w.catchLoc,!0);if(this.prev<w.finallyLoc)return E(w.finallyLoc)}else if(q){if(this.prev<w.catchLoc)return E(w.catchLoc,!0)}else{if(!Y)throw Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return E(w.finallyLoc)}}}},abrupt:function(h,b){for(var E=this.tryEntries.length-1;E>=0;--E){var F=this.tryEntries[E];if(F.tryLoc<=this.prev&&a.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var w=F;break}}w&&(h==="break"||h==="continue")&&w.tryLoc<=b&&b<=w.finallyLoc&&(w=null);var H=w?w.completion:{};return H.type=h,H.arg=b,w?(this.method="next",this.next=w.finallyLoc,v):this.complete(H)},complete:function(h,b){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&b&&(this.next=b),v},finish:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var E=this.tryEntries[b];if(E.finallyLoc===h)return this.complete(E.completion,E.afterLoc),ce(E),v}},catch:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var E=this.tryEntries[b];if(E.tryLoc===h){var F=E.completion;if(F.type==="throw"){var w=F.arg;ce(E)}return w}}throw Error("illegal catch attempt")},delegateYield:function(h,b,E){return this.delegate={iterator:se(h),resultName:b,nextLoc:E},this.method==="next"&&(this.arg=t),v}},e}function wi(t,e,r,a,n,i,o){try{var s=t[i](o),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(a,n)}function cf(t){return function(){var e=this,r=arguments;return new Promise(function(a,n){var i=t.apply(e,r);function o(l){wi(i,a,n,o,s,"next",l)}function s(l){wi(i,a,n,o,s,"throw",l)}o(void 0)})}}function Lo(t,e){return pf(t)||ff(t,e)||Bo(t,e)||df()}function df(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ff(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a,n,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,e!==0)for(;!(l=(a=i.call(r)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(d){u=!0,n=d}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function pf(t){if(Array.isArray(t))return t}function rt(t){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(t)}function hf(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Bo(t))||e){r&&(t=r);var a=0,n=function(){};return{s:n,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Bo(t,e){if(t){if(typeof t=="string")return Ci(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ci(t,e)}}function Ci(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Oi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function vt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Oi(Object(r),!0).forEach(function(a){vf(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function vf(t,e,r){return e=Po(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ii(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Po(a.key),a)}}function _f(t,e,r){return e&&Ii(t.prototype,e),r&&Ii(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Po(t){var e=bf(t,"string");return rt(e)=="symbol"?e:e+""}function bf(t,e){if(rt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e||"default");if(rt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fn="tus-v1",ur="ietf-draft-03",mf={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:To,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:Fn},hr=function(){function t(e,r){gf(this,t),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=e,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return _f(t,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(a){return r._urlStorage.findUploadsByFingerprint(a)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,a=this.file;if(!a){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(![Fn,ur].includes(this.options.protocol)){this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var n=this.options.retryDelays;if(n!=null&&Object.prototype.toString.call(n)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i<o.length;i++){var s=o[i];if(this.options[s]){this._emitError(new Error("tus: cannot use the ".concat(s," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(a,this.options).then(function(l){return r._fingerprint=l,r._source?r._source:r.options.fileReader.openFile(a,r.options.chunkSize)}).then(function(l){if(r._source=l,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(l){r._emitError(l)})}},{key:"_startParallelUpload",value:function(){var r,a=this,n=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,s=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:Sf(this._source.size,o);this._parallelUploadUrls&&s.forEach(function(d,c){d.uploadUrl=a._parallelUploadUrls[c]||null}),this._parallelUploadUrls=new Array(s.length);var l=s.map(function(d,c){var _=0;return a._source.slice(d.start,d.end).then(function(D){var O=D.value;return new Promise(function(g,v){var $=vt(vt({},a.options),{},{uploadUrl:d.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:a.options.metadataForPartialUploads,headers:vt(vt({},a.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:g,onError:v,onProgress:function(k){i=i-_+k,_=k,a._emitProgress(i,n)},onUploadUrlAvailable:function(){a._parallelUploadUrls[c]=S.url,a._parallelUploadUrls.filter(function(k){return!!k}).length===s.length&&a._saveUploadInUrlStorage()}}),S=new t(O,$);S.start(),a._parallelUploads.push(S)})})}),u;Promise.all(l).then(function(){u=a._openRequest("POST",a.options.endpoint),u.setHeader("Upload-Concat","final;".concat(a._parallelUploadUrls.join(" ")));var d=Mi(a.options.metadata);return d!==""&&u.setHeader("Upload-Metadata",d),a._sendRequest(u,null)}).then(function(d){if(!_t(d.getStatus(),200)){a._emitHttpError(u,d,"tus: unexpected response while creating upload");return}var c=d.getHeader("Location");if(c==null){a._emitHttpError(u,d,"tus: invalid or missing Location header");return}a.url=Bi(a.options.endpoint,c),"Created upload at ".concat(a.url),a._emitSuccess(d)}).catch(function(d){a._emitError(d)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var a=this;if(this._parallelUploads!=null){var n=hf(this._parallelUploads),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o.abort(r)}}catch(s){n.e(s)}finally{n.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():t.terminate(this.url,this.options).then(function(){return a._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,a,n,i){this._emitError(new ir(n,i,r,a))}},{key:"_emitError",value:function(r){var a=this;if(!this._aborted){if(this.options.retryDelays!=null){var n=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(n&&(this._retryAttempt=0),Li(r,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){a.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(r){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:r})}},{key:"_emitProgress",value:function(r,a){typeof this.options.onProgress=="function"&&this.options.onProgress(r,a)}},{key:"_emitChunkComplete",value:function(r,a,n){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,a,n)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var a=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?a.setHeader("Upload-Defer-Length","1"):a.setHeader("Upload-Length","".concat(this._size));var n=Mi(this.options.metadata);n!==""&&a.setHeader("Upload-Metadata",n);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(a)):(this.options.protocol===ur&&a.setHeader("Upload-Complete","?0"),i=this._sendRequest(a,null)),i.then(function(o){if(!_t(o.getStatus(),200)){r._emitHttpError(a,o,"tus: unexpected response while creating upload");return}var s=o.getHeader("Location");if(s==null){r._emitHttpError(a,o,"tus: invalid or missing Location header");return}if(r.url=Bi(r.options.endpoint,s),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(o),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(a,o):(r._offset=0,r._performUpload())})}).catch(function(o){r._emitHttpError(a,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var r=this,a=this._openRequest("HEAD",this.url),n=this._sendRequest(a,null);n.then(function(i){var o=i.getStatus();if(!_t(o,200)){if(o===423){r._emitHttpError(a,i,"tus: upload is currently locked; retry later");return}if(_t(o,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(a,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var s=Number.parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(s)){r._emitHttpError(a,i,"tus: invalid or missing offset value");return}var l=Number.parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(l)&&!r.options.uploadLengthDeferred&&r.options.protocol===Fn){r._emitHttpError(a,i,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(s===l){r._emitProgress(l,l),r._emitSuccess(i);return}r._offset=s,r._performUpload()})}).catch(function(i){r._emitHttpError(a,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var a;this.options.overridePatchMethod?(a=this._openRequest("POST",this.url),a.setHeader("X-HTTP-Method-Override","PATCH")):a=this._openRequest("PATCH",this.url),a.setHeader("Upload-Offset","".concat(this._offset));var n=this._addChunkToRequest(a);n.then(function(i){if(!_t(i.getStatus(),200)){r._emitHttpError(a,i,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(a,i)}).catch(function(i){r._aborted||r._emitHttpError(a,null,"tus: failed to upload chunk at offset ".concat(r._offset),i)})}}},{key:"_addChunkToRequest",value:function(r){var a=this,n=this._offset,i=this._offset+this.options.chunkSize;return r.setProgressHandler(function(o){a._emitProgress(n+o,a._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(i===Number.POSITIVE_INFINITY||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(n,i).then(function(o){var s=o.value,l=o.done,u=s!=null&&s.size?s.size:0;a.options.uploadLengthDeferred&&l&&(a._size=a._offset+u,r.setHeader("Upload-Length","".concat(a._size)));var d=a._offset+u;return!a.options.uploadLengthDeferred&&l&&d!==a._size?Promise.reject(new Error("upload was configured with a size of ".concat(a._size," bytes, but the source is done after ").concat(d," bytes"))):s===null?a._sendRequest(r):(a.options.protocol===ur&&r.setHeader("Upload-Complete",l?"?1":"?0"),a._emitProgress(a._offset,a._size),a._sendRequest(r,s))})}},{key:"_handleUploadResponse",value:function(r,a){var n=Number.parseInt(a.getHeader("Upload-Offset"),10);if(Number.isNaN(n)){this._emitHttpError(r,a,"tus: invalid or missing offset value");return}if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n===this._size){this._emitSuccess(a),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,a){var n=Ri(r,a,this.options);return this._req=n,n}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(a){r._emitError(a)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var a={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?a.parallelUploadUrls=this._parallelUploadUrls:a.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,a).then(function(n){r._urlStorageKey=n})}},{key:"_sendRequest",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Fi(r,a,this.options)}}],[{key:"terminate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ri("DELETE",r,a);return Fi(n,null,a).then(function(i){if(i.getStatus()!==204)throw new ir("tus: unexpected response while terminating upload",null,n,i)}).catch(function(i){if(i instanceof ir||(i=new ir("tus: failed to terminate upload",i,n,null)),!Li(i,0,a))throw i;var o=a.retryDelays[0],s=a.retryDelays.slice(1),l=vt(vt({},a),{},{retryDelays:s});return new Promise(function(u){return setTimeout(u,o)}).then(function(){return t.terminate(r,l)})})}}])}();function Mi(t){return Object.entries(t).map(function(e){var r=Lo(e,2),a=r[0],n=r[1];return"".concat(a," ").concat(Wd.encode(String(n)))}).join(",")}function _t(t,e){return t>=e&&t<e+100}function Ri(t,e,r){var a=r.httpStack.createRequest(t,e);r.protocol===ur?a.setHeader("Upload-Draft-Interop-Version","5"):a.setHeader("Tus-Resumable","1.0.0");for(var n=r.headers||{},i=0,o=Object.entries(n);i<o.length;i++){var s=Lo(o[i],2),l=s[0],u=s[1];a.setHeader(l,u)}if(r.addRequestId){var d=uf();a.setHeader("X-Request-ID",d)}return a}function Fi(t,e,r){return Ln.apply(this,arguments)}function Ln(){return Ln=cf(Rn().mark(function t(e,r,a){var n;return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof a.onBeforeRequest!="function"){o.next=3;break}return o.next=3,a.onBeforeRequest(e);case 3:return o.next=5,e.send(r);case 5:if(n=o.sent,typeof a.onAfterResponse!="function"){o.next=9;break}return o.next=9,a.onAfterResponse(e,n);case 9:return o.abrupt("return",n);case 10:case"end":return o.stop()}},t)})),Ln.apply(this,arguments)}function yf(){var t=!0;return typeof navigator<"u"&&navigator.onLine===!1&&(t=!1),t}function Li(t,e,r){return r.retryDelays==null||e>=r.retryDelays.length||t.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(t,e,r):To(t)}function To(t){var e=t.originalResponse?t.originalResponse.getStatus():0;return(!_t(e,400)||e===409||e===423)&&yf()}function Bi(t,e){return new lf(e,t).toString()}function Sf(t,e){for(var r=Math.floor(t/e),a=[],n=0;n<e;n++)a.push({start:r*n,end:r*(n+1)});return a[e-1].end=t,a}hr.defaultOptions=mf;var No=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function Af(t){return new Promise(function(e,r){var a=new XMLHttpRequest;a.responseType="blob",a.onload=function(){var n=a.response;e(n)},a.onerror=function(n){r(n)},a.open("GET",t),a.send()})}var $f=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function kf(t){return new Promise(function(e,r){var a=new FileReader;a.onload=function(){var n=new Uint8Array(a.result);e({value:n})},a.onerror=function(n){r(n)},a.readAsArrayBuffer(t)})}function Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}function Df(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ef(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,wf(a.key),a)}}function xf(t,e,r){return e&&Ef(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function wf(t){var e=Cf(t,"string");return Bt(e)=="symbol"?e:e+""}function Cf(t,e){if(Bt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Bt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Pi=function(){function t(e){Df(this,t),this._file=e,this.size=e.size}return xf(t,[{key:"slice",value:function(r,a){if($f())return kf(this._file.slice(r,a));var n=this._file.slice(r,a),i=a>=this.size;return Promise.resolve({value:n,done:i})}},{key:"close",value:function(){}}])}();function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}function Of(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function If(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Rf(a.key),a)}}function Mf(t,e,r){return e&&If(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rf(t){var e=Ff(t,"string");return Pt(e)=="symbol"?e:e+""}function Ff(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Pt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Ti(t){return t===void 0?0:t.size!==void 0?t.size:t.length}function Lf(t,e){if(t.concat)return t.concat(e);if(t instanceof Blob)return new Blob([t,e],{type:t.type});if(t.set){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}throw new Error("Unknown data type")}var Bf=function(){function t(e){Of(this,t),this._buffer=void 0,this._bufferOffset=0,this._reader=e,this._done=!1}return Mf(t,[{key:"slice",value:function(r,a){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,a)}},{key:"_readUntilEnoughDataOrDone",value:function(r,a){var n=this,i=a<=this._bufferOffset+Ti(this._buffer);if(this._done||i){var o=this._getDataFromBuffer(r,a),s=o==null?this._done:!1;return Promise.resolve({value:o,done:s})}return this._reader.read().then(function(l){var u=l.value,d=l.done;return d?n._done=!0:n._buffer===void 0?n._buffer=u:n._buffer=Lf(n._buffer,u),n._readUntilEnoughDataOrDone(r,a)})}},{key:"_getDataFromBuffer",value:function(r,a){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var n=Ti(this._buffer)===0;return this._done&&n?null:this._buffer.slice(0,a-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])}();function at(t){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(t)}function Bn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Bn=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,n=Object.defineProperty||function(m,h,b){m[h]=b.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(m,h,b){return Object.defineProperty(m,h,{value:b,enumerable:!0,configurable:!0,writable:!0}),m[h]}try{u({},"")}catch{u=function(b,E,F){return b[E]=F}}function d(m,h,b,E){var F=h&&h.prototype instanceof $?h:$,w=Object.create(F.prototype),H=new pe(E||[]);return n(w,"_invoke",{value:K(m,b,H)}),w}function c(m,h,b){try{return{type:"normal",arg:m.call(h,b)}}catch(E){return{type:"throw",arg:E}}}e.wrap=d;var _="suspendedStart",D="suspendedYield",O="executing",g="completed",v={};function $(){}function S(){}function A(){}var k={};u(k,o,function(){return this});var B=Object.getPrototypeOf,T=B&&B(B(se([])));T&&T!==r&&a.call(T,o)&&(k=T);var P=A.prototype=$.prototype=Object.create(k);function U(m){["next","throw","return"].forEach(function(h){u(m,h,function(b){return this._invoke(h,b)})})}function V(m,h){function b(F,w,H,q){var Y=c(m[F],m,w);if(Y.type!=="throw"){var de=Y.arg,le=de.value;return le&&at(le)=="object"&&a.call(le,"__await")?h.resolve(le.__await).then(function(fe){b("next",fe,H,q)},function(fe){b("throw",fe,H,q)}):h.resolve(le).then(function(fe){de.value=fe,H(de)},function(fe){return b("throw",fe,H,q)})}q(Y.arg)}var E;n(this,"_invoke",{value:function(w,H){function q(){return new h(function(Y,de){b(w,H,Y,de)})}return E=E?E.then(q,q):q()}})}function K(m,h,b){var E=_;return function(F,w){if(E===O)throw Error("Generator is already running");if(E===g){if(F==="throw")throw w;return{value:t,done:!0}}for(b.method=F,b.arg=w;;){var H=b.delegate;if(H){var q=j(H,b);if(q){if(q===v)continue;return q}}if(b.method==="next")b.sent=b._sent=b.arg;else if(b.method==="throw"){if(E===_)throw E=g,b.arg;b.dispatchException(b.arg)}else b.method==="return"&&b.abrupt("return",b.arg);E=O;var Y=c(m,h,b);if(Y.type==="normal"){if(E=b.done?g:D,Y.arg===v)continue;return{value:Y.arg,done:b.done}}Y.type==="throw"&&(E=g,b.method="throw",b.arg=Y.arg)}}}function j(m,h){var b=h.method,E=m.iterator[b];if(E===t)return h.delegate=null,b==="throw"&&m.iterator.return&&(h.method="return",h.arg=t,j(m,h),h.method==="throw")||b!=="return"&&(h.method="throw",h.arg=new TypeError("The iterator does not provide a '"+b+"' method")),v;var F=c(E,m.iterator,h.arg);if(F.type==="throw")return h.method="throw",h.arg=F.arg,h.delegate=null,v;var w=F.arg;return w?w.done?(h[m.resultName]=w.value,h.next=m.nextLoc,h.method!=="return"&&(h.method="next",h.arg=t),h.delegate=null,v):w:(h.method="throw",h.arg=new TypeError("iterator result is not an object"),h.delegate=null,v)}function ge(m){var h={tryLoc:m[0]};1 in m&&(h.catchLoc=m[1]),2 in m&&(h.finallyLoc=m[2],h.afterLoc=m[3]),this.tryEntries.push(h)}function ce(m){var h=m.completion||{};h.type="normal",delete h.arg,m.completion=h}function pe(m){this.tryEntries=[{tryLoc:"root"}],m.forEach(ge,this),this.reset(!0)}function se(m){if(m||m===""){var h=m[o];if(h)return h.call(m);if(typeof m.next=="function")return m;if(!isNaN(m.length)){var b=-1,E=function F(){for(;++b<m.length;)if(a.call(m,b))return F.value=m[b],F.done=!1,F;return F.value=t,F.done=!0,F};return E.next=E}}throw new TypeError(at(m)+" is not iterable")}return S.prototype=A,n(P,"constructor",{value:A,configurable:!0}),n(A,"constructor",{value:S,configurable:!0}),S.displayName=u(A,l,"GeneratorFunction"),e.isGeneratorFunction=function(m){var h=typeof m=="function"&&m.constructor;return!!h&&(h===S||(h.displayName||h.name)==="GeneratorFunction")},e.mark=function(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,A):(m.__proto__=A,u(m,l,"GeneratorFunction")),m.prototype=Object.create(P),m},e.awrap=function(m){return{__await:m}},U(V.prototype),u(V.prototype,s,function(){return this}),e.AsyncIterator=V,e.async=function(m,h,b,E,F){F===void 0&&(F=Promise);var w=new V(d(m,h,b,E),F);return e.isGeneratorFunction(h)?w:w.next().then(function(H){return H.done?H.value:w.next()})},U(P),u(P,l,"Generator"),u(P,o,function(){return this}),u(P,"toString",function(){return"[object Generator]"}),e.keys=function(m){var h=Object(m),b=[];for(var E in h)b.push(E);return b.reverse(),function F(){for(;b.length;){var w=b.pop();if(w in h)return F.value=w,F.done=!1,F}return F.done=!0,F}},e.values=se,pe.prototype={constructor:pe,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ce),!h)for(var b in this)b.charAt(0)==="t"&&a.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=t)},stop:function(){this.done=!0;var h=this.tryEntries[0].completion;if(h.type==="throw")throw h.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var b=this;function E(de,le){return H.type="throw",H.arg=h,b.next=de,le&&(b.method="next",b.arg=t),!!le}for(var F=this.tryEntries.length-1;F>=0;--F){var w=this.tryEntries[F],H=w.completion;if(w.tryLoc==="root")return E("end");if(w.tryLoc<=this.prev){var q=a.call(w,"catchLoc"),Y=a.call(w,"finallyLoc");if(q&&Y){if(this.prev<w.catchLoc)return E(w.catchLoc,!0);if(this.prev<w.finallyLoc)return E(w.finallyLoc)}else if(q){if(this.prev<w.catchLoc)return E(w.catchLoc,!0)}else{if(!Y)throw Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return E(w.finallyLoc)}}}},abrupt:function(h,b){for(var E=this.tryEntries.length-1;E>=0;--E){var F=this.tryEntries[E];if(F.tryLoc<=this.prev&&a.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var w=F;break}}w&&(h==="break"||h==="continue")&&w.tryLoc<=b&&b<=w.finallyLoc&&(w=null);var H=w?w.completion:{};return H.type=h,H.arg=b,w?(this.method="next",this.next=w.finallyLoc,v):this.complete(H)},complete:function(h,b){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&b&&(this.next=b),v},finish:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var E=this.tryEntries[b];if(E.finallyLoc===h)return this.complete(E.completion,E.afterLoc),ce(E),v}},catch:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var E=this.tryEntries[b];if(E.tryLoc===h){var F=E.completion;if(F.type==="throw"){var w=F.arg;ce(E)}return w}}throw Error("illegal catch attempt")},delegateYield:function(h,b,E){return this.delegate={iterator:se(h),resultName:b,nextLoc:E},this.method==="next"&&(this.arg=t),v}},e}function Ni(t,e,r,a,n,i,o){try{var s=t[i](o),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(a,n)}function Pf(t){return function(){var e=this,r=arguments;return new Promise(function(a,n){var i=t.apply(e,r);function o(l){Ni(i,a,n,o,s,"next",l)}function s(l){Ni(i,a,n,o,s,"throw",l)}o(void 0)})}}function Tf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nf(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Vf(a.key),a)}}function Uf(t,e,r){return e&&Nf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vf(t){var e=Zf(t,"string");return at(e)=="symbol"?e:e+""}function Zf(t,e){if(at(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(at(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Hf=function(){function t(){Tf(this,t)}return Uf(t,[{key:"openFile",value:function(){var e=Pf(Bn().mark(function a(n,i){var o;return Bn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(No()&&n&&typeof n.uri<"u")){l.next=11;break}return l.prev=1,l.next=4,Af(n.uri);case 4:return o=l.sent,l.abrupt("return",new Pi(o));case 8:throw l.prev=8,l.t0=l.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(l.t0));case 11:if(!(typeof n.slice=="function"&&typeof n.size<"u")){l.next=13;break}return l.abrupt("return",Promise.resolve(new Pi(n)));case 13:if(typeof n.read!="function"){l.next=18;break}if(i=Number(i),Number.isFinite(i)){l.next=17;break}return l.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return l.abrupt("return",Promise.resolve(new Bf(n,i)));case 18:return l.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return l.stop()}},a,null,[[1,8]])}));function r(a,n){return e.apply(this,arguments)}return r}()}])}();function Gf(t,e){return No()?Promise.resolve(zf(t,e)):Promise.resolve(["tus-br",t.name,t.type,t.size,t.lastModified,e.endpoint].join("-"))}function zf(t,e){var r=t.exif?Kf(JSON.stringify(t.exif)):"noexif";return["tus-rn",t.name||"noname",t.size||"nosize",r,e.endpoint].join("/")}function Kf(t){var e=0;if(t.length===0)return e;for(var r=0;r<t.length;r++){var a=t.charCodeAt(r);e=(e<<5)-e+a,e&=e}return e}function Tt(t){"@babel/helpers - typeof";return Tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(t)}function jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wf(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,qf(a.key),a)}}function ei(t,e,r){return e&&Wf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qf(t){var e=Yf(t,"string");return Tt(e)=="symbol"?e:e+""}function Yf(t,e){if(Tt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Tt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Jf=function(){function t(){jn(this,t)}return ei(t,[{key:"createRequest",value:function(r,a){return new Xf(r,a)}},{key:"getName",value:function(){return"XHRHttpStack"}}])}(),Xf=function(){function t(e,r){jn(this,t),this._xhr=new XMLHttpRequest,this._xhr.open(e,r,!0),this._method=e,this._url=r,this._headers={}}return ei(t,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,a){this._xhr.setRequestHeader(r,a),this._headers[r]=a}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(a){a.lengthComputable&&r(a.loaded)})}},{key:"send",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(n,i){r._xhr.onload=function(){n(new Qf(r._xhr))},r._xhr.onerror=function(o){i(o)},r._xhr.send(a)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}(),Qf=function(){function t(e){jn(this,t),this._xhr=e}return ei(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])}();function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function jf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ep(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,rp(a.key),a)}}function tp(t,e,r){return e&&ep(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function rp(t){var e=ap(t,"string");return Nt(e)=="symbol"?e:e+""}function ap(t,e){if(Nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e);if(Nt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Pn=!1;try{Pn="localStorage"in window;var Br="tusSupport",Ui=localStorage.getItem(Br);localStorage.setItem(Br,Ui),Ui===null&&localStorage.removeItem(Br)}catch(t){if(t.code===t.SECURITY_ERR||t.code===t.QUOTA_EXCEEDED_ERR)Pn=!1;else throw t}var np=Pn,ip=function(){function t(){jf(this,t)}return tp(t,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var a=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(a)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,a){var n=Math.round(Math.random()*1e12),i="tus::".concat(r,"::").concat(n);return localStorage.setItem(i,JSON.stringify(a)),Promise.resolve(i)}},{key:"_findEntries",value:function(r){for(var a=[],n=0;n<localStorage.length;n++){var i=localStorage.key(n);if(i.indexOf(r)===0)try{var o=JSON.parse(localStorage.getItem(i));o.urlStorageKey=i,a.push(o)}catch{}}return a}}])}();function St(t){"@babel/helpers - typeof";return St=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(t)}function op(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sp(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,Vo(a.key),a)}}function lp(t,e,r){return r&&sp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function up(t,e,r){return e=vr(e),cp(t,Uo()?Reflect.construct(e,r||[],vr(t).constructor):e.apply(t,r))}function cp(t,e){if(e&&(St(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dp(t)}function dp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uo=function(){return!!t})()}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vr(t)}function fp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tn(t,e)}function Tn(t,e){return Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Tn(t,e)}function Vi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,a)}return r}function bt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vi(Object(r),!0).forEach(function(a){pp(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vi(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function pp(t,e,r){return e=Vo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vo(t){var e=hp(t,"string");return St(e)=="symbol"?e:e+""}function hp(t,e){if(St(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,e||"default");if(St(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zi=bt(bt({},hr.defaultOptions),{},{httpStack:new Jf,fileReader:new Hf,urlStorage:np?new ip:new Bd,fingerprint:Gf}),vp=function(t){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return op(this,e),a=bt(bt({},Zi),a),up(this,e,[r,a])}return fp(e,t),lp(e,null,[{key:"terminate",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=bt(bt({},Zi),n),hr.terminate(a,n)}}])}(hr),gp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,ve=(t,e,r,a)=>{for(var n=a>1?void 0:a?_p(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&gp(e,r,n),n};let oe=class extends Ye(Je(ue)){constructor(){super(),this.required=!1,this.files=[],this.size="adaptive",this.label="",this.open=!1,this.multiple=!1,this.accept="",this.maxSize="10M",this.maxFiles="",this.name="",this.value="",this.modalHeading="",this.modalHeader="",this.modalText="",this.modalCloseText="",this.modalConfirmText="",this.formData=new FormData,this.validatorMapper={required:wc},this._internals=this.attachInternals()}static get styles(){return Ad}connectedCallback(){super.connectedCallback(),this._internals.setFormValue(this.value)}render(){return z`
            <div class="upload-wrapper">
                <ul class="file-list">
                    ${this.files.map(({fileName:t,status:e,message:r,progress:a,name:n,value:i},o)=>z`
                        <li class="file-list-item ${this.getFileStatusClass(e)}">
                            <div class="progress-bar-inner" style="width: ${a}%"></div>
                            <sbk-icon size="40" class="icon-status" symbol=${this.getIconForStatus(e)}></sbk-icon>
                            <span>
                            <span class="title">${Pe(t)}</span>
                            <br/>
                            <span class="status">${Pe(r)}</span>
                            </span>
                            <slot name="modal-${o}">
                                <sbk-modal slot="modal-${o}" id="modal-${o}"
                                           heading=${this.modalHeading} icon="warning"
                                           .open=${this.open}>
                                    <sbk-round-button icon="close" alternativeStyling="alternative"
                                                      slot="triggerElement">X
                                    </sbk-round-button>
                                    <div>
                                        <h2>${this.modalHeader}</h2>
                                        <p>${Pe(this.modalText)}</p>
                                    </div>
                                    <sbk-button slot="footer" variant="secondary"
                                                @click=${s=>this.closeModal(s,o)}>
                                        ${this.modalCloseText}
                                    </sbk-button>
                                    <sbk-button slot="footer" @click=${s=>{this.removeFile(o,n),this.closeModal(s,o)}}>${this.modalConfirmText}
                                    </sbk-button>
                                </sbk-modal>
                            </slot>
                            <input name=${n} .value=${i} type="hidden"/>
                        </li>
                    `)}
                </ul>

                <slot name="description">
                </slot>

                ${this.showLabel()?z`
                    <label for="file-upload"
                           class="upload-button upload-button-${this.size} ${this.invalid?"upload-button--error":""}"
                           tabindex="0">
                        <sbk-icon size="24" symbol="upload"></sbk-icon>
                        ${this.label}
                    </label>`:cr}

                <input id="file-upload" accept=${this.accept}
                       class="file-input"
                       @change=${this.handleFileUpload} name=${this.name}
                       ?required=${this.required}
                       aria-label=${this.label} multiple=${this.multiple} type="file"/>
                ${this.invalid?this.validationErrorTemplate("annotation"):""}
            </div>
        `}showLabel(){return!this.maxFiles||this.files.length<Number(this.maxFiles)||!this.multiple}updateFileStatus(t,e,r,a,n,i){this.files=this.files.map(o=>o.fileName===t?{...o,status:e,message:r,progress:a,name:n,value:i}:o)}handleFileUpload(t){const e=t.target;Array.from(e.files||[]).forEach(n=>{const i=n.size>this.fileSizeToBytes(this.maxSize),o=i?"error":"uploading",s=this.sanitizeHTML(n.name),l=i?this._ll("tusError.requestEntityTooLarge")+s:s+this._ll("tusError.uploadInProgress");this.files=[...this.files,{fileName:s,status:o,message:l,progress:"0",name:this.name,value:""}],i?this.updateFileStatus(s,"error",this._ll("tusError.requestEntityTooLarge")+s,"0","",""):this.uploadFile(n,s)});const a=this.getValidators();this.handleErrors(a,"")}uploadFile(t,e){const r=new vp(t,{endpoint:"/files/",retryDelays:[0,1e3,3e3,5e3],chunkSize:1e6,metadata:{filename:t.name,filetype:t.type},onError:n=>{this.updateFileStatus(e,"error",`${this.getUploadErrorMessage(n.message,e)}`,"0","","")},onProgress:(n,i)=>{const o=(n/i*100).toFixed(2);this.updateFileStatus(e,"uploading",this._ll("tusStatus.uploadInProgress"),o,this.name,"")},onSuccess:()=>{let n="";const i="url:"+r.url;this.multiple?n=this.name.replace("[]","[_uploadedFiles][]"):n=this.name+"[_uploadedFiles][]",this.formData.append(this.name,t),this.formData.append(n,i),this._internals.setFormValue(this.formData),this.updateFileStatus(e,"success",this._ll("tusStatus.uploadSuccess"),"100",n,i)}}),a=new FileReader;a.readAsArrayBuffer(t),a.onloadend=function(){var i,o,s,l;const n=oe.arrayBufferToString(a.result);n.indexOf("/Encrypt")!==-1?(_paq.push(["trackEvent","Upload geschützte pdf-Datei","Grund Berechtigungen eingeschränkt","Grund Berechtigungen eingeschränkt"]),(o=(i=r==null?void 0:r.options)==null?void 0:i.onError)==null||o.call(i,new Error("encrypted"))):n.indexOf("/Type/Sig")!==-1?(_paq.push(["trackEvent","Upload geschützte pdf-Datei","Grund Digitale ID","Grund Digitale ID"]),(l=(s=r==null?void 0:r.options)==null?void 0:s.onError)==null||l.call(s,new Error("withSignature"))):r.start()}}static arrayBufferToString(t){let e="";if(!(t instanceof ArrayBuffer))return e;const r=new Uint8Array(t),a=r.length;let n=Math.pow(2,16)-1;for(let i=0;i<a;i+=n)i+n>a&&(n=a-i),e+=String.fromCharCode.apply(null,[...r.subarray(i,i+n)]);return e}removeFile(t,e){this.formData.delete(e),this.formData.delete(this.name),this._internals.setFormValue(this.formData),this.files=this.files.filter((r,a)=>a!==t)}closeModal(t,e){const r=this.renderRoot.querySelector(`#modal-${e}`);r==null||r._closeModal(t)}getFileStatusClass(t){return{uploading:"file-uploading",error:"file-error",success:"file-success"}[t]||""}getIconForStatus(t){return{uploading:"upload",error:"warning",success:"checkmark"}[t]||""}_ll(t){return typeof tx_resumableuploads<"u"?tx_resumableuploads.lang[t]:t}getUploadErrorMessage(t,e){return 0<=t.indexOf("response code: 413")?this._ll("tusError.requestEntityTooLarge")+e:0<=t.indexOf("response code: 415")?this._ll("tusError.unsupportedMediaType")+e:0<=t.indexOf("response code: 422")?this._ll("tusError.unprocessableEntity").replace("%1$s",e):t==="encrypted"?this._ll("tusError.encrypted")+e:t==="withSignature"?this._ll("tusError.withSignature")+e:t==="extension"?this._ll("tusError.extensionManipulated")+e:this._ll("tusError.badRequest")+e}sanitizeHTML(t){return t.replace(/[^\w.\-_ ]/gi,e=>"&#"+e.charCodeAt(0)+";")}fileSizeToBytes(t){const e={B:1,K:1024,KB:1024,M:1048576,MB:1048576,G:1073741824,GB:1073741824},r=/^(\d+(?:\.\d+)?)([BKMG]?)/i,a=t.match(r);if(!a)throw new Error("Invalid size format");const n=parseFloat(a[1]),i=(a[2]||"B").toUpperCase();if(!e[i])throw new Error(`Invalid size unit: ${i}`);return n*e[i]}};oe.formAssociated=!0;oe.shadowRootOptions={...ue.shadowRootOptions,delegatesFocus:!0};ve([x({type:Boolean})],oe.prototype,"required",2);ve([x({type:Array})],oe.prototype,"files",2);ve([x()],oe.prototype,"size",2);ve([x()],oe.prototype,"label",2);ve([Se()],oe.prototype,"open",2);ve([x()],oe.prototype,"multiple",2);ve([x()],oe.prototype,"accept",2);ve([x({type:String,attribute:"max-size"})],oe.prototype,"maxSize",2);ve([x({type:String,attribute:"max-files"})],oe.prototype,"maxFiles",2);ve([x()],oe.prototype,"name",2);ve([x()],oe.prototype,"value",2);ve([x({attribute:"modal-heading"})],oe.prototype,"modalHeading",2);ve([x({attribute:"modal-header"})],oe.prototype,"modalHeader",2);ve([x({attribute:"modal-text"})],oe.prototype,"modalText",2);ve([x({attribute:"modal-close-text"})],oe.prototype,"modalCloseText",2);ve([x({attribute:"modal-confirm-text"})],oe.prototype,"modalConfirmText",2);ve([Se()],oe.prototype,"formData",2);oe=ve([$e("sbk-file-upload")],oe);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,ti=(t,e,r,a)=>{for(var n=a>1?void 0:a?mp(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(n=(a?o(e,r,n):o(n))||n);return a&&n&&bp(e,r,n),n};let Ut=class extends ue{constructor(){super(...arguments),this.fullWidth=!1,this._updateRepeatableElements=t=>{const e=t,r=this._form.querySelector(`[id="${e.detail.id}"]`);r&&r.remove();const a=new CustomEvent("repeatable-container-removed");this._form.dispatchEvent(a)}}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this._form.addEventListener("submit",this._onSubmit),this._form.addEventListener("repeatable-container-remove",this._updateRepeatableElements)}_onSubmit(t){const e=t.target,r=Ut.validate(e);if(r.length){t.preventDefault();const a=r[0];a.focus({preventScroll:!0}),a.scrollIntoView({behavior:"smooth"})}}static validate(t){let e=[];t.querySelectorAll("[invalid]").forEach(n=>{n.checkVisibility()&&(e=[...e,n])});const a=t.querySelectorAll("sbk-input, sbk-checkbox-group, sbk-radio-group, sbk-textarea, sbk-select, sbk-datepicker, sbk-autocomplete-input-zip, sbk-autocomplete-input-city, sbk-autocomplete-input-street, sbk-file-upload");for(let n=0;n<a.length;n++){const i=a[n];if(i instanceof he||i instanceof Ge||i instanceof ze||i instanceof Q||i instanceof X||i instanceof xn||i instanceof pr||i instanceof yt||i instanceof Oe||i instanceof oe){if(e.includes(i))continue;const o=i.getValidators();if(i instanceof Q){const s=i.multiple?i.selectedOptions.map(l=>l.value).join(","):i.selectedOption.value;i.handleErrors(o,s)}else i instanceof Ge||i instanceof ze?i.handleErrors(o,""):i instanceof X?i.handleErrors(o,i.datepickerValue):i.handleErrors(o,i.value??"");i.checkVisibility()&&i.invalid&&(e=[...e,i])}}return e}};ti([x({attribute:"full-width",type:Boolean})],Ut.prototype,"fullWidth",2);ti([me("form")],Ut.prototype,"_form",2);Ut=ti([$e("sbk-form")],Ut);export{zn as A,lt as R,Ut as S,he as a,Kn as b,Vt as i,We as l};
//# sourceMappingURL=form-CXKFUCAU.js.map