@miden-npm/vue 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("vue"),Ht=Symbol("MidenPGConfig");function y0(r){if(!(r!=null&&r.publishableKey))throw new Error("[@miden-npm/vue] publishableKey is required");return{install(e){e.provide(Ht,r)}}}function k0(){const r=A.inject(Ht);if(!r)throw new Error("[@miden-npm/vue] Missing provider. Did you forget to app.use(createMidenPG(...))?");return r}const Xe=r=>r==null||typeof r!="object"?!1:Object.values(r).every(Boolean),KA=r=>{const e={};return new URL(r).searchParams.forEach((a,n)=>{e[n]=a}),e};function S0(r){var a;const e=navigator.language||(((a=navigator.languages)==null?void 0:a[0])??""),t=String(new Date().getTimezoneOffset());return{httpBrowserLanguage:e,httpBrowserJavaEnabled:typeof navigator.javaEnabled=="function"?navigator.javaEnabled():!1,httpBrowserJavaScriptEnabled:!0,httpBrowserColorDepth:String(screen.colorDepth??""),httpBrowserScreenHeight:String(screen.height??""),httpBrowserScreenWidth:String(screen.width??""),httpBrowserTimeDifference:t,userAgentBrowserValue:navigator.userAgent??"",deviceChannel:"BROWSER",deviceIpAddress:"",httpAcceptContent:e,...r}}const ye=(r,e)=>r==="sandbox"?e==="buzapay"?"https://sandbox-api.buzapay.com/payment-gateway-api":"https://sandbox-api.midencards.io/miden-web":"",F0=r=>r==="USD"?"$":r==="NGN"?"₦":r==="EUR"?"€":r==="GBP"?"£":r==="JPY"||r==="CNY"?"¥":r==="USDC"||r==="usdc"?"$⧫":r==="USDT"||r==="usdt"?"₮":"$",ce=(r,e)=>{const t=typeof r=="string"?parseFloat(r):r;return isNaN(t)?"0":`${e?F0(e):""}${t==null?void 0:t.toLocaleString("en-US")}`},N0=(r,e)=>r.length<=e?r:r.slice(0,e)+"...",V0=r=>{const e=["Backspace","Tab","ArrowLeft","ArrowRight","Delete","Home","End","."];(r.ctrlKey||r.metaKey)&&["a","c","v","x"].includes(r.key.toLowerCase())||(!e.includes(r.key)&&!/^\d$/.test(r.key)&&r.preventDefault(),r.key==="."&&r.target.value.includes(".")&&r.preventDefault())},it=[{name:"Afghanistan",code:"AF",phoneCode:"+93",flag:"🇦🇫"},{name:"Albania",code:"AL",phoneCode:"+355",flag:"🇦🇱"},{name:"Algeria",code:"DZ",phoneCode:"+213",flag:"🇩🇿"},{name:"American Samoa",code:"AS",phoneCode:"+1",flag:"🇦🇸"},{name:"Andorra",code:"AD",phoneCode:"+376",flag:"🇦🇩"},{name:"Angola",code:"AO",phoneCode:"+244",flag:"🇦🇴"},{name:"Anguilla",code:"AI",phoneCode:"+1",flag:"🇦🇮"},{name:"Antarctica",code:"AQ",phoneCode:"+672",flag:"🇦🇶"},{name:"Antigua and Barbuda",code:"AG",phoneCode:"+1",flag:"🇦🇬"},{name:"Argentina",code:"AR",phoneCode:"+54",flag:"🇦🇷"},{name:"Armenia",code:"AM",phoneCode:"+374",flag:"🇦🇲"},{name:"Aruba",code:"AW",phoneCode:"+297",flag:"🇦🇼"},{name:"Australia",code:"AU",phoneCode:"+61",flag:"🇦🇺"},{name:"Austria",code:"AT",phoneCode:"+43",flag:"🇦🇹"},{name:"Azerbaijan",code:"AZ",phoneCode:"+994",flag:"🇦🇿"},{name:"Bahamas",code:"BS",phoneCode:"+1",flag:"🇧🇸"},{name:"Bahrain",code:"BH",phoneCode:"+973",flag:"🇧🇭"},{name:"Bangladesh",code:"BD",phoneCode:"+880",flag:"🇧🇩"},{name:"Barbados",code:"BB",phoneCode:"+1",flag:"🇧🇧"},{name:"Belarus",code:"BY",phoneCode:"+375",flag:"🇧🇾"},{name:"Belgium",code:"BE",phoneCode:"+32",flag:"🇧🇪"},{name:"Belize",code:"BZ",phoneCode:"+501",flag:"🇧🇿"},{name:"Benin",code:"BJ",phoneCode:"+229",flag:"🇧🇯"},{name:"Bermuda",code:"BM",phoneCode:"+1",flag:"🇧🇲"},{name:"Bhutan",code:"BT",phoneCode:"+975",flag:"🇧🇹"},{name:"Bolivia",code:"BO",phoneCode:"+591",flag:"🇧🇴"},{name:"Bosnia and Herzegovina",code:"BA",phoneCode:"+387",flag:"🇧🇦"},{name:"Botswana",code:"BW",phoneCode:"+267",flag:"🇧🇼"},{name:"Bouvet Island",code:"BV",phoneCode:"+47",flag:"🇧🇻"},{name:"Brazil",code:"BR",phoneCode:"+55",flag:"🇧🇷"},{name:"British Indian Ocean Territory",code:"IO",phoneCode:"+246",flag:"🇮🇴"},{name:"Brunei Darussalam",code:"BN",phoneCode:"+673",flag:"🇧🇳"},{name:"Bulgaria",code:"BG",phoneCode:"+359",flag:"🇧🇬"},{name:"Burkina Faso",code:"BF",phoneCode:"+226",flag:"🇧🇫"},{name:"Burundi",code:"BI",phoneCode:"+257",flag:"🇧🇮"},{name:"Cambodia",code:"KH",phoneCode:"+855",flag:"🇰🇭"},{name:"Cameroon",code:"CM",phoneCode:"+237",flag:"🇨🇲"},{name:"Canada",code:"CA",phoneCode:"+1",flag:"🇨🇦"},{name:"Cape Verde",code:"CV",phoneCode:"+238",flag:"🇨🇻"},{name:"Cayman Islands",code:"KY",phoneCode:"+1",flag:"🇰🇾"},{name:"Central African Republic",code:"CF",phoneCode:"+236",flag:"🇨🇫"},{name:"Chad",code:"TD",phoneCode:"+235",flag:"🇹🇩"},{name:"Chile",code:"CL",phoneCode:"+56",flag:"🇨🇱"},{name:"China",code:"CN",phoneCode:"+86",flag:"🇨🇳"},{name:"Christmas Island",code:"CX",phoneCode:"+61",flag:"🇨🇽"},{name:"Cocos (Keeling) Islands",code:"CC",phoneCode:"+61",flag:"🇨🇨"},{name:"Colombia",code:"CO",phoneCode:"+57",flag:"🇨🇴"},{name:"Comoros",code:"KM",phoneCode:"+269",flag:"🇰🇲"},{name:"Congo",code:"CG",phoneCode:"+242",flag:"🇨🇬"},{name:"Congo, Democratic Republic of the",code:"CD",phoneCode:"+243",flag:"🇨🇩"},{name:"Cook Islands",code:"CK",phoneCode:"+682",flag:"🇨🇰"},{name:"Costa Rica",code:"CR",phoneCode:"+506",flag:"🇨🇷"},{name:"Côte d'Ivoire",code:"CI",phoneCode:"+225",flag:"🇨🇮"},{name:"Croatia",code:"HR",phoneCode:"+385",flag:"🇭🇷"},{name:"Cuba",code:"CU",phoneCode:"+53",flag:"🇨🇺"},{name:"Cyprus",code:"CY",phoneCode:"+357",flag:"🇨🇾"},{name:"Czech Republic",code:"CZ",phoneCode:"+420",flag:"🇨🇿"},{name:"Denmark",code:"DK",phoneCode:"+45",flag:"🇩🇰"},{name:"Djibouti",code:"DJ",phoneCode:"+253",flag:"🇩🇯"},{name:"Dominica",code:"DM",phoneCode:"+1",flag:"🇩🇲"},{name:"Dominican Republic",code:"DO",phoneCode:"+1",flag:"🇩🇴"},{name:"Ecuador",code:"EC",phoneCode:"+593",flag:"🇪🇨"},{name:"Egypt",code:"EG",phoneCode:"+20",flag:"🇪🇬"},{name:"El Salvador",code:"SV",phoneCode:"+503",flag:"🇸🇻"},{name:"Equatorial Guinea",code:"GQ",phoneCode:"+240",flag:"🇬🇶"},{name:"Eritrea",code:"ER",phoneCode:"+291",flag:"🇪🇷"},{name:"Estonia",code:"EE",phoneCode:"+372",flag:"🇪🇪"},{name:"Ethiopia",code:"ET",phoneCode:"+251",flag:"🇪🇹"},{name:"Falkland Islands (Malvinas)",code:"FK",phoneCode:"+500",flag:"🇫🇰"},{name:"Faroe Islands",code:"FO",phoneCode:"+298",flag:"🇫🇴"},{name:"Fiji",code:"FJ",phoneCode:"+679",flag:"🇫🇯"},{name:"Finland",code:"FI",phoneCode:"+358",flag:"🇫🇮"},{name:"France",code:"FR",phoneCode:"+33",flag:"🇫🇷"},{name:"French Guiana",code:"GF",phoneCode:"+594",flag:"🇬🇫"},{name:"French Polynesia",code:"PF",phoneCode:"+689",flag:"🇵🇫"},{name:"French Southern Territories",code:"TF",phoneCode:"+262",flag:"🇹🇫"},{name:"Gabon",code:"GA",phoneCode:"+240",flag:"🇬🇦"},{name:"Gambia",code:"GM",phoneCode:"+220",flag:"🇬🇲"},{name:"Georgia",code:"GE",phoneCode:"+995",flag:"🇬🇪"},{name:"Germany",code:"DE",phoneCode:"+49",flag:"🇩🇪"},{name:"Ghana",code:"GH",phoneCode:"+233",flag:"🇬🇭"},{name:"Gibraltar",code:"GI",phoneCode:"+350",flag:"🇬🇮"},{name:"Greece",code:"GR",phoneCode:"+30",flag:"🇬🇷"},{name:"Greenland",code:"GL",phoneCode:"+299",flag:"🇬🇱"},{name:"Grenada",code:"GD",phoneCode:"+1",flag:"🇬🇩"},{name:"Guadeloupe",code:"GP",phoneCode:"+590",flag:"🇬🇵"},{name:"Guam",code:"GU",phoneCode:"+1",flag:"🇬🇺"},{name:"Guatemala",code:"GT",phoneCode:"+502",flag:"🇬🇹"},{name:"Guernsey",code:"GG",phoneCode:"+44",flag:"🇬🇬"},{name:"Guinea",code:"GN",phoneCode:"+224",flag:"🇬🇳"},{name:"Guinea-Bissau",code:"GW",phoneCode:"+245",flag:"🇬🇼"},{name:"Guyana",code:"GY",phoneCode:"+592",flag:"🇬🇾"},{name:"Haiti",code:"HT",phoneCode:"+509",flag:"🇭🇹"},{name:"Heard Island and McDonald Islands",code:"HM",phoneCode:"+672",flag:"🇭🇲"},{name:"Holy See (Vatican City State)",code:"VA",phoneCode:"+39",flag:"🇻🇦"},{name:"Honduras",code:"HN",phoneCode:"+504",flag:"🇭🇳"},{name:"Hong Kong",code:"HK",phoneCode:"+852",flag:"🇭🇰"},{name:"Hungary",code:"HU",phoneCode:"+36",flag:"🇭🇺"},{name:"Iceland",code:"IS",phoneCode:"+354",flag:"🇮🇸"},{name:"India",code:"IN",phoneCode:"+91",flag:"🇮🇳"},{name:"Indonesia",code:"ID",phoneCode:"+62",flag:"🇮🇩"},{name:"Iran, Islamic Republic of",code:"IR",phoneCode:"+98",flag:"🇮🇷"},{name:"Iraq",code:"IQ",phoneCode:"+964",flag:"🇮🇶"},{name:"Ireland",code:"IE",phoneCode:"+353",flag:"🇮🇪"},{name:"Isle of Man",code:"IM",phoneCode:"+44",flag:"🇮🇲"},{name:"Israel",code:"IL",phoneCode:"+972",flag:"🇮🇱"},{name:"Italy",code:"IT",phoneCode:"+39",flag:"🇮🇹"},{name:"Jamaica",code:"JM",phoneCode:"+1",flag:"🇯🇲"},{name:"Japan",code:"JP",phoneCode:"+81",flag:"🇯🇵"},{name:"Jersey",code:"JE",phoneCode:"+44",flag:"🇯🇪"},{name:"Jordan",code:"JO",phoneCode:"+962",flag:"🇯🇴"},{name:"Kazakhstan",code:"KZ",phoneCode:"+7",flag:"🇰🇿"},{name:"Kenya",code:"KE",phoneCode:"+254",flag:"🇰🇪"},{name:"Kiribati",code:"KI",phoneCode:"+686",flag:"🇰🇮"},{name:"Korea, Democratic People's Republic of",code:"KP",phoneCode:"+850",flag:"🇰🇵"},{name:"Korea, Republic of",code:"KR",phoneCode:"+82",flag:"🇰🇷"},{name:"Kuwait",code:"KW",phoneCode:"+965",flag:"🇰🇼"},{name:"Kyrgyzstan",code:"KG",phoneCode:"+996",flag:"🇰🇬"},{name:"Lao People's Democratic Republic",code:"LA",phoneCode:"+856",flag:"🇱🇦"},{name:"Latvia",code:"LV",phoneCode:"+371",flag:"🇱🇻"},{name:"Lebanon",code:"LB",phoneCode:"+961",flag:"🇱🇧"},{name:"Lesotho",code:"LS",phoneCode:"+266",flag:"🇱🇸"},{name:"Liberia",code:"LR",phoneCode:"+231",flag:"🇱🇷"},{name:"Libya",code:"LY",phoneCode:"+218",flag:"🇱🇾"},{name:"Liechtenstein",code:"LI",phoneCode:"+423",flag:"🇱🇮"},{name:"Lithuania",code:"LT",phoneCode:"+370",flag:"🇱🇹"},{name:"Luxembourg",code:"LU",phoneCode:"+352",flag:"🇱🇺"},{name:"Macao",code:"MO",phoneCode:"+853",flag:"🇲🇴"},{name:"Macedonia, the former Yugoslav Republic of",code:"MK",phoneCode:"+389",flag:"🇲🇰"},{name:"Madagascar",code:"MG",phoneCode:"+261",flag:"🇲🇬"},{name:"Malawi",code:"MW",phoneCode:"+265",flag:"🇲🇼"},{name:"Malaysia",code:"MY",phoneCode:"+60",flag:"🇲🇾"},{name:"Maldives",code:"MV",phoneCode:"+960",flag:"🇲🇻"},{name:"Mali",code:"ML",phoneCode:"+223",flag:"🇲🇱"},{name:"Malta",code:"MT",phoneCode:"+356",flag:"🇲🇹"},{name:"Marshall Islands",code:"MH",phoneCode:"+692",flag:"🇲🇭"},{name:"Martinique",code:"MQ",phoneCode:"+596",flag:"🇲🇶"},{name:"Mauritania",code:"MR",phoneCode:"+222",flag:"🇲🇷"},{name:"Mauritius",code:"MU",phoneCode:"+230",flag:"🇲🇺"},{name:"Mayotte",code:"YT",phoneCode:"+262",flag:"🇾🇹"},{name:"Mexico",code:"MX",phoneCode:"+52",flag:"🇲🇽"},{name:"Micronesia, Federated States of",code:"FM",phoneCode:"+691",flag:"🇫🇲"},{name:"Moldova, Republic of",code:"MD",phoneCode:"+373",flag:"🇲🇩"},{name:"Monaco",code:"MC",phoneCode:"+377",flag:"🇲🇨"},{name:"Mongolia",code:"MN",phoneCode:"+976",flag:"🇲🇳"},{name:"Montenegro",code:"ME",phoneCode:"+382",flag:"🇲🇪"},{name:"Montserrat",code:"MS",phoneCode:"+1",flag:"🇲🇸"},{name:"Morocco",code:"MA",phoneCode:"+212",flag:"🇲🇦"},{name:"Mozambique",code:"MZ",phoneCode:"+258",flag:"🇲🇿"},{name:"Myanmar",code:"MM",phoneCode:"+95",flag:"🇲🇲"},{name:"Namibia",code:"NA",phoneCode:"+264",flag:"🇳🇦"},{name:"Nauru",code:"NR",phoneCode:"+674",flag:"🇳🇷"},{name:"Nepal",code:"NP",phoneCode:"+977",flag:"🇳🇵"},{name:"Netherlands",code:"NL",phoneCode:"+31",flag:"🇳🇱"},{name:"New Caledonia",code:"NC",phoneCode:"+687",flag:"🇳🇨"},{name:"New Zealand",code:"NZ",phoneCode:"+64",flag:"🇳🇿"},{name:"Nicaragua",code:"NI",phoneCode:"+505",flag:"🇳🇮"},{name:"Niger",code:"NE",phoneCode:"+227",flag:"🇳🇪"},{name:"Nigeria",code:"NG",phoneCode:"+234",flag:"🇳🇬"},{name:"Niue",code:"NU",phoneCode:"+683",flag:"🇳🇺"},{name:"Norfolk Island",code:"NF",phoneCode:"+672",flag:"🇳🇫"},{name:"Northern Mariana Islands",code:"MP",phoneCode:"+1",flag:"🇲🇵"},{name:"Norway",code:"NO",phoneCode:"+47",flag:"🇳🇴"},{name:"Oman",code:"OM",phoneCode:"+968",flag:"🇴🇲"},{name:"Pakistan",code:"PK",phoneCode:"+92",flag:"🇵🇰"},{name:"Palau",code:"PW",phoneCode:"+680",flag:"🇵🇼"},{name:"Palestinian Territory, Occupied",code:"PS",phoneCode:"+970",flag:"🇵🇸"},{name:"Panama",code:"PA",phoneCode:"+507",flag:"🇵🇦"},{name:"Papua New Guinea",code:"PG",phoneCode:"+675",flag:"🇵🇬"},{name:"Paraguay",code:"PY",phoneCode:"+595",flag:"🇵🇾"},{name:"Peru",code:"PE",phoneCode:"+51",flag:"🇵🇪"},{name:"Philippines",code:"PH",phoneCode:"+63",flag:"🇵🇭"},{name:"Pitcairn",code:"PN",phoneCode:"+64",flag:"🇵🇳"},{name:"Poland",code:"PL",phoneCode:"+48",flag:"🇵🇱"},{name:"Portugal",code:"PT",phoneCode:"+351",flag:"🇵🇹"},{name:"Puerto Rico",code:"PR",phoneCode:"+1",flag:"🇵🇷"},{name:"Qatar",code:"QA",phoneCode:"+974",flag:"🇶🇦"},{name:"Réunion",code:"RE",phoneCode:"+262",flag:"🇷🇪"},{name:"Romania",code:"RO",phoneCode:"+40",flag:"🇷🇴"},{name:"Russian Federation",code:"RU",phoneCode:"+7",flag:"🇷🇺"},{name:"Rwanda",code:"RW",phoneCode:"+250",flag:"🇷🇼"},{name:"Saint Barthélemy",code:"BL",phoneCode:"+590",flag:"🇧🇱"},{name:"Saint Helena, Ascension and Tristan da Cunha",code:"SH",phoneCode:"+290",flag:"🇸🇭"},{name:"Saint Kitts and Nevis",code:"KN",phoneCode:"+1",flag:"🇰🇳"},{name:"Saint Lucia",code:"LC",phoneCode:"+1",flag:"🇱🇨"},{name:"Saint Martin (French part)",code:"MF",phoneCode:"+590",flag:"🇲🇫"},{name:"Saint Pierre and Miquelon",code:"PM",phoneCode:"+508",flag:"🇵🇲"},{name:"Saint Vincent and the Grenadines",code:"VC",phoneCode:"+1",flag:"🇻🇨"},{name:"Samoa",code:"WS",phoneCode:"+685",flag:"🇼🇸"},{name:"San Marino",code:"SM",phoneCode:"+378",flag:"🇸🇲"},{name:"Sao Tome and Principe",code:"ST",phoneCode:"+239",flag:"🇸🇹"},{name:"Saudi Arabia",code:"SA",phoneCode:"+966",flag:"🇸🇦"},{name:"Senegal",code:"SN",phoneCode:"+221",flag:"🇸🇳"},{name:"Serbia",code:"RS",phoneCode:"+381",flag:"🇷🇸"},{name:"Seychelles",code:"SC",phoneCode:"+248",flag:"🇸🇨"},{name:"Sierra Leone",code:"SL",phoneCode:"+232",flag:"🇸🇱"},{name:"Singapore",code:"SG",phoneCode:"+65",flag:"🇸🇬"},{name:"Sint Maarten (Dutch part)",code:"SX",phoneCode:"+1",flag:"🇸🇽"},{name:"Slovakia",code:"SK",phoneCode:"+421",flag:"🇸🇰"},{name:"Slovenia",code:"SI",phoneCode:"+386",flag:"🇸🇮"},{name:"Solomon Islands",code:"SB",phoneCode:"+677",flag:"🇸🇧"},{name:"Somalia",code:"SO",phoneCode:"+252",flag:"🇸🇴"},{name:"South Africa",code:"ZA",phoneCode:"+27",flag:"🇿🇦"},{name:"South Georgia and the South Sandwich Islands",code:"GS",phoneCode:"+500",flag:"🇬🇸"},{name:"South Sudan",code:"SS",phoneCode:"+211",flag:"🇸🇸"},{name:"Spain",code:"ES",phoneCode:"+34",flag:"🇪🇸"},{name:"Sri Lanka",code:"LK",phoneCode:"+94",flag:"🇱🇰"},{name:"Sudan",code:"SD",phoneCode:"+249",flag:"🇸🇩"},{name:"Suriname",code:"SR",phoneCode:"+597",flag:"🇸🇷"},{name:"Svalbard and Jan Mayen",code:"SJ",phoneCode:"+47",flag:"🇸🇯"},{name:"Swaziland",code:"SZ",phoneCode:"+268",flag:"🇸🇿"},{name:"Sweden",code:"SE",phoneCode:"+46",flag:"🇸🇪"},{name:"Switzerland",code:"CH",phoneCode:"+41",flag:"🇨🇭"},{name:"Syrian Arab Republic",code:"SY",phoneCode:"+963",flag:"🇸🇾"},{name:"Taiwan, Province of China",code:"TW",phoneCode:"+886",flag:"🇹🇼"},{name:"Tajikistan",code:"TJ",phoneCode:"+992",flag:"🇹🇯"},{name:"Tanzania, United Republic of",code:"TZ",phoneCode:"+255",flag:"🇹🇿"},{name:"Thailand",code:"TH",phoneCode:"+66",flag:"🇹🇭"},{name:"Timor-Leste",code:"TL",phoneCode:"+670",flag:"🇹🇱"},{name:"Togo",code:"TG",phoneCode:"+228",flag:"🇹🇬"},{name:"Tokelau",code:"TK",phoneCode:"+690",flag:"🇹🇰"},{name:"Tonga",code:"TO",phoneCode:"+676",flag:"🇹🇴"},{name:"Trinidad and Tobago",code:"TT",phoneCode:"+1",flag:"🇹🇹"},{name:"Tunisia",code:"TN",phoneCode:"+216",flag:"🇹🇳"},{name:"Turkey",code:"TR",phoneCode:"+90",flag:"🇹🇷"},{name:"Turkmenistan",code:"TM",phoneCode:"+993",flag:"🇹🇲"},{name:"Turks and Caicos Islands",code:"TC",phoneCode:"+1",flag:"🇹🇨"},{name:"Tuvalu",code:"TV",phoneCode:"+688",flag:"🇹🇻"},{name:"Uganda",code:"UG",phoneCode:"+256",flag:"🇺🇬"},{name:"Ukraine",code:"UA",phoneCode:"+380",flag:"🇺🇦"},{name:"United Arab Emirates",code:"AE",phoneCode:"+971",flag:"🇦🇪"},{name:"United Kingdom",code:"GB",phoneCode:"+44",flag:"🇬🇧"},{name:"United States",code:"US",phoneCode:"+1",flag:"🇺🇸"},{name:"United States Minor Outlying Islands",code:"UM",phoneCode:"+1",flag:"🇺🇲"},{name:"Uruguay",code:"UY",phoneCode:"+598",flag:"🇺🇾"},{name:"Uzbekistan",code:"UZ",phoneCode:"+998",flag:"🇺🇿"},{name:"Vanuatu",code:"VU",phoneCode:"+678",flag:"🇻🇺"},{name:"Venezuela, Bolivarian Republic of",code:"VE",phoneCode:"+58",flag:"🇻🇪"},{name:"Viet Nam",code:"VN",phoneCode:"+84",flag:"🇻🇳"},{name:"Virgin Islands, British",code:"VG",phoneCode:"+1",flag:"🇻🇬"},{name:"Virgin Islands, U.S.",code:"VI",phoneCode:"+1",flag:"🇻🇮"},{name:"Wallis and Futuna",code:"WF",phoneCode:"+681",flag:"🇼🇫"},{name:"Western Sahara",code:"EH",phoneCode:"+212",flag:"🇪🇭"},{name:"Yemen",code:"YE",phoneCode:"+967",flag:"🇾🇪"},{name:"Zambia",code:"ZM",phoneCode:"+260",flag:"🇿🇲"},{name:"Zimbabwe",code:"ZW",phoneCode:"+263",flag:"🇿🇼"}],Be=(r,e)=>e.test(r);function D0(r){return r?r.split("|").map(e=>{const[t,a]=e.split(":");return{rule:t,value:a}}):[]}function R0(r,e,t){const a=[],n=D0(r),o=(t||"This field").toLowerCase(),u=e??"",l=Number(u),C=!Number.isNaN(l);for(const s of n)switch(s.rule){case"required":u||a.push(`The ${o} field is required`);break;case"alpha":Be(u,/^[a-zA-Z]+$/)||a.push(`The ${o} field must only contain alphabetic characters`);break;case"at_least_one_uppercase":Be(u,/.*[A-Z].*/)||a.push(`The ${o} field must contain at least one uppercase character`);break;case"at_least_one_lowercase":Be(u,/.*[a-z].*/)||a.push(`The ${o} field must contain at least one lowercase character`);break;case"at_least_one_number":Be(u,/.*\d.*/)||a.push(`The ${o} field must contain at least one number`);break;case"alpha_num":Be(u,/^[a-z0-9]+$/i)||a.push(`The ${o} field must only contain alphabetic characters and numbers`);break;case"num_spaces":Be(u,/^[0-9\s]+$/i)||a.push(`The ${o} field must only contain space and numbers`);break;case"alpha_spaces":Be(u,/^[A-Za-z\s]*$/)||a.push(`The ${o} field must only contain alphabetic characters and spaces`);break;case"numeric":Be(u,/^\d+$/)||a.push(`The ${o} field must only contain numbers`);break;case"no_special":Be(u,/[^a-zA-Z0-9\s]/)&&a.push(`The ${o} field must not contain special characters`);break;case"at_least_one_special":Be(u,/[^a-zA-Z0-9\s]/)||a.push(`The ${o} field must contain at least one special character`);break;case"email":Be(u,/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)||a.push("Please enter a valid email address");break;case"is":s.value!==u&&a.push(`Value entered must be ${s.value}`);break;case"is_not":s.value===u&&a.push(`Value entered must not be ${s.value}`);break;case"char_length":u.length!==Number(s.value)&&a.push(`The ${o} field must be ${s.value} characters long`);break;case"min_char_length":u.length<Number(s.value)&&a.push(`The ${o} field must not be less than ${s.value} characters long`);break;case"max_char_length":u.length>Number(s.value)&&a.push(`The ${o} field must not be greater than ${s.value} characters long`);break;case"age":(!C||l!==Number(s.value))&&a.push(`Age entered must be ${s.value}`);break;case"min_age":(!C||l<Number(s.value))&&a.push(`Age entered must not be less than ${s.value}`);break;case"max_age":(!C||l>Number(s.value))&&a.push(`Age entered must not be greater than ${s.value}`);break;case"num_is":(!C||l!==Number(s.value))&&a.push(`Number entered must be ${s.value}`);break;case"num_is_not":C&&l===Number(s.value)&&a.push(`Number entered must not be ${s.value}`);break;case"min_number":(!C||l<Number(s.value))&&a.push(`Number entered must not be less than ${s.value}`);break;case"max_number":(!C||l>Number(s.value))&&a.push(`Number entered must not be greater than ${s.value}`);break}return a.length>0?a[0]:null}const tA=(r,e,t)=>{const a={};for(const[n,o]of Object.entries(e)){if(!o)continue;const u=(t==null?void 0:t[n])??n,l=R0(o,r[n]??"",u);l&&(a[n]=l)}return a};var _t=(r=>(r[r.Visa=1]="Visa",r[r.MasterCard=2]="MasterCard",r[r.Verve=3]="Verve",r[r.MastercardAndVisa=4]="MastercardAndVisa",r[r.AmericanExpress=5]="AmericanExpress",r[r.Discover=6]="Discover",r[r.JCB=7]="JCB",r[r.DinersClub=8]="DinersClub",r[r.Maestro=9]="Maestro",r[r.UnionPay=10]="UnionPay",r[r.UnionPay3DS=11]="UnionPay3DS",r[r.UnionPayNon3DS=12]="UnionPayNon3DS",r[r.UATP=13]="UATP",r[r.PayPak=14]="PayPak",r[r.Jaywan=15]="Jaywan",r[r.Mada=16]="Mada",r[r.MadaVisa=17]="MadaVisa",r[r.MadaMastercard=18]="MadaMastercard",r[r.Unknown=19]="Unknown",r))(_t||{});const lt=/^4\d{12}(\d{3}){0,2}$/,ut=/^(?:5[1-5]\d{14}|2(?:2(?:2[1-9]|[3-9]\d)|[3-6]\d{2}|7(?:[01]\d|20))\d{12})(?:\d{0,3})?$/,w0=/^(34|37)\d{13}$/,L0=/^(?:6011|65|64[4-9]|622(?:12[6-9]|1[3-9]\d|[2-8]\d{2}|9(?:0\d|1\d|2[0-5])))\d{12,15}$/,U0=/^(?:35(?:2[8-9]|[3-8]\d))\d{12,15}$/,T0=/^(?:3(?:0[0-5]\d|095|6\d|[89]\d))\d{11,13}$/,z0=/^(?:50|5[6-9]|6[0-9])\d{10,17}$/,EA=/^62\d{14,17}$/,Z0=/^1\d{14}$/,P0=[[506099,506198],[650002,650027]],W0=new Set([507865,507866]),M0=new Set([220545,220543]),X0=new Set([6690109]),j0=new Set([968209,873646]),q0=new Set([422818,486094]),G0=new Set([529741,543357]),J0=new Set([620108]),O0=new Set([621423]);function K0(r){const e=Y0(r);return _t[e]}function Y0(r){if(!r||!r.trim())return 19;const e=r.replace(/\D/g,"");if(e.length<12||e.length>19)return 19;if(e.length>=6){const t=parseInt(e.slice(0,6),10);if(j0.has(t)&&e.length>=16&&e.length<=19)return 16;if(q0.has(t)&<.test(e))return 17;if(G0.has(t)&&ut.test(e))return 18;if(M0.has(t)&&e.length===16)return 14;if(J0.has(t)&&EA.test(e))return 11;if(O0.has(t)&&EA.test(e))return 12;if(H0(t,e.length))return 3}if(e.length>=7){const t=parseInt(e.slice(0,7),10);if(X0.has(t)&&e.length===16)return 15}return Z0.test(e)?13:w0.test(e)?5:L0.test(e)?6:U0.test(e)?7:T0.test(e)?8:ut.test(e)?2:lt.test(e)?1:EA.test(e)?10:z0.test(e)?9:19}function H0(r,e){return e<16||e>19?!1:P0.some(([a,n])=>r>=a&&r<=n)||W0.has(r)}const _0=["width","height"],$0=["stroke"],ea=["fill"],YA=A.defineComponent({__name:"icon-loader",props:{size:{default:24},color:{default:"currentColor"},className:{default:""}},setup(r){const e=r,t=A.useAttrs(),{size:a,color:n,className:o}=e;return(u,l)=>(A.openBlock(),A.createElementBlock("svg",A.mergeProps({class:["animate-spin",A.unref(o)],xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:A.unref(a),height:A.unref(a),role:"img","aria-label":"loading"},A.unref(t)),[A.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:A.unref(n),"stroke-width":"4"},null,8,$0),A.createElementVNode("path",{class:"opacity-75",fill:A.unref(n),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,8,ea)],16,_0))}}),Aa=["disabled"],ta={key:1},he=A.defineComponent({__name:"button",props:{label:{default:""},type:{default:"neutral"},size:{default:"de"},paddingClassX:{default:"px-8"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},customClass:{default:""},caller:{default:"buzapay"}},emits:["click"],setup(r,{emit:e}){const t=r,a=e,n=A.computed(()=>t.disabled||t.loading);function o(){n.value||a("click")}function u(s,E){if(E)return"bg-gray-200 text-gray-400 cursor-not-allowed border-gray-200";switch(s){case"primary":return`${t.caller==="buzapay"?"bg-primary":"bg-primary-miden"} text-white hover:bg-primary-black hover:border-primary-black border-primary`;case"secondary":return"bg-gray-200 border-gray-200 hover:bg-gray-300 text-heading-text";case"danger":return"bg-red-500 border-red-500 text-white hover:bg-red-600";case"neutral":default:return"bg-off-white border-grey-border hover:bg-gray-100"}}function l(s){switch(s){case"de":return`${t.caller==="buzapay"?"h-68px rounded-xl":"h-42px rounded-md"}`;case"md":return"h-42px rounded-lg";case"sm":return"h-32px rounded-md";default:return"h-68px rounded-xl"}}function C(s){switch(s){case"de":case"md":case"sm":return"text-body-2xs font-normal";default:return"text-body-xs font-normal"}}return(s,E)=>(A.openBlock(),A.createElementBlock("button",{class:A.normalizeClass(["flex items-center justify-center gap-2 py-3 border font-normal text-input-grey transition-colors duration-300 ease-in-out",u(r.type,n.value),l(r.size),r.paddingClassX,r.customClass]),type:"button",disabled:n.value,onClick:o},[A.renderSlot(s.$slots,"prefix"),r.loading?(A.openBlock(),A.createBlock(YA,{key:0})):(A.openBlock(),A.createElementBlock("div",ta,[r.label?(A.openBlock(),A.createElementBlock("p",{key:0,class:A.normalizeClass(["mb-0",C(r.size)])},A.toDisplayString(r.label),3)):A.renderSlot(s.$slots,"default",{key:1})])),A.renderSlot(s.$slots,"suffix")],10,Aa))}}),aa={class:"mb-0 text-body-3xs font-normal text-red-500"},HA=A.defineComponent({__name:"input-error",props:{errorMessage:{}},setup(r){return(e,t)=>(A.openBlock(),A.createElementBlock("p",aa,A.toDisplayString(r.errorMessage),1))}});async function je(r,e,t,a){try{const n=ye(e,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/generate-payment-link2",miden:"api/v1/accrual/checkout/generate-payment-link"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:t,uniqueKey:t},body:JSON.stringify({...r,LinkName:`${Date.now()}-Link`})})).json()}catch{}}async function na(r,{merchantId:e,...t},a){try{const n=ye(r,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/authorize-card-3ds-payment-sdk",miden:"api/v1/accrual/card/authorize"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:e,uniqueKey:e},body:JSON.stringify(t)})).json()}catch{}}async function ra(r,{merchantId:e,...t},a){try{const n=ye(r,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/generate-payment-account",miden:"api/v1/accrual/checkout/generate-payment-account"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:e,uniqueKey:e},body:JSON.stringify(t)})).json()}catch{}}async function $t(r,e,t){try{const a=ye(r,t),n={buzapay:`api/v1/checkout/details/${e}`,miden:`api/v1/accrual/checkout/details/${e}`};return await(await fetch(`${a}/${n[t]}`,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}})).json()}catch{}}async function oa(r,{merchantId:e,...t},a){try{const n=ye(r,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/generate-payment-walletaddress",miden:"api/v1/accrual/checkout/generate-wallet-address"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:e,uniqueKey:e},body:JSON.stringify(t)})).json()}catch{}}const sa={key:0,class:"absolute inset-0 grid place-items-center bg-white/60"},e0=A.defineComponent({__name:"checkout-iframe",props:{style:{default:()=>({width:"100%",height:"100vh",border:"0",borderRadius:"6px",overflow:"hidden"})},url:{default:void 0},secretKey:{},environment:{default:"sandbox"},paymentObject:{default:()=>({amount:0,currency:"",email:"",phoneNumber:"",narration:"",redirectUrl:""})},onError:{type:Function,default:r=>({errorMessage:""})}},setup(r){const e=r,t=A.computed(()=>({...e.style})),a=A.ref(null),n=A.ref(null),o=A.ref(""),u=A.ref(!1);function l(){n.value&&n.value.parentNode&&n.value.parentNode.removeChild(n.value),n.value=null}function C(E){var f;l();const B=document.createElement("iframe");B.src=E;const i=e.style;i.width&&(B.style.width=i.width),i.height&&(B.style.height=i.height),i.border&&(B.style.border=i.border),i.borderRadius&&(B.style.borderRadius=i.borderRadius),i.overflow&&(B.style.overflow=i.overflow),(f=a.value)==null||f.appendChild(B),n.value=B}async function s(){var E;if(e.url){C(e.url);return}if(!e.secretKey){o.value="Secret key is required.";return}if(!Xe(e.paymentObject)){o.value="Kindly ensure you are passing all the required data.";return}u.value=!0,o.value="";try{const B=await je(e.paymentObject,e.environment,e.secretKey,"buzapay");B!=null&&B.isSuccessful&&B.launchUrl?(o.value="Payment link created successfully",C(`${B.launchUrl}&merchantId=${btoa(e.secretKey)}`)):o.value="Failed to create payment link"}catch(B){o.value=(B==null?void 0:B.message)||"Failed to create payment link",(E=e.onError)==null||E.call(e,{errorMessage:o.value})}finally{u.value=!1}}return A.onMounted(()=>{a.value&&s()}),A.watch(()=>e.url,E=>{E&&C(E)}),A.onBeforeUnmount(()=>{l()}),(E,B)=>(A.openBlock(),A.createElementBlock("div",{class:"relative",style:A.normalizeStyle(t.value)},[A.createElementVNode("div",{ref_key:"containerRef",ref:a,class:"w-full h-full"},null,512),u.value?(A.openBlock(),A.createElementBlock("div",sa,[A.createVNode(YA)])):A.createCommentVNode("",!0)],4))}}),ia={key:1},la=A.defineComponent({__name:"checkout-button",props:{secretKey:{},environment:{default:"sandbox"},paymentObject:{default:()=>({amount:0,currency:"",email:"",phoneNumber:"",narration:"",redirectUrl:""})},mode:{default:"redirect"},onError:{type:Function,default:r=>({errorMessage:""})}},setup(r){const e=r,t=A.ref(""),a=A.ref(""),n=A.ref(""),o=A.ref(!1),u=A.computed(()=>ce(e.paymentObject.amount,e.paymentObject.currency));async function l(){var B;if(!e.secretKey){t.value="Secret key is required.";return}if(!Xe(e.paymentObject)){t.value="Kindly ensure you are passing all the required data.";return}o.value=!0,t.value="";try{const i=await je(e.paymentObject,e.environment,e.secretKey,"buzapay");i!=null&&i.isSuccessful&&i.launchUrl?(a.value=i.launchUrl,n.value=`${i.launchUrl}&merchantId=${btoa(e.secretKey)}`,t.value="Payment link created successfully",e.mode==="redirect"&&window.open(i.launchUrl,"_blank","noopener,noreferrer")):t.value="Failed to create payment link"}catch(i){t.value=(i==null?void 0:i.message)||"Failed to create payment link",(B=e.onError)==null||B.call(e,{errorMessage:t.value})}finally{o.value=!1}}const{secretKey:C,environment:s,mode:E}=e;return(B,i)=>n.value&&A.unref(E)==="iframe"?(A.openBlock(),A.createBlock(e0,{key:0,url:n.value,secretKey:A.unref(C),environment:A.unref(s)},null,8,["url","secretKey","environment"])):(A.openBlock(),A.createElementBlock("div",ia,[A.createVNode(he,{label:`Pay ${u.value}`,type:"primary",customClass:"w-full",loading:o.value,onClick:l},null,8,["label","loading"]),A.createVNode(HA,{errorMessage:t.value},null,8,["errorMessage"])]))}}),ua=["width","height"],Ea=["fill"],ca=A.defineComponent({__name:"icon-chevron-left",props:{width:{default:17},height:{default:17},color:{default:"currentColor"}},setup(r){const e=r,t=A.useAttrs(),{width:a,height:n,color:o}=e;return(u,l)=>(A.openBlock(),A.createElementBlock("svg",A.mergeProps({width:A.unref(a),height:A.unref(n),viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.unref(t)),[A.createElementVNode("path",{d:"M10.5 14.28C10.3734 14.28 10.2467 14.2333 10.1467 14.1333L5.80002 9.78668C5.09335 9.08001 5.09335 7.92001 5.80002 7.21335L10.1467 2.86668C10.34 2.67335 10.66 2.67335 10.8534 2.86668C11.0467 3.06001 11.0467 3.38001 10.8534 3.57335L6.50669 7.92001C6.18669 8.24001 6.18669 8.76001 6.50669 9.08001L10.8534 13.4267C11.0467 13.62 11.0467 13.94 10.8534 14.1333C10.7534 14.2267 10.6267 14.28 10.5 14.28Z",fill:A.unref(o)},null,8,Ea)],16,ua))}}),Et=A.defineComponent({__name:"back",emits:["back"],setup(r,{emit:e}){return(t,a)=>(A.openBlock(),A.createElementBlock("div",{class:"flex items-center gap-2 cursor-pointer",onClick:a[0]||(a[0]=n=>t.$emit("back"))},[A.createVNode(ca),a[1]||(a[1]=A.createElementVNode("p",{class:"mb-0 text-body-xs font-normal"},"Back",-1))]))}}),Ca=["width","height"],ga=["fill"],Ba=A.defineComponent({__name:"icon-buzapay-icon",props:{width:{default:15},height:{default:13},color:{default:"currentColor"}},setup(r){const e=r,t=A.useAttrs(),{width:a,height:n,color:o}=e;return(u,l)=>(A.openBlock(),A.createElementBlock("svg",A.mergeProps({width:A.unref(a),height:A.unref(n),viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.unref(t)),[A.createElementVNode("path",{d:"M9.97919 0.5C10.8854 0.5 11.6276 0.585938 12.2057 0.757812C12.7891 0.924479 13.2188 1.22396 13.4948 1.65625C13.7761 2.08333 13.9167 2.6901 13.9167 3.47656C13.9167 4.1849 13.7526 4.77083 13.4245 5.23438C13.0964 5.69792 12.5938 5.95312 11.9167 6C12.8021 6.08854 13.4401 6.40625 13.8307 6.95312C14.2214 7.49479 14.4167 8.17708 14.4167 9C14.4167 9.71354 14.3334 10.2995 14.1667 10.7578C14.0052 11.2161 13.7318 11.5729 13.3464 11.8281C12.961 12.0781 12.4375 12.2526 11.7761 12.3516C11.1198 12.4505 10.2995 12.5 9.31512 12.5H0.416687V0.5H9.97919ZM2.91669 7.77344H5.97235V11.167L10.2497 5.22754H7.19501V1.83398L2.91669 7.77344ZM5.97235 6.07617H8.2702L7.19501 7.57324V6.9248H4.89716L5.97235 5.42676V6.07617Z",fill:A.unref(o)},null,8,ga)],16,Ca))}}),da=["width","height"],fa=["fill"],ha=["fill"],Ia=A.defineComponent({__name:"icon-lock",props:{width:{default:24},height:{default:24},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M12.0001 17.35C12.9003 17.35 13.6301 16.6203 13.6301 15.72C13.6301 14.8198 12.9003 14.09 12.0001 14.09C11.0999 14.09 10.3701 14.8198 10.3701 15.72C10.3701 16.6203 11.0999 17.35 12.0001 17.35Z",fill:A.unref(n)},null,8,fa),A.createElementVNode("path",{d:"M18.28 9.53V8.28C18.28 5.58 17.63 2 12 2C6.37 2 5.72 5.58 5.72 8.28V9.53C2.92 9.88 2 11.3 2 14.79V16.65C2 20.75 3.25 22 7.35 22H16.65C20.75 22 22 20.75 22 16.65V14.79C22 11.3 21.08 9.88 18.28 9.53ZM12 18.74C10.33 18.74 8.98 17.38 8.98 15.72C8.98 14.05 10.34 12.7 12 12.7C13.66 12.7 15.02 14.06 15.02 15.72C15.02 17.39 13.67 18.74 12 18.74ZM7.35 9.44C7.27 9.44 7.2 9.44 7.12 9.44V8.28C7.12 5.35 7.95 3.4 12 3.4C16.05 3.4 16.88 5.35 16.88 8.28V9.45C16.8 9.45 16.73 9.45 16.65 9.45H7.35V9.44Z",fill:A.unref(n)},null,8,ha)],8,da))}}),Qa={key:0,class:"checkout-card w-full h-screen flex flex-col items-center justify-center text-white"},xa={class:"flex w-1/2"},pa={class:"flex gap-2 w-full"},ma={class:"flex flex-col gap-8 w-full"},va={class:"bg-off-white rounded-xl"},ba={class:"flex items-center gap-2 justify-center"},ya={key:1,class:"checkout-card-miden w-full h-screen flex flex-col items-center justify-center text-white"},ka={class:"flex w-1/2"},Sa={class:"flex gap-2 w-full"},Fa={class:"flex flex-col gap-8 w-full"},Na={class:"bg-white rounded-xl"},Va={class:"flex items-center gap-4 justify-center"},A0=A.defineComponent({__name:"card",props:{showBackButton:{type:Boolean,default:!1},caller:{default:"buzapay"}},emits:["back","close"],setup(r,{emit:e}){const t=e;return(a,n)=>r.caller==="buzapay"?(A.openBlock(),A.createElementBlock("div",Qa,[A.createElementVNode("div",xa,[r.showBackButton?(A.openBlock(),A.createBlock(Et,{key:0,onBack:n[0]||(n[0]=o=>t("back"))})):A.createCommentVNode("",!0),A.createElementVNode("div",pa,[A.createElementVNode("div",ma,[A.createElementVNode("div",va,[A.renderSlot(a.$slots,"default")]),A.createElementVNode("div",ba,[n[3]||(n[3]=A.createElementVNode("p",{class:"text-light-white-100 text-body-2xs font-regular"}," Powered by Buzapay ",-1)),A.createVNode(Ba,{color:"#E8F4FF"})])]),A.createElementVNode("div",{class:"close-icon flex flex-col items-center justify-center self-start cursor-pointer hover:bg-gray-500",onClick:n[1]||(n[1]=o=>t("close")),role:"button","aria-label":"Close"},[...n[4]||(n[4]=[A.createElementVNode("p",{class:"text-white"},"x",-1)])])])])])):(A.openBlock(),A.createElementBlock("div",ya,[A.createElementVNode("div",ka,[r.showBackButton?(A.openBlock(),A.createBlock(Et,{key:0,onBack:n[2]||(n[2]=o=>t("back"))})):A.createCommentVNode("",!0),A.createElementVNode("div",Sa,[A.createElementVNode("div",Fa,[A.createElementVNode("div",Na,[A.renderSlot(a.$slots,"default")]),A.createElementVNode("div",Va,[A.createVNode(Ia,{color:"#E8F4FF"}),n[5]||(n[5]=A.createElementVNode("p",{class:"text-light-white-100 text-body-2xs font-regular"},[A.createTextVNode(" Secured by "),A.createElementVNode("span",{class:"font-semibold"},"Miden")],-1))])])])])]))}}),Da=["width","height"],Ra=["fill","stroke"],wa=["fill"],La=["fill"],Ua=A.defineComponent({__name:"icon-cards",props:{width:{default:16},height:{default:16},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M3.85303 4.86667H10.147C11.1573 4.86668 11.5914 5.00442 11.811 5.22116C12.0282 5.43571 12.1665 5.85839 12.1665 6.853V7.23972C12.1665 7.33013 12.0909 7.40653 12.0005 7.40671H2.00049C1.90996 7.40671 1.8335 7.33024 1.8335 7.23972V6.853C1.83352 5.95674 1.94725 5.5223 2.1333 5.28757C2.29732 5.08064 2.60747 4.92401 3.36279 4.87936L3.36182 4.87839C3.51875 4.87187 3.68056 4.86668 3.85303 4.86667Z",fill:A.unref(n),stroke:A.unref(n)},null,8,Ra),A.createElementVNode("path",{d:"M2.00016 8.90667C1.6335 8.90667 1.3335 9.20667 1.3335 9.57334V11.5133C1.3335 13.5 1.84016 14 3.8535 14H10.1468C12.1268 14 12.6468 13.52 12.6668 11.62V9.57334C12.6668 9.20667 12.3668 8.90667 12.0002 8.90667H2.00016ZM4.64016 12.3733H3.50016C3.22683 12.3733 3.00016 12.1467 3.00016 11.8733C3.00016 11.6 3.22683 11.3733 3.50016 11.3733H4.64683C4.92016 11.3733 5.14683 11.6 5.14683 11.8733C5.14683 12.1467 4.92016 12.3733 4.64016 12.3733ZM8.36683 12.3733H6.0735C5.80016 12.3733 5.5735 12.1467 5.5735 11.8733C5.5735 11.6 5.80016 11.3733 6.0735 11.3733H8.36683C8.64016 11.3733 8.86683 11.6 8.86683 11.8733C8.86683 12.1467 8.64683 12.3733 8.36683 12.3733Z",fill:A.unref(n)},null,8,wa),A.createElementVNode("path",{d:"M14.6666 8.88667V5.39334C14.6666 3.30667 13.4732 2.4 11.6732 2.4H5.71991C5.21324 2.4 4.75991 2.47333 4.35991 2.62667C4.04658 2.74 3.76658 2.90667 3.53991 3.12667C3.41991 3.24 3.51324 3.42667 3.68658 3.42667H10.9332C12.4332 3.42667 13.6466 4.64 13.6466 6.14V10.92C13.6466 11.0867 13.8266 11.18 13.9466 11.06C14.4066 10.5733 14.6666 9.86 14.6666 8.88667Z",fill:A.unref(n)},null,8,La)],8,Da))}}),Ta=["width","height"],za=["fill"],Za=A.defineComponent({__name:"icon-courthouse",props:{width:{default:16},height:{default:16},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M14.6668 14.1667H13.8335V7.33333C13.8335 5.72 12.9468 4.83333 11.3335 4.83333H8.50016V4.01333C8.88683 4.10667 9.2735 4.16 9.66683 4.16C10.2935 4.16 10.9202 4.04 11.5202 3.8C11.7068 3.72667 11.8335 3.54 11.8335 3.33333V1.33333C11.8335 1.16667 11.7535 1.01333 11.6135 0.920001C11.4735 0.826668 11.3002 0.806668 11.1468 0.866668C10.1935 1.24667 9.14016 1.24667 8.18683 0.866668C8.0335 0.806668 7.86016 0.826668 7.72016 0.920001C7.58016 1.01333 7.50016 1.16667 7.50016 1.33333V3.33333V4.83333H4.66683C3.0535 4.83333 2.16683 5.72 2.16683 7.33333V14.1667H1.3335C1.06016 14.1667 0.833496 14.3933 0.833496 14.6667C0.833496 14.94 1.06016 15.1667 1.3335 15.1667H2.66683H13.3335H14.6668C14.9402 15.1667 15.1668 14.94 15.1668 14.6667C15.1668 14.3933 14.9402 14.1667 14.6668 14.1667ZM4.82683 14.1667H3.16683V8.5H4.82683V14.1667ZM7.4935 14.1667H5.82683V8.5H7.4935V14.1667ZM10.1602 14.1667H8.4935V8.5H10.1602V14.1667ZM12.8335 14.1667H11.1602V8.5H12.8335V14.1667Z",fill:A.unref(n)},null,8,za)],8,Ta))}}),Pa=["width","height"],Wa=["fill"],Ma=["fill","stroke"],Xa=A.defineComponent({__name:"icon-coin",props:{width:{default:16},height:{default:16},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M14.6136 11.1667C14.3936 12.9401 12.9402 14.3934 11.1669 14.6134C10.0936 14.7467 9.09357 14.4534 8.31357 13.8801C7.8669 13.5534 7.97357 12.8601 8.5069 12.7001C10.5136 12.0934 12.0936 10.5067 12.7069 8.50006C12.8669 7.9734 13.5602 7.86673 13.8869 8.30673C14.4536 9.0934 14.7469 10.0934 14.6136 11.1667Z",fill:A.unref(n)},null,8,Wa),A.createElementVNode("path",{d:"M6.66064 1.83301C9.23993 1.83326 11.3453 3.86201 11.48 6.41211L11.4868 6.66113C11.486 9.32416 9.32379 11.4861 6.66064 11.4863C3.99695 11.4863 1.83376 9.32379 1.8335 6.66016C1.8335 3.9963 3.99679 1.83301 6.66064 1.83301ZM6.6665 3.27344C6.27525 3.27356 5.93487 3.50201 5.771 3.83203C4.94463 3.9947 4.3335 4.7462 4.3335 5.61328C4.33354 6.00558 4.42304 6.37269 4.63818 6.68164C4.66671 6.72258 4.69726 6.76143 4.729 6.79883C4.48939 6.982 4.33357 7.27008 4.3335 7.59277C4.3335 8.48803 4.93148 9.2422 5.75049 9.45801C5.90533 9.81094 6.25852 10.0594 6.6665 10.0596C7.06141 10.0596 7.40374 9.82611 7.56592 9.49121C8.39042 9.32705 9.00049 8.5787 9.00049 7.71289C9.00047 7.32502 8.91261 6.96047 8.69873 6.65137C8.66984 6.60964 8.63919 6.56935 8.60693 6.53125C8.84508 6.34793 9.00049 6.06083 9.00049 5.73926C9.0003 4.84357 8.40128 4.0892 7.58154 3.87402C7.4264 3.5216 7.07419 3.27344 6.6665 3.27344Z",fill:A.unref(n),stroke:A.unref(n)},null,8,Ma)],8,Pa))}}),ja=["aria-orientation"],qa=["aria-checked","onClick"],Ga={key:0,class:"bg-white w-2 h-2 rounded-full"},Ja={class:"mb-0 text-body-2xs font-medium text-heading-text"},Oa=["aria-orientation"],Ka=["aria-checked","onClick"],t0=A.defineComponent({__name:"radio-group",props:{options:{default:()=>[]},type:{default:"vertical"},modelValue:{default:void 0},defaultValue:{default:void 0},className:{default:""},caller:{default:"buzapay"}},emits:["update:modelValue","selectedChange"],setup(r,{emit:e}){const t=r,a=e,n=A.computed(()=>t.modelValue!==void 0),o=A.ref("");A.onMounted(()=>{if(n.value)return;const i=t.defaultValue??(t.options.length?t.options[0].value:"");o.value=i,i&&(a("update:modelValue",i),a("selectedChange",i))}),A.watch(()=>t.modelValue,i=>{n.value&&(o.value=i??"")},{immediate:!0});const u=A.computed(()=>n.value?t.modelValue??"":o.value);function l(i){n.value||(o.value=i),a("update:modelValue",i),a("selectedChange",i)}const C=A.computed(()=>t.type==="horizontal"?"flex-row gap-5":"flex-col gap-6"),{options:s,type:E,className:B}=t;return(i,f)=>r.caller==="buzapay"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["flex",C.value,A.unref(B)]),role:"radiogroup","aria-orientation":A.unref(E)==="horizontal"?"horizontal":"vertical",tabindex:"0"},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(s),c=>(A.openBlock(),A.createElementBlock("div",{key:c.value,role:"radio","aria-checked":u.value===c.value,tabindex:"-1",onClick:Q=>l(c.value),class:"flex items-center gap-2 cursor-pointer transition-colors duration-200"},[A.createElementVNode("div",{class:A.normalizeClass(["w-4 h-4 rounded-full border flex items-center justify-center",u.value===c.value?"bg-orange-500 border-orange-500":"bg-white border-grey-200"])},[u.value===c.value?(A.openBlock(),A.createElementBlock("div",Ga)):A.createCommentVNode("",!0)],2),A.createElementVNode("p",Ja,A.toDisplayString(c.label),1)],8,qa))),128))],10,ja)):(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(["flex",C.value,A.unref(B)]),role:"radiogroup","aria-orientation":A.unref(E)==="horizontal"?"horizontal":"vertical",tabindex:"0"},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(s),c=>(A.openBlock(),A.createElementBlock("div",{key:c.value,role:"radio","aria-checked":u.value===c.value,tabindex:"-1",onClick:Q=>l(c.value),class:A.normalizeClass(["flex items-center gap-4 cursor-pointer transition-colors duration-200 px-6 py-2 my-1",{"border-r-4 border-white":u.value===c.value}])},[c.value==="CARD"?(A.openBlock(),A.createBlock(Ua,{key:0,color:u.value===c.value?"#ffffff":"#8FAECA"},null,8,["color"])):c.value==="BANK_TRANSFER"?(A.openBlock(),A.createBlock(Za,{key:1,color:u.value===c.value?"#ffffff":"#8FAECA"},null,8,["color"])):c.value==="STABLE_COIN"?(A.openBlock(),A.createBlock(Xa,{key:2,color:u.value===c.value?"#ffffff":"#8FAECA"},null,8,["color"])):A.createCommentVNode("",!0),A.createElementVNode("p",{class:A.normalizeClass(["mb-0 text-body-2xs font-medium",{"text-white":u.value===c.value,"text-[#8FAECA]":u.value!==c.value}])},A.toDisplayString(c.label),3)],10,Ka))),128))],10,Oa))}}),Ya=["src","height","alt"],we=A.defineComponent({__name:"image",props:{src:{},height:{default:50},width:{default:50},alt:{default:"Image"},customClass:{default:""},isFullWidth:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:e}){const t=r,a=e,{src:n,height:o,width:u,alt:l,customClass:C,isFullWidth:s}=t;return(E,B)=>(A.openBlock(),A.createElementBlock("img",{src:A.unref(n),height:A.unref(o),alt:A.unref(l),class:A.normalizeClass([A.unref(C),A.unref(s)?"w-full":""]),style:A.normalizeStyle({width:A.unref(s)?"100%":A.unref(u)+"px"}),onClick:B[0]||(B[0]=i=>a("click"))},null,14,Ya))}});var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function _a(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var n=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return r[a]}})}),t}var a0={exports:{}};function $a(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cA={exports:{}};const en={},An=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"})),tn=_a(An);var ct;function K(){return ct||(ct=1,function(r,e){(function(t,a){r.exports=a()})(J,function(){var t=t||function(a,n){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof J<"u"&&J.crypto&&(o=J.crypto),!o&&typeof $a=="function")try{o=tn}catch{}var u=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function d(){}return function(h){var I;return d.prototype=h,I=new d,d.prototype=null,I}}(),C={},s=C.lib={},E=s.Base=function(){return{extend:function(d){var h=l(this);return d&&h.mixIn(d),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var h in d)d.hasOwnProperty(h)&&(this[h]=d[h]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=s.WordArray=E.extend({init:function(d,h){d=this.words=d||[],h!=n?this.sigBytes=h:this.sigBytes=d.length*4},toString:function(d){return(d||f).stringify(this)},concat:function(d){var h=this.words,I=d.words,m=this.sigBytes,b=d.sigBytes;if(this.clamp(),m%4)for(var k=0;k<b;k++){var N=I[k>>>2]>>>24-k%4*8&255;h[m+k>>>2]|=N<<24-(m+k)%4*8}else for(var z=0;z<b;z+=4)h[m+z>>>2]=I[z>>>2];return this.sigBytes+=b,this},clamp:function(){var d=this.words,h=this.sigBytes;d[h>>>2]&=4294967295<<32-h%4*8,d.length=a.ceil(h/4)},clone:function(){var d=E.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var h=[],I=0;I<d;I+=4)h.push(u());return new B.init(h,d)}}),i=C.enc={},f=i.Hex={stringify:function(d){for(var h=d.words,I=d.sigBytes,m=[],b=0;b<I;b++){var k=h[b>>>2]>>>24-b%4*8&255;m.push((k>>>4).toString(16)),m.push((k&15).toString(16))}return m.join("")},parse:function(d){for(var h=d.length,I=[],m=0;m<h;m+=2)I[m>>>3]|=parseInt(d.substr(m,2),16)<<24-m%8*4;return new B.init(I,h/2)}},c=i.Latin1={stringify:function(d){for(var h=d.words,I=d.sigBytes,m=[],b=0;b<I;b++){var k=h[b>>>2]>>>24-b%4*8&255;m.push(String.fromCharCode(k))}return m.join("")},parse:function(d){for(var h=d.length,I=[],m=0;m<h;m++)I[m>>>2]|=(d.charCodeAt(m)&255)<<24-m%4*8;return new B.init(I,h)}},Q=i.Utf8={stringify:function(d){try{return decodeURIComponent(escape(c.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return c.parse(unescape(encodeURIComponent(d)))}},g=s.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=Q.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var h,I=this._data,m=I.words,b=I.sigBytes,k=this.blockSize,N=k*4,z=b/N;d?z=a.ceil(z):z=a.max((z|0)-this._minBufferSize,0);var v=z*k,S=a.min(v*4,b);if(v){for(var V=0;V<v;V+=k)this._doProcessBlock(m,V);h=m.splice(0,v),I.sigBytes-=S}return new B.init(h,S)},clone:function(){var d=E.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});s.Hasher=g.extend({cfg:E.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var h=this._doFinalize();return h},blockSize:16,_createHelper:function(d){return function(h,I){return new d.init(I).finalize(h)}},_createHmacHelper:function(d){return function(h,I){return new x.HMAC.init(d,I).finalize(h)}}});var x=C.algo={};return C}(Math);return t})}(cA)),cA.exports}var CA={exports:{}},Ct;function rA(){return Ct||(Ct=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.Base,l=o.WordArray,C=n.x64={};C.Word=u.extend({init:function(s,E){this.high=s,this.low=E}}),C.WordArray=u.extend({init:function(s,E){s=this.words=s||[],E!=a?this.sigBytes=E:this.sigBytes=s.length*8},toX32:function(){for(var s=this.words,E=s.length,B=[],i=0;i<E;i++){var f=s[i];B.push(f.high),B.push(f.low)}return l.create(B,this.sigBytes)},clone:function(){for(var s=u.clone.call(this),E=s.words=this.words.slice(0),B=E.length,i=0;i<B;i++)E[i]=E[i].clone();return s}})}(),t})}(CA)),CA.exports}var gA={exports:{}},gt;function an(){return gt||(gt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,n=a.lib,o=n.WordArray,u=o.init,l=o.init=function(C){if(C instanceof ArrayBuffer&&(C=new Uint8Array(C)),(C instanceof Int8Array||typeof Uint8ClampedArray<"u"&&C instanceof Uint8ClampedArray||C instanceof Int16Array||C instanceof Uint16Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array)&&(C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),C instanceof Uint8Array){for(var s=C.byteLength,E=[],B=0;B<s;B++)E[B>>>2]|=C[B]<<24-B%4*8;u.call(this,E,s)}else u.apply(this,arguments)};l.prototype=o}}(),t.lib.WordArray})}(gA)),gA.exports}var BA={exports:{}},Bt;function nn(){return Bt||(Bt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.enc;u.Utf16=u.Utf16BE={stringify:function(C){for(var s=C.words,E=C.sigBytes,B=[],i=0;i<E;i+=2){var f=s[i>>>2]>>>16-i%4*8&65535;B.push(String.fromCharCode(f))}return B.join("")},parse:function(C){for(var s=C.length,E=[],B=0;B<s;B++)E[B>>>1]|=C.charCodeAt(B)<<16-B%2*16;return o.create(E,s*2)}},u.Utf16LE={stringify:function(C){for(var s=C.words,E=C.sigBytes,B=[],i=0;i<E;i+=2){var f=l(s[i>>>2]>>>16-i%4*8&65535);B.push(String.fromCharCode(f))}return B.join("")},parse:function(C){for(var s=C.length,E=[],B=0;B<s;B++)E[B>>>1]|=l(C.charCodeAt(B)<<16-B%2*16);return o.create(E,s*2)}};function l(C){return C<<8&4278255360|C>>>8&16711935}}(),t.enc.Utf16})}(BA)),BA.exports}var dA={exports:{}},dt;function qe(){return dt||(dt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.enc;u.Base64={stringify:function(C){var s=C.words,E=C.sigBytes,B=this._map;C.clamp();for(var i=[],f=0;f<E;f+=3)for(var c=s[f>>>2]>>>24-f%4*8&255,Q=s[f+1>>>2]>>>24-(f+1)%4*8&255,g=s[f+2>>>2]>>>24-(f+2)%4*8&255,x=c<<16|Q<<8|g,d=0;d<4&&f+d*.75<E;d++)i.push(B.charAt(x>>>6*(3-d)&63));var h=B.charAt(64);if(h)for(;i.length%4;)i.push(h);return i.join("")},parse:function(C){var s=C.length,E=this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var i=0;i<E.length;i++)B[E.charCodeAt(i)]=i}var f=E.charAt(64);if(f){var c=C.indexOf(f);c!==-1&&(s=c)}return l(C,s,B)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(C,s,E){for(var B=[],i=0,f=0;f<s;f++)if(f%4){var c=E[C.charCodeAt(f-1)]<<f%4*2,Q=E[C.charCodeAt(f)]>>>6-f%4*2,g=c|Q;B[i>>>2]|=g<<24-i%4*8,i++}return o.create(B,i)}}(),t.enc.Base64})}(dA)),dA.exports}var fA={exports:{}},ft;function rn(){return ft||(ft=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.enc;u.Base64url={stringify:function(C,s){s===void 0&&(s=!0);var E=C.words,B=C.sigBytes,i=s?this._safe_map:this._map;C.clamp();for(var f=[],c=0;c<B;c+=3)for(var Q=E[c>>>2]>>>24-c%4*8&255,g=E[c+1>>>2]>>>24-(c+1)%4*8&255,x=E[c+2>>>2]>>>24-(c+2)%4*8&255,d=Q<<16|g<<8|x,h=0;h<4&&c+h*.75<B;h++)f.push(i.charAt(d>>>6*(3-h)&63));var I=i.charAt(64);if(I)for(;f.length%4;)f.push(I);return f.join("")},parse:function(C,s){s===void 0&&(s=!0);var E=C.length,B=s?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var f=0;f<B.length;f++)i[B.charCodeAt(f)]=f}var c=B.charAt(64);if(c){var Q=C.indexOf(c);Q!==-1&&(E=Q)}return l(C,E,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(C,s,E){for(var B=[],i=0,f=0;f<s;f++)if(f%4){var c=E[C.charCodeAt(f-1)]<<f%4*2,Q=E[C.charCodeAt(f)]>>>6-f%4*2,g=c|Q;B[i>>>2]|=g<<24-i%4*8,i++}return o.create(B,i)}}(),t.enc.Base64url})}(fA)),fA.exports}var hA={exports:{}},ht;function Ge(){return ht||(ht=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.WordArray,l=o.Hasher,C=n.algo,s=[];(function(){for(var Q=0;Q<64;Q++)s[Q]=a.abs(a.sin(Q+1))*4294967296|0})();var E=C.MD5=l.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,g){for(var x=0;x<16;x++){var d=g+x,h=Q[d];Q[d]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var I=this._hash.words,m=Q[g+0],b=Q[g+1],k=Q[g+2],N=Q[g+3],z=Q[g+4],v=Q[g+5],S=Q[g+6],V=Q[g+7],y=Q[g+8],R=Q[g+9],Z=Q[g+10],P=Q[g+11],W=Q[g+12],F=Q[g+13],D=Q[g+14],T=Q[g+15],p=I[0],w=I[1],U=I[2],L=I[3];p=B(p,w,U,L,m,7,s[0]),L=B(L,p,w,U,b,12,s[1]),U=B(U,L,p,w,k,17,s[2]),w=B(w,U,L,p,N,22,s[3]),p=B(p,w,U,L,z,7,s[4]),L=B(L,p,w,U,v,12,s[5]),U=B(U,L,p,w,S,17,s[6]),w=B(w,U,L,p,V,22,s[7]),p=B(p,w,U,L,y,7,s[8]),L=B(L,p,w,U,R,12,s[9]),U=B(U,L,p,w,Z,17,s[10]),w=B(w,U,L,p,P,22,s[11]),p=B(p,w,U,L,W,7,s[12]),L=B(L,p,w,U,F,12,s[13]),U=B(U,L,p,w,D,17,s[14]),w=B(w,U,L,p,T,22,s[15]),p=i(p,w,U,L,b,5,s[16]),L=i(L,p,w,U,S,9,s[17]),U=i(U,L,p,w,P,14,s[18]),w=i(w,U,L,p,m,20,s[19]),p=i(p,w,U,L,v,5,s[20]),L=i(L,p,w,U,Z,9,s[21]),U=i(U,L,p,w,T,14,s[22]),w=i(w,U,L,p,z,20,s[23]),p=i(p,w,U,L,R,5,s[24]),L=i(L,p,w,U,D,9,s[25]),U=i(U,L,p,w,N,14,s[26]),w=i(w,U,L,p,y,20,s[27]),p=i(p,w,U,L,F,5,s[28]),L=i(L,p,w,U,k,9,s[29]),U=i(U,L,p,w,V,14,s[30]),w=i(w,U,L,p,W,20,s[31]),p=f(p,w,U,L,v,4,s[32]),L=f(L,p,w,U,y,11,s[33]),U=f(U,L,p,w,P,16,s[34]),w=f(w,U,L,p,D,23,s[35]),p=f(p,w,U,L,b,4,s[36]),L=f(L,p,w,U,z,11,s[37]),U=f(U,L,p,w,V,16,s[38]),w=f(w,U,L,p,Z,23,s[39]),p=f(p,w,U,L,F,4,s[40]),L=f(L,p,w,U,m,11,s[41]),U=f(U,L,p,w,N,16,s[42]),w=f(w,U,L,p,S,23,s[43]),p=f(p,w,U,L,R,4,s[44]),L=f(L,p,w,U,W,11,s[45]),U=f(U,L,p,w,T,16,s[46]),w=f(w,U,L,p,k,23,s[47]),p=c(p,w,U,L,m,6,s[48]),L=c(L,p,w,U,V,10,s[49]),U=c(U,L,p,w,D,15,s[50]),w=c(w,U,L,p,v,21,s[51]),p=c(p,w,U,L,W,6,s[52]),L=c(L,p,w,U,N,10,s[53]),U=c(U,L,p,w,Z,15,s[54]),w=c(w,U,L,p,b,21,s[55]),p=c(p,w,U,L,y,6,s[56]),L=c(L,p,w,U,T,10,s[57]),U=c(U,L,p,w,S,15,s[58]),w=c(w,U,L,p,F,21,s[59]),p=c(p,w,U,L,z,6,s[60]),L=c(L,p,w,U,P,10,s[61]),U=c(U,L,p,w,k,15,s[62]),w=c(w,U,L,p,R,21,s[63]),I[0]=I[0]+p|0,I[1]=I[1]+w|0,I[2]=I[2]+U|0,I[3]=I[3]+L|0},_doFinalize:function(){var Q=this._data,g=Q.words,x=this._nDataBytes*8,d=Q.sigBytes*8;g[d>>>5]|=128<<24-d%32;var h=a.floor(x/4294967296),I=x;g[(d+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,g[(d+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,Q.sigBytes=(g.length+1)*4,this._process();for(var m=this._hash,b=m.words,k=0;k<4;k++){var N=b[k];b[k]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return m},clone:function(){var Q=l.clone.call(this);return Q._hash=this._hash.clone(),Q}});function B(Q,g,x,d,h,I,m){var b=Q+(g&x|~g&d)+h+m;return(b<<I|b>>>32-I)+g}function i(Q,g,x,d,h,I,m){var b=Q+(g&d|x&~d)+h+m;return(b<<I|b>>>32-I)+g}function f(Q,g,x,d,h,I,m){var b=Q+(g^x^d)+h+m;return(b<<I|b>>>32-I)+g}function c(Q,g,x,d,h,I,m){var b=Q+(x^(g|~d))+h+m;return(b<<I|b>>>32-I)+g}n.MD5=l._createHelper(E),n.HmacMD5=l._createHmacHelper(E)}(Math),t.MD5})}(hA)),hA.exports}var IA={exports:{}},It;function n0(){return It||(It=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=n.Hasher,l=a.algo,C=[],s=l.SHA1=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,B){for(var i=this._hash.words,f=i[0],c=i[1],Q=i[2],g=i[3],x=i[4],d=0;d<80;d++){if(d<16)C[d]=E[B+d]|0;else{var h=C[d-3]^C[d-8]^C[d-14]^C[d-16];C[d]=h<<1|h>>>31}var I=(f<<5|f>>>27)+x+C[d];d<20?I+=(c&Q|~c&g)+1518500249:d<40?I+=(c^Q^g)+1859775393:d<60?I+=(c&Q|c&g|Q&g)-1894007588:I+=(c^Q^g)-899497514,x=g,g=Q,Q=c<<30|c>>>2,c=f,f=I}i[0]=i[0]+f|0,i[1]=i[1]+c|0,i[2]=i[2]+Q|0,i[3]=i[3]+g|0,i[4]=i[4]+x|0},_doFinalize:function(){var E=this._data,B=E.words,i=this._nDataBytes*8,f=E.sigBytes*8;return B[f>>>5]|=128<<24-f%32,B[(f+64>>>9<<4)+14]=Math.floor(i/4294967296),B[(f+64>>>9<<4)+15]=i,E.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var E=u.clone.call(this);return E._hash=this._hash.clone(),E}});a.SHA1=u._createHelper(s),a.HmacSHA1=u._createHmacHelper(s)}(),t.SHA1})}(IA)),IA.exports}var QA={exports:{}},Qt;function _A(){return Qt||(Qt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.WordArray,l=o.Hasher,C=n.algo,s=[],E=[];(function(){function f(x){for(var d=a.sqrt(x),h=2;h<=d;h++)if(!(x%h))return!1;return!0}function c(x){return(x-(x|0))*4294967296|0}for(var Q=2,g=0;g<64;)f(Q)&&(g<8&&(s[g]=c(a.pow(Q,1/2))),E[g]=c(a.pow(Q,1/3)),g++),Q++})();var B=[],i=C.SHA256=l.extend({_doReset:function(){this._hash=new u.init(s.slice(0))},_doProcessBlock:function(f,c){for(var Q=this._hash.words,g=Q[0],x=Q[1],d=Q[2],h=Q[3],I=Q[4],m=Q[5],b=Q[6],k=Q[7],N=0;N<64;N++){if(N<16)B[N]=f[c+N]|0;else{var z=B[N-15],v=(z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3,S=B[N-2],V=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;B[N]=v+B[N-7]+V+B[N-16]}var y=I&m^~I&b,R=g&x^g&d^x&d,Z=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),P=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),W=k+P+y+E[N]+B[N],F=Z+R;k=b,b=m,m=I,I=h+W|0,h=d,d=x,x=g,g=W+F|0}Q[0]=Q[0]+g|0,Q[1]=Q[1]+x|0,Q[2]=Q[2]+d|0,Q[3]=Q[3]+h|0,Q[4]=Q[4]+I|0,Q[5]=Q[5]+m|0,Q[6]=Q[6]+b|0,Q[7]=Q[7]+k|0},_doFinalize:function(){var f=this._data,c=f.words,Q=this._nDataBytes*8,g=f.sigBytes*8;return c[g>>>5]|=128<<24-g%32,c[(g+64>>>9<<4)+14]=a.floor(Q/4294967296),c[(g+64>>>9<<4)+15]=Q,f.sigBytes=c.length*4,this._process(),this._hash},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=l._createHelper(i),n.HmacSHA256=l._createHmacHelper(i)}(Math),t.SHA256})}(QA)),QA.exports}var xA={exports:{}},xt;function on(){return xt||(xt=1,function(r,e){(function(t,a,n){r.exports=a(K(),_A())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.algo,l=u.SHA256,C=u.SHA224=l.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=l._doFinalize.call(this);return s.sigBytes-=4,s}});a.SHA224=l._createHelper(C),a.HmacSHA224=l._createHmacHelper(C)}(),t.SHA224})}(xA)),xA.exports}var pA={exports:{}},pt;function r0(){return pt||(pt=1,function(r,e){(function(t,a,n){r.exports=a(K(),rA())})(J,function(t){return function(){var a=t,n=a.lib,o=n.Hasher,u=a.x64,l=u.Word,C=u.WordArray,s=a.algo;function E(){return l.create.apply(l,arguments)}var B=[E(1116352408,3609767458),E(1899447441,602891725),E(3049323471,3964484399),E(3921009573,2173295548),E(961987163,4081628472),E(1508970993,3053834265),E(2453635748,2937671579),E(2870763221,3664609560),E(3624381080,2734883394),E(310598401,1164996542),E(607225278,1323610764),E(1426881987,3590304994),E(1925078388,4068182383),E(2162078206,991336113),E(2614888103,633803317),E(3248222580,3479774868),E(3835390401,2666613458),E(4022224774,944711139),E(264347078,2341262773),E(604807628,2007800933),E(770255983,1495990901),E(1249150122,1856431235),E(1555081692,3175218132),E(1996064986,2198950837),E(2554220882,3999719339),E(2821834349,766784016),E(2952996808,2566594879),E(3210313671,3203337956),E(3336571891,1034457026),E(3584528711,2466948901),E(113926993,3758326383),E(338241895,168717936),E(666307205,1188179964),E(773529912,1546045734),E(1294757372,1522805485),E(1396182291,2643833823),E(1695183700,2343527390),E(1986661051,1014477480),E(2177026350,1206759142),E(2456956037,344077627),E(2730485921,1290863460),E(2820302411,3158454273),E(3259730800,3505952657),E(3345764771,106217008),E(3516065817,3606008344),E(3600352804,1432725776),E(4094571909,1467031594),E(275423344,851169720),E(430227734,3100823752),E(506948616,1363258195),E(659060556,3750685593),E(883997877,3785050280),E(958139571,3318307427),E(1322822218,3812723403),E(1537002063,2003034995),E(1747873779,3602036899),E(1955562222,1575990012),E(2024104815,1125592928),E(2227730452,2716904306),E(2361852424,442776044),E(2428436474,593698344),E(2756734187,3733110249),E(3204031479,2999351573),E(3329325298,3815920427),E(3391569614,3928383900),E(3515267271,566280711),E(3940187606,3454069534),E(4118630271,4000239992),E(116418474,1914138554),E(174292421,2731055270),E(289380356,3203993006),E(460393269,320620315),E(685471733,587496836),E(852142971,1086792851),E(1017036298,365543100),E(1126000580,2618297676),E(1288033470,3409855158),E(1501505948,4234509866),E(1607167915,987167468),E(1816402316,1246189591)],i=[];(function(){for(var c=0;c<80;c++)i[c]=E()})();var f=s.SHA512=o.extend({_doReset:function(){this._hash=new C.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(c,Q){for(var g=this._hash.words,x=g[0],d=g[1],h=g[2],I=g[3],m=g[4],b=g[5],k=g[6],N=g[7],z=x.high,v=x.low,S=d.high,V=d.low,y=h.high,R=h.low,Z=I.high,P=I.low,W=m.high,F=m.low,D=b.high,T=b.low,p=k.high,w=k.low,U=N.high,L=N.low,Y=z,O=v,H=S,X=V,oe=y,Ie=R,Je=Z,ke=P,ne=W,ee=F,Te=D,Se=T,ze=p,Fe=w,Oe=U,Ne=L,re=0;re<80;re++){var ae,Ce,Ze=i[re];if(re<16)Ce=Ze.high=c[Q+re*2]|0,ae=Ze.low=c[Q+re*2+1]|0;else{var Ke=i[re-15],Qe=Ke.high,ge=Ke.low,_=(Qe>>>1|ge<<31)^(Qe>>>8|ge<<24)^Qe>>>7,le=(ge>>>1|Qe<<31)^(ge>>>8|Qe<<24)^(ge>>>7|Qe<<25),xe=i[re-2],pe=xe.high,Ve=xe.low,uA=(pe>>>19|Ve<<13)^(pe<<3|Ve>>>29)^pe>>>6,q=(Ve>>>19|pe<<13)^(Ve<<3|pe>>>29)^(Ve>>>6|pe<<26),De=i[re-7],Ye=De.high,He=De.low,At=i[re-16],f0=At.high,tt=At.low;ae=le+He,Ce=_+Ye+(ae>>>0<le>>>0?1:0),ae=ae+q,Ce=Ce+uA+(ae>>>0<q>>>0?1:0),ae=ae+tt,Ce=Ce+f0+(ae>>>0<tt>>>0?1:0),Ze.high=Ce,Ze.low=ae}var h0=ne&Te^~ne&ze,at=ee&Se^~ee&Fe,I0=Y&H^Y&oe^H&oe,Q0=O&X^O&Ie^X&Ie,x0=(Y>>>28|O<<4)^(Y<<30|O>>>2)^(Y<<25|O>>>7),nt=(O>>>28|Y<<4)^(O<<30|Y>>>2)^(O<<25|Y>>>7),p0=(ne>>>14|ee<<18)^(ne>>>18|ee<<14)^(ne<<23|ee>>>9),m0=(ee>>>14|ne<<18)^(ee>>>18|ne<<14)^(ee<<23|ne>>>9),rt=B[re],v0=rt.high,ot=rt.low,se=Ne+m0,Re=Oe+p0+(se>>>0<Ne>>>0?1:0),se=se+at,Re=Re+h0+(se>>>0<at>>>0?1:0),se=se+ot,Re=Re+v0+(se>>>0<ot>>>0?1:0),se=se+ae,Re=Re+Ce+(se>>>0<ae>>>0?1:0),st=nt+Q0,b0=x0+I0+(st>>>0<nt>>>0?1:0);Oe=ze,Ne=Fe,ze=Te,Fe=Se,Te=ne,Se=ee,ee=ke+se|0,ne=Je+Re+(ee>>>0<ke>>>0?1:0)|0,Je=oe,ke=Ie,oe=H,Ie=X,H=Y,X=O,O=se+st|0,Y=Re+b0+(O>>>0<se>>>0?1:0)|0}v=x.low=v+O,x.high=z+Y+(v>>>0<O>>>0?1:0),V=d.low=V+X,d.high=S+H+(V>>>0<X>>>0?1:0),R=h.low=R+Ie,h.high=y+oe+(R>>>0<Ie>>>0?1:0),P=I.low=P+ke,I.high=Z+Je+(P>>>0<ke>>>0?1:0),F=m.low=F+ee,m.high=W+ne+(F>>>0<ee>>>0?1:0),T=b.low=T+Se,b.high=D+Te+(T>>>0<Se>>>0?1:0),w=k.low=w+Fe,k.high=p+ze+(w>>>0<Fe>>>0?1:0),L=N.low=L+Ne,N.high=U+Oe+(L>>>0<Ne>>>0?1:0)},_doFinalize:function(){var c=this._data,Q=c.words,g=this._nDataBytes*8,x=c.sigBytes*8;Q[x>>>5]|=128<<24-x%32,Q[(x+128>>>10<<5)+30]=Math.floor(g/4294967296),Q[(x+128>>>10<<5)+31]=g,c.sigBytes=Q.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c},blockSize:1024/32});a.SHA512=o._createHelper(f),a.HmacSHA512=o._createHmacHelper(f)}(),t.SHA512})}(pA)),pA.exports}var mA={exports:{}},mt;function sn(){return mt||(mt=1,function(r,e){(function(t,a,n){r.exports=a(K(),rA(),r0())})(J,function(t){return function(){var a=t,n=a.x64,o=n.Word,u=n.WordArray,l=a.algo,C=l.SHA512,s=l.SHA384=C.extend({_doReset:function(){this._hash=new u.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var E=C._doFinalize.call(this);return E.sigBytes-=16,E}});a.SHA384=C._createHelper(s),a.HmacSHA384=C._createHmacHelper(s)}(),t.SHA384})}(mA)),mA.exports}var vA={exports:{}},vt;function ln(){return vt||(vt=1,function(r,e){(function(t,a,n){r.exports=a(K(),rA())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.WordArray,l=o.Hasher,C=n.x64,s=C.Word,E=n.algo,B=[],i=[],f=[];(function(){for(var g=1,x=0,d=0;d<24;d++){B[g+5*x]=(d+1)*(d+2)/2%64;var h=x%5,I=(2*g+3*x)%5;g=h,x=I}for(var g=0;g<5;g++)for(var x=0;x<5;x++)i[g+5*x]=x+(2*g+3*x)%5*5;for(var m=1,b=0;b<24;b++){for(var k=0,N=0,z=0;z<7;z++){if(m&1){var v=(1<<z)-1;v<32?N^=1<<v:k^=1<<v-32}m&128?m=m<<1^113:m<<=1}f[b]=s.create(k,N)}})();var c=[];(function(){for(var g=0;g<25;g++)c[g]=s.create()})();var Q=E.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],x=0;x<25;x++)g[x]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,x){for(var d=this._state,h=this.blockSize/2,I=0;I<h;I++){var m=g[x+2*I],b=g[x+2*I+1];m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;var k=d[I];k.high^=b,k.low^=m}for(var N=0;N<24;N++){for(var z=0;z<5;z++){for(var v=0,S=0,V=0;V<5;V++){var k=d[z+5*V];v^=k.high,S^=k.low}var y=c[z];y.high=v,y.low=S}for(var z=0;z<5;z++)for(var R=c[(z+4)%5],Z=c[(z+1)%5],P=Z.high,W=Z.low,v=R.high^(P<<1|W>>>31),S=R.low^(W<<1|P>>>31),V=0;V<5;V++){var k=d[z+5*V];k.high^=v,k.low^=S}for(var F=1;F<25;F++){var v,S,k=d[F],D=k.high,T=k.low,p=B[F];p<32?(v=D<<p|T>>>32-p,S=T<<p|D>>>32-p):(v=T<<p-32|D>>>64-p,S=D<<p-32|T>>>64-p);var w=c[i[F]];w.high=v,w.low=S}var U=c[0],L=d[0];U.high=L.high,U.low=L.low;for(var z=0;z<5;z++)for(var V=0;V<5;V++){var F=z+5*V,k=d[F],Y=c[F],O=c[(z+1)%5+5*V],H=c[(z+2)%5+5*V];k.high=Y.high^~O.high&H.high,k.low=Y.low^~O.low&H.low}var k=d[0],X=f[N];k.high^=X.high,k.low^=X.low}},_doFinalize:function(){var g=this._data,x=g.words;this._nDataBytes*8;var d=g.sigBytes*8,h=this.blockSize*32;x[d>>>5]|=1<<24-d%32,x[(a.ceil((d+1)/h)*h>>>5)-1]|=128,g.sigBytes=x.length*4,this._process();for(var I=this._state,m=this.cfg.outputLength/8,b=m/8,k=[],N=0;N<b;N++){var z=I[N],v=z.high,S=z.low;v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,k.push(S),k.push(v)}return new u.init(k,m)},clone:function(){for(var g=l.clone.call(this),x=g._state=this._state.slice(0),d=0;d<25;d++)x[d]=x[d].clone();return g}});n.SHA3=l._createHelper(Q),n.HmacSHA3=l._createHmacHelper(Q)}(Math),t.SHA3})}(vA)),vA.exports}var bA={exports:{}},bt;function un(){return bt||(bt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){/** @preserve
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("vue"),Ht=Symbol("MidenPGConfig");function y0(r){if(!(r!=null&&r.publishableKey))throw new Error("[@miden-npm/vue] publishableKey is required");return{install(e){e.provide(Ht,r)}}}function k0(){const r=A.inject(Ht);if(!r)throw new Error("[@miden-npm/vue] Missing provider. Did you forget to app.use(createMidenPG(...))?");return r}const Xe=r=>r==null||typeof r!="object"?!1:Object.values(r).every(Boolean),KA=r=>{const e={};return new URL(r).searchParams.forEach((a,n)=>{e[n]=a}),e};function S0(r){var a;const e=navigator.language||(((a=navigator.languages)==null?void 0:a[0])??""),t=String(new Date().getTimezoneOffset());return{httpBrowserLanguage:e,httpBrowserJavaEnabled:typeof navigator.javaEnabled=="function"?navigator.javaEnabled():!1,httpBrowserJavaScriptEnabled:!0,httpBrowserColorDepth:String(screen.colorDepth??""),httpBrowserScreenHeight:String(screen.height??""),httpBrowserScreenWidth:String(screen.width??""),httpBrowserTimeDifference:t,userAgentBrowserValue:navigator.userAgent??"",deviceChannel:"BROWSER",deviceIpAddress:"",httpAcceptContent:e,...r}}const ye=(r,e)=>r==="sandbox"?e==="buzapay"?"https://sandbox-api.buzapay.com/payment-gateway-api":"https://sandbox-api.midencards.io/miden-web":r==="production"?e==="buzapay"?"https://merchant.buzapay.com/payment-gateway-api":"https://sandbox-api.midencards.io/miden-web":"",F0=r=>r==="USD"?"$":r==="NGN"?"₦":r==="EUR"?"€":r==="GBP"?"£":r==="JPY"||r==="CNY"?"¥":r==="USDC"||r==="usdc"?"$⧫":r==="USDT"||r==="usdt"?"₮":"$",ce=(r,e)=>{const t=typeof r=="string"?parseFloat(r):r;return isNaN(t)?"0":`${e?F0(e):""}${t==null?void 0:t.toLocaleString("en-US")}`},N0=(r,e)=>r.length<=e?r:r.slice(0,e)+"...",V0=r=>{const e=["Backspace","Tab","ArrowLeft","ArrowRight","Delete","Home","End","."];(r.ctrlKey||r.metaKey)&&["a","c","v","x"].includes(r.key.toLowerCase())||(!e.includes(r.key)&&!/^\d$/.test(r.key)&&r.preventDefault(),r.key==="."&&r.target.value.includes(".")&&r.preventDefault())},it=[{name:"Afghanistan",code:"AF",phoneCode:"+93",flag:"🇦🇫"},{name:"Albania",code:"AL",phoneCode:"+355",flag:"🇦🇱"},{name:"Algeria",code:"DZ",phoneCode:"+213",flag:"🇩🇿"},{name:"American Samoa",code:"AS",phoneCode:"+1",flag:"🇦🇸"},{name:"Andorra",code:"AD",phoneCode:"+376",flag:"🇦🇩"},{name:"Angola",code:"AO",phoneCode:"+244",flag:"🇦🇴"},{name:"Anguilla",code:"AI",phoneCode:"+1",flag:"🇦🇮"},{name:"Antarctica",code:"AQ",phoneCode:"+672",flag:"🇦🇶"},{name:"Antigua and Barbuda",code:"AG",phoneCode:"+1",flag:"🇦🇬"},{name:"Argentina",code:"AR",phoneCode:"+54",flag:"🇦🇷"},{name:"Armenia",code:"AM",phoneCode:"+374",flag:"🇦🇲"},{name:"Aruba",code:"AW",phoneCode:"+297",flag:"🇦🇼"},{name:"Australia",code:"AU",phoneCode:"+61",flag:"🇦🇺"},{name:"Austria",code:"AT",phoneCode:"+43",flag:"🇦🇹"},{name:"Azerbaijan",code:"AZ",phoneCode:"+994",flag:"🇦🇿"},{name:"Bahamas",code:"BS",phoneCode:"+1",flag:"🇧🇸"},{name:"Bahrain",code:"BH",phoneCode:"+973",flag:"🇧🇭"},{name:"Bangladesh",code:"BD",phoneCode:"+880",flag:"🇧🇩"},{name:"Barbados",code:"BB",phoneCode:"+1",flag:"🇧🇧"},{name:"Belarus",code:"BY",phoneCode:"+375",flag:"🇧🇾"},{name:"Belgium",code:"BE",phoneCode:"+32",flag:"🇧🇪"},{name:"Belize",code:"BZ",phoneCode:"+501",flag:"🇧🇿"},{name:"Benin",code:"BJ",phoneCode:"+229",flag:"🇧🇯"},{name:"Bermuda",code:"BM",phoneCode:"+1",flag:"🇧🇲"},{name:"Bhutan",code:"BT",phoneCode:"+975",flag:"🇧🇹"},{name:"Bolivia",code:"BO",phoneCode:"+591",flag:"🇧🇴"},{name:"Bosnia and Herzegovina",code:"BA",phoneCode:"+387",flag:"🇧🇦"},{name:"Botswana",code:"BW",phoneCode:"+267",flag:"🇧🇼"},{name:"Bouvet Island",code:"BV",phoneCode:"+47",flag:"🇧🇻"},{name:"Brazil",code:"BR",phoneCode:"+55",flag:"🇧🇷"},{name:"British Indian Ocean Territory",code:"IO",phoneCode:"+246",flag:"🇮🇴"},{name:"Brunei Darussalam",code:"BN",phoneCode:"+673",flag:"🇧🇳"},{name:"Bulgaria",code:"BG",phoneCode:"+359",flag:"🇧🇬"},{name:"Burkina Faso",code:"BF",phoneCode:"+226",flag:"🇧🇫"},{name:"Burundi",code:"BI",phoneCode:"+257",flag:"🇧🇮"},{name:"Cambodia",code:"KH",phoneCode:"+855",flag:"🇰🇭"},{name:"Cameroon",code:"CM",phoneCode:"+237",flag:"🇨🇲"},{name:"Canada",code:"CA",phoneCode:"+1",flag:"🇨🇦"},{name:"Cape Verde",code:"CV",phoneCode:"+238",flag:"🇨🇻"},{name:"Cayman Islands",code:"KY",phoneCode:"+1",flag:"🇰🇾"},{name:"Central African Republic",code:"CF",phoneCode:"+236",flag:"🇨🇫"},{name:"Chad",code:"TD",phoneCode:"+235",flag:"🇹🇩"},{name:"Chile",code:"CL",phoneCode:"+56",flag:"🇨🇱"},{name:"China",code:"CN",phoneCode:"+86",flag:"🇨🇳"},{name:"Christmas Island",code:"CX",phoneCode:"+61",flag:"🇨🇽"},{name:"Cocos (Keeling) Islands",code:"CC",phoneCode:"+61",flag:"🇨🇨"},{name:"Colombia",code:"CO",phoneCode:"+57",flag:"🇨🇴"},{name:"Comoros",code:"KM",phoneCode:"+269",flag:"🇰🇲"},{name:"Congo",code:"CG",phoneCode:"+242",flag:"🇨🇬"},{name:"Congo, Democratic Republic of the",code:"CD",phoneCode:"+243",flag:"🇨🇩"},{name:"Cook Islands",code:"CK",phoneCode:"+682",flag:"🇨🇰"},{name:"Costa Rica",code:"CR",phoneCode:"+506",flag:"🇨🇷"},{name:"Côte d'Ivoire",code:"CI",phoneCode:"+225",flag:"🇨🇮"},{name:"Croatia",code:"HR",phoneCode:"+385",flag:"🇭🇷"},{name:"Cuba",code:"CU",phoneCode:"+53",flag:"🇨🇺"},{name:"Cyprus",code:"CY",phoneCode:"+357",flag:"🇨🇾"},{name:"Czech Republic",code:"CZ",phoneCode:"+420",flag:"🇨🇿"},{name:"Denmark",code:"DK",phoneCode:"+45",flag:"🇩🇰"},{name:"Djibouti",code:"DJ",phoneCode:"+253",flag:"🇩🇯"},{name:"Dominica",code:"DM",phoneCode:"+1",flag:"🇩🇲"},{name:"Dominican Republic",code:"DO",phoneCode:"+1",flag:"🇩🇴"},{name:"Ecuador",code:"EC",phoneCode:"+593",flag:"🇪🇨"},{name:"Egypt",code:"EG",phoneCode:"+20",flag:"🇪🇬"},{name:"El Salvador",code:"SV",phoneCode:"+503",flag:"🇸🇻"},{name:"Equatorial Guinea",code:"GQ",phoneCode:"+240",flag:"🇬🇶"},{name:"Eritrea",code:"ER",phoneCode:"+291",flag:"🇪🇷"},{name:"Estonia",code:"EE",phoneCode:"+372",flag:"🇪🇪"},{name:"Ethiopia",code:"ET",phoneCode:"+251",flag:"🇪🇹"},{name:"Falkland Islands (Malvinas)",code:"FK",phoneCode:"+500",flag:"🇫🇰"},{name:"Faroe Islands",code:"FO",phoneCode:"+298",flag:"🇫🇴"},{name:"Fiji",code:"FJ",phoneCode:"+679",flag:"🇫🇯"},{name:"Finland",code:"FI",phoneCode:"+358",flag:"🇫🇮"},{name:"France",code:"FR",phoneCode:"+33",flag:"🇫🇷"},{name:"French Guiana",code:"GF",phoneCode:"+594",flag:"🇬🇫"},{name:"French Polynesia",code:"PF",phoneCode:"+689",flag:"🇵🇫"},{name:"French Southern Territories",code:"TF",phoneCode:"+262",flag:"🇹🇫"},{name:"Gabon",code:"GA",phoneCode:"+240",flag:"🇬🇦"},{name:"Gambia",code:"GM",phoneCode:"+220",flag:"🇬🇲"},{name:"Georgia",code:"GE",phoneCode:"+995",flag:"🇬🇪"},{name:"Germany",code:"DE",phoneCode:"+49",flag:"🇩🇪"},{name:"Ghana",code:"GH",phoneCode:"+233",flag:"🇬🇭"},{name:"Gibraltar",code:"GI",phoneCode:"+350",flag:"🇬🇮"},{name:"Greece",code:"GR",phoneCode:"+30",flag:"🇬🇷"},{name:"Greenland",code:"GL",phoneCode:"+299",flag:"🇬🇱"},{name:"Grenada",code:"GD",phoneCode:"+1",flag:"🇬🇩"},{name:"Guadeloupe",code:"GP",phoneCode:"+590",flag:"🇬🇵"},{name:"Guam",code:"GU",phoneCode:"+1",flag:"🇬🇺"},{name:"Guatemala",code:"GT",phoneCode:"+502",flag:"🇬🇹"},{name:"Guernsey",code:"GG",phoneCode:"+44",flag:"🇬🇬"},{name:"Guinea",code:"GN",phoneCode:"+224",flag:"🇬🇳"},{name:"Guinea-Bissau",code:"GW",phoneCode:"+245",flag:"🇬🇼"},{name:"Guyana",code:"GY",phoneCode:"+592",flag:"🇬🇾"},{name:"Haiti",code:"HT",phoneCode:"+509",flag:"🇭🇹"},{name:"Heard Island and McDonald Islands",code:"HM",phoneCode:"+672",flag:"🇭🇲"},{name:"Holy See (Vatican City State)",code:"VA",phoneCode:"+39",flag:"🇻🇦"},{name:"Honduras",code:"HN",phoneCode:"+504",flag:"🇭🇳"},{name:"Hong Kong",code:"HK",phoneCode:"+852",flag:"🇭🇰"},{name:"Hungary",code:"HU",phoneCode:"+36",flag:"🇭🇺"},{name:"Iceland",code:"IS",phoneCode:"+354",flag:"🇮🇸"},{name:"India",code:"IN",phoneCode:"+91",flag:"🇮🇳"},{name:"Indonesia",code:"ID",phoneCode:"+62",flag:"🇮🇩"},{name:"Iran, Islamic Republic of",code:"IR",phoneCode:"+98",flag:"🇮🇷"},{name:"Iraq",code:"IQ",phoneCode:"+964",flag:"🇮🇶"},{name:"Ireland",code:"IE",phoneCode:"+353",flag:"🇮🇪"},{name:"Isle of Man",code:"IM",phoneCode:"+44",flag:"🇮🇲"},{name:"Israel",code:"IL",phoneCode:"+972",flag:"🇮🇱"},{name:"Italy",code:"IT",phoneCode:"+39",flag:"🇮🇹"},{name:"Jamaica",code:"JM",phoneCode:"+1",flag:"🇯🇲"},{name:"Japan",code:"JP",phoneCode:"+81",flag:"🇯🇵"},{name:"Jersey",code:"JE",phoneCode:"+44",flag:"🇯🇪"},{name:"Jordan",code:"JO",phoneCode:"+962",flag:"🇯🇴"},{name:"Kazakhstan",code:"KZ",phoneCode:"+7",flag:"🇰🇿"},{name:"Kenya",code:"KE",phoneCode:"+254",flag:"🇰🇪"},{name:"Kiribati",code:"KI",phoneCode:"+686",flag:"🇰🇮"},{name:"Korea, Democratic People's Republic of",code:"KP",phoneCode:"+850",flag:"🇰🇵"},{name:"Korea, Republic of",code:"KR",phoneCode:"+82",flag:"🇰🇷"},{name:"Kuwait",code:"KW",phoneCode:"+965",flag:"🇰🇼"},{name:"Kyrgyzstan",code:"KG",phoneCode:"+996",flag:"🇰🇬"},{name:"Lao People's Democratic Republic",code:"LA",phoneCode:"+856",flag:"🇱🇦"},{name:"Latvia",code:"LV",phoneCode:"+371",flag:"🇱🇻"},{name:"Lebanon",code:"LB",phoneCode:"+961",flag:"🇱🇧"},{name:"Lesotho",code:"LS",phoneCode:"+266",flag:"🇱🇸"},{name:"Liberia",code:"LR",phoneCode:"+231",flag:"🇱🇷"},{name:"Libya",code:"LY",phoneCode:"+218",flag:"🇱🇾"},{name:"Liechtenstein",code:"LI",phoneCode:"+423",flag:"🇱🇮"},{name:"Lithuania",code:"LT",phoneCode:"+370",flag:"🇱🇹"},{name:"Luxembourg",code:"LU",phoneCode:"+352",flag:"🇱🇺"},{name:"Macao",code:"MO",phoneCode:"+853",flag:"🇲🇴"},{name:"Macedonia, the former Yugoslav Republic of",code:"MK",phoneCode:"+389",flag:"🇲🇰"},{name:"Madagascar",code:"MG",phoneCode:"+261",flag:"🇲🇬"},{name:"Malawi",code:"MW",phoneCode:"+265",flag:"🇲🇼"},{name:"Malaysia",code:"MY",phoneCode:"+60",flag:"🇲🇾"},{name:"Maldives",code:"MV",phoneCode:"+960",flag:"🇲🇻"},{name:"Mali",code:"ML",phoneCode:"+223",flag:"🇲🇱"},{name:"Malta",code:"MT",phoneCode:"+356",flag:"🇲🇹"},{name:"Marshall Islands",code:"MH",phoneCode:"+692",flag:"🇲🇭"},{name:"Martinique",code:"MQ",phoneCode:"+596",flag:"🇲🇶"},{name:"Mauritania",code:"MR",phoneCode:"+222",flag:"🇲🇷"},{name:"Mauritius",code:"MU",phoneCode:"+230",flag:"🇲🇺"},{name:"Mayotte",code:"YT",phoneCode:"+262",flag:"🇾🇹"},{name:"Mexico",code:"MX",phoneCode:"+52",flag:"🇲🇽"},{name:"Micronesia, Federated States of",code:"FM",phoneCode:"+691",flag:"🇫🇲"},{name:"Moldova, Republic of",code:"MD",phoneCode:"+373",flag:"🇲🇩"},{name:"Monaco",code:"MC",phoneCode:"+377",flag:"🇲🇨"},{name:"Mongolia",code:"MN",phoneCode:"+976",flag:"🇲🇳"},{name:"Montenegro",code:"ME",phoneCode:"+382",flag:"🇲🇪"},{name:"Montserrat",code:"MS",phoneCode:"+1",flag:"🇲🇸"},{name:"Morocco",code:"MA",phoneCode:"+212",flag:"🇲🇦"},{name:"Mozambique",code:"MZ",phoneCode:"+258",flag:"🇲🇿"},{name:"Myanmar",code:"MM",phoneCode:"+95",flag:"🇲🇲"},{name:"Namibia",code:"NA",phoneCode:"+264",flag:"🇳🇦"},{name:"Nauru",code:"NR",phoneCode:"+674",flag:"🇳🇷"},{name:"Nepal",code:"NP",phoneCode:"+977",flag:"🇳🇵"},{name:"Netherlands",code:"NL",phoneCode:"+31",flag:"🇳🇱"},{name:"New Caledonia",code:"NC",phoneCode:"+687",flag:"🇳🇨"},{name:"New Zealand",code:"NZ",phoneCode:"+64",flag:"🇳🇿"},{name:"Nicaragua",code:"NI",phoneCode:"+505",flag:"🇳🇮"},{name:"Niger",code:"NE",phoneCode:"+227",flag:"🇳🇪"},{name:"Nigeria",code:"NG",phoneCode:"+234",flag:"🇳🇬"},{name:"Niue",code:"NU",phoneCode:"+683",flag:"🇳🇺"},{name:"Norfolk Island",code:"NF",phoneCode:"+672",flag:"🇳🇫"},{name:"Northern Mariana Islands",code:"MP",phoneCode:"+1",flag:"🇲🇵"},{name:"Norway",code:"NO",phoneCode:"+47",flag:"🇳🇴"},{name:"Oman",code:"OM",phoneCode:"+968",flag:"🇴🇲"},{name:"Pakistan",code:"PK",phoneCode:"+92",flag:"🇵🇰"},{name:"Palau",code:"PW",phoneCode:"+680",flag:"🇵🇼"},{name:"Palestinian Territory, Occupied",code:"PS",phoneCode:"+970",flag:"🇵🇸"},{name:"Panama",code:"PA",phoneCode:"+507",flag:"🇵🇦"},{name:"Papua New Guinea",code:"PG",phoneCode:"+675",flag:"🇵🇬"},{name:"Paraguay",code:"PY",phoneCode:"+595",flag:"🇵🇾"},{name:"Peru",code:"PE",phoneCode:"+51",flag:"🇵🇪"},{name:"Philippines",code:"PH",phoneCode:"+63",flag:"🇵🇭"},{name:"Pitcairn",code:"PN",phoneCode:"+64",flag:"🇵🇳"},{name:"Poland",code:"PL",phoneCode:"+48",flag:"🇵🇱"},{name:"Portugal",code:"PT",phoneCode:"+351",flag:"🇵🇹"},{name:"Puerto Rico",code:"PR",phoneCode:"+1",flag:"🇵🇷"},{name:"Qatar",code:"QA",phoneCode:"+974",flag:"🇶🇦"},{name:"Réunion",code:"RE",phoneCode:"+262",flag:"🇷🇪"},{name:"Romania",code:"RO",phoneCode:"+40",flag:"🇷🇴"},{name:"Russian Federation",code:"RU",phoneCode:"+7",flag:"🇷🇺"},{name:"Rwanda",code:"RW",phoneCode:"+250",flag:"🇷🇼"},{name:"Saint Barthélemy",code:"BL",phoneCode:"+590",flag:"🇧🇱"},{name:"Saint Helena, Ascension and Tristan da Cunha",code:"SH",phoneCode:"+290",flag:"🇸🇭"},{name:"Saint Kitts and Nevis",code:"KN",phoneCode:"+1",flag:"🇰🇳"},{name:"Saint Lucia",code:"LC",phoneCode:"+1",flag:"🇱🇨"},{name:"Saint Martin (French part)",code:"MF",phoneCode:"+590",flag:"🇲🇫"},{name:"Saint Pierre and Miquelon",code:"PM",phoneCode:"+508",flag:"🇵🇲"},{name:"Saint Vincent and the Grenadines",code:"VC",phoneCode:"+1",flag:"🇻🇨"},{name:"Samoa",code:"WS",phoneCode:"+685",flag:"🇼🇸"},{name:"San Marino",code:"SM",phoneCode:"+378",flag:"🇸🇲"},{name:"Sao Tome and Principe",code:"ST",phoneCode:"+239",flag:"🇸🇹"},{name:"Saudi Arabia",code:"SA",phoneCode:"+966",flag:"🇸🇦"},{name:"Senegal",code:"SN",phoneCode:"+221",flag:"🇸🇳"},{name:"Serbia",code:"RS",phoneCode:"+381",flag:"🇷🇸"},{name:"Seychelles",code:"SC",phoneCode:"+248",flag:"🇸🇨"},{name:"Sierra Leone",code:"SL",phoneCode:"+232",flag:"🇸🇱"},{name:"Singapore",code:"SG",phoneCode:"+65",flag:"🇸🇬"},{name:"Sint Maarten (Dutch part)",code:"SX",phoneCode:"+1",flag:"🇸🇽"},{name:"Slovakia",code:"SK",phoneCode:"+421",flag:"🇸🇰"},{name:"Slovenia",code:"SI",phoneCode:"+386",flag:"🇸🇮"},{name:"Solomon Islands",code:"SB",phoneCode:"+677",flag:"🇸🇧"},{name:"Somalia",code:"SO",phoneCode:"+252",flag:"🇸🇴"},{name:"South Africa",code:"ZA",phoneCode:"+27",flag:"🇿🇦"},{name:"South Georgia and the South Sandwich Islands",code:"GS",phoneCode:"+500",flag:"🇬🇸"},{name:"South Sudan",code:"SS",phoneCode:"+211",flag:"🇸🇸"},{name:"Spain",code:"ES",phoneCode:"+34",flag:"🇪🇸"},{name:"Sri Lanka",code:"LK",phoneCode:"+94",flag:"🇱🇰"},{name:"Sudan",code:"SD",phoneCode:"+249",flag:"🇸🇩"},{name:"Suriname",code:"SR",phoneCode:"+597",flag:"🇸🇷"},{name:"Svalbard and Jan Mayen",code:"SJ",phoneCode:"+47",flag:"🇸🇯"},{name:"Swaziland",code:"SZ",phoneCode:"+268",flag:"🇸🇿"},{name:"Sweden",code:"SE",phoneCode:"+46",flag:"🇸🇪"},{name:"Switzerland",code:"CH",phoneCode:"+41",flag:"🇨🇭"},{name:"Syrian Arab Republic",code:"SY",phoneCode:"+963",flag:"🇸🇾"},{name:"Taiwan, Province of China",code:"TW",phoneCode:"+886",flag:"🇹🇼"},{name:"Tajikistan",code:"TJ",phoneCode:"+992",flag:"🇹🇯"},{name:"Tanzania, United Republic of",code:"TZ",phoneCode:"+255",flag:"🇹🇿"},{name:"Thailand",code:"TH",phoneCode:"+66",flag:"🇹🇭"},{name:"Timor-Leste",code:"TL",phoneCode:"+670",flag:"🇹🇱"},{name:"Togo",code:"TG",phoneCode:"+228",flag:"🇹🇬"},{name:"Tokelau",code:"TK",phoneCode:"+690",flag:"🇹🇰"},{name:"Tonga",code:"TO",phoneCode:"+676",flag:"🇹🇴"},{name:"Trinidad and Tobago",code:"TT",phoneCode:"+1",flag:"🇹🇹"},{name:"Tunisia",code:"TN",phoneCode:"+216",flag:"🇹🇳"},{name:"Turkey",code:"TR",phoneCode:"+90",flag:"🇹🇷"},{name:"Turkmenistan",code:"TM",phoneCode:"+993",flag:"🇹🇲"},{name:"Turks and Caicos Islands",code:"TC",phoneCode:"+1",flag:"🇹🇨"},{name:"Tuvalu",code:"TV",phoneCode:"+688",flag:"🇹🇻"},{name:"Uganda",code:"UG",phoneCode:"+256",flag:"🇺🇬"},{name:"Ukraine",code:"UA",phoneCode:"+380",flag:"🇺🇦"},{name:"United Arab Emirates",code:"AE",phoneCode:"+971",flag:"🇦🇪"},{name:"United Kingdom",code:"GB",phoneCode:"+44",flag:"🇬🇧"},{name:"United States",code:"US",phoneCode:"+1",flag:"🇺🇸"},{name:"United States Minor Outlying Islands",code:"UM",phoneCode:"+1",flag:"🇺🇲"},{name:"Uruguay",code:"UY",phoneCode:"+598",flag:"🇺🇾"},{name:"Uzbekistan",code:"UZ",phoneCode:"+998",flag:"🇺🇿"},{name:"Vanuatu",code:"VU",phoneCode:"+678",flag:"🇻🇺"},{name:"Venezuela, Bolivarian Republic of",code:"VE",phoneCode:"+58",flag:"🇻🇪"},{name:"Viet Nam",code:"VN",phoneCode:"+84",flag:"🇻🇳"},{name:"Virgin Islands, British",code:"VG",phoneCode:"+1",flag:"🇻🇬"},{name:"Virgin Islands, U.S.",code:"VI",phoneCode:"+1",flag:"🇻🇮"},{name:"Wallis and Futuna",code:"WF",phoneCode:"+681",flag:"🇼🇫"},{name:"Western Sahara",code:"EH",phoneCode:"+212",flag:"🇪🇭"},{name:"Yemen",code:"YE",phoneCode:"+967",flag:"🇾🇪"},{name:"Zambia",code:"ZM",phoneCode:"+260",flag:"🇿🇲"},{name:"Zimbabwe",code:"ZW",phoneCode:"+263",flag:"🇿🇼"}],Be=(r,e)=>e.test(r);function D0(r){return r?r.split("|").map(e=>{const[t,a]=e.split(":");return{rule:t,value:a}}):[]}function R0(r,e,t){const a=[],n=D0(r),o=(t||"This field").toLowerCase(),u=e??"",l=Number(u),C=!Number.isNaN(l);for(const s of n)switch(s.rule){case"required":u||a.push(`The ${o} field is required`);break;case"alpha":Be(u,/^[a-zA-Z]+$/)||a.push(`The ${o} field must only contain alphabetic characters`);break;case"at_least_one_uppercase":Be(u,/.*[A-Z].*/)||a.push(`The ${o} field must contain at least one uppercase character`);break;case"at_least_one_lowercase":Be(u,/.*[a-z].*/)||a.push(`The ${o} field must contain at least one lowercase character`);break;case"at_least_one_number":Be(u,/.*\d.*/)||a.push(`The ${o} field must contain at least one number`);break;case"alpha_num":Be(u,/^[a-z0-9]+$/i)||a.push(`The ${o} field must only contain alphabetic characters and numbers`);break;case"num_spaces":Be(u,/^[0-9\s]+$/i)||a.push(`The ${o} field must only contain space and numbers`);break;case"alpha_spaces":Be(u,/^[A-Za-z\s]*$/)||a.push(`The ${o} field must only contain alphabetic characters and spaces`);break;case"numeric":Be(u,/^\d+$/)||a.push(`The ${o} field must only contain numbers`);break;case"no_special":Be(u,/[^a-zA-Z0-9\s]/)&&a.push(`The ${o} field must not contain special characters`);break;case"at_least_one_special":Be(u,/[^a-zA-Z0-9\s]/)||a.push(`The ${o} field must contain at least one special character`);break;case"email":Be(u,/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})+$/)||a.push("Please enter a valid email address");break;case"is":s.value!==u&&a.push(`Value entered must be ${s.value}`);break;case"is_not":s.value===u&&a.push(`Value entered must not be ${s.value}`);break;case"char_length":u.length!==Number(s.value)&&a.push(`The ${o} field must be ${s.value} characters long`);break;case"min_char_length":u.length<Number(s.value)&&a.push(`The ${o} field must not be less than ${s.value} characters long`);break;case"max_char_length":u.length>Number(s.value)&&a.push(`The ${o} field must not be greater than ${s.value} characters long`);break;case"age":(!C||l!==Number(s.value))&&a.push(`Age entered must be ${s.value}`);break;case"min_age":(!C||l<Number(s.value))&&a.push(`Age entered must not be less than ${s.value}`);break;case"max_age":(!C||l>Number(s.value))&&a.push(`Age entered must not be greater than ${s.value}`);break;case"num_is":(!C||l!==Number(s.value))&&a.push(`Number entered must be ${s.value}`);break;case"num_is_not":C&&l===Number(s.value)&&a.push(`Number entered must not be ${s.value}`);break;case"min_number":(!C||l<Number(s.value))&&a.push(`Number entered must not be less than ${s.value}`);break;case"max_number":(!C||l>Number(s.value))&&a.push(`Number entered must not be greater than ${s.value}`);break}return a.length>0?a[0]:null}const tA=(r,e,t)=>{const a={};for(const[n,o]of Object.entries(e)){if(!o)continue;const u=(t==null?void 0:t[n])??n,l=R0(o,r[n]??"",u);l&&(a[n]=l)}return a};var _t=(r=>(r[r.Visa=1]="Visa",r[r.MasterCard=2]="MasterCard",r[r.Verve=3]="Verve",r[r.MastercardAndVisa=4]="MastercardAndVisa",r[r.AmericanExpress=5]="AmericanExpress",r[r.Discover=6]="Discover",r[r.JCB=7]="JCB",r[r.DinersClub=8]="DinersClub",r[r.Maestro=9]="Maestro",r[r.UnionPay=10]="UnionPay",r[r.UnionPay3DS=11]="UnionPay3DS",r[r.UnionPayNon3DS=12]="UnionPayNon3DS",r[r.UATP=13]="UATP",r[r.PayPak=14]="PayPak",r[r.Jaywan=15]="Jaywan",r[r.Mada=16]="Mada",r[r.MadaVisa=17]="MadaVisa",r[r.MadaMastercard=18]="MadaMastercard",r[r.Unknown=19]="Unknown",r))(_t||{});const lt=/^4\d{12}(\d{3}){0,2}$/,ut=/^(?:5[1-5]\d{14}|2(?:2(?:2[1-9]|[3-9]\d)|[3-6]\d{2}|7(?:[01]\d|20))\d{12})(?:\d{0,3})?$/,w0=/^(34|37)\d{13}$/,L0=/^(?:6011|65|64[4-9]|622(?:12[6-9]|1[3-9]\d|[2-8]\d{2}|9(?:0\d|1\d|2[0-5])))\d{12,15}$/,U0=/^(?:35(?:2[8-9]|[3-8]\d))\d{12,15}$/,T0=/^(?:3(?:0[0-5]\d|095|6\d|[89]\d))\d{11,13}$/,z0=/^(?:50|5[6-9]|6[0-9])\d{10,17}$/,EA=/^62\d{14,17}$/,Z0=/^1\d{14}$/,P0=[[506099,506198],[650002,650027]],W0=new Set([507865,507866]),M0=new Set([220545,220543]),X0=new Set([6690109]),j0=new Set([968209,873646]),q0=new Set([422818,486094]),G0=new Set([529741,543357]),J0=new Set([620108]),O0=new Set([621423]);function K0(r){const e=Y0(r);return _t[e]}function Y0(r){if(!r||!r.trim())return 19;const e=r.replace(/\D/g,"");if(e.length<12||e.length>19)return 19;if(e.length>=6){const t=parseInt(e.slice(0,6),10);if(j0.has(t)&&e.length>=16&&e.length<=19)return 16;if(q0.has(t)&<.test(e))return 17;if(G0.has(t)&&ut.test(e))return 18;if(M0.has(t)&&e.length===16)return 14;if(J0.has(t)&&EA.test(e))return 11;if(O0.has(t)&&EA.test(e))return 12;if(H0(t,e.length))return 3}if(e.length>=7){const t=parseInt(e.slice(0,7),10);if(X0.has(t)&&e.length===16)return 15}return Z0.test(e)?13:w0.test(e)?5:L0.test(e)?6:U0.test(e)?7:T0.test(e)?8:ut.test(e)?2:lt.test(e)?1:EA.test(e)?10:z0.test(e)?9:19}function H0(r,e){return e<16||e>19?!1:P0.some(([a,n])=>r>=a&&r<=n)||W0.has(r)}const _0=["width","height"],$0=["stroke"],ea=["fill"],YA=A.defineComponent({__name:"icon-loader",props:{size:{default:24},color:{default:"currentColor"},className:{default:""}},setup(r){const e=r,t=A.useAttrs(),{size:a,color:n,className:o}=e;return(u,l)=>(A.openBlock(),A.createElementBlock("svg",A.mergeProps({class:["animate-spin",A.unref(o)],xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:A.unref(a),height:A.unref(a),role:"img","aria-label":"loading"},A.unref(t)),[A.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:A.unref(n),"stroke-width":"4"},null,8,$0),A.createElementVNode("path",{class:"opacity-75",fill:A.unref(n),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,8,ea)],16,_0))}}),Aa=["disabled"],ta={key:1},he=A.defineComponent({__name:"button",props:{label:{default:""},type:{default:"neutral"},size:{default:"de"},paddingClassX:{default:"px-8"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},customClass:{default:""},caller:{default:"buzapay"}},emits:["click"],setup(r,{emit:e}){const t=r,a=e,n=A.computed(()=>t.disabled||t.loading);function o(){n.value||a("click")}function u(s,E){if(E)return"bg-gray-200 text-gray-400 cursor-not-allowed border-gray-200";switch(s){case"primary":return`${t.caller==="buzapay"?"bg-primary":"bg-primary-miden"} text-white hover:bg-primary-black hover:border-primary-black border-primary`;case"secondary":return"bg-gray-200 border-gray-200 hover:bg-gray-300 text-heading-text";case"danger":return"bg-red-500 border-red-500 text-white hover:bg-red-600";case"neutral":default:return"bg-off-white border-grey-border hover:bg-gray-100"}}function l(s){switch(s){case"de":return`${t.caller==="buzapay"?"h-68px rounded-xl":"h-42px rounded-md"}`;case"md":return"h-42px rounded-lg";case"sm":return"h-32px rounded-md";default:return"h-68px rounded-xl"}}function C(s){switch(s){case"de":case"md":case"sm":return"text-body-2xs font-normal";default:return"text-body-xs font-normal"}}return(s,E)=>(A.openBlock(),A.createElementBlock("button",{class:A.normalizeClass(["flex items-center justify-center gap-2 py-3 border font-normal text-input-grey transition-colors duration-300 ease-in-out",u(r.type,n.value),l(r.size),r.paddingClassX,r.customClass]),type:"button",disabled:n.value,onClick:o},[A.renderSlot(s.$slots,"prefix"),r.loading?(A.openBlock(),A.createBlock(YA,{key:0})):(A.openBlock(),A.createElementBlock("div",ta,[r.label?(A.openBlock(),A.createElementBlock("p",{key:0,class:A.normalizeClass(["mb-0",C(r.size)])},A.toDisplayString(r.label),3)):A.renderSlot(s.$slots,"default",{key:1})])),A.renderSlot(s.$slots,"suffix")],10,Aa))}}),aa={class:"mb-0 text-body-3xs font-normal text-red-500"},HA=A.defineComponent({__name:"input-error",props:{errorMessage:{}},setup(r){return(e,t)=>(A.openBlock(),A.createElementBlock("p",aa,A.toDisplayString(r.errorMessage),1))}});async function je(r,e,t,a){try{const n=ye(e,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/generate-payment-link2",miden:"api/v1/accrual/checkout/generate-payment-link"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:t,uniqueKey:t},body:JSON.stringify({...r,LinkName:`${Date.now()}-Link`})})).json()}catch{}}async function na(r,{merchantId:e,...t},a){try{const n=ye(r,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/authorize-card-3ds-payment-sdk",miden:"api/v1/accrual/card/authorize"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:e,uniqueKey:e},body:JSON.stringify(t)})).json()}catch{}}async function ra(r,{merchantId:e,...t},a){try{const n=ye(r,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/generate-payment-account",miden:"api/v1/accrual/checkout/generate-payment-account"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:e,uniqueKey:e},body:JSON.stringify(t)})).json()}catch{}}async function $t(r,e,t){try{const a=ye(r,t),n={buzapay:`api/v1/checkout/details/${e}`,miden:`api/v1/accrual/checkout/details/${e}`};return await(await fetch(`${a}/${n[t]}`,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}})).json()}catch{}}async function oa(r,{merchantId:e,...t},a){try{const n=ye(r,a);return await(await fetch(`${n}/${{buzapay:"api/v1/checkout/generate-payment-walletaddress",miden:"api/v1/accrual/checkout/generate-wallet-address"}[a]}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",merchantId:e,uniqueKey:e},body:JSON.stringify(t)})).json()}catch{}}const sa={key:0,class:"absolute inset-0 grid place-items-center bg-white/60"},e0=A.defineComponent({__name:"checkout-iframe",props:{style:{default:()=>({width:"100%",height:"100vh",border:"0",borderRadius:"6px",overflow:"hidden"})},url:{default:void 0},secretKey:{},environment:{default:"sandbox"},paymentObject:{default:()=>({amount:0,currency:"",email:"",phoneNumber:"",narration:"",redirectUrl:""})},onError:{type:Function,default:r=>({errorMessage:""})}},setup(r){const e=r,t=A.computed(()=>({...e.style})),a=A.ref(null),n=A.ref(null),o=A.ref(""),u=A.ref(!1);function l(){n.value&&n.value.parentNode&&n.value.parentNode.removeChild(n.value),n.value=null}function C(E){var f;l();const B=document.createElement("iframe");B.src=E;const i=e.style;i.width&&(B.style.width=i.width),i.height&&(B.style.height=i.height),i.border&&(B.style.border=i.border),i.borderRadius&&(B.style.borderRadius=i.borderRadius),i.overflow&&(B.style.overflow=i.overflow),(f=a.value)==null||f.appendChild(B),n.value=B}async function s(){var E;if(e.url){C(e.url);return}if(!e.secretKey){o.value="Secret key is required.";return}if(!Xe(e.paymentObject)){o.value="Kindly ensure you are passing all the required data.";return}u.value=!0,o.value="";try{const B=await je(e.paymentObject,e.environment,e.secretKey,"buzapay");B!=null&&B.isSuccessful&&B.launchUrl?(o.value="Payment link created successfully",C(`${B.launchUrl}&merchantId=${btoa(e.secretKey)}`)):o.value="Failed to create payment link"}catch(B){o.value=(B==null?void 0:B.message)||"Failed to create payment link",(E=e.onError)==null||E.call(e,{errorMessage:o.value})}finally{u.value=!1}}return A.onMounted(()=>{a.value&&s()}),A.watch(()=>e.url,E=>{E&&C(E)}),A.onBeforeUnmount(()=>{l()}),(E,B)=>(A.openBlock(),A.createElementBlock("div",{class:"relative",style:A.normalizeStyle(t.value)},[A.createElementVNode("div",{ref_key:"containerRef",ref:a,class:"w-full h-full"},null,512),u.value?(A.openBlock(),A.createElementBlock("div",sa,[A.createVNode(YA)])):A.createCommentVNode("",!0)],4))}}),ia={key:1},la=A.defineComponent({__name:"checkout-button",props:{secretKey:{},environment:{default:"sandbox"},paymentObject:{default:()=>({amount:0,currency:"",email:"",phoneNumber:"",narration:"",redirectUrl:""})},mode:{default:"redirect"},onError:{type:Function,default:r=>({errorMessage:""})}},setup(r){const e=r,t=A.ref(""),a=A.ref(""),n=A.ref(""),o=A.ref(!1),u=A.computed(()=>ce(e.paymentObject.amount,e.paymentObject.currency));async function l(){var B;if(!e.secretKey){t.value="Secret key is required.";return}if(!Xe(e.paymentObject)){t.value="Kindly ensure you are passing all the required data.";return}o.value=!0,t.value="";try{const i=await je(e.paymentObject,e.environment,e.secretKey,"buzapay");i!=null&&i.isSuccessful&&i.launchUrl?(a.value=i.launchUrl,n.value=`${i.launchUrl}&merchantId=${btoa(e.secretKey)}`,t.value="Payment link created successfully",e.mode==="redirect"&&window.open(i.launchUrl,"_blank","noopener,noreferrer")):t.value="Failed to create payment link"}catch(i){t.value=(i==null?void 0:i.message)||"Failed to create payment link",(B=e.onError)==null||B.call(e,{errorMessage:t.value})}finally{o.value=!1}}const{secretKey:C,environment:s,mode:E}=e;return(B,i)=>n.value&&A.unref(E)==="iframe"?(A.openBlock(),A.createBlock(e0,{key:0,url:n.value,secretKey:A.unref(C),environment:A.unref(s)},null,8,["url","secretKey","environment"])):(A.openBlock(),A.createElementBlock("div",ia,[A.createVNode(he,{label:`Pay ${u.value}`,type:"primary",customClass:"w-full",loading:o.value,onClick:l},null,8,["label","loading"]),A.createVNode(HA,{errorMessage:t.value},null,8,["errorMessage"])]))}}),ua=["width","height"],Ea=["fill"],ca=A.defineComponent({__name:"icon-chevron-left",props:{width:{default:17},height:{default:17},color:{default:"currentColor"}},setup(r){const e=r,t=A.useAttrs(),{width:a,height:n,color:o}=e;return(u,l)=>(A.openBlock(),A.createElementBlock("svg",A.mergeProps({width:A.unref(a),height:A.unref(n),viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.unref(t)),[A.createElementVNode("path",{d:"M10.5 14.28C10.3734 14.28 10.2467 14.2333 10.1467 14.1333L5.80002 9.78668C5.09335 9.08001 5.09335 7.92001 5.80002 7.21335L10.1467 2.86668C10.34 2.67335 10.66 2.67335 10.8534 2.86668C11.0467 3.06001 11.0467 3.38001 10.8534 3.57335L6.50669 7.92001C6.18669 8.24001 6.18669 8.76001 6.50669 9.08001L10.8534 13.4267C11.0467 13.62 11.0467 13.94 10.8534 14.1333C10.7534 14.2267 10.6267 14.28 10.5 14.28Z",fill:A.unref(o)},null,8,Ea)],16,ua))}}),Et=A.defineComponent({__name:"back",emits:["back"],setup(r,{emit:e}){return(t,a)=>(A.openBlock(),A.createElementBlock("div",{class:"flex items-center gap-2 cursor-pointer",onClick:a[0]||(a[0]=n=>t.$emit("back"))},[A.createVNode(ca),a[1]||(a[1]=A.createElementVNode("p",{class:"mb-0 text-body-xs font-normal"},"Back",-1))]))}}),Ca=["width","height"],ga=["fill"],Ba=A.defineComponent({__name:"icon-buzapay-icon",props:{width:{default:15},height:{default:13},color:{default:"currentColor"}},setup(r){const e=r,t=A.useAttrs(),{width:a,height:n,color:o}=e;return(u,l)=>(A.openBlock(),A.createElementBlock("svg",A.mergeProps({width:A.unref(a),height:A.unref(n),viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.unref(t)),[A.createElementVNode("path",{d:"M9.97919 0.5C10.8854 0.5 11.6276 0.585938 12.2057 0.757812C12.7891 0.924479 13.2188 1.22396 13.4948 1.65625C13.7761 2.08333 13.9167 2.6901 13.9167 3.47656C13.9167 4.1849 13.7526 4.77083 13.4245 5.23438C13.0964 5.69792 12.5938 5.95312 11.9167 6C12.8021 6.08854 13.4401 6.40625 13.8307 6.95312C14.2214 7.49479 14.4167 8.17708 14.4167 9C14.4167 9.71354 14.3334 10.2995 14.1667 10.7578C14.0052 11.2161 13.7318 11.5729 13.3464 11.8281C12.961 12.0781 12.4375 12.2526 11.7761 12.3516C11.1198 12.4505 10.2995 12.5 9.31512 12.5H0.416687V0.5H9.97919ZM2.91669 7.77344H5.97235V11.167L10.2497 5.22754H7.19501V1.83398L2.91669 7.77344ZM5.97235 6.07617H8.2702L7.19501 7.57324V6.9248H4.89716L5.97235 5.42676V6.07617Z",fill:A.unref(o)},null,8,ga)],16,Ca))}}),da=["width","height"],fa=["fill"],ha=["fill"],Ia=A.defineComponent({__name:"icon-lock",props:{width:{default:24},height:{default:24},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M12.0001 17.35C12.9003 17.35 13.6301 16.6203 13.6301 15.72C13.6301 14.8198 12.9003 14.09 12.0001 14.09C11.0999 14.09 10.3701 14.8198 10.3701 15.72C10.3701 16.6203 11.0999 17.35 12.0001 17.35Z",fill:A.unref(n)},null,8,fa),A.createElementVNode("path",{d:"M18.28 9.53V8.28C18.28 5.58 17.63 2 12 2C6.37 2 5.72 5.58 5.72 8.28V9.53C2.92 9.88 2 11.3 2 14.79V16.65C2 20.75 3.25 22 7.35 22H16.65C20.75 22 22 20.75 22 16.65V14.79C22 11.3 21.08 9.88 18.28 9.53ZM12 18.74C10.33 18.74 8.98 17.38 8.98 15.72C8.98 14.05 10.34 12.7 12 12.7C13.66 12.7 15.02 14.06 15.02 15.72C15.02 17.39 13.67 18.74 12 18.74ZM7.35 9.44C7.27 9.44 7.2 9.44 7.12 9.44V8.28C7.12 5.35 7.95 3.4 12 3.4C16.05 3.4 16.88 5.35 16.88 8.28V9.45C16.8 9.45 16.73 9.45 16.65 9.45H7.35V9.44Z",fill:A.unref(n)},null,8,ha)],8,da))}}),Qa={key:0,class:"checkout-card w-full h-screen flex flex-col items-center justify-center text-white"},xa={class:"flex w-1/2"},pa={class:"flex gap-2 w-full"},ma={class:"flex flex-col gap-8 w-full"},va={class:"bg-off-white rounded-xl"},ba={class:"flex items-center gap-2 justify-center"},ya={key:1,class:"checkout-card-miden w-full h-screen flex flex-col items-center justify-center text-white"},ka={class:"flex w-1/2"},Sa={class:"flex gap-2 w-full"},Fa={class:"flex flex-col gap-8 w-full"},Na={class:"bg-white rounded-xl"},Va={class:"flex items-center gap-4 justify-center"},A0=A.defineComponent({__name:"card",props:{showBackButton:{type:Boolean,default:!1},caller:{default:"buzapay"}},emits:["back","close"],setup(r,{emit:e}){const t=e;return(a,n)=>r.caller==="buzapay"?(A.openBlock(),A.createElementBlock("div",Qa,[A.createElementVNode("div",xa,[r.showBackButton?(A.openBlock(),A.createBlock(Et,{key:0,onBack:n[0]||(n[0]=o=>t("back"))})):A.createCommentVNode("",!0),A.createElementVNode("div",pa,[A.createElementVNode("div",ma,[A.createElementVNode("div",va,[A.renderSlot(a.$slots,"default")]),A.createElementVNode("div",ba,[n[3]||(n[3]=A.createElementVNode("p",{class:"text-light-white-100 text-body-2xs font-regular"}," Powered by Buzapay ",-1)),A.createVNode(Ba,{color:"#E8F4FF"})])]),A.createElementVNode("div",{class:"close-icon flex flex-col items-center justify-center self-start cursor-pointer hover:bg-gray-500",onClick:n[1]||(n[1]=o=>t("close")),role:"button","aria-label":"Close"},[...n[4]||(n[4]=[A.createElementVNode("p",{class:"text-white"},"x",-1)])])])])])):(A.openBlock(),A.createElementBlock("div",ya,[A.createElementVNode("div",ka,[r.showBackButton?(A.openBlock(),A.createBlock(Et,{key:0,onBack:n[2]||(n[2]=o=>t("back"))})):A.createCommentVNode("",!0),A.createElementVNode("div",Sa,[A.createElementVNode("div",Fa,[A.createElementVNode("div",Na,[A.renderSlot(a.$slots,"default")]),A.createElementVNode("div",Va,[A.createVNode(Ia,{color:"#E8F4FF"}),n[5]||(n[5]=A.createElementVNode("p",{class:"text-light-white-100 text-body-2xs font-regular"},[A.createTextVNode(" Secured by "),A.createElementVNode("span",{class:"font-semibold"},"Miden")],-1))])])])])]))}}),Da=["width","height"],Ra=["fill","stroke"],wa=["fill"],La=["fill"],Ua=A.defineComponent({__name:"icon-cards",props:{width:{default:16},height:{default:16},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M3.85303 4.86667H10.147C11.1573 4.86668 11.5914 5.00442 11.811 5.22116C12.0282 5.43571 12.1665 5.85839 12.1665 6.853V7.23972C12.1665 7.33013 12.0909 7.40653 12.0005 7.40671H2.00049C1.90996 7.40671 1.8335 7.33024 1.8335 7.23972V6.853C1.83352 5.95674 1.94725 5.5223 2.1333 5.28757C2.29732 5.08064 2.60747 4.92401 3.36279 4.87936L3.36182 4.87839C3.51875 4.87187 3.68056 4.86668 3.85303 4.86667Z",fill:A.unref(n),stroke:A.unref(n)},null,8,Ra),A.createElementVNode("path",{d:"M2.00016 8.90667C1.6335 8.90667 1.3335 9.20667 1.3335 9.57334V11.5133C1.3335 13.5 1.84016 14 3.8535 14H10.1468C12.1268 14 12.6468 13.52 12.6668 11.62V9.57334C12.6668 9.20667 12.3668 8.90667 12.0002 8.90667H2.00016ZM4.64016 12.3733H3.50016C3.22683 12.3733 3.00016 12.1467 3.00016 11.8733C3.00016 11.6 3.22683 11.3733 3.50016 11.3733H4.64683C4.92016 11.3733 5.14683 11.6 5.14683 11.8733C5.14683 12.1467 4.92016 12.3733 4.64016 12.3733ZM8.36683 12.3733H6.0735C5.80016 12.3733 5.5735 12.1467 5.5735 11.8733C5.5735 11.6 5.80016 11.3733 6.0735 11.3733H8.36683C8.64016 11.3733 8.86683 11.6 8.86683 11.8733C8.86683 12.1467 8.64683 12.3733 8.36683 12.3733Z",fill:A.unref(n)},null,8,wa),A.createElementVNode("path",{d:"M14.6666 8.88667V5.39334C14.6666 3.30667 13.4732 2.4 11.6732 2.4H5.71991C5.21324 2.4 4.75991 2.47333 4.35991 2.62667C4.04658 2.74 3.76658 2.90667 3.53991 3.12667C3.41991 3.24 3.51324 3.42667 3.68658 3.42667H10.9332C12.4332 3.42667 13.6466 4.64 13.6466 6.14V10.92C13.6466 11.0867 13.8266 11.18 13.9466 11.06C14.4066 10.5733 14.6666 9.86 14.6666 8.88667Z",fill:A.unref(n)},null,8,La)],8,Da))}}),Ta=["width","height"],za=["fill"],Za=A.defineComponent({__name:"icon-courthouse",props:{width:{default:16},height:{default:16},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M14.6668 14.1667H13.8335V7.33333C13.8335 5.72 12.9468 4.83333 11.3335 4.83333H8.50016V4.01333C8.88683 4.10667 9.2735 4.16 9.66683 4.16C10.2935 4.16 10.9202 4.04 11.5202 3.8C11.7068 3.72667 11.8335 3.54 11.8335 3.33333V1.33333C11.8335 1.16667 11.7535 1.01333 11.6135 0.920001C11.4735 0.826668 11.3002 0.806668 11.1468 0.866668C10.1935 1.24667 9.14016 1.24667 8.18683 0.866668C8.0335 0.806668 7.86016 0.826668 7.72016 0.920001C7.58016 1.01333 7.50016 1.16667 7.50016 1.33333V3.33333V4.83333H4.66683C3.0535 4.83333 2.16683 5.72 2.16683 7.33333V14.1667H1.3335C1.06016 14.1667 0.833496 14.3933 0.833496 14.6667C0.833496 14.94 1.06016 15.1667 1.3335 15.1667H2.66683H13.3335H14.6668C14.9402 15.1667 15.1668 14.94 15.1668 14.6667C15.1668 14.3933 14.9402 14.1667 14.6668 14.1667ZM4.82683 14.1667H3.16683V8.5H4.82683V14.1667ZM7.4935 14.1667H5.82683V8.5H7.4935V14.1667ZM10.1602 14.1667H8.4935V8.5H10.1602V14.1667ZM12.8335 14.1667H11.1602V8.5H12.8335V14.1667Z",fill:A.unref(n)},null,8,za)],8,Ta))}}),Pa=["width","height"],Wa=["fill"],Ma=["fill","stroke"],Xa=A.defineComponent({__name:"icon-coin",props:{width:{default:16},height:{default:16},color:{default:"currentColor"}},setup(r){const e=r;A.useAttrs();const{width:t,height:a,color:n}=A.toRefs(e);return(o,u)=>(A.openBlock(),A.createElementBlock("svg",{width:A.unref(t),height:A.unref(a),viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[A.createElementVNode("path",{d:"M14.6136 11.1667C14.3936 12.9401 12.9402 14.3934 11.1669 14.6134C10.0936 14.7467 9.09357 14.4534 8.31357 13.8801C7.8669 13.5534 7.97357 12.8601 8.5069 12.7001C10.5136 12.0934 12.0936 10.5067 12.7069 8.50006C12.8669 7.9734 13.5602 7.86673 13.8869 8.30673C14.4536 9.0934 14.7469 10.0934 14.6136 11.1667Z",fill:A.unref(n)},null,8,Wa),A.createElementVNode("path",{d:"M6.66064 1.83301C9.23993 1.83326 11.3453 3.86201 11.48 6.41211L11.4868 6.66113C11.486 9.32416 9.32379 11.4861 6.66064 11.4863C3.99695 11.4863 1.83376 9.32379 1.8335 6.66016C1.8335 3.9963 3.99679 1.83301 6.66064 1.83301ZM6.6665 3.27344C6.27525 3.27356 5.93487 3.50201 5.771 3.83203C4.94463 3.9947 4.3335 4.7462 4.3335 5.61328C4.33354 6.00558 4.42304 6.37269 4.63818 6.68164C4.66671 6.72258 4.69726 6.76143 4.729 6.79883C4.48939 6.982 4.33357 7.27008 4.3335 7.59277C4.3335 8.48803 4.93148 9.2422 5.75049 9.45801C5.90533 9.81094 6.25852 10.0594 6.6665 10.0596C7.06141 10.0596 7.40374 9.82611 7.56592 9.49121C8.39042 9.32705 9.00049 8.5787 9.00049 7.71289C9.00047 7.32502 8.91261 6.96047 8.69873 6.65137C8.66984 6.60964 8.63919 6.56935 8.60693 6.53125C8.84508 6.34793 9.00049 6.06083 9.00049 5.73926C9.0003 4.84357 8.40128 4.0892 7.58154 3.87402C7.4264 3.5216 7.07419 3.27344 6.6665 3.27344Z",fill:A.unref(n),stroke:A.unref(n)},null,8,Ma)],8,Pa))}}),ja=["aria-orientation"],qa=["aria-checked","onClick"],Ga={key:0,class:"bg-white w-2 h-2 rounded-full"},Ja={class:"mb-0 text-body-2xs font-medium text-heading-text"},Oa=["aria-orientation"],Ka=["aria-checked","onClick"],t0=A.defineComponent({__name:"radio-group",props:{options:{default:()=>[]},type:{default:"vertical"},modelValue:{default:void 0},defaultValue:{default:void 0},className:{default:""},caller:{default:"buzapay"}},emits:["update:modelValue","selectedChange"],setup(r,{emit:e}){const t=r,a=e,n=A.computed(()=>t.modelValue!==void 0),o=A.ref("");A.onMounted(()=>{if(n.value)return;const i=t.defaultValue??(t.options.length?t.options[0].value:"");o.value=i,i&&(a("update:modelValue",i),a("selectedChange",i))}),A.watch(()=>t.modelValue,i=>{n.value&&(o.value=i??"")},{immediate:!0});const u=A.computed(()=>n.value?t.modelValue??"":o.value);function l(i){n.value||(o.value=i),a("update:modelValue",i),a("selectedChange",i)}const C=A.computed(()=>t.type==="horizontal"?"flex-row gap-5":"flex-col gap-6"),{options:s,type:E,className:B}=t;return(i,f)=>r.caller==="buzapay"?(A.openBlock(),A.createElementBlock("div",{key:0,class:A.normalizeClass(["flex",C.value,A.unref(B)]),role:"radiogroup","aria-orientation":A.unref(E)==="horizontal"?"horizontal":"vertical",tabindex:"0"},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(s),c=>(A.openBlock(),A.createElementBlock("div",{key:c.value,role:"radio","aria-checked":u.value===c.value,tabindex:"-1",onClick:Q=>l(c.value),class:"flex items-center gap-2 cursor-pointer transition-colors duration-200"},[A.createElementVNode("div",{class:A.normalizeClass(["w-4 h-4 rounded-full border flex items-center justify-center",u.value===c.value?"bg-orange-500 border-orange-500":"bg-white border-grey-200"])},[u.value===c.value?(A.openBlock(),A.createElementBlock("div",Ga)):A.createCommentVNode("",!0)],2),A.createElementVNode("p",Ja,A.toDisplayString(c.label),1)],8,qa))),128))],10,ja)):(A.openBlock(),A.createElementBlock("div",{key:1,class:A.normalizeClass(["flex",C.value,A.unref(B)]),role:"radiogroup","aria-orientation":A.unref(E)==="horizontal"?"horizontal":"vertical",tabindex:"0"},[(A.openBlock(!0),A.createElementBlock(A.Fragment,null,A.renderList(A.unref(s),c=>(A.openBlock(),A.createElementBlock("div",{key:c.value,role:"radio","aria-checked":u.value===c.value,tabindex:"-1",onClick:Q=>l(c.value),class:A.normalizeClass(["flex items-center gap-4 cursor-pointer transition-colors duration-200 px-6 py-2 my-1",{"border-r-4 border-white":u.value===c.value}])},[c.value==="CARD"?(A.openBlock(),A.createBlock(Ua,{key:0,color:u.value===c.value?"#ffffff":"#8FAECA"},null,8,["color"])):c.value==="BANK_TRANSFER"?(A.openBlock(),A.createBlock(Za,{key:1,color:u.value===c.value?"#ffffff":"#8FAECA"},null,8,["color"])):c.value==="STABLE_COIN"?(A.openBlock(),A.createBlock(Xa,{key:2,color:u.value===c.value?"#ffffff":"#8FAECA"},null,8,["color"])):A.createCommentVNode("",!0),A.createElementVNode("p",{class:A.normalizeClass(["mb-0 text-body-2xs font-medium",{"text-white":u.value===c.value,"text-[#8FAECA]":u.value!==c.value}])},A.toDisplayString(c.label),3)],10,Ka))),128))],10,Oa))}}),Ya=["src","height","alt"],we=A.defineComponent({__name:"image",props:{src:{},height:{default:50},width:{default:50},alt:{default:"Image"},customClass:{default:""},isFullWidth:{type:Boolean,default:!1}},emits:["click"],setup(r,{emit:e}){const t=r,a=e,{src:n,height:o,width:u,alt:l,customClass:C,isFullWidth:s}=t;return(E,B)=>(A.openBlock(),A.createElementBlock("img",{src:A.unref(n),height:A.unref(o),alt:A.unref(l),class:A.normalizeClass([A.unref(C),A.unref(s)?"w-full":""]),style:A.normalizeStyle({width:A.unref(s)?"100%":A.unref(u)+"px"}),onClick:B[0]||(B[0]=i=>a("click"))},null,14,Ya))}});var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function _a(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var n=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return r[a]}})}),t}var a0={exports:{}};function $a(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cA={exports:{}};const en={},An=Object.freeze(Object.defineProperty({__proto__:null,default:en},Symbol.toStringTag,{value:"Module"})),tn=_a(An);var ct;function K(){return ct||(ct=1,function(r,e){(function(t,a){r.exports=a()})(J,function(){var t=t||function(a,n){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof J<"u"&&J.crypto&&(o=J.crypto),!o&&typeof $a=="function")try{o=tn}catch{}var u=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function d(){}return function(h){var I;return d.prototype=h,I=new d,d.prototype=null,I}}(),C={},s=C.lib={},E=s.Base=function(){return{extend:function(d){var h=l(this);return d&&h.mixIn(d),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var h in d)d.hasOwnProperty(h)&&(this[h]=d[h]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),B=s.WordArray=E.extend({init:function(d,h){d=this.words=d||[],h!=n?this.sigBytes=h:this.sigBytes=d.length*4},toString:function(d){return(d||f).stringify(this)},concat:function(d){var h=this.words,I=d.words,m=this.sigBytes,b=d.sigBytes;if(this.clamp(),m%4)for(var k=0;k<b;k++){var N=I[k>>>2]>>>24-k%4*8&255;h[m+k>>>2]|=N<<24-(m+k)%4*8}else for(var z=0;z<b;z+=4)h[m+z>>>2]=I[z>>>2];return this.sigBytes+=b,this},clamp:function(){var d=this.words,h=this.sigBytes;d[h>>>2]&=4294967295<<32-h%4*8,d.length=a.ceil(h/4)},clone:function(){var d=E.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var h=[],I=0;I<d;I+=4)h.push(u());return new B.init(h,d)}}),i=C.enc={},f=i.Hex={stringify:function(d){for(var h=d.words,I=d.sigBytes,m=[],b=0;b<I;b++){var k=h[b>>>2]>>>24-b%4*8&255;m.push((k>>>4).toString(16)),m.push((k&15).toString(16))}return m.join("")},parse:function(d){for(var h=d.length,I=[],m=0;m<h;m+=2)I[m>>>3]|=parseInt(d.substr(m,2),16)<<24-m%8*4;return new B.init(I,h/2)}},c=i.Latin1={stringify:function(d){for(var h=d.words,I=d.sigBytes,m=[],b=0;b<I;b++){var k=h[b>>>2]>>>24-b%4*8&255;m.push(String.fromCharCode(k))}return m.join("")},parse:function(d){for(var h=d.length,I=[],m=0;m<h;m++)I[m>>>2]|=(d.charCodeAt(m)&255)<<24-m%4*8;return new B.init(I,h)}},Q=i.Utf8={stringify:function(d){try{return decodeURIComponent(escape(c.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return c.parse(unescape(encodeURIComponent(d)))}},g=s.BufferedBlockAlgorithm=E.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=Q.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var h,I=this._data,m=I.words,b=I.sigBytes,k=this.blockSize,N=k*4,z=b/N;d?z=a.ceil(z):z=a.max((z|0)-this._minBufferSize,0);var v=z*k,S=a.min(v*4,b);if(v){for(var V=0;V<v;V+=k)this._doProcessBlock(m,V);h=m.splice(0,v),I.sigBytes-=S}return new B.init(h,S)},clone:function(){var d=E.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});s.Hasher=g.extend({cfg:E.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var h=this._doFinalize();return h},blockSize:16,_createHelper:function(d){return function(h,I){return new d.init(I).finalize(h)}},_createHmacHelper:function(d){return function(h,I){return new x.HMAC.init(d,I).finalize(h)}}});var x=C.algo={};return C}(Math);return t})}(cA)),cA.exports}var CA={exports:{}},Ct;function rA(){return Ct||(Ct=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.Base,l=o.WordArray,C=n.x64={};C.Word=u.extend({init:function(s,E){this.high=s,this.low=E}}),C.WordArray=u.extend({init:function(s,E){s=this.words=s||[],E!=a?this.sigBytes=E:this.sigBytes=s.length*8},toX32:function(){for(var s=this.words,E=s.length,B=[],i=0;i<E;i++){var f=s[i];B.push(f.high),B.push(f.low)}return l.create(B,this.sigBytes)},clone:function(){for(var s=u.clone.call(this),E=s.words=this.words.slice(0),B=E.length,i=0;i<B;i++)E[i]=E[i].clone();return s}})}(),t})}(CA)),CA.exports}var gA={exports:{}},gt;function an(){return gt||(gt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,n=a.lib,o=n.WordArray,u=o.init,l=o.init=function(C){if(C instanceof ArrayBuffer&&(C=new Uint8Array(C)),(C instanceof Int8Array||typeof Uint8ClampedArray<"u"&&C instanceof Uint8ClampedArray||C instanceof Int16Array||C instanceof Uint16Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array)&&(C=new Uint8Array(C.buffer,C.byteOffset,C.byteLength)),C instanceof Uint8Array){for(var s=C.byteLength,E=[],B=0;B<s;B++)E[B>>>2]|=C[B]<<24-B%4*8;u.call(this,E,s)}else u.apply(this,arguments)};l.prototype=o}}(),t.lib.WordArray})}(gA)),gA.exports}var BA={exports:{}},Bt;function nn(){return Bt||(Bt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.enc;u.Utf16=u.Utf16BE={stringify:function(C){for(var s=C.words,E=C.sigBytes,B=[],i=0;i<E;i+=2){var f=s[i>>>2]>>>16-i%4*8&65535;B.push(String.fromCharCode(f))}return B.join("")},parse:function(C){for(var s=C.length,E=[],B=0;B<s;B++)E[B>>>1]|=C.charCodeAt(B)<<16-B%2*16;return o.create(E,s*2)}},u.Utf16LE={stringify:function(C){for(var s=C.words,E=C.sigBytes,B=[],i=0;i<E;i+=2){var f=l(s[i>>>2]>>>16-i%4*8&65535);B.push(String.fromCharCode(f))}return B.join("")},parse:function(C){for(var s=C.length,E=[],B=0;B<s;B++)E[B>>>1]|=l(C.charCodeAt(B)<<16-B%2*16);return o.create(E,s*2)}};function l(C){return C<<8&4278255360|C>>>8&16711935}}(),t.enc.Utf16})}(BA)),BA.exports}var dA={exports:{}},dt;function qe(){return dt||(dt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.enc;u.Base64={stringify:function(C){var s=C.words,E=C.sigBytes,B=this._map;C.clamp();for(var i=[],f=0;f<E;f+=3)for(var c=s[f>>>2]>>>24-f%4*8&255,Q=s[f+1>>>2]>>>24-(f+1)%4*8&255,g=s[f+2>>>2]>>>24-(f+2)%4*8&255,x=c<<16|Q<<8|g,d=0;d<4&&f+d*.75<E;d++)i.push(B.charAt(x>>>6*(3-d)&63));var h=B.charAt(64);if(h)for(;i.length%4;)i.push(h);return i.join("")},parse:function(C){var s=C.length,E=this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var i=0;i<E.length;i++)B[E.charCodeAt(i)]=i}var f=E.charAt(64);if(f){var c=C.indexOf(f);c!==-1&&(s=c)}return l(C,s,B)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(C,s,E){for(var B=[],i=0,f=0;f<s;f++)if(f%4){var c=E[C.charCodeAt(f-1)]<<f%4*2,Q=E[C.charCodeAt(f)]>>>6-f%4*2,g=c|Q;B[i>>>2]|=g<<24-i%4*8,i++}return o.create(B,i)}}(),t.enc.Base64})}(dA)),dA.exports}var fA={exports:{}},ft;function rn(){return ft||(ft=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.enc;u.Base64url={stringify:function(C,s){s===void 0&&(s=!0);var E=C.words,B=C.sigBytes,i=s?this._safe_map:this._map;C.clamp();for(var f=[],c=0;c<B;c+=3)for(var Q=E[c>>>2]>>>24-c%4*8&255,g=E[c+1>>>2]>>>24-(c+1)%4*8&255,x=E[c+2>>>2]>>>24-(c+2)%4*8&255,d=Q<<16|g<<8|x,h=0;h<4&&c+h*.75<B;h++)f.push(i.charAt(d>>>6*(3-h)&63));var I=i.charAt(64);if(I)for(;f.length%4;)f.push(I);return f.join("")},parse:function(C,s){s===void 0&&(s=!0);var E=C.length,B=s?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var f=0;f<B.length;f++)i[B.charCodeAt(f)]=f}var c=B.charAt(64);if(c){var Q=C.indexOf(c);Q!==-1&&(E=Q)}return l(C,E,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(C,s,E){for(var B=[],i=0,f=0;f<s;f++)if(f%4){var c=E[C.charCodeAt(f-1)]<<f%4*2,Q=E[C.charCodeAt(f)]>>>6-f%4*2,g=c|Q;B[i>>>2]|=g<<24-i%4*8,i++}return o.create(B,i)}}(),t.enc.Base64url})}(fA)),fA.exports}var hA={exports:{}},ht;function Ge(){return ht||(ht=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.WordArray,l=o.Hasher,C=n.algo,s=[];(function(){for(var Q=0;Q<64;Q++)s[Q]=a.abs(a.sin(Q+1))*4294967296|0})();var E=C.MD5=l.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Q,g){for(var x=0;x<16;x++){var d=g+x,h=Q[d];Q[d]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var I=this._hash.words,m=Q[g+0],b=Q[g+1],k=Q[g+2],N=Q[g+3],z=Q[g+4],v=Q[g+5],S=Q[g+6],V=Q[g+7],y=Q[g+8],R=Q[g+9],Z=Q[g+10],P=Q[g+11],W=Q[g+12],F=Q[g+13],D=Q[g+14],T=Q[g+15],p=I[0],w=I[1],U=I[2],L=I[3];p=B(p,w,U,L,m,7,s[0]),L=B(L,p,w,U,b,12,s[1]),U=B(U,L,p,w,k,17,s[2]),w=B(w,U,L,p,N,22,s[3]),p=B(p,w,U,L,z,7,s[4]),L=B(L,p,w,U,v,12,s[5]),U=B(U,L,p,w,S,17,s[6]),w=B(w,U,L,p,V,22,s[7]),p=B(p,w,U,L,y,7,s[8]),L=B(L,p,w,U,R,12,s[9]),U=B(U,L,p,w,Z,17,s[10]),w=B(w,U,L,p,P,22,s[11]),p=B(p,w,U,L,W,7,s[12]),L=B(L,p,w,U,F,12,s[13]),U=B(U,L,p,w,D,17,s[14]),w=B(w,U,L,p,T,22,s[15]),p=i(p,w,U,L,b,5,s[16]),L=i(L,p,w,U,S,9,s[17]),U=i(U,L,p,w,P,14,s[18]),w=i(w,U,L,p,m,20,s[19]),p=i(p,w,U,L,v,5,s[20]),L=i(L,p,w,U,Z,9,s[21]),U=i(U,L,p,w,T,14,s[22]),w=i(w,U,L,p,z,20,s[23]),p=i(p,w,U,L,R,5,s[24]),L=i(L,p,w,U,D,9,s[25]),U=i(U,L,p,w,N,14,s[26]),w=i(w,U,L,p,y,20,s[27]),p=i(p,w,U,L,F,5,s[28]),L=i(L,p,w,U,k,9,s[29]),U=i(U,L,p,w,V,14,s[30]),w=i(w,U,L,p,W,20,s[31]),p=f(p,w,U,L,v,4,s[32]),L=f(L,p,w,U,y,11,s[33]),U=f(U,L,p,w,P,16,s[34]),w=f(w,U,L,p,D,23,s[35]),p=f(p,w,U,L,b,4,s[36]),L=f(L,p,w,U,z,11,s[37]),U=f(U,L,p,w,V,16,s[38]),w=f(w,U,L,p,Z,23,s[39]),p=f(p,w,U,L,F,4,s[40]),L=f(L,p,w,U,m,11,s[41]),U=f(U,L,p,w,N,16,s[42]),w=f(w,U,L,p,S,23,s[43]),p=f(p,w,U,L,R,4,s[44]),L=f(L,p,w,U,W,11,s[45]),U=f(U,L,p,w,T,16,s[46]),w=f(w,U,L,p,k,23,s[47]),p=c(p,w,U,L,m,6,s[48]),L=c(L,p,w,U,V,10,s[49]),U=c(U,L,p,w,D,15,s[50]),w=c(w,U,L,p,v,21,s[51]),p=c(p,w,U,L,W,6,s[52]),L=c(L,p,w,U,N,10,s[53]),U=c(U,L,p,w,Z,15,s[54]),w=c(w,U,L,p,b,21,s[55]),p=c(p,w,U,L,y,6,s[56]),L=c(L,p,w,U,T,10,s[57]),U=c(U,L,p,w,S,15,s[58]),w=c(w,U,L,p,F,21,s[59]),p=c(p,w,U,L,z,6,s[60]),L=c(L,p,w,U,P,10,s[61]),U=c(U,L,p,w,k,15,s[62]),w=c(w,U,L,p,R,21,s[63]),I[0]=I[0]+p|0,I[1]=I[1]+w|0,I[2]=I[2]+U|0,I[3]=I[3]+L|0},_doFinalize:function(){var Q=this._data,g=Q.words,x=this._nDataBytes*8,d=Q.sigBytes*8;g[d>>>5]|=128<<24-d%32;var h=a.floor(x/4294967296),I=x;g[(d+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,g[(d+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,Q.sigBytes=(g.length+1)*4,this._process();for(var m=this._hash,b=m.words,k=0;k<4;k++){var N=b[k];b[k]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return m},clone:function(){var Q=l.clone.call(this);return Q._hash=this._hash.clone(),Q}});function B(Q,g,x,d,h,I,m){var b=Q+(g&x|~g&d)+h+m;return(b<<I|b>>>32-I)+g}function i(Q,g,x,d,h,I,m){var b=Q+(g&d|x&~d)+h+m;return(b<<I|b>>>32-I)+g}function f(Q,g,x,d,h,I,m){var b=Q+(g^x^d)+h+m;return(b<<I|b>>>32-I)+g}function c(Q,g,x,d,h,I,m){var b=Q+(x^(g|~d))+h+m;return(b<<I|b>>>32-I)+g}n.MD5=l._createHelper(E),n.HmacMD5=l._createHmacHelper(E)}(Math),t.MD5})}(hA)),hA.exports}var IA={exports:{}},It;function n0(){return It||(It=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=n.Hasher,l=a.algo,C=[],s=l.SHA1=u.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,B){for(var i=this._hash.words,f=i[0],c=i[1],Q=i[2],g=i[3],x=i[4],d=0;d<80;d++){if(d<16)C[d]=E[B+d]|0;else{var h=C[d-3]^C[d-8]^C[d-14]^C[d-16];C[d]=h<<1|h>>>31}var I=(f<<5|f>>>27)+x+C[d];d<20?I+=(c&Q|~c&g)+1518500249:d<40?I+=(c^Q^g)+1859775393:d<60?I+=(c&Q|c&g|Q&g)-1894007588:I+=(c^Q^g)-899497514,x=g,g=Q,Q=c<<30|c>>>2,c=f,f=I}i[0]=i[0]+f|0,i[1]=i[1]+c|0,i[2]=i[2]+Q|0,i[3]=i[3]+g|0,i[4]=i[4]+x|0},_doFinalize:function(){var E=this._data,B=E.words,i=this._nDataBytes*8,f=E.sigBytes*8;return B[f>>>5]|=128<<24-f%32,B[(f+64>>>9<<4)+14]=Math.floor(i/4294967296),B[(f+64>>>9<<4)+15]=i,E.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var E=u.clone.call(this);return E._hash=this._hash.clone(),E}});a.SHA1=u._createHelper(s),a.HmacSHA1=u._createHmacHelper(s)}(),t.SHA1})}(IA)),IA.exports}var QA={exports:{}},Qt;function _A(){return Qt||(Qt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.WordArray,l=o.Hasher,C=n.algo,s=[],E=[];(function(){function f(x){for(var d=a.sqrt(x),h=2;h<=d;h++)if(!(x%h))return!1;return!0}function c(x){return(x-(x|0))*4294967296|0}for(var Q=2,g=0;g<64;)f(Q)&&(g<8&&(s[g]=c(a.pow(Q,1/2))),E[g]=c(a.pow(Q,1/3)),g++),Q++})();var B=[],i=C.SHA256=l.extend({_doReset:function(){this._hash=new u.init(s.slice(0))},_doProcessBlock:function(f,c){for(var Q=this._hash.words,g=Q[0],x=Q[1],d=Q[2],h=Q[3],I=Q[4],m=Q[5],b=Q[6],k=Q[7],N=0;N<64;N++){if(N<16)B[N]=f[c+N]|0;else{var z=B[N-15],v=(z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3,S=B[N-2],V=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;B[N]=v+B[N-7]+V+B[N-16]}var y=I&m^~I&b,R=g&x^g&d^x&d,Z=(g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22),P=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),W=k+P+y+E[N]+B[N],F=Z+R;k=b,b=m,m=I,I=h+W|0,h=d,d=x,x=g,g=W+F|0}Q[0]=Q[0]+g|0,Q[1]=Q[1]+x|0,Q[2]=Q[2]+d|0,Q[3]=Q[3]+h|0,Q[4]=Q[4]+I|0,Q[5]=Q[5]+m|0,Q[6]=Q[6]+b|0,Q[7]=Q[7]+k|0},_doFinalize:function(){var f=this._data,c=f.words,Q=this._nDataBytes*8,g=f.sigBytes*8;return c[g>>>5]|=128<<24-g%32,c[(g+64>>>9<<4)+14]=a.floor(Q/4294967296),c[(g+64>>>9<<4)+15]=Q,f.sigBytes=c.length*4,this._process(),this._hash},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA256=l._createHelper(i),n.HmacSHA256=l._createHmacHelper(i)}(Math),t.SHA256})}(QA)),QA.exports}var xA={exports:{}},xt;function on(){return xt||(xt=1,function(r,e){(function(t,a,n){r.exports=a(K(),_A())})(J,function(t){return function(){var a=t,n=a.lib,o=n.WordArray,u=a.algo,l=u.SHA256,C=u.SHA224=l.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=l._doFinalize.call(this);return s.sigBytes-=4,s}});a.SHA224=l._createHelper(C),a.HmacSHA224=l._createHmacHelper(C)}(),t.SHA224})}(xA)),xA.exports}var pA={exports:{}},pt;function r0(){return pt||(pt=1,function(r,e){(function(t,a,n){r.exports=a(K(),rA())})(J,function(t){return function(){var a=t,n=a.lib,o=n.Hasher,u=a.x64,l=u.Word,C=u.WordArray,s=a.algo;function E(){return l.create.apply(l,arguments)}var B=[E(1116352408,3609767458),E(1899447441,602891725),E(3049323471,3964484399),E(3921009573,2173295548),E(961987163,4081628472),E(1508970993,3053834265),E(2453635748,2937671579),E(2870763221,3664609560),E(3624381080,2734883394),E(310598401,1164996542),E(607225278,1323610764),E(1426881987,3590304994),E(1925078388,4068182383),E(2162078206,991336113),E(2614888103,633803317),E(3248222580,3479774868),E(3835390401,2666613458),E(4022224774,944711139),E(264347078,2341262773),E(604807628,2007800933),E(770255983,1495990901),E(1249150122,1856431235),E(1555081692,3175218132),E(1996064986,2198950837),E(2554220882,3999719339),E(2821834349,766784016),E(2952996808,2566594879),E(3210313671,3203337956),E(3336571891,1034457026),E(3584528711,2466948901),E(113926993,3758326383),E(338241895,168717936),E(666307205,1188179964),E(773529912,1546045734),E(1294757372,1522805485),E(1396182291,2643833823),E(1695183700,2343527390),E(1986661051,1014477480),E(2177026350,1206759142),E(2456956037,344077627),E(2730485921,1290863460),E(2820302411,3158454273),E(3259730800,3505952657),E(3345764771,106217008),E(3516065817,3606008344),E(3600352804,1432725776),E(4094571909,1467031594),E(275423344,851169720),E(430227734,3100823752),E(506948616,1363258195),E(659060556,3750685593),E(883997877,3785050280),E(958139571,3318307427),E(1322822218,3812723403),E(1537002063,2003034995),E(1747873779,3602036899),E(1955562222,1575990012),E(2024104815,1125592928),E(2227730452,2716904306),E(2361852424,442776044),E(2428436474,593698344),E(2756734187,3733110249),E(3204031479,2999351573),E(3329325298,3815920427),E(3391569614,3928383900),E(3515267271,566280711),E(3940187606,3454069534),E(4118630271,4000239992),E(116418474,1914138554),E(174292421,2731055270),E(289380356,3203993006),E(460393269,320620315),E(685471733,587496836),E(852142971,1086792851),E(1017036298,365543100),E(1126000580,2618297676),E(1288033470,3409855158),E(1501505948,4234509866),E(1607167915,987167468),E(1816402316,1246189591)],i=[];(function(){for(var c=0;c<80;c++)i[c]=E()})();var f=s.SHA512=o.extend({_doReset:function(){this._hash=new C.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(c,Q){for(var g=this._hash.words,x=g[0],d=g[1],h=g[2],I=g[3],m=g[4],b=g[5],k=g[6],N=g[7],z=x.high,v=x.low,S=d.high,V=d.low,y=h.high,R=h.low,Z=I.high,P=I.low,W=m.high,F=m.low,D=b.high,T=b.low,p=k.high,w=k.low,U=N.high,L=N.low,Y=z,O=v,H=S,X=V,oe=y,Ie=R,Je=Z,ke=P,ne=W,ee=F,Te=D,Se=T,ze=p,Fe=w,Oe=U,Ne=L,re=0;re<80;re++){var ae,Ce,Ze=i[re];if(re<16)Ce=Ze.high=c[Q+re*2]|0,ae=Ze.low=c[Q+re*2+1]|0;else{var Ke=i[re-15],Qe=Ke.high,ge=Ke.low,_=(Qe>>>1|ge<<31)^(Qe>>>8|ge<<24)^Qe>>>7,le=(ge>>>1|Qe<<31)^(ge>>>8|Qe<<24)^(ge>>>7|Qe<<25),xe=i[re-2],pe=xe.high,Ve=xe.low,uA=(pe>>>19|Ve<<13)^(pe<<3|Ve>>>29)^pe>>>6,q=(Ve>>>19|pe<<13)^(Ve<<3|pe>>>29)^(Ve>>>6|pe<<26),De=i[re-7],Ye=De.high,He=De.low,At=i[re-16],f0=At.high,tt=At.low;ae=le+He,Ce=_+Ye+(ae>>>0<le>>>0?1:0),ae=ae+q,Ce=Ce+uA+(ae>>>0<q>>>0?1:0),ae=ae+tt,Ce=Ce+f0+(ae>>>0<tt>>>0?1:0),Ze.high=Ce,Ze.low=ae}var h0=ne&Te^~ne&ze,at=ee&Se^~ee&Fe,I0=Y&H^Y&oe^H&oe,Q0=O&X^O&Ie^X&Ie,x0=(Y>>>28|O<<4)^(Y<<30|O>>>2)^(Y<<25|O>>>7),nt=(O>>>28|Y<<4)^(O<<30|Y>>>2)^(O<<25|Y>>>7),p0=(ne>>>14|ee<<18)^(ne>>>18|ee<<14)^(ne<<23|ee>>>9),m0=(ee>>>14|ne<<18)^(ee>>>18|ne<<14)^(ee<<23|ne>>>9),rt=B[re],v0=rt.high,ot=rt.low,se=Ne+m0,Re=Oe+p0+(se>>>0<Ne>>>0?1:0),se=se+at,Re=Re+h0+(se>>>0<at>>>0?1:0),se=se+ot,Re=Re+v0+(se>>>0<ot>>>0?1:0),se=se+ae,Re=Re+Ce+(se>>>0<ae>>>0?1:0),st=nt+Q0,b0=x0+I0+(st>>>0<nt>>>0?1:0);Oe=ze,Ne=Fe,ze=Te,Fe=Se,Te=ne,Se=ee,ee=ke+se|0,ne=Je+Re+(ee>>>0<ke>>>0?1:0)|0,Je=oe,ke=Ie,oe=H,Ie=X,H=Y,X=O,O=se+st|0,Y=Re+b0+(O>>>0<se>>>0?1:0)|0}v=x.low=v+O,x.high=z+Y+(v>>>0<O>>>0?1:0),V=d.low=V+X,d.high=S+H+(V>>>0<X>>>0?1:0),R=h.low=R+Ie,h.high=y+oe+(R>>>0<Ie>>>0?1:0),P=I.low=P+ke,I.high=Z+Je+(P>>>0<ke>>>0?1:0),F=m.low=F+ee,m.high=W+ne+(F>>>0<ee>>>0?1:0),T=b.low=T+Se,b.high=D+Te+(T>>>0<Se>>>0?1:0),w=k.low=w+Fe,k.high=p+ze+(w>>>0<Fe>>>0?1:0),L=N.low=L+Ne,N.high=U+Oe+(L>>>0<Ne>>>0?1:0)},_doFinalize:function(){var c=this._data,Q=c.words,g=this._nDataBytes*8,x=c.sigBytes*8;Q[x>>>5]|=128<<24-x%32,Q[(x+128>>>10<<5)+30]=Math.floor(g/4294967296),Q[(x+128>>>10<<5)+31]=g,c.sigBytes=Q.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var c=o.clone.call(this);return c._hash=this._hash.clone(),c},blockSize:1024/32});a.SHA512=o._createHelper(f),a.HmacSHA512=o._createHmacHelper(f)}(),t.SHA512})}(pA)),pA.exports}var mA={exports:{}},mt;function sn(){return mt||(mt=1,function(r,e){(function(t,a,n){r.exports=a(K(),rA(),r0())})(J,function(t){return function(){var a=t,n=a.x64,o=n.Word,u=n.WordArray,l=a.algo,C=l.SHA512,s=l.SHA384=C.extend({_doReset:function(){this._hash=new u.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var E=C._doFinalize.call(this);return E.sigBytes-=16,E}});a.SHA384=C._createHelper(s),a.HmacSHA384=C._createHmacHelper(s)}(),t.SHA384})}(mA)),mA.exports}var vA={exports:{}},vt;function ln(){return vt||(vt=1,function(r,e){(function(t,a,n){r.exports=a(K(),rA())})(J,function(t){return function(a){var n=t,o=n.lib,u=o.WordArray,l=o.Hasher,C=n.x64,s=C.Word,E=n.algo,B=[],i=[],f=[];(function(){for(var g=1,x=0,d=0;d<24;d++){B[g+5*x]=(d+1)*(d+2)/2%64;var h=x%5,I=(2*g+3*x)%5;g=h,x=I}for(var g=0;g<5;g++)for(var x=0;x<5;x++)i[g+5*x]=x+(2*g+3*x)%5*5;for(var m=1,b=0;b<24;b++){for(var k=0,N=0,z=0;z<7;z++){if(m&1){var v=(1<<z)-1;v<32?N^=1<<v:k^=1<<v-32}m&128?m=m<<1^113:m<<=1}f[b]=s.create(k,N)}})();var c=[];(function(){for(var g=0;g<25;g++)c[g]=s.create()})();var Q=E.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var g=this._state=[],x=0;x<25;x++)g[x]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(g,x){for(var d=this._state,h=this.blockSize/2,I=0;I<h;I++){var m=g[x+2*I],b=g[x+2*I+1];m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;var k=d[I];k.high^=b,k.low^=m}for(var N=0;N<24;N++){for(var z=0;z<5;z++){for(var v=0,S=0,V=0;V<5;V++){var k=d[z+5*V];v^=k.high,S^=k.low}var y=c[z];y.high=v,y.low=S}for(var z=0;z<5;z++)for(var R=c[(z+4)%5],Z=c[(z+1)%5],P=Z.high,W=Z.low,v=R.high^(P<<1|W>>>31),S=R.low^(W<<1|P>>>31),V=0;V<5;V++){var k=d[z+5*V];k.high^=v,k.low^=S}for(var F=1;F<25;F++){var v,S,k=d[F],D=k.high,T=k.low,p=B[F];p<32?(v=D<<p|T>>>32-p,S=T<<p|D>>>32-p):(v=T<<p-32|D>>>64-p,S=D<<p-32|T>>>64-p);var w=c[i[F]];w.high=v,w.low=S}var U=c[0],L=d[0];U.high=L.high,U.low=L.low;for(var z=0;z<5;z++)for(var V=0;V<5;V++){var F=z+5*V,k=d[F],Y=c[F],O=c[(z+1)%5+5*V],H=c[(z+2)%5+5*V];k.high=Y.high^~O.high&H.high,k.low=Y.low^~O.low&H.low}var k=d[0],X=f[N];k.high^=X.high,k.low^=X.low}},_doFinalize:function(){var g=this._data,x=g.words;this._nDataBytes*8;var d=g.sigBytes*8,h=this.blockSize*32;x[d>>>5]|=1<<24-d%32,x[(a.ceil((d+1)/h)*h>>>5)-1]|=128,g.sigBytes=x.length*4,this._process();for(var I=this._state,m=this.cfg.outputLength/8,b=m/8,k=[],N=0;N<b;N++){var z=I[N],v=z.high,S=z.low;v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,k.push(S),k.push(v)}return new u.init(k,m)},clone:function(){for(var g=l.clone.call(this),x=g._state=this._state.slice(0),d=0;d<25;d++)x[d]=x[d].clone();return g}});n.SHA3=l._createHelper(Q),n.HmacSHA3=l._createHmacHelper(Q)}(Math),t.SHA3})}(vA)),vA.exports}var bA={exports:{}},bt;function un(){return bt||(bt=1,function(r,e){(function(t,a){r.exports=a(K())})(J,function(t){/** @preserve
|
|
2
2
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|