PageSourceSearch

https://bccs.tech/build/assets/app-YY1sRZNe.js

js bccs.tech collected 2026-10-08 00:00:15 UTC 1,327,699 bytes, 421 lines download raw bytes

1function t8(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(s,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function zS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xg={exports:{}},tc={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var R2;function n8(){if(R2)return tc;R2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(s,a,l){var d=null;if(l!==void 0&&(d=""+l),a.key!==void 0&&(d=""+a.key),"key"in a){l={};for(var u in a)u!=="key"&&(l[u]=a[u])}else l=a;return a=l.ref,{$$typeof:e,type:s,key:d,ref:a!==void 0?a:null,props:l}}return tc.Fragment=t,tc.jsx=n,tc.jsxs=n,tc}var P2;function s8(){return P2||(P2=1,xg.exports=n8()),xg.exports}var i=s8();const i8="modulepreload",r8=function(e){return"/build/"+e},D2={},a8=function(t,n,s){let a=Promise.resolve();if(n&&n.length>0){let h=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var d=h;document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");a=h(n.map(p=>{if(p=r8(p),p in D2)return;D2[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const x=document.createElement("link");if(x.rel=g?"stylesheet":i8,g||(x.as="script"),x.crossOrigin="",x.href=p,f&&x.setAttribute("nonce",f),document.head.appendChild(x),g)return new Promise((b,w)=>{x.addEventListener("load",b),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return a.then(u=>{for(const f of u||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})};function o8(e){return typeof e=="symbol"||e instanceof Symbol}function l8(e,t,{signal:n,edges:s}={}){let a,l=null;const d=s!=null&&s.includes("leading"),u=s==null||s.includes("trailing"),f=()=>{l!==null&&(e.apply(a,l),a=void 0,l=null)},h=()=>{u&&f(),x()};let p=null;const g=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,h()},t)},y=()=>{p!==null&&(clearTimeout(p),p=null)},x=()=>{y(),a=void 0,l=null},b=()=>{f()},w=function(...S){if(n?.aborted)return;a=this,l=S;const N=p==null;g(),d&&N&&f()};return w.schedule=g,w.cancel=x,w.flush=b,n?.addEventListener("abort",x,{once:!0}),w}function VS(){}function Gv(e){return e==null||typeof e!="object"&&typeof e!="function"}function Wv(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function c8(e){if(Gv(e))return e;if(Array.isArray(e)||Wv(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const s=new n(e);return s.lastIndex=e.lastIndex,s}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let s;return e instanceof AggregateError?s=new n(e.errors,e.message,{cause:e.cause}):s=new n(e.message,{cause:e.cause}),s.stack=e.stack,Object.assign(s,e),s}if(typeof File<"u"&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e=="object"){const s=Object.create(t);return Object.assign(s,e)}return e}function Xf(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Lc(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const US="[object RegExp]",Yv="[object String]",Kv="[object Number]",Xv="[object Boolean]",Zf="[object Arguments]",HS="[object Symbol]",qS="[object Date]",GS="[object Map]",WS="[object Set]",YS="[object Array]",d8="[object Function]",KS="[object ArrayBuffer]",Sc="[object Object]",u8="[object Error]",XS="[object DataView]",ZS="[object Uint8Array]",QS="[object Uint8ClampedArray]",JS="[object Uint16Array]",eN="[object Uint32Array]",f8="[object BigUint64Array
9]",tN="[object Int8Array]",nN="[object Int16Array]",sN="[object Int32Array]",m8="[object BigInt64Array]",iN="[object Float32Array]",rN="[object Float64Array]";function h8(e,t){return xa(e,void 0,e,new Map,t)}function xa(e,t,n,s=new Map,a=void 0){const l=a?.(e,t,n,s);if(l!==void 0)return l;if(Gv(e))return e;if(s.has(e))return s.get(e);if(Array.isArray(e)){const d=new Array(e.length);s.set(e,d);for(let u=0;u<e.length;u++)d[u]=xa(e[u],u,n,s,a);return Object.hasOwn(e,"index")&&(d.index=e.index),Object.hasOwn(e,"input")&&(d.input=e.input),d}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const d=new RegExp(e.source,e.flags);return d.lastIndex=e.lastIndex,d}if(e instanceof Map){const d=new Map;s.set(e,d);for(const[u,f]of e)d.set(u,xa(f,u,n,s,a));return d}if(e instanceof Set){const d=new Set;s.set(e,d);for(const u of e)d.add(xa(u,void 0,n,s,a));return d}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Wv(e)){const d=new(Object.getPrototypeOf(e)).constructor(e.length);s.set(e,d);for(let u=0;u<e.length;u++)d[u]=xa(e[u],u,n,s,a);return d}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const d=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return s.set(e,d),Qs(d,e,n,s,a),d}if(typeof File<"u"&&e instanceof File){const d=new File([e],e.name,{type:e.type});return s.set(e,d),Qs(d,e,n,s,a),d}if(typeof Blob<"u"&&e instanceof Blob){const d=new Blob([e],{type:e.type});return s.set(e,d),Qs(d,e,n,s,a),d}if(e instanceof Error){const d=structuredClone(e);return s.set(e,d),d.message=e.message,d.name=e.name,d.stack=e.stack,d.cause=e.cause,d.constructor=e.constructor,Qs(d,e,n,s,a),d}if(e instanceof Boolean){const d=new Boolean(e.valueOf());return s.set(e,d),Qs(d,e,n,s,a),d}if(e instanceof Number){const d=new Number(e.valueOf());return s.set(e,d),Qs(d,e,n,s,a),d}if(e instanceof String){const d=new String(e.valueOf());return s.set(e,d),Qs(d,e,n,s,a),d}if(typeof e=="object"&&p8(e)){const d=Object.create(Object.getPrototypeOf(e));return s.set(e,d),Qs(d,e,n,s,a),d}return e}function Qs(e,t,n=e,s,a){const l=[...Object.keys(t),...Xf(t)];for(let d=0;d<l.length;d++){const u=l[d],f=Object.getOwnPropertyDescriptor(e,u);(f==null||f.writable)&&(e[u]=xa(t[u],u,n,s,a))}}function p8(e){switch(Lc(e)){case Zf:case YS:case KS:case XS:case Xv:case qS:case iN:case rN:case tN:case nN:case sN:case GS:case Kv:case Sc:case US:case WS:case Yv:case HS:case ZS:case QS:case JS:case eN:return!0;default:return!1}}function At(e){return xa(e,void 0,e,new Map,void 0)}function L2(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function Fc(e){return e==="__proto__"}function _g(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const n=e[Symbol.toStringTag];return n==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${n}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function aN(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function g8(e,t,n){return bc(e,t,void 0,void 0,void 0,void 0,n)}function bc(e,t,n,s,a,l,d){const u=d(e,t,n,s,a,l);if(u!==void 0)return u;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Nc(e,t,l,d)}return Nc(e,t,l,d)}function Nc(e,t,n,s){if(Object.is(e,t))return!0;let a=Lc(e),l=Lc(t);if(a===Zf&&(a=Sc),l===Zf&&(l=Sc),a!==l)return!1;switch(a){case Yv:return e.toString()===t.toString();case Kv:{const f=e.valueOf(),h=t.valueOf();return aN(f,h)}case Xv:case qS:case HS:return Object.is(e.valueOf(),t.valueOf());case US:return e.source===t.source&&e.flags===t.flags;case d8:return e===t}n=n??new Map;const d=n.get(e),u=n.get(t);if(d!=null&&u!=null)return d===t;n.set(e,t),n.set(t,e);
9try{switch(a){case GS:{if(e.size!==t.size)return!1;for(const[f,h]of e.entries())if(!t.has(f)||!bc(h,t.get(f),f,e,t,n,s))return!1;return!0}case WS:{if(e.size!==t.size)return!1;const f=Array.from(e.values()),h=Array.from(t.values());for(let p=0;p<f.length;p++){const g=f[p],y=h.findIndex(x=>bc(g,x,void 0,e,t,n,s));if(y===-1)return!1;h.splice(y,1)}return!0}case YS:case ZS:case QS:case JS:case eN:case f8:case tN:case nN:case sN:case m8:case iN:case rN:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let f=0;f<e.length;f++)if(!bc(e[f],t[f],f,e,t,n,s))return!1;return!0}case KS:return e.byteLength!==t.byteLength?!1:Nc(new Uint8Array(e),new Uint8Array(t),n,s);case XS:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Nc(new Uint8Array(e),new Uint8Array(t),n,s);case u8:return e.name===t.name&&e.message===t.message;case Sc:{if(!(Nc(e.constructor,t.constructor,n,s)||L2(e)&&L2(t)))return!1;const h=[...Object.keys(e),...Xf(e)],p=[...Object.keys(t),...Xf(t)];if(h.length!==p.length)return!1;for(let g=0;g<h.length;g++){const y=h[g],x=e[y];if(!Object.hasOwn(t,y))return!1;const b=t[y];if(!bc(x,b,y,e,t,n,s))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function pi(e,t){return g8(e,t,VS)}function v8(e){return Number.isSafeInteger(e)&&e>=0}const y8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function b8(e){return e.replace(/[&<>"']/g,t=>y8[t])}function x8(e){return e!=null&&typeof e!="function"&&v8(e.length)}function oN(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function Zv(e){return typeof e=="string"||typeof e=="symbol"?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function Qv(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map(Qv).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Jv(e){if(Array.isArray(e))return e.map(Zv);if(typeof e=="symbol")return[e];e=Qv(e);const t=[],n=e.length;if(n===0)return t;let s=0,a="",l="",d=!1;for(e.charCodeAt(0)===46&&(t.push(""),s++);s<n;){const u=e[s];l?u==="\\"&&s+1<n?(s++,a+=e[s]):u===l?l="":a+=u:d?u==='"'||u==="'"?l=u:u==="]"?(d=!1,t.push(a),a=""):a+=u:u==="["?(d=!0,a&&(t.push(a),a="")):u==="."?a&&(t.push(a),a=""):a+=u,s++}return a&&t.push(a),t}function zt(e,t,n){if(e==null)return n;switch(typeof t){case"string":{if(Fc(t))return n;const s=e[t];return s===void 0?oN(t)?zt(e,Jv(t),n):n:s}case"number":case"symbol":{typeof t=="number"&&(t=Zv(t));const s=e[t];return s===void 0?n:s}default:{if(Array.isArray(t))return _8(e,t,n);if(Object.is(t?.valueOf(),-0)?t="-0":t=String(t),Fc(t))return n;const s=e[t];return s===void 0?n:s}}}function _8(e,t,n){if(t.length===0)return n;let s=e;for(let a=0;a<t.length;a++){if(s==null||Fc(t[a]))return n;s=s[t[a]]}return s===void 0?n:s}function F2(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function j8(e,t){return h8(e,(n,s,a,l)=>{if(typeof e=="object"){if(Lc(e)===Sc&&typeof e.constructor!="function"){const d={};return l.set(e,d),Qs(d,e,a,l),d}switch(Object.prototype.toString.call(e)){case Kv:case Yv:case Xv:{const d=new e.constructor(e?.valueOf());return Qs(d,e),d}case Zf:{const d={};return Qs(d,e),d.length=e.length,d[Symbol.iterator]=e[Symbol.iterator],d}default:return}}})}function I2(e){return j8(e)}const w8=/^(?:0|[1-9]\d*)$/;function lN(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return w8.test(e)}}function R0(e){return e!==null&&typeof e=="object"&&Lc(e)==="[object Arguments]"}function P0(e,t){let n;if(Array.isArray(t)?n=t:typeof t=="string"&&oN(t)&&e?.[t]==null?n=Jv(t):n=[t],n.length===0)return!1;let s=e;for(let a=0;a<n.length;a++){const l=n[a];if((s==null||!Object.hasOwn(s,l))&&!((Array.isArray(s)||R0(s))&&lN(l)&&l<s.length))return!1;s=s[l]}return!0}function D0(e){return typeof e=="object"&&e!==null}function S8(e){return D0(e)&&x8(e)}const N8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C8=/^\w*$/;function $8(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||o8(e)?!0:typeof e=="string"&&(C8.test(e)||!N8.test(e))||t!=null&&Object.hasOwn(t,e)}const E8=(e,t,n)=>{const s=e[t];(!(Object.hasOwn(e,t)&&aN(s,n))||n===void 0&&!(t in e))&&(e[t]=n)};function T8(e,t,n,s){if(e==null&&!F2(e))return e;let a;$8(t,e)?a=[t]:Array.isArray(t)?a=t:a=Jv(t);const l=n(zt(e,a));let d=e;for(let u=0;u<a.length&&d!=null;u++){const f=Zv(a[u]);if(Fc(f))continue;let h;if(u===a.length-1)h=l;else{const p=d[f],g=s?.(p,f,e);h=g!==void 0?g:F2(p)?p:lN(a[u+1])?[]:{}}E8(d,f,h),d=d[f]}return e}function ts(e,t,n){return T8(e,t,()=>n,()=>{})}function A8(e,t=0,n={}){typeof n!="object"&&(n={});const{leading:s=!1,trailing:a=!0,maxWait:l}=n,d=Array(2);s&&(d[0]="leading"),a&&(d[1]="trailing");let u,f=null;const h=l8(function(...y){u=e.apply(this,y),f=null},t,{edges:d}),p=function(...y){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(u=e.apply(this,y),f=Date.now(),h.cancel(),h.schedule(),u):(h.apply(this,y),u)},g=()=>(h.flush(),u);return p.cancel=h.cancel,p.flush=g,p}function jg(e){return Wv(e)}function k8(e,...t){const n=t.slice(0,-1),s=t[t.length-1];let a=e;for(let l=0;l<n.length;l++){const d=n[l];a=Mf(a,d,s,new Map)}return a}function Mf(e,t,n,s){if(Gv(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(s.has(t))return c8(s.get(t));if(s.set(t,e),Array.isArray(t)){t=t.slice();for(let l=0;l<t.length;l++)t[l]=t[l]??void 0}const a=[...Object.keys(t),...Xf(t)];for(let l=0;l<a.length;l++){const d=a[l];if(Fc(d))continue;let u=t[d],f=e[d];if(R0(u)&&(u={...u}),R0(f)&&(f={...f}),typeof Buffer<"u"&&Buffer.isBuffer(u)&&(u=I2(u)),Array.isArray(u))if(Array.isArray(f)){const p=[],g=Reflect.ownKeys(f);for(let y=0;y<g.length;y++){const x=g[y];p[x]=f[x]}f=p}else if(S8(f)){const p=[];for(let g=0;g<f.length;g++)p[g]=f[g];f=p}else f=[];const h=n(f,u,d,e,t,s);h!==void 0?e[d]=h:Array.isArray(u)||D0(f)&&D0(u)&&(_g(f)||_g(u)||jg(f)||jg(u))?e[d
9]=Mf(f,u,n,s):f==null&&_g(u)?e[d]=Mf({},u,n,s):f==null&&jg(u)?e[d]=I2(u):(f===void 0||u!==void 0)&&(e[d]=u)}return e}function Qf(e,...t){return k8(e,...t,VS)}function M8(e){return b8(Qv(e))}const ey=e=>typeof File<"u"&&e instanceof File||e instanceof Blob||typeof FileList<"u"&&e instanceof FileList&&e.length>0,Mm=e=>e instanceof FormData?!0:ey(e)||typeof e=="object"&&e!==null&&Object.values(e).some(t=>Mm(t));let Jf=class extends Error{response;constructor(t){super(`HTTP error ${t.status}`),this.name="HttpResponseError",this.response=t}},cN=class extends Error{constructor(t="Request was cancelled"){super(t),this.name="HttpCancelledError"}},O8=class extends Error{constructor(t="Network error"){super(t),this.name="HttpNetworkError"}};function R8(e){const t=new URLSearchParams;return Object.entries(e).forEach(([n,s])=>{s!=null&&(Array.isArray(s)?s.forEach(a=>t.append(`${n}[]`,String(a))):typeof s=="object"?t.append(n,JSON.stringify(s)):t.append(n,String(s)))}),t.toString()}function P8(e,t,n){if(t&&!e.startsWith("http://")&&!e.startsWith("https://")&&(e=t.replace(/\/$/,"")+"/"+e.replace(/^\//,"")),n&&Object.keys(n).length>0){const s=R8(n);s&&(e+=(e.includes("?")?"&":"?")+s)}return e}function D8(){return typeof window>"u"?null:window.axios?.defaults?.headers?.common?.["X-Requested-With"]??null}function dN(e,t=new FormData,n=null){for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&uN(t,n?`${n}[${s}]`:s,e[s]);return t}function uN(e,t,n){if(Array.isArray(n))return n.forEach((s,a)=>uN(e,`${t}[${a}]`,s));if(n instanceof Date)return e.append(t,n.toISOString());if(typeof File<"u"&&n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n=="boolean")return e.append(t,n?"1":"0");if(typeof n=="string")return e.append(t,n);if(typeof n=="number")return e.append(t,`${n}`);if(n==null)return e.append(t,"");dN(n,e,t)}function L8(e,t){if(e!=null)return e instanceof FormData?e:typeof e=="object"&&Mm(e)?dN(e):typeof e=="object"||t["Content-Type"]?.includes("application/json")?JSON.stringify(e):String(e)}function F8(e){const t={};return e.forEach((n,s)=>{t[s.toLowerCase()]=n}),t}function I8(e={}){let t=e.xsrfCookieName??"XSRF-TOKEN",n=e.xsrfHeaderName??"X-XSRF-TOKEN";function s(){if(typeof document>"u")return null;const a=document.cookie.match(new RegExp("(^|;\\s*)"+t+"=([^;]*)"));return a?decodeURIComponent(a[2]):null}return{setXsrfCookieName(a){t=a},setXsrfHeaderName(a){n=a},async request(a){const l=P8(a.url,a.baseURL,a.params),d=a.method.toUpperCase(),u={},f=D8();f&&(u["X-Requested-With"]=f),a.data!==void 0&&!["GET","DELETE"].includes(d)&&!(a.data instanceof FormData)&&!Mm(a.data)&&(u["Content-Type"]="application/json"),a.headers&&Object.entries(a.headers).forEach(([b,w])=>{w!==void 0&&(u[b]=String(w))});const h=s();h&&!["GET","HEAD","OPTIONS"].includes(d)&&(u[n]=h);let p=a.signal,g;const y=a.timeout??3e4;if(y>0&&!p){const b=new AbortController;p=b.signal,g=setTimeout(()=>b.abort(),y)}const x=["GET","DELETE"].includes(d)?void 0:L8(a.data,u);x instanceof FormData&&delete u["Content-Type"];try{const b=await fetch(l,{method:d,headers:u,body:x,signal:p,credentials:a.credentials??"same-origin"});g&&clearTimeout(g);let w;b.headers.get("content-type")?.includes("application/json")?w=await b.json():w=await b.text();const N={status:b.status,data:w,headers:F8(b.headers)};if(!b.ok)throw new Jf(N);return N}catch(b){throw g&&clearTimeout(g),b instanceof Jf?b:b instanceof DOMException&&b.name==="AbortError"?new cN:b instanceof TypeError?new O8(b.message):b}}}}const L0=I8();let ty=L0,ny,fN,mN="same-origin",hN=e=>`${e.method}:${e.baseURL??ny??""}${e.url}`,pN=e=>e.status===204&&e.headers["precognition-success"]==="true";const em={},In={get:(e,t={},n={})=>sc(nc("get",e,t,n)),post:(e,t={},n={})=>sc(nc("post",e,t,n)),patch:(e,t={},n={})=>sc(nc("patch",e,t,n)),put:(e,t={},n={})=>sc(nc("put",e,t,n)),delete:(e,t={},n={})=>sc(nc("delete",e,t,n)),useHttpClient(e){return ty=e,In},withBaseURL(e){return ny=e,In},withTimeout(e){return fN=e,In},withCredentials(e){return mN=typeof e=="string"?e:e?"include":"omit",In},fingerprintRequestsUsing(e){return hN=e===null?()=>null:e,In},determineSuccessUsing(e){return pN=e,In},withXsrfCookieName(e){return L0.setXsrfCookieName(e),In},withXsrfHeaderName(e){return L0.setXsrfHeaderName(e),In}},nc=(e,t,n,s)=>({url:t,method:e,...s,...["get","delete"].includes(e)?{params:Qf({},n,s?.params)}:{data:Qf({},n,s?.data)}}),sc=(e={})=>{const t=[B8,V8,U8].reduce((n,s)=>s(n),e);return(t.onBefore??(()=>!0))()===!1?Promise.resolve(null):((t.onStart??(()=>null))(),ty.request({method:t.method,url:t.url,baseURL:t.baseURL??ny,data:t.data,params:t.params,headers:t.headers,signal:t.signal,timeout:t.timeout,credentials:mN}).then(async n=>{t.precognitive&&B2(n);const s=n.status;let a=n;return t.precognitive&&t.onPrecognitionSuccess&&pN(n)&&(a=await Promise.resolve(t.onPrecognitionSuccess(n)??a)),t.onSuccess&&z8(s)&&(a=await Promise.resolve(t.onSuccess(a)??a)),(z2(t,s)??(d=>d))(a)??a},n=>{if(H8(n))return Promise.reject(n);const s=n;return t.precognitive&&B2(s.response),(z2(t,s.response.status)??((l,d)=>Promise.reject(d)))(s.response,s)}).finally(t.onFinish??(()=>null)))},B8=e=>{const t=e.only??e.validate;return{...e,timeout:e.timeout??fN,precognitive:e.precognitive!==!1,fingerprint:typeof e.fingerprint>"u"?hN(e,ty):e.fingerprint,headers:{...e.headers,Accept:"application/json","Content-Type":q8(e),...e.precognitive!==!1?{Precognition:!0}:{},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},z8=e=>e>=200&&e<300,V8=e=>(typeof e.fingerprint!="string"||(em[e.fingerprint]?.abort(),delete em[e.fingerprint]),e),U8=e=>typeof e.fingerprint!="string"||e.signal||!e.precognitive?e:(em[e.fingerprint]=new AbortController,{...e,signal:em[e.fingerprint].signal}),B2=e=>
9{if(e.headers?.precognition!=="true")throw Error("Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.")},H8=e=>!(e instanceof Jf)||typeof e.response?.status!="number",z2=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked})[t],q8=e=>e.headers?.["Content-Type"]??e.headers?.["Content-type"]??e.headers?.["content-type"]??(Mm(e.data)?"multipart/form-data":"application/json"),G8=(e,t)=>{if(!e.includes("*"))return[e];const n=e.split(".");let s=[""];for(const a of n)if(a==="*"){const l=[];for(const d of s){const u=d?zt(t,d):t;if(Array.isArray(u))for(let f=0;f<u.length;f++)l.push(d?`${d}.${f}`:String(f));else if(u!==null&&typeof u=="object")for(const f of Object.keys(u))l.push(d?`${d}.${f}`:f)}s=l}else s=s.map(l=>l?`${l}.${a}`:a);return s},W8=(e,t)=>t.includes("*")?new RegExp("^"+t.replace(/\./g,"\\.").replace(/\*/g,"[^.]+")+"$").test(e):e===t,V2=(e,t)=>Object.fromEntries(Object.entries(e).filter(([n])=>!t.some(s=>W8(n,s)))),Y8=(e,t={})=>{const n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]};let s=!1,a=!1;const l=V=>V!==a?(a=V,n.validatingChanged):[];let d=[];const u=V=>{const z=[...new Set(V)];return d.length!==z.length||!z.every(K=>d.includes(K))?(d=z,n.validatedChanged):[]},f=()=>d.filter(V=>typeof g[V]>"u");let h=[];const p=V=>{const z=[...new Set(V)];return h.length!==z.length||!z.every(K=>h.includes(K))?(h=z,n.touchedChanged):[]};let g={};const y=V=>{const z=X8(V);return pi(g,z)?[]:(g=z,n.errorsChanged)},x=V=>{const z={...g};return delete z[Cc(V)],y(z)},b=()=>Object.keys(g).length>0;let w=1500;const S=V=>{w=V,R.cancel(),R=L()};let N=t,C=null,E=[],M=null;const L=()=>A8(V=>{e({get:(z,K={},W={})=>In.get(z,B(K),O(W,V,K)),post:(z,K={},W={})=>In.post(z,B(K),O(W,V,K)),patch:(z,K={},W={})=>In.patch(z,B(K),O(W,V,K)),put:(z,K={},W={})=>In.put(z,B(K),O(W,V,K)),delete:(z,K={},W={})=>In.delete(z,B(K),O(W,V,K))}).catch(z=>z instanceof cN||z instanceof Jf&&z.response?.status===422?null:Promise.reject(z))},w,{leading:!0,trailing:!0});let R=L();const O=(V,z,K={})=>{const W={...V,...z},Q=Array.from(W.only??W.validate??h);return{...z,...Qf({},V,z),only:Q,timeout:W.timeout??5e3,onValidationError:(D,H)=>([...u([...d,...Q]),...y(Qf(V2({...g},Q),D.data.errors))].forEach(U=>U()),W.onValidationError?W.onValidationError(D,H):Promise.reject(H)),onSuccess:D=>(u([...d,...Q]).forEach(H=>H()),W.onSuccess?W.onSuccess(D):D),onPrecognitionSuccess:D=>([...u([...d,...Q]),...y(V2({...g},Q))].forEach(H=>H()),W.onPrecognitionSuccess?W.onPrecognitionSuccess(D):D),onBefore:()=>{const D=h.some(Z=>Z.includes("*")),H=D?[...new Set(h.flatMap(Z=>G8(Z,K)))]:h;return W.onBeforeValidation&&W.onBeforeValidation({data:K,touched:H},{data:N,touched:E})===!1||(W.onBefore||(()=>!0))()===!1?!1:(D&&p(H).forEach(Z=>Z()),M=h,C=K,!0)},onStart:()=>{l(!0).forEach(D=>D()),(W.onStart??(()=>null))()},onFinish:()=>
9{l(!1).forEach(D=>D()),E=M,N=C,M=C=null,(W.onFinish??(()=>null))()}}},k=(V,z,K)=>{if(typeof V>"u"){const W=Array.from(K?.only??K?.validate??[]);p([...h,...W]).forEach(Q=>Q()),R(K??{});return}if(ey(z)&&!s){console.warn('Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.');return}V=Cc(V),(V.includes("*")||zt(N,V)!==z)&&(p([V,...h]).forEach(W=>W()),R(K??{}))},B=V=>s===!1?F0(V):V,I={touched:()=>h,validate(V,z,K){return typeof V=="object"&&!("target"in V)&&(K=V,V=z=void 0),k(V,z,K),I},touch(V){const z=Array.isArray(V)?V:[Cc(V)];return p([...h,...z]).forEach(K=>K()),I},validating:()=>a,valid:f,errors:()=>g,hasErrors:b,setErrors(V){return y(V).forEach(z=>z()),I},forgetError(V){return x(V).forEach(z=>z()),I},defaults(V){return t=V,N=V,I},reset(...V){if(V.length===0)p([]).forEach(z=>z());else{const z=[...h];V.forEach(K=>{z.includes(K)&&z.splice(z.indexOf(K),1),ts(N,K,zt(t,K))}),p(z).forEach(K=>K())}return I},setTimeout(V){return S(V),I},on(V,z){return n[V].push(z),I},validateFiles(){return s=!0,I},withoutFileValidation(){return s=!1,I}};return I},K8=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:Array.isArray(e[n])?e[n][0]:e[n]}),{}),X8=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:typeof e[n]=="string"?[e[n]]:e[n]}),{}),Cc=e=>typeof e!="string"?e.target.name:e,F0=e=>{const t={...e};return Object.keys(t).forEach(n=>{const s=t[n];if(s!==null){if(ey(s)){delete t[n];return}if(Array.isArray(s)){t[n]=Object.values(F0({...s}));return}if(typeof s=="object"){t[n]=F0(t[n]);return}}}),t};var Z8=class{config={};defaults;constructor(e){this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return P0(this.config,e)?zt(this.config,e):zt(this.defaults,e)}set(e,t){typeof e=="string"?ts(this.config,e,t):Object.entries(e).forEach(([n,s])=>{ts(this.config,n,s)})}},Ic=new Z8({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function Bc(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>e.apply(this,s),t)}}function _s(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var U2=e=>_s("before",{cancelable:!0,detail:{visit:e}}),Q8=e=>_s("error",{detail:{errors:e}}),J8=e=>_s("networkError",{cancelable:!0,detail:{error:e}}),eT=e=>_s("finish",{detail:{visit:e}}),H2=e=>_s("httpException",{cancelable:!0,detail:{response:e}}),tT=e=>_s("beforeUpdate",{detail:{page:e}}),tm=e=>_s("navigate",{detail:{page:e}}),nT=e=>_s("progress",{detail:{progress:e}}),sT=e=>_s("start",{detail:{visit:e}}),iT=e=>_s("success",{detail:{page:e}}),rT=(e,t)=>_s("prefetched",{detail:{fetchedAt:Date.now(),response:e,visit:t}}),aT=e=>_s("prefetching",{detail:{visit:e}}),nm=e=>_s("flash",{detail:{flash:e}}),Jn=class{static locationVisitKey="inertiaLocationVisit";static set(e,t){typeof window<"u"&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<"u")return JSON.parse(window.sessionStorage.getItem(e)||"null")}static merge(e,t){const n=this.get(e);n===null?this.set(e,t):this.set(e,{...n,...t})}static remove(e){typeof window<"u"&&window.sessionStorage.removeItem(e)}static removeNested(e,t){const n=this.get(e);n!==null&&(delete n[t],this.set(e,n))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<"u"&&window.sessionStorage.clear()}},oT=async e=>{if(typeof window>"u")throw new Error("Unable to encrypt history");const t=gN(),n=await vN(),s=await mT(n);if(!s)throw new Error("Unable to encrypt history");return await cT(t,s,e)},Wo={key:"historyKey",iv:"historyIv"},lT=async e=>{const t=gN(),n=await vN();if(!n)throw new Error("Unable to decrypt history");return await dT(t,n,e)},cT=async(e,t,n)=>{if(typeof window>"u")throw new Error("Unable to encrypt history");if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(n);const s=new TextEncoder,a=JSON.stringify(n),l=new Uint8Array(a.length*3),d=s.encodeInto(a,l);return window.crypto.subtle.encrypt({name:"AES-GCM",iv:e},t,l.subarray(0,d.written))},dT=async(e,t,n)=>{if(typeof window.crypto.subtle>"u")return console.warn("Decryption is not supported in this environment. SSL is required."),Promise.resolve(n);
9const s=await window.crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,n);return JSON.parse(new TextDecoder().decode(s))},gN=()=>{const e=Jn.get(Wo.iv);if(e)return new Uint8Array(e);const t=window.crypto.getRandomValues(new Uint8Array(12));return Jn.set(Wo.iv,Array.from(t)),t},uT=async()=>typeof window.crypto.subtle>"u"?(console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve(null)):window.crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),fT=async e=>{if(typeof window.crypto.subtle>"u")return console.warn("Encryption is not supported in this environment. SSL is required."),Promise.resolve();const t=await window.crypto.subtle.exportKey("raw",e);Jn.set(Wo.key,Array.from(new Uint8Array(t)))},mT=async e=>{if(e)return e;const t=await uT();return t?(await fT(t),t):null},vN=async()=>{const e=Jn.get(Wo.key);return e?await window.crypto.subtle.importKey("raw",new Uint8Array(e),{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]):null},yN=(e,t,n)=>{if(e===t)return!0;for(const s in e)if(!n.includes(s)&&e[s]!==t[s]&&!hT(e[s],t[s]))return!1;for(const s in t)if(!n.includes(s)&&!(s in e))return!1;return!0},hT=(e,t)=>{switch(typeof e){case"object":return yN(e,t,[]);case"function":return e.toString()===t.toString();default:return e===t}},pT={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},q2=e=>{if(typeof e=="number")return e;for(const[t,n]of Object.entries(pT))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},gT=class{cached=[];inFlightRequests=[];removalTimers=[];currentUseId=null;add(e,t,{cacheFor:n,cacheTags:s}){if(this.findInFlight(e))return Promise.resolve();const l=this.findCached(e);if(!e.fresh&&l&&l.staleTimestamp>Date.now())return Promise.resolve();const[d,u]=this.extractStaleValues(n),f=new Promise((h,p)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),p()},onError:g=>{this.remove(e),e.onError(g),p()},onPrefetching(g){e.onPrefetching(g)},onPrefetched(g,y){e.onPrefetched(g,y)},onPrefetchResponse(g){h(g)},onPrefetchError(g){ui.removeFromInFlight(e),p(g)}})}).then(h=>{this.remove(e);const p=h.getPageResponse();_e.mergeOncePropsIntoResponse(p),this.cached.push({params:{...e},staleTimestamp:Date.now()+d,expiresAt:Date.now()+u,response:f,singleUse:u===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(s)?s:[s]});const g=this.getShortestOncePropTtl(p);return this.scheduleForRemoval(e,g?Math.min(u,g):u),this.removeFromInFlight(e),h.handlePrefetch(),h});return this.inFlightRequests.push({params:{...e},response:f,staleTimestamp:null,inFlight:!0}),f}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(n=>e.includes(n)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){const[t,n]=this.cacheForToStaleAndExpires(e);return[q2(t),q2(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){const t=this.removalTimers.find(n=>this.paramsAreEqual(n.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(n=>n!==t))}scheduleForRemoval(e,t){if(!(typeof window>"u")&&(this.clearTimer(e),t>0)){const n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){const n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=n,e.response.then(s=>{if(this.currentUseId===n)return s.mergeParams({...t,onPrefetched:()=>{}}),this.removeSingleUseItems(t),s.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>this.paramsAreEqual(t.params,e)?!t.singleUse:!0)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){const t=At(e);return t.headers.Purpose==="prefetch"&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return yN(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),["showProgress","replace","prefetch","preserveScroll","preserveState","onBefore","onBeforeUpdate","onStart","onProgress","onFinish","onCancel","onSuccess","onError","onFlash","onPrefetched","onCancelToken","onPrefetching","async","viewTransition","optimistic","component","pageProps"])}
9updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{const n=t.getPageResponse();_e.mergeOncePropsIntoResponse(n,{force:!0});for(const[d,u]of Object.entries(n.deferredProps??{})){const f=u.filter(h=>zt(n.props,h)===void 0);f.length>0?n.deferredProps[d]=f:delete n.deferredProps[d]}const s=this.getShortestOncePropTtl(n);if(s===null)return;const a=e.expiresAt-Date.now(),l=Math.min(a,s);l>0?this.scheduleForRemoval(e.params,l):this.remove(e.params)})})}getShortestOncePropTtl(e){const t=Object.values(e.onceProps??{}).map(n=>n.expiresAt).filter(n=>!!n);return t.length===0?null:Math.min(...t)-Date.now()}},ui=new gT,wg=e=>{if(e.offsetParent===null)return!1;const t=e.getBoundingClientRect(),n=t.top<window.innerHeight&&t.bottom>=0,s=t.left<window.innerWidth&&t.right>=0;return n&&s},vT=e=>{const t=d=>{const u=window.getComputedStyle(d);return u.overflowY==="scroll"?!0:u.overflowY!=="auto"?!1:["visible","clip"].includes(u.overflowX)?!0:s(u.maxHeight,d.style.height)||a(d,"height")},n=d=>{const u=window.getComputedStyle(d);return u.overflowX==="scroll"?!0:u.overflowX!=="auto"?!1:["visible","clip"].includes(u.overflowY)?!0:s(u.maxWidth,d.style.width)||a(d,"width")},s=(d,u)=>!!(d&&d!=="none"&&d!=="0px"||u&&u!=="auto"&&u!=="0"),a=(d,u)=>{const f=d.parentElement;if(!f)return!1;const h=window.getComputedStyle(f);if(["flex","inline-flex"].includes(h.display)){const p=["column","column-reverse"].includes(h.flexDirection);return u==="height"?p:!p}return["grid","inline-grid"].includes(h.display)};let l=e?.parentElement;for(;l;){const d=t(l)||n(l);if(window.getComputedStyle(l).display!=="contents"&&d)return l;l=l.parentElement}return null},bN=(e,t)=>{if(!t)return e.filter(l=>wg(l));const n=e.indexOf(t),s=[],a=[];for(let l=n;l>=0;l--){const d=e[l];if(wg(d))s.push(d);else break}for(let l=n+1;l<e.length;l++){const d=e[l];if(wg(d))a.push(d);else break}return[...s.reverse(),...a]},$c=(e,t=1)=>{window.requestAnimationFrame(()=>{t>1?$c(e,t-1):e()})},yT=e=>{if(typeof window>"u")return null;const t=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return t?.textContent?JSON.parse(t.textContent):null},xc=typeof window>"u",bT=!xc&&/Firefox/i.test(window.navigator.userAgent),es=class{static save(){lt.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll("[scroll-region]")}static scrollToTop(){if(bT&&getComputedStyle(document.documentElement).scrollBehavior==="smooth")return $c(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){(xc?null:window.location.hash)||this.scrollToTop(),this.regions().forEach(t=>{typeof t.scrollTo=="function"?t.scrollTo(0,0):(t.scrollTop=0,t.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){const e=xc?null:window.location.hash;e&&setTimeout(()=>{const t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){xc||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){xc||this.regions().forEach((t,n)=>{const s=e[n];s&&(typeof t.scrollTo=="function"?t.scrollTo(s.left,s.top):(t.scrollTop=s.top,t.scrollLeft=s.left))})}static restoreDocument(){const e=lt.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){const t=e.target;typeof t.hasAttribute=="function"&&t.hasAttribute("scroll-region")&&this.save()}static onWindowScroll(){lt.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},sy=e=>typeof File<"u"&&e instanceof File||e instanceof Blob||typeof FileList<"u"&&e instanceof FileList&&e.length>0;function I0(e){return sy(e)||e instanceof FormData&&Array.from(e.values()).some(t=>I0(t))||typeof e=="object"&&e!==null&&Object.values(e).some(t=>I0(t))}var B0=e=>e instanceof FormData;function xN(e,t=new FormData,n=null,s="brackets"){e=e||{};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&jN(t,_N(n,a,"indices"),e[a],s);return t}function _N(e,t,n){return e?n==="brackets"?`${e}[]`:`${e}[${t}]`:t}function jN(e,t,n,s){if(Array.isArray(n))return Array.from(n.keys()).forEac
9h(a=>jN(e,_N(t,a.toString(),s),n[a],s));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n=="boolean")return e.append(t,n?"1":"0");if(typeof n=="string")return e.append(t,n);if(typeof n=="number")return e.append(t,`${n}`);if(n==null)return e.append(t,"");xN(n,e,t,s)}function xT(e){return/\[\d+\]/.test(decodeURIComponent(e.search))}function _T(e){if(!e||e==="?")return{};const t={};return e.replace(/^\?/,"").split("&").filter(Boolean).forEach(n=>{const[s,a]=wT(n);ST(t,G2(s),G2(a))}),t}function jT(e,t){const n=[];return z0(e,"",n,t),n.length?"?"+n.join("&"):""}function wT(e){const t=e.indexOf("=");return t===-1?[e,""]:[e.substring(0,t),e.substring(t+1)]}function G2(e){return decodeURIComponent(e.replace(/\+/g," "))}function ST(e,t,n){const s=NT(t);let a=e;for(;s.length>1;){const d=s.shift(),u=s[0]==="";(typeof a[d]!="object"||a[d]===null)&&(a[d]=u?[]:{}),a=a[d]}const l=s.shift();l===""&&Array.isArray(a)?a.push(n):a[l]=n}function NT(e){const t=[],n=e.split("[")[0];n&&t.push(n);let s;const a=/\[([^\]]*)\]/g;for(;(s=a.exec(e))!==null;)t.push(s[1]);return t}function z0(e,t,n,s){if(e!==void 0){if(e===null){n.push(`${t}=`);return}if(Array.isArray(e)){e.forEach((a,l)=>{const d=s==="indices"?`${t}[${l}]`:`${t}[]`;z0(a,d,n,s)});return}if(typeof e=="object"){Object.keys(e).forEach(a=>{z0(e[a],t?`${t}[${a}]`:a,n,s)});return}n.push(`${t}=${encodeURIComponent(String(e))}`)}}function Fs(e){return new URL(e.toString(),typeof window>"u"?void 0:window.location.toString())}var CT=(e,t,n,s,a)=>{let l=typeof e=="string"?Fs(e):e;if((I0(t)||s)&&!B0(t)&&(Ic.get("form.forceIndicesArrayFormatInFormData")&&(a="indices"),t=xN(t,new FormData,null,a)),B0(t))return[l,t];const[d,u]=Om(n,l,t,a);return[Fs(d),u]};function Om(e,t,n,s="brackets"){const a=e==="get"&&!B0(n)&&Object.keys(n).length>0,l=SN(t.toString()),d=l||t.toString().startsWith("/")||t.toString()==="",u=!d&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),f=/^[.]{1,2}([/]|$)/.test(t.toString()),h=t.toString().includes("?")||a,p=t.toString().includes("#"),g=new URL(t.toString(),typeof window>"u"?"http://localhost":window.location.toString());if(a){const y=xT(g)?"indices":s;g.search=jT({..._T(g.search),...n},y)}return[[l?`${g.protocol}//${g.host}`:"",d?g.pathname:"",u?g.pathname.substring(f?0:1):"",h?g.search:"",p?g.hash:""].join(""),a?{}:n]}function sm(e){return e=new URL(e.href),e.hash="",e}var W2=(e,t)=>{e.hash&&!t.hash&&sm(e).href===t.href&&(t.hash=e.hash)},im=(e,t)=>sm(e).href===sm(t).href,$T=(e,t)=>e.origin===t.origin&&e.pathname===t.pathname;function Js(e){return e!==null&&typeof e=="object"&&e!==void 0&&"url"in e&&"method"in e}function wN(e){return e.component?typeof e.component!="string"?(console.error(`The "component" property on the URL method pair received multiple components (${Object.keys(e.component).join(", ")}), but only a single component string is supported for instant visits. Use the withComponent() method to specify which component to use.`),null):e.component:null}function SN(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}function ET(e,t){const n=typeof e=="string"?Fs(e):e;return t?`${n.protocol}//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`}var TT=class{page;swapComponent;resolveComponent;onFlashCallback;componentId={};listeners=[];isFirstPageLoad=!0;cleared=!1;pendingDeferredProps=null;historyQuotaExceeded=!1;optimisticBaseline={};pendingOptimistics=[];optimisticCounter=0;init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:s}){return this.page={...e,flash:e.flash??{}},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=s,mi.on("historyQuotaExceeded",()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:s=!1,viewTransition:a=!1}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},e.initialDeferredProps===void 0&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};const l=this.componentId;return e.clearHistory&&lt.clear(),this.resolve(e.component,e).then(d=>{if(l!==this.componentId)return;e.rememberedState??={};const u=typeof window>"u",f=u?new URL(e.url):window.location,h=!u&&n?es.getScrollRegions():[];t=t||im(Fs(e.url),f);const p={...e,flash:{}};return new Promise(g=>t?lt.replaceState(p,g):lt.pushState(p,g)).then(()=>{const g=!this.isTheSame(e);
9if(!g&&Object.keys(e.props.errors||{}).length>0&&(a=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&ui.updateCachedOncePropsFromCurrentPage(),g&&this.fireEventsFor("newComponent"),this.isFirstPageLoad&&this.fireEventsFor("firstLoad"),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:d,page:e,preserveState:s,viewTransition:a}).then(()=>{n?window.requestAnimationFrame(()=>es.restoreScrollRegions(h)):es.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&mi.fireInternalEvent("loadDeferredProps",this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||tm(e)})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component,e).then(n=>(this.page=e,this.cleared=!1,lt.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setPropsQuietly(e){return this.page={...this.page,props:e},this.resolve(this.page.component,this.page).then(t=>this.swap({component:t,page:this.page,preserveState:!0,viewTransition:!1}))}setFlash(e){this.page={...this.page,flash:e},this.onFlashCallback?.(e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:s}){const a=()=>this.swapComponent({component:e,page:t,preserveState:n});if(!s||!document?.startViewTransition||document.visibilityState==="hidden")return a();const l=typeof s=="boolean"?()=>null:s;return new Promise(d=>{const u=document.startViewTransition(()=>a().then(d));l(u)})}resolve(e,t){return Promise.resolve(this.resolveComponent(e,t))}nextOptimisticId(){return++this.optimisticCounter}setBaseline(e,t){e in this.optimisticBaseline||(this.optimisticBaseline[e]=t)}updateBaseline(e,t){e in this.optimisticBaseline&&(this.optimisticBaseline[e]=t)}hasBaseline(e){return e in this.optimisticBaseline}registerOptimistic(e,t){this.pendingOptimistics.push({id:e,callback:t})}unregisterOptimistic(e){this.pendingOptimistics=this.pendingOptimistics.filter(t=>t.id!==e)}replayOptimistics(){const e=Object.keys(this.optimisticBaseline);if(e.length===0)return{};const t=At(this.page.props);for(const s of e)t[s]=At(this.optimisticBaseline[s]);for(const{callback:s}of this.pendingOptimistics){const a=s(At(t));a&&Object.assign(t,a)}const n={};for(const s of e)n[s]=t[s];return n}pendingOptimisticCount(){return this.pendingOptimistics.length}clearOptimisticState(){this.optimisticBaseline={},this.pendingOptimistics=[]}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(t=>t.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,s])=>{const a=this.page.onceProps?.[n];a!==void 0&&(t||zt(e.props,s.prop)===void 0)&&(ts(e.props,s.prop,zt(this.page.props,a.prop)),e.onceProps[n].expiresAt=a.expiresAt)})}},_e=new TT,Rm=class{items=[];processingPromise=null;add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??=this.processNext().finally(()=>{this.processingPromise=null}),this.processingPromise}processNext(){const e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},Ao=typeof window>"u",ic=new Rm,Y2=!Ao&&/CriOS/.test(window.navigator.userAgent),AT=class{rememberedState="rememberedState";scrollRegions="scrollRegions";preserveUrl=!1;current={};initialState=null;remember(e,t){this.replaceState({..._e.getWithoutFlashData(),rememberedState:{..._e.get()?.rememberedState??{},[t]:e}})}restore(e){if(!Ao)return this.current[this.rememberedState]?.[e]!==void 0?this.current[this.rememberedState]?.[e]:this.initialState?.[this.rememberedState]?.[e]}pushState(e,t=null){if(!Ao){if(this.preserveUrl){t&&t();return}this.current=e,ic.add(()=>this.getPageData(e).then(n=>{const s=()=>this.doPushState({page:n},e.url).then(()=>t?.());return Y2?new Promise(a=>{setTimeout(()=>s().then(a))}):s()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:At(e.props)}}}getPageData(e){const t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?oT(t).then(n):n(t))}processQueue(){return ic.process()}decrypt(e=null){if(Ao)return Promise.resolve(e??_e.get());const t=e??window.history.state?.page;return this.decryptPageData(t).then(n=>{if(!n)throw new Error("Unable to decrypt history");return this.initialState===null?this.initialState=n??void 0:this.current=n??{},n})}decryptPageData(e){return e instanceof ArrayBuffer?lT(e):Promise.resolve(e)}saveScrollPositions(e){ic.add(()=>Promise.resolve().then(()=>
9{if(window.history.state?.page&&!pi(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){ic.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!pi(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(pi(this.current,e)){t&&t();return}const{flash:n,...s}=e;if(_e.merge(s),!Ao){if(this.preserveUrl){t&&t();return}this.current=e,ic.add(()=>this.getPageData(e).then(a=>{const l=()=>this.doReplaceState({page:a},e.url).then(()=>t?.());return Y2?new Promise(d=>{setTimeout(()=>l().then(d))}):l()}))}}isHistoryThrottleError(e){return e instanceof Error&&e.name==="SecurityError"&&(e.message.includes("history.pushState")||e.message.includes("history.replaceState"))}isQuotaExceededError(e){return e instanceof Error&&e.name==="QuotaExceededError"}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(t){if(!this.isHistoryThrottleError(t))throw t;console.error(t.message)}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},"",t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,"",t)}catch(n){if(!this.isQuotaExceededError(n))throw n;mi.fireInternalEvent("historyQuotaExceeded",t)}})}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}browserHasHistoryEntry(){return!Ao&&!!window.history.state?.page}clear(){Jn.remove(Wo.key),Jn.remove(Wo.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<"u"&&window.history.scrollRestoration&&(window.history.scrollRestoration="manual");var lt=new AT,kT=class{internalListeners=[];init(){typeof window<"u"&&(window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),window.addEventListener("pageshow",this.handlePageshowEvent.bind(this)),window.addEventListener("scroll",Bc(es.onWindowScroll.bind(es),100),!0)),typeof document<"u"&&document.addEventListener("scroll",Bc(es.onScroll.bind(es),100),!0)}onGlobalEvent(e,t){const n=(s=>{const a=t(s);s.cancelable&&!s.defaultPrevented&&a===!1&&s.preventDefault()});return this.registerListener(`inertia:${e}`,n)}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(n=>n.listener!==t)}}onMissingHistoryItem(){_e.clear(),this.fireInternalEvent("missingHistoryItem")}fireInternalEvent(e,...t){this.internalListeners.filter(n=>n.event===e).forEach(n=>n.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&lt.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){const t=e.state||null;if(t===null){const n=Fs(_e.get().url);n.hash=window.location.hash,lt.replaceState({..._e.getWithoutFlashData(),url:n.href}),es.reset();return}if(!lt.isValidState(t))return this.onMissingHistoryItem();lt.decrypt(t.page).then(n=>{if(_e.get().version!==n.version){this.onMissingHistoryItem();return}Se.cancelAll({prefetch:!1}),_e.setQuietly(n,{preserveState:!1}).then(()=>{es.restore(lt.getScrollRegions()),tm(_e.get());const s={},a=_e.get().props;for(const[l,d]of Object.entries(n.initialDeferredProps??n.deferredProps??{})){const u=d.filter(f=>zt(a,f)===void 0);u.length>0&&(s[l]=u)}Object.keys(s).length>0&&this.fireInternalEvent("loadDeferredProps",s)})}).catch(()=>{this.onMissingHistoryItem()})}},mi=new kT,MT=class{type;constructor(){this.type=this.resolveType()}resolveType(){return typeof window>
9"u"?"navigate":window.performance?.getEntriesByType("navigation")[0]?.type??"navigate"}get(){return this.type}isBackForward(){return this.type==="back_forward"}isReload(){return this.type==="reload"}},Sg=new MT,OT=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(t=>t.bind(this)())}static clearRememberedStateOnReload(){Sg.isReload()&&(lt.deleteState(lt.rememberedState),lt.clearInitialState(lt.rememberedState))}static handleBackForward(){if(!Sg.isBackForward()||!lt.browserHasHistoryEntry())return!1;const e=lt.getScrollRegions();return lt.decrypt().then(t=>{_e.set(t,{preserveScroll:!0,preserveState:!0}).then(()=>{es.restore(e),tm(_e.get())})}).catch(()=>{mi.onMissingHistoryItem()}),!0}static handleLocation(){if(!Jn.exists(Jn.locationVisitKey))return!1;const e=Jn.get(Jn.locationVisitKey)||{};return Jn.remove(Jn.locationVisitKey),typeof window<"u"&&_e.setUrlHash(window.location.hash),lt.decrypt(_e.get()).then(()=>{const t=lt.getState(lt.rememberedState,{}),n=lt.getScrollRegions();_e.remember(t),_e.set(_e.get(),{preserveScroll:e.preserveScroll,preserveState:!0}).then(()=>{e.preserveScroll&&es.restore(n),this.fireInitialEvents()})}).catch(()=>{mi.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<"u"&&_e.setUrlHash(window.location.hash),_e.set(_e.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{Sg.isReload()?es.restore(lt.getScrollRegions()):es.scrollToAnchor(),this.fireInitialEvents()})}static fireInitialEvents(){const e=_e.get();tm(e),Object.keys(e.flash).length>0&&queueMicrotask(()=>nm(e.flash))}},RT=class{id=null;throttle=!1;keepAlive=!1;cb;interval;cbCount=0;constructor(e,t,n){this.keepAlive=n.keepAlive??!1,this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>"u"||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10===0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(e){this.throttle=this.keepAlive?!1:e,this.throttle&&(this.cbCount=0)}},PT=class{polls=[];constructor(){this.setupVisibilityListener()}add(e,t,n){const s=new RT(e,t,n);return this.polls.push(s),{stop:()=>s.stop(),start:()=>s.start()}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document>"u"||document.addEventListener("visibilitychange",()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},DT=new PT,LT=class{requestHandlers=[];responseHandlers=[];errorHandlers=[];onRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}onError(e){return this.errorHandlers.push(e),()=>{this.errorHandlers=this.errorHandlers.filter(t=>t!==e)}}async processRequest(e){let t=e;for(const n of this.requestHandlers)t=await n(t);return t}async processResponse(e){let t=e;for(const n of this.responseHandlers)t=await n(t);return t}async processError(e){for(const t of this.errorHandlers)await t(e)}},Fn=new LT,iy=class extends Error{code;url;constructor(e,t,n){super(n?`${e} (${n})`:e),this.name="HttpError",this.code=t,this.url=n}},V0=class extends iy{response;constructor(e,t,n){super(e,"ERR_HTTP_RESPONSE",n),this.name="HttpResponseError",this.response=t}},U0=class extends iy{constructor(e="Request was cancelled",t){super(e,"ERR_CANCELLED",t),this.name="HttpCancelledError"}},K2=class extends iy{cause;constructor(e,t,n){super(e,"ERR_NETWORK",t),this.name="HttpNetworkError",this.cause=n}};function FT(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null}function IT(e){const t={};return e.getAllResponseHeaders().split(`\r
10`).forEach(n=>{const s=n.indexOf(":");s>0&&(t[n.slice(0,s).toLowerCase().trim()]=n.slice(s+1).trim())}),t}function BT(e,t){if(!t.headers)return;const n=t.data instanceof FormData;Object.entries(t.headers).forEach(([s,a])=>{(s.toLowerCase()!=="content-type"||!n)&&e.setRequestHeader(s,String(a))})}function zT(e,t){if(!t||Object.keys(t).length===0)return e;const[n]=Om("get",e,t);return n}var NN=class{xsrfCookieName;xsrfHeaderName;constructor(e={}){this.xsrfCookieName=e.xsrfCookieName??"XSRF-TOKEN",this.xsrfHeaderName=e.xsrfHeaderName??"X-XSRF-TOKEN"}async request(e){const t=await Fn.processRequest(e);try{const n=await this.doRequest(t);return await Fn.processResponse(n)}catch(n){throw(n instanceof V0||n instanceof K2||n instanceof U0)&&await Fn.processError(n),n}}doRequest(e){return new Promise((t,n)=>{const s=new XMLHttpRequest,a=zT(e.url,e.params);s.open(e.method.toUpperCase(),a,!0);const l=FT(this.xsrfCookieName);l&&s.setRequestHeader(this.xsrfHeaderName,l);let d=null;e.data!==null&&e.data!==void 0&&(e.data instanceof FormData?d=e.data:typeof e.data=="object"?(d=JSON.stringify(e.data),!e.headers?.["Content-Type"]&&!e.headers?.["content-type"]&&s.setRequestHeader("Content-Type","application/json")):d=String(e.data)),BT(s,e),e.onUploadProgress&&(s.upload.onprogress=u=>{const f=u.lengthComputable?u.loaded/u.total:void 0;e.onUploadProgress({progress:f,percentage:f?Math.round(f*100):0,loaded:u.loaded,total:u.lengthComputable?u.total:void 0})}),e.signal&&e.signal.addEventListener("abort",()=>s.abort()),s.onabort=()=>n(new U0("Request was cancelled",e.url)),s.onerror=()=>n(new K2("Network error",e.url)),s.onload=()=>{const u={status:s.status,data:s.responseText,headers:IT(s)};s.status>=400?n(new V0(`Request failed with status ${s.status}`,u,e.url)):t(u)},s.send(d)})}},VT=new NN,Ng=VT;function UT(e){return!("request"in e)}var CN={getClient(){return Ng},setClient(e){if(!UT(e)){Ng=e;return}Ng=new NN(e),e.xsrfCookieName&&In.withXsrfCookieName(e.xsrfCookieName),e.xsrfHeaderName&&In.withXsrfHeaderName(e.xsrfHeaderName)},onRequest:Fn.onRequest.bind(Fn),onResponse:Fn.onResponse.bind(Fn),onError:Fn.onError.bind(Fn),processRequest:Fn.processRequest.bind(Fn),processResponse:Fn.processResponse.bind(Fn),processError:Fn.processError.bind(Fn)},Of=class Rf{callbacks=[];params;constructor(t){if(!t.prefetch)this.params=t;else{const n={onBefore:this.wrapCallback(t,"onBefore"),onBeforeUpdate:this.wrapCallback(t,"onBeforeUpdate"),onStart:this.wrapCallback(t,"onStart"),onProgress:this.wrapCallback(t,"onProgress"),onFinish:this.wrapCallback(t,"onFinish"),onCancel:this.wrapCallback(t,"onCancel"),onSuccess:this.wrapCallback(t,"onSuccess"),onError:this.wrapCallback(t,"onError"),onHttpException:this.wrapCallback(t,"onHttpException"),onNetworkError:this.wrapCallback(t,"onNetworkError"),onFlash:this.wrapCallback(t,"onFlash"),onCancelToken:this.wrapCallback(t,"onCancelToken"),onPrefetched:this.wrapCallback(t,"onPrefetched"),onPrefetching:this.wrapCallback(t,"onPrefetching")};this.params={...t,...n,onPrefetchResponse:t.onPrefetchResponse||(()=>{}),onPrefetchError:t.onPrefetchError||(()=>{})}}}static create(t){return new Rf(t)}data(){return this.params.method==="get"?null:this.params.data}queryParams(){return this.params.method==="get"?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}onCancelToken(t){this.params.onCancelToken({cancel:t})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:t=!0,interrupted:n=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=t,this.params.interrupted=n}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(t){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(t)}onPrefetchError(t){this.params.onPrefetchError&&this.params.onPrefetchError(t)}all(){return this.params}headers(){const t={...this.params.headers};this.isPartial()&&(t["X-Inertia-Partial-Component"]=_e.get().component);const n=this.params.only.concat(this.params.reset);return n.length>0&&(t["X-Inertia-Partial-Data"]=n.join(",")),this.params.except.length>0&&(t["X-Inertia-Partial-Except"]=this.params.except.join(",")),this.params.reset.length>0&&(t["X-Inertia-Reset"]=this.params.reset.join(",")),this.params.errorBag&&this.params.errorBag.length>0&&(t["X-Inertia-Error-Bag"]=this.params.errorBag),t}setPreserveOptions(t){this.params.preserveScroll=Rf.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=Rf.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:t,args:n})=>{this.params[t](...n)})}merge(t){this.params={...this.params,...t}}wrapCallback(t,n){return(...s)=>{this.recordCallback(n,s),t[n](...s)}}recordCallback(t,n){this.callbacks.push({name:t,args:n})}static resolvePreserveOption(t,n){return typeof t=="function"?t(n):t==="errors"?Object.keys(n.props.errors||{}).length>0:t}},HT={createIframeAndPage(e){typeof e=="object"&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>${JSON.stringify(e)}`);const t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(s=>s.setAttribute("target","_top"));const n=document.createElement("iframe");return n.style.backgroundColor="white",n.style.borderRadius="5px",n.style.width="100%",n.style.height="100%",{iframe:n,page:t}},show(e){const{iframe:t,page:n}=this.createIframeAndPage(e);t.style.boxSizing="border-box",t.style.display="block";const s=document.createElement("dialog");s.id="inertia-error-dialog",Object.assign(s.style,{width:"calc(100vw - 100px)",height:"calc(100vh - 100px)",padding:"0",margin:"auto",border:"none",backgroundColor:"transparent"});const a=document.createElement("style");if(a.textContent=`
11      dialog#inertia-error-dialog::backdrop {
12        background-color: rgba(0, 0, 0, 0.6);
13      }
14
15      dialog#inertia-error-dialog:focus {
16        outline: none;
17      }
18    `,document.head.appendChild(a),s.addEventListener("click",l=>{l.target===s&&s.close()}),s.addEventListener("close",()=>{a.remove(),s.remove()}),s.appendChild(t),document.body.prepend(s),s.showModal(),s.focus(),!t.contentWindow)throw new Error("iframe not yet ready.");t.contentWindow.document.open(),t.contentWindow.document.write(n.outerHTML),t.contentWindow.document.close()}}
18,qT=new Rm,X2=class $N{constructor(t,n,s){this.requestParams=t,this.response=n,this.originatingPage=s}wasPrefetched=!1;processed=!1;static create(t,n,s){return new $N(t,n,s)}isProcessed(){return this.processed}async handlePrefetch(){im(this.requestParams.all().url,window.location)&&this.handle()}async handle(){return qT.add(()=>this.process())}async process(){if(this.requestParams.all().prefetch)return this.wasPrefetched=!0,this.requestParams.all().prefetch=!1,this.requestParams.all().onPrefetched(this.response,this.requestParams.all()),rT(this.response,this.requestParams.all()),Promise.resolve();if(this.requestParams.runCallbacks(),this.processed=!0,!this.isInertiaResponse())return this.handleNonInertiaResponse();if(this.isHttpException()){const s={...this.response,data:this.getDataFromResponse(this.response.data)};if(this.requestParams.all().onHttpException(s)===!1||!H2(s))return}await lt.processQueue(),lt.preserveUrl=this.requestParams.all().preserveUrl,await this.setPage();const{flash:t}=_e.get();Object.keys(t).length>0&&!this.requestParams.isDeferredPropsRequest()&&(nm(t),this.requestParams.all().onFlash(t));const n=_e.get().props.errors||{};if(Object.keys(n).length>0){const s=this.getScopedErrors(n);return Q8(s),this.requestParams.all().onError(s)}Se.flushByCacheTags(this.requestParams.all().invalidateCacheTags||[]),this.wasPrefetched||Se.flush(_e.get().url),iT(_e.get()),await this.requestParams.all().onSuccess(_e.get()),lt.preserveUrl=!1}mergeParams(t){this.requestParams.merge(t)}getPageResponse(){const t=this.getDataFromResponse(this.response.data);return typeof t=="object"?this.response.data={...t,flash:t.flash??{}}:this.response.data=t}async handleNonInertiaResponse(){if(this.isInertiaRedirect()){Se.visit(this.getHeader("x-inertia-redirect"),{...this.requestParams.all(),method:"get",data:{}});return}if(this.isLocationVisit()){const n=Fs(this.getHeader("x-inertia-location"));return W2(this.requestParams.all().url,n),this.locationVisit(n)}const t={...this.response,data:this.getDataFromResponse(this.response.data)};if(this.requestParams.all().onHttpException(t)!==!1&&H2(t))return HT.show(t.data)}isInertiaResponse(){return this.hasHeader("x-inertia")}isHttpException(){return this.response.status>=400}hasStatus(t){return this.response.status===t}getHeader(t){return this.response.headers[t]}hasHeader(t){return this.getHeader(t)!==void 0}isInertiaRedirect(){return this.hasStatus(409)&&this.hasHeader("x-inertia-redirect")}isLocationVisit(){return this.hasStatus(409)&&this.hasHeader("x-inertia-location")}locationVisit(t){try{if(Jn.set(Jn.locationVisitKey,{preserveScroll:this.requestParams.all().preserveScroll===!0}),typeof window>"u")return;im(window.location,t)?window.location.reload():window.location.href=t.href}catch{return!1}}async setPage(){const t=this.getPageResponse();return this.shouldSetPage(t)?(this.mergeProps(t),_e.mergeOncePropsIntoResponse(t),this.preserveOptimisticProps(t),this.preserveEqualProps(t),await this.setRememberedState(t),this.requestParams.setPreserveOptions(t),t.url=lt.preserveUrl?_e.get().url:this.pageUrl(t),this.requestParams.all().onBeforeUpdate(t),tT(t),_e.set(t,{replace:this.requestParams.all().replace,preserveScroll:this.requestParams.all().preserveScroll,preserveState:this.requestParams.all().preserveState,viewTransition:this.requestParams.all().viewTransition})):Promise.resolve()}getDataFromResponse(t){if(typeof t!="string")return t;try{return JSON.parse(t)}catch{return t}}shouldSetPage(t){if(!this.requestParams.all().async||this.originatingPage.component!==t.component)return!0;if(this.originatingPage.component!==_e.get().component)return!1;const n=Fs(this.originatingPage.url),s=Fs(_e.get().url);return n.origin===s.origin&&n.pathname===s.pathname}pageUrl(t){const n=Fs(t.url);return t.preserveFragment?n.hash=this.requestParams.all().url.hash:W2(this.requestParams.all().url,n),n.pathname+n.search+n.hash}preserveOptimisticProps(t){if(Se.hasPendingOptimistic())for(const n of Object.keys(t.props))_e.hasBaseline(n)&&(_e.updateBaseline(n,t.props[n]),t.props[n]=_e.get().props[n])}preserveEqualProps(t){if(t.component!==_e.get().component)return;const n=_e.get().props;
18Object.entries(t.props).forEach(([s,a])=>{pi(a,n[s])&&(t.props[s]=n[s])})}mergeProps(t){if(!this.requestParams.isPartial()||t.component!==_e.get().component)return;const n=t.mergeProps||[],s=t.prependProps||[],a=t.deepMergeProps||[],l=t.matchPropsOn||[],d=(h,p)=>{const g=zt(_e.get().props,h),y=zt(t.props,h);if(Array.isArray(y)){const x=this.mergeOrMatchItems(g||[],y,h,l,p);ts(t.props,h,x)}else if(typeof y=="object"&&y!==null){const x={...g||{},...y};ts(t.props,h,x)}};n.forEach(h=>d(h,!0)),s.forEach(h=>d(h,!1)),a.forEach(h=>{const p=zt(_e.get().props,h),g=zt(t.props,h),y=(x,b,w)=>Array.isArray(b)?this.mergeOrMatchItems(x,b,w,l):typeof b=="object"&&b!==null?Object.keys(b).reduce((S,N)=>(S[N]=y(x?x[N]:void 0,b[N],`${w}.${N}`),S),{...x}):b;ts(t.props,h,y(p,g,h))});const u=new Set([...this.requestParams.all().only,...this.requestParams.all().except].filter(h=>h.includes(".")).map(h=>h.split(".")[0]));for(const h of u){const p=_e.get().props[h];this.isObject(p)&&this.isObject(t.props[h])&&(t.props[h]=this.deepMergeObjects(p,t.props[h]))}t.props={..._e.get().props,...t.props},this.shouldPreserveErrors(t)&&(t.props.errors=_e.get().props.errors),_e.get().scrollProps&&(t.scrollProps={..._e.get().scrollProps||{},...t.scrollProps||{}}),_e.hasOnceProps()&&(t.onceProps={..._e.get().onceProps||{},...t.onceProps||{}}),this.requestParams.isDeferredPropsRequest()&&(t.flash={..._e.get().flash});const f=_e.get().initialDeferredProps;f&&Object.keys(f).length>0&&(t.initialDeferredProps=f)}shouldPreserveErrors(t){if(!this.requestParams.all().preserveErrors)return!1;const n=_e.get().props.errors;if(!n||Object.keys(n).length===0)return!1;const s=t.props.errors;return!(s&&Object.keys(s).length>0)}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}deepMergeObjects(t,n){const s={...t};for(const a of Object.keys(n)){const l=t[a],d=n[a];this.isObject(l)&&this.isObject(d)?s[a]=this.deepMergeObjects(l,d):s[a]=d}return s}mergeOrMatchItems(t,n,s,a,l=!0){const d=Array.isArray(t)?t:[],u=a.find(p=>p.split(".").slice(0,-1).join(".")===s);if(!u)return l?[...d,...n]:[...n,...d];const f=u.split(".").pop()||"",h=new Map;return n.forEach(p=>{this.hasUniqueProperty(p,f)&&h.set(p[f],p)}),l?this.appendWithMatching(d,n,h,f):this.prependWithMatching(d,n,h,f)}appendWithMatching(t,n,s,a){const l=t.map(u=>this.hasUniqueProperty(u,a)&&s.has(u[a])?s.get(u[a]):u),d=n.filter(u=>this.hasUniqueProperty(u,a)?!t.some(f=>this.hasUniqueProperty(f,a)&&f[a]===u[a]):!0);return[...l,...d]}prependWithMatching(t,n,s,a){const l=t.filter(d=>this.hasUniqueProperty(d,a)?!s.has(d[a]):!0);return[...n,...l]}hasUniqueProperty(t,n){return t&&typeof t=="object"&&n in t}async setRememberedState(t){const n=await lt.getState(lt.rememberedState,{});this.requestParams.all().preserveState&&n&&t.component===_e.get().component&&(t.rememberedState=n)}getScopedErrors(t){return this.requestParams.all().errorBag?t[this.requestParams.all().errorBag||""]||{}:t}},Z2=class EN{constructor(t,n,{optimistic:s=!1}={}){this.page=n,this.requestParams=Of.create(t),this.cancelToken=new AbortController,this.optimistic=s}response;cancelToken;requestParams;requestHasFinished=!1;optimistic;static create(t,n,s){return new EN(t,n,s)}isPrefetch(){return this.requestParams.isPrefetch()}isOptimistic(){return this.optimistic}isPendingOptimistic(){return this.isOptimistic()&&(!this.response||!this.response.isProcessed())}async send(){this.requestParams.onCancelToken(()=>this.cancel({cancelled:!0})),sT(this.requestParams.all()),this.requestParams.onStart(),this.requestParams.all().prefetch&&(this.requestParams.onPrefetching(),aT(this.requestParams.all()));const t=this.requestParams.all().prefetch;return CN.getClient().request({method:this.requestParams.all().method,url:sm(this.requestParams.all().url).href,data:this.requestParams.data(),signal:this.cancelToken.signal,headers:this.getHeaders(),onUploadProgress:this.onProgress.bind(this)}).then(n=>(this.response=X2.create(this.requestParams,n,this.page),this.response.handle())).catch(n=>n instanceof V0?(this.response=X2.create(this.requestParams,n.response,this.page),this.response.handle()):Promise.reject(n)).catch(n=>
18{if(!(n instanceof U0)&&this.requestParams.all().onNetworkError(n)!==!1&&J8(n))return t&&this.requestParams.onPrefetchError(n),Promise.reject(n)}).finally(()=>{this.finish(),t&&this.response&&this.requestParams.onPrefetchResponse(this.response)})}finish(){this.requestParams.wasCancelledAtAll()||(this.requestParams.markAsFinished(),this.fireFinishEvents())}fireFinishEvents(){this.requestHasFinished||(this.requestHasFinished=!0,eT(this.requestParams.all()),this.requestParams.onFinish())}cancel({cancelled:t=!1,interrupted:n=!1}){this.requestHasFinished||(this.cancelToken.abort(),this.requestParams.markAsCancelled({cancelled:t,interrupted:n}),this.fireFinishEvents())}onProgress(t){this.requestParams.data()instanceof FormData&&(nT(t),this.requestParams.all().onProgress(t))}getHeaders(){const t={...this.requestParams.headers(),Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},n=_e.get();n.version&&(t["X-Inertia-Version"]=n.version);const s=Object.entries(n.onceProps||{}).filter(([,a])=>zt(n.props,a.prop)===void 0?!1:!a.expiresAt||a.expiresAt>Date.now()).map(([a])=>a);return s.length>0&&(t["X-Inertia-Except-Once-Props"]=s.join(",")),t}},Q2=class{requests=[];maxConcurrent;interruptible;constructor({maxConcurrent:e,interruptible:t}){this.maxConcurrent=e,this.interruptible=t}send(e){this.requests.push(e),e.send().finally(()=>{this.requests=this.requests.filter(t=>t!==e)})}interruptInFlight(){this.cancel({interrupted:!0},!1)}cancelInFlight({prefetch:e=!0,optimistic:t=!0}={}){this.requests.filter(n=>e||!n.isPrefetch()).filter(n=>t||!n.isOptimistic()).forEach(n=>n.cancel({cancelled:!0}))}cancel({cancelled:e=!1,interrupted:t=!1}={},n=!1){if(!n&&!this.shouldCancel())return;this.requests.shift()?.cancel({cancelled:e,interrupted:t})}shouldCancel(){return this.interruptible&&this.requests.length>=this.maxConcurrent}hasPendingOptimistic(){return this.requests.some(e=>e.isPendingOptimistic())}},Qn=()=>{},GT=class{syncRequestStream=new Q2({maxConcurrent:1,interruptible:!0});asyncRequestStream=new Q2({maxConcurrent:1/0,interruptible:!1});clientVisitQueue=new Rm;pendingOptimisticCallback=void 0;init({initialPage:e,resolveComponent:t,swapComponent:n,onFlash:s}){_e.init({initialPage:e,resolveComponent:t,swapComponent:n,onFlash:s}),OT.handle(),mi.init(),mi.on("missingHistoryItem",()=>{typeof window<"u"&&this.visit(window.location.href,{preserveState:!0,preserveScroll:!0,replace:!0})}),mi.on("loadDeferredProps",a=>{this.loadDeferredProps(a)}),mi.on("historyQuotaExceeded",a=>{window.location.href=a})}optimistic(e){return this.pendingOptimisticCallback=e,this}get(e,t={},n={}){return this.visit(e,{...n,method:"get",data:t})}post(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"post",data:t})}put(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"put",data:t})}patch(e,t={},n={}){return this.visit(e,{preserveState:!0,...n,method:"patch",data:t})}delete(e,t={}){return this.visit(e,{preserveState:!0,...t,method:"delete"})}reload(e={}){return this.doReload(e)}doReload(e={}){if(!(typeof window>"u"))return this.visit(window.location.href,{...e,preserveScroll:!0,preserveState:!0,async:!0,headers:{...e.headers||{},"Cache-Control":"no-cache"}})}remember(e,t="default"){lt.remember(e,t)}restore(e="default"){return lt.restore(e)}on(e,t){return typeof window>"u"?()=>{}:mi.onGlobalEvent(e,t)}hasPendingOptimistic(){return this.asyncRequestStream.hasPendingOptimistic()}cancelAll({async:e=!0,prefetch:t=!0,sync:n=!0}={}){e&&this.asyncRequestStream.cancelInFlight({prefetch:t}),n&&this.syncRequestStream.cancelInFlight()}poll(e,t={},n={}){return DT.add(e,()=>this.reload({preserveErrors:!0,...t}),{autoStart:n.autoStart??!0,keepAlive:n.keepAlive??!1})}visit(e,t={}){t.optimistic=t.optimistic??this.pendingOptimisticCallback,this.pendingOptimisticCallback=void 0,t.optimistic&&(t.async=t.async??!0);const n=this.getPendingVisit(e,{...t,showProgress:t.showProgress??(!t.async||!!t.optimistic)}),s=this.getVisitEvents(t);if(s.onBefore(n)===!1||!U2(n))return;const a=Fs(_e.get().url);(n.only.length>0||n.except.length>0||n.reset.length>0?$T(n.url,a):im(n.url,a))||this.asyncRequestStream.cancelInFlight({prefetch:!1,optimistic:!1}),n.async||this.syncRequestStream.interruptInFlight(),t.optimistic&&this.applyOptimisticUpdate(t.optimistic,s),!_e.isCleared()&&!n.preserveUrl&&es.save();const u={...n,...s},f=()=>{const h=ui.get(u);h?(Is.reveal(h.inFlight),ui.use(h,u)):(Is.reveal(!0),(n.async?this.asyncRequestStream:this.syncRequestStream).send(Z2.create(u,_e.get(),{optimistic:!!t.optimistic})))};Array.isArray(n.component)&&(console.error(`The "component" prop received an array of components (${n.component.join(", ")}), but only a single component string is supported for instant visits. Pass an explicit component name instead.`),n.c
18omponent=null),n.component?lt.processQueue().then(()=>{this.performInstantSwap(n).then(()=>{u.preserveState=!0,u.replace=!0,u.viewTransition=!1,f()})}):f()}getCached(e,t={}){return ui.findCached(this.getPrefetchParams(e,t))}flush(e,t={}){ui.remove(this.getPrefetchParams(e,t))}flushAll(){ui.removeAll()}flushByCacheTags(e){ui.removeByTags(Array.isArray(e)?e:[e])}getPrefetching(e,t={}){return ui.findInFlight(this.getPrefetchParams(e,t))}prefetch(e,t={},n={}){if((t.method??(Js(e)?e.method:"get"))!=="get")throw new Error("Prefetch requests must use the GET method");const a=this.getPendingVisit(e,{...t,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),l=a.url.origin+a.url.pathname+a.url.search,d=window.location.origin+window.location.pathname+window.location.search;if(l===d)return;const u=this.getVisitEvents(t);if(u.onBefore(a)===!1||!U2(a))return;Is.hide(),this.asyncRequestStream.interruptInFlight();const f={...a,...u};new Promise(p=>{const g=()=>{_e.get()?p():setTimeout(g,50)};g()}).then(()=>{ui.add(f,p=>{this.asyncRequestStream.send(Z2.create(p,_e.get()))},{cacheFor:Ic.get("prefetch.cacheFor"),cacheTags:[],...n})})}clearHistory(){lt.clear()}decryptHistory(){return lt.decrypt()}resolveComponent(e,t){return _e.resolve(e,t)}replace(e){this.clientVisit(e,{replace:!0})}replaceProp(e,t,n){this.replace({preserveScroll:!0,preserveState:!0,props(s){const a=typeof t=="function"?t(zt(s,e),s):t;return ts(At(s),e,a)},...n||{}})}appendToProp(e,t,n){this.replaceProp(e,(s,a)=>{const l=typeof t=="function"?t(s,a):t;return Array.isArray(s)||(s=s!==void 0?[s]:[]),[...s,l]},n)}prependToProp(e,t,n){this.replaceProp(e,(s,a)=>{const l=typeof t=="function"?t(s,a):t;return Array.isArray(s)||(s=s!==void 0?[s]:[]),[l,...s]},n)}push(e){this.clientVisit(e)}flash(e,t){const n=_e.get().flash;let s;if(typeof e=="function")s=e(n);else if(typeof e=="string")s={...n,[e]:t};else if(e&&Object.keys(e).length)s={...n,...e};else return;_e.setFlash(s),Object.keys(s).length&&nm(s)}clientVisit(e,{replace:t=!1}={}){this.clientVisitQueue.add(()=>this.performClientVisit(e,{replace:t}))}performClientVisit(e,{replace:t=!1}={}){const n=_e.get(),s=typeof e.props=="function"?Object.fromEntries(Object.values(n.onceProps??{}).map(w=>[w.prop,zt(n.props,w.prop)])):{},a=typeof e.props=="function"?e.props(n.props,s):e.props??n.props,l=typeof e.flash=="function"?e.flash(n.flash):e.flash,{viewTransition:d,onError:u,onFinish:f,onFlash:h,onSuccess:p,...g}=e,y={...n,...g,flash:l??{},props:a},x=Of.resolvePreserveOption(e.preserveScroll??!1,y),b=Of.resolvePreserveOption(e.preserveState??!1,y);return _e.set(y,{replace:t,preserveScroll:x,preserveState:b,viewTransition:d}).then(()=>{const w=_e.get().flash;Object.keys(w).length>0&&(nm(w),h?.(w));const S=_e.get().props.errors||{};if(Object.keys(S).length===0){p?.(_e.get());return}const N=e.errorBag?S[e.errorBag||""]||{}:S;u?.(N)}).finally(()=>f?.(e))}performInstantSwap(e){const t=_e.get(),n=Object.fromEntries((t.sharedProps??[]).filter(d=>d in t.props).map(d=>[d,t.props[d]])),s=typeof e.pageProps=="function"?e.pageProps(At(t.props),At(n)):e.pageProps,a=s!==null?{...s}:{...n},l={component:e.component,url:e.url.pathname+e.url.search+e.url.hash,version:t.version,props:{...a,errors:{}},flash:{},clearHistory:!1,encryptHistory:t.encryptHistory,sharedProps:t.sharedProps,rememberedState:{}};return _e.set(l,{replace:e.replace,preserveScroll:Of.resolvePreserveOption(e.preserveScroll,l),preserveState:!1,viewTransition:e.viewTransition})}getPrefetchParams(e,t){return{...this.getPendingVisit(e,{...t,async:!0,showProgress:!1,prefetch:!0,viewTransition:!1}),...this.getVisitEvents(t)}}getPendingVisit(e,t){if(Js(e)){const f=e;e=f.url,t.method=t.method??f.method}const n=Ic.get("visitOptions"),s=n?n(e.toString(),At(t))||{}:{},a={method:"get",data:{},replace:!1,preserveScroll:!1,preserveState:!1,only:[],except:[],headers:{},errorBag:"",forceFormData:!1,queryStringArrayFormat:"brackets",async:!1,showProgress:!0,fresh:!1,reset:[],preserveUrl:!1,preserveErrors:!1,prefetch:!1,invalidateCacheTags:[],viewTransition:!1,component:null,pageProps:null,...t,...s},[l,d]=CT(e,a.data,a.method,a.forceFormData,a.queryStringArrayFormat),u={cancelled:!1,completed:!1,interrupted:!1,...a,url:l,data:d};return u.prefetch&&(u.headers.Purpose="prefetch"),u}getVisitEvents(e){return{onCancelToken:e.onCancelToken||Qn,onBefore:e.onBefore||Qn,onBeforeUpdate:e.onBeforeUpdate||Qn,onStart:e.onStart||Qn,onProgress:e.onProgress||Qn,onFinish:e.onFinish||Qn,onCancel:e.onCancel||Qn,onSuccess:e.onSuccess||Qn,onError:e.onError||Qn,onHttpException:e.onHttpException||Qn,onNetworkError:e.onNetworkError||Qn,onFlash:e.onFlash||Qn,onPrefetched:e.onPrefetched||Qn,onPrefetching:e.onPrefetching||Qn}}applyOptimisticUpdate(e,t){const n=_e.get().props,s=e(At(n));if(!s)return;const a=[];for(const p of Object.keys(s))pi(n[p],s[p])||a.push(p);if(a.length===0)return;const l=_e.nextOptimisticId(),d=_e.get().component;for(const p of a)_e.setBaseline(p,At(n[p]));_e.registerOptimistic(l,e),_e.setPropsQuietly({...n,...s});let u=!0;const f=t.onSuccess;t.onSuccess=p=>(u=!1,f(p));const h=t.onFinish;t.onFinish=p=>{if(_e.unregisterOptimistic(l),u&&_e.get().component===d){const g=_e.replayOptimistics();Object.keys(g).length>0&&_e.setPropsQuietly({..._e.get().props,...g})}return _e.pendingOptimisticCount()===0&&_e.clearOptimisticState(),h(p)}}loadDeferredProps(e){e&&Object.values(e).forEach(t=>{this.doReload({only:t,deferredProps:!0,preserveErrors:!0})})}},rm=class{static createWayfinderCallback(...e){return()=>e.length===1?Js(e[0])?e[0]:e[0]():{method:typeof e[0]=="function"?e[0]():e[0],url:typeof e[1]=="function"?e[1]():e[1]}}static parseUseFormArguments(...e){return e.length===0?{rememberKey:null,data:{}
18,precognitionEndpoint:null}:e.length===1?{rememberKey:null,data:e[0],precognitionEndpoint:null}:e.length===2?typeof e[0]=="string"?{rememberKey:e[0],data:e[1],precognitionEndpoint:null}:{rememberKey:null,data:e[1],precognitionEndpoint:this.createWayfinderCallback(e[0])}:{rememberKey:null,data:e[2],precognitionEndpoint:this.createWayfinderCallback(e[0],e[1])}}static parseSubmitArguments(e,t){return e.length===3||e.length===2&&typeof e[0]=="string"?{method:e[0],url:e[1],options:e[2]??{}}:Js(e[0])?{...e[0],options:e[1]??{}}:{...t(),options:e[0]??{}}}static mergeHeadersForValidation(e,t,n){const s=a=>(a.headers={...n??{},...a.headers??{}},a);return e&&typeof e=="object"&&!("target"in e)?e=s(e):t&&typeof t=="object"?t=s(t):typeof e=="string"?t=s(t??{}):e=s(e??{}),[e,t]}};function WT(e){if(!e.includes("."))return e;const t=n=>n.startsWith("[")&&n.endsWith("]")?n:n.split(".").reduce((s,a,l)=>l===0?a:`${s}[${a}]`);return e.replace(/\\\./g,"__ESCAPED_DOT__").split(/(\[[^\]]*\])/).filter(Boolean).map(t).join("").replace(/__ESCAPED_DOT__/g,".")}function YT(e){const t=[],n=/([^\[\]]+)|\[(\d*)\]/g;let s;for(;(s=n.exec(e))!==null;)s[1]!==void 0?t.push(s[1]):s[2]!==void 0&&t.push(s[2]===""?"":Number(s[2]));return t}function KT(e,t,n){let s=e;for(let a=0;a<t.length-1;a++)t[a]in s||(s[t[a]]={}),s=s[t[a]];s[t[t.length-1]]=n}function XT(e){const t=Object.keys(e),n=t.filter(s=>/^\d+$/.test(s)).map(Number).sort((s,a)=>s-a);return t.length===n.length&&n.length>0&&n[0]===0&&n.every((s,a)=>s===a)}function Pf(e){if(Array.isArray(e))return e.map(Pf);if(typeof e!="object"||e===null||sy(e))return e;if(XT(e)){const n=[];for(let s=0;s<Object.keys(e).length;s++)n[s]=Pf(e[s]);return n}const t={};for(const n in e)t[n]=Pf(e[n]);return t}function J2(e){const t={};for(const[n,s]of e.entries()){if(s instanceof File&&s.size===0&&s.name==="")continue;const a=YT(WT(n));if(a[a.length-1]===""){const l=a.slice(0,-1),d=zt(t,l);if(Array.isArray(d))d.push(s);else if(d&&typeof d=="object"&&!sy(d)){const u=Object.keys(d).filter(f=>/^\d+$/.test(f)).map(Number).sort((f,h)=>f-h);ts(t,l,u.length>0?[...u.map(f=>d[f]),s]:[s])}else ts(t,l,[s]);continue}KT(t,a.map(String),s)}return Pf(t)}var ZT={buildDOMElement(e){const t=document.createElement("template");t.innerHTML=e;const n=t.content.firstChild;if(!e.startsWith("<script "))return n;const s=document.createElement("script");return s.innerHTML=n.innerHTML,n.getAttributeNames().forEach(a=>{s.setAttribute(a,n.getAttribute(a)||"")}),s},isInertiaManagedElement(e){return e.nodeType===Node.ELEMENT_NODE&&e.getAttribute("data-inertia")!==null},findMatchingElementIndex(e,t){const n=e.getAttribute("data-inertia");return n!==null?t.findIndex(s=>s.getAttribute("data-inertia")===n):-1},update:Bc(function(e){const t=e.map(s=>this.buildDOMElement(s)),n=Array.from(document.head.childNodes).filter(s=>this.isInertiaManagedElement(s));t.some(s=>s instanceof HTMLTitleElement)&&document.head.querySelectorAll("title:not([data-inertia])").forEach(s=>s.remove()),n.forEach(s=>{const a=this.findMatchingElementIndex(s,t);if(a===-1){s.remove();return}const l=t.splice(a,1)[0];l&&!s.isEqualNode(l)&&s.replaceWith(l)}),t.forEach(s=>{document.head.appendChild(s)})},1)};function QT(e,t,n){const s={};let a=0;function l(){const g=a+=1;return s[g]=[],g.toString()}function d(g){g===null||Object.keys(s).indexOf(g)===-1||(delete s[g],p())}function u(g){Object.keys(s).indexOf(g)===-1&&(s[g]=[])}function f(g,y=[]){g!==null&&Object.keys(s).indexOf(g)>-1&&(s[g]=y),p()}function h(){const g=t(""),y={...g?{title:`<title data-inertia="">${g}</title>`}:{}},x=Object.values(s).reduce((b,w)=>b.concat(w),[]).reduce((b,w)=>{if(w.indexOf("<")===-1)return b;if(w.indexOf("<title ")===0){const N=w.match(/(<title [^>]+>)(.*?)(<\/title>)/);return b.title=N?`${N[1]}${t(N[2])}${N[3]}`:w,b}const S=w.match(/ data-inertia="[^"]+"/);return S?b[S[0]]=w:b[Object.keys(b).length]=w,b},y);return Object.values(x)}function p(){e?n(h()):ZT.update(h())}return p(),{forceUpdate:p,createProvider:function(){const g=l();return{reconnect:()=>u(g),update:y=>f(g,y),disconnect:()=>d(g)}}}}var JT="X-Inertia-Infinite-Scroll-Merge-Intent",e7=e=>{const t=()=>{const N=_e.get().scrollProps?.[e.getPropName()];if(N)return N;throw new Error(`The page object does not contain a scroll prop named "${e.getPropName()}".`)},n={component:null,loading:!1,previousPage:null,nextPage:null,lastLoadedPage:null,requestCount:0},s=()=>{const N=t();n.component=_e.get().component,n.loading=!1,n.previousPage=N.previousPage,n.nextPage=N.nextPage,n.lastLoadedPage=N.currentPage,n.requestCount=0},a=()=>`inertia:infinite-scroll-data:${e.getPropName()}`;if(typeof window<"u"){s();const N=Se.restore(a());N&&typeof N=="object"&&N.lastLoadedPage===t().currentPage&&(n.previousPage=N.previousPage,n.nextPage=N.nextPage,n.lastLoadedPage=N.lastLoadedPage,n.requestCount=N.requestCount||0)}const l=Se.on("success",N=>{n.component===N.detail.page.component&&t().reset&&(s(),e.onReset?.())}),d=N=>N==="next"?"nextPage":"previousPage",u=N=>{const C=d(N);return n[C]},f=N=>{const C=t(),E=d(N);n.lastLoadedPage=C.currentPage,n[E]=C[E],n.requestCount+=1,Se.remember({previousPage:n.previousPage,nextPage:n.nextPage,lastLoadedPage:n.lastLoadedPage,requestCount:n.requestCount},a())},h=()=>t().pageName,p=()=>n.requestCount,g=(N,C={})=>{const E=u(N);n.loading||E===null||(n.loading=!0,Se.reload({preserveErrors:!0,...C,data:{...C.data||{},[h()]:E},only:[...C.only||[],e.getPropName()],preserveUrl:!0,headers:{[JT]:N==="previous"?"prepend":"append",...C.headers},onBefore:M=>{N==="next"?e.onBeforeNextRequest():e.onBeforePreviousRequest(),C.onBefore?.(M)},onBeforeUpdate:M=>{e.onBeforeUpdate(),C.onBeforeUpdate?.(M)},onSuccess:M=>{f(N),C.onSuccess?.(M)},onFinish:M=>{n.loading=!1,N==="next"?e.onCompleteNextRequest(n.lastLoadedPage):e.onCompletePreviousRequest(n.lastLoadedPage),C.onFinish?.(M)}}))};return{getLastLoadedPage:()=>n.lastLoadedPage,getPageName:h,getRequestCount:p,hasPrevious:()=>!!n.previousPage,hasNext:()=>!!n.nextPage,fetchNext:N=>g("next",N),fetchPrevious:N=>g("previous",N),removeEventListener:l}},t7=()=>{const e=[];return{new:(s,a={})=>{const l=new IntersectionObserver(d=>{for(const u of d)u.isIntersecting&&s(u)},a);return e.push(l),l},flushAll:()=>{e.forEach(s=>s.disconnect()),e.length=0}}},Df="infiniteScrollPage",Cg="infiniteScrollIgnore",TN=e=>e.dataset[Df],n7=e=>{const t=t7();let n,s,a,l,d=!1;const u=()=>{l=new MutationObserver(O=>{O.forEach(k=>
18{k.addedNodes.forEach(B=>{B.nodeType===Node.ELEMENT_NODE&&y.add(B)})}),M()}),l.observe(e.getItemsElement(),{childList:!0}),n=t.new(O=>e.onItemIntersected(O.target));const R={root:e.getScrollableParent(),rootMargin:`${Math.max(1,e.getTriggerMargin())}px`};s=t.new(e.onPreviousTriggered,R),a=t.new(e.onNextTriggered,R)},f=()=>{d&&h();const R=e.getStartElement(),O=e.getEndElement();R&&e.shouldFetchPrevious()&&s.observe(R),O&&e.shouldFetchNext()&&a.observe(O),d=!0},h=()=>{d&&(s.disconnect(),a.disconnect(),d=!1)},p=()=>{d&&f()},g=()=>{h(),t.flushAll(),l?.disconnect()},y=new Set,x=R=>!(Df in R.dataset)&&!(Cg in R.dataset),b=()=>{Array.from(y).forEach(R=>{x(R)&&(R.dataset[Cg]="true"),n.observe(R)}),y.clear()},w=R=>Array.from(R.querySelectorAll(":scope > *:not([data-infinite-scroll-page]):not([data-infinite-scroll-ignore])"));let S=!1;const N=R=>{!S&&(S=!0,L())||(w(e.getItemsElement()).forEach(O=>{x(O)&&(O.dataset[Df]=R?.toString()||"1"),n.observe(O)}),E())},C=()=>`inertia:infinite-scroll-elements:${e.getPropName()}`,E=()=>{const R={},O=e.getItemsElement().childNodes;for(let k=0;k<O.length;k++){const B=O[k];if(B.nodeType!==Node.ELEMENT_NODE)continue;const I=TN(B);typeof I>"u"||(I in R?R[I].to=k:R[I]={from:k,to:k})}Se.remember(R,C())},M=Bc(E,250),L=()=>{const R=Se.restore(C());if(!R||typeof R!="object")return!1;const O=e.getItemsElement().childNodes;for(let k=0;k<O.length;k++){const B=O[k];if(B.nodeType!==Node.ELEMENT_NODE)continue;const I=B;let V;for(const[z,K]of Object.entries(R))if(k>=K.from&&k<=K.to){V=z;break}if(V)I.dataset[Df]=V;else if(x(I))I.dataset[Cg]="true";else continue;n.observe(I)}return!0};return{setupObservers:u,enableTriggers:f,disableTriggers:h,refreshTriggers:p,flushAll:g,processManuallyAddedElements:b,processServerLoadedElements:N}},s7=new Rm,No,Ar,Qu=null,i7=e=>{let t=!0;const n=a=>{s7.add(()=>new Promise(l=>{if(!t)return No=Ar=null,l();if(!No||!Ar){const f=_e.get().url;No=Fs(f),Ar=Fs(f),Qu=SN(f)}const d=e.getPageName(),u=Ar.searchParams;a==="1"?u.delete(d):u.set(d,a),setTimeout(()=>l())})).finally(()=>{t&&No&&Ar&&No.href!==Ar.href&&Qu!==null&&Se.replace({url:ET(Ar,Qu),preserveScroll:!0,preserveState:!0}),No=Ar=Qu=null})};return{onItemIntersected:Bc(a=>{const l=e.getItemsElement();if(!t||e.shouldPreserveUrl()||!a||!l)return;const d=new Map,u=[...l.children];
18bN(u,a).forEach(p=>{const g=TN(p)??"1";d.has(g)?d.set(g,d.get(g)+1):d.set(g,1)});const h=Array.from(d.entries()).sort((p,g)=>g[1]-p[1])[0]?.[0];h!==void 0&&n(h)},250),cancel:()=>t=!1}},r7=e=>({createCallbacks:()=>{let n,s=null,a=0;return{captureScrollPosition:()=>{const u=e.getScrollableParent(),f=e.getItemsElement();n=u?.scrollTop||window.scrollY;const h=bN([...f.children]);if(h.length>0){s=h[0];const p=u?.getBoundingClientRect()||{top:0},g=u?p.top:0;a=s.getBoundingClientRect().top-g}},restoreScrollPosition:()=>{if(!s)return;let u=0,f=!1;const h=()=>{if(u++,f||u>10)return!1;const p=e.getScrollableParent(),g=p?.getBoundingClientRect()||{top:0},y=p?g.top:0,w=s.getBoundingClientRect().top-y-a;if(w===0){window.requestAnimationFrame(h);return}p?p.scrollTo({top:n+w}):window.scrollTo(0,window.scrollY+w),f=!0};window.requestAnimationFrame(h)}}}});function a7(e){const t=i7({...e,getPageName:()=>a.getPageName()}),n=r7(e),s=n7({...e,onItemIntersected:t.onItemIntersected,onPreviousTriggered:()=>a.fetchPrevious(),onNextTriggered:()=>a.fetchNext()}),a=e7({...e,onBeforeUpdate:s.processManuallyAddedElements,onCompletePreviousRequest:h=>{e.onCompletePreviousRequest(),$c(()=>s.processServerLoadedElements(h),2)},onCompleteNextRequest:h=>{e.onCompleteNextRequest(),$c(()=>s.processServerLoadedElements(h),2)},onReset:e.onDataReset}),l=h=>{const{captureScrollPosition:p,restoreScrollPosition:g}=n.createCallbacks(),y=h.onBeforeUpdate||(()=>{}),x=h.onSuccess||(()=>{});return h.onBeforeUpdate=b=>{y(b),p()},h.onSuccess=b=>{x(b),g()},h},d=a.fetchNext;a.fetchNext=(h={})=>{h={...e.getReloadOptions?.(),...h},e.inReverseMode()&&(h=l(h)),d(h)};const u=a.fetchPrevious;a.fetchPrevious=(h={})=>{h={...e.getReloadOptions?.(),...h},e.inReverseMode()||(h=l(h)),u(h)};const f=Se.on("success",()=>$c(s.refreshTriggers,2));return{dataManager:a,elementManager:s,flush:()=>{f(),a.removeEventListener(),s.flushAll(),t.cancel()}}}function o7(){let e={},t={},n={shared:e,named:t};const s=new Set;let a=!1;const l=()=>{n={shared:e,named:t}},d=()=>{a||(a=!0,queueMicrotask(()=>{a=!1,s.forEach(u=>u())}))};return{set(u){const f={...e,...u};pi(e,f)||(e=f,l(),d())},setFor(u,f){const h=t[u]||{},p={...h,...f};pi(h,p)||(t={...t,[u]:p},l(),d())},reset(){e={},t={},l(),d()},subscribe(u){return s.add(u),()=>s.delete(u)},get:()=>n}}function md(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ry(e){return md(e)&&"component"in e}function ay(e,t){return"component"in e&&t(e.component)}function AN(e,t){return!md(e)||t(e)||ay(e,t)?!1:Object.values(e).every(n=>t(n)||Array.isArray(n)&&t(n[0])||ry(n)&&t(n.component))}function kN(e,t){return md(e)&&!t(e)&&!ay(e,t)&&!AN(e,t)}function l7(e,t){if(kN(e,t))return!0;if(!md(e)||t(e)||ay(e,t))return!1;const n=Object.values(e);return n.length>0&&n.every(s=>typeof s=="function")}function c7(e,t){return Array.isArray(e)&&e.length===2&&t(e[0])&&md(e[1])&&!t(e[1])}function e3(e,t){if(Array.isArray(e)&&t(e[0]))return{component:e[0],props:e[1]??{}};if(ry(e)&&t(e.component))return{component:e.component,props:e.props??{}};if(t(e))return{component:e,props:{}};throw new Error(`Invalid layout definition: received ${typeof e}`)}function d7(e,t,n){return!e||n&&n(e)?[]:AN(e,t)?Object.entries(e).map(([s,a])=>({...e3(a,t),name:s})):c7(e,t)?[{component:e[0],props:e[1]??{}}]:Array.isArray(e)?e.map(s=>e3(s,t)):ry(e)&&t(e.component)?[{component:e.component,props:e.props??{}}]:t(e)?[{component:e,props:{}}]:[]}function MN(e){return e.target instanceof HTMLElement&&e.target.isContentEditable||e.defaultPrevented}function Ju(e){const t=e.currentTarget.tagName.toLowerCase()==="a";return!(MN(e)||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey||t&&"button"in e&&e.button!==0)}function t3(e){const t=e.currentTarget.tagName.toLowerCase()==="button";return!MN(e)&&(e.key==="Enter"||t&&e.key===" ")}var tn="nprogress",Oa,sn,Bn={minimum:.08,easing:"linear",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",color:"#29d",includeCSS:!0,popover:null,template:['<div class="bar" role="bar">','<div class="peg"></div>',"</div>",'<div class="spinner" role="spinner">','<div class="spinner-icon"></div>',"</div>"].join("")},Ir=null,am=!1,u7=e=>{Object.assign(Bn,e),Oa=Bn.popover??"popover"in HTMLElement.prototype,Bn.includeCSS&&g7(Bn.color),sn=document.createElement("div"),sn.id=tn,sn.innerHTML=Bn.template,Oa&&(sn.popover="manual")},Pm=e=>{const t=ON();e=FN(e,Bn.minimum,1),Ir=e===1?null:e;const n=m7(!t),s=n.querySelector(Bn.barSelector),a=Bn.speed,l=Bn.easing;n.offsetWidth,p7(d=>{const u={transition:`all ${a}ms ${l}`,transform:`translate3d(${IN(e)}%,0,0)`};for(const f in u)s.style[f]=u[f];if(e!==1)return setTimeout(d,a);n.style.transition="none",n.style.opacity="1",n.offsetWidth,setTimeout(()=>{n.style.transition=`all ${a}ms linear`,n.style.opacity="0",setTimeout(()=>{LN(),n.style.transition="",n.style.opacity="",d()},a)},a)})},ON=()=>typeof Ir=="number",RN=()=>{Ir||Pm(0);const e=function(){setTimeout(function(){Ir&&(PN(),e())},Bn.trickleSpeed)};Bn.trickle&&e()},f7=e=>{!e&&!Ir||(PN(.3+.5*Math.random()),Pm(1))},PN=e=>{const t=Ir;if(t===null)return RN();if(!(t>1))return e=typeof e=="number"?e:(()=>{const n={.1:[0,.2],.04:[.2,.5],.02:[.5,.8],.005:[.8,.99]};for(const s in n)if(t>=n[s][0]&&t<n[s][1])return parseFloat(s);return 0})(),Pm(FN(t+e,0,.994))},m7=e=>{if(h7())return document.getElementById(tn);document.documentElement.classList.add(`${tn}-busy`);const t=sn.querySelector(Bn.barSelector),n=e?"-100":IN(Ir||0);if(t.style.transition="all 0 linear",t.style.transform=`translate3d(${n}%,0,0)`,Bn.showSpinner||sn.querySelector(Bn.spinnerSelector)?.remove(),Oa)document.body.appendChild(sn),am||sn.showPopover();else{const s=DN();s!==document.body&&s.classList.add(`${tn}-custom-parent`),s.appendChild(sn),am&&(sn.style.display="none")}return sn},DN=()=>document.querySelector(Bn.parent),LN=()=>
18{if(document.documentElement.classList.remove(`${tn}-busy`),Oa&&sn?.isConnected)try{sn.hidePopover()}catch{}Oa||DN().classList.remove(`${tn}-custom-parent`),sn?.remove()},h7=()=>document.getElementById(tn)!==null;function FN(e,t,n){return e<t?t:e>n?n:e}var IN=e=>(-1+e)*100,p7=(()=>{const e=[],t=()=>{const n=e.shift();n&&n(t)};return n=>{e.push(n),e.length===1&&t()}})(),g7=e=>{const t=document.createElement("style");t.textContent=`
19    #${tn} {
20      pointer-events: none;
21      background: none;
22      border: none;
23      margin: 0;
24      padding: 0;
25      overflow: visible;
26      inset: unset;
27      width: 100%;
28      height: 0;
29      position: fixed;
30      top: 0;
31      left: 0;
32    }
33
34    #${tn}::backdrop {
35      display: none;
36    }
37
38    #${tn} .bar {
39      background: ${e};
40
41      position: fixed;
42      z-index: 1031;
43      top: 0;
44      left: 0;
45
46      width: 100%;
47      height: 2px;
48    }
49
50    #${tn} .peg {
51      display: block;
52      position: absolute;
53      right: 0px;
54      width: 100px;
55      height: 100%;
56      box-shadow: 0 0 10px ${e}, 0 0 5px ${e};
57      opacity: 1.0;
58
59      transform: rotate(3deg) translate(0px, -4px);
60    }
61
62    #${tn} .spinner {
63      display: block;
64      position: fixed;
65      z-index: 1031;
66      top: 15px;
67      right: 15px;
68    }
69
70    #${tn} .spinner-icon {
71      width: 18px;
72      height: 18px;
73      box-sizing: border-box;
74
75      border: solid 2px transparent;
76      border-top-color: ${e};
77      border-left-color: ${e};
78      border-radius: 50%;
79
80      animation: ${tn}-spinner 400ms linear infinite;
81    }
82
83    .${tn}-custom-parent {
84      overflow: hidden;
85      position: relative;
86    }
87
88    .${tn}-custom-parent #${tn} .spinner,
89    .${tn}-custom-parent #${tn} .bar {
90      position: absolute;
91    }
92
93    @keyframes ${tn}-spinner {
94      0%   { transform: rotate(0deg); }
95      100% { transform: rotate(360deg); }
96    }
97  `,document.head.appendChild(t)},v7=()=>{if(am=!1,!!sn?.isConnected)if(Oa)try{sn.showPopover()}catch{}else sn.style.display=""},y7=()=>
97{if(am=!0,!!sn?.isConnected)if(Oa)try{sn.hidePopover()}catch{}else sn.style.display="none"},Xs={configure:u7,isStarted:ON,done:f7,set:Pm,remove:LN,start:RN,status:Ir,show:v7,hide:y7},b7=class{hideCount=0;start(){Xs.start()}reveal(e=!1){this.hideCount=Math.max(0,this.hideCount-1),(e||this.hideCount===0)&&Xs.show()}hide(){this.hideCount++,Xs.hide()}set(e){Xs.set(Math.max(0,Math.min(1,e)))}finish(){Xs.done()}reset(){Xs.set(0)}remove(){Xs.done(),Xs.remove()}isStarted(){return Xs.isStarted()}getStatus(){return Xs.status}},Is=new b7;function x7(e){document.addEventListener("inertia:start",t=>_7(t,e)),document.addEventListener("inertia:progress",j7)}function _7(e,t){e.detail.visit.showProgress||Is.hide();const n=setTimeout(()=>Is.start(),t);document.addEventListener("inertia:finish",s=>w7(s,n),{once:!0})}function j7(e){Is.isStarted()&&e.detail.progress?.percentage&&Is.set(Math.max(Is.getStatus(),e.detail.progress.percentage/100*.9))}function w7(e,t){clearTimeout(t),Is.isStarted()&&(e.detail.visit.completed?Is.finish():e.detail.visit.interrupted?Is.reset():e.detail.visit.cancelled&&Is.remove())}function S7({delay:e=250,color:t="#29d",includeCSS:n=!0,showSpinner:s=!1,popover:a=null}={}){x7(e),Xs.configure({showSpinner:s,includeCSS:n,color:t,popover:a})}var BN=Symbol("FormComponentReset");function H0(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement}function N7(e,t){const n=e.value,s=e.checked;switch(e.type.toLowerCase()){case"checkbox":e.checked=t.includes(e.value);break;case"radio":e.checked=t[0]===e.value;break;case"file":e.value="";break;case"button":case"submit":case"reset":case"image":break;default:e.value=t[0]!==null&&t[0]!==void 0?String(t[0]):""}return e.value!==n||e.checked!==s}function C7(e,t){const n=e.value,s=Array.from(e.selectedOptions).map(d=>d.value);if(e.multiple){const d=t.map(u=>String(u));Array.from(e.options).forEach(u=>{u.selected=d.includes(u.value)})}else e.value=t[0]!==void 0?String(t[0]):"";const a=Array.from(e.selectedOptions).map(d=>d.value);return e.multiple?JSON.stringify(s.sort())!==JSON.stringify(a.sort()):e.value!==n}function $g(e,t){if(e.disabled){if(e instanceof HTMLInputElement){const n=e.value,s=e.checked;switch(e.type.toLowerCase()){case"checkbox":case"radio":return e.checked=e.defaultChecked,e.checked!==s;case"file":return e.value="",n!=="";case"button":case"submit":case"reset":case"image":return!1;default:return e.value=e.defaultValue,e.value!==n}}else if(e instanceof HTMLSelectElement){const n=Array.from(e.selectedOptions).map(a=>a.value);Array.from(e.options).forEach(a=>{a.selected=a.defaultSelected});const s=Array.from(e.selectedOptions).map(a=>a.value);return JSON.stringify(n.sort())!==JSON.stringify(s.sort())}else if(e instanceof HTMLTextAreaElement){const n=e.value;return e.value=e.defaultValue,e.value!==n}return!1}if(e instanceof HTMLInputElement)return N7(e,t);if(e instanceof HTMLSelectElement)return C7(e,t);if(e instanceof HTMLTextAreaElement){const n=e.value;return e.value=t[0]!==void 0?String(t[0]):"",e.value!==n}return!1}function $7(e,t){let n=!1;return e instanceof RadioNodeList||e instanceof HTMLCollection?Array.from(e).forEach((s,a)=>
vendor: 10,671 bytes, lines 97-114
97{if(s instanceof Element&&H0(s))if(s instanceof HTMLInputElement&&["checkbox","radio"].includes(s.type.toLowerCase()))$g(s,t)&&(n=!0);else{const l=t[a]!==void 0?[t[a]]:[t[0]??null].filter(Boolean);$g(s,l)&&(n=!0)}}):H0(e)&&(n=$g(e,t)),n}function E7(e,t,n){if(!e)return;const s=!n||n.length===0;if(s){const l=new FormData(e),d=Array.from(e.elements).map(u=>H0(u)?u.name:"").filter(Boolean);n=[...new Set([...t.keys(),...l.keys(),...d])]}let a=!1;n.forEach(l=>{const d=e.elements.namedItem(l);d&&$7(d,t.getAll(l))&&(a=!0)}),a&&s&&e.dispatchEvent(new CustomEvent("reset",{bubbles:!0,cancelable:!0,detail:{[BN]:!0}}))}function n3(e,t,n){const s=JSON.stringify(t).replace(/\//g,"\\/");return`<script data-page="${e}" type="application/json">${s}<\/script><div data-server-rendered="true" id="${e}">${n}</div>`}var Se=new GT;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
98 * @license MIT */var Eg={exports:{}},qe={};/**
99 * @license React
100 * react.production.js
101 *
102 * Copyright (c) Meta Platforms, Inc. and affiliates.
103 *
104 * This source code is licensed under the MIT license found in the
105 * LICENSE file in the root directory of this source tree.
106 */var s3;function T7(){if(s3)return qe;s3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=y&&T[y]||T["@@iterator"],typeof T=="function"?T:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function N(T,A,Y){this.props=T,this.context=A,this.refs=S,this.updater=Y||b}N.prototype.isReactComponent={},N.prototype.setState=function(T,A){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,A,"setState")},N.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function C(){}C.prototype=N.prototype;function E(T,A,Y){this.props=T,this.context=A,this.refs=S,this.updater=Y||b}var M=E.prototype=new C;M.constructor=E,w(M,N.prototype),M.isPureReactComponent=!0;var L=Array.isArray;function R(){}var O={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function B(T,A,Y){var ee=Y.ref;return{$$typeof:e,type:T,key:A,ref:ee!==void 0?ee:null,props:Y}}function I(T,A){return B(T.type,A,T.props)}function V(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function z(T){var A={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Y){return A[Y]})}var K=/\/+/g;function W(T,A){return typeof T=="object"&&T!==null&&T.key!=null?z(""+T.key):A.toString(36)}function Q(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(R,R):(T.status="pending",T.then(function(A){T.status==="pending"&&(T.status="fulfilled",T.value=A)},function(A){T.status==="pending"&&(T.status="rejected",T.reason=A)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function D(T,A,Y,ee,te){var ae=typeof T;(ae==="undefined"||ae==="boolean")&&(T=null);var pe=!1;if(T===null)pe=!0;else switch(ae){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(T.$$typeof){case e:case t:pe=!0;break;case p:return pe=T._init,D(pe(T._payload),A,Y,ee,te)}}if(pe)return te=te(T),pe=ee===""?"."+W(T,0):ee,L(te)?(Y="",pe!=null&&(Y=pe.replace(K,"$&/")+"/"),D(te,A,Y,"",function(xe){return xe})):te!=null&&(V(te)&&(te=I(te,Y+(te.key==null||T&&T.key===te.key?"":(""+te.key).replace(K,"$&/")+"/")+pe)),A.push(te)),1;pe=0;var le=ee===""?".":ee+":";if(L(T))for(var ve=0;ve<T.length;ve++)ee=T[ve],ae=le+W(ee,ve),pe+=D(ee,A,Y,ae,te);else if(ve=x(T),typeof ve=="function")for(T=ve.call(T),ve=0;!(ee=T.next()).done;)ee=ee.value,ae=le+W(ee,ve++),pe+=D(ee,A,Y,ae,te);else if(ae==="object"){if(typeof T.then=="function")return D(Q(T),A,Y,ee,te);throw A=String(T),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return pe}function H(T,A,Y){if(T==null)return T;var ee=[],te=0;return D(T,ee,"","",function(ae){return A.call(Y,ae,te++)}),ee}function U(T){if(T._status===-1){var A=T._result;A=A(),A.then(function(Y){(T._status===0||T._status===-1)&&(T._status=1,T._result=Y)},function(Y){(T._status===0||T._status===-1)&&(T._status=2,T._result=Y)}),T._status===-1&&(T._status=0,T._result=A)}if(T._status===1)return T._result.default;throw T._result}var Z=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},F={map:H,forEach:function(T,A,Y){H(T,function(){A.apply(this,arguments)},Y)},count:function(T){var A=0;return H(T,function(){A++}),A},toArray:function(T){return H(T,function(A){return A})||[]},only:function(T){if(!V(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return qe.Activity=g,qe.Children=F,qe.Component=N,qe.Fragment=n,qe.Profiler=a,qe.PureComponent=E,qe.StrictMode=s,qe.Suspense=f,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,qe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return O.H.useMemoCache(T)}},qe.cache=function(T){return function(){return T.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(T,A,Y){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ee=w({},T.props),te=T.key;if(A!=null)for(ae in A.key!==void 0&&(te=""+A.key),A)!k.call(A,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&A.ref===void 0||(ee[ae]=A[ae]);var ae=arguments.length-2;if(ae===1)ee.children=Y;else if(1<ae){for(var pe=Array(ae),le=0;le<ae;le++)pe[le]=arguments[le+2];ee.children=pe}return B(T.type,te,ee)},qe.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:l,_context:T},T},qe.createElement=function(T,A,Y){var ee,te={},ae=null;if(A!=null)for(ee in A.key!==void 0&&(ae=""+A.key),A)k.call(A,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(te[ee]=A[ee]);var pe=arguments.length-2;if(pe===1)te.children=Y;else if(1<pe){for(var le=Array(pe),ve=0;ve<pe;ve++)le[ve]=arguments[ve+2];te.children=le}if(T&&T.defaultProps)for(ee in pe=T.defaultProps,pe)te[ee]===void 0&&(te[ee]=pe[ee]);return B(T,ae,te)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(T){return{$$typeof:u,render:T}},qe.isValidElement=V,qe.lazy=function(T){return{$$typeof:p,_payload:{_status:-1,_result:T},_init:U}},qe.memo=function(T,A){return{$$typeof:h,type:T,compare:A===void 0?null:A}},qe.startTransition=function(T){var A=O.T,Y={};O.T=Y;try{var ee=T(),te=O.S;te!==null&&te(Y,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(R,Z)}catch(ae){Z(ae)}finally{A!==null&&Y.types!==null&&(A.types=Y.types),O.T=A}},qe.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},qe.use=function(T){return O.H.use(T)},qe.useActionState=function(T,A,Y){return O.H.useActionState(T,A,Y)},qe.useCallback=function(T,A){return O.H.useCallback(T,A)},qe.useContext=function(T){return O.H.useContext(T)},qe.useDebugValue=function(){},qe.useDeferredValue=function(T,A){return O.H.useDeferredValue(T,A)},qe.useEffect=function(T,A){return O.H.useEffect(T,A)},qe.useEffectEvent=function(T){return O.H.useEffectEvent(T)},qe.useId=function(){return O.H.useId()},qe.useImperativeHandle=function(T,A,Y){return O.H.useImperativeHandle(T,A,Y)},qe.useInsertionEffect=function(T,A){return O.H.useInsertionEffect(T,A)},qe.useLayoutEffect=function(T,A){return O.H.useLayoutEffect(T,A)},qe.useMemo=function(T,A){return O.H.useMemo(T,A)},qe.useOptimistic=function(T,A){return O.H.useOptimistic(T,A)},qe.useReducer=function(T,A,Y){return O.H.useReducer(T,A,Y)},qe.useRef=function(T){return O.H.useRef(T)},qe.useState=function(T){return O.H.useState(T)},qe.useSyncExternalStore=function(T,A,Y){return O.H.useSyncExternalStore(T,A,Y)},qe.useTransition=function(){return O.H.useTransition()},qe.version="19.2.4",qe}var i3;function Dm(){return i3||(i3=1,Eg.exports=T7()),Eg.exports}var j=Dm();const ye=zS(j),A7=t8({__proto__:null,default:ye},[j]);var Tg={exports:{}},Nn={};/**
107 * @license React
108 * react-dom.production.js
109 *
110 * Copyright (c) Meta Platforms, Inc. and affiliates.
111 *
112 * This source code is licensed under the MIT license found in the
113 * LICENSE file in the root directory of this source tree.
114 */var r3;function k7(){if(r3)return Nn;r3=1;var e=Dm();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Nn.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,p)},Nn.flushSync=function(f){var h=d.T,p=s.p;try{if(d.T=null,s.p=2,f)return f()}finally{d.T=h,s.p=p,s.d.f()}},Nn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,
vendor: 11,301 bytes, lines 114-132
114s.d.C(f,h))},Nn.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},Nn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=u(p,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?s.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:x}):p==="script"&&s.d.X(f,{crossOrigin:g,integrity:y,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Nn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=u(h.as,h.crossOrigin);s.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(f)},Nn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=u(p,h.crossOrigin);s.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Nn.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=u(h.as,h.crossOrigin);s.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(f)},Nn.requestFormReset=function(f){s.d.r(f)},Nn.unstable_batchedUpdates=function(f,h){return f(h)},Nn.useFormState=function(f,h,p){return d.H.useFormState(f,h,p)},Nn.useFormStatus=function(){return d.H.useHostTransitionStatus()},Nn.version="19.2.4",Nn}var a3;function zN(){if(a3)return Tg.exports;a3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Tg.exports=k7(),Tg.exports}var ln=zN(),Ag={exports:{}},rc={},kg={exports:{}},Mg={};/**
115 * @license React
116 * scheduler.production.js
117 *
118 * Copyright (c) Meta Platforms, Inc. and affiliates.
119 *
120 * This source code is licensed under the MIT license found in the
121 * LICENSE file in the root directory of this source tree.
122 */var o3;function M7(){return o3||(o3=1,(function(e){function t(D,H){var U=D.length;D.push(H);e:for(;0<U;){var Z=U-1>>>1,F=D[Z];if(0<a(F,H))D[Z]=H,D[U]=F,U=Z;else break e}}function n(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var H=D[0],U=D.pop();if(U!==H){D[0]=U;e:for(var Z=0,F=D.length,T=F>>>1;Z<T;){var A=2*(Z+1)-1,Y=D[A],ee=A+1,te=D[ee];if(0>a(Y,U))ee<F&&0>a(te,Y)?(D[Z]=te,D[ee]=U,Z=ee):(D[Z]=Y,D[A]=U,Z=A);else if(ee<F&&0>a(te,U))D[Z]=te,D[ee]=U,Z=ee;else break e}}return H}function a(D,H){var U=D.sortIndex-H.sortIndex;return U!==0?U:D.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var d=Date,u=d.now();e.unstable_now=function(){return d.now()-u}}var f=[],h=[],p=1,g=null,y=3,x=!1,b=!1,w=!1,S=!1,N=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function M(D){for(var H=n(h);H!==null;){if(H.callback===null)s(h);else if(H.startTime<=D)s(h),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(h)}}function L(D){if(w=!1,M(D),!b)if(n(f)!==null)b=!0,R||(R=!0,z());else{var H=n(h);H!==null&&Q(L,H.startTime-D)}}var R=!1,O=-1,k=5,B=-1;function I(){return S?!0:!(e.unstable_now()-B<k)}function V(){if(S=!1,R){var D=e.unstable_now();B=D;var H=!0;try{e:{b=!1,w&&(w=!1,C(O),O=-1),x=!0;var U=y;try{t:{for(M(D),g=n(f);g!==null&&!(g.expirationTime>D&&I());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,y=g.priorityLevel;var F=Z(g.expirationTime<=D);if(D=e.unstable_now(),typeof F=="function"){g.callback=F,M(D),H=!0;break t}g===n(f)&&s(f),M(D)}else s(f);g=n(f)}if(g!==null)H=!0;else{var T=n(h);T!==null&&Q(L,T.startTime-D),H=!1}}break e}finally{g=null,y=U,x=!1}H=void 0}}finally{H?z():R=!1}}}var z;if(typeof E=="function")z=function(){E(V)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,W=K.port2;K.port1.onmessage=V,z=function(){W.postMessage(null)}}else z=function(){N(V,0)};function Q(D,H){O=N(function(){D(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var U=y;y=H;try{return D()}finally{y=U}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(D,H){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var U=y;y=D;try{return H()}finally{y=U}},e.unstable_scheduleCallback=function(D,H,U){var Z=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Z+U:Z):U=Z,D){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=U+F,D={id:p++,callback:H,priorityLevel:D,startTime:U,expirationTime:F,sortIndex:-1},U>Z?(D.sortIndex=U,t(h,D),n(f)===null&&D===n(h)&&(w?(C(O),O=-1):w=!0,Q(L,U-Z))):(D.sortIndex=F,t(f,D),b||x||(b=!0,R||(R=!0,z()))),D},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(D){var H=y;return function(){var U=y;y=H;try{return D.apply(this,arguments)}finally{y=U}}}})(Mg)),Mg}var l3;function O7(){return l3||(l3=1,kg.exports=M7()),kg.exports}/**
123 * @license React
124 * react-dom-client.production.js
125 *
126 * Copyright (c) Meta Platforms, Inc. and affiliates.
127 *
128 * This source code is licensed under the MIT license found in the
129 * LICENSE file in the root directory of this source tree.
130 */var c3;function R7(){if(c3)return rc;c3=1;var e=O7(),t=Dm(),n=zN();function s(r){var o="https://react.dev/errors/"+r;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var o=r,c=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(c=o.return),r=o.return;while(r)}return o.tag===3?c:null}function d(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function u(r){if(r.tag===31){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(s(188))}function h(r){var o=r.alternate;if(!o){if(o=l(r),o===null)throw Error(s(188));return o!==r?null:r}for(var c=r,m=o;;){var v=c.return;if(v===null)break;var _=v.alternate;if(_===null){if(m=v.return,m!==null){c=m;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===c)return f(v),r;if(_===m)return f(v),o;_=_.sibling}throw Error(s(188))}if(c.return!==m.return)c=v,m=_;else{for(var $=!1,P=v.child;P;){if(P===c){$=!0,c=v,m=_;break}if(P===m){$=!0,m=v,c=_;break}P=P.sibling}if(!$){for(P=_.child;P;){if(P===c){$=!0,c=_,m=v;break}if(P===m){$=!0,m=_,c=v;break}P=P.sibling}if(!$)throw Error(s(189))}}if(c.alternate!==m)throw Error(s(190))}if(c.tag!==3)throw Error(s(188));return c.stateNode.current===c?r:o}function p(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r;for(r=r.child;r!==null;){if(o=p(r),o!==null)return o;r=r.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function z(r){return r===null||typeof r!="object"?null:(r=V&&r[V]||r["@@iterator"],typeof r=="function"?r:null)}var K=Symbol.for("react.client.reference");function W(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===K?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case w:return"Fragment";case N:return"Profiler";case S:return"StrictMode";case L:return"Suspense";case R:return"SuspenseList";case B:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case E:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case M:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case O:return o=r.displayName||null,o!==null?o:W(r.type)||"Memo";case k:o=r._payload,r=r._init;try{return W(r(o))}catch{}}return null}var Q=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},Z=[],F=-1;function T(r){return{current:r}}function A(r){0>F||(r.current=Z[F],Z[F]=null,F--)}function Y(r,o){F++,Z[F]=r.current,r.current=o}var ee=T(null),te=T(null),ae=T(null),pe=T(null);function le(r,o){switch(Y(ae,o),Y(te,r),Y(ee,null),o.nodeType){case 9:case 11:r=(r=o.documentElement)&&(r=r.namespaceURI)?s2(r):0;break;default:if(r=o.tagName,o=o.namespaceURI)o=s2(o),r=i2(o,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}A(ee),Y(ee,r)}function ve(){A(ee),A(te),A(ae)}function xe(r){r.memoizedState!==null&&Y(pe,r);var o=ee.current,c=i2(o,r.type);o!==c&&(Y(te,r),Y(ee,c))}function $e(r){te.current===r&&(A(ee),A(te)),pe.current===r&&(A(pe),Zl._currentValue=U)}var ce,be;function Ee(r){if(ce===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);ce=o&&o[1]||"",be=-1<c.stack.indexOf(`
131    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
132`+ce+r+be}var ke=!1;function Le(r,o){if(!r||ke)return"";ke=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(o){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(oe){var ie=oe}Reflect.construct(r,[],me)}else{try{me.call()}catch(oe){ie=oe}r.call(me.prototype)}}else{try{throw Error()}catch(oe){ie=oe}(me=r())&&typeof me.catch=="function"&&me.catch(function(){})}}
vendor: 8,846 bytes, lines 132-137
132catch(oe){if(oe&&ie&&typeof oe.stack=="string")return[oe.stack,ie.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=m.DetermineComponentFrameRoot(),$=_[0],P=_[1];if($&&P){var G=$.split(`
133`),se=P.split(`
134`);for(v=m=0;m<G.length&&!G[m].includes("DetermineComponentFrameRoot");)m++;for(;v<se.length&&!se[v].includes("DetermineComponentFrameRoot");)v++;if(m===G.length||v===se.length)for(m=G.length-1,v=se.length-1;1<=m&&0<=v&&G[m]!==se[v];)v--;for(;1<=m&&0<=v;m--,v--)if(G[m]!==se[v]){if(m!==1||v!==1)do if(m--,v--,0>v||G[m]!==se[v]){var de=`
135`+G[m].replace(" at new "," at ");return r.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",r.displayName)),de}while(1<=m&&0<=v);break}}}finally{ke=!1,Error.prepareStackTrace=c}return(c=r?r.displayName||r.name:"")?Ee(c):""}function Ne(r,o){switch(r.tag){case 26:case 27:case 5:return Ee(r.type);case 16:return Ee("Lazy");case 13:return r.child!==o&&o!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Le(r.type,!1);case 11:return Le(r.type.render,!1);case 1:return Le(r.type,!0);case 31:return Ee("Activity");default:return""}}function Ue(r){try{var o="",c=null;do o+=Ne(r,c),c=r,r=r.return;while(r);return o}catch(m){return`
136Error generating stack: `+m.message+`
137`+m.stack}}var Te=Object.prototype.hasOwnProperty,Ze=e.unstable_scheduleCallback,vt=e.unstable_cancelCallback,fe=e.unstable_shouldYield,ze=e.unstable_requestPaint,Ge=e.unstable_now,mt=e.unstable_getCurrentPriorityLevel,wt=e.unstable_ImmediatePriority,vn=e.unstable_UserBlockingPriority,cn=e.unstable_NormalPriority,wn=e.unstable_LowPriority,ii=e.unstable_IdlePriority,wi=e.log,Si=e.unstable_setDisableYieldValue,Ni=null,dn=null;function js(r){if(typeof wi=="function"&&Si(r),dn&&typeof dn.setStrictMode=="function")try{dn.setStrictMode(Ni,r)}catch{}}var un=Math.clz32?Math.clz32:Me,ul=Math.log,he=Math.LN2;function Me(r){return r>>>=0,r===0?32:31-(ul(r)/he|0)|0}var Pe=256,et=262144,Sn=4194304;function Vs(r){var o=r&42;if(o!==0)return o;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function nr(r,o,c){var m=r.pendingLanes;if(m===0)return 0;var v=0,_=r.suspendedLanes,$=r.pingedLanes;r=r.warmLanes;var P=m&134217727;return P!==0?(m=P&~_,m!==0?v=Vs(m):($&=P,$!==0?v=Vs($):c||(c=P&~r,c!==0&&(v=Vs(c))))):(P=m&~_,P!==0?v=Vs(P):$!==0?v=Vs($):c||(c=m&~r,c!==0&&(v=Vs(c)))),v===0?0:o!==0&&o!==v&&(o&_)===0&&(_=v&-v,c=o&-o,_>=c||_===32&&(c&4194048)!==0)?o:v}function Yr(r,o){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&o)===0}function uh(r,o){switch(r){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ls(){var r=Sn;return Sn<<=1,(Sn&62914560)===0&&(Sn=4194304),r}function fl(r){for(var o=[],c=0;31>c;c++)o.push(r);return o}function sr(r,o){r.pendingLanes|=o,o!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Kr(r,o,c,m,v,_){var $=r.pendingLanes;r.pendingLanes=c,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=c,r.entangledLanes&=c,r.errorRecoveryDisabledLanes&=c,r.shellSuspendCounter=0;var P=r.entanglements,G=r.expirationTimes,se=r.hiddenUpdates;for(c=$&~c;0<c;){var de=31-un(c),me=1<<de;P[de]=0,G[de]=-1;var ie=se[de];if(ie!==null)for(se[de]=null,de=0;de<ie.length;de++){var oe=ie[de];oe!==null&&(oe.lane&=-536870913)}c&=~me}m!==0&&Xr(r,m,0),_!==0&&v===0&&r.tag!==0&&(r.suspendedLanes|=_&~($&~o))}function Xr(r,o,c){r.pendingLanes|=o,r.suspendedLanes&=~o;var m=31-un(o);r.entangledLanes|=o,r.entanglements[m]=r.entanglements[m]|1073741824|c&261930}function Zr(r,o){var c=r.entangledLanes|=o;for(r=r.entanglements;c;){var m=31-un(c),v=1<<m;v&o|r[m]&o&&(r[m]|=o),c&=~v}}function Va(r,o){var c=o&-o;return c=(c&42)!==0?1:fn(c),(c&(r.suspendedLanes|o))!==0?0:c}function fn(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ua(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Id(){var r=H.p;return r!==0?r:(r=window.event,r===void 0?32:$2(r.type))}function Bd(r,o){var c=H.p;try{return H.p=r,o()}finally{H.p=c}}var ri=Math.random().toString(36).slice(2),an="__reactFiber$"+ri,mn="__reactProps$"+ri,Ci="__reactContainer$"+ri,ml="__reactEvents$"+ri,Ha="__reactListeners$"+ri,fh="__reactHandles$"+ri,zd="__reactResources$"+ri,ir="__reactMarker$"+ri;function we(r){delete r[an],delete r[mn],delete r[ml],delete r[Ha],delete r[fh]}function je(r){var o=r[an];if(o)return o;for(var c=r.parentNode;c;){if(o=c[Ci]||c[an]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(r=u2(r);r!==null;){if(c=r[an])return c;r=u2(r)}return o}r=c,c=r.parentNode}return null}function Be(r){if(r=r[an]||r[Ci]){var o=r.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return r}return null}function Ut(r){var o=r.tag;if(o===5||o===26||o===27||o===6)return r.stateNode;throw Error(s(33))}function Pt(r){var o=r[zd];return o||(o=r[zd]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function tt(r){r[ir]=!0}var ht=new Set,ge={};function We(r,o){Qe(r,o),Qe(r+"Capture",o)}function Qe(r,o){for(ge[r]=o,r=0;r<o.length;r++)ht.add(o[r])}var qn=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Us={},Dn={};function rr(r){return Te.call(Dn,r)?!0:Te.call(Us,r)?!1:qn.test(r)?Dn[r]=!0:(Us[r]=!0,!1)}function Hs(r,o,c){if(rr(o))if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":r.removeAttribute(o);return;case"boolean":var m=o.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){r.removeAttribute(o);return}}r.setAttribute(o,""+c)}}function ar(r,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttribute(o,""+c)}}function qs(r,o,c,m){if(m===null)r.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(c);return}r.setAttributeNS(o,c,""+m)}}function ws(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Kb(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function YE(r,o,c){var m=Object.getOwnPropertyDescriptor(r.constructor.prototype,o);if(!r.hasOwnProperty(o)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,_=m.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return v.call(this)},set:function($){c=""+$,_.call(this,$)}}),Object.defineProperty(r,o,{enumerable:m.enumerable}),{getValue:function(){return c},setValue:function($){c=""+$},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function mh(r){if(!r._valueTracker){var o=Kb(r)?"checked":"value";r._valueTracker=YE(r,o,""+r[o])}}function Xb(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var c=o.getValue(),m="";return r&&(m=Kb(r)?r.checked?"true":"false":r.value),r=m,r!==c?(o.setValue(r),!0):!1}function Vd(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var KE=/[\n"\\]/g;function Ss(r){return r.replace(KE,function(o){return"\\"+o.charCo
vendor: 4,417 bytes, line 137
137deAt(0).toString(16)+" "})}function hh(r,o,c,m,v,_,$,P){r.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?r.type=$:r.removeAttribute("type"),o!=null?$==="number"?(o===0&&r.value===""||r.value!=o)&&(r.value=""+ws(o)):r.value!==""+ws(o)&&(r.value=""+ws(o)):$!=="submit"&&$!=="reset"||r.removeAttribute("value"),o!=null?ph(r,$,ws(o)):c!=null?ph(r,$,ws(c)):m!=null&&r.removeAttribute("value"),v==null&&_!=null&&(r.defaultChecked=!!_),v!=null&&(r.checked=v&&typeof v!="function"&&typeof v!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?r.name=""+ws(P):r.removeAttribute("name")}function Zb(r,o,c,m,v,_,$,P){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.type=_),o!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||o!=null)){mh(r);return}c=c!=null?""+ws(c):"",o=o!=null?""+ws(o):c,P||o===r.value||(r.value=o),r.defaultValue=o}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,r.checked=P?r.checked:!!m,r.defaultChecked=!!m,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(r.name=$),mh(r)}function ph(r,o,c){o==="number"&&Vd(r.ownerDocument)===r||r.defaultValue===""+c||(r.defaultValue=""+c)}function qa(r,o,c,m){if(r=r.options,o){o={};for(var v=0;v<c.length;v++)o["$"+c[v]]=!0;for(c=0;c<r.length;c++)v=o.hasOwnProperty("$"+r[c].value),r[c].selected!==v&&(r[c].selected=v),v&&m&&(r[c].defaultSelected=!0)}else{for(c=""+ws(c),o=null,v=0;v<r.length;v++){if(r[v].value===c){r[v].selected=!0,m&&(r[v].defaultSelected=!0);return}o!==null||r[v].disabled||(o=r[v])}o!==null&&(o.selected=!0)}}function Qb(r,o,c){if(o!=null&&(o=""+ws(o),o!==r.value&&(r.value=o),c==null)){r.defaultValue!==o&&(r.defaultValue=o);return}r.defaultValue=c!=null?""+ws(c):""}function Jb(r,o,c,m){if(o==null){if(m!=null){if(c!=null)throw Error(s(92));if(Q(m)){if(1<m.length)throw Error(s(93));m=m[0]}c=m}c==null&&(c=""),o=c}c=ws(o),r.defaultValue=c,m=r.textContent,m===c&&m!==""&&m!==null&&(r.value=m),mh(r)}function Ga(r,o){if(o){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=o;return}}r.textContent=o}var XE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function e1(r,o,c){var m=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?m?r.setProperty(o,""):o==="float"?r.cssFloat="":r[o]="":m?r.setProperty(o,c):typeof c!="number"||c===0||XE.has(o)?o==="float"?r.cssFloat=c:r[o]=(""+c).trim():r[o]=c+"px"}function t1(r,o,c){if(o!=null&&typeof o!="object")throw Error(s(62));if(r=r.style,c!=null){for(var m in c)!c.hasOwnProperty(m)||o!=null&&o.hasOwnProperty(m)||(m.indexOf("--")===0?r.setProperty(m,""):m==="float"?r.cssFloat="":r[m]="");for(var v in o)m=o[v],o.hasOwnProperty(v)&&c[v]!==m&&e1(r,v,m)}else for(var _ in o)o.hasOwnProperty(_)&&e1(r,_,o[_])}function gh(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ZE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
137dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),QE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ud(r){return QE.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function $i(){}var vh=null;function yh(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Wa=null,Ya=null;function n1(r){var o=Be(r);if(o&&(r=o.stateNode)){var c=r[mn]||null;e:switch(r=o.stateNode,o.type){case"input":if(hh(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Ss(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var m=c[o];if(m!==r&&m.form===r.form){var v=m[mn]||null;if(!v)throw Error(s(90));hh(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<c.length;o++)m=c[o],m.form===r.form&&Xb(m)}break e;case"textarea":Qb(r,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&qa(r,!!c.multiple,o,!1)}}}var bh=!1;function s1(r,o,c){if(bh)return r(o,c);bh=!0;try{var m=r(o);return m}finally{if(bh=!1,(Wa!==null||Ya!==null)&&(Au(),Wa&&(o=Wa,r=Ya,Ya=Wa=null,n1(o),r)))for(o=0;o<r.length;o++)n1(r[o])}}function hl(r,o){var c=r.stateNode;if(c===null)return null;var m=c[mn]||null;if(m===null)return null;c=m[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(r=r.type,m=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!m;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(s(231,o,typeof c));return c}var Ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xh=!1;if(Ei)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){xh=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{xh=!1}var or=null,_h=null,Hd=null;function i1(){if(Hd)return Hd;var r,o=_h,c=o.length,m,v="value"in or?or.value:or.textContent,_=v.length;for(r=0;r<c&&o[r]===v[r];r++);var $=c-r;for(m=1;m<=$&&o[c-m]===v[_-m];m++);return Hd=v.slice(r,1<m?1-m:void 0)}function qd(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Gd(){return!0}function r1(){return!1}function Gn(r){function o(c,m,v,_,$){this._reactName=c,this._targetInst=v,this.type=m,this.nativeEvent=_,this.target=$,this.currentTarget=null;for(var P in r)r.hasOwnProperty(P)&&(c=r[P],this[P]=c?c(_):_[P]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Gd:r1,this.isPropagationStopped=r1,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Gd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Gd)},persist:function(){},isPersistent:Gd}),o}var Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wd=Gn(Qr),gl=g({},Qr,{view:0,detail:0}),JE=Gn(gl),jh,wh,vl,Yd=g({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==vl&&(vl&&r.type==="mousemove"?(jh=r.screenX-vl.screenX,wh=r.screenY-vl.screenY):wh=jh=0,vl=r),jh)},movementY:function(r){return"movementY"in r?r.movementY:wh}}),a1=Gn(Yd),e5=g({},Yd,{dataTransfer:0}),t5=Gn(e5),n5=g({},gl,{relatedTarget:0}),Sh=Gn(n5),s5=g({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0}
vendor: 4,355 bytes, line 137
137),i5=Gn(s5),r5=g({},Qr,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),a5=Gn(r5),o5=g({},Qr,{data:0}),o1=Gn(o5),l5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c5={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},d5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u5(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=d5[r])?!!o[r]:!1}function Nh(){return u5}var f5=g({},gl,{key:function(r){if(r.key){var o=l5[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=qd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?c5[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nh,charCode:function(r){return r.type==="keypress"?qd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?qd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),m5=Gn(f5),h5=g({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),l1=Gn(h5),p5=g({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nh}),g5=Gn(p5),v5=g({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),y5=Gn(v5),b5=g({},Yd,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),x5=Gn(b5),_5=g({},Qr,{newState:0,oldState:0}),j5=Gn(_5),w5=[9,13,27,32],Ch=Ei&&"CompositionEvent"in window,yl=null;Ei&&"documentMode"in document&&(yl=document.documentMode);var S5=Ei&&"TextEvent"in window&&!yl,c1=Ei&&(!Ch||yl&&8<yl&&11>=yl),d1=" ",u1=!1;function f1(r,o){switch(r){case"keyup":return w5.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m1(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ka=!1;function N5(r,o){switch(r){case"compositionend":return m1(o);case"keypress":return o.which!==32?null:(u1=!0,d1);case"textInput":return r=o.data,r===d1&&u1?null:r;default:return null}}function C5(r,o){if(Ka)return r==="compositionend"||!Ch&&f1(r,o)?(r=i1(),Hd=_h=or=null,Ka=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return c1&&o.locale!=="ko"?null:o.data;default:return null}}var $5={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function h1(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!$5[r.type]:o==="textarea"}function p1(r,o,c,m){Wa?Ya?Ya.push(m):Ya=[m]:Wa=m,o=Lu(o,"onChange"),0<o.length&&(c=new Wd("onChange","change",null,c,m),r.push({event:c,listeners:o}))}var bl=null,xl=null;function E5(r){Z_(r,0)}function Kd(r){var o=Ut(r);if(Xb(o))return r}function g1(r,o){if(r==="change")return o}var v1=!1;if(Ei){var $h;if(Ei){var Eh="oninput"in document;if(!Eh){var y1=document.createElement("div");y1.setAttribute("oninput","return;"),Eh=typeof y1.oninput=="function"}$h=Eh}else $h=!1;v1=$h&&(!document.documentMode||9<document.documentMode)}function b1(){bl&&(bl.detachEvent("onpropertychange",x1),xl=bl=null)}function x1(r){if(r.propertyName==="value"&&Kd(xl)){var o=[];p1(o,xl,r,yh(r)),s1(E5,o)}}function T5(r,o,c){r==="focusin"?(b1(),bl=o,xl=c,bl.attachEvent("onpropertychange",x1)):r==="focusout"&&b1()}function A5(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Kd(xl)}
vendor: 4,486 bytes, line 137
137function k5(r,o){if(r==="click")return Kd(o)}function M5(r,o){if(r==="input"||r==="change")return Kd(o)}function O5(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var cs=typeof Object.is=="function"?Object.is:O5;function _l(r,o){if(cs(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var c=Object.keys(r),m=Object.keys(o);if(c.length!==m.length)return!1;for(m=0;m<c.length;m++){var v=c[m];if(!Te.call(o,v)||!cs(r[v],o[v]))return!1}return!0}function _1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function j1(r,o){var c=_1(r);r=0;for(var m;c;){if(c.nodeType===3){if(m=r+c.textContent.length,r<=o&&m>=o)return{node:c,offset:o-r};r=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=_1(c)}}function w1(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?w1(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function S1(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var o=Vd(r.document);o instanceof r.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)r=o.contentWindow;else break;o=Vd(r.document)}return o}function Th(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}var R5=Ei&&"documentMode"in document&&11>=document.documentMode,Xa=null,Ah=null,jl=null,kh=!1;function N1(r,o,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;kh||Xa==null||Xa!==Vd(m)||(m=Xa,"selectionStart"in m&&Th(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),jl&&_l(jl,m)||(jl=m,m=Lu(Ah,"onSelect"),0<m.length&&(o=new Wd("onSelect","select",null,o,c),r.push({event:o,listeners:m}),o.target=Xa)))}function Jr(r,o){var c={};return c[r.toLowerCase()]=o.toLowerCase(),c["Webkit"+r]="webkit"+o,c["Moz"+r]="moz"+o,c}var Za={animationend:Jr("Animation","AnimationEnd"),animationiteration:Jr("Animation","AnimationIteration"),animationstart:Jr("Animation","AnimationStart"),transitionrun:Jr("Transition","TransitionRun"),transitionstart:Jr("Transition","TransitionStart"),transitioncancel:Jr("Transition","TransitionCancel"),transitionend:Jr("Transition","TransitionEnd")},Mh={},C1={};Ei&&(C1=document.createElement("div").style,"AnimationEvent"in window||(delete Za.animationend.animation,delete Za.animationiteration.animation,delete Za.animationstart.animation),"TransitionEvent"in window||delete Za.transitionend.transition);function ea(r){if(Mh[r])return Mh[r];if(!Za[r])return r;var o=Za[r],c;for(c in o)if(o.hasOwnProperty(c)&&c in C1)return Mh[r]=o[c];return r}var $1=ea("animationend"),E1=ea("animationiteration"),T1=ea("animationstart"),P5=ea("transitionrun"),D5=ea("transitionstart"),L5=ea("transitioncancel"),A1=ea("transitionend"),k1=new Map,Oh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Oh.push("scrollEnd");function Gs(r,o){k1.set(r,o),We(o,[r])}var Xd=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Ns=[],Qa=0,Rh=0;function Zd(){for(var r=Qa,o=Rh=Qa=0;o<r;){var c=Ns[o];Ns[o++]=null;var m=Ns[o];Ns[o++]=null;var v=Ns[o];Ns[o++]=null;var _=Ns[o];if(Ns[o++]=null,m!==null&&v!==null){var $=m.pending;
vendor: 1,536 bytes, line 137
137$===null?v.next=v:(v.next=$.next,$.next=v),m.pending=v}_!==0&&M1(c,v,_)}}function Qd(r,o,c,m){Ns[Qa++]=r,Ns[Qa++]=o,Ns[Qa++]=c,Ns[Qa++]=m,Rh|=m,r.lanes|=m,r=r.alternate,r!==null&&(r.lanes|=m)}function Ph(r,o,c,m){return Qd(r,o,c,m),Jd(r)}function ta(r,o){return Qd(r,null,null,o),Jd(r)}function M1(r,o,c){r.lanes|=c;var m=r.alternate;m!==null&&(m.lanes|=c);for(var v=!1,_=r.return;_!==null;)_.childLanes|=c,m=_.alternate,m!==null&&(m.childLanes|=c),_.tag===22&&(r=_.stateNode,r===null||r._visibility&1||(v=!0)),r=_,_=_.return;return r.tag===3?(_=r.stateNode,v&&o!==null&&(v=31-un(c),r=_.hiddenUpdates,m=r[v],m===null?r[v]=[o]:m.push(o),o.lane=c|536870912),_):null}function Jd(r){if(50<Hl)throw Hl=0,Hp=null,Error(s(185));for(var o=r.return;o!==null;)r=o,o=r.return;return r.tag===3?r.stateNode:null}var Ja={};function F5(r,o,c,m){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ds(r,o,c,m){return new F5(r,o,c,m)}function Dh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ti(r,o){var c=r.alternate;return c===null?(c=ds(r.tag,o,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=o,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deleti
vendor: 17,940 bytes, line 137
137ons=null),c.flags=r.flags&65011712,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,o=r.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c.refCleanup=r.refCleanup,c}function O1(r,o){r.flags&=65011714;var c=r.alternate;return c===null?(r.childLanes=0,r.lanes=o,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=c.childLanes,r.lanes=c.lanes,r.child=c.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=c.memoizedProps,r.memoizedState=c.memoizedState,r.updateQueue=c.updateQueue,r.type=c.type,o=c.dependencies,r.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),r}function eu(r,o,c,m,v,_){var $=0;if(m=r,typeof r=="function")Dh(r)&&($=1);else if(typeof r=="string")$=U9(r,c,ee.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case B:return r=ds(31,c,o,v),r.elementType=B,r.lanes=_,r;case w:return na(c.children,v,_,o);case S:$=8,v|=24;break;case N:return r=ds(12,c,o,v|2),r.elementType=N,r.lanes=_,r;case L:return r=ds(13,c,o,v),r.elementType=L,r.lanes=_,r;case R:return r=ds(19,c,o,v),r.elementType=R,r.lanes=_,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case E:$=10;break e;case C:$=9;break e;case M:$=11;break e;case O:$=14;break e;case k:$=16,m=null;break e}$=29,c=Error(s(130,r===null?"null":typeof r,"")),m=null}return o=ds($,c,o,v),o.elementType=r,o.type=m,o.lanes=_,o}function na(r,o,c,m){return r=ds(7,r,m,o),r.lanes=c,r}function Lh(r,o,c){return r=ds(6,r,null,o),r.lanes=c,r}function R1(r){var o=ds(18,null,null,0);return o.stateNode=r,o}function Fh(r,o,c){return o=ds(4,r.children!==null?r.children:[],r.key,o),o.lanes=c,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}var P1=new WeakMap;function Cs(r,o){if(typeof r=="object"&&r!==null){var c=P1.get(r);return c!==void 0?c:(o={value:r,source:o,stack:Ue(o)},P1.set(r,o),o)}return{value:r,source:o,stack:Ue(o)}}var eo=[],to=0,tu=null,wl=0,$s=[],Es=0,lr=null,ai=1,oi="";function Ai(r,o){eo[to++]=wl,eo[to++]=tu,tu=r,wl=o}function D1(r,o,c){$s[Es++]=ai,$s[Es++]=oi,$s[Es++]=lr,lr=r;var m=ai;r=oi;var v=32-un(m)-1;m&=~(1<<v),c+=1;var _=32-un(o)+v;if(30<_){var $=v-v%5;_=(m&(1<<$)-1).toString(32),m>>=$,v-=$,ai=1<<32-un(o)+v|c<<v|m,oi=_+r}else ai=1<<_|c<<v|m,oi=r}function Ih(r){r.return!==null&&(Ai(r,1),D1(r,1,0))}function Bh(r){for(;r===tu;)tu=eo[--to],eo[to]=null,wl=eo[--to],eo[to]=null;for(;r===lr;)lr=$s[--Es],$s[Es]=null,oi=$s[--Es],$s[Es]=null,ai=$s[--Es],$s[Es]=null}function L1(r,o){$s[Es++]=ai,$s[Es++]=oi,$s[Es++]=lr,ai=o.id,oi=o.overflow,lr=r}var yn=null,Ct=null,ot=!1,cr=null,Ts=!1,zh=Error(s(519));function dr(r){var o=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sl(Cs(o,r)),zh}function F1(r){var o=r.stateNode,c=r.type,m=r.memoizedProps;switch(o[an]=r,o[mn]=m,c){case"dialog":st("cancel",o),st("close",o);break;case"iframe":case"object":case"embed":st("load",o);break;case"video":case"audio":for(c=0;c<Gl.length;c++)st(Gl[c],o);break;case"source":st("error",o);break;case"img":case"image":case"link":st("error",o),st("load",o);break;case"details":st("toggle",o);break;case"input":st("invalid",o),Zb(o,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":st("invalid",o);break;case"textarea":st("invalid",o),Jb(o,m.value,m.defaultValue,m.children)}c=m.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||m.suppressHydrationWarning===!0||t2(o.textContent,c)?(m.popover!=null&&(st("beforetoggle",o),st("toggle",o)),m.onScroll!=null&&st("scroll",o),m.onScrollEnd!=null&&st("scrollend",o),m.onClick!=null&&(o.onclick=$i),o=!0):o=!1,o||dr(r,!0)}function I1(r){for(yn=r.return;yn;)switch(yn.tag){case 5:case 31:case 13:Ts=!1;return;case 27:case 3:Ts=!0;return;default:yn=yn.return}}function no(r){if(r!==yn)return!1;if(!ot)return I1(r),ot=!0,!1;var o=r.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=r.type,c=!(c!=="form"&&c!=="button")||rg(r.type,r.memoizedProps)),c=!c),c&&Ct&&dr(r),I1(r),o===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Ct=d2(r)}else if(o===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));Ct=d2(r)}else o===27?(o=Ct,Sr(r.type)?(r=dg,dg=null,Ct=r):Ct=o):Ct=yn?ks(r.stateNode.nextSibling):null;return!0}function sa(){Ct=yn=null,ot=!1}function Vh(){var r=cr;return r!==null&&(Xn===null?Xn=r:Xn.push.apply(Xn,r),cr=null),r}function Sl(r){cr===null?cr=[r]:cr.push(r)}var Uh=T(null),ia=null,ki=null;function ur(r,o,c){Y(Uh,o._currentValue),o._currentValue=c}function Mi(r){r._currentValue=Uh.current,A(Uh)}function Hh(r,o,c){for(;r!==null;){var m=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),r===c)break;r=r.return}}function qh(r,o,c,m){var v=r.child;for(v!==null&&(v.return=r);v!==null;){var _=v.dependencies;if(_!==null){var $=v.child;_=_.firstContext;e:for(;_!==null;){var P=_;_=v;for(var G=0;G<o.length;G++)if(P.context===o[G]){_.lanes|=c,P=_.alternate,P!==null&&(P.lanes|=c),Hh(_.return,c,r),m||($=null);break e}_=P.next}}else if(v.tag===18){if($=v.return,$===null)throw Error(s(341));$.lanes|=c,_=$.alternate,_!==null&&(_.lanes|=c),Hh($,c,r),$=null}else $=v.child;if($!==null)$.return=v;else for($=v;$!==null;){if($===r){$=null;break}if(v=$.sibling,v!==null){v.return=$.return,$=v;break}$=$.return}v=$}}function so(r,o,c,m){r=null;for(var v=o,_=!1;v!==null;){if(!_){if((v.flags&524288)!==0)_=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var $=v.alternate;if($===null)throw Error(s(387));if($=$.memoizedProps,$!==null){var P=v.type;cs(v.pendingProps.value,$.value)||(r!==null?r.push(P):r=[P])}}else if(v===pe.current){if($=v.alternate,$===null)throw Error(s(387));$.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(r!==null?r.push(Zl):r=[Zl])}v=v.return}r!==null&&qh(o,r,c,m),o.flags|=262144}function nu(r){for(r=r.firstContext;r!==null;){if(!cs(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ra(r){ia=r,ki=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function bn(r){return B1(ia,r)}function su(r,o){return ia===null&&ra(r),B1(r,o)}function B1(r,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ki===null){if(r===null)throw Error(s(308));ki=o,r.dependencies={lanes:0,firstContext:o},r.flags|=524288}else ki=ki.next=o;return c}var I5=typeof AbortController<"u"?AbortController:function(){var r=[],o=this.signal={aborted:!1,addEventListener:function(c,m){r.push(m)}};this.abort=function(){o.aborted=!0,r.forEach(function(c){return c()})}},B5=e.unstable_scheduleCallback,z5=e.unstable_NormalPriority,Zt={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gh(){return{controller:new I5,data:new Map,refCount:0}}function Nl(r){r.refCount--,r.refCount===0&&B5(z5,function(){r.controller.abort()})}var Cl=null,Wh=0,io=0,ro=null;function V5(r,o){if(Cl===null){var c=Cl=[];Wh=0,io=Xp(),ro={status:"pending",value:void 0,then:function(m){c.push(m)}}}return Wh++,o.then(z1,z1),o}function z1(){if(--Wh===0&&Cl!==null){ro!==null&&(ro.status="fulfilled");var r=Cl;Cl=null,io=0,ro=null;for(var o=0;o<r.length;o++)(0,r[o])()}}function U5(r,o){var c=[],m={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return r.then(function(){m.status="fulfilled",m.value=o;for(var v=0;v<c.length;v++)(0,c[v])(o)},function(v){for(m.status="rejected",m.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),m}var V1=D.S;D.S=function(r,o){N_=Ge(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&V5(r,o),V1!==null&&V1(r,o)};var aa=T(null);function Yh(){var r=aa.current;return r!==null?r:St.pooledCache}function iu(r,o){o===null?Y(aa,aa.current):Y(aa,o.pool)}function U1(){var r=Yh();return r===null?null:{parent:Zt._currentValue,pool:r}}var ao=Error(s(460)),Kh=Error(s(474)),ru=Error(s(542)),au={then:function(){}};function H1(r){return r=r.status,r==="fulfilled"||r==="rejected"}function q1(r,o,c){switch(c=r[c],c===void 0?r.push(o):c!==o&&(o.then($i,$i),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,W1(r),r;default:if(typeof o.status=="string")o.then($i,$i);else{if(r=St,r!==null&&100<r.shellSuspendCounter)throw Error(s(482));r=o,r.status="pending",r.then(function(m){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=m}},function(m){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=m}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw r=o.reason,W1(r),r}throw la=o,ao}}function oa(r){try{var o=r._init;return o(r._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(la=c,ao):c}}var la=null;function G1(){if(la===null)throw Error(s(459));var r=la;return la=null,r}function W1(r){if(r===ao||r===ru)throw Error(s(483))}var oo=null,$l=0;function ou(r){var o=$l;return $l+=1,oo===null&&(oo=[]),q1(oo,r,o)}function El(r,o){o=o.props.ref,r.ref=o!==void 0?o:null}function lu(r,o){throw o.$$typeof===y?Error(s(525)):(r=Object.prototype.toString.call(o),Error(s(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r)))}function Y1(r){function o(J,X){if(r){var ne=J.deletions;ne===null?(J.deletions=[X],J.flags|=16):ne.push(X)}}function c(J,X){if(!r)return null;for(;X!==null;)o(J,X),X=X.sibling;return null}function m(J){for(var X=new Map;J!==null;)J.key!==null?X.set(J.key,J):X.set(J.index,J),J=J.sibling;return X}function v(J,X){return J=Ti(J,X),J.index=0,J.sibling=null,J}function _(J,X,ne){return J.index=ne,r?(ne=J.alternate,ne!==null?(ne=ne.index,ne<X?(J.flags|=67108866,X):ne):(J.flags|=67108866,X)):(J.flags|=1048576,X)}function $(J){return r&&J.alternate===null&&(J.flags|=67108866),J}function P(J,X,ne,ue){return X===null||X.tag!==6?(X=Lh(ne,J.mode,ue),X.return=J,X):(X=v(X,ne),X.return=J,X)}function G(J,X,ne,ue){var Re=ne.type;return Re===w?de(J,X,ne.props.children,ue,ne.key):X!==null&&(X.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===k&&oa(Re)===X.type)?(X=v(X,ne.props),El(X,ne),X.return=J,X):(X=eu(ne.type,ne.key,ne.props,null,J.mode,ue),El(X,ne),X.return=J,X)}function se(J,X,ne,ue){return X===null||X.tag!==4||X.stateNode.containerInfo!==ne.containerInfo||X.stateNode.implementation!==ne.implementation?(X=Fh(ne,J.mode,ue),X.return=J,X):(X=v(X,ne.children||[]),X.return=J,X)}function de(J,X,ne,ue,Re){return X===null||X.tag!==7?(X=na(ne,J.mode,ue,Re),X.return=J,X):(X=v(X,ne),X.return=J,X)}function me(J,X,ne){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=Lh(""+X,J.mode,ne),X.return=J,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case x:return ne=eu(X.type,X.key,X.props,null,J.mode,ne),El(ne,X),ne.return=J,ne;case b:return X=Fh(X,J.mode,ne),X.return=J,X;case k:return X=oa(X),me(J,X,ne)}if(Q(X)||z(X))return X=na(X,J.mode,ne,null),X.return=J,X;if(typeof X.then=="function")return me(J,ou(X),ne);if(X.$$typeof===E)return me(J,su(J,X),ne);lu(J,X)}return null}function ie(J,X,ne,ue){var Re=X!==null?X.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return Re!==null?null:P(J,X,""+ne,ue);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return ne.key===Re?G(J,X,ne,ue):null;case b:return ne.key===Re?se(J,X,ne,ue):null;case k:return ne=oa(ne),ie(J,X,ne,ue)}if(Q(ne)||z(ne))return Re!==null?null:de(J,X,ne,ue,null);if(typeof ne.then=="function")return ie(J,X,ou(ne),ue);if(ne.$$typeof===E)return ie(J,X,su(J,ne),ue);lu(J,ne)}return null}function oe(J,X,ne,ue,Re){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return J=J.get(ne)||null,P(X,J,""+ue,Re);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return J=J.get(ue.key===null?ne:ue.key)||null,G(X,J,ue,Re);case b:return J=J.get(ue.key===null?ne:ue.key)||null,se(X,J,ue,Re);case k:return ue=oa(ue),oe(J,X,ne,ue,Re)}if(Q(ue)||z(ue))return J=J.get(ne)||null,de(X,J,ue,Re,null);if(typeof ue.then=="function")return oe(J,X,ne,ou(ue),Re);if(ue.$$typeof===E)return oe(J,X,ne,su(X,ue),Re);lu(X,ue)}return null}function Ae(J,X,ne,ue){for(var Re=null,dt=null,Oe=X,Ke=X=0,at=null;Oe!==null&&Ke<ne.length;Ke++){Oe.index>Ke?(at=Oe,Oe=null):at=Oe.sibling;var ut=ie(J,Oe,ne[Ke],ue);if(ut===null){Oe===null&&(Oe=at);break}r&&Oe&&ut.alternate===null&&o(J,Oe),X=_(ut,X,Ke),dt===null?Re=ut:dt.sibling=ut,dt=ut,Oe=at}if(Ke===ne.length)return c(J,Oe),ot&&Ai(J,Ke),Re;if(Oe===null){for(;Ke<ne.length;Ke++)Oe=me(J,ne[Ke],ue),Oe!==null&&(X=_(Oe,X,Ke),dt===null?Re=Oe:dt.sibling=Oe,dt=Oe);return ot&&Ai(J,Ke),Re}for(Oe=m(Oe);Ke<ne.length;Ke++)at=oe(Oe,J,Ke,ne[Ke],ue),at!==null&&(r&&at.alternate!==null&&Oe.delete(at.key===null?Ke:at.key),X=_(at,X,Ke),dt===null?Re=at:dt.sibling=at,dt=at);return r&&Oe.forEach(function(Tr){return o(J,Tr)}),ot&&Ai(J,Ke),Re}function De(J,X,ne,ue){if(ne==null)throw Error(s(151));for(var Re=null,dt=null,Oe=X,Ke=X=0,at=null,ut=ne.next();Oe!==null&&!ut.done;Ke++,ut=ne.next()){Oe.index>Ke?(at=Oe,Oe=null):at=Oe.sibling;var Tr=ie(J,Oe,ut.value,ue);if(Tr===null){Oe===null&&(Oe=at);break}r&&Oe&&Tr.alternate===null&&o(J,Oe),X=_(Tr,X,Ke),dt===null?Re=Tr:dt.sibling=Tr,dt=Tr,Oe=at}if(ut.done)return c(J,Oe),ot&&Ai(J,Ke),Re;if(Oe===null){for(;!ut.done;Ke++,ut=ne.next())ut=me(J,ut.value,ue),ut!==null&&(X=_(ut,X,Ke),dt===null?Re=ut:dt.sibling=ut,dt=ut);return ot&&Ai(J,Ke),Re}for(Oe=m(Oe);!ut.done;Ke++,ut=ne.next())ut=oe(Oe,J,Ke,ut.value,ue),ut!==null&&(r&&ut.alternate!==null&&Oe.delete(ut.key===null?Ke:ut.key),X=_(ut,X,Ke),dt===null?Re=ut:dt.sibling=ut,dt=ut);return r&&Oe.forEach(function(e8){return o(J,e8)}),ot&&Ai(J,Ke),Re}function jt(J,X,ne,ue){if(typeof ne=="object"&&ne!==null&&ne.type===w&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:e:{for(var Re=ne.key;X!==null;){if(X.key===Re){if(Re=ne.type,Re===w){if(X.tag===7){c(J,X.sibling),ue=v(X,ne.props.children),ue.return=J,J=ue;break e}}else if(X.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===k&&oa(Re)===X.type){c(J,X.sibling),ue=v(X,ne.props),El(ue,ne),ue.return=J,J=ue;break e}c(J,X);break}else o(J,X);X=X.sibling}ne.type===w?(ue=na(ne.props.children,J.mode,ue,ne.key),ue.return=J,J=ue):(ue=eu(ne.type,ne.key,ne.props,null,J.mode,ue),El(ue,ne),ue.return=J,J=ue)}return $(J);case b:e:{for(Re=ne.key;X!==null;){if(X.key===Re)if(X.tag===4&&X.stateNode.containerInfo===ne.containerInfo&&X.stateNode.implementation===ne.implementation){c(J,X.sibling),ue=v(X,ne.children||[]),ue.return=J,J=ue;break e}else{c(J,X);break}else o(J,X);X=X.sibling}ue=Fh(ne,J.mode,ue),ue.return=J,J=ue}return $(J);case k:return ne=oa(ne),jt(J,X,ne,ue)}if(Q(ne))return Ae(J,X,ne,ue);if(z(ne)){if(Re=z(ne),typeof Re!="function")throw Error(s(150));return ne=Re.call(ne),De(J,X,ne,ue)}if(typeof ne.then=="function")return jt(J,X,ou(ne),ue);if(ne.$$typeof===E)return jt(J,X,su(J,ne),ue);lu(J,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,X!==null&&X.tag===6?(c(J,X.sibling),ue=v(X,ne),ue.return=J,J=ue):(c(J,X),ue=Lh(ne,J.mode,ue),ue.return=J,J=ue),$(J)):c(J,X)}return function(J,X,ne,ue){try{$l=0;var Re=jt(J,X,ne,ue);return oo=null,Re}catch(Oe){if(Oe===ao||Oe===ru)throw Oe;var dt=ds(29,Oe,null,J.mode);return dt.lanes=ue,dt.return=J,dt}finally{}}}var ca=Y1(!0),K1=Y1(!1),fr=!1;function Xh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zh(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function mr(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function hr(r,o,c){var m=r.updateQueue;if(m===null)return null;if(m=m.shared,(pt&2)!==0){var v=m.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),m.pending=o,o=Jd(r),M1(r,null,c),o}return Qd(r,m,o,c),Jd(r)}function Tl(r,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var m=o.lanes;m&=r.pendingLanes,c|=m,o.lanes=c,Zr(r,c)}}function Qh(r,o){var c=r.updateQueue,m=r.alternate;if(m!==null&&(m=m.updateQueue,c===m)){var v=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var $={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?v=_=$:_=_.next=$,c=c.next}while(c!==null);_===null?v=_=o:_=_.next=o}else v=_=o;c={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:m.shared,callbacks:m.callbacks},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=o:r.next=o,c.lastBaseUpdate=o}var Jh=!1;function Al(){if(Jh){var r=ro;if(r!==null)throw r}}function kl(r,o,c,m){Jh=!1;var v=r.updateQueue;fr=!1;var _=v.firstBaseUpdate,$=v.lastBaseUpdate,P=v.shared.pending;if(P!==null){v.shared.pending=null;var G=P,se=G.next;G.next=null,$===null?_=se:$.next=se,$=G;var de=r.alternate;de!==null&&(de=de.updateQueue,P=de.lastBaseUpdate,P!==$&&(P===null?de.firstBaseUpdate=se:P.next=se,de.lastBaseUpdate=G))}if(_!==null){var me=v.baseState;$=0,de=se=G=null,P=_;do{var ie=P.lane&-536870913,oe=ie!==P.lane;if(oe?(rt&ie)===ie:(m&ie)===ie){ie!==0&&ie===io&&(Jh=!0),de!==null&&(de=de.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var Ae=r,De=P;ie=o;var jt=c;switch(De.tag){case 1:if(Ae=De.payload,typeof Ae=="function"){me=Ae.call(jt,me,ie);break e}me=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=De.payload,ie=typeof Ae=="function"?Ae.call(jt,me,ie):Ae,ie==null)break e;me=g({},me,ie);break e;case 2:fr=!0}}ie=P.callback,ie!==null&&(r.flags|=64,oe&&(r.flags|=8192),oe=v.callbacks,oe===null?v.callbacks=[ie]:oe.push(ie))}else oe={lane:ie,tag:P.tag,payload:P.payload,callback:P.callback,next:null}
vendor: 4,754 bytes, line 137
137,de===null?(se=de=oe,G=me):de=de.next=oe,$|=ie;if(P=P.next,P===null){if(P=v.shared.pending,P===null)break;oe=P,P=oe.next,oe.next=null,v.lastBaseUpdate=oe,v.shared.pending=null}}while(!0);de===null&&(G=me),v.baseState=G,v.firstBaseUpdate=se,v.lastBaseUpdate=de,_===null&&(v.shared.lanes=0),br|=$,r.lanes=$,r.memoizedState=me}}function X1(r,o){if(typeof r!="function")throw Error(s(191,r));r.call(o)}function Z1(r,o){var c=r.callbacks;if(c!==null)for(r.callbacks=null,r=0;r<c.length;r++)X1(c[r],o)}var lo=T(null),cu=T(0);function Q1(r,o){r=zi,Y(cu,r),Y(lo,o),zi=r|o.baseLanes}function ep(){Y(cu,zi),Y(lo,lo.current)}function tp(){zi=cu.current,A(lo),A(cu)}var us=T(null),As=null;function pr(r){var o=r.alternate;Y(Ht,Ht.current&1),Y(us,r),As===null&&(o===null||lo.current!==null||o.memoizedState!==null)&&(As=r)}function np(r){Y(Ht,Ht.current),Y(us,r),As===null&&(As=r)}function J1(r){r.tag===22?(Y(Ht,Ht.current),Y(us,r),As===null&&(As=r)):gr()}function gr(){Y(Ht,Ht.current),Y(us,us.current)}function fs(r){A(us),As===r&&(As=null),A(Ht)}var Ht=T(0);function du(r){for(var o=r;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||lg(c)||cg(c)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Oi=0,Ye=null,xt=null,Qt=null,uu=!1,co=!1,da=!1,fu=0,Ml=0,uo=null,H5=0;function Dt(){throw Error(s(321))}function sp(r,o){if(o===null)return!1;for(var c=0;c<o.length&&c<r.length;c++)if(!cs(r[c],o[c]))return!1;return!0}function ip(r,o,c,m,v,_){return Oi=_,Ye=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,D.H=r===null||r.memoizedState===null?Dx:bp,da=!1,_=c(m,v),da=!1,co&&(_=tx(o,c,m,v)),ex(r),_}function ex(r){D.H=Pl;var o=xt!==null&&xt.next!==null;if(Oi=0,Qt=xt=Ye=null,uu=!1,Ml=0,uo=null,o)throw Error(s(300));r===null||Jt||(r=r.dependencies,r!==null&&nu(r)&&(Jt=!0))}function tx(r,o,c,m){Ye=r;var v=0;do{if(co&&(uo=null),Ml=0,co=!1,25<=v)throw Error(s(301));if(v+=1,Qt=xt=null,r.updateQueue!=null){var _=r.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}D.H=Lx,_=o(c,m)}while(co);return _}function q5(){var r=D.H,o=r.useState()[0];return o=typeof o.then=="function"?Ol(o):o,r=r.useState()[0],(xt!==null?xt.memoizedState:null)!==r&&(Ye.flags|=1024),o}function rp(){var r=fu!==0;return fu=0,r}function ap(r,o,c){o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~c}function op(r){if(uu){for(r=r.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}uu=!1}Oi=0,Qt=xt=Ye=null,co=!1,Ml=fu=0,uo=null}function Ln(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?Ye.memoizedState=Qt=r:Qt=Qt.next=r,Qt}function qt(){if(xt===null){var r=Ye.alternate;r=r!==null?r.memoizedState:null}else r=xt.next;var o=Qt===null?Ye.memoizedState:Qt.next;if(o!==null)Qt=o,xt=r;else{if(r===null)throw Ye.alternate===null?Error(s(467)):Error(s(310));xt=r,r={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Qt===null?Ye.memoizedState=Qt=r:Qt=Qt.next=r}return Qt}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ol(r){var o=Ml;return Ml+=1,uo===null&&(uo=[]),r=q1(uo,r,o),o=Ye,(Qt===null?o.memoizedState:Qt.next)===null&&(o=o.alternate,D.H=o===null||o.memoizedState===null?Dx:bp),r}function hu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Ol(r);if(r.$$typeof===E)return bn(r)}throw Error(s(438,String(r)))}function lp(r){var o=null,c=Ye.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var m=Ye.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=mu(),Ye.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(r),m=0;m<r;m++)c[m]=I;return o.index++,c}function Ri(r,o){return typeof o=="function"?o(r):o}function pu(r){var o=qt();return cp(o,xt,r)}function cp(r,o,c){var m=r.queue;if(m===null)throw Error(s(311));m.lastRenderedReducer=c;var v=r.baseQueue,_=m.pending;if(_!==null){if(v!==null){var $=v.next;v.next=_.next,_.next=$}o.baseQueue=v=_,m.pending=null}if(_=r.baseState,v===null)r.memoizedState=_;else{o=v.next;var P=$=null,G=null,se=o,de=!1;do{var me=se.lane&-536870913;if(me!==se.lane?(rt&me)===me:(Oi&me)===me){var ie=se.revertLane;
vendor: 13,239 bytes, line 137
137if(ie===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),me===io&&(de=!0);else if((Oi&ie)===ie){se=se.next,ie===io&&(de=!0);continue}else me={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},G===null?(P=G=me,$=_):G=G.next=me,Ye.lanes|=ie,br|=ie;me=se.action,da&&c(_,me),_=se.hasEagerState?se.eagerState:c(_,me)}else ie={lane:me,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},G===null?(P=G=ie,$=_):G=G.next=ie,Ye.lanes|=me,br|=me;se=se.next}while(se!==null&&se!==o);if(G===null?$=_:G.next=P,!cs(_,r.memoizedState)&&(Jt=!0,de&&(c=ro,c!==null)))throw c;r.memoizedState=_,r.baseState=$,r.baseQueue=G,m.lastRenderedState=_}return v===null&&(m.lanes=0),[r.memoizedState,m.dispatch]}function dp(r){var o=qt(),c=o.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=r;var m=c.dispatch,v=c.pending,_=o.memoizedState;if(v!==null){c.pending=null;var $=v=v.next;do _=r(_,$.action),$=$.next;while($!==v);cs(_,o.memoizedState)||(Jt=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),c.lastRenderedState=_}return[_,m]}function nx(r,o,c){var m=Ye,v=qt(),_=ot;if(_){if(c===void 0)throw Error(s(407));c=c()}else c=o();var $=!cs((xt||v).memoizedState,c);if($&&(v.memoizedState=c,Jt=!0),v=v.queue,mp(rx.bind(null,m,v,r),[r]),v.getSnapshot!==o||$||Qt!==null&&Qt.memoizedState.tag&1){if(m.flags|=2048,fo(9,{destroy:void 0},ix.bind(null,m,v,c,o),null),St===null)throw Error(s(349));_||(Oi&127)!==0||sx(m,o,c)}return c}function sx(r,o,c){r.flags|=16384,r={getSnapshot:o,value:c},o=Ye.updateQueue,o===null?(o=mu(),Ye.updateQueue=o,o.stores=[r]):(c=o.stores,c===null?o.stores=[r]:c.push(r))}function ix(r,o,c,m){o.value=c,o.getSnapshot=m,ax(o)&&ox(r)}function rx(r,o,c){return c(function(){ax(o)&&ox(r)})}function ax(r){var o=r.getSnapshot;r=r.value;try{var c=o();return!cs(r,c)}catch{return!0}}function ox(r){var o=ta(r,2);o!==null&&Zn(o,r,2)}function up(r){var o=Ln();if(typeof r=="function"){var c=r;if(r=c(),da){js(!0);try{c()}finally{js(!1)}}}return o.memoizedState=o.baseState=r,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:r},o}function lx(r,o,c,m){return r.baseState=c,cp(r,xt,typeof m=="function"?m:Ri)}function G5(r,o,c,m,v){if(yu(r))throw Error(s(485));if(r=o.action,r!==null){var _={payload:v,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function($){_.listeners.push($)}};D.T!==null?c(!0):_.isTransition=!1,m(_),c=o.pending,c===null?(_.next=o.pending=_,cx(o,_)):(_.next=c.next,o.pending=c.next=_)}}function cx(r,o){var c=o.action,m=o.payload,v=r.state;if(o.isTransition){var _=D.T,$={};D.T=$;try{var P=c(v,m),G=D.S;G!==null&&G($,P),dx(r,o,P)}catch(se){fp(r,o,se)}finally{_!==null&&$.types!==null&&(_.types=$.types),D.T=_}}else try{_=c(v,m),dx(r,o,_)}catch(se){fp(r,o,se)}}function dx(r,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(m){ux(r,o,m)},function(m){return fp(r,o,m)}):ux(r,o,c)}function ux(r,o,c){o.status="fulfilled",o.value=c,fx(o),r.state=c,o=r.pending,o!==null&&(c=o.next,c===o?r.pending=null:(c=c.next,o.next=c,cx(r,c)))}function fp(r,o,c){var m=r.pending;if(r.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=c,fx(o),o=o.next;while(o!==m)}r.action=null}function fx(r){r=r.listeners;for(var o=0;o<r.length;o++)(0,r[o])()}function mx(r,o){return o}function hx(r,o){if(ot){var c=St.formState;if(c!==null){e:{var m=Ye;if(ot){if(Ct){t:{for(var v=Ct,_=Ts;v.nodeType!==8;){if(!_){v=null;break t}if(v=ks(v.nextSibling),v===null){v=null;break t}}_=v.data,v=_==="F!"||_==="F"?v:null}if(v){Ct=ks(v.nextSibling),m=v.data==="F!";break e}}dr(m)}m=!1}m&&(o=c[0])}}return c=Ln(),c.memoizedState=c.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mx,lastRenderedState:o},c.queue=m,c=Ox.bind(null,Ye,m),m.dispatch=c,m=up(!1),_=yp.bind(null,Ye,!1,m.queue),m=Ln(),v={state:o,dispatch:null,action:r,pending:null},m.queue=v,c=G5.bind(null,Ye,v,_,c),v.dispatch=c,m.memoizedState=r,[o,c,!1]}function px(r){var o=qt();return gx(o,xt,r)}function gx(r,o,c){if(o=cp(r,o,mx)[0],r=pu(Ri)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var m=Ol(o)}catch($){throw $===ao?ru:$}else m=o;o=qt();var v=o.queue,_=v.dispatch;return c!==o.memoizedState&&(Ye.flags|=2048,fo(9,{destroy:void 0},W5.bind(null,v,c),null)),[m,_,r]}function W5(r,o){r.action=o}function vx(r){var o=qt(),c=xt;if(c!==null)return gx(o,c,r);qt(),o=o.memoizedState,c=qt();var m=c.queue.dispatch;return c.memoizedState=r,[o,m,!1]}function fo(r,o,c,m){return r={tag:r,create:c,deps:m,inst:o,next:null},o=Ye.updateQueue,o===null&&(o=mu(),Ye.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=r.next=r:(m=c.next,c.next=r,r.next=m,o.lastEffect=r),r}function yx(){return qt().memoizedState}function gu(r,o,c,m){var v=Ln();Ye.flags|=r,v.memoizedState=fo(1|o,{destroy:void 0},c,m===void 0?null:m)}function vu(r,o,c,m){var v=qt();m=m===void 0?null:m;var _=v.memoizedState.inst;xt!==null&&m!==null&&sp(m,xt.memoizedState.deps)?v.memoizedState=fo(o,_,c,m):(Ye.flags|=r,v.memoizedState=fo(1|o,_,c,m))}function bx(r,o){gu(8390656,8,r,o)}function mp(r,o){vu(2048,8,r,o)}function Y5(r){Ye.flags|=4;var o=Ye.updateQueue;if(o===null)o=mu(),Ye.updateQueue=o,o.events=[r];else{var c=o.events;c===null?o.events=[r]:c.push(r)}}function xx(r){var o=qt().memoizedState;return Y5({ref:o,nextImpl:r}),function(){if((pt&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}function _x(r,o){return vu(4,2,r,o)}function jx(r,o){return vu(4,4,r,o)}function wx(r,o){if(typeof o=="function"){r=r();var c=o(r);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Sx(r,o,c){c=c!=null?c.concat([r]):null,vu(4,4,wx.bind(null,o,r),c)}function hp(){}function Nx(r,o){var c=qt();o=o===void 0?null:o;var m=c.memoizedState;return o!==null&&sp(o,m[1])?m[0]:(c.memoizedState=[r,o],r)}function Cx(r,o){var c=qt();o=o===void 0?null:o;var m=c.memoizedState;if(o!==null&&sp(o,m[1]))return m[0];if(m=r(),da){js(!0);try{r()}finally{js(!1)}}return c.memoizedState=[m,o],m}function pp(r,o,c){return c===void 0||(Oi&1073741824)!==0&&(rt&261930)===0?r.memoizedState=o:(r.memoizedState=c,r=$_(),Ye.lanes|=r,br|=r,c)}function $x(r,o,c,m){return cs(c,o)?c:lo.current!==null?(r=pp(r,c,m),cs(r,o)||(Jt=!0),r):(Oi&42)===0||(Oi&1073741824)!==0&&(rt&261930)===0?(Jt=!0,r.memoizedState=c):(r=$_(),Ye.lanes|=r,br|=r,o)}function Ex(r,o,c,m,v){var _=H.p;H.p=_!==0&&8>_?_:8;var $=D.T,P={};D.T=P,yp(r,!1,o,c);try{var G=v(),se=D.S;if(se!==null&&se(P,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var de=U5(G,m);Rl(r,o,de,ps(r))}else Rl(r,o,m,ps(r))}catch(me){Rl(r,o,{then:function(){},status:"rejected",reason:me},ps())}finally{H.p=_,$!==null&&P.types!==null&&($.types=P.types),D.T=$}}function K5(){}function gp(r,o,c,m){if(r.tag!==5)throw Error(s(476));var v=Tx(r).queue;Ex(r,v,o,U,c===null?K5:function(){return Ax(r),c(m)})}function Tx(r){var o=r.memoizedState;if(o!==null)return o;o={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:U},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:c},next:null},r.memoizedState=o,r=r.alternate,r!==null&&(r.memoizedState=o),o}function Ax(r){var o=Tx(r);o.next===null&&(o=r.alternate.memoizedState),Rl(r,o.next.queue,{},ps())}function vp(){return bn(Zl)}function kx(){return qt().memoizedState}function Mx(){return qt().memoizedState}function X5(r){for(var o=r.return;o!==null;){switch(o.tag){case 24:case 3:var c=ps();r=mr(c);var m=hr(o,r,c);m!==null&&(Zn(m,o,c),Tl(m,o,c)),o={cache:Gh()},r.payload=o;return}o=o.return}}function Z5(r,o,c){var m=ps();c={lane:m,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},yu(r)?Rx(o,c):(c=Ph(r,o,c,m),c!==null&&(Zn(c,r,m),Px(c,o,m)))}function Ox(r,o,c){var m=ps();Rl(r,o,c,m)}function Rl(r,o,c,m){var v={lane:m,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(yu(r))Rx(o,v);else{var _=r.alternate;if(r.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var $=o.lastRenderedState,P=_($,c);if(v.hasEagerState=!0,v.eagerState=P,cs(P,$))return Qd(r,o,v,0),St===null&&Zd(),!1}catch{}finally{}if(c=Ph(r,o,v,m),c!==null)return Zn(c,r,m),Px(c,o,m),!0}return!1}function yp(r,o,c,m){if(m={lane:2,revertLane:Xp(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},yu(r)){if(o)throw Error(s(479))}else o=Ph(r,c,m,2),o!==null&&Zn(o,r,2)}function yu(r){var o=r.alternate;return r===Ye||o!==null&&o===Ye}function Rx(r,o){co=uu=!0;var c=r.pending;c===null?o.next=o:(o.next=c.next,c.next=o),r.pending=o}function Px(r,o,c){if((c&4194048)!==0){var m=o.lanes;m&=r.pendingLanes,c|=m,o.lanes=c,Zr(r,c)}}var Pl={readContext:bn,use:hu,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};Pl.useEffectEvent=Dt;var Dx={readContext:bn,use:hu,useCallback:function(r,o){return Ln().memoizedState=[r,o===void 0?null:o],r},useContext:bn,useEffect:bx,useImperativeHandle:function(r,o,c){c=c!=null?c.concat([r]):null,gu(4194308,4,wx.bind(null,o,r),c)},useLayoutEffect:function(r,o){return gu(4194308,4,r,o)},useInsertionEffect:function(r,o){gu(4,2,r,o)},useMemo:function(r,o){var c=Ln();o=o===void 0?null:o;var m=r();if(da){js(!0);try{r()}finally{js(!1)}}return c.memoizedState=[m,o],m},useReducer:function(r,o,c){var m=Ln();if(c!==void 0){var v=c(o);if(da){js(!0);try{c(o)}finally{js(!1)}}}else v=o;return m.memoizedState=m.baseState=v,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:v},m.queue=r,r=r.dispatch=Z5.bind(null,Ye,r),[m.memoizedState,r]},useRef:function(r){var o=Ln();return r={current:r},o.memoizedState=r},useState:function(r){r=up(r);var o=r.queue,c=Ox.bind(null,Ye,o);return o.dispatch=c,[r.memoizedState,c]},useDebugValue:hp,useDeferredValue:function(r,o){var c=Ln();return pp(c,r,o)},useTransition:function(){var r=up(!1);return r=Ex.bind(null,Ye,r.queue,!0,!1),Ln().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,o,c){var m=Ye,v=Ln();if(ot){if(c===void 0)throw Error(s(407));c=c()}else{if(c=o(),St===null)throw Error(s(349));(rt&127)!==0||sx(m,o,c)}v.memoizedState=c;var _={value:c,getSnapshot:o};return v.queue=_,bx(rx.bind(null,m,_,r),[r]),m.flags|=2048,fo(9,{destroy:void 0},ix.bind(null,m,_,c,o),null),c},useId:function(){var r=Ln(),o=St.identifierPrefix;if(ot){var c=oi,m=ai;c=(m&~(1<<32-un(m)-1)).toString(32)+c,o="_"+o+"R_"+c,c=fu++,0<c&&(o+="H"+c.toString(32)),o+="_"}else c=H5++,o="_"+o+"r_"+c.toString(32)+"_";return r.memoizedState=o},useHostTransitionStatus:vp,useFormState:hx,useActionState:hx,useOptimistic:function(r){var o=Ln();o.memoizedState=o.baseState=r;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=yp.bind(null,Ye,!0,c),c.dispatch=o,[r,o]},useMemoCache:lp,useCacheRefresh:function(){return Ln().memoizedState=X5.bind(null,Ye)},useEffectEvent:function(r){var o=Ln(),c={impl:r};return o.memoizedState=c,function(){if((pt&2)!==0)throw Error(s(440));return c.impl.apply(void 0,arguments)}}},bp={readContext:bn,use:hu,useCallback:Nx,useContext:bn,useEffect:mp,useImperativeHandle:Sx,useInsertionEffect:_x,useLayoutEffect:jx,useMemo:Cx,useReducer:pu,useRef:yx,useState:function(){return pu(Ri)},useDebugValue:hp,useDeferredValue:function(r,o){var c=qt();return $x(c,xt.memoizedState,r,o)},useTransition:function(){var r=pu(Ri)[0],o=qt().memoizedState;return[typeof r=="boolean"?r:Ol(r),o]},useSyncExternalStore:nx,useId:kx,useHostTransitionStatus:vp,useFormState:px,useActionState:px,useOptimistic:function(r,o){var c=qt();return lx(c,xt,r,o)},useMemoCache:lp,useCacheRefresh:Mx};bp.useEffectEvent=xx;var Lx={readContext:bn,use:hu,useCallback:Nx,useContext:bn,useEffect:mp,useImperativeHandle:Sx,useInsertionEffect:_x,useLayoutEffect:jx,useMemo:Cx,useReducer:dp,useRef:yx,useState:function(){return dp(Ri)},useDebugValue:hp,useDeferredValue:function(r,o){var c=qt();return xt===null?pp(c,r,o):$x(c,xt.memoizedState,r,o)},useTransition:function(){var r=dp(Ri)[0],o=qt().memoizedState;return[typeof r=="boolean"?r:Ol(r),o]},useSyncExternalStore:nx,useId:kx,useHostTransitionStatus:vp,useFormState:vx,useActionState:vx,useOptimistic:function(r,o){var c=qt();return xt!==null?lx(c,xt,r,o):(c.baseState=r,[r,c.queue.dispatch])},useMemoCache:lp,useCacheRefresh:Mx};Lx.useEffectEvent=xx;function xp(r,o,c,m){o=r.memoizedState,c=c(m,o),c=c==null?o:g({},o,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var _p={enqueueSetState:function(r,o,c){r=r._reactInternals;var m=ps(),v=mr(m);v.payload=o,c!=null&&(v.callback=c),o=hr(r,v,m),o!==null&&(Zn(o,r,m),Tl(
vendor: 17,462 bytes, line 137
137o,r,m))},enqueueReplaceState:function(r,o,c){r=r._reactInternals;var m=ps(),v=mr(m);v.tag=1,v.payload=o,c!=null&&(v.callback=c),o=hr(r,v,m),o!==null&&(Zn(o,r,m),Tl(o,r,m))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var c=ps(),m=mr(c);m.tag=2,o!=null&&(m.callback=o),o=hr(r,m,c),o!==null&&(Zn(o,r,c),Tl(o,r,c))}};function Fx(r,o,c,m,v,_,$){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(m,_,$):o.prototype&&o.prototype.isPureReactComponent?!_l(c,m)||!_l(v,_):!0}function Ix(r,o,c,m){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,m),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,m),o.state!==r&&_p.enqueueReplaceState(o,o.state,null)}function ua(r,o){var c=o;if("ref"in o){c={};for(var m in o)m!=="ref"&&(c[m]=o[m])}if(r=r.defaultProps){c===o&&(c=g({},c));for(var v in r)c[v]===void 0&&(c[v]=r[v])}return c}function Bx(r){Xd(r)}function zx(r){console.error(r)}function Vx(r){Xd(r)}function bu(r,o){try{var c=r.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(m){setTimeout(function(){throw m})}}function Ux(r,o,c){try{var m=r.onCaughtError;m(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function jp(r,o,c){return c=mr(c),c.tag=3,c.payload={element:null},c.callback=function(){bu(r,o)},c}function Hx(r){return r=mr(r),r.tag=3,r}function qx(r,o,c,m){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var _=m.value;r.payload=function(){return v(_)},r.callback=function(){Ux(o,c,m)}}var $=c.stateNode;$!==null&&typeof $.componentDidCatch=="function"&&(r.callback=function(){Ux(o,c,m),typeof v!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var P=m.stack;this.componentDidCatch(m.value,{componentStack:P!==null?P:""})})}function Q5(r,o,c,m,v){if(c.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(o=c.alternate,o!==null&&so(o,c,v,!0),c=us.current,c!==null){switch(c.tag){case 31:case 13:return As===null?ku():c.alternate===null&&Lt===0&&(Lt=3),c.flags&=-257,c.flags|=65536,c.lanes=v,m===au?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([m]):o.add(m),Wp(r,m,v)),!1;case 22:return c.flags|=65536,m===au?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([m]):c.add(m)),Wp(r,m,v)),!1}throw Error(s(435,c.tag))}return Wp(r,m,v),ku(),!1}if(ot)return o=us.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,m!==zh&&(r=Error(s(422),{cause:m}),Sl(Cs(r,c)))):(m!==zh&&(o=Error(s(423),{cause:m}),Sl(Cs(o,c))),r=r.current.alternate,r.flags|=65536,v&=-v,r.lanes|=v,m=Cs(m,c),v=jp(r.stateNode,m,v),Qh(r,v),Lt!==4&&(Lt=2)),!1;var _=Error(s(520),{cause:m});if(_=Cs(_,c),Ul===null?Ul=[_]:Ul.push(_),Lt!==4&&(Lt=2),o===null)return!0;m=Cs(m,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,r=v&-v,c.lanes|=r,r=jp(c.stateNode,m,r),Qh(c,r),!1;case 1:if(o=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(xr===null||!xr.has(_))))return c.flags|=65536,v&=-v,c.lanes|=v,v=Hx(v),qx(v,r,c,m),Qh(c,v),!1}c=c.return}while(c!==null);return!1}var wp=Error(s(461)),Jt=!1;function xn(r,o,c,m){o.child=r===null?K1(o,null,c,m):ca(o,r.child,c,m)}function Gx(r,o,c,m,v){c=c.render;var _=o.ref;if("ref"in m){var $={};for(var P in m)P!=="ref"&&($[P]=m[P])}else $=m;return ra(o),m=ip(r,o,c,$,_,v),P=rp(),r!==null&&!Jt?(ap(r,o,v),Pi(r,o,v)):(ot&&P&&Ih(o),o.flags|=1,xn(r,o,m,v),o.child)}function Wx(r,o,c,m,v){if(r===null){var _=c.type;return typeof _=="function"&&!Dh(_)&&_.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=_,Yx(r,o,_,m,v)):(r=eu(c.type,null,m,o,o.mode,v),r.ref=o.ref,r.return=o,o.child=r)}if(_=r.child,!kp(r,v)){var $=_.memoizedProps;if(c=c.compare,c=c!==null?c:_l,c($,m)&&r.ref===o.ref)return Pi(r,o,v)}return o.flags|=1,r=Ti(_,m),r.ref=o.ref,r.return=o,o.child=r}function Yx(r,o,c,m,v){if(r!==null){var _=r.memoizedProps;if(_l(_,m)&&r.ref===o.ref)if(Jt=!1,o.pendingProps=m=_,kp(r,v))(r.flags&131072)!==0&&(Jt=!0);else return o.lanes=r.lanes,Pi(r,o,v)}return Sp(r,o,c,m,v)}function Kx(r,o,c,m){var v=m.children,_=r!==null?r.memoizedState:null;if(r===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((o.flags&128)!==0){if(_=_!==null?_.baseLanes|c:c,r!==null){for(m=o.child=r.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~_}else m=0,o.child=null;return Xx(r,o,_,c,m)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},r!==null&&iu(o,_!==null?_.cachePool:null),_!==null?Q1(o,_):ep(),J1(o);else return m=o.lanes=536870912,Xx(r,o,_!==null?_.baseLanes|c:c,c,m)}else _!==null?(iu(o,_.cachePool),Q1(o,_),gr(),o.memoizedState=null):(r!==null&&iu(o,null),ep(),gr());return xn(r,o,v,c),o.child}function Dl(r,o){return r!==null&&r.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Xx(r,o,c,m,v){var _=Yh();return _=_===null?null:{parent:Zt._currentValue,pool:_},o.memoizedState={baseLanes:c,cachePool:_},r!==null&&iu(o,null),ep(),J1(o),r!==null&&so(r,o,m,!0),o.childLanes=v,null}function xu(r,o){return o=ju({mode:o.mode,children:o.children},r.mode),o.ref=r.ref,r.child=o,o.return=r,o}function Zx(r,o,c){return ca(o,r.child,null,c),r=xu(o,o.pendingProps),r.flags|=2,fs(o),o.memoizedState=null,r}function J5(r,o,c){var m=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,r===null){if(ot){if(m.mode==="hidden")return r=xu(o,m),o.lanes=536870912,Dl(null,r);if(np(o),(r=Ct)?(r=c2(r,Ts),r=r!==null&&r.data==="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:lr!==null?{id:ai,overflow:oi}:null,retryLane:536870912,hydrationErrors:null},c=R1(r),c.return=o,o.child=c,yn=o,Ct=null)):r=null,r===null)throw dr(o);return o.lanes=536870912,null}return xu(o,m)}var _=r.memoizedState;if(_!==null){var $=_.dehydrated;if(np(o),v)if(o.flags&256)o.flags&=-257,o=Zx(r,o,c);else if(o.memoizedState!==null)o.child=r.child,o.flags|=128,o=null;else throw Error(s(558));else if(Jt||so(r,o,c,!1),v=(c&r.childLanes)!==0,Jt||v){if(m=St,m!==null&&($=Va(m,c),$!==0&&$!==_.retryLane))throw _.retryLane=$,ta(r,$),Zn(m,r,$),wp;ku(),o=Zx(r,o,c)}else r=_.treeContext,Ct=ks($.nextSibling),yn=o,ot=!0,cr=null,Ts=!1,r!==null&&L1(o,r),o=xu(o,m),o.flags|=4096;return o}return r=Ti(r.child,{mode:m.mode,children:m.children}),r.ref=o.ref,o.child=r,r.return=o,r}function _u(r,o){var c=o.ref;if(c===null)r!==null&&r.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(s(284));(r===null||r.ref!==c)&&(o.flags|=4194816)}}function Sp(r,o,c,m,v){return ra(o),c=ip(r,o,c,m,void 0,v),m=rp(),r!==null&&!Jt?(ap(r,o,v),Pi(r,o,v)):(ot&&m&&Ih(o),o.flags|=1,xn(r,o,c,v),o.child)}function Qx(r,o,c,m,v,_){return ra(o),o.updateQueue=null,c=tx(o,m,c,v),ex(r),m=rp(),r!==null&&!Jt?(ap(r,o,_),Pi(r,o,_)):(ot&&m&&Ih(o),o.flags|=1,xn(r,o,c,_),o.child)}function Jx(r,o,c,m,v){if(ra(o),o.stateNode===null){var _=Ja,$=c.contextType;typeof $=="object"&&$!==null&&(_=bn($)),_=new c(m,_),o.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=_p,o.stateNode=_,_._reactInternals=o,_=o.stateNode,_.props=m,_.state=o.memoizedState,_.refs={},Xh(o),$=c.contextType,_.context=typeof $=="object"&&$!==null?bn($):Ja,_.state=o.memoizedState,$=c.getDerivedStateFromProps,typeof $=="function"&&(xp(o,c,$,m),_.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||($=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),$!==_.state&&_p.enqueueReplaceState(_,_.state,null),kl(o,m,_,v),Al(),_.state=o.memoizedState),typeof _.componentDidMount=="function"&&(o.flags|=4194308),m=!0}else if(r===null){_=o.stateNode;var P=o.memoizedProps,G=ua(c,P);_.props=G;var se=_.context,de=c.contextType;$=Ja,typeof de=="object"&&de!==null&&($=bn(de));var me=c.getDerivedStateFromProps;de=typeof me=="function"||typeof _.getSnapshotBeforeUpdate=="function",P=o.pendingProps!==P,de||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(P||se!==$)&&Ix(o,_,m,$),fr=!1;var ie=o.memoizedState;_.state=ie,kl(o,m,_,v),Al(),se=o.memoizedState,P||ie!==se||fr?(typeof me=="function"&&(xp(o,c,me,m),se=o.memoizedState),(G=fr||Fx(o,c,G,m,ie,se,$))?(de||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=m,o.memoizedState=se),_.props=m,_.state=se,_.context=$,m=G):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),m=!1)}else{_=o.stateNode,Zh(r,o),$=o.memoizedProps,de=ua(c,$),_.props=de,me=o.pendingProps,ie=_.context,se=c.contextType,G=Ja,typeof se=="object"&&se!==null&&(G=bn(se)),P=c.getDerivedStateFromProps,(se=typeof P=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||($!==me||ie!==G)&&Ix(o,_,m,G),fr=!1,ie=o.memoizedState,_.state=ie,kl(o,m,_,v),Al();var oe=o.memoizedState;$!==me||ie!==oe||fr||r!==null&&r.dependencies!==null&&nu(r.dependencies)?(typeof P=="function"&&(xp(o,c,P,m),oe=o.memoizedState),(de=fr||Fx(o,c,de,m,ie,oe,G)||r!==null&&r.dependencies!==null&&nu(r.dependencies))?(se||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(m,oe,G),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(m,oe,G)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||$===r.memoizedProps&&ie===r.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||$===r.memoizedProps&&ie===r.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=oe),_.props=m,_.state=oe,_.context=G,m=de):(typeof _.componentDidUpdate!="function"||$===r.memoizedProps&&ie===r.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||$===r.memoizedProps&&ie===r.memoizedState||(o.flags|=1024),m=!1)}return _=m,_u(r,o),m=(o.flags&128)!==0,_||m?(_=o.stateNode,c=m&&typeof c.getDerivedStateFromError!="function"?null:_.render(),o.flags|=1,r!==null&&m?(o.child=ca(o,r.child,null,v),o.child=ca(o,null,c,v)):xn(r,o,c,v),o.memoizedState=_.state,r=o.child):r=Pi(r,o,v),r}function e_(r,o,c,m){return sa(),o.flags|=256,xn(r,o,c,m),o.child}var Np={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cp(r){return{baseLanes:r,cachePool:U1()}}function $p(r,o,c){return r=r!==null?r.childLanes&~c:0,o&&(r|=hs),r}function t_(r,o,c){var m=o.pendingProps,v=!1,_=(o.flags&128)!==0,$;if(($=_)||($=r!==null&&r.memoizedState===null?!1:(Ht.current&2)!==0),$&&(v=!0,o.flags&=-129),$=(o.flags&32)!==0,o.flags&=-33,r===null){if(ot){if(v?pr(o):gr(),(r=Ct)?(r=c2(r,Ts),r=r!==null&&r.data!=="&"?r:null,r!==null&&(o.memoizedState={dehydrated:r,treeContext:lr!==null?{id:ai,overflow:oi}:null,retryLane:536870912,hydrationErrors:null},c=R1(r),c.return=o,o.child=c,yn=o,Ct=null)):r=null,r===null)throw dr(o);return cg(r)?o.lanes=32:o.lanes=536870912,null}var P=m.children;return m=m.fallback,v?(gr(),v=o.mode,P=ju({mode:"hidden",children:P},v),m=na(m,v,c,null),P.return=o,m.return=o,P.sibling=m,o.child=P,m=o.child,m.memoizedState=Cp(c),m.childLanes=$p(r,$,c),o.memoizedState=Np,Dl(null,m)):(pr(o),Ep(o,P))}var G=r.memoizedState;if(G!==null&&(P=G.dehydrated,P!==null)){if(_)o.flags&256?(pr(o),o.flags&=-257,o=Tp(r,o,c)):o.memoizedState!==null?(gr(),o.child=r.child,o.flags|=128,o=null):(gr(),P=m.fallback,v=o.mode,m=ju({mode:"visible",children:m.children},v),P=na(P,v,c,null),P.flags|=2,m.return=o,P.return=o,m.sibling=P,o.child=m,ca(o,r.child,null,c),m=o.child,m.memoizedState=Cp(c),m.childLanes=$p(r,$,c),o.memoizedState=Np,o=Dl(null,m));else if(pr(o),cg(P)){if($=P.nextSibling&&P.nextSibling.dataset,$)var se=$.dgst;$=se,m=Error(s(419)),m.stack="",m.digest=$,Sl({value:m,source:null,stack:null}),o=Tp(r,o,c)}else if(Jt||so(r,o,c,!1),$=(c&r.childLanes)!==0,Jt||$){if($=St,$!==null&&(m=Va($,c),m!==0&&m!==G.retryLane))throw G.retryLane=m,ta(r,m),Zn($,r,m),wp;lg(P)||ku(),o=Tp(r,o,c)}else lg(P)?(o.flags|=192,o.child=r.child,o=null):(r=G.treeContext,Ct=ks(P.nextSibling),yn=o,ot=!0,cr=null,Ts=!1,r!==null&&L1(o,r),o=Ep(o,m.children),o.flags|=4096);return o}return v?(gr(),P=m.fallback,v=o.mode,G=r.child,se=G.sibling,m=Ti(G,{mode:"hidden",children:m.children}),m.subtreeFlags=G.subtreeFlags&65011712,se!==null?P=Ti(se,P):(P=na(P,v,c,null),P.flags|=2),P.return=o,m.return=o,m.sibling=P,o.child=m,Dl(null,m),m=o.child,P=r.child.memoizedState,P===null?P=Cp(c):(v=P.cachePool,v!==null?(G=Zt._currentValue,v=v.parent!==G?{parent:G,pool:G}:v):v=U1(),P={baseLanes:P.baseLanes|c,cachePool:v}),m.memoizedState=P,m.childLanes=$p(r,$,c),o.memoizedState=Np,Dl(r.child,m)):(pr(o),c=r.child,r=c.sibling,c=Ti(c,{mode:"visible",children:m.children}),c.return=o,c.sibling=null,r!==null&&($=o.deletions,$===null?(o.deletions=[r],o.flags|=16):$.push(r)),o.child=c,o.memoizedState=null,c)}function Ep(r,o){return o=ju({mode:"visible",children:o},r.mode),o.return=r,r.child=o}function ju(r,o){return r=ds(22,r,null,o),r.lanes=0,r}function Tp(r,o,c){return ca(o,r.child,null,c),r=Ep(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function n_(r,o,c){r.lanes|=o;var m=r.alternate;m!==null&&(m.lanes|=o),Hh(r.return,o,c)}function Ap(r,o,c,m,v,_){var $=r.memoizedState;$===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:c,tailMode:v,treeForkCount:_}:($.isBackwards=o,$.rendering=null,$.renderingStartTime=0,$.last=m,$.tail=c,$.tailMode=v,$.treeForkCount=_)}function s_(r,o,c){var m=o.pendingProps,v=m.revealOrder,_=m.tail;m=m.children;var $=Ht.current,P=($&2)!==0;if(P?($=$&1|2,o.flags|=128):$&=1,Y(Ht,$),xn(r,o,m,c),m=ot?wl:0,!P&&r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&n_(r,c,o);else if(r.tag===19)n_(r,c,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(v){case"forwards":for(c=o.child,v=null;c!==null;)r=c.alternate,r!==null&&du(r)===null&&(v=c),c=c.sibling;c=v,c===null?(v=o.child,o.child=null):(v=c.sibling,c.sibling=null),Ap(o,!1,v,c,_,m);break;case"backwards":case"unstable_legacy-backwards":for(c=null,v=o.child,o.child=null;v!==null;){if(r=v.alternate,r!==null&&du(r)===null){o.child=v;break}r=v.sibling,v.sibling=c,c=v,v=r}Ap(o,!0,c,null,_,m);break;case"together":Ap(o,!1,null,null,void 0,m);break;default:o.memoizedState=null}return o.child}function Pi(r,o,c){if(r!==null&&(o.dependencies=r.dependencies),br|=o.lanes,(c&o.childLanes)===0)if(r!==null){if(so(r,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(r!==null&&o.child!==r.child)throw Error(s(153));if(o.child!==null){for(r=o.child,c=Ti(r,r.pendingProps),o.child=c,c.return=o;r.sibling!==null;)r=r.sibling,c=c.sibling=Ti(r,r.pendingProps),c.return=o;c.sibling=null}return o.child}function kp(r,o){return(r.lanes&o)!==0?!0:(r=r.dependencies,!!(r!==null&&nu(r)))}function e9(r,o,c){switch(o.tag){case 3:le(o,o.stateNode.containerInfo),ur(o,Zt,r.memoizedState.cache),sa();break;case 27:case 5:xe(o);break;case 4:le(o,o.stateNode.containerInfo);break;case 10:ur(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,np(o),null;break;case 13:var m=o.memoizedState;if(m!==null)return m.dehydrated!==null?(pr(o),o.flags|=128,null):(c&o.child.childLanes)!==0?t_(r,o,c):(pr(o),r=Pi(r,o,c),r!==null?r.sibling:null);pr(o);break;case 19:var v=(r.flags&128)!==0;if(m=(c&o.childLanes)!==0,m||(so(r,o,c,!1),m=(c&o.childLanes)!==0),v){if(m)return s_(r,o,c);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Y(Ht,Ht.current),m)break;return null;case 22:return o.lanes=0,Kx(r,o,c,o.pendingProps);case 24:ur(o,Zt,r.memoizedState.cache)}return Pi(r,o,c)}function i_(r,o,c){if(r!==null)if(r.memoizedProps!==o.pendingProps)Jt=!0;else{if(!kp(r,c)&&(o.flags&128)===0)return Jt=!1,e9(r,o,c);Jt=(r.flags&131072)!==0}else Jt=!1,ot&&(o.flags&1048576)!==0&&D1(o,wl,o.index);switch(o.lanes=0,o.tag){case 16:e:{var m=o.pendingProps;if(r=oa(o.elementType),o.type=r,typeof r=="function")Dh(r)?(m=ua(r,m),o.tag=1,o=Jx(null,o,r,m,c)):(o.tag=0,o=Sp(null,o,r,m,c));else{if(r!=null){var v=r.$$typeof;if(v===M){o.tag=11,o=Gx(null,o,r,m,c);break e}else if(v===O){o.tag=14,o=Wx(null,o,r,m,c);break e}}throw o=W(r)||r,Error(s(306,o,""))}}return o;case 0:return Sp(r,o,o.type,o.pendingProps,c);case 1:return m=o.type,v=ua(m,o.pendingProps),Jx(r,o,m,v,c);case 3:e:{if(le(o,o.stateNode.containerInfo),r===null)throw Error(s(387));m=o.pendingProps;var _=o.memoizedState;
vendor: 4,840 bytes, line 137
137v=_.element,Zh(r,o),kl(o,m,null,c);var $=o.memoizedState;if(m=$.cache,ur(o,Zt,m),m!==_.cache&&qh(o,[Zt],c,!0),Al(),m=$.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:$.cache},o.updateQueue.baseState=_,o.memoizedState=_,o.flags&256){o=e_(r,o,m,c);break e}else if(m!==v){v=Cs(Error(s(424)),o),Sl(v),o=e_(r,o,m,c);break e}else{switch(r=o.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Ct=ks(r.firstChild),yn=o,ot=!0,cr=null,Ts=!0,c=K1(o,null,m,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(sa(),m===v){o=Pi(r,o,c);break e}xn(r,o,m,c)}o=o.child}return o;case 26:return _u(r,o),r===null?(c=p2(o.type,null,o.pendingProps,null))?o.memoizedState=c:ot||(c=o.type,r=o.pendingProps,m=Fu(ae.current).createElement(c),m[an]=o,m[mn]=r,_n(m,c,r),tt(m),o.stateNode=m):o.memoizedState=p2(o.type,r.memoizedProps,o.pendingProps,r.memoizedState),null;case 27:return xe(o),r===null&&ot&&(m=o.stateNode=f2(o.type,o.pendingProps,ae.current),yn=o,Ts=!0,v=Ct,Sr(o.type)?(dg=v,Ct=ks(m.firstChild)):Ct=v),xn(r,o,o.pendingProps.children,c),_u(r,o),r===null&&(o.flags|=4194304),o.child;case 5:return r===null&&ot&&((v=m=Ct)&&(m=A9(m,o.type,o.pendingProps,Ts),m!==null?(o.stateNode=m,yn=o,Ct=ks(m.firstChild),Ts=!1,v=!0):v=!1),v||dr(o)),xe(o),v=o.type,_=o.pendingProps,$=r!==null?r.memoizedProps:null,m=_.children,rg(v,_)?m=null:$!==null&&rg(v,$)&&(o.flags|=32),o.memoizedState!==null&&(v=ip(r,o,q5,null,null,c),Zl._currentValue=v),_u(r,o),xn(r,o,m,c),o.child;case 6:return r===null&&ot&&((r=c=Ct)&&(c=k9(c,o.pendingProps,Ts),c!==null?(o.stateNode=c,yn=o,Ct=null,r=!0):r=!1),r||dr(o)),null;case 13:return t_(r,o,c);case 4:return le(o,o.stateNode.containerInfo),m=o.pendingProps,r===null?o.child=ca(o,null,m,c):xn(r,o,m,c),o.child;case 11:return Gx(r,o,o.type,o.pendingProps,c);case 7:return xn(r,o,o.pendingProps,c),o.child;case 8:return xn(r,o,o.pendingProps.children,c),o.child;case 12:return xn(r,o,o.pendingProps.children,c),o.child;case 10:return m=o.pendingProps,ur(o,o.type,m.value),xn(r,o,m.children,c),o.child;case 9:return v=o.type._context,m=o.pendingProps.children,ra(o),v=bn(v),m=m(v),o.flags|=1,xn(r,o,m,c),o.child;case 14:return Wx(r,o,o.type,o.pendingProps,c);case 15:return Yx(r,o,o.type,o.pendingProps,c);case 19:return s_(r,o,c);case 31:return J5(r,o,c);case 22:return Kx(r,o,c,o.pendingProps);case 24:return ra(o),m=bn(Zt),r===null?(v=Yh(),v===null&&(v=St,_=Gh(),v.pooledCache=_,_.refCount++,_!==null&&(v.pooledCacheLanes|=c),v=_),o.memoizedState={parent:m,cache:v},Xh(o),ur(o,Zt,v)):((r.lanes&c)!==0&&(Zh(r,o),kl(o,null,null,c),Al()),v=r.memoizedState,_=o.memoizedState,v.parent!==m?(v={parent:m,cache:m},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),ur(o,Zt,m)):(m=_.cache,ur(o,Zt,m),m!==v.cache&&qh(o,[Zt],c,!0))),xn(r,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(s(156,o.tag))}function Di(r){r.flags|=4}function Mp(r,o,c,m,v){if((o=(r.mode&32)!==0)&&(o=!1),o){if(r.flags|=16777216,(v&335544128)===v)if(r.stateNode.complete)r.flags|=8192;else if(k_())r.flags|=8192;else throw la=au,Kh}else r.flags&=-16777217}function r_(r,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!x2(o))if(k_())r.flags|=8192;else throw la=au,Kh}function wu(r,o){o!==null&&(r.flags|=4),r.flags&16384&&(o=r.tag!==22?ls():536870912,r.lanes|=o,go|=o)}function Ll(r,o){if(!ot)switch(r.tailMode){case"hidden":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:m.sibling=null}}function $t(r){var o=r.alternate!==null&&r.alternate.child===r.child,c=0,m=0;if(o)for(var v=r.child;v!==null;)c|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=r,v=v.sibling;else for(v=r.child;v!==null;)c|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=r,v=v.sibling;return r.subtreeFlags|=m,r.childLanes=c,o}function t9(r,o,c){var m=o.pendingProps;switch(Bh(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(o),null;case 1:return $t(o),null;case 3:return c=o.stateNode,m=null,r!==null&&(m=r.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),Mi(Zt),ve(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(no(o)?Di(o):r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Vh())),$t(o),null;case 26:var v=o.type,_=o.memoizedState;return r===null?(Di(o),_!==null?($t(o),r_(o,_)):($t(o),Mp(o,v,null,m,c))):_?_!==r.memoizedState?(Di(o),$t(o),r_(o,_)):($t(o),o.flags&=-16777217):(r=r.memoizedProps,r!==m&&Di(o),$t(o),Mp(o,v,r,m,c)
vendor: 4,714 bytes, line 137
137),null;case 27:if($e(o),c=ae.current,v=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==m&&Di(o);else{if(!m){if(o.stateNode===null)throw Error(s(166));return $t(o),null}r=ee.current,no(o)?F1(o):(r=f2(v,m,c),o.stateNode=r,Di(o))}return $t(o),null;case 5:if($e(o),v=o.type,r!==null&&o.stateNode!=null)r.memoizedProps!==m&&Di(o);else{if(!m){if(o.stateNode===null)throw Error(s(166));return $t(o),null}if(_=ee.current,no(o))F1(o);else{var $=Fu(ae.current);switch(_){case 1:_=$.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:_=$.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":_=$.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":_=$.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":_=$.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof m.is=="string"?$.createElement("select",{is:m.is}):$.createElement("select"),m.multiple?_.multiple=!0:m.size&&(_.size=m.size);break;default:_=typeof m.is=="string"?$.createElement(v,{is:m.is}):$.createElement(v)}}_[an]=o,_[mn]=m;e:for($=o.child;$!==null;){if($.tag===5||$.tag===6)_.appendChild($.stateNode);else if($.tag!==4&&$.tag!==27&&$.child!==null){$.child.return=$,$=$.child;continue}if($===o)break e;for(;$.sibling===null;){if($.return===null||$.return===o)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}o.stateNode=_;e:switch(_n(_,v,m),v){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Di(o)}}return $t(o),Mp(o,o.type,r===null?null:r.memoizedProps,o.pendingProps,c),null;case 6:if(r&&o.stateNode!=null)r.memoizedProps!==m&&Di(o);else{if(typeof m!="string"&&o.stateNode===null)throw Error(s(166));if(r=ae.current,no(o)){if(r=o.stateNode,c=o.memoizedProps,m=null,v=yn,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}r[an]=o,r=!!(r.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||t2(r.nodeValue,c)),r||dr(o,!0)}else r=Fu(r).createTextNode(m),r[an]=o,o.stateNode=r}return $t(o),null;case 31:if(c=o.memoizedState,r===null||r.memoizedState!==null){if(m=no(o),c!==null){if(r===null){if(!m)throw Error(s(318));if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(557));r[an]=o}else sa(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;$t(o),r=!1}else c=Vh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=c),r=!0;if(!r)return o.flags&256?(fs(o),o):(fs(o),null);if((o.flags&128)!==0)throw Error(s(558))}return $t(o),null;case 13:if(m=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(v=no(o),m!==null&&m.dehydrated!==null){if(r===null){if(!v)throw Error(s(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(s(317));v[an]=o}else sa(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;$t(o),v=!1}else v=Vh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(fs(o),o):(fs(o),null)}return fs(o),(o.flags&128)!==0?(o.lanes=c,o):(c=m!==null,r=r!==null&&r.memoizedState!==null,c&&(m=o.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),_=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(_=m.memoizedState.cachePool.pool),_!==v&&(m.flags|=2048)),c!==r&&c&&(o.child.flags|=8192),wu(o,o.updateQueue),$t(o),null);case 4:return ve(),r===null&&eg(o.stateNode.containerInfo),$t(o),null;case 10:return Mi(o.type),$t(o),null;case 19:if(A(Ht),m=o.memoizedState,m===null)return $t(o),null;if(v=(o.flags&128)!==0,_=m.rendering,_===null)if(v)Ll(m,!1);else{if(Lt!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(_=du(r),_!==null){for(o.flags|=128,Ll(m,!1),r=_.updateQueue,o.updateQueue=r,wu(o,r),o.subtreeFlags=0,r=c,c=o.child;c!==null;)O1(c,r),c=c.sibling;return Y(Ht,Ht.current&1|2),ot&&Ai(o,m.treeForkCount),o.child}r=r.sibling}m.tail!==null&&Ge()>Eu&&(o.flags|=128,v=!0,Ll(m,!1),o.lanes=4194304)}else{if(!v)if(r=du(_),r!==null){if(o.flags|=128,v=!0,r=r.updateQueue,o.updateQueue=r,wu(o,r),Ll(m,!0),m.tail===null&&m.tailMode==="hidden"&&!_.alternate&&!ot)return $t(o),null}else 2*Ge()-m.renderingStartTime>Eu&&c!==536870912&&(o.flags|=128,v=!0,Ll(m,!1),o.lanes=4194304);m.isBackwards?(_.sibling=o.child,o.child=_):(r=m.last,r!==null?r.sibling=_:o.child=_,m.last=_)}return m.tail!==null?(r=m.tail,m.rendering=r,m.tail=r.sibling,m.renderingStartTime=Ge(),r.sibling=null,c=Ht.current,Y(Ht,v?c&1|2:c&1),ot&&Ai(o,m.treeForkCount),r):($t(o),null);case 22:case 23:return fs(o),tp(),m=o.memoizedState!==null,r!==null?r.memoizedState!==null!==m&&(o.flags|=8192):m&&(
vendor: 22,038 bytes, line 137
137o.flags|=8192),m?(c&536870912)!==0&&(o.flags&128)===0&&($t(o),o.subtreeFlags&6&&(o.flags|=8192)):$t(o),c=o.updateQueue,c!==null&&wu(o,c.retryQueue),c=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==c&&(o.flags|=2048),r!==null&&A(aa),null;case 24:return c=null,r!==null&&(c=r.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),Mi(Zt),$t(o),null;case 25:return null;case 30:return null}throw Error(s(156,o.tag))}function n9(r,o){switch(Bh(o),o.tag){case 1:return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Mi(Zt),ve(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 26:case 27:case 5:return $e(o),null;case 31:if(o.memoizedState!==null){if(fs(o),o.alternate===null)throw Error(s(340));sa()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 13:if(fs(o),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(s(340));sa()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return A(Ht),null;case 4:return ve(),null;case 10:return Mi(o.type),null;case 22:case 23:return fs(o),tp(),r!==null&&A(aa),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 24:return Mi(Zt),null;case 25:return null;default:return null}}function a_(r,o){switch(Bh(o),o.tag){case 3:Mi(Zt),ve();break;case 26:case 27:case 5:$e(o);break;case 4:ve();break;case 31:o.memoizedState!==null&&fs(o);break;case 13:fs(o);break;case 19:A(Ht);break;case 10:Mi(o.type);break;case 22:case 23:fs(o),tp(),r!==null&&A(aa);break;case 24:Mi(Zt)}}function Fl(r,o){try{var c=o.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var v=m.next;c=v;do{if((c.tag&r)===r){m=void 0;var _=c.create,$=c.inst;m=_(),$.destroy=m}c=c.next}while(c!==v)}}catch(P){bt(o,o.return,P)}}function vr(r,o,c){try{var m=o.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var _=v.next;m=_;do{if((m.tag&r)===r){var $=m.inst,P=$.destroy;if(P!==void 0){$.destroy=void 0,v=o;var G=c,se=P;try{se()}catch(de){bt(v,G,de)}}}m=m.next}while(m!==_)}}catch(de){bt(o,o.return,de)}}function o_(r){var o=r.updateQueue;if(o!==null){var c=r.stateNode;try{Z1(o,c)}catch(m){bt(r,r.return,m)}}}function l_(r,o,c){c.props=ua(r.type,r.memoizedProps),c.state=r.memoizedState;try{c.componentWillUnmount()}catch(m){bt(r,o,m)}}function Il(r,o){try{var c=r.ref;if(c!==null){switch(r.tag){case 26:case 27:case 5:var m=r.stateNode;break;case 30:m=r.stateNode;break;default:m=r.stateNode}typeof c=="function"?r.refCleanup=c(m):c.current=m}}catch(v){bt(r,o,v)}}function li(r,o){var c=r.ref,m=r.refCleanup;if(c!==null)if(typeof m=="function")try{m()}catch(v){bt(r,o,v)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){bt(r,o,v)}else c.current=null}function c_(r){var o=r.type,c=r.memoizedProps,m=r.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&m.focus();break e;case"img":c.src?m.src=c.src:c.srcSet&&(m.srcset=c.srcSet)}}catch(v){bt(r,r.return,v)}}function Op(r,o,c){try{var m=r.stateNode;S9(m,r.type,c,o),m[mn]=o}catch(v){bt(r,r.return,v)}}function d_(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Sr(r.type)||r.tag===4}function Rp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||d_(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Sr(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Pp(r,o,c){var m=r.tag;if(m===5||m===6)r=r.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(r,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(r),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=$i));else if(m!==4&&(m===27&&Sr(r.type)&&(c=r.stateNode,o=null),r=r.child,r!==null))for(Pp(r,o,c),r=r.sibling;r!==null;)Pp(r,o,c),r=r.sibling}function Su(r,o,c){var m=r.tag;if(m===5||m===6)r=r.stateNode,o?c.insertBefore(r,o):c.appendChild(r);else if(m!==4&&(m===27&&Sr(r.type)&&(c=r.stateNode),r=r.child,r!==null))for(Su(r,o,c),r=r.sibling;r!==null;)Su(r,o,c),r=r.sibling}function u_(r){var o=r.stateNode,c=r.memoizedProps;try{for(var m=r.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);_n(o,m,c),o[an]=r,o[mn]=c}catch(_){bt(r,r.return,_)}}var Li=!1,en=!1,Dp=!1,f_=typeof WeakSet=="function"?WeakSet:Set,hn=null;function s9(r,o){if(r=r.containerInfo,sg=qu,r=S1(r),Th(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var m=c.getSelection&&c.getSelection();if(m&&m.rangeCount!==0){c=m.anchorNode;var v=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var $=0,P=-1,G=-1,se=0,de=0,me=r,ie=null;t:for(;;){for(var oe;me!==c||v!==0&&me.nodeType!==3||(P=$+v),me!==_||m!==0&&me.nodeType!==3||(G=$+m),me.nodeType===3&&($+=me.nodeValue.length),(oe=me.firstChild)!==null;)ie=me,me=oe;for(;;){if(me===r)break t;if(ie===c&&++se===v&&(P=$),ie===_&&++de===m&&(G=$),(oe=me.nextSibling)!==null)break;me=ie,ie=me.parentNode}me=oe}c=P===-1||G===-1?null:{start:P,end:G}}else c=null}c=c||{start:0,end:0}}else c=null;for(ig={focusedElem:r,selectionRange:c},qu=!1,hn=o;hn!==null;)if(o=hn,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,hn=r;else for(;hn!==null;){switch(o=hn,_=o.alternate,r=o.flags,o.tag){case 0:if((r&4)!==0&&(r=o.updateQueue,r=r!==null?r.events:null,r!==null))for(c=0;c<r.length;c++)v=r[c],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&_!==null){r=void 0,c=o,v=_.memoizedProps,_=_.memoizedState,m=c.stateNode;try{var Ae=ua(c.type,v);r=m.getSnapshotBeforeUpdate(Ae,_),m.__reactInternalSnapshotBeforeUpdate=r}catch(De){bt(c,c.return,De)}}break;case 3:if((r&1024)!==0){if(r=o.stateNode.containerInfo,c=r.nodeType,c===9)og(r);else if(c===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":og(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(s(163))}if(r=o.sibling,r!==null){r.return=o.return,hn=r;break}hn=o.return}}function m_(r,o,c){var m=c.flags;switch(c.tag){case 0:case 11:case 15:Ii(r,c),m&4&&Fl(5,c);break;case 1:if(Ii(r,c),m&4)if(r=c.stateNode,o===null)try{r.componentDidMount()}catch($){bt(c,c.return,$)}else{var v=ua(c.type,o.memoizedProps);o=o.memoizedState;try{r.componentDidUpdate(v,o,r.__reactInternalSnapshotBeforeUpdate)}catch($){bt(c,c.return,$)}}m&64&&o_(c),m&512&&Il(c,c.return);break;case 3:if(Ii(r,c),m&64&&(r=c.updateQueue,r!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{Z1(r,o)}catch($){bt(c,c.return,$)}}break;case 27:o===null&&m&4&&u_(c);case 26:case 5:Ii(r,c),o===null&&m&4&&c_(c),m&512&&Il(c,c.return);break;case 12:Ii(r,c);break;case 31:Ii(r,c),m&4&&g_(r,c);break;case 13:Ii(r,c),m&4&&v_(r,c),m&64&&(r=c.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(c=f9.bind(null,c),M9(r,c))));break;case 22:if(m=c.memoizedState!==null||Li,!m){o=o!==null&&o.memoizedState!==null||en,v=Li;var _=en;Li=m,(en=o)&&!_?Bi(r,c,(c.subtreeFlags&8772)!==0):Ii(r,c),Li=v,en=_}break;case 30:break;default:Ii(r,c)}}function h_(r){var o=r.alternate;o!==null&&(r.alternate=null,h_(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&we(o)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Tt=null,Wn=!1;function Fi(r,o,c){for(c=c.child;c!==null;)p_(r,o,c),c=c.sibling}function p_(r,o,c){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(Ni,c)}catch{}switch(c.tag){case 26:en||li(c,o),Fi(r,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:en||li(c,o);var m=Tt,v=Wn;Sr(c.type)&&(Tt=c.stateNode,Wn=!1),Fi(r,o,c),Yl(c.stateNode),Tt=m,Wn=v;break;case 5:en||li(c,o);case 6:if(m=Tt,v=Wn,Tt=null,Fi(r,o,c),Tt=m,Wn=v,Tt!==null)if(Wn)try{(Tt.nodeType===9?Tt.body:Tt.nodeName==="HTML"?Tt.ownerDocument.body:Tt).removeChild(c.stateNode)}catch(_){bt(c,o,_)}else try{Tt.removeChild(c.stateNode)}catch(_){bt(c,o,_)}break;case 18:Tt!==null&&(Wn?(r=Tt,o2(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,c.stateNode),So(r)):o2(Tt,c.stateNode));break;case 4:m=Tt,v=Wn,Tt=c.stateNode.containerInfo,Wn=!0,Fi(r,o,c),Tt=m,Wn=v;break;case 0:case 11:case 14:case 15:vr(2,c,o),en||vr(4,c,o),Fi(r,o,c);break;case 1:en||(li(c,o),m=c.stateNode,typeof m.componentWillUnmount=="function"&&l_(c,o,m)),Fi(r,o,c);break;case 21:Fi(r,o,c);break;case 22:en=(m=en)||c.memoizedState!==null,Fi(r,o,c),en=m;break;default:Fi(r,o,c)}}function g_(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{So(r)}catch(c){bt(o,o.return,c)}}}function v_(r,o){if(o.memoizedState===null&&(r=o.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{So(r)}catch(c){bt(o,o.return,c)}}function i9(r){switch(r.tag){case 31:case 13:case 19:var o=r.stateNode;return o===null&&(o=r.stateNode=new f_),o;case 22:return r=r.stateNode,o=r._retryCache,o===null&&(o=r._retryCache=new f_),o;default:throw Error(s(435,r.tag))}}function Nu(r,o){var c=i9(r);o.forEach(function(m){if(!c.has(m)){c.add(m);var v=m9.bind(null,r,m);m.then(v,v)}})}function Yn(r,o){var c=o.deletions;if(c!==null)for(var m=0;m<c.length;m++){var v=c[m],_=r,$=o,P=$;e:for(;P!==null;){switch(P.tag){case 27:if(Sr(P.type)){Tt=P.stateNode,Wn=!1;break e}break;case 5:Tt=P.stateNode,Wn=!1;break e;case 3:case 4:Tt=P.stateNode.containerInfo,Wn=!0;break e}P=P.return}if(Tt===null)throw Error(s(160));p_(_,$,v),Tt=null,Wn=!1,_=v.alternate,_!==null&&(_.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)y_(o,r),o=o.sibling}var Ws=null;function y_(r,o){var c=r.alternate,m=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Yn(o,r),Kn(r),m&4&&(vr(3,r,r.return),Fl(3,r),vr(5,r,r.return));break;case 1:Yn(o,r),Kn(r),m&512&&(en||c===null||li(c,c.return)),m&64&&Li&&(r=r.updateQueue,r!==null&&(m=r.callbacks,m!==null&&(c=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=c===null?m:c.concat(m))));break;case 26:var v=Ws;if(Yn(o,r),Kn(r),m&512&&(en||c===null||li(c,c.return)),m&4){var _=c!==null?c.memoizedState:null;if(m=r.memoizedState,c===null)if(m===null)if(r.stateNode===null){e:{m=r.type,c=r.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":_=v.getElementsByTagName("title")[0],(!_||_[ir]||_[an]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=v.createElement(m),v.head.insertBefore(_,v.querySelector("head > title"))),_n(_,m,c),_[an]=r,tt(_),m=_;break e;case"link":var $=y2("link","href",v).get(m+(c.href||""));if($){for(var P=0;P<$.length;P++)if(_=$[P],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){$.splice(P,1);break t}}_=v.createElement(m),_n(_,m,c),v.head.appendChild(_);break;case"meta":if($=y2("meta","content",v).get(m+(c.content||""))){for(P=0;P<$.length;P++)if(_=$[P],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){$.splice(P,1);break t}}_=v.createElement(m),_n(_,m,c),v.head.appendChild(_);break;default:throw Error(s(468,m))}_[an]=r,tt(_),m=_}r.stateNode=m}else b2(v,r.type,r.stateNode);else r.stateNode=v2(v,m,r.memoizedProps);else _!==m?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,m===null?b2(v,r.type,r.stateNode):v2(v,m,r.memoizedProps)):m===null&&r.stateNode!==null&&Op(r,r.memoizedProps,c.memoizedProps)}break;case 27:Yn(o,r),Kn(r),m&512&&(en||c===null||li(c,c.return)),c!==null&&m&4&&Op(r,r.memoizedProps,c.memoizedProps);break;case 5:if(Yn(o,r),Kn(r),m&512&&(en||c===null||li(c,c.return)),r.flags&32){v=r.stateNode;try{Ga(v,"")}catch(Ae){bt(r,r.return,Ae)}}m&4&&r.stateNode!=null&&(v=r.memoizedProps,Op(r,v,c!==null?c.memoizedProps:v)),m&1024&&(Dp=!0);break;case 6:if(Yn(o,r),Kn(r),m&4){if(r.stateNode===null)throw Error(s(162));m=r.memoizedProps,c=r.stateNode;try{c.nodeValue=m}catch(Ae){bt(r,r.return,Ae)}}break;case 3:if(zu=null,v=Ws,Ws=Iu(o.containerInfo),Yn(o,r),Ws=v,Kn(r),m&4&&c!==null&&c.memoizedState.isDehydrated)try{So(o.containerInfo)}catch(Ae){bt(r,r.return,Ae)}Dp&&(Dp=!1,b_(r));break;case 4:m=Ws,Ws=Iu(r.stateNode.containerInfo),Yn(o,r),Kn(r),Ws=m;break;case 12:Yn(o,r),Kn(r);break;case 31:Yn(o,r),Kn(r),m&4&&(m=r.updateQueue,m!==null&&(r.updateQueue=null,Nu(r,m)));break;case 13:Yn(o,r),Kn(r),r.child.flags&8192&&r.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&($u=Ge()),m&4&&(m=r.updateQueue,m!==null&&(r.updateQueue=null,Nu(r,m)));break;case 22:v=r.memoizedState!==null;var G=c!==null&&c.memoizedState!==null,se=Li,de=en;if(Li=se||v,en=de||G,Yn(o,r),en=de,Li=se,Kn(r),m&8192)e:for(o=r.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(c===null||G||Li||en||fa(r)),c=null,o=r;;){if(o.tag===5||o.tag===26){if(c===null){G=c=o;try{if(_=G.stateNode,v)$=_.style,typeof $.setProperty=="function"?$.setProperty("display","none","important"):$.display="none";else{P=G.stateNode;var me=G.memoizedProps.style,ie=me!=null&&me.hasOwnProperty("display")?me.display:null;P.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Ae){bt(G,G.return,Ae)}}}else if(o.tag===6){if(c===null){G=o;try{G.stateNode.nodeValue=v?"":G.memoizedProps}catch(Ae){bt(G,G.return,Ae)}}}else if(o.tag===18){if(c===null){G=o;try{var oe=G.stateNode;v?l2(oe,!0):l2(G.stateNode,!1)}catch(Ae){bt(G,G.return,Ae)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===r)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break e;for(;o.sibling===null;){if(o.return===null||o.return===r)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}m&4&&(m=r.updateQueue,m!==null&&(c=m.retryQueue,c!==null&&(m.retryQueue=null,Nu(r,c))));break;case 19:Yn(o,r),Kn(r),m&4&&(m=r.updateQueue,m!==null&&(r.updateQueue=null,Nu(r,m)));break;case 30:break;case 21:break;default:Yn(o,r),Kn(r)}}function Kn(r){var o=r.flags;if(o&2){try{for(var c,m=r.return;m!==null;){if(d_(m)){c=m;break}m=m.return}if(c==null)throw Error(s(160));switch(c.tag){case 27:var v=c.stateNode,_=Rp(r);Su(r,_,v);break;case 5:var $=c.stateNode;c.flags&32&&(Ga($,""),c.flags&=-33);var P=Rp(r);Su(r,P,$);break;case 3:case 4:var G=c.stateNode.containerInfo,se=Rp(r);Pp(r,se,G);break;default:throw Error(s(161))}}catch(de){bt(r,r.return,de)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function b_(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var o=r;b_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),r=r.sibling}}function Ii(r,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)m_(r,o.alternate,o),o=o.sibling}function fa(r){for(r=r.child;r!==null;){var o=r;switch(o.tag){case 0:case 11:case 14:case 15:vr(4,o,o.return),fa(o);break;case 1:li(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&l_(o,o.return,c),fa(o);break;case 27:Yl(o.stateNode);case 26:case 5:li(o,o.return),fa(o);break;case 22:o.memoizedState===null&&fa(o);break;case 30:fa(o);break;default:fa(o)}r=r.sibling}}function Bi(r,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var m=o.alternate,v=r,_=o,$=_.flags;switch(_.tag){case 0:case 11:case 15:Bi(v,_,c),Fl(4,_);break;case 1:if(Bi(v,_,c),m=_,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(se){bt(m,m.return,se)}if(m=_,v=m.updateQueue,v!==null){var P=m.stateNode;try{var G=v.shared.hiddenCallbacks;if(G!==null)for(v.shared.hiddenCallbacks=null,v=0;v<G.length;v++)X1(G[v],P)}catch(se){bt(m,m.return,se)}}c&&$&64&&o_(_),Il(_,_.return);break;case 27:u_(_);case 26:case 5:Bi(v,_,c),c&&m===null&&$&4&&c_(_),Il(_,_.return);break;case 12:Bi(v,_,c);break;case 31:Bi(v,_,c),c&&$&4&&g_(v,_);break;case 13:Bi(v,_,c),c&&$&4&&v_(v,_);break;case 22:_.memoizedState===null&&Bi(v,_,c),Il(_,_.return);break;case 30:break;default:Bi(v,_,c)}o=o.sibling}}function Lp(r,o){var c=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==c&&(r!=null&&r.refCount++,c!=null&&Nl(c))}function Fp(r,o){r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Nl(r))}function Ys(r,o,c,m){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)x_(r,o,c,m),o=o.sibling}function x_(r,o,c,m){var v=o.flags;switch(o.tag){case 0:case 11:case 15:Ys(r,o,c,m),v&2048&&Fl(9,o);break;case 1:Ys(r,o,c,m);break;case 3:Ys(r,o,c,m),v&2048&&(r=null,o.alternate!==null&&(r=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==r&&(o.refCount++,r!=null&&Nl(r)));break;case 12:if(v&2048){Ys(r,o,c,m),r=o.stateNode;try{var _=o.memoizedProps,$=_.id,P=_.onPostCommit;typeof P=="function"&&P($,o.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(G){bt(o,o.return,G)}}else Ys(r,o,c,m);break;case 31:Ys(r,o,c,m);break;case 13:Ys(r,o,c,m);break;case 23:break;case 22:_=o.stateNode,$=o.alternate,o.memoizedState!==null?_._visibility&2?Ys(r,o,c,m):Bl(r,o):_._visibility&2?Ys(r,o,c,m):(_._visibility|=2,mo(r,o,c,m,(o.subtreeFlags&10256)!==0||!1)),v&2048&&Lp($,o);break;case 24:Ys(r,o,c,m),v&2048&&Fp(o.alternate,o);break;default:Ys(r,o,c,m)}}function mo(r,o,c,m,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var _=r,$=o,P=c,G=m,se=$.flags;switch($.tag){case 0:case 11:case 15:mo(_,$,P,G,v),Fl(8,$);break;case 23:break;case 22:var de=$.stateNode;$.memoizedState!==null?de._visibility&2?mo(_,$,P,G,v):Bl(_,$):(de._visibility|=2,mo(_,$,P,G,v)),v&&se&2048&&Lp($.alternate,$);break;case 24:mo(_,$,P,G,v),v&&se&2048&&Fp($.alternate,$);break;default:mo(_,$,P,G,v)}o=o.sibling}}function Bl(r,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=r,m=o,v=m.flags;switch(m.tag){case 22:Bl(c,m),v&2048&&Lp(m.alternate,m);break;case 24:Bl(c,m),v&2048&&Fp(m.alternate,m);break;default:Bl(c,m)}o=o.sibling}}var zl=8192;function ho(r,o,c){if(r.subtreeFlags&zl)for(r=r.child;r!==null;)__(r,o,c),r=r.sibling}function __(r,o,c){switch(r.tag){case 26:ho(r,o,c),r.flags&zl&&r.memoizedState!==null&&H9(c,Ws,r.memoizedState,r.memoizedProps);break;case 5:ho(r,o,c);break;case 3:case 4:var m=Ws;Ws=Iu(r.stateNode.containerInfo),ho(r,o,c),Ws=m;break;case 22:r.memoizedState===null&&(m=r.alternate,m!==null&&m.memoizedState!==null?(m=zl,zl=16777216,ho(r,o,c),zl=m):ho(r,o,c));break;default:ho(r,o,c)}}function j_(r){var o=r.alternate;if(o!==null&&(r=o.child,r!==null)){o.child=null;do o=r.sibling,r.sibling=null,r=o;while(r!==null)}}function Vl(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var m=o[c];hn=m,S_(m,r)}j_(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)w_(r),r=r.sibling}function w_(r){switch(r.tag){case 0:case 11:case 15:Vl(r),r.flags&2048&&vr(9,r,r.return);break;case 3:Vl(r);break;case 12:Vl(r);break;case 22:var o=r.stateNode;r.memoizedState!==null&&o._visibility&2&&(r.return===null||r.return.tag!==13)?(o._visibility&=-3,Cu(r)):Vl(r);break;default:Vl(r)}}function Cu(r){var o=r.deletions;if((r.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var m=o[c];hn=m,S_(m,r)}j_(r)}for(r=r.child;r!==null;){switch(o=r,o.tag){case 0:case 11:case 15:vr(8,o,o.return),Cu(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Cu(o));break;default:Cu(o)}r=r.sibling}}function S_(r,o){for(;hn!==null;){var c=hn;switch(c.tag){case 0:case 11:case 15:vr(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var m=c.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Nl(c.memoizedState.cache)}if(m=c.child,m!==null)m.return=c,hn=m;else e:for(c=r;hn!==null;){m=hn;var v=m.sibling,_=m.return;if(h_(m),m===c){hn=null;break e}if(v!==null){v.return=_,hn=v;break e}hn=_}}}var r9={getCacheForType:function(r){var o=bn(Zt),c=o.data.get(r);return c===void 0&&(c=r(),o.data.set(r,c)),c},cacheSignal:function(){return bn(Zt).controller.signal}},a9=typeof WeakMap=="function"?WeakMap:Map,pt=0,St=null,nt=null,rt=0,yt=0,ms=null,yr=!1,po=!1,Ip=!1,zi=0,Lt=0,br=0,ma=0,Bp=0,hs=0,go=0,Ul=null,Xn=null,zp=!1,$u=0,N_=0,Eu=1/0,Tu=null,xr=null,on=0,_r=null,vo=null,Vi=0,Vp=0,Up=null,C_=null,Hl=0,Hp=null;function ps(){return(pt&2)!==0&&rt!==0?rt&-rt:D.T!==null?Xp():Id()}function $_(){if(hs===0)if((rt&536870912)===0||ot){var r=et;et<<=1,(et&3932160)===0&&(et=262144),hs=r}else hs=536870912;return r=us.current,r!==null&&(r.flags|=32),hs}function Zn(r,o,c){(r===St&&(yt===2||yt===9)||r.cancelPendingCommit!==null)&&(yo(r,0),jr(r,rt,hs,!1)),sr(r,c),((pt&2)===0||r!==St)&&(r===St&&((pt&2)===0&&(ma|=c),Lt===4&&jr(r,rt,hs,!1)),ci(r))}function E_(r,o,c){if((pt&6)!==0)throw Error(s(327));var m=!c&&(o&127)===0&&(o&r.expiredLanes)===0||Yr(r,o),v=m?c9(r,o):Gp(r,o,!0),_=m;do{if(v===0){po&&!m&&jr(r,o,0,!1);break}else{if(c=r.current.alternate,_&&!o9(c)){v=Gp(r,o,!1),_=!1;continue}if(v===2){if(_=o,r.errorRecoveryDisabledLanes&_)var $=0;else $=r.pendingLanes&-536870913,$=$!==0?$:$&536870912?536870912:0;if($!==0){o=$;e:{var P=r;v=Ul;var G=P.current.memoizedState.isDehydrated;if(G&&(yo(P,$).flags|=256),$=Gp(P,$,!1),$!==2){if(Ip&&!G){P.errorRecoveryDisabledLanes|=_,ma|=_,v=4;break e}_=Xn,Xn=v,_!==null&&(Xn===null?Xn=_:Xn.push.apply(Xn,_))}v=$}if(_=!1,v!==2)continue}}if(v===1){yo(r,0),jr(r,o,0,!0);break}e:{switch(m=r,_=v,_){case 0:case 1:throw Error(s(345));case 4:if((o&4194048)!==o)break;
vendor: 13,478 bytes, line 137
137case 6:jr(m,o,hs,!yr);break e;case 2:Xn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((o&62914560)===o&&(v=$u+300-Ge(),10<v)){if(jr(m,o,hs,!yr),nr(m,0,!0)!==0)break e;Vi=o,m.timeoutHandle=r2(T_.bind(null,m,c,Xn,Tu,zp,o,hs,ma,go,yr,_,"Throttled",-0,0),v);break e}T_(m,c,Xn,Tu,zp,o,hs,ma,go,yr,_,null,-0,0)}}break}while(!0);ci(r)}function T_(r,o,c,m,v,_,$,P,G,se,de,me,ie,oe){if(r.timeoutHandle=-1,me=o.subtreeFlags,me&8192||(me&16785408)===16785408){me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$i},__(o,_,me);var Ae=(_&62914560)===_?$u-Ge():(_&4194048)===_?N_-Ge():0;if(Ae=q9(me,Ae),Ae!==null){Vi=_,r.cancelPendingCommit=Ae(L_.bind(null,r,o,_,c,m,v,$,P,G,de,me,null,ie,oe)),jr(r,_,$,!se);return}}L_(r,o,_,c,m,v,$,P,G)}function o9(r){for(var o=r;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var m=0;m<c.length;m++){var v=c[m],_=v.getSnapshot;v=v.value;try{if(!cs(_(),v))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function jr(r,o,c,m){o&=~Bp,o&=~ma,r.suspendedLanes|=o,r.pingedLanes&=~o,m&&(r.warmLanes|=o),m=r.expirationTimes;for(var v=o;0<v;){var _=31-un(v),$=1<<_;m[_]=-1,v&=~$}c!==0&&Xr(r,c,o)}function Au(){return(pt&6)===0?(ql(0),!1):!0}function qp(){if(nt!==null){if(yt===0)var r=nt.return;else r=nt,ki=ia=null,op(r),oo=null,$l=0,r=nt;for(;r!==null;)a_(r.alternate,r),r=r.return;nt=null}}function yo(r,o){var c=r.timeoutHandle;c!==-1&&(r.timeoutHandle=-1,$9(c)),c=r.cancelPendingCommit,c!==null&&(r.cancelPendingCommit=null,c()),Vi=0,qp(),St=r,nt=c=Ti(r.current,null),rt=o,yt=0,ms=null,yr=!1,po=Yr(r,o),Ip=!1,go=hs=Bp=ma=br=Lt=0,Xn=Ul=null,zp=!1,(o&8)!==0&&(o|=o&32);var m=r.entangledLanes;if(m!==0)for(r=r.entanglements,m&=o;0<m;){var v=31-un(m),_=1<<v;o|=r[v],m&=~_}return zi=o,Zd(),c}function A_(r,o){Ye=null,D.H=Pl,o===ao||o===ru?(o=G1(),yt=3):o===Kh?(o=G1(),yt=4):yt=o===wp?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,ms=o,nt===null&&(Lt=1,bu(r,Cs(o,r.current)))}function k_(){var r=us.current;return r===null?!0:(rt&4194048)===rt?As===null:(rt&62914560)===rt||(rt&536870912)!==0?r===As:!1}function M_(){var r=D.H;return D.H=Pl,r===null?Pl:r}function O_(){var r=D.A;return D.A=r9,r}function ku(){Lt=4,yr||(rt&4194048)!==rt&&us.current!==null||(po=!0),(br&134217727)===0&&(ma&134217727)===0||St===null||jr(St,rt,hs,!1)}function Gp(r,o,c){var m=pt;pt|=2;var v=M_(),_=O_();(St!==r||rt!==o)&&(Tu=null,yo(r,o)),o=!1;var $=Lt;e:do try{if(yt!==0&&nt!==null){var P=nt,G=ms;switch(yt){case 8:qp(),$=6;break e;case 3:case 2:case 9:case 6:us.current===null&&(o=!0);var se=yt;if(yt=0,ms=null,bo(r,P,G,se),c&&po){$=0;break e}break;default:se=yt,yt=0,ms=null,bo(r,P,G,se)}}l9(),$=Lt;break}catch(de){A_(r,de)}while(!0);return o&&r.shellSuspendCounter++,ki=ia=null,pt=m,D.H=v,D.A=_,nt===null&&(St=null,rt=0,Zd()),$}function l9(){for(;nt!==null;)R_(nt)}function c9(r,o){var c=pt;pt|=2;var m=M_(),v=O_();St!==r||rt!==o?(Tu=null,Eu=Ge()+500,yo(r,o)):po=Yr(r,o);e:do try{if(yt!==0&&nt!==null){o=nt;var _=ms;t:switch(yt){case 1:yt=0,ms=null,bo(r,o,_,1);break;case 2:case 9:if(H1(_)){yt=0,ms=null,P_(o);break}o=function(){yt!==2&&yt!==9||St!==r||(yt=7),ci(r)},_.then(o,o);break e;case 3:yt=7;break e;case 4:yt=5;break e;case 7:H1(_)?(yt=0,ms=null,P_(o)):(yt=0,ms=null,bo(r,o,_,7));break;case 5:var $=null;switch(nt.tag){case 26:$=nt.memoizedState;case 5:case 27:var P=nt;if($?x2($):P.stateNode.complete){yt=0,ms=null;var G=P.sibling;if(G!==null)nt=G;else{var se=P.return;se!==null?(nt=se,Mu(se)):nt=null}break t}}yt=0,ms=null,bo(r,o,_,5);break;case 6:yt=0,ms=null,bo(r,o,_,6);break;case 8:qp(),Lt=6;break e;default:throw Error(s(462))}}d9();break}catch(de){A_(r,de)}while(!0);return ki=ia=null,D.H=m,D.A=v,pt=c,nt!==null?0:(St=null,rt=0,Zd(),Lt)}function d9(){for(;nt!==null&&!fe();)R_(nt)}function R_(r){var o=i_(r.alternate,r,zi);r.memoizedProps=r.pendingProps,o===null?Mu(r):nt=o}function P_(r){var o=r,c=o.alternate;switch(o.tag){case 15:case 0:o=Qx(c,o,o.pendingProps,o.type,void 0,rt);break;case 11:o=Qx(c,o,o.pendingProps,o.type.render,o.ref,rt);break;case 5:op(o);default:a_(c,o),o=nt=O1(o,zi),o=i_(c,o,zi)}r.memoizedProps=r.pendingProps,o===null?Mu(r):nt=o}function bo(r,o,c,m){ki=ia=null,op(o),oo=null,$l=0;var v=o.return;try{if(Q5(r,v,o,c,rt)){Lt=1,bu(r,Cs(c,r.current)),nt=null;return}}catch(_){if(v!==null)throw nt=v,_;Lt=1,bu(r,Cs(c,r.current)),nt=null;return}o.flags&32768?(ot||m===1?r=!0:po||(rt&536870912)!==0?r=!1:(yr=r=!0,(m===2||m===9||m===3||m===6)&&(m=us.current,m!==null&&m.tag===13&&(m.flags|=16384))),D_(o,r)):Mu(o)}function Mu(r){var o=r;do{if((o.flags&32768)!==0){D_(o,yr);return}r=o.return;var c=t9(o.alternate,o,zi);if(c!==null){nt=c;return}if(o=o.sibling,o!==null){nt=o;return}nt=o=r}while(o!==null);Lt===0&&(Lt=5)}function D_(r,o){do{var c=n9(r.alternate,r);if(c!==null){c.flags&=32767,nt=c;return}if(c=r.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(r=r.sibling,r!==null)){nt=r;return}nt=r=c}while(r!==null);Lt=6,nt=null}function L_(r,o,c,m,v,_,$,P,G){r.cancelPendingCommit=null;do Ou();while(on!==0);if((pt&6)!==0)throw Error(s(327));if(o!==null){if(o===r.current)throw Error(s(177));if(_=o.lanes|o.childLanes,_|=Rh,Kr(r,c,_,$,P,G),r===St&&(nt=St=null,rt=0),vo=o,_r=r,Vi=c,Vp=_,Up=v,C_=m,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,h9(cn,function(){return V_(),null})):(r.callbackNode=null,r.callbackPriority=0),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=D.T,D.T=null,v=H.p,H.p=2,$=pt,pt|=4;try{s9(r,o,c)}finally{pt=$,H.p=v,D.T=m}}on=1,F_(),I_(),B_()}}function F_(){if(on===1){on=0;var r=_r,o=vo,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=D.T,D.T=null;var m=H.p;H.p=2;var v=pt;pt|=4;try{y_(o,r);var _=ig,$=S1(r.containerInfo),P=_.focusedElem,G=_.selectionRange;if($!==P&&P&&P.ownerDocument&&w1(P.ownerDocument.documentElement,P)){if(G!==null&&Th(P)){var se=G.start,de=G.end;if(de===void 0&&(de=se),"selectionStart"in P)P.selectionStart=se,P.selectionEnd=Math.min(de,P.value.length);else{var me=P.ownerDocument||document,ie=me&&me.defaultView||window;if(ie.getSelection){var oe=ie.getSelection(),Ae=P.textContent.length,De=Math.min(G.start,Ae),jt=G.end===void 0?De:Math.min(G.end,Ae);!oe.extend&&De>jt&&($=jt,jt=De,De=$);var J=j1(P,De),X=j1(P,jt);if(J&&X&&(oe.rangeCount!==1||oe.anchorNode!==J.node||oe.anchorOffset!==J.offset||oe.focusNode!==X.node||oe.focusOffset!==X.offset)){var ne=me.createRange();ne.setStart(J.node,J.offset),oe.removeAllRanges(),De>jt?(oe.addRange(ne),oe.extend(X.node,X.offset)):(ne.setEnd(X.node,X.offset),oe.addRange(ne))}}}}for(me=[],oe=P;oe=oe.parentNode;)oe.nodeType===1&&me.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<me.length;P++){var ue=me[P];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}qu=!!sg,ig=sg=null}finally{pt=v,H.p=m,D.T=c}}r.current=o,on=2}}function I_(){if(on===2){on=0;var r=_r,o=vo,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=D.T,D.T=null;var m=H.p;H.p=2;var v=pt;pt|=4;try{m_(r,o.alternate,o)}finally{pt=v,H.p=m,D.T=c}}on=3}}function B_(){if(on===4||on===3){on=0,ze();var r=_r,o=vo,c=Vi,m=C_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?on=5:(on=0,vo=_r=null,z_(r,r.pendingLanes));var v=r.pendingLanes;if(v===0&&(xr=null),Ua(c),o=o.stateNode,dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(Ni,o,void 0,(o.current.flags&128)===128)}catch{}if(m!==null){o=D.T,v=H.p,H.p=2,D.T=null;try{for(var _=r.onRecoverableError,$=0;$<m.length;$++){var P=m[$];_(P.value,{componentStack:P.stack})}}finally{D.T=o,H.p=v}}(Vi&3)!==0&&Ou(),ci(r),v=r.pendingLanes,(c&261930)!==0&&(v&42)!==0?r===Hp?Hl++:(Hl=0,Hp=r):Hl=0,ql(0)}}function z_(r,o){(r.pooledCacheLanes&=o)===0&&(o=r.pooledCache,o!=null&&(r.pooledCache=null,Nl(o)))}function Ou(){return F_(),I_(),B_(),V_()}function V_(){if(on!==5)return!1;var r=_r,o=Vp;Vp=0;var c=Ua(Vi),m=D.T,v=H.p;try{H.p=32>c?32:c,D.T=null,c=Up,Up=null;var _=_r,$=Vi;if(on=0,vo=_r=null,Vi=0,(pt&6)!==0)throw Error(s(331));var P=pt;if(pt|=4,w_(_.current),x_(_,_.current,$,c),pt=P,ql(0,!1),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(Ni,_)}catch{}return!0}finally{H.p=v,D.T=m,z_(r,o)}}function U_(r,o,c){o=Cs(c,o),o=jp(r.stateNode,o,2),r=hr(r,o,2),r!==null&&(sr(r,2),ci(r))}function bt(r,o,c){if(r.tag===3)U_(r,r,c);else for(;o!==null;){if(o.tag===3){U_(o,r,c);break}else if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(xr===null||!xr.has(m))){r=Cs(c,r),c=Hx(2),m=hr(o,c,2),m!==null&&(qx(c,m,o,r),sr(m,2),ci(m));break}}o=o.return}}function Wp(r,o,c){var m=r.pingCache;if(m===null){m=r.pingCache=new a9;var v=new Set;m.set(o,v)}else v=m.get(o),v===void 0&&(v=new Set,m.set(o,v));v.has(c)||(Ip=!0,v.add(c),r=u9.bind(null,r,o,c),o.then(r,r))}function u9(r,o,c){var m=r.pingCache;m!==null&&m.delete(o),r.pingedLanes|=r.suspendedLanes&c,r.warmLanes&=~c,St===r&&(rt&c)===c&&(Lt===4||Lt===3&&(rt&62914560)===rt&&300>Ge()-$u?(pt&2)===0&&yo(r,0):Bp|=c,go===rt&&(go=0)),ci(r)}function H_(r,o){o===0&&(o=ls()),r=ta(r,o),r!==null&&(sr(r,o),ci(r))}function f9(r){var o=r.memoizedState,c=0;o!==null&&(c=o.retryLane),H_(r,c)}function m9(r,o){var c=0;switch(r.tag){case 31:case 13:var m=r.stateNode,v=r.memoizedState;v!==null&&(c=v.retryLane);break;case 19:m=r.stateNode;break;case 22:m=r.stateNode._retryCache;break;default:throw Error(s(314))}m!==null&&m.delete(o),H_(r,c)}function h9(r,o){return Ze(r,o)}var Ru=null,xo=null,Yp=!1,Pu=!1,Kp=!1,wr=0;function ci(r){r!==xo&&r.next===null&&(xo===null?Ru=xo=r:xo=xo.next=r),Pu=!0,Yp||(Yp=!0,g9())}function ql(r,o){if(!Kp&&Pu){Kp=!0;do for(var c=!1,m=Ru;m!==null;){if(r!==0){var v=m.pendingLanes;if(v===0)var _=0;else{var $=m.suspendedLanes,P=m.pingedLanes;_=(1<<31-un(42|r)+1)-1,_&=v&~($&~P),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,Y_(m,_))}else _=rt,_=nr(m,m===St?_:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(_&3)===0||Yr(m,_)||(c=!0,Y_(m,_));m=m.next}while(c);Kp=!1}}function p9(){q_()}function q_(){Pu=Yp=!1;var r=0;wr!==0&&C9()&&(r=wr);for(var o=Ge(),c=null,m=Ru;m!==null;){var v=m.next,_=G_(m,o);_===0?(m.next=null,c===null?Ru=v:c.next=v,v===null&&(xo=c)):(c=m,(r!==0||(_&3)!==0)&&(Pu=!0)),m=v}on!==0&&on!==5||ql(r),wr!==0&&(wr=0)}function G_(r,o){for(var c=r.suspendedLanes,m=r.pingedLanes,v=r.expirationTimes,_=r.pendingLanes&-62914561;0<_;){var $=31-un(_),P=1<<$,G=v[$];G===-1?((P&c)===0||(P&m)!==0)&&(v[$]=uh(P,o)):G<=o&&(r.expiredLanes|=P),_&=~P}if(o=St,c=rt,c=nr(r,r===o?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),m=r.callbackNode,c===0||r===o&&(yt===2||yt===9)||r.cancelPendingCommit!==null)return m!==null&&m!==null&&vt(m),r.callbackNode=null,r.callbackPriority=0;if((c&3)===0||Yr(r,c)){if(o=c&-c,o===r.callbackPriority)return o;switch(m!==null&&vt(m),Ua(c)){case 2:case 8:c=vn;break;case 32:c=cn;break;case 268435456:c=ii;break;default:c=cn}return m=W_.bind(null,r),c=Ze(c,m),r.callbackPriority=o,r.callbackNode=c,o}return m!==null&&m!==null&&vt(m),r.callbackPriority=2,r.callbackNode=null,2}function W_(r,o){if(on!==0&&on!==5)return r.callbackNode=null,r.callbackPriority=0,null;var c=r.callbackNode;if(Ou()&&r.callbackNode!==c)return null;var m=rt;return m=nr(r,r===St?m:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),m===0?null:(E_(r,m,o),G_(r,Ge()),r.callbackNode!=null&&r.callbackNode===c?W_.bind(null,r):null)}function Y_(r,o){if(Ou())return null;E_(r,o,!0)}function g9(){E9(function(){(pt&6)!==0?Ze(wt,p9):q_()})}function Xp(){if(wr===0){var r=io;r===0&&(r=Pe,Pe<<=1,(Pe&261888)===0&&(Pe=256)),wr=r}return wr}function K_(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Ud(""+r)}function X_(r,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,r.id&&c.setAttribute("form",r.id),o.parentNode.insertBefore(c,o),r=new FormData(r),c.parentNode.removeChild(c),r}function v9(r,o,c,m,v){if(o==="submit"&&c&&c.stateNode===v){var _=K_((v[mn]||null).action),$=m.submitter;$&&(o=(o=$[mn]||null)?K_(o.formAction):$.getAttribute("formAction"),o!==null&&(_=o,$=null));var P=new Wd("action","action",null,m,v);r.push({event:P,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(wr!==0){var G=$?X_(v,$):new FormData(v);gp(c,{pending:!0,data:G,method:v.method,action:_},null,G)}}else typeof _=="function"&&(P.preventDefault(),G=$?X_(v,$):new FormData(v),gp(c,{pending:!0,data:G,method:v.method,action:_},_,G))},currentTarget:v}]})}}for(var Zp=0;Zp<Oh.length;Zp++){var Qp=Oh[Zp],y9=Qp.toLowerCase(),b9=Qp[0].toUpperCase()+Qp.slice(1);Gs(y9,"on"+b9)}Gs($1,"onAnimationEnd"),Gs(E1,"onAnimationIteration"),Gs(T1,"onAnimationStart"),Gs("dblclick","onDoubleClick"),Gs("focusin","onFocus"),Gs("focusout","onBlur"),Gs(P5,"onTransitionRun"),Gs(D5,"onTransitionStart"),Gs(L5,"onTransitionCancel"),Gs(A1,"onTransitionEnd"),Qe("onMouseEnter",["mouseout","mouseover"]),Qe("onMouseLeave",["mouseout","mouseover"]),Qe("onPointerEnter",["pointerout","pointerover"]),Qe("onPointerLeave",["pointerout","pointerover"]),We("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),We("onSelect","focusout contextmenu dragend focu
137sin keydown keyup mousedown mouseup selectionchange".split(" ")),We("onBeforeInput",["compositionend","keypress","textInput","paste"]),We("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),We("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),x9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gl));function Z_(r,o){o=(o&4)!==0;for(var c=0;c<r.length;c++){var m=r[c],v=m.event;m=m.listeners;e:{var _=void 0;if(o)for(var $=m.length-1;0<=$;$--){var P=m[$],G=P.instance,se=P.currentTarget;if(P=P.listener,G!==_&&v.isPropagationStopped())break e;_=P,v.currentTarget=se;try{_(v)}catch(de){Xd(de)}v.currentTarget=null,_=G}else for($=0;$<m.length;$++){if(P=m[$],G=P.instance,se=P.currentTarget,P=P.listener,G!==_&&v.isPropagationStopped())break e;_=P,v.currentTarget=se;try{_(v)}catch(de){Xd(de)}v.currentTarget=null,_=G}}}}function st(r,o){var c=o[ml];c===void 0&&(c=o[ml]=new Set);var m=r+"__bubble";c.has(m)||(Q_(o,r,2,!1),c.add(m))}function Jp(r,o,c){var m=0;o&&(m|=4),Q_(c,r,m,o)}var Du="_reactListening"+Math.random().toString(36).slice(2);function eg(r){if(!r[Du]){r[Du]=!0,ht.forEach(function(c){c!=="selectionchange"&&(x9.has(c)||Jp(c,!1,r),Jp(c,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Du]||(o[Du]=!0,Jp("selectionchange",!1,o))}}function Q_(r,o,c,m){switch($2(o)){case 2:var v=Y9;break;case 8:v=K9;break;default:v=pg}c=v.bind(null,o,c,r),v=void 0,!xh||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),m?v!==void 0?r.addEventListener(o,c,{capture:!0,passive:v}):r.addEventListener(o,c,!0):v!==void 0?r.addEventListener(o,c,{passive:v}):r.addEventListener(o,c,!1)}function tg(r,o,c,m,v){var _=m;if((o&1)===0&&(o&2)===0&&m!==null)e:for(;;){if(m===null)return;var $=m.tag;if($===3||$===4){var P=m.stateNode.containerInfo;if(P===v)break;if($===4)for($=m.return;$!==null;){var G=$.tag;if((G===3||G===4)&&$.stateNode.containerInfo===v)return;$=$.return}for(;P!==null;){if($=je(P),$===null)return;if(G=$.tag,G===5||G===6||G===26||G===27){m=_=$;continue e}P=P.parentNode}}m=m.return}s1(function(){var se=_,de=yh(c),me=[];e:{var ie=k1.get(r);if(ie!==void 0){var oe=Wd,Ae=r;switch(r){case"keypress":if(qd(c)===0)break e;case"keydown":case"keyup":oe=m5;break;case"focusin":Ae="focus",oe=Sh;break;case"focusout":Ae="blur",oe=Sh;break;case"beforeblur":case"afterblur":oe=Sh;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=a1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=t5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=g5;break;case $1:case E1:case T1:oe=i5;break;case A1:oe=y5;break;case"scroll":case"scrollend":oe=JE;break;case"wheel":oe=x5;break;case"copy":case"cut":case"paste":oe=a5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=l1;break;case"toggle":case"beforetoggle":oe=j5}var De=(o&4)!==0,jt=!De&&(r==="scroll"||r==="scrollend"),J=De?ie!==null?ie+"Capture":null:ie;De=[];for(var X=se,ne;X!==null;){var ue=X;if(ne=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||ne===null||J===null||(ue=hl(X,J),ue!=null&&De.push(Wl(X,ue,ne))),jt)break;X=X.return}0<De.length&&(ie=new oe(ie,Ae,null,c,de),me.push({event:ie,listeners:De}))}}if((o&7)===0){e:{if(ie=r==="mouseover"||r==="pointerover",oe=r==="mouseout"||r==="pointerout",ie&&c!==vh&&(Ae=c.relatedTarget||c.fromElement)&&(je(Ae)||Ae[Ci]))break e;if((oe||ie)&&(ie=de.window===de?de:(ie=de.ownerDocument)?ie.defaultView||ie.parentWindow:window,oe?(Ae=c.relatedTarget||c.toElement,oe
vendor: 6,048 bytes, lines 137-138
137=se,Ae=Ae?je(Ae):null,Ae!==null&&(jt=l(Ae),De=Ae.tag,Ae!==jt||De!==5&&De!==27&&De!==6)&&(Ae=null)):(oe=null,Ae=se),oe!==Ae)){if(De=a1,ue="onMouseLeave",J="onMouseEnter",X="mouse",(r==="pointerout"||r==="pointerover")&&(De=l1,ue="onPointerLeave",J="onPointerEnter",X="pointer"),jt=oe==null?ie:Ut(oe),ne=Ae==null?ie:Ut(Ae),ie=new De(ue,X+"leave",oe,c,de),ie.target=jt,ie.relatedTarget=ne,ue=null,je(de)===se&&(De=new De(J,X+"enter",Ae,c,de),De.target=ne,De.relatedTarget=jt,ue=De),jt=ue,oe&&Ae)t:{for(De=_9,J=oe,X=Ae,ne=0,ue=J;ue;ue=De(ue))ne++;ue=0;for(var Re=X;Re;Re=De(Re))ue++;for(;0<ne-ue;)J=De(J),ne--;for(;0<ue-ne;)X=De(X),ue--;for(;ne--;){if(J===X||X!==null&&J===X.alternate){De=J;break t}J=De(J),X=De(X)}De=null}else De=null;oe!==null&&J_(me,ie,oe,De,!1),Ae!==null&&jt!==null&&J_(me,jt,Ae,De,!0)}}e:{if(ie=se?Ut(se):window,oe=ie.nodeName&&ie.nodeName.toLowerCase(),oe==="select"||oe==="input"&&ie.type==="file")var dt=g1;else if(h1(ie))if(v1)dt=M5;else{dt=A5;var Oe=T5}else oe=ie.nodeName,!oe||oe.toLowerCase()!=="input"||ie.type!=="checkbox"&&ie.type!=="radio"?se&&gh(se.elementType)&&(dt=g1):dt=k5;if(dt&&(dt=dt(r,se))){p1(me,dt,c,de);break e}Oe&&Oe(r,ie,se),r==="focusout"&&se&&ie.type==="number"&&se.memoizedProps.value!=null&&ph(ie,"number",ie.value)}switch(Oe=se?Ut(se):window,r){case"focusin":(h1(Oe)||Oe.contentEditable==="true")&&(Xa=Oe,Ah=se,jl=null);break;case"focusout":jl=Ah=Xa=null;break;case"mousedown":kh=!0;break;case"contextmenu":case"mouseup":case"dragend":kh=!1,N1(me,c,de);break;case"selectionchange":if(R5)break;case"keydown":case"keyup":N1(me,c,de)}var Ke;if(Ch)e:{switch(r){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else Ka?f1(r,c)&&(at="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&(at="onCompositionStart");at&&(c1&&c.locale!=="ko"&&(Ka||at!=="onCompositionStart"?at==="onCompositionEnd"&&Ka&&(Ke=i1()):(or=de,_h="value"in or?or.value:or.textContent,Ka=!0)),Oe=Lu(se,at),0<Oe.length&&(at=new o1(at,r,null,c,de),me.push({event:at,listeners:Oe}),Ke?at.data=Ke:(Ke=m1(c),Ke!==null&&(at.data=Ke)))),(Ke=S5?N5(r,c):C5(r,c))&&(at=Lu(se,"onBeforeInput"),0<at.length&&(Oe=new o1("onBeforeInput","beforeinput",null,c,de),me.push({event:Oe,listeners:at}),Oe.data=Ke)),v9(me,r,se,c,de)}Z_(me,o)})}function Wl(r,o,c){return{instance:r,listener:o,currentTarget:c}}function Lu(r,o){for(var c=o+"Capture",m=[];r!==null;){var v=r,_=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||_===null||(v=hl(r,c),v!=null&&m.unshift(Wl(r,v,_)),v=hl(r,o),v!=null&&m.push(Wl(r,v,_))),r.tag===3)return m;r=r.return}return[]}function _9(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function J_(r,o,c,m,v){for(var _=o._reactName,$=[];c!==null&&c!==m;){var P=c,G=P.alternate,se=P.stateNode;if(P=P.tag,G!==null&&G===m)break;P!==5&&P!==26&&P!==27||se===null||(G=se,v?(se=hl(c,_),se!=null&&$.unshift(Wl(c,se,G))):v||(se=hl(c,_),se!=null&&$.push(Wl(c,se,G)))),c=c.return}$.length!==0&&r.push({event:o,listeners:$})}var j9=/\r\n?/g,w9=/\u0000|\uFFFD/g;function e2(r){return(typeof r=="string"?r:""+r).replace(j9,`
138`).replace(w9,"")}function t2(r,o){return o=e2(o),e2(r)===o}function _t(r,o,c,m,v,_){switch(c){case"children":typeof m=="string"?o==="body"||o==="textarea"&&m===""||Ga(r,m):(typeof m=="number"||typeof m=="bigint")&&o!=="body"&&Ga(r,""+m);break;case"className":ar(r,"class",m);break;case"tabIndex":ar(r,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":ar(r,c,m);break;case"style":t1(r,m,_);break;case"data":if(o!=="object"){ar(r,"data",m);break}case"src":case"href":if(m===""&&(o!=="a"||c!=="href")){r.removeAttribute(c);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){r.removeAttribute(c);break}m=Ud(""+m),r.setAttribute(c,m);break;case"action":case"formAction":if(typeof m=="function"){r.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(c==="formAction"?(o!=="input"&&_t(r,o,"name",v.name,v,null),_t(r,o,"formEncType",v.formEncType,v,null),_t(r,o,"formMethod",v.formMethod,v,null),_t(r,o,"formTarget",v.formTarget,v,null)):(_t(r,o,"encType",v.encType,v,null),_t(r,o,"method",v.method,v,null),_t(r,o,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){r.removeAttribute(c);break}m=Ud(""+m),r.setAttribute(c,m);break;case"onClick":m!=null&&(r.onclick=$i);break;case"onScroll":m!=null&&st("scroll",r);break;case"onScrollEnd":m!=null&&st("scrollend",r);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(s(61));if(c=m.__html,c!=null){if(v.children!=null)throw Error(s(60));r.innerHTML=c}}break;case"multiple":r.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":r.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){r.removeAttribute("xlink:href");break}c=Ud(""+m),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(c,""+m):r.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
138ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(c,""):r.removeAttribute(c);break;case"capture":case"download":m===!0?r.setAttribute(c,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?r.setAttribute(c,m):r.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?r.setAttribute(c,m):r.removeAttribute(c);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?r.removeAttribute(c):r.setAttribute(c,m);break;case"popover":st("beforetoggle",r),st("toggle",r),Hs(r,"popover",m);break;case"xlinkActuate":qs(r,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":qs(r,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":qs(r,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":qs(r,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":qs(r,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":qs(r,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":qs(r,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":qs(r,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":qs(r,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Hs(r,"is",m);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=ZE.get(c)||c,Hs(r,c,m))}}function ng(r,o,c,m,v,_){switch(c){case"style":t1(r,m,_);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(s(61));if(c=m.__html,c!=null){if(v.children!=null)throw Error(s(60));r.innerHTML=c}}break;case"children":typeof m=="string"?Ga(r,m):(typeof m=="number"||typeof m=="bigint")&&Ga(r,""+m);break;case"onScroll":m!=null&&st("scroll",r);break;case"onScrollEnd":m!=null&&st("scrollend",r);break;case"onClick":m!=null&&(r.onclick=$i);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ge.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),o=c.slice(2,v?c.length-7:void 0),_=r[mn]||null,_=_!=null?_[c]:null,typeof _=="function"&&r.removeEventListener(o,_,v),typeof m=="function")){typeof _!="function"&&_!==null&&(c in r?r[c]=null:r.hasAttribute(c)&&r.removeAttribute(c)),r.addEventListener(o,m,v);break e}c in r?r[c]=m:m===!0?r.setAttribute(c,""):Hs(r,c,m)}}}function _n(r,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",r),st("load",r);var m=!1,v=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var $=c[_];if($!=null)switch(_){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,o));default:_t(r,o,_,$,c,null)}}v&&_t(r,o,"srcSet",c.srcSet,c,null),m&&_t(r,o,"src",c.src,c,null);return;case"input":st("invalid",r);var P=_=$=v=null,G=null,se=null;for(m in c)if(c.hasOwnProperty(m)){var de=c[m];if(de!=null)switch(m){case"name":v=de;break;case"type":$=de;break;case"checked":G=de;break;case"defaultChecked":se=de;break;case"value":_=de;break;case"defaultValue":P=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(s(137,o));break;default:_t(r,o,m,de,c,null)}}Zb(r,_,P,G,se,$,v,!1);return;case"select":st("invalid",r),m=$=_=null;for(v in c)if(c.hasOwnProperty(v)&&(P=c[v],P!=null))switch(v){case"value":_=P;break;case"defaultValue":$=P;break;case"multiple":m=P;default:_t(r,o,v,P,c,null)}o=_,c=$,r.multiple=!!m,o!=null?qa(r,!!m,o,!1):c!=null&&qa(r,!!m,c,!0);return;case"textarea":st("invalid",r),_=v=m=null;for($ in c)if(c.hasOwnProperty($)&&(P=c[$],P!=null))switch($){case"value":m=P;break;case"defaultValue":v=P;break;case"children":_=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(91));break;default:_t(r,o,$,P,c,null)}Jb(r,m,v,_);return;case"option":for(G in c)if(c.hasOwnProperty(G)&&(m=c[G],m!=null))switch(G){case"selected":r.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:_t(r,o,G,m,c,null)}return;case"dialog":st("beforetoggle",r),st("toggle",r),st("cancel",r),st("close",r);break;case"iframe":case"object":st("load",r);break;case"video":case"audio":for(m=0;m<Gl.length;m++)st(Gl[m],r);break;case"image":st("error",r),st("load",r);break;case"details":st("toggle",r);break;case"embed":case"source":case"link":st("error",r),st("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in c)if(c.hasOwnProperty(se)&&(m=c[se],m!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,o));default:_t(r,o,se,m,c,null)}return;default:if(gh(o)){for(de in c)c.hasOwnProperty(de)&&(m=c[de],m!==void 0&&ng(r,o,de,m,c,void 0));return}}for(P in c)c.hasOwnProperty(P)&&(m=c[P],m!=null&&_t(r,o,P,m,c,null))}function S9(r,o,c,m){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,_=null,$=null,P=null,G=null,se=null,de=null;for(oe in c){var me=c[oe];if(c.hasOwnProperty(oe)&&me!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":G=me;default:m.hasOwnProperty(oe)||_t(r,o,oe,null,m,me)}}for(var ie in m){var oe=m[ie];if(me=c[ie],m.hasOwnProperty(ie)&&(oe!=null||me!=null))switch(ie){case"type":_=oe;break;case"name":v=oe;break;case"checked":se=oe;break;case"defaultChecked":de=oe;break;case"value":$=oe;break;case"defaultValue":P=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(s(137,o));break;default:oe!==me&&_t(r,o,ie,oe,m,me)}}hh(r,$,P,G,se,de,_,v);return;case"select":oe=$=P=ie=null;for(_ in c)if(G=c[_],c.hasOwnProperty(_)&&G!=null)switch(_){case"value":break;case"multiple":oe=G;default:m.hasOwnProperty(_)||_t(r,o,_,null,m,G)}for(v in m)if(_=m[v],G=c[v],m.hasOwnProperty(v)&&(_!=null||G!=null))switch(v){case"value":ie=_;break;case"defaultValue":P=_;break;case"multiple":$=_;default:_!==G&&_t(r,o,v,_,m,G)}o=P,c=$,m=oe,ie!=null?qa(r,!!c,ie,!1):!!m!=!!c&&(o!=null?qa(r,!!c,o,!0):qa(r,!!c,c?[]:"",!1));return;case"textarea":oe=ie=null;
vendor: 6,773 bytes, line 138
138for(P in c)if(v=c[P],c.hasOwnProperty(P)&&v!=null&&!m.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:_t(r,o,P,null,m,v)}for($ in m)if(v=m[$],_=c[$],m.hasOwnProperty($)&&(v!=null||_!=null))switch($){case"value":ie=v;break;case"defaultValue":oe=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:v!==_&&_t(r,o,$,v,m,_)}Qb(r,ie,oe);return;case"option":for(var Ae in c)if(ie=c[Ae],c.hasOwnProperty(Ae)&&ie!=null&&!m.hasOwnProperty(Ae))switch(Ae){case"selected":r.selected=!1;break;default:_t(r,o,Ae,null,m,ie)}for(G in m)if(ie=m[G],oe=c[G],m.hasOwnProperty(G)&&ie!==oe&&(ie!=null||oe!=null))switch(G){case"selected":r.selected=ie&&typeof ie!="function"&&typeof ie!="symbol";break;default:_t(r,o,G,ie,m,oe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in c)ie=c[De],c.hasOwnProperty(De)&&ie!=null&&!m.hasOwnProperty(De)&&_t(r,o,De,null,m,ie);for(se in m)if(ie=m[se],oe=c[se],m.hasOwnProperty(se)&&ie!==oe&&(ie!=null||oe!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(s(137,o));break;default:_t(r,o,se,ie,m,oe)}return;default:if(gh(o)){for(var jt in c)ie=c[jt],c.hasOwnProperty(jt)&&ie!==void 0&&!m.hasOwnProperty(jt)&&ng(r,o,jt,void 0,m,ie);for(de in m)ie=m[de],oe=c[de],!m.hasOwnProperty(de)||ie===oe||ie===void 0&&oe===void 0||ng(r,o,de,ie,m,oe);return}}for(var J in c)ie=c[J],c.hasOwnProperty(J)&&ie!=null&&!m.hasOwnProperty(J)&&_t(r,o,J,null,m,ie);for(me in m)ie=m[me],oe=c[me],!m.hasOwnProperty(me)||ie===oe||ie==null&&oe==null||_t(r,o,me,ie,m,oe)}function n2(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function N9(){if(typeof performance.getEntriesByType=="function"){for(var r=0,o=0,c=performance.getEntriesByType("resource"),m=0;m<c.length;m++){var v=c[m],_=v.transferSize,$=v.initiatorType,P=v.duration;if(_&&P&&n2($)){for($=0,P=v.responseEnd,m+=1;m<c.length;m++){var G=c[m],se=G.startTime;if(se>P)break;var de=G.transferSize,me=G.initiatorType;de&&n2(me)&&(G=G.responseEnd,$+=de*(G<P?1:(P-se)/(G-se)))}if(--m,o+=8*(_+$)/(v.duration/1e3),r++,10<r)break}}if(0<r)return o/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var sg=null,ig=null;function Fu(r){return r.nodeType===9?r:r.ownerDocument}function s2(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function i2(r,o){if(r===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&o==="foreignObject"?0:r}function rg(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var ag=null;function C9(){var r=window.event;return r&&r.type==="popstate"?r===ag?!1:(ag=r,!0):(ag=null,!1)}var r2=typeof setTimeout=="function"?setTimeout:void 0,$9=typeof clearTimeout=="function"?clearTimeout:void 0,a2=typeof Promise=="function"?Promise:void 0,E9=typeof queueMicrotask=="function"?queueMicrotask:typeof a2<"u"?function(r){return a2.resolve(null).then(r).catch(T9)}:r2;function T9(r){setTimeout(function(){throw r})}function Sr(r){return r==="head"}function o2(r,o){var c=o,m=0;do{var v=c.nextSibling;if(r.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"||c==="/&"){if(m===0){r.removeChild(v),So(o);return}m--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")m++;else if(c==="html")Yl(r.ownerDocument.documentElement);else if(c==="head"){c=r.ownerDocument.head,Yl(c);for(var _=c.firstChild;_;){var $=_.nextSibling,P=_.nodeName;_[ir]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&_.rel.toLowerCase()==="stylesheet"||c.removeChild(_),_=$}}else c==="body"&&Yl(r.ownerDocument.body);c=v}while(c);So(o)}function l2(r,o){var c=r;r=0;do{var m=c.nextSibling;if(c.nodeType===1?o?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(o?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),m&&m.nodeType===8)if(c=m.data,c==="/$"){if(r===0)break;r--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||r++;c=m}while(c)}function og(r){var o=r.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":og(c),we(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}r.removeChild(c)}}function A9(r,o,c,m){for(;r.nodeType===1;){var v=c;if(r.nodeName.toLowerCase()!==o.toLowerCase()){if(!m&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(m){if(!r[ir])switch(o){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(_=r.getAttribute("rel"),_==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(_!==v.rel||r.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||r.getAttribute("title")!==(v.title==null?null:v.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(_=r.getAttribute("src"),(_!==(v.src==null?null:v.src)||r.getAttribute("type")!==(v.type==null?null:v.type)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&_&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(o==="input"&&r.type==="hidden"){var _=v.name==null?null:""+v.name;if(v.type==="hidden"&&r.getAttribute("name")===_)return r}else return r;if(r=ks(r.nextSibling),r===null)break}return null}function k9(r,o,c){if(o==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!c||(r=ks(r.nextSibling),r===null))return null;return r}function c2(r,o){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=ks(r.nextSibling),r===null))return null;return r}function lg(r){return r.data==="$?"||r.data==="$~"}function cg(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function M9(r,o){var c=r.ownerDocument;if(r.data==="$~")r._reactRetry=o;else if(r.data!=="$?"||c.readyState!=="loading")o();else{var m=function(){o(),c.removeEventListener("DOMContentLoaded",m)};c.addEventListener("DOMContentLoaded",m),r._reactRetry=m}}function ks(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;
vendor: 9,688 bytes, line 138
138if(o==="/$"||o==="/&")return null}}return r}var dg=null;function d2(r){r=r.nextSibling;for(var o=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"||c==="/&"){if(o===0)return ks(r.nextSibling);o--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||o++}r=r.nextSibling}return null}function u2(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(o===0)return r;o--}else c!=="/$"&&c!=="/&"||o++}r=r.previousSibling}return null}function f2(r,o,c){switch(o=Fu(c),r){case"html":if(r=o.documentElement,!r)throw Error(s(452));return r;case"head":if(r=o.head,!r)throw Error(s(453));return r;case"body":if(r=o.body,!r)throw Error(s(454));return r;default:throw Error(s(451))}}function Yl(r){for(var o=r.attributes;o.length;)r.removeAttributeNode(o[0]);we(r)}var Ms=new Map,m2=new Set;function Iu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Ui=H.d;H.d={f:O9,r:R9,D:P9,C:D9,L:L9,m:F9,X:B9,S:I9,M:z9};function O9(){var r=Ui.f(),o=Au();return r||o}function R9(r){var o=Be(r);o!==null&&o.tag===5&&o.type==="form"?Ax(o):Ui.r(r)}var _o=typeof document>"u"?null:document;function h2(r,o,c){var m=_o;if(m&&typeof o=="string"&&o){var v=Ss(o);v='link[rel="'+r+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),m2.has(v)||(m2.add(v),r={rel:r,crossOrigin:c,href:o},m.querySelector(v)===null&&(o=m.createElement("link"),_n(o,"link",r),tt(o),m.head.appendChild(o)))}}function P9(r){Ui.D(r),h2("dns-prefetch",r,null)}function D9(r,o){Ui.C(r,o),h2("preconnect",r,o)}function L9(r,o,c){Ui.L(r,o,c);var m=_o;if(m&&r&&o){var v='link[rel="preload"][as="'+Ss(o)+'"]';o==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+Ss(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+Ss(c.imageSizes)+'"]')):v+='[href="'+Ss(r)+'"]';var _=v;switch(o){case"style":_=jo(r);break;case"script":_=wo(r)}Ms.has(_)||(r=g({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:r,as:o},c),Ms.set(_,r),m.querySelector(v)!==null||o==="style"&&m.querySelector(Kl(_))||o==="script"&&m.querySelector(Xl(_))||(o=m.createElement("link"),_n(o,"link",r),tt(o),m.head.appendChild(o)))}}function F9(r,o){Ui.m(r,o);var c=_o;if(c&&r){var m=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+Ss(m)+'"][href="'+Ss(r)+'"]',_=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=wo(r)}if(!Ms.has(_)&&(r=g({rel:"modulepreload",href:r},o),Ms.set(_,r),c.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Xl(_)))return}m=c.createElement("link"),_n(m,"link",r),tt(m),c.head.appendChild(m)}}}function I9(r,o,c){Ui.S(r,o,c);var m=_o;if(m&&r){var v=Pt(m).hoistableStyles,_=jo(r);o=o||"default";var $=v.get(_);if(!$){var P={loading:0,preload:null};if($=m.querySelector(Kl(_)))P.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":o},c),(c=Ms.get(_))&&ug(r,c);var G=$=m.createElement("link");tt(G),_n(G,"link",r),G._p=new Promise(function(se,de){G.onload=se,G.onerror=de}),G.addEventListener("load",function(){P.loading|=1}),G.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Bu($,o,m)}$={type:"stylesheet",instance:$,count:1,state:P},v.set(_,$)}}}function B9(r,o){Ui.X(r,o);var c=_o;if(c&&r){var m=Pt(c).hoistableScripts,v=wo(r),_=m.get(v);_||(_=c.querySelector(Xl(v)),_||(r=g({src:r,async:!0},o),(o=Ms.get(v))&&fg(r,o),_=c.createElement("script"),tt(_),_n(_,"link",r),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(v,_))}}function z9(r,o){Ui.M(r,o);var c=_o;if(c&&r){var m=Pt(c).hoistableScripts,v=wo(r),_=m.get(v);_||(_=c.querySelector(Xl(v)),_||(r=g({src:r,async:!0,type:"module"},o),(o=Ms.get(v))&&fg(r,o),_=c.createElement("script"),tt(_),_n(_,"link",r),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(v,_))}}function p2(r,o,c,m){var v=(v=ae.current)?Iu(v):null;if(!v)throw Error(s(446));switch(r){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=jo(c.href),c=Pt(v).hoistableStyles,m=c.get(o),m||(m={type:"style",instance:null,count:0,state:null},c.set(o,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){r=jo(c.href);var _=Pt(v).hoistableStyles,$=_.get(r);if($||(v=v.ownerDocument||v,$={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(r,$),(_=v.querySelector(Kl(r)))&&!_._p&&($.instance=_,$.state.loading=5),Ms.has(r)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Ms.set(r,c),_||V9(v,r,c,$.state))),o&&m===null)throw Error(s(528,""));return $}if(o&&m!==null)throw Error(s(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=wo(c),c=Pt(v).hoistableScripts,m=c.get(o),m||(m={type:"script",instance:null,count:0,state:null},c.set(o,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,r))}}function jo(r){return'href="'+Ss(r)+'"'}function Kl(r){return'link[rel="stylesheet"]['+r+"]"}function g2(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function V9(r,o,c,m){r.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=1:(o=r.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=1}),o.addEventListener("error",function(){return m.loading|=2}),_n(o,"link",c),tt(o),r.head.appendChild(o))}function wo(r){return'[src="'+Ss(r)+'"]'}function Xl(r){return"script[async]"+r}function v2(r,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var m=r.querySelector('style[data-href~="'+Ss(c.href)+'"]');if(m)return o.instance=m,tt(m),m;var v=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(r.ownerDocument||r).createElement("style"),tt(m),_n(m,"style",v),Bu(m,c.precedence,r),o.instance=m;case"stylesheet":v=jo(c.href);var _=r.querySelector(Kl(v));if(_)return o.state.loading|=4,o.instance=_,tt(_),_;m=g2(c),(v=Ms.get(v))&&ug(m,v),_=(r.ownerDocument||r).createElement("link"),tt(_);var $=_;return $._p=new Promise(function(P,G){$.onload=P,$.onerror=G}),_n(_,"link",m),o.state.loading|=4,Bu(_,c.precedence,r),o.instance=_;case"script":return _=wo(c.src),(v=r.querySelector(Xl(_)))?(o.instance=v,tt(v),v):(m=c,(v=Ms.get(_))&&(m=g({},c),fg(m,v)),r=r.ownerDocument||r,v=r.createElement("script"),tt(v),_n(v,"link",m),r.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(s(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(m=o.instance,o.state.loading|=4,Bu(m,c.precedence,r));return o.instance}function Bu(r,o,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,_=v,$=0;$<m.length;$++){var P=m[$];if(P.dataset.precedence===o)_=P;else if(_!==v)break}_?_.parentNode.insertBefore(r,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(r,o.firstChild))}function ug(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.title==null&&(r.title=o.title)}function fg(r,o){r.crossOrigin==null&&(r.crossOrigin=o.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=o.referrerPolicy),r.integrity==null&&(r.integrity=o.integrity)}var zu=null;function y2(r,o,c){if(zu===null){var m=new Map,v=zu=new Map;v.set(c,m)}else v=zu,m=v.get(c),m||(m=new Map,v.set(c,m));if(m.has(r))return m;for(m.set(r,null),c=c.getElementsByTagName(r),v=0;v<c.length;v++){var _=c[v];if(!(_[ir]||_[an]||r==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var $=_.getAttribute(o)||"";$=r+$;var P=m.get($);P?P.push(_):m.set($,[_])}}return m}function b2(r,o,c){r=r.ownerDocument||r,r.head.insertBefore(c,o==="title"?r.querySelector("head > title"):null)}function U9(r,o,c){if(c===1||o.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return r=o.disabled,typeof o.precedence=="string"&&r==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function x2(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function H9(r,o,c,m){if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var v=jo(m.href),_=o.querySelector(Kl(v));if(_){o=_._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(r.count++,r=Vu.bind(r),o.then(r,r)),c.state.loading|=4,c.instance=_,tt(_);return}_=o.ownerDocument||o,m=g2(m),(v=Ms.get(v))&&ug(m,v),_=_.createElement("link"),tt(_);var $=_;$._p=new Promise(function(P,G){$.onload=P,$.onerror=G}),_n(_,"link",m),c.instance=_}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(r.count++,c=Vu.bind(r),o.addEventListener("load",c),o.addEventListener("error",c))}}var mg=0;function q9(r,o){return r.stylesheets&&r.count===0&&Hu(r,r.stylesheets),0<r.count||0<r.imgCount?function(c){var m=setTimeout(function(){if(r.stylesheets&&Hu(r,r.stylesheets),r.unsuspend){var _=r.unsu
vendor: 10,511 bytes, line 138
138spend;r.unsuspend=null,_()}},6e4+o);0<r.imgBytes&&mg===0&&(mg=62500*N9());var v=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Hu(r,r.stylesheets),r.unsuspend)){var _=r.unsuspend;r.unsuspend=null,_()}},(r.imgBytes>mg?50:800)+o);return r.unsuspend=c,function(){r.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Hu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Uu=null;function Hu(r,o){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Uu=new Map,o.forEach(G9,r),Uu=null,Vu.call(r))}function G9(r,o){if(!(o.state.loading&4)){var c=Uu.get(r);if(c)var m=c.get(null);else{c=new Map,Uu.set(r,c);for(var v=r.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<v.length;_++){var $=v[_];($.nodeName==="LINK"||$.getAttribute("media")!=="not all")&&(c.set($.dataset.precedence,$),m=$)}m&&c.set(null,m)}v=o.instance,$=v.getAttribute("data-precedence"),_=c.get($)||m,_===m&&c.set(null,v),c.set($,v),this.count++,m=Vu.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),_?_.parentNode.insertBefore(v,_.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(v,r.firstChild)),o.state.loading|=4}}var Zl={$$typeof:E,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function W9(r,o,c,m,v,_,$,P,G){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fl(0),this.hiddenUpdates=fl(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=_,this.onRecoverableError=$,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function _2(r,o,c,m,v,_,$,P,G,se,de,me){return r=new W9(r,o,c,$,G,se,de,me,P),o=1,_===!0&&(o|=24),_=ds(3,null,null,o),r.current=_,_.stateNode=r,o=Gh(),o.refCount++,r.pooledCache=o,o.refCount++,_.memoizedState={element:m,isDehydrated:c,cache:o},Xh(_),r}function j2(r){return r?(r=Ja,r):Ja}function w2(r,o,c,m,v,_){v=j2(v),m.context===null?m.context=v:m.pendingContext=v,m=mr(o),m.payload={element:c},_=_===void 0?null:_,_!==null&&(m.callback=_),c=hr(r,m,o),c!==null&&(Zn(c,r,o),Tl(c,r,o))}function S2(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<o?c:o}}function hg(r,o){S2(r,o),(r=r.alternate)&&S2(r,o)}function N2(r){if(r.tag===13||r.tag===31){var o=ta(r,67108864);o!==null&&Zn(o,r,67108864),hg(r,67108864)}}function C2(r){if(r.tag===13||r.tag===31){var o=ps();o=fn(o);var c=ta(r,o);c!==null&&Zn(c,r,o),hg(r,o)}}var qu=!0;function Y9(r,o,c,m){var v=D.T;D.T=null;var _=H.p;try{H.p=2,pg(r,o,c,m)}finally{H.p=_,D.T=v}}function K9(r,o,c,m){var v=D.T;D.T=null;var _=H.p;try{H.p=8,pg(r,o,c,m)}finally{H.p=_,D.T=v}}function pg(r,o,c,m){if(qu){var v=gg(m);if(v===null)tg(r,o,m,Gu,c),E2(r,m);else if(Z9(v,r,o,c,m))m.stopPropagation();else if(E2(r,m),o&4&&-1<X9.indexOf(r)){for(;v!==null;){var _=Be(v);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var $=Vs(_.pendingLanes);if($!==0){var P=_;for(P.pendingLanes|=2,P.entangledLanes|=2;$;){var G=1<<31-un($);P.entanglements[1]|=G,$&=~G}ci(_),(pt&6)===0&&(Eu=Ge()+500,ql(0))}}break;case 31:case 13:P=ta(_,2),P!==null&&Zn(P,_,2),Au(),hg(_,2)}if(_=gg(m),_===null&&tg(r,o,m,Gu,c),_===v)break;v=_}v!==null&&m.stopPropagation()}else tg(r,o,m,null,c)}}function gg(r){return r=yh(r),vg(r)}var Gu=null;function vg(r){if(Gu=null,r=je(r),r!==null){var o=l(r);if(o===null)r=null;else{var c=o.tag;if(c===13){if(r=d(o),r!==null)return r;r=null}else if(c===31){if(r=u(o),r!==null)return r;r=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}return Gu=r,null}function $2(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mt()){case wt:return 2;case vn:return 8;case cn:case wn:return 32;case ii:return 268435456;default:return 32}default:return 32}}var yg=!1,Nr=null,Cr=null,$r=null,Ql=new Map,Jl=new Map,Er=[],X9="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function E2(r,o){switch(r){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Cr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":Ql.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jl.delete(o.pointerId)}}function ec(r,o,c,m,v,_){return r===null||r.nativeEvent!==_?(r={blockedOn:o,domEventName:c,eventSystemFlags:m,nativeEvent:_,targetContainers:[v]},o!==null&&(o=Be(o),o!==null&&N2(o)),r):(r.eventSystemFlags|=m,o=r.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),r)}function Z9(r,o,c,m,v){switch(o){case"focusin":return Nr=ec(Nr,r,o,c,m,v),!0;case"dragenter":return Cr=ec(Cr,r,o,c,m,v),!0;case"mouseover":return $r=ec($r,r,o,c,m,v),!0;case"pointerover":var _=v.pointerId;return Ql.set(_,ec(Ql.get(_)||null,r,o,c,m,v)),!0;case"gotpointercapture":return _=v.pointerId,Jl.set(_,ec(Jl.get(_)||null,r,o,c,m,v)),!0}return!1}function T2(r){var o=je(r.target);if(o!==null){var c=l(o);if(c!==null){if(o=c.tag,o===13){if(o=d(c),o!==null){r.blockedOn=o,Bd(r.priority,function(){C2(c)});return}}else if(o===31){if(o=u(c),o!==null){r.blockedOn=o,Bd(r.priority,function(){C2(c)});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Wu(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var c=gg(r.nativeEvent);if(c===null){c=r.nativeEvent;var m=new c.constructor(c.type,c);vh=m,c.target.dispatchEvent(m),vh=null}else return o=Be(c),o!==null&&N2(o),r.blockedOn=c,!1;o.shift()}return!0}function A2(r,o,c){Wu(r)&&c.delete(o)}function Q9(){yg=!1,Nr!==null&&Wu(Nr)&&(Nr=null),Cr!==null&&Wu(Cr)&&(Cr=null),$r!==null&&Wu($r)&&($r=null),Ql.forEach(A2),Jl.forEach(A2)}function Yu(r,o){r.blockedOn===o&&(r.blockedOn=null,yg||(yg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Q9)))}var Ku=null;function k2(r){Ku!==r&&(Ku=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ku===r&&(Ku=null);for(var o=0;o<r.length;o+=3){var c=r[o],m=r[o+1],v=r[o+2];if(typeof m!="function"){if(vg(m||c)===null)continue;break}var _=Be(c);_!==null&&(r.splice(o,3),o-=3,gp(_,{pending:!0,data:v,method:c.method,action:m},m,v))}}))}function So(r){function o(G){return Yu(G,r)}Nr!==null&&Yu(Nr,r),Cr!==null&&Yu(Cr,r),$r!==null&&Yu($r,r),Ql.forEach(o),Jl.forEach(o);for(var c=0;c<Er.length;c++){var m=Er[c];m.blockedOn===r&&(m.blockedOn=null)}for(;0<Er.length&&(c=Er[0],c.blockedOn===null);)T2(c),c.blockedOn===null&&Er.shift();if(c=(r.ownerDocument||r).$$reactFormReplay,c!=null)for(m=0;m<c.length;m+=3){var v=c[m],_=c[m+1],$=v[mn]||null;if(typeof _=="function")$||k2(c);else if($){var P=null;if(_&&_.hasAttribute("formAction")){if(v=_,$=_[mn]||null)P=$.formAction;else if(vg(v)!==null)continue}else P=$.action;typeof P=="function"?c[m+1]=P:(c.splice(m,3),m-=3),k2(c)}}}function M2(){function r(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function($){return v=$})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),m||setTimeout(c,20)}function c(){if(!m&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(c,100),function(){m=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function bg(r){this._internalRoot=r}Xu.prototype.render=bg.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(s(409));var c=o.current,m=ps();w2(c,m,r,o,null,null)},Xu.prototype.unmount=bg.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;w2(r.current,2,null,r,null,null),Au(),o[Ci]=null}};function Xu(r){this._internalRoot=r}Xu.prototype.unstable_scheduleHydration=function(r){if(r){var o=Id();r={blockedOn:null,target:r,priority:o};for(var c=0;c<Er.length&&o!==0&&o<Er[c].priority;c++);Er.splice(c,0,r),c===0&&T2(r)}};var O2=t.version;if(O2!=="19.2.4")throw Error(s(527,O2,"19.2.4"));H.findDOMNode=function(r){var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(s(188)):(r=Object.keys(r).join(","),Error(s(268,r)));return r=h(o),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var J9={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};
138if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{Ni=Zu.inject(J9),dn=Zu}catch{}}return rc.createRoot=function(r,o){if(!a(r))throw Error(s(299));var c=!1,m="",v=Bx,_=zx,$=Vx;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&($=o.onRecoverableError)),o=_2(r,1,!1,null,null,c,m,null,v,_,$,M2),r[Ci]=o.current,eg(r),new bg(o)},rc.hydrateRoot=function(r,o,c){if(!a(r))throw Error(s(299));var m=!1,v="",_=Bx,$=zx,P=Vx,G=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&($=c.onCaughtError),c.onRecoverableError!==void 0&&(P=c.onRecoverableError),c.formState!==void 0&&(G=c.formState)),o=_2(r,1,!0,o,c??null,m,v,G,_,$,P,M2),o.context=j2(null),c=o.current,m=ps(),m=fn(m),v=mr(m),v.callback=null,hr(c,v,m),c=m,o.current.lanes=c,sr(o,c),ci(o),r[Ci]=o.current,eg(r),new Xu(o)},rc.version="19.2.4",rc}var d3;function P7(){if(d3)return Ag.exports;d3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ag.exports=R7(),Ag.exports}var q0=P7(),VN=j.createContext(null);VN.displayName="InertiaHeadContext";var G0=VN,W0=o7();function D7(){W0.reset()}var UN=j.createContext(null);UN.displayName="InertiaPageContext";var Y0=UN;function Og(e){return typeof e=="function"||typeof e=="object"&&e!==null&&"$$typeof"in e}function L7(e){if(typeof e!="function")return!1;const t=e;return t.length===1&&typeof t.prototype>"u"}function F7(e){return typeof e=="function"&&e.length<=1&&typeof e.prototype>"u"}var K0=!0,u3=!1,f3=async()=>{K0=!1},I7={shared:{},named:{}};function ko({children:e,initialPage:t,initialComponent:n,resolveComponent:s,titleCallback:a,onHeadUpdate:l,defaultLayout:d}){const[u,f]=j.useState({component:n||null,page:{...t,flash:t.flash??{}},key:null}),h=j.useMemo(()=>QT(typeof window>"u",a||(y=>y),l||(()=>{})),[]),p=j.useSyncExternalStore(W0.subscribe,W0.get,()=>I7);if(u3||(Se.init({initialPage:t,resolveComponent:s,swapComponent:async y=>f3(y),onFlash:y=>{f(x=>({...x,page:{...x.page,flash:y}}))}}),u3=!0),j.useEffect(()=>{f3=async({component:y,page:x,preserveState:b})=>{if(K0){K0=!1;return}b||D7(),ln.flushSync(()=>f(w=>({component:y,page:x,key:b?w.key:Date.now()})))},Se.on("navigate",()=>h.forceUpdate())},[]),!u.component)return j.createElement(G0.Provider,{value:h},j.createElement(Y0.Provider,{value:u.page},null));const g=e||(({Component:y,props:x,key:b})=>{const w=j.createElement(y,{key:b,...x});let S,N=null;const C=y.layout;if(F7(C)){const M=C(x);if(j.isValidElement(M))return C(w);l7(M,Og)?(S=d?.(u.page.component,u.page),N=M):S=M}else kN(C,Og)?(S=d?.(u.page.component,u.page),N=C):S=C??d?.(u.page.component,u.page);let E=d7(S,Og,C&&!N?L7:void 0);return N&&(E=E.map(M=>({...M,props:{...M.props,...N}}))),E.length>0?E.reduceRight((M,L)=>j.createElement(L.component,{...x,...L.props,...p.shared,...L.name?p.named[L.name]||{}:{}},M),w):w});return j.createElement(G0.Provider,{value:h},j.createElement(Y0.Provider,{value:u.page},g({Component:u.component,key:u.key,props:u.page.props})))}ko.displayName="Inertia";async function B7({id:e="app",resolve:t,setup:n,title:s,progress:a={},page:l,render:d,defaults:u={},http:f,layout:h,strictMode:p=!1,withApp:g}={}){zc.replace(u),f&&CN.setClient(f);const y=typeof window>"u",x=C=>p?j.createElement(j.StrictMode,null,C):C,b=(C,E)=>Promise.resolve(t(C,E)).then(M=>M.default||M);if(y&&!l&&!d)return async(C,E)=>{let M=[];const L=await b(C.component,C),R={initialPage:C,initialComponent:L,resolveComponent:b,titleCallback:s,onHeadUpdate:I=>M=I,defaultLayout:h};let O;n?O=n({el:null,App:ko,props:R}):(O=x(j.createElement(ko,R)),g&&(O=g(O,{ssr:!0})));const k=E(O),B=n3(e,C,k);return{head:M,body:B}};const w=l||yT(e);let S=[];const N=await Promise.all([b(w.component,w),Se.decryptHistory().catch(()=>{})]).then(([C])=>{const E={initialPage:w,initialComponent:C,resolveComponent:b,titleCallback:s,onHeadUpdate:y?R=>S=R:void 0,defaultLayout:h};if(y)return n({el:null,App:ko,props:E});const M=document.getElementById(e);if(n)return n({el:M,App:ko,props:E});let L=x(j.createElement(ko,E));g&&(L=g(L,{ssr:!1})),M.hasAttribute("data-server-rendered")?q0.hydrateRoot(M,L):q0.createRoot(M).render(L)});if(!y&&a&&S7(a),y&&d&&N){const C=d(N),E=n3(e,w,C);return{head:S,body:E}}}function rn(){const e=j.use(Y0);if(!e)throw new Error("usePage must be used within the Inertia component");return e}function z7(e,t){typeof window>"u"?j.useEffect(e,t):j.useLayoutEffect(e,t)}function V7(e){const{data:t,useDataState:n,useErrorsState:s}=e,a=typeof t=="function",l=()=>a?t():t,d=At(l()),u=j.useRef(!1),f=j.useRef(e.precognitionEndpoint??null),[h,p]=j.useState(At(d)),[g,y]=n?n():j.useState(At(d)),[x,b]=s?s():j.useState({}),[w,S]=j.useState(!1),[N,C]=j.useState(null),[E,M]=j.useState(!1),[L,R]=j.useState(!1),O=j.useRef(void 0),k=j.useRef(Ne=>Ne),B=j.useRef(!1),I=j.useRef(null),[V,z]=j.useState(!1),[K,W]=j.useState([]),[Q,D]=j.useState([]),H=j.useRef(null),U=()=>H.current??zc.get("form.withAllErrors"),Z=j.useRef(g);j.useEffect(()=>{Z.current=g}),j.useEffect(()=>(u.current=!0,()=>{u.current=!1}),[]);const F=j.useCallback((Ne,Ue)=>{y(typeof Ne=="string"?Te=>ts(At(Te),Ne,Ue):typeof Ne=="function"?Te=>Ne(Te):Ne)},[y]),T=j.useCallback((Ne,Ue)=>{if(a)throw new Error("You cannot call `defaults()` when using a function to define your form data.");B.current=!0;let Te={};typeof Ne>"u"?(Te={...Z.current},p(Z.current)):p(Ze=>(Te=typeof Ne=="string"?ts(At(Ze),Ne,Ue):Object.assign(At(Ze),Ne),Te)),I.current?.defaults(Te)},[p]),A=j.useCallback((...Ne)=>{const Ue=a?At(l()):h,Te=At(Ue);Ne.length===0?(a&&p(Te),y(Te)):(a&&p(Ze=>{const vt=At(Ze);return Ne.filter(fe=>
138P0(Te,fe)).forEach(fe=>{ts(vt,fe,zt(Te,fe))}),vt}),y(Ze=>Ne.filter(vt=>P0(Te,vt)).reduce((vt,fe)=>ts(vt,fe,zt(Te,fe)),{...Ze}))),I.current?.reset(...Ne)},[y,h]),Y=j.useCallback((Ne,Ue)=>{b(Te=>{const Ze={...Te,...typeof Ne=="string"?{[Ne]:Ue}:Ne};return I.current?.setErrors(Ze),Ze})},[b]),ee=j.useCallback((...Ne)=>{b(Ue=>{const Te=Object.keys(Ue).reduce((Ze,vt)=>({...Ze,...Ne.length>0&&!Ne.includes(vt)?{[vt]:Ue[vt]}:{}}),{});return I.current&&(Ne.length===0?I.current.setErrors({}):Ne.forEach(I.current.forgetError)),Te})},[b]),te=j.useCallback((...Ne)=>{A(...Ne),ee(...Ne)},[A,ee]),ae=j.useCallback(()=>{ee(),M(!0),R(!0),O.current=window.setTimeout(()=>{u.current&&R(!1)},zc.get("form.recentlySuccessfulDuration"))},[ee,M,R]),pe=j.useCallback(()=>{M(!1),R(!1),clearTimeout(O.current)},[M,R]),le=j.useCallback(()=>{S(!1),C(null)},[S,C]),ve=j.useCallback(Ne=>{k.current=Ne},[]),xe=(Ne,Ue)=>(Ue(Ne),Ne),$e=j.useCallback(Ne=>Q.includes(Ne),[Q]),ce=j.useCallback(Ne=>Ne in x,[x]),be=j.useCallback(Ne=>typeof Ne=="string"?K.includes(Ne):K.length>0,[K]),Ee={data:g,isDirty:!pi(g,h),errors:x,hasErrors:Object.keys(x).length>0,processing:w,progress:N,wasSuccessful:E,recentlySuccessful:L,setData:F,transform:ve,setDefaults:T,reset:A,setError:Y,clearErrors:ee,resetAndClearErrors:te},ke=(Ne,Ue)=>{if(typeof Ne=="object"&&!("target"in Ne)&&(Ue=Ne,Ne=void 0),Ne===void 0)I.current.validate(Ue);else{const Te=Cc(Ne),Ze=k.current(Z.current);I.current.validate(Te,zt(Ze,Te),Ue)}return Ee},Le=(...Ne)=>{if(f.current=rm.createWayfinderCallback(...Ne),!I.current){const Te=Y8(Ze=>{const{method:vt,url:fe}=f.current(),ze=Z.current,Ge=k.current(ze);return Ze[vt](fe,Ge)},At(h));
138I.current=Te,Te.on("validatingChanged",()=>{z(Te.validating())}).on("validatedChanged",()=>{D(Te.valid())}).on("touchedChanged",()=>{W(Te.touched())}).on("errorsChanged",()=>{const Ze=U()?Te.errors():K8(Te.errors());b(Ze),D(Te.valid())})}const Ue=Object.assign(Ee,{validating:V,validator:()=>I.current,valid:$e,invalid:ce,touched:be,withoutFileValidation:()=>xe(Ue,()=>I.current?.withoutFileValidation()),touch:(Te,...Ze)=>(Array.isArray(Te)?I.current?.touch(Te):typeof Te=="string"?I.current?.touch([Te,...Ze]):I.current?.touch(Te),Ue),withAllErrors:()=>xe(Ue,()=>H.current=!0),setValidationTimeout:Te=>xe(Ue,()=>I.current?.setTimeout(Te)),validateFiles:()=>xe(Ue,()=>I.current?.validateFiles()),validate:ke,setErrors:Te=>xe(Ue,()=>Ee.setError(Te)),forgetError:Te=>xe(Ue,()=>Ee.clearErrors(Cc(Te)))});return Ue};return Ee.withPrecognition=Le,f.current&&Ee.withPrecognition(f.current),{form:Ee,setDefaultsState:p,transformRef:k,precognitionEndpointRef:f,dataRef:Z,isMounted:u,setProcessing:S,setProgress:C,markAsSuccessful:ae,clearErrors:ee,setError:Y,defaultsCalledInOnSuccessRef:B,resetBeforeSubmit:pe,finishProcessing:le,withAllErrors:{enabled:U,enable:()=>{H.current=!0}}}}function m3(e,t,n){const[s,a]=j.useState(()=>{const l=Se.restore(t);return l!==void 0?l:e});return j.useEffect(()=>{const l=n?.current;if(l&&l.length>0&&typeof s=="object"&&s!==null){const d={...s};l.forEach(u=>delete d[u]),Se.remember(d,t)}else Se.remember(s,t)},[s,t]),[s,a]}function Yt(...e){const{rememberKey:t,data:n,precognitionEndpoint:s}=rm.parseUseFormArguments(...e),a=At(typeof n=="function"?n():n),l=j.useRef(null),d=j.useRef([]),u=j.useRef(null),f=t?()=>m3(a,`${t}:data`,d):void 0,h=t?()=>m3({},`${t}:errors`):void 0,{form:p,setDefaultsState:g,transformRef:y,precognitionEndpointRef:x,dataRef:b,isMounted:w,setProcessing:S,setProgress:N,markAsSuccessful:C,clearErrors:E,setError:M,defaultsCalledInOnSuccessRef:L,resetBeforeSubmit:R,finishProcessing:O}=V7({data:n,precognitionEndpoint:s,useDataState:f,useErrorsState:h}),[k,B]=j.useState(!1),I=p.setDefaults;p.setDefaults=j.useCallback((D,H)=>(typeof D>"u"&&B(!0),I(D,H)),[I]),z7(()=>{k&&(p.isDirty&&g(p.data),B(!1))},[k]);const V=j.useCallback((...D)=>{const{method:H,url:U,options:Z}=rm.parseSubmitArguments(D,x.current);L.current=!1;const F={...Z,onCancelToken:A=>(l.current=A,Z.onCancelToken?.(A)),onBefore:A=>(R(),Z.onBefore?.(A)),onStart:A=>(S(!0),Z.onStart?.(A)),onProgress:A=>(N(A||null),Z.onProgress?.(A)),onSuccess:async A=>{w.current&&C();const Y=Z.onSuccess?await Z.onSuccess(A):null;return w.current&&!L.current&&p.setData(ee=>(g(At(ee)),ee)),Y},onError:A=>(w.current&&(E(),M(A)),Z.onError?.(A)),onCancel:()=>Z.onCancel?.(),onFinish:A=>(w.current&&O(),l.current=null,Z.onFinish?.(A))};F.optimistic=F.optimistic??u.current??void 0,u.current=null;const T=y.current(b.current);H==="delete"?Se.delete(U,{...F,data:T}):Se[H](U,T,F)},[E,M,y]),z=j.useCallback(()=>{l.current&&l.current.cancel()},[]),K=j.useMemo(()=>({get:(D,H={})=>V("get",D,H),post:(D,H={})=>V("post",D,H),put:(D,H={})=>V("put",D,H),patch:(D,H={})=>V("patch",D,H),delete:(D,H={})=>V("delete",D,H)}),[V]);Object.assign(p,{submit:V,...K,cancel:z,dontRemember:(...D)=>(d.current=D,W),optimistic:D=>(u.current=D,W)});const W=p,Q=p.withPrecognition;return W.withPrecognition=(...D)=>(Q(...D),W),x.current,W}var U7=e=>{typeof ye.startTransition=="function"?ye.startTransition(e):setTimeout(e,0)},Hi=()=>{},H7=j.createContext(void 0),q7=j.forwardRef(({action:e="",method:t="get",headers:n={}
138,queryStringArrayFormat:s="brackets",errorBag:a=null,showProgress:l=!0,transform:d=Q=>Q,optimistic:u,options:f={},onStart:h=Hi,onProgress:p=Hi,onFinish:g=Hi,onBefore:y=Hi,onCancel:x=Hi,onSuccess:b=Hi,onError:w=Hi,onCancelToken:S=Hi,onSubmitComplete:N=Hi,disableWhileProcessing:C=!1,resetOnError:E=!1,resetOnSuccess:M=!1,setDefaultsOnSuccess:L=!1,invalidateCacheTags:R=[],validateFiles:O=!1,validationTimeout:k=1500,withAllErrors:B=null,component:I=null,instant:V=!1,children:z,...K},W)=>{const Q=()=>{const[ke,Le]=te();return d(Le)},D=Yt({}).withPrecognition(()=>U,()=>te()[0]).setValidationTimeout(k);O&&D.validateFiles(),(B??Ic.get("form.withAllErrors"))&&D.withAllErrors(),D.transform(Q);const H=j.useRef(void 0),U=j.useMemo(()=>Js(e)?e.method:t.toLowerCase(),[e,t]),Z=j.useMemo(()=>I||(V&&Js(e)?wN(e):null),[I,V,e]),[F,T]=j.useState(!1),A=j.useRef(new FormData),Y=ke=>new FormData(H.current,ke),ee=ke=>J2(Y(ke)),te=ke=>Om(U,Js(e)?e.url:e,ee(ke),s),ae=ke=>{ke.type==="reset"&&ke.detail?.[BN]&&ke.preventDefault(),U7(()=>T(ke.type==="reset"?!1:!pi(ee(),J2(A.current))))},pe=(...ke)=>(D.clearErrors(...ke),D);j.useEffect(()=>{A.current=Y(),D.setDefaults(ee());const ke=["input","change","reset"];return ke.forEach(Le=>H.current.addEventListener(Le,ae)),()=>{ke.forEach(Le=>H.current?.removeEventListener(Le,ae))}},[]),j.useEffect(()=>{D.setValidationTimeout(k)},[k]),j.useEffect(()=>{O?D.validateFiles():D.withoutFileValidation()},[O]);const le=(...ke)=>{H.current&&E7(H.current,A.current,ke),D.reset(...ke)},ve=(...ke)=>{pe(...ke),le(...ke)},xe=ke=>{ke&&(ke===!0?le():ke.length>0&&le(...ke))},$e=ke=>{const[Le,Ne]=te(ke);if(ke?.getAttribute("formtarget")==="_blank"&&U==="get"){window.open(Le,"_blank");return}const Te={headers:n,queryStringArrayFormat:s,errorBag:a,showProgress:l,invalidateCacheTags:R,component:Z,optimistic:u?Ze=>u(Ze,Ne):void 0,onCancelToken:S,onBefore:y,onStart:h,onProgress:p,onFinish:g,onCancel:x,onSuccess:(...Ze)=>{b(...Ze),N({reset:le,defaults:ce}),xe(M),L===!0&&ce()},onError(...Ze){w(...Ze),xe(E)},...f};D.transform(()=>d(Ne)),D.submit(U,Le,Te),D.transform(Q)},ce=()=>{A.current=Y(),T(!1)},be={errors:D.errors,hasErrors:D.hasErrors,processing:D.processing,progress:D.progress,wasSuccessful:D.wasSuccessful,recentlySuccessful:D.recentlySuccessful,isDirty:F,clearErrors:pe,resetAndClearErrors:ve,setError:D.setError,reset:le,submit:$e,defaults:ce,getData:ee,getFormData:Y,validator:()=>D.validator(),validating:D.validating,valid:D.valid,invalid:D.invalid,validate:(ke,Le)=>D.validate(...rm.mergeHeadersForValidation(ke,Le,n)),touch:D.touch,touched:D.touched};j.useImperativeHandle(W,()=>be,[D,F,$e]);const Ee=j.createElement("form",{...K,ref:H,action:Js(e)?e.url:e,method:U,onSubmit:ke=>{ke.preventDefault(),$e(ke.nativeEvent.submitter)},inert:C&&D.processing},typeof z=="function"?z(be):z);return j.createElement(H7.Provider,{value:be},Ee)});q7.displayName="InertiaForm";var G7=function({children:e,title:t}){const n=j.use(G0),s=j.useMemo(()=>n.createProvider(),[n]),a=typeof window>"u";j.useEffect(()=>(s.reconnect(),s.update(g(e)),()=>{s.disconnect()}),[s,e,t]);function l(y){return typeof y.type=="string"&&["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(y.type)>-1}function d(y){const x=Object.keys(y.props).reduce((b,w)=>{if(["head-key","children","dangerouslySetInnerHTML"].includes(w))return b;const S=String(y.props[w]);return S===""?b+` ${w}`:b+` ${w}="${M8(S)}"`},"");return`<${String(y.type)}${x}>`}function u(y){const{children:x}=y.props;return typeof x=="string"?x:Array.isArray(x)?x.reduce((b,w)=>b+f(w),""):""}function f(y){let x=d(y);return y.props.children&&(x+=u(y)),y.props.dangerouslySetInnerHTML&&(x+=y.props.dangerouslySetInnerHTML.__html),l(y)||(x+=`</${String(y.type)}>`),x}function h(y){return ye.cloneElement(y,{"data-inertia":y.props["head-key"]!==void 0?y.props["head-key"]:""})}function p(y){return f(h(y))}function g(y){const x=ye.Children.toArray(y).filter(b=>b).map(b=>p(b));return t&&!x.find(b=>b.startsWith("<title"))&&x.push(`<title data-inertia="">${t}</title>`),x}return a&&s.update(g(e)),null},Lm=G7,Rg=(e,t)=>
138e?e&&typeof e=="object"&&"current"in e?e.current:typeof e=="string"?document.querySelector(e):t:t,ef=(e,t,n=null)=>e?typeof e=="function"?e(t):e:n,W7=j.forwardRef(({data:e,buffer:t=0,as:n="div",manual:s=!1,manualAfter:a=0,preserveUrl:l=!1,reverse:d=!1,autoScroll:u,children:f,startElement:h,endElement:p,itemsElement:g,previous:y,next:x,loading:b,params:w={},onlyNext:S=!1,onlyPrevious:N=!1,...C},E)=>{const[M,L]=j.useState(null),R=j.useCallback(wt=>L(wt),[]),[O,k]=j.useState(null),B=j.useCallback(wt=>k(wt),[]),[I,V]=j.useState(null),z=j.useCallback(wt=>V(wt),[]),K=rn().scrollProps?.[e],[W,Q]=j.useState(!1),[D,H]=j.useState(!1),[U,Z]=j.useState(0),[F,T]=j.useState(!!K?.previousPage),[A,Y]=j.useState(!!K?.nextPage),[ee,te]=j.useState(null),[ae,pe]=j.useState(null),[le,ve]=j.useState(null);j.useEffect(()=>{const wt=h?Rg(h,M):M;te(wt)},[h,M]),j.useEffect(()=>{const wt=p?Rg(p,O):O;pe(wt)},[p,O]),j.useEffect(()=>{const wt=g?Rg(g,I):I;ve(wt)},[g,I]);const xe=j.useMemo(()=>vT(le),[le]),$e=j.useRef({buffer:t,onlyNext:S,onlyPrevious:N,reverse:d,preserveUrl:l,params:w});$e.current={buffer:t,onlyNext:S,onlyPrevious:N,reverse:d,preserveUrl:l,params:w};const[ce,be]=j.useState(null),Ee=j.useMemo(()=>ce?.dataManager,[ce]),ke=j.useMemo(()=>ce?.elementManager,[ce]),Le=j.useCallback(()=>{xe?xe.scrollTo({top:xe.scrollHeight,behavior:"instant"}):window.scrollTo({top:document.body.scrollHeight,behavior:"instant"})},[xe]);j.useEffect(()=>{if(!le)return;function wt(){Z(vn.dataManager.getRequestCount()),T(vn.dataManager.hasPrevious()),Y(vn.dataManager.hasNext())}const vn=a7({getPropName:()=>e,inReverseMode:()=>$e.current.reverse,shouldFetchNext:()=>!$e.current.onlyPrevious,shouldFetchPrevious:()=>!$e.current.onlyNext,shouldPreserveUrl:()=>$e.current.preserveUrl,getReloadOptions:()=>$e.current.params,getTriggerMargin:()=>$e.current.buffer,getStartElement:()=>ee,getEndElement:()=>ae,getItemsElement:()=>le,getScrollableParent:()=>xe,onBeforePreviousRequest:()=>Q(!0),onBeforeNextRequest:()=>H(!0),onCompletePreviousRequest:()=>{Q(!1),wt()},onCompleteNextRequest:()=>{H(!1),wt()},onDataReset:wt});be(vn);const{dataManager:cn,elementManager:wn}=vn;return wt(),wn.setupObservers(),wn.processServerLoadedElements(cn.getLastLoadedPage()),Ue&&wn.enableTriggers(),()=>{vn.flush(),be(null)}},[e,le,ee,ae,xe]);const Ne=j.useMemo(()=>s||a>0&&U>=a,[s,a,U]),Ue=j.useMemo(()=>!Ne,[Ne]);j.useEffect(()=>{Ue?ke?.enableTriggers():ke?.disableTriggers()},[Ue,S,N,ee,ae]),j.useEffect(()=>{(u!==void 0?u:d)&&Le()},[xe]),j.useImperativeHandle(E,()=>({fetchNext:Ee?.fetchNext||(()=>{}),fetchPrevious:Ee?.fetchPrevious||(()=>{}),hasPrevious:Ee?.hasPrevious||(()=>!1),hasNext:Ee?.hasNext||(()=>!1)}),[Ee]);const Te=Ue&&!S,Ze=Ue&&!N,vt={loadingPrevious:W,loadingNext:D,hasPrevious:F,hasNext:A},fe={loading:W,fetch:Ee?.fetchPrevious??(()=>{}),autoMode:Te,manualMode:!Te,hasMore:F,...vt},ze={loading:D,fetch:Ee?.fetchNext??(()=>{}),autoMode:Ze,manualMode:!Ze,hasMore:A,...vt},Ge={loading:W||D,loadingPrevious:W,loadingNext:D},mt=[];return h||mt.push(j.createElement("div",{ref:R},ef(y,fe,W?ef(b,fe):null))),mt.push(j.createElement(n,{...C,ref:z},typeof f=="function"?f(Ge):f)),p||mt.push(j.createElement("div",{ref:B},ef(x,ze,D?ef(b,ze):null))),j.createElement(ye.Fragment,{},...d?[...mt].reverse():mt)});W7.displayName="InertiaInfiniteScroll";var Ks=()=>{},HN=j.forwardRef(({children:e,as:t="a",data:n={},href:s="",method:a="get",preserveScroll:l=!1,preserveState:d=null,preserveUrl:u=!1,replace:f=!1,only:h=[],except:p=[],headers:g={},queryStringArrayFormat:y="brackets",async:x=!1,onClick:b=Ks,onCancelToken:w=Ks,onBefore:S=Ks,onStart:N=Ks,onProgress:C=Ks,onFinish:E=Ks,onCancel:M=Ks,onSuccess:L=Ks,onError:R=Ks,onPrefetching:O=Ks,onPrefetched:k=Ks,prefetch:B=!1,cacheFor:I=0,cacheTags:V=[],viewTransition:z=!1,component:K=null,instant:W=!1,pageProps:Q=null,...D},H)=>{const[U,Z]=j.useState(0),F=j.useRef(void 0),T=j.useMemo(()=>Js(s)?s.method:a.toLowerCase(),[s,a]),A=j.useMemo(()=>K||(W&&Js(s)?wN(s):null),[K,W,s]),Y=j.useMemo(()=>typeof t!="string"||t.toLowerCase()!=="a"?t:T!=="get"?"button":t.toLowerCase(),[t,T]),ee=j.useMemo(()=>
138Om(T,Js(s)?s.url:s,n,y),[s,T,n,y]),te=j.useMemo(()=>ee[0],[ee]),ae=j.useMemo(()=>ee[1],[ee]),pe=j.useMemo(()=>({data:ae,method:T,preserveScroll:l,preserveState:d??T!=="get",preserveUrl:u,replace:f,only:h,except:p,headers:g,async:x,component:A,pageProps:Q}),[ae,T,l,d,u,f,h,p,g,x,A,Q]),le=j.useMemo(()=>({...pe,viewTransition:z,onCancelToken:w,onBefore:S,onStart(Le){Z(Ne=>Ne+1),N(Le)},onProgress:C,onFinish(Le){Z(Ne=>Ne-1),E(Le)},onCancel:M,onSuccess:L,onError:R}),[pe,z,w,S,N,C,E,M,L,R]),ve=j.useMemo(()=>B===!0?["hover"]:B===!1?[]:Array.isArray(B)?B:[B],Array.isArray(B)?B:[B]),xe=j.useMemo(()=>I!==0?I:ve.length===1&&ve[0]==="click"?0:zc.get("prefetch.cacheFor"),[I,ve]),$e=j.useMemo(()=>()=>{Se.prefetch(te,{...pe,onPrefetching:O,onPrefetched:k},{cacheFor:xe,cacheTags:V})},[te,pe,O,k,xe,V]);j.useEffect(()=>()=>{clearTimeout(F.current)},[]),j.useEffect(()=>{ve.includes("mount")&&setTimeout(()=>$e())},ve);const ce={onClick:Le=>{b(Le),Ju(Le)&&(Le.preventDefault(),Se.visit(te,le))}},be={onMouseEnter:()=>{F.current=window.setTimeout(()=>{$e()},zc.get("prefetch.hoverDelay"))},onMouseLeave:()=>{clearTimeout(F.current)},onClick:ce.onClick},Ee={onMouseDown:Le=>{Ju(Le)&&(Le.preventDefault(),$e())},onKeyDown:Le=>{t3(Le)&&(Le.preventDefault(),$e())},onMouseUp:Le=>{Ju(Le)&&(Le.preventDefault(),Se.visit(te,le))},onKeyUp:Le=>{t3(Le)&&(Le.preventDefault(),Se.visit(te,le))},onClick:Le=>{b(Le),Ju(Le)&&Le.preventDefault()}},ke=j.useMemo(()=>Y==="button"?{type:"button"}:Y==="a"||typeof Y!="string"?{href:te}:{},[Y,te]);return j.createElement(Y,{...D,...ke,ref:H,...ve.includes("hover")?be:ve.includes("click")?Ee:ce,"data-loading":U>0?"":void 0},e)});HN.displayName="InertiaLink";var Ce=HN,zc=Ic.extend();function Vt({title:e,description:t,image:n,isArticle:s=!1,keywords:a,author:l,url:d,noindex:u=!1,publishedTime:f,modifiedTime:h,wordCount:p,categories:g}){const y=rn().url.split("?")[0].split("#")[0],x=(O,k="")=>O==null||typeof O=="symbol"?k:String(O),b="BCCS - Your Pathfinder in Fintech & Web3",w="https://bccs.tech",S=e?`${x(e)} | BCCS`:b,N=t?x(t):"BCCS is a digital innovation hub that acts as a vital link in the global fintech ecosystem, fostering innovation and collaboration",C=n?x(n):"/images/og-image.png",E=d?x(d):y,M=`${w}${E==="/"?"":E}`,L=M,R=s&&f?{"@context":"https://schema.org","@type":"Article",headline:x(e),description:N,image:C.startsWith("http")?C:`${w}${C}`,datePublished:x(f),dateModified:x(h||f),...p&&{wordCount:p},...g&&g.length>0&&{articleSection:g},author:{"@type":"Person",name:x(l,"BCCS Team")},publisher:{"@type":"Organization",name:b,logo:{"@type":"ImageObject",url:`${w}/images/logo.png`}},mainEntityOfPage:{"@type":"WebPage","@id":M},inLanguage:"en-US"}:null;return j.useEffect(()=>{if(!R)return;const O="jsonld-schema";let k=document.getElementById(O);return k||(k=document.createElement("script"),k.id=O,k.type="application/ld+json",document.head.appendChild(k)),k.textContent=JSON.stringify(R),()=>{const B=document.getElementById(O);B&&B.remove()}},[R]),i.jsxs(Lm,{children:[i.jsx("title",{children:S}),i.jsx("meta",{name:"description",content:N}),i.jsx("link",{rel:"canonical",href:L}),u&&i.jsx("meta",{name:"robots",content:"noindex, nofollow"}),a&&i.jsx("meta",{name:"keywords",content:x(a)}),l&&i.jsx("meta",{name:"author",content:x(l)}),i.jsx("meta",{property:"og:title",content:S}),i.jsx("meta",{property:"og:description",content:N}),i.jsx("meta",{property:"og:image",content:C}),i.jsx("meta",{property:"og:type",content:s?"article":"website"}),i.jsx("meta",{property:"og:url",content:M}),i.jsx("meta",{property:"og:site_name",content:b}),i.jsx("meta",{property:"og:locale",content:"en_US"}),s&&f&&i.jsx("meta",{property:"article:published_time",content:x(f)}),s&&h&&i.jsx("meta",{property:"article:modified_time",content:x(h)}),i.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),i.jsx("meta",{name:"twitter:title",content:S}),i.jsx("meta",{name:"twitter:description",content:N}),i.jsx("meta",{name:"twitter:image",content:C})]})}function Kt(){const[e,t]=j.useState(!1),[n,s]=j.useState(!1),[a,l]=j.useState(!1),[d,u]=j.useState({}),[f,h]=j.useState(0),[p,g]=j.useState(()=>typeof window<"u"?localStorage.getItem("darkMode")==="true":!1),y=j.useRef(null),x=j.useRef(null),b=j.useRef(null);j.useEffect(()=>{const S=N=>{const C=document.querySelector(".nav-item.services-trigger");y.current&&!y.current.contains(N.target)&&!C?.contains(N.target)&&t(!1);const E=document.querySelector(".nav-item.knowledge-trigger");x.current&&!x.current.contains(N.target)&&!E?.contains(N.target)&&s(!1)};
138return(e||n)&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[e,n]),j.useEffect(()=>{const S=()=>{b.current&&h(b.current.offsetHeight)};S(),window.addEventListener("resize",S);const N=new ResizeObserver(S);return b.current&&N.observe(b.current),()=>{window.removeEventListener("resize",S),N.disconnect()}},[]),j.useEffect(()=>{p?document.body.classList.add("dark"):document.body.classList.remove("dark")},[p]);const w=()=>{const S=!p;g(S),S?(document.body.classList.add("dark"),localStorage.setItem("darkMode","true")):(document.body.classList.remove("dark"),localStorage.setItem("darkMode","false"))};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"header",ref:b,children:i.jsxs("div",{className:"header-content",children:[i.jsx(Ce,{href:"/",className:"logo",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"logo-light"})}),i.jsxs("div",{className:"mobile-controls",children:[i.jsxs("div",{className:"ui-toogle-mode mobile-toggle",onClick:w,children:[i.jsxs("div",{className:"dark-toogle",children:[!p&&i.jsx("div",{className:"circle"}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/moon.svg",width:"20",height:"20",alt:"Dark mode"})})]}),i.jsxs("div",{className:"light-toogle",children:[p&&i.jsx("div",{className:"circle"}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/sun.svg",width:"23",height:"20",alt:"Light mode"})})]})]}),i.jsx("div",{className:"navbar-mobile",onClick:()=>l(!0),style:{cursor:"pointer"},children:i.jsx("img",{src:"/images/icons/hamburger-menu.svg",width:"24",height:"19",alt:"Menu"})})]}),i.jsxs("div",{className:"navbar",children:[i.jsxs("div",{className:"navlist",children:[i.jsx(Ce,{href:"/about-us",className:"nav-item",children:i.jsx("p",{children:"About Us"})}),i.jsx(Ce,{href:"/our-community",className:"nav-item",children:i.jsx("p",{children:"Network"})}),i.jsxs("div",{className:`nav-item services-trigger ${e?"active":""}`,onClick:()=>t(!e),children:[i.jsx("p",{children:"Services"}),i.jsx("img",{src:"/images/icons/chevron-down.svg",width:"12",height:"12",alt:"Arrow",style:{transform:e?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s"}})]}),i.jsxs("div",{className:`nav-item knowledge-trigger ${n?"active":""}`,onClick:()=>s(!n),children:[i.jsx("p",{children:"Knowledge Hub"}),i.jsx("img",{src:"/images/icons/chevron-down.svg",width:"12",height:"12",alt:"Arrow",style:{transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s"}}),i.jsx("div",{ref:x,className:`flyout-menu-small ${n?"flyout-open":""}`,onClick:S=>S.stopPropagation(),style:{position:"absolute",top:"100%",right:0,zIndex:1e3,opacity:n?1:0,visibility:n?"visible":"hidden",transform:n?"translateY(0)":"translateY(-10px)",transition:"all 0.2s ease"},children:i.jsx("div",{className:"menu-list",children:i.jsxs(Ce,{href:"/news",className:"menu-list-item",onClick:()=>s(!1),children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/newspaper.svg",width:"16",height:"16",alt:"Icon"})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:"Articles"})}),i.jsx("div",{className:"description",children:i.jsx("p",{children:"Follow BCCS Cluster news"})})]})]})})})]})]}),i.jsxs("div",{className:"ui-toogle-mode",onClick:w,children:[i.jsxs("div",{className:"dark-toogle",children:[!p&&i.jsx("div",{className:"circle"}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/moon.svg",width:"20",height:"20",alt:"Dark mode"})})]}),i.jsxs("div",{className:"light-toogle",children:[p&&i.jsx("div",{className:"circle"}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/sun.svg",width:"23",height:"20",alt:"Light mode"})})]})]}),i.jsxs("div",{className:"header-cta",children:[i.jsx(Ce,{href:"/register-company",className:"button",children:"Become a Member"}),i.jsx(Ce,{href:"/login",className:"button-light",children:"Login"})]})]})]})}),i.jsx("div",{ref:y,className:`flyout-menu-desktop ${e?"flyout-open":""}
138`,style:{top:`${f}px`,opacity:e?1:0,visibility:e?"visible":"hidden",transform:e?"translateY(0)":"translateY(-10px)"},children:i.jsxs("div",{className:"menu-list",children:[i.jsxs(Ce,{href:"/services/cybersecurity",className:"menu-list-item",onClick:()=>t(!1),children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/cybersecurity.svg",width:"16",height:"16",alt:"Icon"})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:"Cybersecurity"})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:"Comprehensive security solutions to protect your business"})})]})]}),i.jsxs(Ce,{href:"/services/technology-innovation",className:"menu-list-item",onClick:()=>t(!1),children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/microchip.svg",width:"16",height:"16",alt:"Icon"})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:"Technology Innovation"})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:"Cutting-edge fintech and blockchain solutions"})})]})]}),i.jsxs(Ce,{href:"/services/compliance-regulation",className:"menu-list-item",onClick:()=>t(!1),children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/gavel.svg",width:"18",height:"18",alt:"Icon"})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:"Compliance & Regulation"})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:"Navigate regulatory requirements with confidence"})})]})]}),i.jsxs(Ce,{href:"/services/international-expansion",className:"menu-list-item",onClick:()=>t(!1),children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/compass.svg",width:"18",height:"18",alt:"Icon"})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:"International Expansion"})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:"Global market entry and cross-border services"})})]})]})]})}),i.jsx("div",{style:{height:`${f}px`}}),i.jsxs("div",{className:`sidebar-menu ${a?"sidebar-open":""}`,children:[i.jsxs("div",{className:"menu-header",children:[i.jsx(Ce,{href:"/",className:"logo",onClick:()=>l(!1),children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"logo"})}),i.jsx("div",{className:"close-btn",onClick:()=>l(!1),style:{cursor:"pointer"},children:i.jsx("img",{src:"/images/icons/close.svg",width:"34",height:"34",alt:"Close"})})]}),i.jsxs("div",{className:"menu-items",children:[i.jsx(Ce,{href:"/about-us",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"About Us"})}),i.jsx(Ce,{href:"/our-community",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"Network"})}),i.jsxs("div",{className:"menu-item--collapsible",children:[i.jsxs("div",{className:`nav-item ${d.services?"active":""}`,onClick:()=>u({...d,services:!d.services}),style:{cursor:"pointer"},children:[i.jsx("p",{children:"Services"}),i.jsx("img",{src:"/images/icons/chevron-right.svg",width:"16",height:"16",alt:"Arrow",style:{transform:d.services?"rotate(90deg)":"rotate(0)",transition:"transform 0.3s"}})]}),d.services&&i.jsxs("div",{className:"sub-menu",children:[i.jsx(Ce,{href:"/services/cybersecurity",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"Cybersecurity"})}),i.jsx(Ce,{href:"/services/technology-innovation",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"Technology Innovation"})}),i.jsx(Ce,{href:"/services/compliance-regulation",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"Compliance & Regulation"})}),i.jsx(Ce,{href:"/services/international-expansion",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"International Expansion"})})]})]}),i.jsxs("div",{className:"menu-item--collapsible",children:[i.jsxs("div",{className:`nav-item ${d.knowledge?"active":""}`,onClick:()=>u({...d,knowledge:!d.knowledge}),style:{cursor:"pointer"},children:[i.jsx("p",{children:"Knowledge Hub"}),i.jsx("img",{src:"/images/icons/chevron-right.svg",width:"16",height:"16",alt:"Arrow",style:{transform:d.
138knowledge?"rotate(90deg)":"rotate(0)",transition:"transform 0.3s"}})]}),d.knowledge&&i.jsx("div",{className:"sub-menu",children:i.jsx(Ce,{href:"/news",className:"nav-item",onClick:()=>l(!1),children:i.jsx("p",{children:"Articles"})})})]})]}),i.jsxs("div",{className:"menu-cta",children:[i.jsx(Ce,{href:"/register-company",className:"button",onClick:()=>l(!1),children:"Become a Member"}),i.jsx(Ce,{href:"/login",className:"button-light",onClick:()=>l(!1),children:"Login"})]})]}),a&&i.jsx("div",{className:"sidebar-overlay",onClick:()=>l(!1)})]})}var Pg={exports:{}},Dg,h3;function Y7(){if(h3)return Dg;h3=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dg=e,Dg}var Lg,p3;function K7(){if(p3)return Lg;p3=1;var e=Y7();function t(){}function n(){}return n.resetWarningCache=t,Lg=function(){function s(d,u,f,h,p,g){if(g!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}s.isRequired=s;function a(){return s}var l={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},Lg}var g3;function X7(){return g3||(g3=1,Pg.exports=K7()()),Pg.exports}var Z7=X7();const q=zS(Z7);function ct({type:e="error",message:t}){return i.jsxs("div",{className:`system-message ${e}`,children:[i.jsx("div",{className:"icon-container",children:i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/sparkle-white.svg",width:"16",height:"16",alt:"Error"})})}),i.jsx("span",{children:t})]})}ct.propTypes={type:q.oneOf(["error","warning","info","success"]),message:q.string.isRequired};function hd({type:e="success",message:t,onClose:n,autoClose:s=!0}){const[a,l]=j.useState(!0);j.useEffect(()=>{if(s){const u=setTimeout(()=>{l(!1),setTimeout(()=>{n?.()},300)},5e3);return()=>clearTimeout(u)}},[s,n]);const d=()=>{l(!1),setTimeout(()=>{n?.()},300)};return!a&&!s?null:i.jsxs("div",{className:`system-message-on-color ${e} ${a?"visible":"hidden"}`,children:[i.jsx("div",{className:"icon-container",children:i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/sparkle-white.svg",width:"16",height:"16",alt:e})})}),i.jsx("p",{children:t}),n&&i.jsx("button",{type:"button",className:"close-button",onClick:d,"aria-label":"Close notification",children:"×"})]})}hd.propTypes={type:q.oneOf(["simple","error","warning","info","success"]),message:q.string.isRequired,onClose:q.func,autoClose:q.bool};function Xt(){const{props:e}=rn(),[t,n]=j.useState(!1),[s,a]=j.useState(""),{data:l,setData:d,post:u,processing:f,errors:h,reset:p,setError:g,clearErrors:y}=Yt({email:"",source:"footer"}),x=b=>{if(b.preventDefault(),y("email"),!l.email||!l.email.trim()){g("email","Email address is required");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email.trim())){g("email","Please enter a valid email address");return}u("/newsletter/subscribe",{preserveScroll:!0,onSuccess:S=>{p("email"),a(S.props?.flash?.success||"Successfully subscribed to our newsletter!"),n(!0)}})};return i.jsxs("div",{className:"footer",children:[t&&i.jsx(hd,{type:"success",message:s,onClose:()=>n(!1)}),i.jsxs("div",{className:"footer-content",children:[i.jsxs("div",{className:"footer-main",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo"})}),i.jsxs("div",{className:"navbar",children:[i.jsxs("div",{className:"navbar-container--one",children:[i.jsxs("div",{className:"footer-column--1",children:[i.jsx("div",{className:"title-container",children:i.jsx("p",{children:"Services"})}),i.jsxs("div",{className:"nav-list",children:[i.jsx(Ce,{href:"/services/cybersecurity",className:"nav-item",children:i.jsx("p",{children:"Cybersecurity"})}),i.jsx(Ce,{href:"/services/technology-innovation",className:"nav-item",children:i.jsx("p",{children:"Technology Innovation"})}),i.jsx(Ce,{href:"/services/compliance-regulation",className:"nav-item",children:i.jsx("p",{children:"Compliance & Regulation"})}),i.jsx(Ce,{href:"/services/international-expansion",className:"nav-item",children:i.jsx("p",{children:"International Expansion"})})]})]}),i.jsxs("div",{className:"footer-column--2",children:[i.jsx("div",{className:"title-container",children:i.jsx("p",{children:"Network"})}),i.jsxs("div",{className:"nav-list",children:[i.jsx(Ce,{href:"/our-community",className:"nav-item",children:i.jsx("p",{children:"Our C
138ommunity"})}),i.jsx("a",{href:"/#benefits",className:"nav-item",children:i.jsx("p",{children:"Membership Benefits"})}),i.jsx(Ce,{href:"/register-company",className:"nav-item",children:i.jsx("p",{children:"Become a member"})})]})]})]}),i.jsxs("div",{className:"navbar-container--one",children:[i.jsxs("div",{className:"footer-column--1",children:[i.jsx("div",{className:"title-container",children:i.jsx("p",{children:"Company"})}),i.jsxs("div",{className:"nav-list",children:[i.jsx(Ce,{href:"/about-us",className:"nav-item",children:i.jsx("p",{children:"About Us"})}),i.jsx(Ce,{href:"/news",className:"nav-item",children:i.jsx("p",{children:"Articles"})}),i.jsx(Ce,{href:"/contact-us",className:"nav-item",children:i.jsx("p",{children:"Contact Form"})})]})]}),i.jsx("div",{className:"footer-column--1"})]})]})]}),i.jsxs("div",{className:"footer-news-letter",children:[i.jsxs("div",{className:"title-container",children:[i.jsx("h6",{children:"Be the First to Know"}),i.jsx("p",{children:"Get the latest industry insights, news, and important events"})]}),i.jsxs("div",{className:"input-container",children:[i.jsxs("form",{onSubmit:x,noValidate:!0,children:[i.jsx("div",{className:"input",children:i.jsx("div",{className:`input-field-container ${h.email?"error":""}`,children:i.jsx("input",{type:"email",value:l.email,onChange:b=>d("email",b.target.value),placeholder:"Enter your email",disabled:f})})}),i.jsx("button",{type:"submit",className:"button",disabled:f,children:f?"Subscribing...":"Subscribe"})]}),h.email&&i.jsx(ct,{message:h.email})]})]}),i.jsxs("div",{className:"footer-socials",children:[i.jsxs("div",{className:"socials-container",children:[i.jsx("a",{href:"https://www.linkedin.com/company/15826553",target:"_blank",rel:"noopener noreferrer",className:"socials","aria-label":"LinkedIn",children:i.jsx("div",{className:"socials-icon",children:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M21.3333 0C22.0406 0 22.7189 0.280951 23.219 0.781048C23.719 1.28115 24 1.95942 24 2.66667V21.3333C24 22.0406 23.719 22.7189 23.219 23.219C22.7189 23.719 22.0406 24 21.3333 24H2.66667C1.95942 24 1.28115 23.719 0.781048 23.219C0.280951 22.7189 0 22.0406 0 21.3333V2.66667C0 1.95942 0.280951 1.28115 0.781048 0.781048C1.28115 0.280951 1.95942 0 2.66667 0H21.3333ZM20.6667 20.6667V13.6C20.6667 12.4472 20.2087 11.3416 19.3936 10.5264C18.5784 9.71128 17.4728 9.25333 16.32 9.25333C15.1867 9.25333 13.8667 9.94667 13.2267 10.9867V9.50667H9.50667V20.6667H13.2267V14.0933C13.2267 13.0667 14.0533 12.2267 15.08 12.2267C15.5751 12.2267 16.0499 12.4233 16.3999 12.7734C16.75 13.1235 16.9467 13.5983 16.9467 14.0933V20.6667H20.6667ZM5.17333 7.41333C5.76742 7.41333 6.33717 7.17733 6.75725 6.75725C7.17733 6.33717 7.41333 5.76742 7.41333 5.17333C7.41333 3.93333 6.41333 2.92 5.17333 2.92C4.57571 2.92 4.00257 3.1574 3.57999 3.57999C3.1574 4.00257 2.92 4.57571 2.92 5.17333C2.92 6.41333 3.93333 7.41333 5.17333 7.41333ZM7.02667 20.6667V9.50667H3.33333V20.6667H7.02667Z",fill:"#4B4C4A"})})})}),i.jsx("a",{href:"https://www.facebook.com/BCCS.Cluster",target:"_blank",rel:"noopener noreferrer",className:"socials","aria-label":"Facebook",children:i.jsx("div",{className:"socials-icon",children:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",fill:"#4B4C4A"})})})}),i.jsx("a",{href:"https://www.youtube.com/@bccs-cluster",target:"_blank",rel:"noopener noreferrer",className:"socials","aria-label":"YouTube",children:i.jsx("div",{className:"socials-icon",children:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z",fill:"#4B4C4A"})})})})]}),i.jsx("p",{children:"© 2026 BCCS. All rights reserved."})]})]})]})}const oy=j.createContext({});function ly(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const cy=typeof window<"u",qN=cy?j.useLayoutEffect:j.useEffect,Fm=j.createContext(null);function dy(e,t){e.indexOf(t)===-1&&e.push(t)}function Im(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Xi=(e,t,n)=>n>t?t:n<e?e:n;let uy=()=>{};const Zi={},GN=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function WN(e){return typeof e=="object"&&e!==null}const YN=e=>/^0[^.\s]+$/u.test(e);function fy(e){let t;return()=>(t===void 0&&(t=e()),t)}const zs=e=>e,Q7=(e,t)=>n=>t(e(n)),pd=(...e)=>e.reduce(Q7),Yo=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};class my{constructor(){this.subscriptions=[]}add(t){return dy(this.subscriptions,t),()=>Im(this.subscriptions,t)}notify(t,n,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,s);else for(let l=0;l<a;l++){const d=this.subscriptions[l];d&&d(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ei=e=>e*1e3,Bs=e=>e/1e3;function KN(e,t){return t?e*(1e3/t):0}const J7=(e,t,n)=>{const s=t-e;return((n-e)%s+s)%s+e},XN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eA=1e-7,tA=12;function nA(e,t,n,s,a){let l,d,u=0;do d=t+(n-t)/2,l=XN(d,s,a)-e,l>0?n=d:t=d;while(Math.abs(l)>eA&&++u<tA);return d}function gd(e,t,n,s){if(e===t&&n===s)return zs;const a=l=>nA(l,0,1,e,n);return l=>l===0||l===1?l:XN(a(l),t,s)}const ZN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,QN=e=>t=>1-e(1-t),JN=gd(.33,1.53,.69,.99),hy=QN(JN),e4=ZN(hy),t4=e=>(e*=2)<1?.5*hy(e):.5*(2-Math.pow(2,-10*(e-1))),py=e=>1-Math.sin(Math.acos(e)),n4=QN(py),s4=ZN(py),sA=gd(.42,0,1,1),iA=gd(0,0,.58,1),i4=gd(.42,0,.58,1),r4=e=>Array.isArray(e)&&typeof e[0]!="number";function a4(e,t){return r4(e)?e[J7(0,e.length,t)]:e}const o4=e=>Array.isArray(e)&&typeof e[0]=="number",rA={linear:zs,easeIn:sA,easeInOut:i4,easeOut:iA,circIn:py,circInOut:s4,circOut:n4,backIn:hy,backInOut:e4,backOut:JN,anticipate:t4},aA=e=>typeof e=="string",v3=e=>{if(o4(e)){uy(e.length===4);const[t,n,s,a]=e;return gd(t,n,s,a)}else if(aA(e))return rA[e];return e},tf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oA(e,t){let n=new Set,s=new Set,a=!1,l=!1;const d=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(p){d.has(p)&&(h.schedule(p),e()),p(u)}const h={schedule:(p,g=!1,y=!1)=>{const b=y&&a?n:s;return g&&d.add(p),b.has(p)||b.add(p),p},cancel:p=>{s.delete(p),d.delete(p)},process:p=>{if(u=p,a){l=!0;return}
vendor: 24,062 bytes, line 138
138a=!0,[n,s]=[s,n],n.forEach(f),n.clear(),a=!1,l&&(l=!1,h.process(p))}};return h}const lA=40;function l4(e,t){let n=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,d=tf.reduce((E,M)=>(E[M]=oA(l),E),{}),{setup:u,read:f,resolveKeyframes:h,preUpdate:p,update:g,preRender:y,render:x,postRender:b}=d,w=()=>{const E=Zi.useManualTiming?a.timestamp:performance.now();n=!1,Zi.useManualTiming||(a.delta=s?1e3/60:Math.max(Math.min(E-a.timestamp,lA),1)),a.timestamp=E,a.isProcessing=!0,u.process(a),f.process(a),h.process(a),p.process(a),g.process(a),y.process(a),x.process(a),b.process(a),a.isProcessing=!1,n&&t&&(s=!1,e(w))},S=()=>{n=!0,s=!0,a.isProcessing||e(w)};return{schedule:tf.reduce((E,M)=>{const L=d[M];return E[M]=(R,O=!1,k=!1)=>(n||S(),L.schedule(R,O,k)),E},{}),cancel:E=>{for(let M=0;M<tf.length;M++)d[tf[M]].cancel(E)},state:a,steps:d}}const{schedule:Mt,cancel:Br,state:jn,steps:Fg}=l4(typeof requestAnimationFrame<"u"?requestAnimationFrame:zs,!0);let Lf;function cA(){Lf=void 0}const ns={now:()=>(Lf===void 0&&ns.set(jn.isProcessing||Zi.useManualTiming?jn.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(cA)}},c4=e=>t=>typeof t=="string"&&t.startsWith(e),gy=c4("--"),dA=c4("var(--"),vy=e=>dA(e)?uA.test(e.split("/*")[0].trim()):!1,uA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vc={...tl,transform:e=>Xi(0,1,e)},nf={...tl,default:1},Ec=e=>Math.round(e*1e5)/1e5,yy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fA(e){return e==null}const mA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,by=(e,t)=>n=>!!(typeof n=="string"&&mA.test(n)&&n.startsWith(e)||t&&!fA(n)&&Object.prototype.hasOwnProperty.call(n,t)),d4=(e,t,n)=>s=>{if(typeof s!="string")return s;const[a,l,d,u]=s.match(yy);return{[e]:parseFloat(a),[t]:parseFloat(l),[n]:parseFloat(d),alpha:u!==void 0?parseFloat(u):1}},hA=e=>Xi(0,255,e),Ig={...tl,transform:e=>Math.round(hA(e))},_a={test:by("rgb","red"),parse:d4("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Ig.transform(e)+", "+Ig.transform(t)+", "+Ig.transform(n)+", "+Ec(Vc.transform(s))+")"};function pA(e){let t="",n="",s="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,s+=s,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const X0={test:by("#"),parse:pA,transform:_a.transform},vd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Or=vd("deg"),gi=vd("%"),Fe=vd("px"),gA=vd("vh"),vA=vd("vw"),y3={...gi,parse:e=>gi.parse(e)/100,transform:e=>gi.transform(e*100)},Oo={test:by("hsl","hue"),parse:d4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+gi.transform(Ec(t))+", "+gi.transform(Ec(n))+", "+Ec(Vc.transform(s))+")"},nn={test:e=>_a.test(e)||X0.test(e)||Oo.test(e),parse:e=>_a.test(e)?_a.parse(e):Oo.test(e)?Oo.parse(e):X0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_a.transform(e):Oo.transform(e),getAnimatableNone:e=>{const t=nn.parse(e);return t.alpha=0,nn.transform(t)}},yA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bA(e){return isNaN(e)&&typeof e=="string"&&(e.match(yy)?.length||0)+(e.match(yA)?.length||0)>0}const u4="number",f4="color",xA="var",_A="var(",b3="${}",jA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Uc(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},a=[];let l=0;const u=t.replace(jA,f=>(nn.test(f)?(s.color.push(l),a.push(f4),n.push(nn.parse(f))):f.startsWith(_A)?(s.var.push(l),a.push(xA),n.push(f)):(s.number.push(l),a.push(u4),n.push(parseFloat(f))),++l,b3)).split(b3);return{values:n,split:u,indexes:s,types:a}}function m4(e){return Uc(e).values}function h4(e){const{split:t,types:n}=Uc(e),s=t.length;return a=>{let l="";for(let d=0;d<s;d++)if(l+=t[d],a[d]!==void 0){const u=n[d];u===u4?l+=Ec(a[d]):u===f4?l+=nn.transform(a[d]):l+=a[d]}return l}}const wA=e=>typeof e=="number"?0:nn.test(e)?nn.getAnimatableNone(e):e;function SA(e){const t=m4(e);return h4(e)(t.map(wA))}const zr={test:bA,parse:m4,createTransformer:h4,getAnimatableNone:SA};function Bg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function NA({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let a=0,l=0,d=0;if(!t)a=l=d=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;a=Bg(f,u,e+1/3),l=Bg(f,u,e),d=Bg(f,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(d*255),alpha:s}}function om(e,t){return n=>n>0?t:e}const kt=(e,t,n)=>e+(t-e)*n,zg=(e,t,n)=>{const s=e*e,a=n*(t*t-s)+s;return a<0?0:Math.sqrt(a)},CA=[X0,_a,Oo],$A=e=>CA.find(t=>t.test(e));function x3(e){const t=$A(e);if(!t)return!1;let n=t.parse(e);return t===Oo&&(n=NA(n)),n}const _3=(e,t)=>{const n=x3(e),s=x3(t);if(!n||!s)return om(e,t);const a={...n};return l=>(a.red=zg(n.red,s.red,l),a.green=zg(n.green,s.green,l),a.blue=zg(n.blue,s.blue,l),a.alpha=kt(n.alpha,s.alpha,l),_a.transform(a))},Z0=new Set(["none","hidden"]);function EA(e,t){return Z0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TA(e,t){return n=>kt(e,t,n)}function xy(e){return typeof e=="number"?TA:typeof e=="string"?vy(e)?om:nn.test(e)?_3:MA:Array.isArray(e)?p4:typeof e=="object"?nn.test(e)?_3:AA:om}function p4(e,t){const n=[...e],s=n.length,a=e.map((l,d)=>xy(l)(l,t[d]));return l=>{for(let d=0;d<s;d++)n[d]=a[d](l);return n}}function AA(e,t){const n={...e,...t},s={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(s[a]=xy(e[a])(e[a],t[a]));return a=>{for(const l in s)n[l]=s[l](a);return n}}function kA(e,t){const n=[],s={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],d=e.indexes[l][s[l]],u=e.values[d]??0;n[a]=u,s[l]++}return n}const MA=(e,t)=>{const n=zr.createTransformer(t),s=Uc(e),a=Uc(t);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?Z0.has(e)&&!a.values.length||Z0.has(t)&&!s.values.length?EA(e,t):pd(p4(kA(s,a),a.values),n):om(e,t)};function g4(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?kt(e,t,n):xy(e)(e,t)}const OA=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Mt.update(t,n),stop:()=>Br(t),now:()=>jn.isProcessing?jn.timestamp:ns.now()}},v4=(e,t,n=10)=>{let s="";const a=Math.max(Math.round(t/n),2);for(let l=0;l<a;l++)s+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},lm=2e4;function _y(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<lm;)t+=n,s=e.next(t);return t>=lm?1/0:t}function y4(e,t=100,n){const s=n({...e,keyframes:[0,t]}),a=Math.min(_y(s),lm);return{type:"keyframes",ease:l=>s.next(a*l).value/t,duration:Bs(a)}}const RA=5;function b4(e,t,n){const s=Math.max(t-RA,0);return KN(n-e(s),t-s)}const Bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Vg=.001;function PA({duration:e=Bt.duration,bounce:t=Bt.bounce,velocity:n=Bt.velocity,mass:s=Bt.mass}){let a,l,d=1-t;d=Xi(Bt.minDamping,Bt.maxDamping,d),e=Xi(Bt.minDuration,Bt.maxDuration,Bs(e)),d<1?(a=h=>{const p=h*d,g=p*e,y=p-n,x=Q0(h,d),b=Math.exp(-g);return Vg-y/x*b},l=h=>{const g=h*d*e,y=g*n+n,x=Math.pow(d,2)*Math.pow(h,2)*e,b=Math.exp(-g),w=Q0(Math.pow(h,2),d);return(-a(h)+Vg>0?-1:1)*((y-x)*b)/w}):(a=h=>{const p=Math.exp(-h*e),g=(h-n)*e+1;return-Vg+p*g},l=h=>{const p=Math.exp(-h*e),g=(n-h)*(e*e);return p*g});const u=5/e,f=LA(a,l,u);if(e=ei(e),isNaN(f))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:e};{const h=Math.pow(f,2)*s;return{stiffness:h,damping:d*2*Math.sqrt(s*h),duration:e}}}const DA=12;function LA(e,t,n){let s=n;for(let a=1;a<DA;a++)s=s-e(s)/t(s);return s}function Q0(e,t){return e*Math.sqrt(1-t*t)}const FA=["duration","bounce"],IA=["stiffness","damping","mass"];function j3(e,t){return t.some(n=>e[n]!==void 0)}function BA(e){let t={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...e};if(!j3(e,IA)&&j3(e,FA))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),a=s*s,l=2*Xi(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Bt.mass,stiffness:a,damping:l}}else{const n=PA(e);t={...t,...n,mass:Bt.mass},t.isResolvedFromDuration=!0}return t}function Hc(e=Bt.visualDuration,t=Bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:a}=n;const l=n.keyframes[0],d=n.keyframes[n.keyframes.length-1],u={done:!1,value:l},{stiffness:f,damping:h,mass:p,duration:g,velocity:y,isResolvedFromDuration:x}=BA({...n,velocity:-Bs(n.velocity||0)}),b=y||0,w=h/(2*Math.sqrt(f*p)),S=d-l,N=Bs(Math.sqrt(f/p)),C=Math.abs(S)<5;s||(s=C?Bt.restSpeed.granular:Bt.restSpeed.default),a||(a=C?Bt.restDelta.granular:Bt.restDelta.default);let E;if(w<1){const L=Q0(N,w);E=R=>{const O=Math.exp(-w*N*R);return d-O*((b+w*N*S)/L*Math.sin(L*R)+S*Math.cos(L*R))}}else if(w===1)E=L=>d-Math.exp(-N*L)*(S+(b+N*S)*L);else{const L=N*Math.sqrt(w*w-1);E=R=>{const O=Math.exp(-w*N*R),k=Math.min(L*R,300);return d-O*((b+w*N*S)*Math.sinh(k)+L*S*Math.cosh(k))/L}}const M={calculatedDuration:x&&g||null,next:L=>{const R=E(L);if(x)u.done=L>=g;else{let O=L===0?b:0;w<1&&(O=L===0?ei(b):b4(E,L,R));const k=Math.abs(O)<=s,B=Math.abs(d-R)<=a;u.done=k&&B}return u.value=u.done?d:R,u},toString:()=>{const L=Math.min(_y(M),lm),R=v4(O=>M.next(L*O).value,L,30);return L+"ms "+R},toTransition:()=>{}};return M}Hc.applyToOptions=e=>{const t=y4(e,100,Hc);return e.ease=t.ease,e.duration=ei(t.duration),e.type="keyframes",e};function J0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:d,min:u,max:f,restDelta:h=.5,restSpeed:p}){const g=e[0],y={done:!1,value:g},x=k=>u!==void 0&&k<u||f!==void 0&&k>f,b=k=>u===void 0?f:f===void 0||Math.abs(u-k)<Math.abs(f-k)?u:f;let w=n*t;const S=g+w,N=d===void 0?S:d(S);N!==S&&(w=N-g);const C=k=>-w*Math.exp(-k/s),E=k=>N+C(k),M=k=>{const B=C(k),I=E(k);y.done=Math.abs(B)<=h,y.value=y.done?N:I};let L,R;const O=k=>{x(y.value)&&(L=k,R=Hc({keyframes:[y.value,b(y.value)],velocity:b4(E,k,y.value),damping:a,stiffness:l,restDelta:h,restSpeed:p}))};return O(0),{calculatedDuration:null,next:k=>{let B=!1;return!R&&L===void 0&&(B=!0,M(k),O(k)),L!==void 0&&k>=L?R.next(k-L):(!B&&M(k),y)}}}function zA(e,t,n){const s=[],a=n||Zi.mix||g4,l=e.length-1;for(let d=0;d<l;d++){let u=a(e[d],e[d+1]);if(t){const f=Array.isArray(t)?t[d]||zs:t;u=pd(f,u)}s.push(u)}return s}function VA(e,t,{clamp:n=!0,ease:s,mixer:a}={}){const l=e.length;if(uy(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const d=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=zA(t,s,a),f=u.length,h=p=>{if(d&&p<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const y=Yo(e[g],e[g+1],p);return u[g](y)};return n?p=>h(Xi(e[0],e[l-1],p)):h}function x4(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const a=Yo(0,t,s);e.push(kt(n,1,a))}}function _4(e){const t=[0];return x4(t,e.length-1),t}function UA(e,t){return e.map(n=>n*t)}function HA(e,t){return e.map(()=>t||i4).splice(0,e.length-1)}function Tc({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const a=r4(s)?s.map(v3):v3(s),l={done:!1,value:t[0]},d=UA(n&&n.length===t.length?n:_4(t),e),u=VA(d,t,{ease:Array.isArray(a)?a:HA(t,a)});return{calculatedDuration:e,next:f=>(l.value=u(f),l.done=f>=e,l)}}const qA=e=>e!==null;function jy(e,{repeat:t,repeatType:n="loop"},s,a=1){const l=e.filter(qA),u=a<0||t&&n!=="loop"&&t%2===1?0:l.length-1;return!u||s===void 0?l[u]:s}const GA={decay:J0,inertia:J0,tween:Tc,keyframes:Tc,spring:Hc};function j4(e){typeof e.type=="string"&&(e.type=GA[e.type])}class wy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const WA=e=>e/100;class Sy extends wy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ns.now()&&this.tick(ns.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;j4(t);const{type:n=Tc,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:d=0}=t;let{keyframes:u}=t;const f=n||Tc;f!==Tc&&typeof u[0]!="number"&&(this.mixKeyframes=pd(WA,g4(u[0],u[1])),u=[0,100]);const h=f({...t,keyframes:u});l==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-d})),h.calculatedDuration===null&&(h.calculatedDuration=_y(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:d,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return s.next(0);const{delay:h=0,keyframes:p,repeat:g,repeatType:y,repeatDelay:x,type:b,onUpdate:w,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const N=this.currentTime-h*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?N<0:N>a;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let E=this.currentTime,M=s;if(g){const k=Math.min(this.currentTime,a)/u;let B=Math.floor(k),I=k%1;!I&&k>=1&&(I=1),I===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(y==="reverse"?(I=1-I,x&&(I-=x/u)):y==="mirror"&&(M=d)),E=Xi(0,1,I)*u}const L=C?{done:!1,value:p[0]}:M.next(E);l&&(L.value=l(L.value));let{done:R}=L;!C&&f!==null&&(R=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return O&&b!==J0&&(L.value=jy(p,this.options,S,this.speed)),w&&w(L.value),O&&this.finish(),L}then(t,n){return this.finished.then(t,n)}get duration(){return Bs(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Bs(t)}get time(){return Bs(this.currentTime)}set time(t){t=ei(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ns.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Bs(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=OA,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ns.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function YA(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ja=e=>e*180/Math.PI,ev=e=>{const t=ja(Math.atan2(e[1],e[0]));return tv(t)},KA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ev,rotateZ:ev,skewX:e=>ja(Math.atan(e[1])),skewY:e=>ja(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tv=e=>(e=e%360,e<0&&(e+=360),e),w3=ev,S3=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N3=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),XA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:S3,scaleY:N3,scale:e=>(S3(e)+N3(e))/2,rotateX:e=>tv(ja(Math.atan2(e[6],e[5]))),rotateY:e=>tv(ja(Math.atan2(-e[2],e[0]))),rotateZ:w3,rotate:w3,skewX:e=>ja(Math.atan(e[4])),skewY:e=>ja(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nv(e){return e.includes("scale")?1:0}function sv(e,t){if(!e||e==="none")return nv(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(n)s=XA,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=KA,a=u}if(!a)return nv(t);const l=s[t],d=a[1].split(",").map(QA);return typeof l=="function"?l(d):d[l]}const ZA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return sv(n,t)};function QA(e){return parseFloat(e.trim())}const nl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sl=new Set(nl),C3=e=>e===tl||e===Fe,JA=new Set(["x","y","z"]),ek=nl.filter(e=>!JA.has(e));function tk(e){const t=[];return ek.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Ea={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>sv(t,"x"),y:(e,{transform:t})=>sv(t,"y")};Ea.translateX=Ea.x;Ea.translateY=Ea.y;const Ta=new Set;let iv=!1,rv=!1,av=!1;function w4(){if(rv){const e=Array.from(Ta).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const a=tk(s);a.length&&(n.set(s,a),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const a=n.get(s);a&&a.forEach(([l,d])=>{s.getValue(l)?.set(d)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}rv=!1,iv=!1,Ta.forEach(e=>e.complete(av)),Ta.clear()}function S4(){Ta.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rv=!0)})}function nk(){av=!0,S4(),w4(),av=!1}class Ny{constructor(t,n,s,a,l,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=a,this.element=l,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Ta.add(this),iv||(iv=!0,Mt.read(S4),Mt.resolveKeyframes(w4))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:a}=this;if(t[0]===null){const l=a?.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&n){const u=s.readValue(n,d);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=d),a&&l===void 0&&a.set(t[0])}YA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ta.delete(this)}cancel(){this.state==="scheduled"&&(Ta.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sk=e=>e.startsWith("--");function ik(e,t,n){sk(t)?e.style.setProperty(t,n):e.style[t]=n}const rk=fy(()=>window.ScrollTimeline!==void 0),ak={};function ok(e,t){const n=fy(e);return()=>ak[t]??n()}const N4=ok(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),_c=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,$3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_c([0,.65,.55,1]),circOut:_c([.55,0,1,.45]),backIn:_c([.31,.01,.66,-.59]),backOut:_c([.33,1.53,.69,.99])};function C4(e,t){if(e)return typeof e=="function"?N4()?v4(e,t):"ease-out":o4(e)?_c(e):Array.isArray(e)?e.map(n=>C4(n,t)||$3.easeOut):$3[e]}function lk(e,t,n,{delay:s=0,duration:a=300,repeat:l=0,repeatType:d="loop",ease:u="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const g=C4(u,a);Array.isArray(g)&&(p.easing=g);const y={delay:s,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:d==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(p,y)}function Cy(e){return typeof e=="function"&&"applyToOptions"in e}function ck({type:e,...t}){return Cy(e)&&N4()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class dk extends wy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:s,keyframes:a,pseudoElement:l,allowFlatten:d=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!l,this.allowFlatten=d,this.options=t,uy(typeof t.type!="string");const h=ck(t);this.animation=lk(n,s,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const p=jy(a,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):ik(n,s,p),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Bs(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Bs(t)}get time(){return Bs(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ei(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&rk()?(this.animation.timeline=t,zs):n(this)}}const $4={anticipate:t4,backInOut:e4,circInOut:s4};function uk(e){return e in $4}function fk(e){typeof e.ease=="string"&&uk(e.ease)&&(e.ease=$4[e.ease])}const E3=10;class mk extends dk{constructor(t){fk(t),j4(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:a,element:l,...d}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new Sy({...d,autoplay:!1}),f=ei(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-E3).value,u.sample(f).value,E3),u.stop()}}const T3=(e,t)=>
vendor: 6,306 bytes, line 138
138t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(zr.test(e)||e==="0")&&!e.startsWith("url("));function hk(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function pk(e,t,n,s){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],d=T3(a,t),u=T3(l,t);return!d||!u?!1:hk(e)||(n==="spring"||Cy(n))&&s}function ov(e){e.duration=0,e.type="keyframes"}const gk=new Set(["opacity","clipPath","filter","transform"]),vk=fy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function yk(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:a,damping:l,type:d}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return vk()&&n&&gk.has(n)&&(n!=="transform"||!h)&&!f&&!s&&a!=="mirror"&&l!==0&&d!=="inertia"}const bk=40;class xk extends wy{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:d="loop",keyframes:u,name:f,motionValue:h,element:p,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ns.now();const y={autoplay:t,delay:n,type:s,repeat:a,repeatDelay:l,repeatType:d,name:f,motionValue:h,element:p,...g},x=p?.KeyframeResolver||Ny;this.keyframeResolver=new x(u,(b,w,S)=>this.onKeyframesResolved(b,w,y,!S),f,h,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,a){this.keyframeResolver=void 0;const{name:l,type:d,velocity:u,delay:f,isHandoff:h,onUpdate:p}=s;this.resolvedAt=ns.now(),pk(t,l,d,u)||((Zi.instantAnimations||!f)&&p?.(jy(t,s,n)),t[0]=t[t.length-1],ov(s),s.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>bk?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},x=!h&&yk(y)?new mk({...y,element:y.motionValue.owner.current}):new Sy(y);x.finished.then(()=>this.notifyFinished()).catch(zs),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nk()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class _k{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t){const n=this.animations.map(s=>s.attachTimeline(t));return()=>{n.forEach((s,a)=>{s&&s(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return A3(this.animations,"duration")}get iterationDuration(){return A3(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function A3(e,t){let n=0;for(let s=0;s<e.length;s++){const a=e[s][t];a!==null&&a>n&&(n=a)}return n}class jk extends _k{then(t,n){return this.finished.finally(t).then(()=>{})}}const wk=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sk(e){const t=wk.exec(e);if(!t)return[,];const[,n,s,a]=t;return[`--${n??s}`,a]}function E4(e,t,n=1){const[s,a]=Sk(e);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const d=l.trim();return GN(d)?parseFloat(d):d}return vy(a)?E4(a,t,n+1):a}function $y(e,t){return e?.[t]??e?.default??e}const T4=new Set(["width","height","top","left","right","bottom",...nl]),Nk={test:e=>e==="auto",parse:e=>e},A4=e=>t=>t.test(e),k4=[tl,Fe,gi,Or,vA,gA,Nk],k3=e=>k4.find(A4(e));function Ck(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||YN(e):!0}const $k=new Set(["brightness","contrast","saturate","opacity"]);function Ek(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(yy)||[];if(!s)return e;const a=n.replace(s,"");let l=$k.has(t)?1:0;return s!==n&&(l*=100),t+"("+l+a+")"}const Tk=/\b([a-z-]*)\(.*?\)/gu,lv={...zr,getAnimatableNone:e=>{const t=e.match(Tk);return t?t.map(Ek).join(" "):e}},M3={...tl,transform:Math.round},Ak={rotate:Or,rotateX:Or,rotateY:Or,rotateZ:Or,scale:nf,scaleX:nf,scaleY:nf,scaleZ:nf,skew:Or,skewX:Or,skewY:Or,distance:Fe,translateX:Fe,translateY:Fe,translateZ:Fe,x:Fe,y:Fe,z:Fe,perspective:Fe,transformPerspective:Fe,opacity:Vc,originX:y3,originY:y3,originZ:Fe},Ey={borderWidth:Fe,borderTopWidth:Fe,borderRightWidth:Fe,borderBottomWidth:Fe,borderLeftWidth:Fe,borderRadius:Fe,radius:Fe,borderTopLeftRadius:Fe,borderTopRightRadius:Fe,borderBottomRightRadius:Fe,borderBottomLeftRadius:Fe,width:Fe,maxWidth:Fe,height:Fe,maxHeight:Fe,top:Fe,right:Fe,bottom:Fe,left:Fe,padding:Fe,paddingTop:Fe,paddingRight:Fe,paddingBottom:Fe,paddingLeft:Fe,margin:Fe,marginTop:Fe,marginRight:Fe,marginBottom:Fe,marginLeft:Fe,backgroundPositionX:Fe,backgroundPositionY:Fe,...Ak,zIndex:M3,fillOpacity:Vc,strokeOpacity:Vc,numOctaves:M3},kk={...Ey,color:nn,backgroundColor:nn,outlineColor:nn,fill:nn,stroke:nn,borderColor:nn,borderTopColor:nn,borderRightColor:nn,borderBottomColor:nn,borderLeftColor:nn,filter:lv,WebkitFilter:lv},M4=e=>kk[e];function O4(e,t){let n=M4(e);return n!==lv&&(n=zr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 14,307 bytes, lines 138-146
138const Mk=new Set(["auto","none","0"]);function Ok(e,t,n){let s=0,a;for(;s<e.length&&!a;){const l=e[s];typeof l=="string"&&!Mk.has(l)&&Uc(l).values.length&&(a=e[s]),s++}if(a&&n)for(const l of t)e[l]=O4(n,a)}class Rk extends Ny{constructor(t,n,s,a,l){super(t,n,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),vy(h))){const p=E4(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!T4.has(s)||t.length!==2)return;const[a,l]=t,d=k3(a),u=k3(l);if(d!==u)if(C3(d)&&C3(u))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else Ea[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let a=0;a<t.length;a++)(t[a]===null||Ck(t[a]))&&s.push(a);s.length&&Ok(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ea[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(s,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,d=s[l];s[l]=Ea[n](t.measureViewportBox(),window.getComputedStyle(t.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,f])=>{t.getValue(u).set(f)}),this.resolveNoneKeyframes()}}function Ty(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const a=n?.[e]??s.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const R4=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function P4(e){return WN(e)&&"offsetHeight"in e}const O3=30,Pk=e=>!isNaN(parseFloat(e));class Dk{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const a=ns.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ns.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pk(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new my);const s=this.events[t].add(n);return t==="change"?()=>{s(),Mt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ns.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>O3)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,O3);return KN(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ko(e,t){return new Dk(e,t)}const{schedule:Ay}=l4(queueMicrotask,!1),Zs={x:!1,y:!1};function D4(){return Zs.x||Zs.y}function Lk(e){return e==="x"||e==="y"?Zs[e]?null:(Zs[e]=!0,()=>{Zs[e]=!1}):Zs.x||Zs.y?null:(Zs.x=Zs.y=!0,()=>{Zs.x=Zs.y=!1})}function L4(e,t){const n=Ty(e),s=new AbortController,a={passive:!0,...t,signal:s.signal};return[n,a,()=>s.abort()]}function R3(e){return!(e.pointerType==="touch"||D4())}function Fk(e,t,n={}){const[s,a,l]=L4(e,n),d=u=>{if(!R3(u))return;const{target:f}=u,h=t(f,u);if(typeof h!="function"||!f)return;const p=g=>{R3(g)&&(h(g),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,a)};return s.forEach(u=>{u.addEventListener("pointerenter",d,a)}),l}const F4=(e,t)=>t?e===t?!0:F4(e,t.parentElement):!1,ky=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ik=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bk(e){return Ik.has(e.tagName)||e.tabIndex!==-1}const Ff=new WeakSet;function P3(e){return t=>{t.key==="Enter"&&e(t)}}function Ug(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zk=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=P3(()=>{if(Ff.has(n))return;Ug(n,"down");const a=P3(()=>{Ug(n,"up")}),l=()=>Ug(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function D3(e){return ky(e)&&!D4()}function Vk(e,t,n={}){const[s,a,l]=L4(e,n),d=u=>{const f=u.currentTarget;if(!D3(u))return;Ff.add(f);const h=t(f,u),p=(x,b)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),Ff.has(f)&&Ff.delete(f),D3(x)&&typeof h=="function"&&h(x,{success:b})},g=x=>{p(x,f===window||f===document||n.useGlobalTarget||F4(f,x.target))},y=x=>{p(x,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return s.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",d,a),P4(u)&&(u.addEventListener("focus",h=>zk(h,a)),!Bk(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),l}function My(e){return WN(e)&&"ownerSVGElement"in e}function I4(e){return My(e)&&e.tagName==="svg"}const gn=e=>!!(e&&e.getVelocity),Uk=[...k4,nn,zr],Hk=e=>Uk.find(A4(e)),Oy=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function L3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qk(...e){return t=>{let n=!1;const s=e.map(a=>{const l=L3(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():L3(e[a],null)}}}}function Gk(...e){return j.useCallback(qk(...e),e)}class Wk extends j.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,a=P4(s)&&s.offsetWidth||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=a-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Yk({children:e,isPresent:t,anchorX:n,root:s}){const a=j.useId(),l=j.useRef(null),d=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=j.useContext(Oy),f=Gk(l,e?.ref);return j.useInsertionEffect(()=>{const{width:h,height:p,top:g,left:y,right:x}=d.current;if(t||!l.current||!h||!p)return;const b=n==="left"?`left: ${y}`:`right: ${x}`;l.current.dataset.motionPopId=a;const w=document.createElement("style");u&&(w.nonce=u);const S=s??document.head;return S.appendChild(w),w.sheet&&w.sheet.insertRule(`
139          [data-motion-pop-id="${a}"] {
140            position: absolute !important;
141            width: ${h}px !important;
142            height: ${p}px !important;
143            ${b}px !important;
144            top: ${g}px !important;
145          }
146        `),()=>{S.contains(w)&&S.removeChild(w)}},[t]),i.jsx(Wk,{isPresent:t,childRef:l,sizeRef:d,children:j.cloneElement(e,{ref:f})})}const Kk=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:a,presenceAffectsLayout:l,mode:d,anchorX:u,root:f})=>{const h=ly(Xk),p=j.useId();let g=!0,y=j.useMemo(()=>(g=!1,{id:p,initial:t,isPresent:n,custom:a,onExitComplete:x=>{h.set(x,!0);for(const b of h.values())if(!b)return;s&&s()},register:x=>(h.set(x,!1),()=>h.delete(x))}),[n,h,s]);return l&&g&&(y={...y}),j.useMemo(()=>{h.forEach((x,b)=>h.set(b,!1))},[n]),j.useEffect(()=>{!n&&!h.size&&s&&s()},[n]),d==="popLayout"&&(e=i.jsx(Yk,{isPresent:n,anchorX:u,root:f,children:e})),i.jsx(Fm.Provider,{value:y,children:e})};function Xk(){return new Map}function B4(e=!0){const t=j.useContext(Fm);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:a}=t,l=j.useId();j.useEffect(()=>{if(e)return a(l)},[e]);const d=j.useCallback(()=>e&&s&&s(l),[l,s,e]);return!n&&s?[!1,d]:[!0]}const sf=e=>e.key||"";function F3(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const Ra=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:l="sync",propagate:d=!1,anchorX:u="left",root:f})=>{const[h,p]=B4(d),g=j.useMemo(()=>F3(e),[e]),y=d&&!h?[]:g.map(sf),x=j.useRef(!0),b=j.useRef(g),w=ly(()=>new Map),[S,N]=j.useState(g),[C,E]=j.useState(g);qN(()=>{x.current=!1,b.current=g;for(let R=0;R<C.length;R++){const O=sf(C[R]);y.includes(O)?w.delete(O):w.get(O)!==!0&&w.set(O,!1)}},[C,y.length,y.join("-")]);const M=[];if(g!==S){let R=[...g];for(let O=0;O<C.length;O++){const k=C[O],B=sf(k);y.includes(B)||(R.splice(O,0,k),M.push(k))}return l==="wait"&&M.length&&(R=M),E(F3(R)),N(g),null}const{forceRender:L}=j.useContext(oy);return i.jsx(i.Fragment,{children:C.map(R=>{const O=sf(R),k=d&&!h?!1:g===C||y.includes(O),B=()=>{if(w.has(O))w.set(O,!0);else return;let I=!0;w.forEach(V=>{V||(I=!1)}),I&&(L?.(),E(b.current),d&&p?.(),s&&s())};return i.jsx(Kk,{isPresent:k,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:l,root:f,onExitComplete:k?void 0:B,anchorX:u,children:R},O)})})},z4=j.createContext({strict:!1}),I3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xo={};for(const e in I3)Xo[e]={isEnabled:t=>I3[e].some(n=>!!t[n])};function Zk(e){for(const t in e)Xo[t]={...Xo[t],...e[t]}}const Qk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function cm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Qk.has(e)}let V4=e=>!cm(e);function Jk(e){typeof e=="function"&&(V4=t=>t.startsWith("on")?!cm(t):e(t))}try{Jk(require("@emotion/is-prop-valid").default)}catch{}function eM(e,t,n){const s={};for(const a in e)a==="values"&&typeof e.values=="object"||(V4(a)||n===!0&&cm(a)||!t&&!cm(a)||e.draggable&&a.startsWith("onDrag"))&&(s[a]=e[a]);return s}const Bm=j.createContext({});function zm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qc(e){return typeof e=="string"||Array.isArray(e)}const Ry=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Py=["initial",...Ry];function Vm(e){return zm(e.animate)||Py.some(t=>qc(e[t]))}function U4(e){return!!(Vm(e)||e.variants)}function tM(e,t){if(Vm(e)){const{initial:n,animate:s}=e;return{initial:n===!1||qc(n)?n:void 0,animate:qc(s)?s:void 0}}return e.inherit!==!1?t:{}}function nM(e){const{initial:t,animate:n}=tM(e,j.useContext(Bm));return j.useMemo(()=>({initial:t,animate:n}),[B3(t),B3(n)])}function B3(e){return Array.isArray(e)?e.join(" "):e}const Gc={};function sM(e){for(const t in e)Gc[t]=e[t],gy(t)&&(Gc[t].isCSSVariable=!0)}function H4(e,{layout:t,layoutId:n}){return sl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gc[e]||e==="opacity")}const iM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rM=nl.length;function aM(e,t,n){let s="",a=!0;for(let l=0;l<rM;l++){const d=nl[l],u=e[d];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(d.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const h=R4(u,Ey[d]);if(!f){a=!1;const p=iM[d]||d;s+=`${p}(${h}) `}n&&(t[d]=h)}}return s=s.trim(),n?s=n(t,a?"":s):a&&(s="none"),s}function Dy(e,t,n){const{style:s,vars:a,transformOrigin:l}=e;let d=!1,u=!1;for(const f in t){const h=t[f];if(sl.has(f)){d=!0;continue}else if(gy(f)){a[f]=h;continue}else{const p=R4(h,Ey[f]);f.startsWith("origin")?(u=!0,l[f]=p):s[f]=p}}if(t.transform||(d||n?s.transform=aM(t,e.transform,n):s.transform&&(s.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:p=0}=l;s.transformOrigin=`${f} ${h} ${p}`}}const Ly=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function q4(e,t,n){for(const s in t)!gn(t[s])&&!H4(s,n)&&(e[s]=t[s])}function oM({transformTemplate:e},t){return j.useMemo(()=>{const n=Ly();return Dy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lM(e,t){const n=e.style||{},s={};return q4(s,n,e),Object.assign(s,oM(e,t)),s}function cM(e,t){const n={},s=lM(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
146`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const dM={offset:"stroke-dashoffset",array:"stroke-dasharray"},uM={offset:"strokeDashoffset",array:"strokeDasharray"};function fM(e,t,n=1,s=0,a=!0){e.pathLength=1;const l=a?dM:uM;e[l.offset]=Fe.transform(-s);const d=Fe.transform(t),u=Fe.transform(n);e[l.array]=`${d} ${u}`}function G4(e,{attrX:t,attrY:n,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:d=0,...u},f,h,p){if(Dy(e,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=p?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),s!==void 0&&(g.scale=s),a!==void 0&&fM(g,a,l,d,!1)}const W4=()=>({...Ly(),attrs:{}}),Y4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mM(e,t,n,s){const a=j.useMemo(()=>{const l=W4();return G4(l,t,Y4(s),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};q4(l,e.style,e),a.style={...l,...a.style}}return a}const hM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fy(e){return typeof e!="string"||e.includes("-")?!1:!!(hM.indexOf(e)>-1||/[A-Z]/u.test(e))}function pM(e,t,n,{latestValues:s},a,l=!1){const u=(Fy(e)?mM:cM)(t,s,a,e),f=eM(t,typeof e=="string",l),h=e!==j.Fragment?{...f,...u,ref:n}:{},{children:p}=t,g=j.useMemo(()=>gn(p)?p.get():p,[p]);return j.createElement(e,{...h,children:g})}function z3(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Iy(e,t,n,s){if(typeof t=="function"){const[a,l]=z3(s);t=t(n!==void 0?n:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=z3(s);t=t(n!==void 0?n:e.custom,a,l)}return t}function If(e){return gn(e)?e.get():e}function gM({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,a){return{latestValues:vM(n,s,a,e),renderState:t()}}function vM(e,t,n,s){const a={},l=s(e,{});for(const y in l)a[y]=If(l[y]);let{initial:d,animate:u}=e;const f=Vm(e),h=U4(e);t&&h&&!f&&e.inherit!==!1&&(d===void 0&&(d=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||d===!1;const g=p?u:d;if(g&&typeof g!="boolean"&&!zm(g)){const y=Array.isArray(g)?g:[g];for(let x=0;x<y.length;x++){const b=Iy(e,y[x]);if(b){const{transitionEnd:w,transition:S,...N}=b;for(const C in N){let E=N[C];if(Array.isArray(E)){const M=p?E.length-1:0;E=E[M]}E!==null&&(a[C]=E)}for(const C in w)a[C]=w[C]}}}return a}const K4=e=>(t,n)=>{const s=j.useContext(Bm),a=j.useContext(Fm),l=()=>gM(e,t,s,a);return n?l():ly(l)};function By(e,t,n){const{style:s}=e,a={};for(const l in s)(gn(s[l])||t.style&&gn(t.style[l])||H4(l,e)||n?.getValue(l)?.liveStyle!==void 0)&&(a[l]=s[l]);return a}const yM=K4({scrapeMotionValuesFromProps:By,createRenderState:Ly});function X4(e,t,n){const s=By(e,t,n);for(const a in e)if(gn(e[a])||gn(t[a])){const l=nl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=e[a]}return s}const bM=K4({scrapeMotionValuesFromProps:X4,createRenderState:W4}),xM=Symbol.for("motionComponentSymbol");function Ro(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _M(e,t,n){return j.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Ro(n)&&(n.current=s))},[t])}const zy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jM="framerAppearId",Z4="data-"+zy(jM),Q4=j.createContext({});function wM(e,t,n,s,a){const{visualElement:l}=j.useContext(Bm),d=j.useContext(z4),u=j.useContext(Fm),f=j.useContext(Oy).reducedMotion,h=j.useRef(null);s=s||d.renderer,!h.current&&s&&(h.current=s(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,g=j.useContext(Q4);p&&!p.projection&&a&&(p.type==="html"||p.type==="svg")&&SM(h.current,n,a,g);const y=j.useRef(!1);j.useInsertionEffect(()=>{p&&y.current&&p.update(n,u)});const x=n[Z4],b=j.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return qN(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),j.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),b.current=!1),p.enteringChildren=void 0)}),p}function SM(e,t,n,s){const{layoutId:a,layout:l,drag:d,dragConstraints:u,layoutScroll:f,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:J4(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!d||u&&Ro(u),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:p,layoutScroll:f,layoutRoot:h})}function J4(e){if(e)return e.options.allowProjection!==!1?e.projection:J4(e.parent)}function Hg(e,{forwardMotionProps:t=!1}={},n,s){n&&Zk(n);const a=Fy(e)?bM:yM;function l(u,f){let h;const p={...j.useContext(Oy),...u,layoutId:NM(u)},{isStatic:g}=p,y=nM(u),x=a(u,g);if(!g&&cy){CM();const b=$M(p);h=b.MeasureLayout,y.visualElement=wM(e,x,p,s,b.ProjectionNode)}return i.jsxs(Bm.Provider,{value:y,children:[h&&y.visualElement?i.jsx(h,{visualElement:y.visualElement,...p}):null,pM(e,u,_M(x,y.visualElement,f),x,g,t)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const d=j.forwardRef(l);return d[xM]=e,d}function NM({layoutId:e}){const t=j.useContext(oy).id;return t&&e!==void 0?t+"-"+e:e}function CM(e,t){j.useContext(z4).strict}function $M(e){const{drag:t,layout:n}=Xo;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
vendor: 23,689 bytes, line 146
146function EM(e,t){if(typeof Proxy>"u")return Hg;const n=new Map,s=(l,d)=>Hg(l,d,e,t),a=(l,d)=>s(l,d);return new Proxy(a,{get:(l,d)=>d==="create"?s:(n.has(d)||n.set(d,Hg(d,void 0,e,t)),n.get(d))})}function eC({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function TM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function AM(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function qg(e){return e===void 0||e===1}function cv({scale:e,scaleX:t,scaleY:n}){return!qg(e)||!qg(t)||!qg(n)}function va(e){return cv(e)||tC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tC(e){return V3(e.x)||V3(e.y)}function V3(e){return e&&e!=="0%"}function dm(e,t,n){const s=e-n,a=t*s;return n+a}function U3(e,t,n,s,a){return a!==void 0&&(e=dm(e,a,s)),dm(e,n,s)+t}function dv(e,t=0,n=1,s,a){e.min=U3(e.min,t,n,s,a),e.max=U3(e.max,t,n,s,a)}function nC(e,{x:t,y:n}){dv(e.x,t.translate,t.scale,t.originPoint),dv(e.y,n.translate,n.scale,n.originPoint)}const H3=.999999999999,q3=1.0000000000001;function kM(e,t,n,s=!1){const a=n.length;if(!a)return;t.x=t.y=1;let l,d;for(let u=0;u<a;u++){l=n[u],d=l.projectionDelta;const{visualElement:f}=l.options;f&&f.props.style&&f.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Do(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),d&&(t.x*=d.x.scale,t.y*=d.y.scale,nC(e,d)),s&&va(l.latestValues)&&Do(e,l.latestValues))}t.x<q3&&t.x>H3&&(t.x=1),t.y<q3&&t.y>H3&&(t.y=1)}function Po(e,t){e.min=e.min+t,e.max=e.max+t}function G3(e,t,n,s,a=.5){const l=kt(e.min,e.max,a);dv(e,t,n,l,s)}function Do(e,t){G3(e.x,t.x,t.scaleX,t.scale,t.originX),G3(e.y,t.y,t.scaleY,t.scale,t.originY)}function sC(e,t){return eC(AM(e.getBoundingClientRect(),t))}function MM(e,t,n){const s=sC(e,n),{scroll:a}=t;return a&&(Po(s.x,a.offset.x),Po(s.y,a.offset.y)),s}const W3=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lo=()=>({x:W3(),y:W3()}),Y3=()=>({min:0,max:0}),Ft=()=>({x:Y3(),y:Y3()}),um={current:null},Vy={current:!1};function iC(){if(Vy.current=!0,!!cy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>um.current=e.matches;e.addEventListener("change",t),t()}else um.current=!1}const Wc=new WeakMap;function OM(e,t,n){for(const s in t){const a=t[s],l=n[s];if(gn(a))e.addValue(s,a);else if(gn(l))e.addValue(s,Ko(a,{owner:e}));else if(l!==a)if(e.hasValue(s)){const d=e.getValue(s);d.liveStyle===!0?d.jump(a):d.hasAnimated||d.set(a)}else{const d=e.getStaticValue(s);e.addValue(s,Ko(d!==void 0?d:a,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const K3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rC{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:a,blockInitialAnimation:l,visualState:d},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ny,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=ns.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Mt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=d;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=u,this.blockInitialAnimation=!!l,this.isControllingVariants=Vm(n),this.isVariantNode=U4(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const x=g[y];f[y]!==void 0&&gn(x)&&x.set(f[y])}}mount(t){this.current=t,Wc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Vy.current||iC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:um.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Br(this.notifyUpdate),Br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=sl.has(t);s&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Mt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xo){const n=Xo[t];if(!n)continue;const{isEnabled:s,Feature:a}=n;if(!this.features[t]&&a&&s(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<K3.length;s++){const a=K3[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,d=t[l];d&&(this.propEventSubscriptions[a]=this.on(a,d))}this.prevMotionValues=OM(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Ko(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(GN(s)||YN(s))?s=parseFloat(s):!Hk(s)&&zr.test(n)&&(s=O4(t,n)),this.setBaseTarget(t,gn(s)?s.get():s)),gn(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const l=Iy(this.props,n,this.presenceContext?.custom);l&&(s=l[t])}if(n&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!gn(a)?a:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new my),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ay.render(this.render)}}class aC extends rC{constructor(){super(...arguments),this.KeyframeResolver=Rk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function oC(e,{style:t,vars:n},s,a){const l=e.style;let d;for(d in t)l[d]=t[d];a?.applyProjectionStyles(l,s);for(d in n)l.setProperty(d,n[d])}function RM(e){return window.getComputedStyle(e)}class lC extends aC{constructor(){super(...arguments),this.type="html",this.renderInstance=oC}readValueFromInstance(t,n){if(sl.has(n))return this.projection?.isProjecting?nv(n):ZA(t,n);{const s=RM(t),a=(gy(n)?s.getPropertyValue(n):s[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return sC(t,n)}build(t,n,s){Dy(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return By(t,n,s)}}const cC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function PM(e,t,n,s){oC(e,t,void 0,s);for(const a in t.attrs)e.setAttribute(cC.has(a)?a:zy(a),t.attrs[a])}class dC extends aC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(sl.has(n)){const s=M4(n);return s&&s.default||0}return n=cC.has(n)?n:zy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return X4(t,n,s)}build(t,n,s){G4(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,a){PM(t,n,s,a)}mount(t){this.isSVGTag=Y4(t.tagName),super.mount(t)}}const DM=(e,t)=>Fy(e)?new dC(t):new lC(t,{allowProjection:e!==j.Fragment});function zo(e,t,n){const s=e.getProps();return Iy(s,t,n!==void 0?n:s.custom,e)}const uv=e=>Array.isArray(e);function LM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ko(n))}function FM(e){return uv(e)?e[e.length-1]||0:e}function IM(e,t){const n=zo(e,t);let{transitionEnd:s={},transition:a={},...l}=n||{};l={...l,...s};for(const d in l){const u=FM(l[d]);LM(e,d,u)}}function BM(e){return!!(gn(e)&&e.add)}function fv(e,t){const n=e.getValue("willChange");if(BM(n))return n.add(t);if(!n&&Zi.WillChange){const s=new Zi.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function uC(e){return e.props[Z4]}const zM=e=>e!==null;function VM(e,{repeat:t,repeatType:n="loop"},s){const a=e.filter(zM),l=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[l]}const UM={type:"spring",stiffness:500,damping:25,restSpeed:10},HM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qM={type:"keyframes",duration:.8},GM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WM=(e,{keyframes:t})=>t.length>2?qM:sl.has(e)?e.startsWith("scale")?HM(t[1]):UM:GM;function YM({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:a,repeat:l,repeatType:d,repeatDelay:u,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const Uy=(e,t,n,s={},a,l)=>d=>{const u=$y(s,e)||{},f=u.delay||s.delay||0;let{elapsed:h=0}=s;h=h-ei(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:y=>{t.set(y),u.onUpdate&&u.onUpdate(y)},onComplete:()=>{d(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:l?void 0:a};YM(u)||Object.assign(p,WM(e,p)),p.duration&&(p.duration=ei(p.duration)),p.repeatDelay&&(p.repeatDelay=ei(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(ov(p),p.delay===0&&(g=!0)),(Zi.instantAnimations||Zi.skipAnimations)&&(g=!0,ov(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,g&&!l&&t.get()!==void 0){const y=VM(p.keyframes,u);if(y!==void 0){Mt.update(()=>{p.onUpdate(y),p.onComplete()});return}}return u.isSync?new Sy(p):new xk(p)};function KM({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Hy(e,t,{delay:n=0,transitionOverride:s,type:a}={}){let{transition:l=e.getDefaultTransition(),transitionEnd:d,...u}=t;s&&(l=s);const f=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const p in u){const g=e.getValue(p,e.latestValues[p]??null),y=u[p];if(y===void 0||h&&KM(h,p))continue;const x={delay:n,...$y(l||{},p)},b=g.get();if(b!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===b&&!x.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const N=uC(e);if(N){const C=window.MotionHandoffAnimation(N,p,Mt);C!==null&&(x.startTime=C,w=!0)}}fv(e,p),g.start(Uy(p,g,y,e.shouldReduceMotion&&T4.has(p)?{type:!1}:x,e,w));const S=g.animation;S&&f.push(S)}return d&&Promise.all(f).then(()=>{Mt.update(()=>{d&&IM(e,d)})}),f}function fC(e,t,n,s=0,a=1){const l=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),d=e.size,u=(d-1)*s;return typeof n=="function"?n(l,d):a===1?l*s:u-l*s}function mv(e,t,n={}){const s=zo(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(a=n.transitionOverride);const l=s?()=>Promise.all(Hy(e,s,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:g}=a;return XM(e,t,f,h,p,g,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[f,h]=u==="beforeChildren"?[l,d]:[d,l];return f().then(()=>h())}else return Promise.all([l(),d(n.delay)])}function XM(e,t,n=0,s=0,a=0,l=1,d){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(mv(f,t,{...d,delay:n+(typeof s=="function"?0:s)+fC(e.variantChildren,f,s,a,l)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function ZM(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const a=t.map(l=>mv(e,l,n));s=Promise.all(a)}else if(typeof t=="string")s=mv(e,t,n);else{const a=typeof t=="function"?zo(e,t,n.custom):t;s=Promise.all(Hy(e,a,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function mC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const QM=Py.length;function hC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?hC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<QM;n++){const s=Py[n],a=e.props[s];(qc(a)||a===!1)&&(t[s]=a)}return t}const JM=[...Ry].reverse(),eO=Ry.length;function tO(e){return t=>Promise.all(t.map(({animation:n,options:s})=>ZM(e,n,s)))}function nO(e){let t=tO(e),n=X3(),s=!0;const a=f=>(h,p)=>{const g=zo(e,p,f==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:y,transitionEnd:x,...b}=g;h={...h,...b,...x}}return h};function l(f){t=f(e)}function d(f){const{props:h}=e,p=hC(e.parent)||{},g=[],y=new Set;let x={},b=1/0;for(let S=0;S<eO;S++){const N=JM[S],C=n[N],E=h[N]!==void 0?h[N]:p[N],M=qc(E),L=N===f?C.isActive:null;L===!1&&(b=S);let R=E===p[N]&&E!==h[N]&&M;if(R&&s&&e.manuallyAnimateOnMount&&(R=!1),C.protectedKeys={...x},!C.isActive&&L===null||!E&&!C.prevProp||zm(E)||typeof E=="boolean")continue;const O=sO(C.prevProp,E);let k=O||N===f&&C.isActive&&!R&&M||S>b&&M,B=!1;const I=Array.isArray(E)?E:[E];let V=I.reduce(a(N),{});L===!1&&(V={});const{prevResolvedValues:z={}}=C,K={...z,...V},W=H=>{k=!0,y.has(H)&&(B=!0,y.delete(H)),C.needsAnimating[H]=!0;const U=e.getValue(H);U&&(U.liveStyle=!1)};for(const H in K){const U=V[H],Z=z[H];if(x.hasOwnProperty(H))continue;let F=!1;uv(U)&&uv(Z)?F=!mC(U,Z):F=U!==Z,F?U!=null?W(H):y.add(H):U!==void 0&&y.has(H)?W(H):C.protectedKeys[H]=!0}C.prevProp=E,C.prevResolvedValues=V,C.isActive&&(x={...x,...V}),s&&e.blockInitialAnimation&&(k=!1);const Q=R&&O;k&&(!Q||B)&&g.push(...I.map(H=>{const U={type:N};if(typeof H=="string"&&s&&!Q&&e.manuallyAnimateOnMount&&e.parent){const{parent:Z}=e,F=zo(Z,H);if(Z.enteringChildren&&F){const{delayChildren:T}=F.transition||{};U.delay=fC(Z.enteringChildren,e,T)}}return{animation:H,options:U}}))}if(y.size){const S={};if(typeof h.initial!="boolean"){const N=zo(e,Array.isArray(h.initial)?h.initial[0]:h.initial);N&&N.transition&&(S.transition=N.transition)}y.forEach(N=>{const C=e.getBaseTarget(N),E=e.getValue(N);E&&(E.liveStyle=!0),S[N]=C??null}),g.push({animation:S})}let w=!!g.length;return s&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(w=!1),s=!1,w?t(g):Promise.resolve()}function u(f,h){if(n[f].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(f,h)),n[f].isActive=h;const p=d(f);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:d,setActive:u,setAnimateFunction:l,getState:()=>n,reset:()=>{n=X3(),s=!0}}}function sO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mC(t,e):!1}function ha(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function X3(){return{animate:ha(!0),whileInView:ha(),whileHover:ha(),whileTap:ha(),whileDrag:ha(),whileFocus:ha(),exit:ha()}}class qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class iO extends qr{constructor(t){super(t),t.animationState||(t.animationState=nO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rO=0;class aO extends qr{constructor(){super(...arguments),this.id=rO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const oO={animation:{Feature:iO},exit:{Feature:aO}};function Yc(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function yd(e){return{point:{x:e.pageX,y:e.pageY}}}const lO=e=>t=>ky(t)&&e(t,yd(t));function Ac(e,t,n,s){return Yc(e,t,lO(n),s)}const pC=1e-4,cO=1-pC,dO=1+pC,gC=.01,uO=0-gC,fO=0+gC;function zn(e){return e.max-e.min}function mO(e,t,n){return Math.abs(e-t)<=n}function Z3(e,t,n,s=.5){e.origin=s,e.originPoint=kt(t.min,t.max,e.origin),e.scale=zn(n)/zn(t),e.translate=kt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cO&&e.scale<=dO||isNaN(e.scale))&&(e.scale=1),(e.translate>=uO&&e.translate<=fO||isNaN(e.translate))&&(e.translate=0)}function kc(e,t,n,s){Z3(e.x,t.x,n.x,s?s.originX:void 0),Z3(e.y,t.y,n.y,s?s.originY:void 0)}function Q3(e,t,n){e.min=n.min+t.min,e.max=e.min+zn(t)}function hO(e,t,n){Q3(e.x,t.x,n.x),Q3(e.y,t.y,n.y)}function J3(e,t,n){e.min=t.min-n.min,e.max=e.min+zn(t)}function Mc(e,t,n){J3(e.x,t.x,n.x),J3(e.y,t.y,n.y)}function Ls(e){return[e("x"),e("y")]}const vC=({current:e})=>e?e.ownerDocument.defaultView:null,ej=(e,t)=>Math.abs(e-t);function pO(e,t){const n=ej(e.x,t.x),s=ej(e.y,t.y);return Math.sqrt(n**2+s**2)}class yC{constructor(t,n,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Wg(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=pO(y.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!b)return;const{point:w}=y,{timestamp:S}=jn;this.history.push({...w,timestamp:S});const{onStart:N,onMove:C}=this.handlers;x||(N&&N(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,y)},this.handlePointerMove=(y,x)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Gg(x,this.transformPagePoint),Mt.update(this.updatePoint,!0)},this.handlePointerUp=(y,x)=>{this.end();const{onEnd:b,onSessionEnd:w,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Wg(y.type==="pointercancel"?this.lastMoveEventInfo:Gg(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(y,N),w&&w(y,N)},!ky(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=d,this.contextWindow=a||window;const u=yd(t),f=Gg(u,this.transformPagePoint),{point:h}=f,{timestamp:p}=jn;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Wg(f,this.history)),this.removeListeners=pd(Ac(this.contextWindow,"pointermove",this.handlePointerMove),Ac(this.contextWindow,"pointerup",this.handlePointerUp),Ac(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Br(this.updatePoint)}}function Gg(e,t){return t?{point:t(e.point)}:e}function tj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:tj(e,bC(t)),offset:tj(e,gO(t)),velocity:vO(t,.1)}}function gO(e){return e[0]}function bC(e){return e[e.length-1]}function vO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const a=bC(e);for(;n>=0&&(s=e[n],!(a.timestamp-s.timestamp>ei(t)));)n--;if(!s)return{x:0,y:0};const l=Bs(a.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const d={x:(a.x-s.x)/l,y:(a.y-s.y)/l};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function yO(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?kt(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?kt(n,e,s.max):Math.min(e,n)),e}function nj(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function bO(e,{top:t,left:n,bottom:s,right:a}){return{x:nj(e.x,n,a),y:nj(e.y,t,s)}}function sj(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function xO(e,t){return{x:sj(e.x,t.x),y:sj(e.y,t.y)}}function _O(e,t){let n=.5;const s=zn(e),a=zn(t);return a>s?n=Yo(t.min,t.max-s,e.min):s>a&&(n=Yo(e.min,e.max-a,t.min)),Xi(0,1,n)}function jO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const hv=.35;function wO(e=hv){return e===!1?e=0:e===!0&&(e=hv),{x:ij(e,"left","right"),y:ij(e,"to
146p","bottom")}}function ij(e,t,n){return{min:rj(e,t),max:rj(e,n)}}function rj(e,t){return typeof e=="number"?e:e[t]||0}const SO=new WeakMap;class NO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ft(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(yd(g).point)},d=(g,y)=>{const{drag:x,dragPropagation:b,onDragStart:w}=this.getProps();if(x&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lk(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=y,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ls(N=>{let C=this.getAxisMotionValue(N).get()||0;if(gi.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const M=E.layout.layoutBox[N];M&&(C=zn(M)*(parseFloat(C)/100))}}this.originPoint[N]=C}),w&&Mt.postRender(()=>w(g,y)),fv(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},u=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y;const{dragPropagation:x,dragDirectionLock:b,onDirectionLock:w,onDrag:S}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:N}=y;if(b&&this.currentDirection===null){this.currentDirection=CO(N),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",y.point,N),this.updateAxis("y",y.point,N),this.visualElement.render(),S&&S(g,y)},f=(g,y)=>{this.latestPointerEvent=g,this.latestPanInfo=y,this.stop(g,y),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Ls(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new yC(t,{onSessionStart:l,onStart:d,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:s,contextWindow:vC(this.visualElement)})}stop(t,n){const s=t||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!s)return;const{velocity:d}=a;this.startAnimation(d);const{onDragEnd:u}=this.getProps();u&&Mt.postRender(()=>u(s,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:a}=this.getProps();if(!s||!rf(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let d=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(d=yO(d,this.constraints[t],this.elastic[t])),l.set(d)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&Ro(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=bO(s.layoutBox,t):this.constraints=!1,this.elastic=wO(n),a!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Ls(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=jO(s.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ro(t))return!1;const s=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=MM(s,a.root,this.visualElement.getTransformPagePoint());let d=xO(a.layout.layoutBox,l);if(n){const u=n(TM(d));this.hasMutatedConstraints=!!u,u&&(d=eC(u))}return d}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:a,dragTransition:l,dragSnapToOrigin:d,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=Ls(p=>{if(!rf(p,n,this.currentDirection))return;let g=f&&f[p]||{};d&&(g={min:0,max:0});const y=a?200:1e6,x=a?40:1e7,b={type:"inertia",velocity:s?t[p]:0,bounceStiffness:y,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(p,b)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return fv(this.visualElement,t),s.start(Uy(t,s,0,n,this.visualElement,!1))}stopAnimation(){Ls(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ls(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),a=s[n];return a||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Ls(n=>{const{drag:s}=this.getProps();if(!rf(n,s,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:d,max:u}=a.layout.layoutBox[n];l.set(t[n]-kt(d,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ro(n)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ls(d=>{const u=this.getAxisMotionValue(d);if(u&&this.constraints!==!1){const f=u.get();a[d]=_O({min:f,max:f},this.constraints[d])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Ls(d=>
vendor: 4,780 bytes, line 146
146{if(!rf(d,t,null))return;const u=this.getAxisMotionValue(d),{min:f,max:h}=this.constraints[d];u.set(kt(f,h,a[d]))})}addListeners(){if(!this.visualElement.current)return;SO.set(this.visualElement,this);const t=this.visualElement.current,n=Ac(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),s=()=>{const{dragConstraints:f}=this.getProps();Ro(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",s);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Mt.read(s);const d=Yc(window,"resize",()=>this.scalePositionWithinConstraints()),u=a.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Ls(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{d(),n(),l(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:d=hv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:a,dragConstraints:l,dragElastic:d,dragMomentum:u}}}function rf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function CO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class $O extends qr{constructor(t){super(t),this.removeGroupControls=zs,this.removeListeners=zs,this.controls=new NO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zs}unmount(){this.removeGroupControls(),this.removeListeners()}}const aj=e=>(t,n)=>{e&&Mt.postRender(()=>e(t,n))};class EO extends qr{constructor(){super(...arguments),this.removePointerDownListener=zs}onPointerDown(t){this.session=new yC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:aj(t),onStart:aj(n),onMove:s,onEnd:(l,d)=>{delete this.session,a&&Mt.postRender(()=>a(l,d))}}}mount(){this.removePointerDownListener=Ac(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Bf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ac={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Fe.test(e))e=parseFloat(e);else return e;const n=oj(e,t.target.x),s=oj(e,t.target.y);return`${n}% ${s}%`}},TO={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,a=zr.parse(e);if(a.length>5)return s;const l=zr.createTransformer(e),d=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;a[0+d]/=u,a[1+d]/=f;const h=kt(u,f,.5);return typeof a[2+d]=="number"&&(a[2+d]/=h),typeof a[3+d]=="number"&&(a[3+d]/=h),l(a)}};let Yg=!1;class AO extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:a}=this.props,{projection:l}=t;sM(kO),l&&(n.group&&n.group.add(l),s&&s.register&&a&&s.register(l),Yg&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),Bf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:a,isPresent:l}=this.props,{projection:d}=s;return d&&(d.isPresent=l,Yg=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==l?d.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?d.promote():d.relegate()||Mt.postRender(()=>{const u=d.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ay.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:a}=t;Yg=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function xC(e){const[t,n]=B4(),s=j.useContext(oy);return i.jsx(AO,{...e,layoutGroup:s,switchLayoutGroup:j.useContext(Q4),isPresent:t,safeToRemove:n})}const kO={borderRadius:{...ac,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ac,borderTopRightRadius:ac,borderBottomLeftRadius:ac,borderBottomRightRadius:ac,boxShadow:TO};function _C(e,t,n){const s=gn(e)?e:Ko(e);return s.start(Uy("",s,t,n)),s.animation}const MO=(e,t)=>
vendor: 5,318 bytes, line 146
146e.depth-t.depth;class OO{constructor(){this.children=[],this.isDirty=!1}add(t){dy(this.children,t),this.isDirty=!0}remove(t){Im(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(MO),this.isDirty=!1,this.children.forEach(t)}}function RO(e,t){const n=ns.now(),s=({timestamp:a})=>{const l=a-n;l>=t&&(Br(s),e(l-t))};return Mt.setup(s,!0),()=>Br(s)}const jC=["TopLeft","TopRight","BottomLeft","BottomRight"],PO=jC.length,lj=e=>typeof e=="string"?parseFloat(e):e,cj=e=>typeof e=="number"||Fe.test(e);function DO(e,t,n,s,a,l){a?(e.opacity=kt(0,n.opacity??1,LO(s)),e.opacityExit=kt(t.opacity??1,0,FO(s))):l&&(e.opacity=kt(t.opacity??1,n.opacity??1,s));for(let d=0;d<PO;d++){const u=`border${jC[d]}Radius`;let f=dj(t,u),h=dj(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||cj(f)===cj(h)?(e[u]=Math.max(kt(lj(f),lj(h),s),0),(gi.test(h)||gi.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=kt(t.rotate||0,n.rotate||0,s))}function dj(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const LO=wC(0,.5,n4),FO=wC(.5,.95,zs);function wC(e,t,n){return s=>s<e?0:s>t?1:n(Yo(e,t,s))}function uj(e,t){e.min=t.min,e.max=t.max}function Os(e,t){uj(e.x,t.x),uj(e.y,t.y)}function fj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mj(e,t,n,s,a){return e-=t,e=dm(e,1/n,s),a!==void 0&&(e=dm(e,1/a,s)),e}function IO(e,t=0,n=1,s=.5,a,l=e,d=e){if(gi.test(t)&&(t=parseFloat(t),t=kt(d.min,d.max,t/100)-d.min),typeof t!="number")return;let u=kt(l.min,l.max,s);e===l&&(u-=t),e.min=mj(e.min,t,n,u,a),e.max=mj(e.max,t,n,u,a)}function hj(e,t,[n,s,a],l,d){IO(e,t[n],t[s],t[a],t.scale,l,d)}const BO=["x","scaleX","originX"],zO=["y","scaleY","originY"];function pj(e,t,n,s){hj(e.x,t,BO,n?n.x:void 0,s?s.x:void 0),hj(e.y,t,zO,n?n.y:void 0,s?s.y:void 0)}function gj(e){return e.translate===0&&e.scale===1}function SC(e){return gj(e.x)&&gj(e.y)}function vj(e,t){return e.min===t.min&&e.max===t.max}function VO(e,t){return vj(e.x,t.x)&&vj(e.y,t.y)}function yj(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function NC(e,t){return yj(e.x,t.x)&&yj(e.y,t.y)}function bj(e){return zn(e.x)/zn(e.y)}function xj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class UO{constructor(){this.members=[]}add(t){dy(this.members,t),t.scheduleRender()}remove(t){if(Im(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let s;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){s=l;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HO(e,t,n){let s="";const a=e.x.translate/t.x,l=e.y.translate/t.y,d=n?.z||0;if((a||l||d)&&(s=`translate3d(${a}px, ${l}px, ${d}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:g,rotateY:y,skewX:x,skewY:b}=n;h&&(s=`perspective(${h}px) ${s}`),p&&(s+=`rotate(${p}deg) `),g&&(s+=`rotateX(${g}deg) `),y&&(s+=`rotateY(${y}deg) `),x&&(s+=`skewX(${x}deg) `),b&&(s+=`skewY(${b}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(s+=`scale(${u}, ${f})`),s||"none"}const Kg=["","X","Y","Z"],qO=1e3;let GO=0;function Xg(e,t,n,s){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),s&&(s[e]=0))}function CC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=uC(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Mt,!(a||l))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&CC(s)}function $C({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(d={},u=t?.()){this.id=GO++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 4,304 bytes, line 146
146{this.projectionUpdateScheduled=!1,this.nodes.forEach(KO),this.nodes.forEach(JO),this.nodes.forEach(eR),this.nodes.forEach(XO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new OO)}addEventListener(d,u){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new my),this.eventHandlers.get(d).add(u)}notifyListeners(d,...u){const f=this.eventHandlers.get(d);f&&f.notify(...u)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=My(d)&&!I4(d),this.instance=d;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let p,g=0;const y=()=>this.root.updateBlockedByResize=!1;Mt.read(()=>{g=window.innerWidth}),e(d,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,p&&p(),p=RO(y,250),Bf.hasAnimatedSinceResize&&(Bf.hasAnimatedSinceResize=!1,this.nodes.forEach(wj)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||rR,{onLayoutAnimationStart:w,onLayoutAnimationComplete:S}=h.getProps(),N=!this.targetLayout||!NC(this.targetLayout,x),C=!g&&y;if(this.options.layoutRoot||this.resumeFrom||C||g&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...$y(b,"layout"),onPlay:w,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(p,C)}else g||wj(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tR),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&CC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_j);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jj);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(QO),this.nodes.forEach(WO),this.nodes.forEach(YO)):this.nodes.forEach(jj),this.clearAllSnapshots();const u=ns.now();jn.delta=Xi(0,1e3/60,u-jn.timestamp),jn.timestamp=u,jn.isProcessing=!0,Fg.update.process(jn),Fg.preRender.process(jn),Fg.render.process(jn),jn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ay.read(this.scheduleUpdate))}
vendor: 6,064 bytes, line 146
146clearAllSnapshots(){this.nodes.forEach(ZO),this.sharedNodes.forEach(nR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zn(this.snapshot.measuredBox.x)&&!zn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ft(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(u=!1),u&&this.instance){const f=s(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!SC(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;d&&this.instance&&(u||va(this.latestValues)||p)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return d&&(f=this.removeTransform(f)),aR(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:d}=this.options;if(!d)return Ft();const u=d.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oR))){const{scroll:h}=this.root;h&&(Po(u.x,h.offset.x),Po(u.y,h.offset.y))}return u}removeElementScroll(d){const u=Ft();if(Os(u,d),this.scroll?.wasRoot)return u;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:p,options:g}=h;h!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&Os(u,d),Po(u.x,p.offset.x),Po(u.y,p.offset.y))}return u}applyTransform(d,u=!1){const f=Ft();Os(f,d);for(let h=0;h<this.path.length;h++){const p=this.path[h];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Do(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),va(p.latestValues)&&Do(f,p.latestValues)}return va(this.latestValues)&&Do(f,this.latestValues),f}removeTransform(d){const u=Ft();Os(u,d);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!va(h.latestValues))continue;cv(h.latestValues)&&h.updateSnapshot();const p=Ft(),g=h.measurePageBox();Os(p,g),pj(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return va(this.latestValues)&&pj(u,this.latestValues),u}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(d||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=jn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),Mc(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),Os(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ft(),this.targetWithTransforms=Ft()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Os(this.target,this.layout.layoutBox),nC(this.target,this.targetDelta)):Os(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ft(),this.relativeTargetOrigin=Ft(),Mc(this.relativeTargetOrigin,this.target,y.target),Os(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||cv(this.parent.latestValues)||tC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const d=this.getLead(),u=!!this.resumingFrom||this!==d;let f=!0;
vendor: 9,323 bytes, line 146
146if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===jn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;Os(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;kM(this.layoutCorrected,this.treeScale,this.path,u),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ft());const{target:x}=d;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fj(this.prevProjectionDelta.x,this.projectionDelta.x),fj(this.prevProjectionDelta.y,this.projectionDelta.y)),kc(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!xj(this.projectionDelta.x,this.prevProjectionDelta.x)||!xj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){if(this.options.visualElement?.scheduleRender(),d){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Lo(),this.projectionDelta=Lo(),this.projectionDeltaWithTransform=Lo()}setAnimationOrigin(d,u=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=Lo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const y=Ft(),x=f?f.source:void 0,b=this.layout?this.layout.source:void 0,w=x!==b,S=this.getStack(),N=!S||S.members.length<=1,C=!!(w&&!N&&this.options.crossfade===!0&&!this.path.some(iR));this.animationProgress=0;let E;this.mixTargetDelta=M=>{const L=M/1e3;Sj(g.x,d.x,L),Sj(g.y,d.y,L),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mc(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sR(this.relativeTarget,this.relativeTargetOrigin,y,L),E&&VO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Ft()),Os(E,this.relativeTarget)),w&&(this.animationValues=p,DO(p,h,this.latestValues,L,C,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mt.update(()=>{Bf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ko(0)),this.currentAnimation=_C(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),d.onUpdate&&d.onUpdate(u)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:p}=d;if(!(!u||!f||!h)){if(this!==d&&this.layout&&h&&EC(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ft();const g=zn(this.layout.layoutBox.x);f.x.min=d.target.x.min,f.x.max=f.x.min+g;const y=zn(this.layout.layoutBox.y);f.y.min=d.target.y.min,f.y.max=f.y.min+y}Os(u,f),Do(u,p),kc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(d,u){this.sharedNodes.has(d)||this.sharedNodes.set(d,new UO),this.sharedNodes.get(d).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){const{layoutId:d}=this.options;return d?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:d}=this.options;return d?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),d&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let u=!1;const{latestValues:f}=d;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&Xg("z",d,h,this.animationValues);for(let p=0;p<Kg.length;p++)Xg(`rotate${Kg[p]}`,d,h,this.animationValues),Xg(`skew${Kg[p]}`,d,h,this.animationValues);d.render();for(const p in h)d.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);d.scheduleRender()}applyProjectionStyles(d,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=If(u?.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=If(u?.pointerEvents)||""),this.hasProjected&&!va(this.latestValues)&&(d.transform=f?f({},""):"none",this.hasProjected=!1);return}d.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=HO(this.projectionDeltaWithTransform,this.treeScale,p);f&&(g=f(p,g)),d.transform=g;const{x:y,y:x}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${x.origin*100}% 0`,h.animationValues?d.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Gc){if(p[b]===void 0)continue;const{correct:w,applyTo:S,isCSSVariable:N}=Gc[b],C=g==="none"?p[b]:w(p[b],h);if(S){const E=S.length;for(let M=0;M<E;M++)d[S[M]]=C}else N?this.options.visualElement.renderState.vars[b]=C:d[b]=C}this.options.layoutId&&(d.pointerEvents=h===this?If(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>d.currentAnimation?.stop()),this.root.nodes.forEach(_j),this.root.sharedNodes.clear()}}}function WO(e){e.updateLayout()}function YO(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?Ls(p=>{const g=l?t.measuredBox[p]:t.layoutBox[p],y=zn(g);g.min=n[p].min,g.max=g.min+y}):EC(a,t.layoutBox,n)&&Ls(p=>{const g=l?t.measuredBox[p]:t.layoutBox[p],y=zn(n[p]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const d=Lo();kc(d,n,t.layoutBox);const u=Lo();l?kc(u,e.applyTransform(s,!0),t.measuredBox):kc(u,n,t.layoutBox);const f=!SC(d);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:y}=p;if(g&&y){const x=Ft();Mc(x,t.layoutBox,g.layoutBox);const b=Ft();Mc(b,n,y.layoutBox),NC(x,b)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function KO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function XO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZO(e){e.clearSnapshot()}function _j(e){e.clearMeasurements()}function jj(e){e.isLayoutDirty=!1}function QO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wj(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function JO(e){e.resolveTargetDelta()}function eR(e){e.calcProjection()}
vendor: 9,202 bytes, line 146
146function tR(e){e.resetSkewAndRotation()}function nR(e){e.removeLeadSnapshot()}function Sj(e,t,n){e.translate=kt(t.translate,0,n),e.scale=kt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Nj(e,t,n,s){e.min=kt(t.min,n.min,s),e.max=kt(t.max,n.max,s)}function sR(e,t,n,s){Nj(e.x,t.x,n.x,s),Nj(e.y,t.y,n.y,s)}function iR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const rR={duration:.45,ease:[.4,0,.1,1]},Cj=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$j=Cj("applewebkit/")&&!Cj("chrome/")?Math.round:zs;function Ej(e){e.min=$j(e.min),e.max=$j(e.max)}function aR(e){Ej(e.x),Ej(e.y)}function EC(e,t,n){return e==="position"||e==="preserve-aspect"&&!mO(bj(t),bj(n),.2)}function oR(e){return e!==e.root&&e.scroll?.wasRoot}const lR=$C({attachResizeListener:(e,t)=>Yc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zg={current:void 0},TC=$C({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zg.current){const e=new lR({});e.mount(window),e.setOptions({layoutScroll:!0}),Zg.current=e}return Zg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cR={pan:{Feature:EO},drag:{Feature:$O,ProjectionNode:TC,MeasureLayout:xC}};function Tj(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=s[a];l&&Mt.postRender(()=>l(t,yd(t)))}class dR extends qr{mount(){const{current:t}=this.node;t&&(this.unmount=Fk(t,(n,s)=>(Tj(this.node,s,"Start"),a=>Tj(this.node,a,"End"))))}unmount(){}}class uR extends qr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pd(Yc(this.node.current,"focus",()=>this.onFocus()),Yc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Aj(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=s[a];l&&Mt.postRender(()=>l(t,yd(t)))}class fR extends qr{mount(){const{current:t}=this.node;t&&(this.unmount=Vk(t,(n,s)=>(Aj(this.node,s,"Start"),(a,{success:l})=>Aj(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pv=new WeakMap,Qg=new WeakMap,mR=e=>{const t=pv.get(e.target);t&&t(e)},hR=e=>{e.forEach(mR)};function pR({root:e,...t}){const n=e||document;Qg.has(n)||Qg.set(n,{});const s=Qg.get(n),a=JSON.stringify(t);return s[a]||(s[a]=new IntersectionObserver(hR,{root:e,...t})),s[a]}function gR(e,t,n){const s=pR(t);return pv.set(e,n),s.observe(e),()=>{pv.delete(e),s.unobserve(e)}}const vR={some:0,all:1};class yR extends qr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:a="some",once:l}=t,d={root:n?n.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:vR[a]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),y=h?p:g;y&&y(f)};return gR(this.node.current,d,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bR(t,n))&&this.startObserver()}unmount(){}}function bR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xR={inView:{Feature:yR},tap:{Feature:fR},focus:{Feature:uR},hover:{Feature:dR}},_R={layout:{ProjectionNode:TC,MeasureLayout:xC}},jR={...oO,...xR,...cR,..._R},kn=EM(jR,DM);function AC(){!Vy.current&&iC();const[e]=j.useState(um.current);return e}function qy(e){return typeof e=="object"&&!Array.isArray(e)}function kC(e,t,n,s){return typeof e=="string"&&qy(t)?Ty(e,n,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function wR(e,t,n){return e*(t+1)}function kj(e,t,n,s){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):s.get(t)??e}function SR(e,t,n){for(let s=0;s<e.length;s++){const a=e[s];a.at>t&&a.at<n&&(Im(e,a),s--)}}function NR(e,t,n,s,a,l){SR(e,a,l);for(let d=0;d<t.length;d++)e.push({value:t[d],at:kt(a,l,s[d]),easing:a4(n,d)})}function CR(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function $R(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const ER="easeInOut";function TR(e,{defaultTransition:t={},...n}={},s,a){const l=t.duration||.3,d=new Map,u=new Map,f={},h=new Map;let p=0,g=0,y=0;for(let x=0;x<e.length;x++){const b=e[x];if(typeof b=="string"){h.set(b,g);continue}else if(!Array.isArray(b)){h.set(b.name,kj(g,b.at,p,h));continue}let[w,S,N={}]=b;N.at!==void 0&&(g=kj(g,N.at,p,h));let C=0;const E=(M,L,R,O=0,k=0)=>{const B=AR(M),{delay:I=0,times:V=_4(B),type:z="keyframes",repeat:K,repeatType:W,repeatDelay:Q=0,...D}=L;let{ease:H=t.ease||"easeOut",duration:U}=L;const Z=typeof I=="function"?I(O,k):I,F=B.length,T=Cy(z)?z:a?.[z||"keyframes"];if(F<=2&&T){let te=100;if(F===2&&OR(B)){const le=B[1]-B[0];te=Math.abs(le)}const ae={...D};U!==void 0&&(ae.duration=ei(U));const pe=y4(ae,te,T);H=pe.ease,U=pe.duration}U??(U=l);const A=g+Z;V.length===1&&V[0]===0&&(V[1]=1);const Y=V.length-B.length;if(Y>0&&x4(V,Y),B.length===1&&B.unshift(null),K){U=wR(U,K);const te=[...B],ae=[...V];H=Array.isArray(H)?[...H]:[H];const pe=[...H];for(let le=0;le<K;le++){B.push(...te);for(let ve=0;ve<te.length;ve++)V.push(ae[ve]+(le+1)),H.push(ve===0?"linear":a4(pe,ve-1))}CR(V,K)}const ee=A+U;NR(R,B,H,V,A,ee),C=Math.max(Z+U,C),y=Math.max(ee,y)};if(gn(w)){const M=Mj(w,u);E(S,N,Oj("default",M))}else{const M=kC(w,S,s,f),L=M.length;for(let R=0;R<L;R++){S=S,N=N;const O=M[R],k=Mj(O,u);for(const B in S)E(S[B],kR(N,B),Oj(B,k),R,L)}}p=g,g+=C}return u.forEach((x,b)=>{for(const w in x){const S=x[w];S.sort($R);const N=[],C=[],E=[];for(let L=0;L<S.length;L++){const{at:R,value:O,easing:k}=S[L];N.push(O),C.push(Yo(0,y,R)),E.push(k||"easeOut")}C[0]!==0&&(C.unshift(0),N.unshift(N[0]),E.unshift(ER)),C[C.length-1]!==1&&(C.push(1),N.push(null)),d.has(b)||d.set(b,{keyframes:{},transition:{}});const M=d.get(b);M.keyframes[w]=N,M.transition[w]={...t,duration:y,ease:E,times:C,...n}}}),d}function Mj(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Oj(e,t){return t[e]||(t[e]=[]),t[e]}function AR(e){return Array.isArray(e)?e:[e]}function kR(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const MR=e=>typeof e=="number",OR=e=>e.every(MR);function RR(e,t){return e in t}class PR extends rC{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(RR(n,t)){const s=t[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Ft()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function DR(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=My(e)&&!I4(e)?new dC(t):new lC(t);n.mount(e),Wc.set(e,n)}function LR(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new PR(t);n.mount(e),Wc.set(e,n)}function FR(e,t){return gn(e)||typeof e=="number"||typeof e=="string"&&!qy(t)}function MC(e,t,n,s){const a=[];if(FR(e,t))a.push(_C(e,qy(t)&&t.default||t,n&&(n.default||n)));else{const l=kC(e,t,s),d=l.length;for(let u=0;u<d;u++){const f=l[u],h=f instanceof Element?DR:LR;Wc.has(f)||h(f);const p=Wc.get(f),g={...n};"delay"in g&&typeof g.delay=="function"&&(g.delay=g.delay(u,d)),a.push(...Hy(p,{...t,transition:g},{}))}}return a}function IR(e,t,n){const s=[];return TR(e,t,n,{spring:Hc}).forEach(({keyframes:l,transition:d},u)=>{s.push(...MC(u,l,d))}),s}function BR(e){return Array.isArray(e)&&e.some(Array.isArray)}function zR(e){function t(n,s,a){let l=[],d;if(BR(n))l=IR(n,s,e);else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(d=f),l=MC(n,s,h,e)}const u=new jk(l);return d&&u.finished.then(d),u}return t}const OC=zR(),VR={some:0,all:1};function UR(e,t,{root:n,margin:s,amount:a="some"}={}){const l=Ty(e),d=new WeakMap,u=h=>{h.forEach(p=>{const g=d.get(p.target);if(p.isIntersecting!==!!g)if(p.isIntersecting){const y=t(p.target,p);typeof y=="function"?d.set(p.target,y):f.unobserve(p.target)}else typeof g=="function"&&(g(p),d.delete(p.target))})},f=new IntersectionObserver(u,{root:n,rootMargin:s,threshold:typeof a=="number"?a:VR[a]});return l.forEach(h=>
146f.observe(h)),()=>f.disconnect()}function Gy(e,{root:t,margin:n,amount:s,once:a=!1,initial:l=!1}={}){const[d,u]=j.useState(l);return j.useEffect(()=>{if(!e.current||a&&d)return;const f=()=>(u(!0),a?void 0:()=>u(!1)),h={root:t&&t.current||void 0,margin:n,amount:s};return UR(e.current,f,h)},[t,e,n,a,s]),d}const oc={image:"/images/about.webp",label:"About Us",title:"The whole is greater than sum of its parts",description:"At BCCS, our mission is to empower fintech and Web3 companies to innovate, grow, and succeed. We bring together startups, established enterprises, investors, universities, and public institutions to create a collaborative ecosystem where ideas turn into real solutions. By bridging technology and professional services, we provide the resources, connections, and expertise that help businesses expand to new markets, strengthen operations, and accelerate innovation.",cards:[{id:1,icon:"/images/icons/flag.svg",width:24,height:24,title:"Mission",description:"We believe that results are inspired by collective action to reach our full potential. BCCS Cluster is a consortium supporting Information Technology businesses, communities and creating meaningful relationships with those around us."},{id:2,icon:"/images/icons/eye.svg",width:25,height:24,title:"Vision",description:"To Lead the way of Information Technology development by creating a holistic experience – connecting industry professionals to discover new knowledge, opportunities and share our competency with the world."},{id:3,icon:"/images/icons/gem.svg",width:25,height:24,title:"Values",description:"Integrity. Transparency. Trust. These are the guiding principles that are at heart of everything we do. Consistent and truthful communication, standards, internal values, and honest Feedback are the cornerstones of building trust in the BCCS Cluster."}]},Rj={hidden:{"--sweep-angle":"0deg"},visible:{"--sweep-angle":"360deg",transition:{duration:1.5,ease:"linear"}}};function HR(){const e=j.useRef(null),[t,n]=j.useState(!1);return j.useEffect(()=>{e.current?.complete&&n(!0)},[]),i.jsxs("div",{className:"about-section",children:[i.jsxs("div",{className:"img-container",children:[i.jsx("img",{ref:e,src:oc.image,alt:"BCCS Cluster team",width:"1229",height:"637",onLoad:()=>n(!0)}),i.jsxs("div",{className:"decor-container",children:[i.jsx("div",{className:"top-container-grid",children:i.jsx("div",{className:"top-container",children:i.jsx(kn.div,{className:"decor",initial:"hidden",animate:t?"visible":"hidden",variants:Rj,style:{position:"relative",isolation:"isolate",maskImage:"conic-gradient(from 180deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))",WebkitMaskImage:"conic-gradient(from 180deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))"}})})}),i.jsx("div",{className:"bottom-container-grid",children:i.jsx("div",{className:"bottom-container",children:i.jsx(kn.div,{className:"decor-2",initial:"hidden",animate:t?"visible":"hidden",variants:Rj,transition:{delay:.4},style:{position:"relative",isolation:"isolate",maskImage:"conic-gradient(from 0deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))",WebkitMaskImage:"conic-gradient(from 0deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))"}})})})]})]}),i.jsxs("div",{className:"about-container",children:[i.jsxs("div",{className:"about-intro-container",children:[i.jsx("div",{className:"label",children:oc.label}),i.jsxs("div",{className:"content-container",children:[i.jsx("div",{className:"title-container",children:i.jsx("h3",{children:oc.title})}),i.jsx("div",{className:"desc-container",children:i.jsx("p",{children:oc.description})})]})]}),i.jsx("div",{className:"cards-container",children:oc.cards.map(s=>i.jsx("div",{className:"card",children:i.jsxs("div",{className:"media-object",children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:s.icon,alt:"Icon",width:s.width,height:s.height})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("h3",{children:s.title})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:s.description})})]})]})},s.id))})]})]})}const af={label:"Team",title:"Our Team",description:"Meet the people behind BCCS ready to help and support your journey",members:[{id:1,image:"/images/team/andrius.png",name:"Andrius Petkevičius",position:"Co-Founder, CEO",email:"[email protected]",linkedinUrl:"https://www.linkedin.com/in/andrius-petkevicius/"},{id:2,image:"/images/team/vytenis2.png",name:"Vytenis Kazanavičius",position:"Co-Founder, COO",email:"[email protected]",linkedinUrl:"https://www.linkedin.com/in/vytenis-kazanavicius/"},{id:3,image:"/images/team/petras.png",name:"Petras Petkevičius",position:"Co-Founder, CBDO",email:"[email protected]",linkedinUrl:"https://www.linkedin.com/in/petras-petkevicius/"},{id:4,image:"/images/team/austeja.png",name:"Austėja Pralgauskaitė",position:"Events & Community Manager",email:"[email protected]",linkedinUrl:"https://www.linkedin.com/in/austeja-pralgauskaite/"},{id:5,image:"/images/team/greta.png",name:"Greta Pukenytė",position:"Communications & Partnerships Manager",email:"[email protected]",linkedinUrl:"https://www.linkedin.com/in/greta-pukenyt%C4%97-
14677345229b/"},{id:6,image:"/images/team/ruta.png",name:"RÅ«ta PetkevičiÅ«tė",position:"Event Coordinator",email:"[email protected]",linkedinUrl:"https://www.linkedin.com/in/r%C5%ABta-petkevi%C4%8Di%C5%ABt%C4%97-53972221b/"}]};function qR(){const[e,t]=j.useState(null),n=async(s,a)=>{a.preventDefault();try{await navigator.clipboard.writeText(s),t("Email copied to clipboard!")}catch{t("Failed to copy email")}};return i.jsxs("div",{className:"team-section",children:[e&&i.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:1e3},children:i.jsx(hd,{type:"info",message:e,onClose:()=>t(null)})}),i.jsxs("div",{className:"team-container",children:[i.jsxs("div",{className:"team-intro-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:af.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{children:af.title}),i.jsx("p",{children:af.description})]})]}),i.jsx("div",{className:"cards-container",children:af.members.map(s=>i.jsxs("div",{className:"media-object",children:[i.jsx("div",{className:"image",children:i.jsx("img",{src:s.image,alt:s.name,width:"308",height:"387",loading:"lazy"})}),i.jsxs("div",{className:"content-kit",children:[i.jsx("div",{className:"main-kit-body",children:i.jsx("div",{className:"content-container",children:i.jsx("div",{className:"info-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h6",{children:s.name}),i.jsx("p",{children:s.position})]})})})}),i.jsxs("div",{className:"content-footer",children:[i.jsx("div",{className:"border"}),i.jsx("div",{className:"footer-container",children:i.jsx("div",{className:"content",children:i.jsx("div",{className:"socials-container",children:i.jsxs("div",{className:"socials",children:[i.jsx("a",{href:s.linkedinUrl,target:"_blank",rel:"noopener noreferrer",className:"icon",children:i.jsx("img",{src:"/images/icons/linked.svg",width:"24",height:"25",alt:"LinkedIn"})}),i.jsx("a",{href:`mailto:${s.email}`,className:"icon",onClick:a=>n(s.email,a),children:i.jsx("img",{src:"/images/icons/envelope.svg",width:"24",height:"24",alt:"Email"})})]})})})})]})]})]},s.id))})]})]})}function Pj(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Wy(e={},t={}){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>n.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:Pj(t[s])&&Pj(e[s])&&Object.keys(t[s]).length>0&&Wy(e[s],t[s])})}const RC={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function vi(){const e=typeof document<"u"?document:{};return Wy(e,RC),e}const GR={document:RC,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Hn(){const e=typeof window<"u"?window:{};return Wy(e,GR),e}function WR(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function YR(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function PC(e,t=0){return setTimeout(e,t)}function fm(){return Date.now()}function KR(e){const t=Hn();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function XR(e,t="x"){const n=Hn();let s,a,l;const d=KR(e);return n.WebKitCSSMatrix?(a=d.transform||d.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(u=>u.replace(",",".")).join(", ")),l=new n.WebKitCSSMatrix(a==="none"?"":a)):(l=d.MozTransform||d.OTransform||d.MsTransform||d.msTransform||d.transform||d.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=l.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=l.m41:s.length===16?a=parseFloat(s[12]):a=parseFloat(s[4])),t==="y"&&(n.WebKitCSSMatrix?a=l.m42:s.length===16?a=parseFloat(s[13]):a=parseFloat(s[5])),a||0}function of(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ZR(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function gs(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let s=1;s<e.length;s+=1){const a=e[s];if(a!=null&&!ZR(a)){const l=Object.keys(Object(a)).filter(d=>n.indexOf(d)<0);for(let d=0,u=l.length;d<u;d+=1){const f=l[d],h=Object.getOwnPropertyDescriptor(a,f);h!==void 0&&h.enumerable&&(of(t[f])&&of(a[f])?a[f].__swiper__?t[f]=a[f]:gs(t[f],a[f]):!of(t[f])&&of(a[f])?(t[f]={},a[f].__swiper__?t[f]=a[f]:gs(t[f],a[f])):t[f]=a[f])}}}return t}function lf(e,t,n){e.style.setProperty(t,n)}function DC({swiper:e,targetPosition:t,side:n}){const s=Hn(),a=-e.translate;let l=null,d;const u=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const f=t>a?"next":"prev",h=(g,y)=>f==="next"&&g>=y||f==="prev"&&g<=y,p=()=>{d=new Date().getTime(),l===null&&(l=d);const g=Math.max(Math.min((d-l)/u,1),0),y=.5-Math.cos(g*Math.PI)/2;let x=a+y*(t-a);if(h(x,t)&&(x=t),e.wrapperEl.scrollTo({[n]:x}),h(x,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:x})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(p)};p()}function Yy(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function hi(e,t=""){const n=Hn(),s=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter(a=>a.matches(t)):s}function QR(e,t){const n=[t];for(;n.length>0;){const s=n.shift();if(e===s)return!0;n.push(...s.children,...s.shadowRoot?s.shadowRoot.children:[],...s.assignedElements?s.assignedElements():[])}}function JR(e,t){const n=Hn();let s=t.contains(e);return!s&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(s=[...t.assignedElements()].includes(e),s||(s=QR(e,t))),s}function mm(e){try{console.warn(e);return}catch{}}function Kc(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:WR(t)),n}function eP(e,t){const n=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&n.push(s):n.push(s),e=s}return n}function tP(e,t){const n=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&n.push(s):n.push(s),e=s}return n}function Dr(e,t){return Hn().getComputedStyle(e,null).getPropertyValue(t)}function hm(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function LC(e,t){const n=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&n.push(s):n.push(s),s=s.parentElement;return n}
vendor: 33,760 bytes, line 146
146function gv(e,t,n){const s=Hn();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function pn(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function nP(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}function Xc(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:n=>n}).createHTML(t):e.innerHTML=t}let Jg;function sP(){const e=Hn(),t=vi();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function FC(){return Jg||(Jg=sP()),Jg}let e0;function iP({userAgent:e}={}){const t=FC(),n=Hn(),s=n.navigator.platform,a=e||n.navigator.userAgent,l={ios:!1,android:!1},d=n.screen.width,u=n.screen.height,f=a.match(/(Android);?[\s\/]+([\d.]+)?/);let h=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const p=a.match(/(iPod)(.*OS\s([\d_]+))?/),g=!h&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),y=s==="Win32";let x=s==="MacIntel";const b=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!h&&x&&t.touch&&b.indexOf(`${d}x${u}`)>=0&&(h=a.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),x=!1),f&&!y&&(l.os="android",l.android=!0),(h||g||p)&&(l.os="ios",l.ios=!0),l}function IC(e={}){return e0||(e0=iP(e)),e0}let t0;function rP(){const e=Hn(),t=IC();let n=!1;function s(){const u=e.navigator.userAgent.toLowerCase();return u.indexOf("safari")>=0&&u.indexOf("chrome")<0&&u.indexOf("android")<0}if(s()){const u=String(e.navigator.userAgent);if(u.includes("Version/")){const[f,h]=u.split("Version/")[1].split(" ")[0].split(".").map(p=>Number(p));n=f<16||f===16&&h<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),l=s(),d=l||a&&t.ios;return{isSafari:n||l,needPerspectiveFix:n,need3dFix:d,isWebView:a}}function BC(){return t0||(t0=rP()),t0}function aP({swiper:e,on:t,emit:n}){const s=Hn();let a=null,l=null;const d=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},u=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(p=>{l=s.requestAnimationFrame(()=>{const{width:g,height:y}=e;let x=g,b=y;p.forEach(({contentBoxSize:w,contentRect:S,target:N})=>{N&&N!==e.el||(x=S?S.width:(w[0]||w).inlineSize,b=S?S.height:(w[0]||w).blockSize)}),(x!==g||b!==y)&&d()})}),a.observe(e.el))},f=()=>{l&&s.cancelAnimationFrame(l),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},h=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){u();return}s.addEventListener("resize",d),s.addEventListener("orientationchange",h)}),t("destroy",()=>{f(),s.removeEventListener("resize",d),s.removeEventListener("orientationchange",h)})}function oP({swiper:e,extendParams:t,on:n,emit:s}){const a=[],l=Hn(),d=(h,p={})=>{const g=l.MutationObserver||l.WebkitMutationObserver,y=new g(x=>{if(e.__preventObserver__)return;if(x.length===1){s("observerUpdate",x[0]);return}const b=function(){s("observerUpdate",x[0])};l.requestAnimationFrame?l.requestAnimationFrame(b):l.setTimeout(b,0)});y.observe(h,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:e.isElement||(typeof p.childList>"u"?!0:p).childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),a.push(y)},u=()=>{if(e.params.observer){if(e.params.observeParents){const h=LC(e.hostEl);for(let p=0;p<h.length;p+=1)d(h[p])}d(e.hostEl,{childList:e.params.observeSlideChildren}),d(e.wrapperEl,{attributes:!1})}},f=()=>{a.forEach(h=>{h.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",u),n("destroy",f)}var lP={on(e,t,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;const a=n?"unshift":"push";return e.split(" ").forEach(l=>{s.eventsListeners[l]||(s.eventsListeners[l]=[]),s.eventsListeners[l][a](t)}),s},once(e,t,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;function a(...l){s.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(s,l)}return a.__emitterProxy=t,s.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const s=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[s](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(s=>{typeof t>"u"?n.eventsListeners[s]=[]:n.eventsListeners[s]&&n.eventsListeners[s].forEach((a,l)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[s].splice(l,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,s,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],s=e.slice(1,e.length),a=t):(n=e[0].events,s=e[0].data,a=e[0].context||t),s.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(d=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(a,[d,...s])}),t.eventsListeners&&t.eventsListeners[d]&&t.eventsListeners[d].forEach(u=>{u.apply(a,s)})}),t}};function cP(){const e=this;let t,n;const s=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=s.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=s.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Dr(s,"padding-left")||0,10)-parseInt(Dr(s,"padding-right")||0,10),n=n-parseInt(Dr(s,"padding-top")||0,10)-parseInt(Dr(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function dP(){const e=this;function t(I,V){return parseFloat(I.getPropertyValue(e.getDirectionLabel(V))||0)}const n=e.params,{wrapperEl:s,slidesEl:a,rtlTranslate:l,wrongRTL:d}=e,u=e.virtual&&n.virtual.enabled,f=u?e.virtual.slides.length:e.slides.length,h=hi(a,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:h.length;let g=[];const y=[],x=[];let b=n.slidesOffsetBefore;typeof b=="function"&&(b=n.slidesOffsetBefore.call(e));let w=n.slidesOffsetAfter;typeof w=="function"&&(w=n.slidesOffsetAfter.call(e));const S=e.snapGrid.length,N=e.slidesGrid.length,C=e.size-b-w;let E=n.spaceBetween,M=-b,L=0,R=0;if(typeof C>"u")return;typeof E=="string"&&E.indexOf("%")>=0?E=parseFloat(E.replace("%",""))/100*C:typeof E=="string"&&(E=parseFloat(E)),e.virtualSize=-E-b-w,h.forEach(I=>{l?I.style.marginLeft="":I.style.marginRight="",I.style.marginBottom="",I.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(lf(s,"--swiper-centered-offset-before",""),lf(s,"--swiper-centered-offset-after",""));const O=n.grid&&n.grid.rows>1&&e.grid;O?e.grid.initSlides(h):e.grid&&e.grid.unsetSlides();let k;const B=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(I=>typeof n.breakpoints[I].slidesPerView<"u").length>0;for(let I=0;I<p;I+=1){k=0;const V=h[I];if(!(V&&(O&&e.grid.updateSlide(I,V,h),Dr(V,"display")==="none"))){if(u&&n.slidesPerView==="auto")n.virtual.slidesPerViewAutoSlideSize&&(k=n.virtual.slidesPerViewAutoSlideSize),k&&V&&(n.roundLengths&&(k=Math.floor(k)),V.style[e.getDirectionLabel("width")]=`${k}px`);else if(n.slidesPerView==="auto"){B&&(V.style[e.getDirectionLabel("width")]="");const z=getComputedStyle(V),K=V.style.transform,W=V.style.webkitTransform;if(K&&(V.style.transform="none"),W&&(V.style.webkitTransform="none"),n.roundLengths)k=e.isHorizontal()?gv(V,"width"):gv(V,"height");else{const Q=t(z,"width"),D=t(z,"padding-left"),H=t(z,"padding-right"),U=t(z,"margin-left"),Z=t(z,"margin-right"),F=z.getPropertyValue("box-sizing");if(F&&F==="border-box")k=Q+U+Z;else{const{clientWidth:T,offsetWidth:A}=V;k=Q+D+H+U+Z+(A-T)}}K&&(V.style.transform=K),W&&(V.style.webkitTransform=W),n.roundLengths&&(k=Math.floor(k))}else k=(C-(n.slidesPerView-1)*E)/n.slidesPerView,n.roundLengths&&(k=Math.floor(k)),V&&(V.style[e.getDirectionLabel("width")]=`${k}px`);V&&(V.swiperSlideSize=k),x.push(k),n.centeredSlides?(M=M+k/2+L/2+E,L===0&&I!==0&&(M=M-C/2-E),I===0&&(M=M-C/2-E),Math.abs(M)<1/1e3&&(M=0),n.roundLengths&&(M=Math.floor(M)),R%n.slidesPerGroup===0&&g.push(M),y.push(M)):(n.roundLengths&&(M=Math.floor(M)),(R-Math.min(e.params.slidesPerGroupSkip,R))%e.params.slidesPerGroup===0&&g.push(M),y.push(M),M=M+k+E),e.virtualSize+=k+E,L=k,R+=1}}if(e.virtualSize=Math.max(e.virtualSize,C)+w,l&&d&&(n.effect==="slide"||n.effect==="coverflow")&&(s.style.width=`${e.virtualSize+E}px`),n.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+E}px`),O&&e.grid.updateWrapperSize(k,g),!n.centeredSlides){const I=[];for(let V=0;V<g.length;V+=1){let z=g[V];n.roundLengths&&(z=Math.floor(z)),g[V]<=e.virtualSize-C&&I.push(z)}g=I,Math.floor(e.virtualSize-C)-Math.floor(g[g.length-1])>1&&g.push(e.virtualSize-C)}if(u&&n.loop){const I=x[0]+E;if(n.slidesPerGroup>1){const V=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),z=I*n.slidesPerGroup;for(let K=0;K<V;K+=1)g.push(g[g.length-1]+z)}for(let V=0;V<e.virtual.slidesBefore+e.virtual.slidesAfter;V+=1)n.slidesPerGroup===1&&g.push(g[g.length-1]+I),y.push(y[y.length-1]+I),e.virtualSize+=I}if(g.length===0&&(g=[0]),E!==0){const I=e.isHorizontal()&&l?"marginLeft":e.getDirectionLabel("marginRight");h.filter((V,z)=>!n.cssMode||n.loop?!0:z!==h.length-1).forEach(V=>{V.style[I]=`${E}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let I=0;x.forEach(z=>{I+=z+(E||0)}),I-=E;const V=I>C?I-C:0;g=g.map(z=>z<=0?-b:z>V?V+w:z)}if(n.centerInsufficientSlides){let I=0;x.forEach(z=>{I+=z+(E||0)}),I-=E;const V=(b||0)+(w||0);if(I+V<C){const z=(C-I-V)/2;g.forEach((K,W)=>{g[W]=K-z}),y.forEach((K,W)=>{y[W]=K+z})}}if(Object.assign(e,{slides:h,snapGrid:g,slidesGrid:y,slidesSizesGrid:x}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){lf(s,"--swiper-centered-offset-before",`${-g[0]}px`),lf(s,"--swiper-centered-offset-after",`${e.size/2-x[x.length-1]/2}px`);const I=-e.snapGrid[0],V=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(z=>z+I),e.slidesGrid=e.slidesGrid.map(z=>z+V)}if(p!==f&&e.emit("slidesLengthChange"),g.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),y.length!==N&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!u&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const I=`${n.containerModifierClass}backface-hidden`,V=e.el.classList.contains(I);p<=n.maxBackfaceHiddenSlides?V||e.el.classList.add(I):V&&e.el.classList.remove(I)}}function uP(e){const t=this,n=[],s=t.virtual&&t.params.virtual.enabled;let a=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const d=u=>s?t.slides[t.getSlideIndexByData(u)]:t.slides[u];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(u=>{n.push(u)});else for(l=0;l<Math.ceil(t.params.slidesPerView);l+=1){const u=t.activeIndex+l;if(u>t.slides.length&&!s)break;n.push(d(u))}else n.push(d(t.activeIndex));for(l=0;l<n.length;l+=1)if(typeof n[l]<"u"){const u=n[l].offsetHeight;a=u>a?u:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function fP(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-n-e.cssOverflowAdjustment()}const Dj=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function mP(e=this&&this.translate||0){const t=this,n=t.params,{slides:s,rtlTranslate:a,snapGrid:l}=t;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let d=-e;a&&(d=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let u=n.spaceBetween;typeof u=="string"&&u.indexOf("%")>=0?u=parseFloat(u.replace("%",""))/100*t.size:typeof u=="string"&&(u=parseFloat(u));for(let f=0;f<s.length;f+=1){const h=s[f];let p=h.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(p-=s[0].swiperSlideOffset);const g=(d+(n.centeredSlides?t.minTranslate():0)-p)/(h.swiperSlideSize+u),y=(d-l[0]+(n.centeredSlides?t.minTranslate():0)-p)/(h.swiperSlideSize+u),x=-(d-p),b=x+t.slidesSizesGrid[f],w=x>=0&&x<=t.size-t.slidesSizesGrid[f],S=x>=0&&x<t.size-1||b>1&&b<=t.size||x<=0&&b>=t.size;S&&(t.visibleSlides.push(h),t.visibleSlidesIndexes.push(f)),Dj(h,S,n.slideVisibleClass),Dj(h,w,n.slideFullyVisibleClass),h.progress=a?-g:g,h.originalProgress=a?-y:y}}function hP(e){const t=this;if(typeof e>"u"){const p=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*p||0}const n=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:l,isEnd:d,progressLoop:u}=t;const f=l,h=d;if(s===0)a=0,l=!0,d=!0;else{a=(e-t.minTranslate())/s;const p=Math.abs(e-t.minTranslate())<1,g=Math.abs(e-t.maxTranslate())<1;l=p||a<=0,d=g||a>=1,p&&(a=0),g&&(a=1)}if(n.loop){const p=t.getSlideIndexByData(0),g=t.getSlideIndexByData(t.slides.length-1),y=t.slidesGrid[p],x=t.slidesGrid[g],b=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=y?u=(w-y)/b:u=(w+b-x)/b,u>1&&(u-=1)}Object.assign(t,{progress:a,progressLoop:u,isBeginning:l,isEnd:d}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),l&&!f&&t.emit("reachBeginning toEdge"),d&&!h&&t.emit("reachEnd toEdge"),(f&&!l||h&&!d)&&t.emit("fromEdge"),t.emit("progress",a)}const n0=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function pP(){const e=this,{slides:t,params:n,slidesEl:s,activeIndex:a}=e,l=e.virtual&&n.virtual.enabled,d=e.grid&&n.grid&&n.grid.rows>1,u=g=>hi(s,`.${n.slideClass}${g}, swiper-slide${g}`)[0];let f,h,p;if(l)if(n.loop){let g=a-e.virtual.slidesBefore;g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),f=u(`[data-swiper-slide-index="${g}"]`)}else f=u(`[data-swiper-slide-index="${a}"]`);else d?(f=t.find(g=>g.column===a),p=t.find(g=>g.column===a+1),h=t.find(g=>g.column===a-1)):f=t[a];f&&(d||(p=tP(f,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!p&&(p=t[0]),h=eP(f,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!h===0&&(h=t[t.length-1]))),t.forEach(g=>{n0(g,g===f,n.slideActiveClass),n0(g,g===p,n.slideNextClass),n0(g,g===h,n.slidePrevClass)}),e.emitSlidesClasses()}const zf=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,s=t.closest(n());if(s){let a=s.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(s.shadowRoot?a=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(a=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&a.remove())})),a&&a.remove()}},s0=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},vv=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const s=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const d=a,u=[d-t];u.push(...Array.from({length:t}).map((f,h)=>d+s+h)),e.slides.forEach((f,h)=>{u.includes(f.column)&&s0(e,h)});return}const l=a+s-1;if(e.params.rewind||e.params.loop)for(let d=a-t;d<=l+t;d+=1){const u=(d%n+n)%n;(u<a||u>l)&&s0(e,u)}else for(let d=Math.max(a-t,0);d<=Math.min(l+t,n-1);d+=1)d!==a&&(d>l||d<a)&&s0(e,d)};function gP(e){const{slidesGrid:t,params:n}=e,s=e.rtlTranslate?e.translate:-e.translate;let a;for(let l=0;l<t.length;l+=1)typeof t[l+1]<"u"?s>=t[l]&&s<t[l+1]-(t[l+1]-t[l])/2?a=l:s>=t[l]&&s<t[l+1]&&(a=l+1):s>=t[l]&&(a=l);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function vP(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:a,activeIndex:l,realIndex:d,snapIndex:u}=t;let f=e,h;const p=x=>{let b=x-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof f>"u"&&(f=gP(t)),s.indexOf(n)>=0)h=s.indexOf(n);else{const x=Math.min(a.slidesPerGroupSkip,f);h=x+Math.floor((f-x)/a.slidesPerGroup)}if(h>=s.length&&(h=s.length-1),f===l&&!t.params.loop){h!==u&&(t.snapIndex=h,t.emit("snapIndexChange"));return}if(f===l&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=p(f);return}const g=t.grid&&a.grid&&a.grid.rows>1;let y;if(t.virtual&&a.virtual.enabled&&a.loop)y=p(f);else if(g){const x=t.slides.find(w=>w.column===f);let b=parseInt(x.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(t.slides.indexOf(x),0)),y=Math.floor(b/a.grid.rows)}else if(t.slides[f]){const x=t.slides[f].getAttribute("data-swiper-slide-index");x?y=parseInt(x,10):y=f}else y=f;Object.assign(t,{previousSnapIndex:u,snapIndex:h,previousRealIndex:d,realIndex:y,previousIndex:l,activeIndex:f}),t.initialized&&vv(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(d!==y&&t.emit("realIndexChange"),t.emit("slideChange"))}function yP(e,t){const n=this,s=n.params;let a=e.closest(`.${s.slideClass}, swiper-slide`);!a&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(u=>{!a&&u.matches&&u.matches(`.${s.slideClass}, swiper-slide`)&&(a=u)});let l=!1,d;if(a){for(let u=0;u<n.slides.length;u+=1)if(n.slides[u]===a){l=!0,d=u;break}}if(a&&l)n.clickedSlide=a,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=d;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}s.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var bP={updateSize:cP,updateSlides:dP,updateAutoHeight:uP,updateSlidesOffset:fP,updateSlidesProgress:mP,updateProgress:hP,updateSlidesClasses:pP,updateActiveIndex:vP,updateClickedSlide:yP};function xP(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:s,translate:a,wrapperEl:l}=t;if(n.virtualTranslate)return s?-a:a;if(n.cssMode)return a;let d=XR(l,e);return d+=t.cssOverflowAdjustment(),s&&(d=-d),d||0}function _P(e,t){const n=this,{rtlTranslate:s,params:a,wrapperEl:l,progress:d}=n;let u=0,f=0;const h=0;n.isHorizontal()?u=s?-e:e:f=e,a.roundLengths&&(u=Math.floor(u),f=Math.floor(f)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?u:f,a.cssMode?l[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-u:-f:a.virtualTranslate||(n.isHorizontal()?u-=n.cssOverflowAdjustment():f-=n.cssOverflowAdjustment(),l.style.transform=`translate3d(${u}px, ${f}px, ${h}px)`);let p;const g=n.maxTranslate()-n.minTranslate();g===0?p=0:p=(e-n.minTranslate())/g,p!==d&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function jP(){return-this.snapGrid[0]}function wP(){return-this.snapGrid[this.snapGrid.length-1]}function SP(e=0,t=this.params.speed,n=!0,s=!0,a){const l=this,{params:d,wrapperEl:u}=l;if(l.animating&&d.preventInteractionOnTransition)return!1;const f=l.minTranslate(),h=l.maxTranslate();let p;if(s&&e>f?p=f:s&&e<h?p=h:p=e,l.updateProgress(p),d.cssMode){const g=l.isHorizontal();if(t===0)u[g?"scrollLeft":"scrollTop"]=-p;else{if(!l.support.smoothScroll)return DC({swiper:l,targetPosition:-p,side:g?"left":"top"}),!0;u.scrollTo({[g?"left":"top"]:-p,behavior:"smooth"})}return!0}return t===0?(l.setTransition(0),l.setTranslate(p),n&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionEnd"))):(l.setTransition(t),l.setTranslate(p),n&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(y){!l||l.destroyed||y.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,n&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var NP={getTranslate:xP,setTranslate:_P,minTranslate:jP,maxTranslate:wP,translateTo:SP};function CP(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function zC({swiper:e,runCallbacks:t,direction:n,step:s}){const{activeIndex:a,previousIndex:l}=e;let d=n;d||(a>l?d="next":a<l?d="prev":d="reset"),e.emit(`transition${s}`),t&&d==="reset"?e.emit(`slideResetTransition${s}`):t&&a!==l&&(e.emit(`slideChangeTransition${s}`),d==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`))}function $P(e=!0,t){const n=this,{params:s}=n;s.cssMode||(s.autoHeight&&n.updateAutoHeight(),zC({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function EP(e=!0,t){const n=this,{params:s}=n;n.animating=!1,!s.cssMode&&(n.setTransition(0),zC({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var TP={setTransition:CP,transitionStart:$P,transitionEnd:EP};function AP(e=0,t,n=!0,s,a){typeof e=="string"&&(e=parseInt(e,10));const l=this;let d=e;d<0&&(d=0);const{params:u,snapGrid:f,slidesGrid:h,previousIndex:p,activeIndex:g,rtlTranslate:y,wrapperEl:x,enabled:b}=l;if(!b&&!s&&!a||l.destroyed||l.animating&&u.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=l.params.speed);const w=Math.min(l.params.slidesPerGroupSkip,d);let S=w+Math.floor((d-w)/l.params.slidesPerGroup);S>=f.length&&(S=f.length-1);const N=-f[S];if(u.normalizeSlideIndex)for(let O=0;O<h.length;O+=1){const k=-Math.floor(N*100),B=Math.floor(h[O]*100),I=Math.floor(h[O+1]*100);typeof h[O+1]<"u"?k>=B&&k<I-(I-B)/2?d=O:k>=B&&k<I&&(d=O+1):k>=B&&(d=O)}if(l.initialized&&d!==g&&(!l.allowSlideNext&&(y?N>l.translate&&N>l.minTranslate():N<l.translate&&N<l.minTranslate())||!l.allowSlidePrev&&N>l.translate&&N>l.maxTranslate()&&(g||0)!==d))return!1;d!==(p||0)&&n&&l.emit("beforeSlideChangeStart"),l.updateProgress(N);let C;d>g?C="next":d<g?C="prev":C="reset";const E=l.virtual&&l.params.virtual.enabled;if(!(E&&a)&&(y&&-N===l.translate||!y&&N===l.translate))return l.updateActiveIndex(d),u.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),u.effect!=="slide"&&l.setTranslate(N),C!=="reset"&&(l.transitionStart(n,C),l.transitionEnd(n,C)),!1;if(u.cssMode){const O=l.isHorizontal(),k=y?N:-N;if(t===0)E&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),E&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{x[O?"scrollLeft":"scrollTop"]=k})):x[O?"scrollLeft":"scrollTop"]=k,E&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1});else{if(!l.support.smoothScroll)return DC({swiper:l,targetPosition:k,side:O?"left":"top"}),!0;x.scrollTo({[O?"left":"top"]:k,behavior:"smooth"})}return!0}const R=BC().isSafari;return E&&!a&&R&&l.isElement&&l.virtual.update(!1,!1,d),l.setTransition(t),l.setTranslate(N),l.updateActiveIndex(d),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,s),l.transitionStart(n,C),t===0?l.transitionEnd(n,C):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(k){!l||l.destroyed||k.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(n,C))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function kP(e=0,t,n=!0,s){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const l=a.grid&&a.params.grid&&a.params.grid.rows>1;let d=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)d=d+a.virtual.slidesBefore;else{let u;if(l){const w=d*a.params.grid.rows;u=a.slides.find(S=>S.getAttribute("data-swiper-slide-index")*1===w).column}else u=a.getSlideIndexByData(d);const f=l?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:h,slidesOffsetBefore:p,slidesOffsetAfter:g}=a.params,y=h||!!p||!!g;let x=a.params.slidesPerView;x==="auto"?x=a.slidesPerViewDynamic():(x=Math.ceil(parseFloat(a.params.slidesPerView,10)),y&&x%2===0&&(x=x+1));let b=f-u<x;if(y&&(b=b||u<Math.ceil(x/2)),s&&y&&a.params.slidesPerView!=="auto"&&!l&&(b=!1),b){const w=y?u<a.activeIndex?"prev":"next":u-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:w,slideTo:!0,activeSlideIndex:w==="next"?u+1:u-f+1,slideRealIndex:w==="next"?a.realIndex:void 0})}if(l){const w=d*a.params.grid.rows;d=a.slides.find(S=>S.getAttribute("data-swiper-slide-index")*1===w).column}else d=a.getSlideIndexByData(d)}return requestAnimationFrame(()=>{a.slideTo(d,t,n,s)}),a}function MP(e,t=!0,n){const s=this,{enabled:a,params:l,animating:d}=s;if(!a||s.destroyed)return s;typeof e>"u"&&(e=s.params.speed);let u=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(u=Math.max(s.slidesPerViewDynamic("current",!0),1));const f=s.activeIndex<l.slidesPerGroupSkip?1:u,h=s.virtual&&l.virtual.enabled;if(l.loop){if(d&&!h&&l.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+f,e,t,n)}),!0}return l.rewind&&s.isEnd?s.slideTo(0,e,t,n):s.slideTo(s.activeIndex+f,e,t,n)}function OP(e,t=!0,n){const s=this,{params:a,snapGrid:l,slidesGrid:d,rtlTranslate:u,enabled:f,animating:h}=s;if(!f||s.destroyed)return s;typeof e>"u"&&(e=s.params.speed);const p=s.virtual&&a.virtual.enabled;if(a.loop){if(h&&!p&&a.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const g=u?s.translate:-s.translate;function y(C){return C<0?-Math.floor(Math.abs(C)):Math.floor(C)}const x=y(g),b=l.map(C=>y(C)),w=a.freeMode&&a.freeMode.enabled;let S=l[b.indexOf(x)-1];if(typeof S>"u"&&(a.cssMode||w)){let C;l.forEach((E,M)=>{x>=E&&(C=M)}),typeof C<"u"&&(S=w?l[C]:l[C>0?C-1:C])}let N=0;if(typeof S<"u"&&(N=d.indexOf(S),N<0&&(N=s.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(N=N-s.slidesPerViewDynamic("previous",!0)+1,N=Math.max(N,0))),a.rewind&&s.isBeginning){const C=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(C,e,t,n)}else if(a.loop&&s.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{s.slideTo(N,e,t,n)}),!0;return s.slideTo(N,e,t,n)}function RP(e,t=!0,n){const s=this;if(!s.destroyed)return typeof e>"u"&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,n)}function PP(e,t=!0,n,s=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let l=a.activeIndex;const d=Math.min(a.params.slidesPerGroupSkip,l),u=d+Math.floor((l-d)/a.params.slidesPerGroup),f=a.rtlTranslate?a.translate:-a.translate;if(f>=a.snapGrid[u]){const h=a.snapGrid[u],p=a.snapGrid[u+1];f-h>(p-h)*s&&(l+=a.params.slidesPerGroup)}else{const h=a.snapGrid[u-1],p=a.snapGrid[u];f-h<=(p-h)*s&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,e,t,n)}function DP(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,s=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),l;const d=e.isElement?"swiper-slide":`.${t.slideClass}`,u=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(l):a>(u?(e.slides.length-s)/2-(e.params.grid.rows-1):e.slides.length-s)?(e.loopFix(),a=e.getSlideIndex(hi(n,`${d}[data-swiper-slide-index="${l}"]`)[0]),PC(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var LP={slideTo:AP,slideToLoop:kP,slideNext:MP,slidePrev:OP,slideReset:RP,slideToClosest:PP,slideToClickedSlide:DP};function FP(e,t){const n=this,{params:s,slidesEl:a}=n;if(!s.loop||n.virtual&&n.params.virtual.enabled)return;const l=()=>{hi(a,`.${s.slideClass}, swiper-slide`).forEach((b,w)=>{b.setAttribute("data-swiper-slide-index",w)})},d=()=>{const x=hi(a,`.${s.slideBlankClass}`);x.forEach(b=>{b.remove()}),x.length>0&&(n.recalcSlides(),n.updateSlides())},u=n.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||u)&&d();const f=s.slidesPerGroup*(u?s.grid.rows:1),h=n.slides.length%f!==0,p=u&&n.slides.length%s.grid.rows!==0,g=x=>{for(let b=0;b<x;b+=1){const w=n.isElement?Kc("swiper-slide",[s.slideBlankClass]):Kc("div",[s.slideClass,s.slideBlankClass]);n.slidesEl.append(w)}};if(h){if(s.loopAddBlankSlides){const x=f-n.slides.length%f;g(x),n.recalcSlides(),n.updateSlides()}else mm("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");l()}else if(p){if(s.loopAddBlankSlides){const x=s.grid.rows-n.slides.length%s.grid.rows;g(x),n.recalcSlides(),n.updateSlides()}else mm("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");l()}else l();const y=s.centeredSlides||!!s.slidesOffsetBefore||!!s.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:y?void 0:"next",initial:t})}function IP({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:s,activeSlideIndex:a,initial:l,byController:d,byMousewheel:u}={}){const f=this;if(!f.params.loop)return;f.emit("beforeLoopFix");const{slides:h,allowSlidePrev:p,allowSlideNext:g,slidesEl:y,params:x}=f,{centeredSlides:b,slidesOffsetBefore:w,slidesOffsetAfter:S,initialSlide:N}=x,C=b||!!w||!!S;if(f.allowSlidePrev=!0,f.allowSlideNext=!0,f.virtual&&x.virtual.enabled){t&&(!C&&f.snapIndex===0?f.slideTo(f.virtual.slides.length,0,!1,!0):C&&f.snapIndex<x.slidesPerView?f.slideTo(f.virtual.slides.length+f.snapIndex,0,!1,!0):f.snapIndex===f.snapGrid.length-1&&f.slideTo(f.virtual.slidesBefore,0,!1,!0)),f.allowSlidePrev=p,f.allowSlideNext=g,f.emit("loopFix");return}let E=x.slidesPerView;E==="auto"?E=f.slidesPerViewDynamic():(E=Math.ceil(parseFloat(x.slidesPerView,10)),C&&E%2===0&&(E=E+1));const M=x.slidesPerGroupAuto?E:x.slidesPerGroup;let L=C?Math.max(M,Math.ceil(E/2)):M;L%M!==0&&(L+=M-L%M),L+=x.loopAdditionalSlides,f.loopedSlides=L;const R=f.grid&&x.grid&&x.grid.rows>1;h.length<E+L||f.params.effect==="cards"&&h.length<E+L*2?mm("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):R&&x.grid.fill==="row"&&mm("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const O=[],k=[],B=R?Math.ceil(h.length/x.grid.rows):h.length,I=l&&B-N<E&&!C;let V=I?N:f.activeIndex;typeof a>"u"?a=f.getSlideIndex(h.find(U=>U.classList.contains(x.slideActiveClass))):V=a;const z=n==="next"||!n,K=n==="prev"||!n;let W=0,Q=0;const H=(R?h[a].column:a)+(C&&typeof s>"u"?-E/2+.5:0);if(H<L){W=Math.max(L-H,M);for(let U=0;U<L-H;U+=1){const Z=U-Math.floor(U/B)*B;if(R){const F=B-Z-1;for(let T=h.length-1;T>=0;T-=1)h[T].column===F&&O.push(T)}else O.push(B-Z-1)}}else if(H+E>B-L){Q=Math.max(H-(B-L*2),M),I&&(Q=Math.max(Q,E-B+N+1));for(let U=0;U<Q;U+=1){const Z=U-Math.floor(U/B)*B;R?h.forEach((F,T)=>{F.column===Z&&k.push(T)}):k.push(Z)}}if(f.__preventObserver__=!0,requestAnimationFrame(()=>{f.__preventObserver__=!1}),f.params.effect==="cards"&&h.length<E+L*2&&(k.includes(a)&&k.splice(k.indexOf(a),1),O.includes(a)&&O.splice(O.indexOf(a),1)),K&&O.forEach(U=>{h[U].swiperLoopMoveDOM=!0,y.prepend(h[U]),h[U].swiperLoopMoveDOM=!1}),z&&k.forEach(U=>{h[U].swiperLoopMoveDOM=!0,y.append(h[U]),h[U].swiperLoopMoveDOM=!1}),f.recalcSlides(),x.slidesPerView==="auto"?f.updateSlides():R&&(O.length>0&&K||k.length>0&&z)&&f.slides.forEach((U,Z)=>{f.grid.updateSlide(Z,U,f.slides)}),x.watchSlidesProgress&&f.updateSlidesOffset(),t){if(O.length>0&&K){if(typeof e>"u"){const U=f.slidesGrid[V],F=f.slidesGrid[V+W]-U;u?f.setTranslate(f.translate-F):(f.slideTo(V+Math.ceil(W),0,!1,!0),s&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-F,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-F))}else if(s){const U=R?O.length/x.grid.rows:O.length;f.slideTo(f.activeIndex+U,0,!1,!0),f.touchEventsData.currentTranslate=f.translate}}else if(k.length>0&&z)if(typeof e>"u"){const U=f.slidesGrid[V],F=f.slidesGrid[V-Q]-U;u?f.setTranslate(f.translate-F):(f.slideTo(V-Q,0,!1,!0),s&&(f.touchEventsData.startTranslate=f.touchEventsData.startTranslate-F,f.touchEventsData.currentTranslate=f.touchEventsData.currentTranslate-F))}else{const U=R?k.length/x.grid.rows:k.length;f.slideTo(f.activeIndex-U,0,!1,!0)}}if(f.allowSlidePrev=p,f.allowSlideNext=g,f.controller&&f.controller.control&&!d){const U={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:a,byController:!0};Array.isArray(f.controller.control)?f.controller.control.forEach(Z=>{!Z.destroyed&&Z.params.loop&&Z.loopFix({...U,slideTo:Z.params.slidesPerView===x.slidesPerView?t:!1})}):f.controller.control instanceof f.constructor&&f.controller.control.params.loop&&f.controller.control.loopFix({...U,slideTo:f.controller.control.params.slidesPerView===x.slidesPerView?t:!1})}f.emit("loopFix")}function BP(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];
vendor: 13,254 bytes, line 146
146e.slides.forEach(a=>{const l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;s[l]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),s.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var zP={loopCreate:FP,loopFix:IP,loopDestroy:BP};function VP(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function UP(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var HP={setGrabCursor:VP,unsetGrabCursor:UP};function qP(e,t=this){function n(s){if(!s||s===vi()||s===Hn())return null;s.assignedSlot&&(s=s.assignedSlot);const a=s.closest(e);return!a&&!s.getRootNode?null:a||n(s.getRootNode().host)}return n(t)}function Lj(e,t,n){const s=Hn(),{params:a}=e,l=a.edgeSwipeDetection,d=a.edgeSwipeThreshold;return l&&(n<=d||n>=s.innerWidth-d)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function GP(e){const t=this,n=vi();let s=e;s.originalEvent&&(s=s.originalEvent);const a=t.touchEventsData;if(s.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==s.pointerId)return;a.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(a.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){Lj(t,s,s.targetTouches[0].pageX);return}const{params:l,touches:d,enabled:u}=t;if(!u||!l.simulateTouch&&s.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let f=s.target;if(l.touchEventsTarget==="wrapper"&&!JR(f,t.wrapperEl)||"which"in s&&s.which===3||"button"in s&&s.button>0||a.isTouched&&a.isMoved)return;const h=!!l.noSwipingClass&&l.noSwipingClass!=="",p=s.composedPath?s.composedPath():s.path;h&&s.target&&s.target.shadowRoot&&p&&(f=p[0]);const g=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,y=!!(s.target&&s.target.shadowRoot);if(l.noSwiping&&(y?qP(g,f):f.closest(g))){t.allowClick=!0;return}if(l.swipeHandler&&!f.closest(l.swipeHandler))return;d.currentX=s.pageX,d.currentY=s.pageY;const x=d.currentX,b=d.currentY;if(!Lj(t,s,x))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=x,d.startY=b,a.touchStartTime=fm(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let w=!0;f.matches(a.focusableElements)&&(w=!1,f.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==f&&(s.pointerType==="mouse"||s.pointerType!=="mouse"&&!f.matches(a.focusableElements))&&n.activeElement.blur();const S=w&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||S)&&!f.isContentEditable&&s.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function WP(e){const t=vi(),n=this,s=n.touchEventsData,{params:a,touches:l,rtlTranslate:d,enabled:u}=n;if(!u||!a.simulateTouch&&e.pointerType==="mouse")return;let f=e;if(f.originalEvent&&(f=f.originalEvent),f.type==="pointermove"&&(s.touchId!==null||f.pointerId!==s.pointerId))return;let h;if(f.type==="touchmove"){if(h=[...f.changedTouches].find(L=>L.identifier===s.touchId),!h||h.identifier!==s.touchId)return}else h=f;if(!s.isTouched){s.startMoving&&s.isScrolling&&n.emit("touchMoveOpposite",f);return}const p=h.pageX,g=h.pageY;if(f.preventedByNestedSwiper){l.startX=p,l.startY=g;return}if(!n.allowTouchMove){f.target.matches(s.focusableElements)||(n.allowClick=!1),s.isTouched&&(Object.assign(l,{startX:p,startY:g,currentX:p,currentY:g}),s.touchStartTime=fm());return}if(a.touchReleaseOnEdges&&!a.loop)if(n.isVertical()){if(g<l.startY&&n.translate<=n.maxTranslate()||g>l.startY&&n.translate>=n.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else{if(d&&(p>l.startX&&-n.translate<=n.maxTranslate()||p<l.startX&&-n.translate>=n.minTranslate()))return;if(!d&&(p<l.startX&&n.translate<=n.maxTranslate()||p>l.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==f.target&&f.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&f.target===t.activeElement&&f.target.matches(s.focusableElements)){s.isMoved=!0,n.allowClick=!1;return}s.allowTouchCallbacks&&n.emit("touchMove",f),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=p,l.currentY=g;const y=l.currentX-l.startX,x=l.currentY-l.startY;if(n.params.threshold&&Math.sqrt(y**2+x**2)<n.params.threshold)return;if(typeof s.isScrolling>"u"){let L;n.isHorizontal()&&l.currentY===l.startY||n.isVertical()&&l.currentX===l.startX?s.isScrolling=!1:y*y+x*x>=25&&(L=Math.atan2(Math.abs(x),Math.abs(y))*180/Math.PI,s.isScrolling=n.isHorizontal()?L>a.touchAngle:90-L>a.touchAngle)}if(s.isScrolling&&n.emit("touchMoveOpposite",f),typeof s.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(s.startMoving=!0),s.isScrolling||f.type==="touchmove"&&s.preventTouchMoveFromPointerMove){s.isTouched=!1;return}if(!s.startMoving)return;n.allowClick=!1,!a.cssMode&&f.cancelable&&f.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&f.stopPropagation();let b=n.isHorizontal()?y:x,w=n.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(b=Math.abs(b)*(d?1:-1),w=Math.abs(w)*(d?1:-1)),l.diff=b,b*=a.touchRatio,d&&(b=-b,w=-w);const S=n.touchesDirection;n.swipeDirection=b>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const N=n.params.loop&&!a.cssMode,C=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!s.isMoved){if(N&&C&&n.loopFix({direction:n.swipeDirection}),s.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const L=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(L)}s.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",f)}if(new Date().getTime(),a._loopSwapReset!==!1&&s.isMoved&&s.allowThresholdMove&&S!==n.touchesDirection&&N&&C&&Math.abs(b)>=1){Object.assign(l,{startX:p,startY:g,currentX:p,currentY:g,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}n.emit("sliderMove",f),s.isMoved=!0,s.currentTranslate=b+s.startTranslate;let E=!0,M=a.resistanceRatio;if(a.touchReleaseOnEdges&&(M=0),b>0?(N&&C&&s.allowThresholdMove&&s.currentTranslate>(a.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>n.minTranslate()&&(E=!1,a.resistance&&(s.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+s.startTranslate+b)**M))):b<0&&(N&&C&&s.allowThresholdMove&&s.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(a.slidesPerView!=="auto"&&n.slides.length-a.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),s.currentTranslate<n.maxTranslate()&&(E=!1,a.resistance&&(s.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-s.startTranslate-b)**M))),E&&(f.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(s.currentTranslate=s.startTranslate),a.threshold>0)if(Math.abs(b)>a.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,s.currentTranslate=s.startTranslate,l.diff=n.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{s.currentTranslate=s.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(s.currentTranslate),n.setTranslate(s.currentTranslate))}function YP(e){const t=this,n=t.touchEventsData;let s=e;s.originalEvent&&(s=s.originalEvent);let a;if(s.type==="touchend"||s.type==="touchcancel"){if(a=[...s.changedTouches].find(L=>L.identifier===n.touchId),!a||a.identifier!==n.touchId)return}else{if(n.touchId!==null||s.pointerId!==n.pointerId)return;a=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:d,touches:u,rtlTranslate:f,slidesGrid:h,enabled:p}=t;if(!p||!d.simulateTouch&&s.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&d.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}d.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const g=fm(),y=g-n.touchStartTime;if(t.allowClick){const L=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(L&&L[0]||s.target,L),t.emit("tap click",s),y<300&&g-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=fm(),PC(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||u.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let x;if(d.followFinger?x=f?t.translate:-t.translate:x=-n.currentTranslate,d.cssMode)return;if(d.freeMode&&d.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:x});return}const b=x>=-t.maxTranslate()&&!t.params.loop;let w=0,S=t.slidesSizesGrid[0];for(let L=0;L<h.length;L+=L<d.slidesPerGroupSkip?1:d.slidesPerGroup){const R=L<d.slidesPerGroupSkip-1?1:d.slidesPerGroup;typeof h[L+R]<"u"?(b||x>=h[L]&&x<h[L+R])&&(w=L,S=h[L+R]-h[L]):(b||x>=h[L])&&(w=L,S=h[h.length-1]-h[h.length-2])}let N=null,C=null;d.rewind&&(t.isBeginning?C=d.virtual&&d.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(N=0));const E=(x-h[w])/S,M=w<d.slidesPerGroupSkip-1?1:d.slidesPerGroup;if(y>d.longSwipesMs){if(!d.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(E>=d.longSwipesRatio?t.slideTo(d.rewind&&t.isEnd?N:w+M):t.slideTo(w)),t.swipeDirection==="prev"&&(E>1-d.longSwipesRatio?t.slideTo(w+M):C!==null&&E<0&&Math.abs(E)>d.longSwipesRatio?t.slideTo(C):t.slideTo(w))}else{if(!d.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(s.target===t.navigation.nextEl||s.target===t.navigation.prevEl)?s.target===t.navigation.nextEl?t.slideTo(w+M):t.slideTo(w):(t.swipeDirection==="next"&&t.slideTo(N!==null?N:w+M),t.swipeDirection==="prev"&&t.slideTo(C!==null?C:w))}}function Fj(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:a,snapGrid:l}=e,d=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const u=d&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!u?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!d?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=s,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}function KP(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function XP(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:s}=e;if(!s)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const l=e.maxTranslate()-e.minTranslate();l===0?a=0:a=(e.translate-e.minTranslate())/l,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function ZP(e){const t=this;zf(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update(
vendor: 5,562 bytes, line 146
146)}function QP(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const VC=(e,t)=>{const n=vi(),{params:s,el:a,wrapperEl:l,device:d}=e,u=!!s.nested,f=t==="on"?"addEventListener":"removeEventListener",h=t;!a||typeof a=="string"||(n[f]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:u}),a[f]("touchstart",e.onTouchStart,{passive:!1}),a[f]("pointerdown",e.onTouchStart,{passive:!1}),n[f]("touchmove",e.onTouchMove,{passive:!1,capture:u}),n[f]("pointermove",e.onTouchMove,{passive:!1,capture:u}),n[f]("touchend",e.onTouchEnd,{passive:!0}),n[f]("pointerup",e.onTouchEnd,{passive:!0}),n[f]("pointercancel",e.onTouchEnd,{passive:!0}),n[f]("touchcancel",e.onTouchEnd,{passive:!0}),n[f]("pointerout",e.onTouchEnd,{passive:!0}),n[f]("pointerleave",e.onTouchEnd,{passive:!0}),n[f]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&a[f]("click",e.onClick,!0),s.cssMode&&l[f]("scroll",e.onScroll),s.updateOnWindowResize?e[h](d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",Fj,!0):e[h]("observerUpdate",Fj,!0),a[f]("load",e.onLoad,{capture:!0}))};function JP(){const e=this,{params:t}=e;e.onTouchStart=GP.bind(e),e.onTouchMove=WP.bind(e),e.onTouchEnd=YP.bind(e),e.onDocumentTouchStart=QP.bind(e),t.cssMode&&(e.onScroll=XP.bind(e)),e.onClick=KP.bind(e),e.onLoad=ZP.bind(e),VC(e,"on")}function eD(){VC(this,"off")}var tD={attachEvents:JP,detachEvents:eD};const Ij=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function nD(){const e=this,{realIndex:t,initialized:n,params:s,el:a}=e,l=s.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const d=vi(),u=s.breakpointsBase==="window"||!s.breakpointsBase?s.breakpointsBase:"container",f=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?e.el:d.querySelector(s.breakpointsBase),h=e.getBreakpoint(l,u,f);if(!h||e.currentBreakpoint===h)return;const g=(h in l?l[h]:void 0)||e.originalParams,y=Ij(e,s),x=Ij(e,g),b=e.params.grabCursor,w=g.grabCursor,S=s.enabled;y&&!x?(a.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!y&&x&&(a.classList.add(`${s.containerModifierClass}grid`),(g.grid.fill&&g.grid.fill==="column"||!g.grid.fill&&s.grid.fill==="column")&&a.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),b&&!w?e.unsetGrabCursor():!b&&w&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(R=>{if(typeof g[R]>"u")return;const O=s[R]&&s[R].enabled,k=g[R]&&g[R].enabled;O&&!k&&e[R].disable(),!O&&k&&e[R].enable()});const N=g.direction&&g.direction!==s.direction,C=s.loop&&(g.slidesPerView!==s.slidesPerView||N),E=s.loop;N&&n&&e.changeDirection(),gs(e.params,g);const M=e.params.enabled,L=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),S&&!M?e.disable():!S&&M&&e.enable(),e.currentBreakpoint=h,e.emit("_beforeBreakpoint",g),n&&(C?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!E&&L?(e.loopCreate(t),e.updateSlides()):E&&!L&&e.loopDestroy()),e.emit("breakpoint",g)}function sD(e,t="window",n){if(!e||t==="container"&&!n)return;let s=!1;const a=Hn(),l=t==="window"?a.innerHeight:n.clientHeight,d=Object.keys(e).map(u=>{if(typeof u=="string"&&u.indexOf("@")===0){const f=parseFloat(u.substr(1));return{value:l*f,point:u}}return{value:u,point:u}});d.sort((u,f)=>parseInt(u.value,10)-parseInt(f.value,10));for(let u=0;u<d.length;u+=1){const{point:f,value:h}=d[u];t==="window"?a.matchMedia(`(min-width: ${h}px)`).matches&&(s=f):h<=n.clientWidth&&(s=f)}return s||"max"}var iD={setBreakpoint:nD,getBreakpoint:sD};function rD(e,t){const n=[];return e.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(a=>{s[a]&&n.push(t+a)}):typeof s=="string"&&n.push(t+s)}),n}function aD(){const e=this,{classNames:t,params:n,rtl:s,el:a,device:l}=e,d=rD(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:l.android},{ios:l.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...d),a.classList.add(...t),e.emitContainerClasses()}function oD(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var lD={addClasses:aD,removeClasses:oD};function cD(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:s}=n;if(s){const a=e.slides.length-1,l=e.slidesGrid[a]+e.slidesSizesGrid[a]+s*2;e.isLocked=e.size>l}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var dD={checkOverflow:cD},yv={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
vendor: 2,852 bytes, line 146
146spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function uD(e,t){return function(s={}){const a=Object.keys(s)[0],l=s[a];if(typeof l!="object"||l===null){gs(t,s);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in l)){gs(t,s);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),gs(t,s)}}const i0={eventsEmitter:lP,update:bP,translate:NP,transition:TP,slide:LP,loop:zP,grabCursor:HP,events:tD,breakpoints:iD,checkOverflow:dD,classes:lD},r0={};let Ky=class qi{constructor(...t){let n,s;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?s=t[0]:[n,s]=t,s||(s={}),s=gs({},s),n&&!s.el&&(s.el=n);const a=vi();if(s.el&&typeof s.el=="string"&&a.querySelectorAll(s.el).length>1){const f=[];return a.querySelectorAll(s.el).forEach(h=>{const p=gs({},s,{el:h});f.push(new qi(p))}),f}const l=this;l.__swiper__=!0,l.support=FC(),l.device=IC({userAgent:s.userAgent}),l.browser=BC(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],s.modules&&Array.isArray(s.modules)&&l.modules.push(...s.modules);const d={};l.modules.forEach(f=>{f({params:s,swiper:l,extendParams:uD(s,d),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const u=gs({},yv,d);return l.params=gs({},u,r0,s),l.originalParams=gs({},l.params),l.passedParams=gs({}
vendor: 10,318 bytes, line 146
146,s),l.params&&l.params.on&&Object.keys(l.params.on).forEach(f=>{l.on(f,l.params.on[f])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:s}=this,a=hi(n,`.${s.slideClass}, swiper-slide`),l=hm(a[0]);return hm(t)-l}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:n,params:s}=t;t.slides=hi(n,`.${s.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const s=this;t=Math.min(Math.max(t,0),1);const a=s.minTranslate(),d=(s.maxTranslate()-a)*t+a;s.translateTo(d,typeof n>"u"?0:n),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(s=>{const a=t.getSlideClasses(s);n.push({slideEl:s,classNames:a}),t.emit("_slideClass",s,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const s=this,{params:a,slides:l,slidesGrid:d,slidesSizesGrid:u,size:f,activeIndex:h}=s;let p=1;if(typeof a.slidesPerView=="number")return a.slidesPerView;if(a.centeredSlides){let g=l[h]?Math.ceil(l[h].swiperSlideSize):0,y;for(let x=h+1;x<l.length;x+=1)l[x]&&!y&&(g+=Math.ceil(l[x].swiperSlideSize),p+=1,g>f&&(y=!0));for(let x=h-1;x>=0;x-=1)l[x]&&!y&&(g+=l[x].swiperSlideSize,p+=1,g>f&&(y=!0))}else if(t==="current")for(let g=h+1;g<l.length;g+=1)(n?d[g]+u[g]-d[h]<f:d[g]-d[h]<f)&&(p+=1);else for(let g=h-1;g>=0;g-=1)d[h]-d[g]<f&&(p+=1);return p}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:s}=t;s.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(d=>{d.complete&&zf(t,d)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const d=t.rtlTranslate?t.translate*-1:t.translate,u=Math.min(Math.max(d,t.maxTranslate()),t.minTranslate());t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()}let l;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&t.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){const d=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(d.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||a()}s.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const s=this,a=s.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${t}`),s.emitContainerClasses(),s.params.direction=t,s.slides.forEach(l=>{t==="vertical"?l.style.width="":l.style.height=""}),s.emit("changeDirection"),n&&s.update()),s}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let s=t||n.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=n,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let d=s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(a()):hi(s,a())[0];return!d&&n.params.createElements&&(d=Kc("div",n.params.wrapperClass),s.append(d),hi(s,`.${n.params.slideClass}`).forEach(u=>{d.append(u)})),Object.assign(n,{el:s,wrapperEl:d,slidesEl:n.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:d,hostEl:n.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||Dr(s,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||Dr(s,"direction")==="rtl"),wrongRTL:Dr(d,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const a=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&a.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(l=>{l.complete?zf(n,l):l.addEventListener("load",d=>{zf(n,d.target)})}),vv(n),n.initialized=!0,vv(n),n.emit("init"),n.emit("afterInit"),n}destroy(t=!0,n=!0){const s=this,{params:a,el:l,wrapperEl:d,slides:u}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),n&&(s.removeClasses(),l&&typeof l!="string"&&l.removeAttribute("style"),d&&d.removeAttribute("style"),u&&u.length&&u.forEach(f=>{f.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),f.removeAttribute("style"),f.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(f=>{s.off(f)}),t!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),YR(s)),s.destroyed=!0),null}static extendDefaults(t){gs(r0,t)}static get extendedDefaults(){return r0}static get defaults(){return yv}static installModule(t){qi.prototype.__modules__||(qi.prototype.__modules__=[]);const n=qi.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>qi.installModule(n)),qi):(qi.installModule(t),qi)}};Object.keys(i0).forEach(e=>{Object.keys(i0[e]).forEach(t=>{Ky.prototype[t]=i0[e][t]})});Ky.use([aP,oP]);const UC=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Pa(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function Vo(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(s=>
vendor: 9,634 bytes, line 146
146n.indexOf(s)<0).forEach(s=>{typeof e[s]>"u"?e[s]=t[s]:Pa(t[s])&&Pa(e[s])&&Object.keys(t[s]).length>0?t[s].__swiper__?e[s]=t[s]:Vo(e[s],t[s]):e[s]=t[s]})}function HC(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function qC(e={}){return e.pagination&&typeof e.pagination.el>"u"}function GC(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function WC(e=""){const t=e.split(" ").map(s=>s.trim()).filter(s=>!!s),n=[];return t.forEach(s=>{n.indexOf(s)<0&&n.push(s)}),n.join(" ")}function fD(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function mD({swiper:e,slides:t,passedParams:n,changedParams:s,nextEl:a,prevEl:l,scrollbarEl:d,paginationEl:u}){const f=s.filter(k=>k!=="children"&&k!=="direction"&&k!=="wrapperClass"),{params:h,pagination:p,navigation:g,scrollbar:y,virtual:x,thumbs:b}=e;let w,S,N,C,E,M,L,R;s.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&h.thumbs&&(!h.thumbs.swiper||h.thumbs.swiper.destroyed)&&(w=!0),s.includes("controller")&&n.controller&&n.controller.control&&h.controller&&!h.controller.control&&(S=!0),s.includes("pagination")&&n.pagination&&(n.pagination.el||u)&&(h.pagination||h.pagination===!1)&&p&&!p.el&&(N=!0),s.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||d)&&(h.scrollbar||h.scrollbar===!1)&&y&&!y.el&&(C=!0),s.includes("navigation")&&n.navigation&&(n.navigation.prevEl||l)&&(n.navigation.nextEl||a)&&(h.navigation||h.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(E=!0);const O=k=>{e[k]&&(e[k].destroy(),k==="navigation"?(e.isElement&&(e[k].prevEl.remove(),e[k].nextEl.remove()),h[k].prevEl=void 0,h[k].nextEl=void 0,e[k].prevEl=void 0,e[k].nextEl=void 0):(e.isElement&&e[k].el.remove(),h[k].el=void 0,e[k].el=void 0))};s.includes("loop")&&e.isElement&&(h.loop&&!n.loop?M=!0:!h.loop&&n.loop?L=!0:R=!0),f.forEach(k=>{if(Pa(h[k])&&Pa(n[k]))Object.assign(h[k],n[k]),(k==="navigation"||k==="pagination"||k==="scrollbar")&&"enabled"in n[k]&&!n[k].enabled&&O(k);else{const B=n[k];(B===!0||B===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?B===!1&&O(k):h[k]=n[k]}}),f.includes("controller")&&!S&&e.controller&&e.controller.control&&h.controller&&h.controller.control&&(e.controller.control=h.controller.control),s.includes("children")&&t&&x&&h.virtual.enabled?(x.slides=t,x.update(!0)):s.includes("virtual")&&x&&h.virtual.enabled&&(t&&(x.slides=t),x.update(!0)),s.includes("children")&&t&&h.loop&&(R=!0),w&&b.init()&&b.update(!0),S&&(e.controller.control=h.controller.control),N&&(e.isElement&&(!u||typeof u=="string")&&(u=document.createElement("div"),u.classList.add("swiper-pagination"),u.part.add("pagination"),e.el.appendChild(u)),u&&(h.pagination.el=u),p.init(),p.render(),p.update()),C&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),e.el.appendChild(d)),d&&(h.scrollbar.el=d),y.init(),y.updateSize(),y.setTranslate()),E&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),Xc(a,e.hostEl.constructor.nextButtonSvg),a.part.add("button-next"),e.el.appendChild(a)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),Xc(l,e.hostEl.constructor.prevButtonSvg),l.part.add("button-prev"),e.el.appendChild(l))),a&&(h.navigation.nextEl=a),l&&(h.navigation.prevEl=l),g.init(),g.update()),s.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),s.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),s.includes("direction")&&e.changeDirection(n.direction,!1),(M||R)&&e.loopDestroy(),(L||R)&&e.loopCreate(),e.update()}function hD(e={},t=!0){const n={on:{}},s={},a={};Vo(n,yv),n._emitClasses=!0,n.init=!1;const l={},d=UC.map(f=>f.replace(/_/,"")),u=Object.assign({},e);return Object.keys(u).forEach(f=>{typeof e[f]>"u"||(d.indexOf(f)>=0?Pa(e[f])?(n[f]={},a[f]={},Vo(n[f],e[f]),Vo(a[f],e[f])):(n[f]=e[f],a[f]=e[f]):f.search(/on[A-Z]/)===0&&typeof e[f]=="function"?t?s[`${f[2].toLowerCase()}${f.substr(3)}`]=e[f]:n.on[`${f[2].toLowerCase()}${f.substr(3)}`]=e[f]:l[f]=e[f])}),["navigation","pagination","scrollbar"].forEach(f=>{n[f]===!0&&(n[f]={}),n[f]===!1&&delete n[f]}),{params:n,passedParams:a,rest:l,events:s}}function pD({el:e,nextEl:t,prevEl:n,paginationEl:s,scrollbarEl:a,swiper:l},d){HC(d)&&t&&n&&(l.params.navigation.nextEl=t,l.originalParams.navigation.nextEl=t,l.params.navigation.prevEl=n,l.originalParams.navigation.prevEl=n),qC(d)&&s&&(l.params.pagination.el=s,l.originalParams.pagination.el=s),GC(d)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(e)}function gD(e,t,n,s,a){const l=[];if(!t)return l;const d=f=>{l.indexOf(f)<0&&l.push(f)};if(n&&s){const f=s.map(a),h=n.map(a);f.join("")!==h.join("")&&d("children"),s.length!==n.length&&d("children")}return UC.filter(f=>f[0]==="_").map(f=>f.replace(/_/,"")).forEach(f=>{if(f in e&&f in t)if(Pa(e[f])&&Pa(t[f])){const h=Object.keys(e[f]),p=Object.keys(t[f]);h.length!==p.length?d(f):(h.forEach(g=>{e[f][g]!==t[f][g]&&d(f)}),p.forEach(g=>{e[f][g]!==t[f][g]&&d(f)}))}else e[f]!==t[f]&&d(f)}),l}const vD=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},pm.apply(this,arguments)}function YC(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function KC(e){const t=[];return ye.Children.toArray(e).forEach(n=>{YC(n)?t.push(n):n.props&&n.props.children&&KC(n.props.children).forEach(s=>t.push(s))}),t}function yD(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return ye.Children.toArray(e).forEach(s=>{if(YC(s))t.push(s);else if(s.props&&s.props.slot&&n[s.props.slot])n[s.props.slot].push(s);else if(s.props&&s.props.children){const a=KC(s.props.children);a.length>0?a.forEach(l=>t.push(l)):n["container-end"].push(s)}else n["container-end"].push(s)}),{slides:t,slots:n}}function bD(e,t,n){if(!n)return null;const s=p=>{let g=p;return p<0?g=t.length+p:g>=t.length&&(g=g-t.length),g},a=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:l,to:d}=n,u=e.params.loop?-t.length:0,f=e.params.loop?t.length*2:t.length,h=[];for(let p=u;p<f;p+=1)p>=l&&p<=d&&h.push(t[s(p)]);return h.map((p,g)=>ye.cloneElement(p,{swiper:e,style:a,key:p.props.virtualIndex||p.key||`slide-${g}`}))}function Oc(e,t){return typeof window>"u"?j.useEffect(e,t):j.useLayoutEffect(e,t)}const Bj=j.createContext(null),xD=j.createContext(null),Um=j.forwardRef(({className:e,tag:t="div",wrapperTag:n="div",children:s,onSwiper:a,...l}={},d)=>{let u=!1;const[f,h]=j.useState("swiper"),[p,g]=j.useState(null),[y,x]=j.useState(!1),b=j.useRef(!1),w=j.useRef(null),S=j.useRef(null),N=j.useRef(null),C=j.useRef(null),E=j.useRef(null),M=j.useRef(null),L=j.useRef(null),R=j.useRef(null),{params:O,passedParams:k,rest:B,events:I}=hD(l),{slides:V,slots:z}=yD(s),K=()=>{x(!y)};Object.assign(O.on,{_containerClasses(U,Z){h(Z)}});const W=()=>{Object.assign(O.on,I),u=!0;const U={...O};if(delete U.wrapperClass,S.current=new Ky(U),S.current.virtual&&S.current.params.virtual.enabled){S.current.virtual.slides=V;const Z={cache:!1,slides:V,renderExternal:g,renderExternalUpdate:!1};Vo(S.current.params.virtual,Z),Vo(S.current.originalParams.virtual,Z)}};w.current||W(),S.current&&S.current.on("_beforeBreakpoint",K);const Q=()=>{u||!I||!S.current||Object.keys(I).forEach(U=>{S.current.on(U,I[U])})},D=()=>{!I||!S.current||Object.keys(I).forEach(U=>{S.current.off(U,I[U])})};j.useEffect(()=>()=>{S.current&&S.current.off("_beforeBreakpoint",K)}),j.useEffect(()=>{!b.current&&S.current&&(S.current.emitSlidesClasses(),b.current=!0)}),Oc(()=>{if(d&&(d.current=w.current),!!w.current)return S.current.destroyed&&W(),pD({el:w.current,nextEl:E.current,prevEl:M.current,paginationEl:L.current,scrollbarEl:R.current,swiper:S.current},O),a&&!S.current.destroyed&&a(S.current),()=>{S.current&&!S.current.destroyed&&S.current.destroy(!0,!1)}},[]),Oc(()=>{Q();const U=gD(k,N.current,V,C.current,Z=>Z.key);return N.current=k,C.current=V,U.length&&S.current&&!S.current.destroyed&&mD({swiper:S.current,slides:V,passedParams:k,changedParams:U,nextEl:E.current,prevEl:M.current,scrollbarEl:R.current,paginationEl:L.current}),()=>{D()}}),Oc(()=>{vD(S.current)},[p]);function H(){return O.virtual?bD(S.current,V,p):V.map((U,Z)=>ye.cloneElement(U,{swiper:S.current,swiperSlideIndex:Z}))}return ye.createElement(t,pm({ref:w,className:WC(`${f}${e?` ${e}`:""}`)},B),ye.createElement(xD.Provider,{value:S.current},z["container-start"],ye.createElement(n,{className:fD(O.wrapperClass)},z["wrapper-start"],H(),z["wrapper-end"]),HC(O)&&ye.createElement(ye.Fragment,null,ye.createElement("div",{ref:M,className:"swiper-button-prev"}),ye.createElement("div",{ref:E,className:"swiper-button-next"})),GC(O)&&ye.createElement("div",{ref:R,className:"swiper-scrollbar"}),qC(O)&&ye.createElement("div",{ref:L,className:"swiper-pagination"}),z["container-end"]))});Um.displayName="Swiper";const Hm=j.forwardRef(({tag:e="div",children:t,className:n="",swiper:s,zoom:a,lazy:l,virtualIndex:d,swiperSlideIndex:u,...f}={},h)=>{const p=j.useRef(null),[g,y]=j.useState("swiper-slide"),[x,b]=j.useState(!1);function w(E,M,L){M===p.current&&y(L)}Oc(()=>
vendor: 4,197 bytes, line 146
146{if(typeof u<"u"&&(p.current.swiperSlideIndex=u),h&&(h.current=p.current),!(!p.current||!s)){if(s.destroyed){g!=="swiper-slide"&&y("swiper-slide");return}return s.on("_slideClass",w),()=>{s&&s.off("_slideClass",w)}}}),Oc(()=>{s&&p.current&&!s.destroyed&&y(s.getSlideClasses(p.current))},[s]);const S={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},N=()=>typeof t=="function"?t(S):t,C=()=>{b(!0)};return ye.createElement(e,pm({ref:p,className:WC(`${g}${n?` ${n}`:""}`),"data-swiper-slide-index":d,onLoad:C},f),a&&ye.createElement(Bj.Provider,{value:S},ye.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},N(),l&&!x&&ye.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&ye.createElement(Bj.Provider,{value:S},N(),l&&!x&&ye.createElement("div",{className:"swiper-lazy-preloader"})))});Hm.displayName="SwiperSlide";function XC(e,t,n,s){return e.params.createElements&&Object.keys(s).forEach(a=>{if(!n[a]&&n.auto===!0){let l=hi(e.el,`.${s[a]}`)[0];l||(l=Kc("div",s[a]),l.className=s[a],e.el.append(l)),n[a]=l,t[a]=l}}),n}const _D='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function jD({swiper:e,extendParams:t,on:n,emit:s}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function a(x){let b;return x&&typeof x=="string"&&e.isElement&&(b=e.el.querySelector(x)||e.hostEl.querySelector(x),b)?b:(x&&(typeof x=="string"&&(b=[...document.querySelectorAll(x)]),e.params.uniqueNavElements&&typeof x=="string"&&b&&b.length>1&&e.el.querySelectorAll(x).length===1?b=e.el.querySelector(x):b&&b.length===1&&(b=b[0])),x&&!b?x:b)}function l(x,b){const w=e.params.navigation;x=pn(x),x.forEach(S=>{S&&(S.classList[b?"add":"remove"](...w.disabledClass.split(" ")),S.tagName==="BUTTON"&&(S.disabled=b),e.params.watchOverflow&&e.enabled&&S.classList[e.isLocked?"add":"remove"](w.lockClass))})}function d(){const{nextEl:x,prevEl:b}=e.navigation;if(e.params.loop){l(b,!1),l(x,!1);return}l(b,e.isBeginning&&!e.params.rewind),l(x,e.isEnd&&!e.params.rewind)}function u(x){x.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function f(x){x.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function h(){const x=e.params.navigation;if(e.params.navigation=XC(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(x.nextEl||x.prevEl))return;let b=a(x.nextEl),w=a(x.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:w}),b=pn(b),w=pn(w);const S=(N,C)=>{if(N){if(x.addIcons&&N.matches(".swiper-button-next,.swiper-button-prev")&&!N.querySelector("svg")){const E=document.createElement("div");Xc(E,_D),N.appendChild(E.querySelector("svg")),E.remove()}N.addEventListener("click",C==="next"?f:u)}!e.enabled&&N&&N.classList.add(...x.lockClass.split(" "))};b.forEach(N=>S(N,"next")),w.forEach(N=>S(N,"prev"))}function p(){let{nextEl:x,prevEl:b}=e.navigation;x=pn(x),b=pn(b);const w=(S,N)=>{S.removeEventListener("click",N==="next"?f:u),S.classList.remove(...e.params.navigation.disabledClass.split(" "))};x.forEach(S=>w(S,"next")),b.forEach(S=>w(S,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?y():(h(),d())}),n("toEdge fromEdge lock unlock",()=>{d()}),n("destroy",()=>{p()}),n("enable disable",()=>{let{nextEl:x,prevEl:b}=e.navigation;if(x=pn(x),b=pn(b),e.enabled){d();return}[...x,...b].filter(w=>
vendor: 8,713 bytes, line 146
146!!w).forEach(w=>w.classList.add(e.params.navigation.lockClass))}),n("click",(x,b)=>{let{nextEl:w,prevEl:S}=e.navigation;w=pn(w),S=pn(S);const N=b.target;let C=S.includes(N)||w.includes(N);if(e.isElement&&!C){const E=b.path||b.composedPath&&b.composedPath();E&&(C=E.find(M=>w.includes(M)||S.includes(M)))}if(e.params.navigation.hideOnClick&&!C){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===N||e.pagination.el.contains(N)))return;let E;w.length?E=w[0].classList.contains(e.params.navigation.hiddenClass):S.length&&(E=S[0].classList.contains(e.params.navigation.hiddenClass)),s(E===!0?"navigationShow":"navigationHide"),[...w,...S].filter(M=>!!M).forEach(M=>M.classList.toggle(e.params.navigation.hiddenClass))}});const g=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),h(),d()},y=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:g,disable:y,update:d,init:h,destroy:p})}function lc(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function wD({swiper:e,extendParams:t,on:n,emit:s}){const a="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:N=>N,formatFractionTotal:N=>N,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let l,d=0;function u(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function f(N,C){const{bulletActiveClass:E}=e.params.pagination;N&&(N=N[`${C==="prev"?"previous":"next"}ElementSibling`],N&&(N.classList.add(`${E}-${C}`),N=N[`${C==="prev"?"previous":"next"}ElementSibling`],N&&N.classList.add(`${E}-${C}-${C}`)))}function h(N,C,E){if(N=N%E,C=C%E,C===N+1)return"next";if(C===N-1)return"previous"}function p(N){const C=N.target.closest(lc(e.params.pagination.bulletClass));if(!C)return;N.preventDefault();const E=hm(C)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===E)return;const M=h(e.realIndex,E,e.slides.length);M==="next"?e.slideNext():M==="previous"?e.slidePrev():e.slideToLoop(E)}else e.slideTo(E)}function g(){const N=e.rtl,C=e.params.pagination;if(u())return;let E=e.pagination.el;E=pn(E);let M,L;const R=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(R/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(L=e.previousRealIndex||0,M=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(M=e.snapIndex,L=e.previousSnapIndex):(L=e.previousIndex||0,M=e.activeIndex||0),C.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const k=e.pagination.bullets;let B,I,V;if(C.dynamicBullets&&(l=gv(k[0],e.isHorizontal()?"width":"height"),E.forEach(z=>{z.style[e.isHorizontal()?"width":"height"]=`${l*(C.dynamicMainBullets+4)}px`}),C.dynamicMainBullets>1&&L!==void 0&&(d+=M-(L||0),d>C.dynamicMainBullets-1?d=C.dynamicMainBullets-1:d<0&&(d=0)),B=Math.max(M-d,0),I=B+(Math.min(k.length,C.dynamicMainBullets)-1),V=(I+B)/2),k.forEach(z=>{const K=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(W=>`${C.bulletActiveClass}${W}`)].map(W=>typeof W=="string"&&W.includes(" ")?W.split(" "):W).flat();z.classList.remove(...K)}),E.length>1)k.forEach(z=>{const K=hm(z);K===M?z.classList.add(...C.bulletActiveClass.split(" ")):e.isElement&&z.setAttribute("part","bullet"),C.dynamicBullets&&(K>=B&&K<=I&&z.classList.add(...`${C.bulletActiveClass}-main`.split(" ")),K===B&&f(z,"prev"),K===I&&f(z,"next"))});else{const z=k[M];if(z&&z.classList.add(...C.bulletActiveClass.split(" ")),e.isElement&&k.forEach((K,W)=>{K.setAttribute("part",W===M?"bullet-active":"bullet")}),C.dynamicBullets){const K=k[B],W=k[I];for(let Q=B;Q<=I;Q+=1)k[Q]&&k[Q].classList.add(...`${C.bulletActiveClass}-main`.split(" "));f(K,"prev"),f(W,"next")}}if(C.dynamicBullets){const z=Math.min(k.length,C.dynamicMainBullets+4),K=(l*z-l)/2-V*l,W=N?"right":"left";k.forEach(Q=>{Q.style[e.isHorizontal()?W:"top"]=`${K}px`})}}E.forEach((k,B)=>{if(C.type==="fraction"&&(k.querySelectorAll(lc(C.currentClass)).forEach(I=>{I.textContent=C.formatFractionCurrent(M+1)}),k.querySelectorAll(lc(C.totalClass)).forEach(I=>{I.textContent=C.formatFractionTotal(O)})),C.type==="progressbar"){let I;C.progressbarOpposite?I=e.isHorizontal()?"vertical":"horizontal":I=e.isHorizontal()?"horizontal":"vertical";const V=(M+1)/O;let z=1,K=1;I==="horizontal"?z=V:K=V,k.querySelectorAll(lc(C.progressbarFillClass)).forEach(W=>{W.style.transform=`translate3d(0,0,0) scaleX(${z}) scaleY(${K})`,W.style.transitionDuration=`${e.params.speed}ms`})}C.type==="custom"&&C.renderCustom?(Xc(k,C.renderCustom(e,M+1,O)),B===0&&s("paginationRender",k)):(B===0&&s("paginationRender",k),s("paginationUpdate",k)),e.params.watchOverflow&&e.enabled&&k.classList[e.isLocked?"add":"remove"](C.lockClass)})}function y(){const N=e.params.pagination;if(u())return;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let E=e.pagination.el;E=pn(E);let M="";if(N.type==="bullets"){let L=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&L>C&&(L=C);for(let R=0;R<L;R+=1)N.renderBullet?M+=N.renderBullet.call(e,R,N.bulletClass):M+=`<${N.bulletElement} ${e.isElement?'part="bullet"':""} class="${N.bulletClass}"></${N.bulletElement}>`}N.type==="fraction"&&(N.renderFraction?M=N.renderFraction.call(e,N.currentClass,N.totalClass):M=`<span class="${N.currentClass}"></span> / <span class="${N.totalClass}"></span>`),N.type==="progressbar"&&(N.renderProgressbar?M=N.renderProgressbar.call(e,N.progressbarFillClass):M=`<span class="${N.progressbarFillClass}"></span>`),e.pagination.bullets=[],E.forEach(L=>{N.type!=="custom"&&Xc(L,M||""),N.type==="bullets"&&e.pagination.bullets.push(...L.querySelectorAll(lc(N.bulletClass)))}),N.type!=="custom"&&s("paginationRender",E[0])}function x(){e.params.pagination=XC(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const N=e.params.pagination;if(!N.el)return;let C;typeof N.el=="string"&&e.isElement&&(C=e.el.querySelector(N.el)),!C&&typeof N.el=="string"&&(C=[...document.querySelectorAll(N.el)]),C||(C=N.el),!(!C||C.length===0)&&(e.params.uniqueNavElements&&typeof N.el=="string"&&Array.isArray(C)&&C.length>1&&(C=[...e.el.querySelectorAll(N.el)],C.length>1&&(C=C.find(E=>LC(E,".swiper")[0]===e.el))),Array.isArray(C)&&C.length===1&&(C=C[0]),Object.assign(e.pagination,{el:C}),C=pn(C),C.forEach(E=>{N.type==="bullets"&&N.clickable&&E.classList.add(...(N.clickableClass||"").split(" ")),E.classList.add(N.modifierClass+N.type),E.classList.add(e.isHorizontal()?N.horizontalClass:N.verticalClass),N.type==="bullets"&&N.dynamicBullets&&(E.classList.add(`${N.modifierClass}${N.type}-dynamic`),d=0,N.dynamicMainBullets<1&&(N.dynamicMainBullets=1)),N.type==="progressbar"&&N.progressbarOpposite&&E.classList.add(N.progressbarOppositeClass),N.clickable&&E.addEventListener("click",p),e.enabled||E.classList.add(N.lockClass)}))}function b(){const N=e.params.pagination;if(u())return;let C=e.pagination.el;C&&(C=pn(C),C.forEach(E=>{E.classList.remove(N.hiddenClass),E.classList.remove(N.modifierClass+N.type),E.classList.remove(e.isHorizontal()?N.horizontalClass:N.verticalClass),N.clickable&&(E.classList.remove(...(N.clickableClass||"").split(" ")),E.removeEventListener("click",p))})),e.pagination.bullets&&e.pagination.bullets.forEach(E=>E.classList.remove(...N.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const N=e.params.pagination;let{el:C}=e.pagination;C=pn(C),C.forEach(E=>{E.classList.remove(N.horizontalClass,N.verticalClass),E.classList.add(e.isHorizontal()?N.horizontalClass:N.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?S():(x(),y(),g())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&g()}),n("snapIndexChange",()=>{g()}),n("snapGridLengthChange",()=>{y(),g()}),n("destroy",()=>{b()}),n("enable disable",()=>{let{el:N}=e.pagination;
vendor: 5,697 bytes, line 146
146N&&(N=pn(N),N.forEach(C=>C.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{g()}),n("click",(N,C)=>{const E=C.target,M=pn(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&M&&M.length>0&&!E.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&E===e.navigation.nextEl||e.navigation.prevEl&&E===e.navigation.prevEl))return;const L=M[0].classList.contains(e.params.pagination.hiddenClass);s(L===!0?"paginationShow":"paginationHide"),M.forEach(R=>R.classList.toggle(e.params.pagination.hiddenClass))}});const w=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:N}=e.pagination;N&&(N=pn(N),N.forEach(C=>C.classList.remove(e.params.pagination.paginationDisabledClass))),x(),y(),g()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:N}=e.pagination;N&&(N=pn(N),N.forEach(C=>C.classList.add(e.params.pagination.paginationDisabledClass))),b()};Object.assign(e.pagination,{enable:w,disable:S,render:y,update:g,init:x,destroy:b})}function ZC({swiper:e,extendParams:t,on:n,emit:s,params:a}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let l,d,u=a&&a.autoplay?a.autoplay.delay:3e3,f=a&&a.autoplay?a.autoplay.delay:3e3,h,p=new Date().getTime(),g,y,x,b,w,S,N;function C(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",C),!(N||H.detail&&H.detail.bySwiperTouchMove)&&B())}const E=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?g=!0:g&&(f=h,g=!1);const H=e.autoplay.paused?h:p+f-new Date().getTime();e.autoplay.timeLeft=H,s("autoplayTimeLeft",H,H/u),d=requestAnimationFrame(()=>{E()})},M=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.find(Z=>Z.classList.contains("swiper-slide-active")):H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},L=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(d),E();let U=typeof H>"u"?e.params.autoplay.delay:H;u=e.params.autoplay.delay,f=e.params.autoplay.delay;const Z=M();!Number.isNaN(Z)&&Z>0&&typeof H>"u"&&(U=Z,u=Z,f=Z),h=U;const F=e.params.speed,T=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(F,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,F,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(F,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,F,!0,!0),s("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{L()})))};return U>0?(clearTimeout(l),l=setTimeout(()=>{T()},U)):requestAnimationFrame(()=>{T()}),U},R=()=>{p=new Date().getTime(),e.autoplay.running=!0,L(),s("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(l),cancelAnimationFrame(d),s("autoplayStop")},k=(H,U)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(l),H||(S=!0);const Z=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",C):B()};if(e.autoplay.paused=!0,U){w&&(h=e.params.autoplay.delay),w=!1,Z();return}h=(h||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&h<0&&!e.params.loop)&&(h<0&&(h=0),Z())},B=()=>{e.isEnd&&h<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),S?(S=!1,L(h)):L(),e.autoplay.paused=!1,s("autoplayResume"))},I=()=>{if(e.destroyed||!e.autoplay.running)return;const H=vi();H.visibilityState==="hidden"&&(S=!0,k(!0)),H.visibilityState==="visible"&&B()},V=H=>{H.pointerType==="mouse"&&(S=!0,N=!0,!(e.animating||e.autoplay.paused)&&k(!0))},z=H=>{H.pointerType==="mouse"&&(N=!1,e.autoplay.paused&&B())},K=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",V),e.el.addEventListener("pointerleave",z))},W=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",V),e.el.removeEventListener("pointerleave",z))},Q=()=>{vi().addEventListener("visibilitychange",I)},D=()=>{vi().removeEventListener("visibilitychange",I)};n("init",()=>{e.params.autoplay.enabled&&(K(),Q(),R())}),n("destroy",()=>{W(),D(),e.autoplay.running&&O()}),n("_freeModeStaticRelease",()=>{(x||S)&&B()}),n("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?O():k(!0,!0)}),n("beforeTransitionStart",(H,U,Z)=>{e.destroyed||!e.autoplay.running||(Z||!e.params.autoplay.disableOnInteraction?k(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}y=!0,x=!1,S=!1,b=setTimeout(()=>{S=!0,x=!0,k(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!y)){if(clearTimeout(b),clearTimeout(l),e.params.autoplay.disableOnInteraction){x=!1,y=!1;return}x&&e.params.cssMode&&B(),x=!1,y=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(w=!0)}),Object.assign(e.autoplay,{start:R,stop:O,pause:k,resume:B})}function SD(e){const{effect:t,swiper:n,on:s,setTranslate:a,setTransition:l,overwriteParams:d,perspective:u,recreateShadows:f,getEffectParams:h}=e;s("beforeInit",()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),u&&u()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const g=d?d():{};Object.assign(n.params,g),Object.assign(n.originalParams,g)}),s("setTranslate _virtualUpdated",()=>{n.params.effect===t&&a()}),s("setTransition",(g,y)=>{n.params.effect===t&&l(y)}),s("transitionEnd",()=>{if(n.params.effect===t&&f){if(!h||!h().slideShadows)return;
146n.slides.forEach(g=>{g.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(y=>y.remove())}),f()}});let p;s("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(p=!0),requestAnimationFrame(()=>{p&&n.slides&&n.slides.length&&(a(),p=!1)}))})}function ND(e,t){const n=Yy(t);return n!==t&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function zj(e,t,n){const s=`swiper-slide-shadow${n?`-${n}`:""}${` swiper-slide-shadow-${e}`}`,a=Yy(t);let l=a.querySelector(`.${s.split(" ").join(".")}`);return l||(l=Kc("div",s.split(" ")),a.append(l)),l}function CD({swiper:e,extendParams:t,on:n}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),SD({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:l,height:d,slides:u,slidesSizesGrid:f}=e,h=e.params.coverflowEffect,p=e.isHorizontal(),g=e.translate,y=p?-g+l/2:-g+d/2,x=p?h.rotate:-h.rotate,b=h.depth,w=nP(e);for(let S=0,N=u.length;S<N;S+=1){const C=u[S],E=f[S],M=C.swiperSlideOffset,L=(y-M-E/2)/E,R=typeof h.modifier=="function"?h.modifier(L):L*h.modifier;let O=p?x*R:0,k=p?0:x*R,B=-b*Math.abs(R),I=h.stretch;typeof I=="string"&&I.indexOf("%")!==-1&&(I=parseFloat(h.stretch)/100*E);let V=p?0:I*R,z=p?I*R:0,K=1-(1-h.scale)*Math.abs(R);Math.abs(z)<.001&&(z=0),Math.abs(V)<.001&&(V=0),Math.abs(B)<.001&&(B=0),Math.abs(O)<.001&&(O=0),Math.abs(k)<.001&&(k=0),Math.abs(K)<.001&&(K=0);const W=`translate3d(${z}px,${V}px,${B}px)  rotateX(${w(k)}deg) rotateY(${w(O)}deg) scale(${K})`,Q=ND(h,C);if(Q.style.transform=W,C.style.zIndex=-Math.abs(Math.round(R))+1,h.slideShadows){let D=p?C.querySelector(".swiper-slide-shadow-left"):C.querySelector(".swiper-slide-shadow-top"),H=p?C.querySelector(".swiper-slide-shadow-right"):C.querySelector(".swiper-slide-shadow-bottom");D||(D=zj("coverflow",C,p?"left":"top")),H||(H=zj("coverflow",C,p?"right":"bottom")),D&&(D.style.opacity=R>0?R:0),H&&(H.style.opacity=-R>0?-R:0)}}},setTransition:l=>{e.slides.map(u=>Yy(u)).forEach(u=>{u.style.transitionDuration=`${l}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}const Xy=({logos:e=[]})=>{const t=[{id:1,name:"Bitlocus",src:"/images/icons/members/bitlocus.svg",width:129,height:36,href:"https://bitlocus.com/"},{id:2,name:"CEE Attorneys",src:"/images/icons/members/cee-atorneys.svg",width:120,height:42,href:"https://ceeatt.com/"},{id:3,name:"Critical Security",src:"/images/icons/members/critical-security.svg",width:121,height:30,href:"https://www.critical.lt/"},{id:4,name:"DevSlate",src:"/images/icons/members/devslate.svg",width:57,height:56,href:"https://devslate.com/"},{id:5,name:"Expert Lab",src:"/images/icons/members/expert-lab.svg",width:121,height:32,href:"https://www.expertlab.lt/"},{id:6,name:"Fintexus",src:"/images/icons/members/fintexus.svg",width:121,height:24,href:"https://fintexus.com/"},{id:7,name:"L3CE",src:"/images/icons/members/l3ce.svg",width:121,height:32,href:"https://www.l3ce.eu/en/"},{id:9,name:"Privacy Partners",src:"/images/icons/members/privacy-partners.svg",width:121,height:32,href:"https://www.privacypartners.lt/"},{id:10,name:"S-PRO",src:"/images/icons/members/s-pro.svg",width:121,height:46,href:"https://s-pro.io/"},{id:11,name:"Skale360",src:"/images/icons/members/skale360.svg",width:121,height:14,href:"https://www.skale360.lt/"},{id:12,name:"VDU",src:"/images/icons/members/vdu.svg",width:131,height:56,href:"https://www.vdu.lt/lt/"},{id:13,name:"Vilnius University",src:"/images/icons/members/vilniaus-university.svg",width:109,height:56,href:"https://www.vu.lt/"}],n=e.length>0?e:t,s=Math.ceil(n.length/6),a=Array.from({length:s},(l,d)=>{const u=[];for(let f=0;f<6;f++){const h=(d*6+f)%n.length;u.push(n[h])}return u});return i.jsx("div",{className:"logo-slider-vertical",children:i.jsx(Um,{modules:[ZC],direction:"vertical",slidesPerView:1,spaceBetween:0,autoplay:{delay:3e3,disableOnInteraction:!1},loop:!0,className:"logo-swiper-vertical",children:a.map((l,d)=>i.jsx(Hm,{children:i.jsx("div",{className:"logo-grid",children:l.map(u=>i.jsx("div",{className:"logo-item",children:u.href?i.jsx("a",{href:u.href,target:"_blank",rel:"noopener noreferrer","aria-label":u.name||u.alt,children:i.jsx("img",{src:u.src,alt:u.name||u.alt,width:u.width,height:u.height})}):i.jsx("img",{src:u.src,alt:u.name||u.alt,width:u.width,height:u.height})},u.id))})},d))})})};function vs({children:e,x:t=0,y:n=16,delay:s=0,duration:a=.6,amount:l=.3,margin:d,className:u}){const f=AC();return i.jsx(kn.div,{className:u,initial:{opacity:0,x:f?0:t,y:f?0:n},whileInView:{opacity:1,x:0,y:0},viewport:{once:!0,amount:l,margin:d},transition:{duration:a,delay:s,ease:"easeOut"},children:e})}const cc={label:"Network",title:"Inside the BCCS Ecosystem",description:"From member growth to global reach, these numbers reflect the scale, diversity, and momentum of the BCCS network - spanning industries, sectors and regions.",buttonText:"View Network",stats:[{id:1,value:500,suffix:"+",label:"Cross-disciplinary experts"},{id:2,value:10,suffix:"+",label:"Countries in which we delivered projects"},{id:3,value:15,suffix:"+",label:"Access to global networks"}]};function $D({value:e,suffix:t=""}){const n=j.useRef(null),s=Gy(n,{once:!0,margin:"-100px"}),[a,l]=j.useState(0);return j.useEffect(()=>{if(s)return OC(0,e,{duration:2,ease:"easeOut",onUpdate:u=>{l(Math.round(u))}}).stop},[s,e]),i.jsxs("h2",{ref:n,children:[a,t]})}function QC(){const[e,t]=j.useState(()=>typeof window<"u"&&window.matchMedia("(max-width: 1023px)").matches);return j.useEffect(()=>{const n=window.matchMedia("(max-width: 1023px)"),s=()=>t(n.matches);
146return s(),n.addEventListener("change",s),()=>n.removeEventListener("change",s)},[]),i.jsx("div",{className:"network-section",children:i.jsxs("div",{className:"network-container",children:[i.jsxs("div",{className:"network-intro",children:[i.jsxs("div",{className:"content-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:cc.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{children:cc.title}),i.jsx("p",{children:cc.description})]})]}),i.jsx(Ce,{className:"button",href:"/our-community",children:i.jsx("p",{children:cc.buttonText})})]}),i.jsxs("div",{className:"network-body",children:[i.jsx("div",{className:"network-stats",children:cc.stats.map((n,s)=>i.jsxs(vs,{className:"stat",x:e?0:-40,y:e?-40:0,delay:s*.12,children:[i.jsx($D,{value:n.value,suffix:n.suffix}),i.jsx("p",{children:n.label})]},n.id))}),i.jsx("div",{className:"logo-container",children:i.jsx(Xy,{})})]})]})})}function ED(e,t){let n=e*73856093^t*19349663;return n=Math.imul(n^n>>>13,1274126177),((n^n>>>16)>>>0)/4294967295}const Vj=e=>.5-.5*Math.cos(Math.PI*e);function Zy({cellSize:e=68,waveCross:t=4.5,waveSharp:n=1.6,waveJitter:s=.25,waveSpacing:a=.55,flipDur:l=.7,inset:d=.21,radius:u=6,className:f=""}){const h=j.useRef(null);return j.useEffect(()=>{const p=h.current;if(!p)return;const g=p.getContext("2d"),y=window.matchMedia("(prefers-reduced-motion: reduce)").matches,x=e/2,b=e*(1-2*d),w=b/2,N=2*(t*a)||1,C=l/N;let E=1,M=0,L=0,R=0,O=0,k="#C6D5F9",B="#FFFFFF";const I=()=>{const xe=getComputedStyle(p),$e=xe.getPropertyValue("--surface-frame-el-decor").trim(),ce=xe.getPropertyValue("--surface-frame-default").trim();$e&&(k=$e),ce&&(B=ce)},V=()=>{const xe=p.getBoundingClientRect();M=xe.width,L=xe.height,E=Math.min(window.devicePixelRatio||1,1.5),p.width=Math.max(1,Math.round(M*E)),p.height=Math.max(1,Math.round(L*E)),R=Math.ceil(M/e)+2,O=Math.ceil(L/x)+2},z=xe=>{let $e;return xe<C?$e=180*Vj(xe/C):xe<.5?$e=180:xe<.5+C?$e=180+180*Vj((xe-.5)/C):$e=360,$e*Math.PI/180},K=xe=>{g.setTransform(E,0,0,E,0,0),g.clearRect(0,0,M,L);const $e=Math.max(R+O-2,0);for(let ce=0;ce<O;ce++){const be=ce%2*(e/2),Ee=ce*x;for(let ke=0;ke<R;ke++){const Le=ke*e+be,Ne=ke+(O-1-ce),Te=2*($e>0?Ne/$e:0)-1,Ze=Math.sign(Te)*Math.pow(Math.abs(Te),n),vt=t*.5*(1+Ze),fe=(ED(ce,ke)*2-1)*s*Te*Te,ze=vt+fe,Ge=xe-ze,mt=Ge<0?1:Math.cos(z(Ge%N/N));g.save(),g.translate(Le,Ee),g.scale(mt,1),g.rotate(Math.PI/4),g.beginPath(),g.roundRect(-w,-w,b,b,u),g.fillStyle=mt>=0?k:B,g.fill(),g.restore()}}};let W=0,Q=0,D=!1,H=!1,U=!0,Z=0,F=0,T=!1;const A=()=>K(Z),Y=xe=>{T&&(Z+=(xe-F)/1e3),F=xe,T=!0,K(Z),W=requestAnimationFrame(Y)},ee=()=>{D||y||!H||(D=!0,T=!1,W=requestAnimationFrame(Y))},te=()=>{D||y||!H||(U&&typeof window.requestIdleCallback=="function"?(U=!1,Q=window.requestIdleCallback(ee,{timeout:1e3})):(U=!1,ee()))},ae=()=>{D=!1,cancelAnimationFrame(W),Q&&window.cancelIdleCallback&&window.cancelIdleCallback(Q),Q=0};I(),V(),A();const pe=new IntersectionObserver(([xe])=>{H=xe.isIntersecting,H?te():ae()},{rootMargin:"150px"});pe.observe(p);const le=new ResizeObserver(()=>{V(),(y||!D)&&A()});le.observe(p);const ve=new MutationObserver(()=>{I(),(y||!D)&&A()});return ve.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>{ae(),pe.disconnect(),le.disconnect(),ve.disconnect()}},[e,t,n,s,a,l,d,u]),i.jsx("canvas",{ref:h,className:`diamond-field ${f}`.trim(),"aria-hidden":"true"})}const TD=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Qy(){const[e,t]=j.useState(""),n=j.useRef(null);j.useEffect(()=>{const y=n.current;if(!y)return;const x=()=>{const b=document.querySelector(".header"),w=b?b.getBoundingClientRect().height:0,S=parseFloat(getComputedStyle(y).paddingTop)||0;y.style.scrollMarginTop=`${w-S}px`};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const{data:s,setData:a,post:l,processing:d,errors:u,reset:f,setError:h,clearErrors:p}=Yt({email:"",source:"cta"}),g=y=>{if(y.preventDefault(),p("email"),t(""),!s.email||!s.email.trim()){h("email","Email address is required");return}if(!TD.test(s.email.trim())){h("email","Please enter a valid email address");return}l("/newsletter/subscribe",{preserveScroll:!0,onSuccess:x=>{f("email"),t(x.props?.flash?.success||"Thank you! You are now subscribed to our newsletter.")}})};return i.jsx("div",{className:"cta-section",id:"newsletter",ref:n,children:i.jsxs("div",{className:"cta-container",children:[i.jsx(Zy,{className:"diamond-field--mask-bottom"}),i.jsxs(vs,{className:"title-container",children:[i.jsx("h2",{children:"Together We Can Do More"}),i.jsx("p",{children:"Get the latest cluster news, events and industry insights straight to your inbox."})]}),i.jsx(vs,{className:"newsletter-form-container",delay:.1,children:i.jsxs("form",{onSubmit:g,className:"newsletter-form",noValidate:!0,children:[i.jsxs("div",{className:"newsletter-form__row",children:[i.jsx("div",{className:`newsletter-form__input${u.email?" error":""}`,children:i.jsx("input",{type:"email",name:"email","aria-label":"Email address",autoComplete:"email",value:s.email,onChange:y=>a("email",y.target.value),placeholder:"Enter your email",disabled:d})}),i.jsx("button",{type:"submit",className:"newsletter-form__button",disabled:d,children:d?"Subscribing...":"Subscribe"})]}),u.email&&i.jsx("div",{className:"newsletter-form__message",children:i.jsx(ct,{type:"error",message:u.email})}),e&&!u.email&&i.jsx("div",{className:"newsletter-form__message",children:i.jsx(ct,{type:"success",message:e})})]})})]})})}function AD(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"About the BCCS Cluster",description:"We are a team of experts dedicated to providing the best cybersecurity and fintech solutions to our clients.",url:"/about-us",keywords:"about bccs, fintech team, cybersecurity experts"}),i.jsxs("div",{className:"about-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx("div",{className:"header-section",children:i.jsx("div",{className:"header-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Welcome to BCCS"}),i.jsx("p",{children:"BCCS is a digital innovation hub that acts as a vital link in the global fintech ecosystem, fostering innovation and collaboration"})]})})}),i.jsx(HR,{}),i.jsx(qR,{}),i.jsx(QC,{}),i.jsx(Qy,{})]}),i.jsx(Xt,{})]})]})}const kD=Object.freeze(Object.defineProperty({__proto__:null,default:AD},Symbol.toStringTag,{value:"Module"}));let Rr=null;function MD(){return Rr||(Rr=document.createElement("div"),Rr.className="toast-container",Rr.style.cssText="position:fixed; bottom:24px; right:24px;
146 z-index:9999; display:flex; flex-direction:column-reverse; gap:12px; pointer-events:none;",document.body.appendChild(Rr),Rr)}function cf({message:e,description:t,type:n="success",duration:s=5e3}){MD();const a=document.createElement("div");a.className=`toast toast--${n}`,a.setAttribute("role",n==="error"?"alert":"status"),a.innerHTML=`
147        <div class="toast__icon">
148            <svg><use href="/images/icons/dashboard-icons.svg#icon-${n==="success"?"check":n==="error"?"x":"info"}"/></svg>
149        </div>
150        <div class="toast__content">
151            <p class="toast__message">${e}</p>
152            ${t?`<p class="toast__description">${t}</p>`:""}
153        </div>
154        <button class="toast__close" aria-label="Dismiss">
155            <svg><use href="/images/icons/dashboard-icons.svg#icon-x"/></svg>
156        </button>
157    `,a.querySelector(".toast__close").addEventListener("click",()=>Uj(a)),Rr.appendChild(a),requestAnimationFrame(()=>a.classList.add("toast--visible")),s>0&&setTimeout(()=>Uj(a),s)}function Uj(e){if(!e||!e.parentNode||e.dataset.dismissing==="1")return;e.dataset.dismissing="1",e.classList.remove("toast--visible"),e.classList.add("toast--exit");const t=()=>{e.parentNode&&e.parentNode.removeChild(e)};e.addEventListener("transitionend",t,{once:!0}),setTimeout(t,350)}const Ve={show:cf,success:(e,t)=>cf({message:e,description:t,type:"success"}),error:(e,t)=>cf({message:e,description:t,type:"error"}),info:(e,t)=>cf({message:e,description:t,type:"info"})},Hj=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function JC({status:e=null}){const{data:t,setData:n,post:s,processing:a,errors:l}=Yt({email:""}),[d,u]=j.useState({}),f={...l,...d};j.useEffect(()=>{e&&Ve.success(e)},[e]);function h(y,x){n(y,x),d[y]&&u(b=>{const w={...b};return delete w[y],w})}function p(){const y=t.email.trim();if(!y){u(x=>({...x,email:"Email is required"}));return}Hj.test(y)||u(x=>({...x,email:"Enter a valid email address"}))}function g(y){y.preventDefault();const x=t.email.trim(),b={};if(x?Hj.test(x)||(b.email="Enter a valid email address"):b.email="Email is required",Object.keys(b).length){u(b);return}u({}),s("/forgot-password")}return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{noindex:!0,title:"Forgot password",description:"Reset your BCCS account password by email.",url:"/forgot-password",keywords:"forgot password, password reset, account recovery"}),i.jsx(Kt,{}),i.jsx("div",{className:"login-page",children:i.jsxs("div",{className:"header-section",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"login-logo"})}),i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Forgot your password?"}),i.jsx("p",{children:"Enter your email and we'll send you a link to set a new password."})]})}),i.jsxs("form",{onSubmit:g,className:"auth-form",noValidate:!0,children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsx("label",{className:"auth-form__label",htmlFor:"forgot-email",children:"Email"}),i.jsx("input",{id:"forgot-email",type:"email",className:`auth-form__input${f.email?" auth-form__input--error":""}`,value:t.email,onChange:y=>h("email",y.target.value),onBlur:p,autoComplete:"email",placeholder:"[email protected]"}),f.email&&i.jsx("span",{className:"auth-form__error",children:f.email})]}),i.jsx("div",{className:"auth-form__actions",children:i.jsx("button",{type:"submit",className:"auth-form__submit",disabled:a,children:a?"Sending link...":"Send reset link"})}),i.jsx("div",{className:"auth-form__footer-link",children:i.jsx(Ce,{href:"/login",children:"Back to login"})})]})]})}),i.jsx(Xt,{})]})}JC.propTypes={status:q.string};const OD=Object.freeze(Object.defineProperty({__proto__:null,default:JC},Symbol.toStringTag,{value:"Module"}));function RD(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Invitation Expired",noindex:!0}),i.jsx(Kt,{}),i.jsx("div",{className:"register-company-page",children:i.jsxs("div",{className:"header-section",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"login-logo"})}),i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"This invitation is no longer valid"}),i.jsx("p",{children:"It may have expired or been revoked. Please contact your team to request a new invitation."})]})}),i.jsx("div",{className:"auth-form__actions",children:i.jsx(Ce,{href:"/login",className:"auth-form__submit",style:{textAlign:"center",textDecoration:"none",display:"block"},children:"Go to login"})})]})}),i.jsx(Xt,{})]})}const PD=Object.freeze(Object.defineProperty({__proto__:null,default:RD},Symbol.toStringTag,{value:"Module"}));function e$(e,t){return function(){return e.apply(t,arguments)}}const{toString:DD}=Object.prototype,{getPrototypeOf:Jy}=Object,{iterator:qm,toStringTag:t$}=Symbol,Gm=(e=>t=>{const n=DD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),si=e=>(e=e.toLowerCase(),t=>Gm(t)===e),Wm=e=>t=>typeof t===e,{isArray:il}=Array,Zo=Wm("undefined");function bd(e){return e!==null&&!Zo(e)&&e.constructor!==null&&!Zo(e.constructor)&&ss(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n$=si("ArrayBuffer");function LD(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n$(e.buffer),t}const FD=Wm("string"),ss=Wm("function"),s$=Wm("number"),xd=e=>e!==null&&typeof e=="object",ID=e=>e===!0||e===!1,Vf=e=>{if(Gm(e)!=="object")return!1;const t=Jy(e);
vendor: 12,232 bytes, line 157
157return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(t$ in e)&&!(qm in e)},BD=e=>{if(!xd(e)||bd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},zD=si("Date"),VD=si("File"),UD=e=>!!(e&&typeof e.uri<"u"),HD=e=>e&&typeof e.getParts<"u",qD=si("Blob"),GD=si("FileList"),WD=e=>xd(e)&&ss(e.pipe);function YD(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const qj=YD(),Gj=typeof qj.FormData<"u"?qj.FormData:void 0,KD=e=>{let t;return e&&(Gj&&e instanceof Gj||ss(e.append)&&((t=Gm(e))==="formdata"||t==="object"&&ss(e.toString)&&e.toString()==="[object FormData]"))},XD=si("URLSearchParams"),[ZD,QD,JD,eL]=["ReadableStream","Request","Response","Headers"].map(si),tL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _d(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,a;if(typeof e!="object"&&(e=[e]),il(e))for(s=0,a=e.length;s<a;s++)t.call(null,e[s],s,e);else{if(bd(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),d=l.length;let u;for(s=0;s<d;s++)u=l[s],t.call(null,e[u],u,e)}}function i$(e,t){if(bd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,a;for(;s-- >0;)if(a=n[s],t===a.toLowerCase())return a;return null}const wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,r$=e=>!Zo(e)&&e!==wa;function bv(){const{caseless:e,skipUndefined:t}=r$(this)&&this||{},n={},s=(a,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const d=e&&i$(n,l)||l;Vf(n[d])&&Vf(a)?n[d]=bv(n[d],a):Vf(a)?n[d]=bv({},a):il(a)?n[d]=a.slice():(!t||!Zo(a))&&(n[d]=a)};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&_d(arguments[a],s);return n}const nL=(e,t,n,{allOwnKeys:s}={})=>(_d(t,(a,l)=>{n&&ss(a)?Object.defineProperty(e,l,{value:e$(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),sL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),iL=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},rL=(e,t,n,s)=>{let a,l,d;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)d=a[l],(!s||s(d,e,t))&&!u[d]&&(t[d]=e[d],u[d]=!0);e=n!==!1&&Jy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},aL=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},oL=e=>{if(!e)return null;if(il(e))return e;let t=e.length;if(!s$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Jy(Uint8Array)),cL=(e,t)=>{const s=(e&&e[qm]).call(e);let a;for(;(a=s.next())&&!a.done;){const l=a.value;t.call(e,l[0],l[1])}},dL=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},uL=si("HTMLFormElement"),fL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,a){return s.toUpperCase()+a}),Wj=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mL=si("RegExp"),a$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};_d(n,(a,l)=>{let d;(d=t(a,l,e))!==!1&&(s[l]=d||a)}),Object.defineProperties(e,s)},hL=e=>{a$(e,(t,n)=>{if(ss(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(ss(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},pL=(e,t)=>{const n={},s=a=>{a.forEach(l=>{n[l]=!0})};return il(e)?s(e):s(String(e).split(t)),n},gL=()=>{},vL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yL(e){return!!(e&&ss(e.append)&&e[t$]==="FormData"&&e[qm])}const bL=e=>{const t=new Array(10),n=(s,a)=>{if(xd(s)){if(t.indexOf(s)>=0)return;if(bd(s))return s;if(!("toJSON"in s)){t[a]=s;const l=il(s)?[]:{};return _d(s,(d,u)=>{const f=n(d,a+1);!Zo(f)&&(l[u]=f)}),t[a]=void 0,l}}return s};return n(e,0)},xL=si("AsyncFunction"),_L=e=>e&&(xd(e)||ss(e))&&ss(e.then)&&ss(e.catch),o$=((e,t)=>e?setImmediate:t?((n,s)=>(wa.addEventListener("message",({source:a,data:l})=>{a===wa&&l===n&&s.length&&s.shift()()},!1),a=>{s.push(a),wa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ss(wa.postMessage)),jL=typeof queueMicrotask<"u"?queueMicrotask.bind(wa):typeof process<"u"&&process.nextTick||o$,wL=e=>e!=null&&ss(e[qm]),re={isArray:il,isArrayBuffer:n$,isBuffer:bd,isFormData:KD,isArrayBufferView:LD,isString:FD,isNumber:s$,isBoolean:ID,isObject:xd,isPlainObject:Vf,isEmptyObject:BD,isReadableStream:ZD,isRequest:QD,isResponse:JD,isHeaders:eL,isUndefined:Zo,isDate:zD,isFile:VD,isReactNativeBlob:UD,isReactNative:HD,isBlob:qD,isRegExp:mL,isFunction:ss,isStream:WD,isURLSearchParams:XD,isTypedArray:lL,isFileList:GD,forEach:_d,merge:bv,extend:nL,trim:tL,stripBOM:sL,inherits:iL,toFlatObject:rL,kindOf:Gm,kindOfTest:si,endsWith:aL,toArray:oL,forEachEntry:cL,matchAll:dL,isHTMLForm:uL,hasOwnProperty:Wj,hasOwnProp:Wj,reduceDescriptors:a$,freezeMethods:hL,toObjectSet:pL,toCamelCase:fL,noop:gL,toFiniteNumber:vL,findKey:i$,global:wa,isContextDefined:r$,isSpecCompliantForm:yL,toJSONObject:bL,isAsyncFn:xL,isThenable:_L,setImmediate:o$,asap:jL,isIterable:wL};let Ie=class l$ extends Error{static from(t,n,s,a,l,d){const u=new l$(t.message,n||t.code,s,a,l);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),d&&Object.assign(u,d),u}constructor(t,n,s,a,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}};Ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ie.ERR_BAD_OPTION="ERR_BAD_OPTION";Ie.ECONNABORTED="ECONNABORTED";Ie.ETIMEDOUT="ETIMEDOUT";Ie.ERR_NETWORK="ERR_NETWORK";Ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ie.ERR_DEPRECATED="ERR_DEPRECATED";Ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ie.ERR_CANCELED="ERR_CANCELED";Ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ie.ERR_INVALID_URL="ERR_INVALID_URL";const SL=null;function xv(e){return re.isPlainObject(e)||re.isArray(e)}function c$(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function a0(e,t,n){return e?e.concat(t).map(function(a,l){return a=c$(a),!n&&l?"["+a+"]":a}).join(n?".":""):t}function NL(e){return re.isArray(e)&&!e.some(xv)}const CL=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Ym(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!re.isUndefined(S[w])});const s=n.metaTokens,a=n.visitor||p,l=n.dots,d=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(a))throw new TypeError("visitor must be a function");function h(b){if(b===null)return"";if(re.isDate(b))return b.toISOString();if(re.isBoolean(b))return b.toString();if(!f&&re.isBlob(b))throw new Ie("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(b)||re.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,w,S){let N=b;if(re.isReactNative(t)&&re.isReactNativeBlob(b))return t.append(a0(S,w,l),h(b)),!1;if(b&&!S&&typeof b=="object"){if(re.endsWith(w,"{}"))w=s?w:w.slice(0,-2),b=JSON.stringify(b);else if(re.isArray(b)&&NL(b)||(re.isFileList(b)||re.endsWith(w,"[]"))&&(N=re.toArray(b)))return w=c$(w),N.forEach(function(E,M){!(re.isUndefined(E)||E===null)&&t.append(d===!0?a0([w],M,l):d===null?w:w+"[]",h(E))}),!1}return xv(b)?!0:(t.append(a0(S,w,l),h(b)),!1)}const g=[],y=Object.assign(CL,{defaultVisitor:p,convertValue:h,isVisitable:xv});function x(b,w){if(!re.isUndefined(b)){if(g.indexOf(b)!==-1)throw Error("Circular reference detected in "+w.join("."));g.push(b),re.forEach(b,function(N,C){(!(re.isUndefined(N)||N===null)&&a.call(t,N,re.isString(C)?C.trim():C,w,y))===!0&&x(N,w?w.concat(C):[C])}),g.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Yj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function eb(e,t){this._pairs=[],e&&Ym(e,this,t)}const d$=eb.prototype;d$.append=function(t,n){this._pairs.push([t,n])};d$.toString=function(t){const n=t?function(s){return t.call(this,s,Yj)}:Yj;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function $L(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function u$(e,t,n){if(!t)return e;const s=n&&n.encode||$L,a=re.isFunction(n)?{serialize:n}:n,l=a&&a.serialize;let d;if(l?d=l(t,a):d=re.isURLSearchParams(t)?t.toString():new eb(t,a).toString(s),d){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}class Kj{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(s){s!==null&&t(s)})}}const tb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},EL=typeof URLSearchParams<"u"?URLSearchParams:eb,TL=typeof FormData<"u"?FormData:null,AL=typeof Blob<"u"?Blob:null,kL={isBrowser:!0,classes:{URLSearchParams:EL,FormData:TL,Blob:AL},protocols:["http","https","file","blob","url","data"]},nb=typeof window<"u"&&typeof document<"u",_v=typeof navigator=="object"&&navigator||void 0,ML=nb&&(!_v||["ReactNative","NativeScript","NS"].indexOf(_v.product)<0),OL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RL=nb&&window.location.href||"http://localhost",PL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:nb,hasStandardBrowserEnv:ML,hasStandardBrowserWebWorkerEnv:OL,navigator:_v,origin:RL},Symbol.toStringTag,{value:"Module"})),An={...PL,...kL};function DL(e,t){return Ym(e,new An.classes.URLSearchParams,{visitor:function(n,s,a,l){return An.isNode&&re.isBuffer(n)?(this.append(s,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function LL(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FL(e){const t={},n=Object.keys(e);let s;const a=n.length;let l;for(s=0;s<a;s++)l=n[s],t[l]=e[l];return t}function f$(e){function t(n,s,a,l){let d=n[l++];if(d==="__proto__")return!0;const u=Number.isFinite(+d),f=l>=n.length;return d=!d&&re.isArray(a)?a.length:d,f?(re.hasOwnProp(a,d)?a[d]=[a[d],s]:a[d]=s,!u):((!a[d]||!re.isObject(a[d]))&&(a[d]=[]),t(n,s,a[d],l)&&re.isArray(a[d])&&(a[d]=FL(a[d])),!u)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(s,a)=>{t(LL(s),a,n,0)}),n}return null}function IL(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const jd={transitional:tb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",a=s.indexOf("application/json")>-1,l=re.isObject(t);if(l&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return a?JSON.stringify(f$(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t)||re.isReadableStream(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(l){if(s.indexOf("application/x-www-form-urlencoded")>
vendor: 4,480 bytes, lines 157-159
157-1)return DL(t,this.formSerializer).toString();if((u=re.isFileList(t))||s.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Ym(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return l||a?(n.setContentType("application/json",!1),IL(t)):t}],transformResponse:[function(t){const n=this.transitional||jd.transitional,s=n&&n.forcedJSONParsing,a=this.responseType==="json";if(re.isResponse(t)||re.isReadableStream(t))return t;if(t&&re.isString(t)&&(s&&!this.responseType||a)){const d=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(u){if(d)throw u.name==="SyntaxError"?Ie.from(u,Ie.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{jd.headers[e]={}});const BL=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zL=e=>{const t={};let n,s,a;return e&&e.split(`
158`).forEach(function(d){a=d.indexOf(":"),n=d.substring(0,a).trim().toLowerCase(),s=d.substring(a+1).trim(),!(!n||t[n]&&BL[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Xj=Symbol("internals");function dc(e){return e&&String(e).trim().toLowerCase()}function Uf(e){return e===!1||e==null?e:re.isArray(e)?e.map(Uf):String(e).replace(/[\r\n]+$/,"")}function VL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const UL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function o0(e,t,n,s,a){if(re.isFunction(s))return s.call(this,t,n);if(a&&(t=n),!!re.isString(t)){if(re.isString(s))return t.indexOf(s)!==-1;if(re.isRegExp(s))return s.test(t)}}function HL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function qL(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(a,l,d){return this[s].call(this,t,a,l,d)},configurable:!0})})}let is=class{constructor(t){t&&this.set(t)}set(t,n,s){const a=this;function l(u,f,h){const p=dc(f);if(!p)throw new Error("header name must be a non-empty string");const g=re.findKey(a,p);(!g||a[g]===void 0||h===!0||h===void 0&&a[g]!==!1)&&(a[g||f]=Uf(u))}const d=(u,f)=>re.forEach(u,(h,p)=>l(h,p,f));if(re.isPlainObject(t)||t instanceof this.constructor)d(t,n);else if(re.isString(t)&&(t=t.trim())&&!UL(t))d(zL(t),n);else if(re.isObject(t)&&re.isIterable(t)){let u={},f,h;for(const p of t){if(!re.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[h=p[0]]=(f=u[h])?re.isArray(f)?[...f,p[1]]:[f,p[1]]:p[1]}d(u,n)}else t!=null&&l(n,t,s);return this}get(t,n){if(t=dc(t),t){const s=re.findKey(this,t);if(s){const a=this[s];if(!n)return a;if(n===!0)return VL(a);if(re.isFunction(n))return n.call(this,a,s);if(re.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=dc(t),t){const s=re.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||o0(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let a=!1;function l(d){if(d=dc(d),d){const u=re.findKey(s,d);u&&(!n||o0(s,s[u],u,n))&&(delete s[u],a=!0)}}return re.isArray(t)?t.forEach(l):l(t),a}clear(t){const n=Object.keys(this);let s=n.length,a=!1;for(;s--;){const l=n[s];(!t||o0(this,this[l],l,t,!0))&&(delete this[l],a=!0)}return a}normalize(t){const n=this,s={};return re.forEach(this,(a,l)=>{const d=re.findKey(s,l);if(d){n[d]=Uf(a),delete n[l];return}const u=t?HL(l):String(l).trim();u!==l&&delete n[l],n[u]=Uf(a),s[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(s,a)=>{s!=null&&s!==!1&&(n[a]=t&&re.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
159`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);
vendor: 11,918 bytes, line 159
159return n.forEach(a=>s.set(a)),s}static accessor(t){const s=(this[Xj]=this[Xj]={accessors:{}}).accessors,a=this.prototype;function l(d){const u=dc(d);s[u]||(qL(a,d),s[u]=!0)}return re.isArray(t)?t.forEach(l):l(t),this}};is.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(is.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});re.freezeMethods(is);function l0(e,t){const n=this||jd,s=t||n,a=is.from(s.headers);let l=s.data;return re.forEach(e,function(u){l=u.call(n,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function m$(e){return!!(e&&e.__CANCEL__)}let wd=class extends Ie{constructor(t,n,s){super(t??"canceled",Ie.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}};function h$(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function GL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function WL(e,t){e=e||10;const n=new Array(e),s=new Array(e);let a=0,l=0,d;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),p=s[l];d||(d=h),n[a]=f,s[a]=h;let g=l,y=0;for(;g!==a;)y+=n[g++],g=g%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),h-d<t)return;const x=p&&h-p;return x?Math.round(y*1e3/x):void 0}}function YL(e,t){let n=0,s=1e3/t,a,l;const d=(h,p=Date.now())=>{n=p,a=null,l&&(clearTimeout(l),l=null),e(...h)};return[(...h)=>{const p=Date.now(),g=p-n;g>=s?d(h,p):(a=h,l||(l=setTimeout(()=>{l=null,d(a)},s-g)))},()=>a&&d(a)]}const gm=(e,t,n=3)=>{let s=0;const a=WL(50,250);return YL(l=>{const d=l.loaded,u=l.lengthComputable?l.total:void 0,f=d-s,h=a(f),p=d<=u;s=d;const g={loaded:d,total:u,progress:u?d/u:void 0,bytes:f,rate:h||void 0,estimated:h&&u&&p?(u-d)/h:void 0,event:l,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},Zj=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Qj=e=>(...t)=>re.asap(()=>e(...t)),KL=An.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,An.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(An.origin),An.navigator&&/(msie|trident)/i.test(An.navigator.userAgent)):()=>!0,XL=An.hasStandardBrowserEnv?{write(e,t,n,s,a,l,d){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];re.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),re.isString(s)&&u.push(`path=${s}`),re.isString(a)&&u.push(`domain=${a}`),l===!0&&u.push("secure"),re.isString(d)&&u.push(`SameSite=${d}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ZL(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function p$(e,t,n){let s=!ZL(t);return e&&(s||n==!1)?QL(e,t):t}const Jj=e=>e instanceof is?{...e}:e;function Da(e,t){t=t||{};const n={};function s(h,p,g,y){return re.isPlainObject(h)&&re.isPlainObject(p)?re.merge.call({caseless:y},h,p):re.isPlainObject(p)?re.merge({},p):re.isArray(p)?p.slice():p}function a(h,p,g,y){if(re.isUndefined(p)){if(!re.isUndefined(h))return s(void 0,h,g,y)}else return s(h,p,g,y)}function l(h,p){if(!re.isUndefined(p))return s(void 0,p)}function d(h,p){if(re.isUndefined(p)){if(!re.isUndefined(h))return s(void 0,h)}else return s(void 0,p)}function u(h,p,g){if(g in t)return s(h,p);if(g in e)return s(void 0,h)}const f={url:l,method:l,data:l,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:u,headers:(h,p,g)=>a(Jj(h),Jj(p),g,!0)};return re.forEach(Object.keys({...e,...t}),function(p){if(p==="__proto__"||p==="constructor"||p==="prototype")return;const g=re.hasOwnProp(f,p)?f[p]:a,y=g(e[p],t[p],p);re.isUndefined(y)&&g!==u||(n[p]=y)}),n}const g$=e=>{const t=Da({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:l,headers:d,auth:u}=t;if(t.headers=d=is.from(d),t.url=u$(p$(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&d.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),re.isFormData(n)){if(An.hasStandardBrowserEnv||An.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(re.isFunction(n.getHeaders)){const f=n.getHeaders(),h=["content-type","content-length"];Object.entries(f).forEach(([p,g])=>{h.includes(p.toLowerCase())&&d.set(p,g)})}}if(An.hasStandardBrowserEnv&&(s&&re.isFunction(s)&&(s=s(t)),s||s!==!1&&KL(t.url))){const f=a&&l&&XL.read(l);f&&d.set(a,f)}return t},JL=typeof XMLHttpRequest<"u",eF=JL&&function(e){return new Promise(function(n,s){const a=g$(e);let l=a.data;const d=is.from(a.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:h}=a,p,g,y,x,b;function w(){x&&x(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let S=new XMLHttpRequest;S.open(a.method.toUpperCase(),a.url,!0),S.timeout=a.timeout;function N(){if(!S)return;const E=is.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),L={data:!u||u==="text"||u==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:E,config:e,request:S};h$(function(O){n(O),w()},function(O){s(O),w()},L),S=null}"onloadend"in S?S.onloadend=N:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(N)},S.onabort=function(){S&&(s(new Ie("Request aborted",Ie.ECONNABORTED,e,S)),S=null)},S.onerror=function(M){const L=M&&M.message?M.message:"Network Error",R=new Ie(L,Ie.ERR_NETWORK,e,S);R.event=M||null,s(R),S=null},S.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const L=a.transitional||tb;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),s(new Ie(M,L.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,S)),S=null},l===void 0&&d.setContentType(null),"setRequestHeader"in S&&re.forEach(d.toJSON(),function(M,L){S.setRequestHeader(L,M)}),re.isUndefined(a.withCredentials)||(S.withCredentials=!!a.withCredentials),u&&u!=="json"&&(S.responseType=a.responseType),h&&([y,b]=gm(h,!0),S.addEventListener("progress",y)),f&&S.upload&&([g,x]=gm(f),S.upload.addEventListener("progress",g),S.upload.addEventListener("loadend",x)),(a.cancelToken||a.signal)&&(p=E=>{S&&(s(!E||E.type?new wd(null,e,S):E),S.abort(),S=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const C=GL(a.url);if(C&&An.protocols.indexOf(C)===-1){s(new Ie("Unsupported protocol "+C+":",Ie.ERR_BAD_REQUEST,e));return}S.send(l||null)})},tF=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,a;const l=function(h){if(!a){a=!0,u();const p=h instanceof Error?h:this.reason;s.abort(p instanceof Ie?p:new wd(p instanceof Error?p.message:p))}};let d=t&&setTimeout(()=>{d=null,l(new Ie(`timeout of ${t}ms exceeded`,Ie.ETIMEDOUT))},t);const u=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),e=null)};e.forEach(h=>h.addEventListener("abort",l));const{signal:f}=s;return f.unsubscribe=()=>re.asap(u),f}},nF=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,a;for(;s<n;)a=s+t,yield e.slice(s,a),s=a},sF=async function*(e,t){for await(const n of iF(e))yield*nF(n,t)},iF=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},ew=(e,t,n,s)=>{const a=sF(e,t);let l=0,d,u=f=>{d||(d=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:h,value:p}=await a.next();if(h){u(),f.close();return}let g=p.byteLength;if(n){let y=l+=g;n(y)}f.enqueue(new Uint8Array(p))}catch(h){throw u(h),h}},cancel(f){return u(f),a.return()}},{highWaterMark:2})},tw=64*1024,{isFunction:df}=re,rF=(({Request:e,Response:t})=>({Request:e,Response:t}))(re.global),{ReadableStream:nw,TextEncoder:sw}=re.global,iw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},aF=e=>{e=re.merge.call({skipUndefined:!0},rF,e);const{fetch:t,Request:n,Response:s}=e,a=t?df(t):typeof fetch=="function",l=df(n),d=df(s);if(!a)return!1;const u=a&&df(nw),f=a&&(typeof sw=="function"?(b=>w=>b.encode(w))(new sw):async b=>new Uint8Array(await new n(b).arrayBuffer())),h=l&&u&&iw(()=>{let b=!1;const w=new nw,S=new n(An.origin,{body:w,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return w.cancel(),b&&!S}),p=d&&u&&iw(()=>re.isReadableStream(new s("").body)),g={stream:p&&(b=>b.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!g[b]&&(g[b]=(w,S)=>{let N=w&&w[b];if(N)return N.call(w);throw new Ie(`Response type '${b}' is not supported`,Ie.ERR_NOT_SUPPORT,S)})});const y=async b=>{if(b==null)return 0;if(re.isBlob(b))return b.size;if(re.isSpecCompliantForm(b))return(await new n(An.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(re.isArrayBufferView(b)||re.isArrayBuffer(b))return b.byteLength;if(re.isURLSearchParams(b)&&(b=b+""),re.isString(b))return(await f(b)).byteLength},x=async(b,w)=>{const S=re.toFiniteNumber(b.getContentLength());return S??y(w)};return async b=>{let{url:w,method:S,data:N,signal:C,cancelToken:E,timeout:M,onDownloadProgress:L,onUploadProgress:R,responseType:O,headers:k,withCredentials:B="same-origin",fetchOptions:I}=g$(b),V=t||fetch;O=O?(O+"").toLowerCase():"text";let z=tF([C,E&&E.toAbortSignal()],M),K=null;const W=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let Q;try{if(R&&h&&S!=="get"&&S!=="head"&&(Q=await x(k,N))!==0){let T=new n(w,{method:"POST",body:N,duplex:"half"}),A;if(re.isFormData(N)&&(A=T.headers.get("content-type"))&&k.setContentType(A),T.body){const[Y,ee]=Zj(Q,gm(Qj(R)));N=ew(T.body,tw,Y,ee)}}re.isString(B)||(B=B?"include":"omit");const D=l&&"credentials"in n.prototype,H={...I,signal:z,method:S.toUpperCase(),headers:k.normalize().toJSON(),body:N,duplex:"half",credentials:D?B:void 0};K=l&&new n(w,H);let U=await(l?V(K,I):V(w,H));const Z=p&&(O==="stream"||O==="response");if(p&&(L||Z&&W)){const T={};["status","statusText","headers"].forEach(te=>{T[te]=U[te]});const A=re.toFiniteNumber(U.headers.get("content-length")),[Y,ee]=L&&Zj(A,gm(Qj(L),!0))||[];U=new s(ew(U.body,tw,Y,()=>{ee&&ee(),W&&W()}),T)}O=O||"text";let F=await g[re.findKey(g,O)||"text"](U,b);return!Z&&W&&W(),await new Promise((T,A)=>{h$(T,A,{data:F,headers:is.from(U.headers),status:U.status,statusText:U.statusText,config:b,request:K})})}catch(D){throw W&&W(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,b,K,D&&D.response),{cause:D.cause||D}):Ie.from(D,D&&D.code,b,K,D&&D.response)}}},oF=new Map,v$=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:a}=t,l=[s,a,n];let d=l.length,u=d,f,h,p=oF;for(;u--;)f=l[u],h=p.get(f),h===void 0&&p.set(f,h=u?new Map:aF(t)),p=h;return h};v$();const sb={http:SL,xhr:eF,fetch:{get:v$}};re.forEach(sb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rw=e=>`- ${e}`,lF=e=>re.isFunction(e)||e===null||e===!1;function cF(e,t){e=re.isArray(e)?e:[e];const{length:n}=e;let s,a;const l={};for(let d=0;d<n;d++){s=e[d];let u;if(a=s,!lF(s)&&(a=sb[(u=String(s)).toLowerCase()],a===void 0))throw new Ie(`Unknown adapter '${u}'`);
vendor: 5,282 bytes, lines 159-162
159if(a&&(re.isFunction(a)||(a=a.get(t))))break;l[u||"#"+d]=a}if(!a){const d=Object.entries(l).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?d.length>1?`since :
160`+d.map(rw).join(`
161`):" "+rw(d[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return a}const y$={getAdapter:cF,adapters:sb};function c0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wd(null,e)}function aw(e){return c0(e),e.headers=is.from(e.headers),e.data=l0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),y$.getAdapter(e.adapter||jd.adapter,e)(e).then(function(s){return c0(e),s.data=l0.call(e,e.transformResponse,s),s.headers=is.from(s.headers),s},function(s){return m$(s)||(c0(e),s&&s.response&&(s.response.data=l0.call(e,e.transformResponse,s.response),s.response.headers=is.from(s.response.headers))),Promise.reject(s)})}const b$="1.14.0",Km={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Km[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ow={};Km.transitional=function(t,n,s){function a(l,d){return"[Axios v"+b$+"] Transitional option '"+l+"'"+d+(s?". "+s:"")}return(l,d,u)=>{if(t===!1)throw new Ie(a(d," has been removed"+(n?" in "+n:"")),Ie.ERR_DEPRECATED);return n&&!ow[d]&&(ow[d]=!0,console.warn(a(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,d,u):!0}};Km.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function dF(e,t,n){if(typeof e!="object")throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let a=s.length;for(;a-- >0;){const l=s[a],d=t[l];if(d){const u=e[l],f=u===void 0||d(u,l,e);if(f!==!0)throw new Ie("option "+l+" must be "+f,Ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ie("Unknown option "+l,Ie.ERR_BAD_OPTION)}}const Hf={assertOptions:dF,validators:Km},Rs=Hf.validators;let Aa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Kj,response:new Kj}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=a.stack?a.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
162`+l):s.stack=l}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Da(this.defaults,n);const{transitional:s,paramsSerializer:a,headers:l}=n;s!==void 0&&Hf.assertOptions(s,{silentJSONParsing:Rs.transitional(Rs.boolean),forcedJSONParsing:Rs.transitional(Rs.boolean),clarifyTimeoutError:Rs.transitional(Rs.boolean),legacyInterceptorReqResOrdering:Rs.transitional(Rs.boolean)},!1),a!=null&&(re.isFunction(a)?n.paramsSerializer={serialize:a}:Hf.assertOptions(a,{encode:Rs.function,serialize:Rs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hf.assertOptions(n,{baseUrl:Rs.spelling("baseURL"),withXsrfToken:Rs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=l&&re.merge(l.common,l[n.method]);l&&re.forEach(["delete","get","head","post","put","patch","common"],b=>{delete l[b]}),n.headers=is.concat(d,l);const u=[];let f=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;f=f&&w.synchronous;const S=n.transitional||tb;S&&S.legacyInterceptorReqResOrdering?u.unshift(w.fulfilled,w.rejected):u.push(w.fulfilled,w.rejected)});const h=[];this.interceptors.response.forEach(function(w){h.push(w.fulfilled,w.rejected)});let p,g=0,y;if(!f){const b=[aw.bind(this),void 0];for(b.unshift(...u),b.push(...h),y=b.length,p=Promise.resolve(n);g<y;)p=p.then(b[g++],b[g++]);return p}y=u.length;let x=n;for(;g<y;){const b=u[g++],w=u[g++];try{x=b(x)}catch(S){w.call(this,S);break}}try{p=aw.call(this,x)}catch(b){return Promise.reject(b)}for(g=0,y=h.length;g<y;)p=p.then(h[g++],h[g++]);return p}getUri(t){t=Da(this.defaults,t);const n=p$(t.baseURL,t.url,t.allowAbsoluteUrls);return u$(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){Aa.prototype[t]=function(n,s){return this.request(Da(s||{},{method:t,url:n,data:(s||{}).data}))}});re.forEach(["post","put","patch"],function(t){function n(s){return function(l,d,u){return this.request(Da(u||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}Aa.prototype[t]=n(),Aa.prototype[t+"Form"]=n(!0)});let uF=class x${constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const s=this;this.promise.then(a=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](a);s._listeners=null}),this.promise.then=a=>{let l;const d=new Promise(u=>{s.subscribe(u),l=u}).then(a);return d.cancel=function(){s.unsubscribe(l)},d},t(function(l,d,u){s.reason||(s.reason=new wd(l,d,u),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
vendor: 8,883 bytes, line 162
162subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new x$(function(a){t=a}),cancel:t}}};function fF(e){return function(n){return e.apply(null,n)}}function mF(e){return re.isObject(e)&&e.isAxiosError===!0}const jv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jv).forEach(([e,t])=>{jv[t]=e});function _$(e){const t=new Aa(e),n=e$(Aa.prototype.request,t);return re.extend(n,Aa.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return _$(Da(e,a))},n}const Et=_$(jd);Et.Axios=Aa;Et.CanceledError=wd;Et.CancelToken=uF;Et.isCancel=m$;Et.VERSION=b$;Et.toFormData=Ym;Et.AxiosError=Ie;Et.Cancel=Et.CanceledError;Et.all=function(t){return Promise.all(t)};Et.spread=fF;Et.isAxiosError=mF;Et.mergeConfig=Da;Et.AxiosHeaders=is;Et.formToJSON=e=>f$(re.isHTMLForm(e)?new FormData(e):e);Et.getAdapter=y$.getAdapter;Et.HttpStatusCode=jv;Et.default=Et;const{Axios:YY,AxiosError:KY,CanceledError:XY,isCancel:ZY,CancelToken:QY,VERSION:JY,all:eK,Cancel:tK,isAxiosError:nK,spread:sK,toFormData:iK,AxiosHeaders:rK,HttpStatusCode:aK,formToJSON:oK,getAdapter:lK,mergeConfig:cK}=Et;var rl=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["S
162omalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],hF="react-international-phone-",j$=(...e)=>e.filter(t=>!!t).join(" ").trim(),pF=(...e)=>j$(...e).split(" ").map(t=>`${hF}${t}`).join(" "),$n=({addPrefix:e,rawClassNames:t})=>j$(pF(...e),...t),gF=({value:e,mask:t,maskSymbol:n,offset:s=0,trimNonMaskCharsLeftover:a=!1})=>{if(e.length<s)return e;let l=e.slice(0,s),d=e.slice(s),u=l,f=0;for(let h of t.split("")){if(f>=d.length){if(!a&&h!==n){u+=h;continue}break}h===n?(u+=d[f],f+=1):u+=h}return u},Mo=e=>e?/^\d+$/.test(e):!1,Xm=e=>e.replace(/\D/g,""),vF=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let s=e.getBoundingClientRect(),a=t.getBoundingClientRect(),l=a.top-s.top,d=s.bottom-a.bottom;l>=0&&d>=0||(Math.abs(l)<Math.abs(d)?e.scrollTop+=l:e.scrollTop-=d),e.style.display=n},yF=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),bF=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,s=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,a=e,l=h=>t.trimNonDigitsEnd?h.trim():h;if(!a)return s&&!a.length||n?l(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):l(a);if(a=Xm(a),a===t.dialCode&&!t.disableDialCodeAndPrefix)return l(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(a)&&!t.disableDialCodeAndPrefix)return l(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${a}`);if(!a.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return l(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(a.length<t.dialCode.length)return l(`${t.prefix}${a}`)}let d=()=>{let h=t.dialCode.length,p=a.slice(0,h),g=a.slice(h);return{phoneLeftSide:p,phoneRightSide:g}},{phoneLeftSide:u,phoneRightSide:f}=d();return u=`${t.prefix}${u}${t.charAfterDialCode}`,f=gF({value:f,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&f.length===0}),t.disableDialCodeAndPrefix&&(u=""),l(`${u}${f}`)},xF=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:s,leftOffset:a=0,deletion:l})=>{if(s<a)return a;if(!e)return n.length;let d=null;for(let p=s-1;p>=0;p-=1)if(Mo(t[p])){d=p;break}if(d===null){for(let p=0;p<t.length;p+=1)if(Mo(n[p]))return p;return t.length}let u=0;for(let p=0;p<d;p+=1)Mo(t[p])&&(u+=1);let f=0,h=0;for(let p=0;p<n.length&&(f+=1,Mo(n[p])&&(h+=1),!(h>=u+1));p+=1);if(l!=="backward")for(;!Mo(n[f])&&f<n.length;)f+=1;return f},qf=({phone:e,prefix:t})=>e?`${t}${Xm(e)}`:"";function wv({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:s,countries:a,prefix:l,charAfterDialCode:d,forceDialCode:u,disableDialCodeAndPrefix:f,defaultMask:h,countryGuessingEnabled:p,disableFormatting:g}){let y=e;f&&(y=y.startsWith(`${l}`)?y:`${l}${t.dialCode}${y}`);let x=p?AF({phone:y,countries:a,currentCountryIso2:t?.iso2}):void 0,b=x?.country??t,w=bF(y,{prefix:l,mask:EF({phone:y,country:b,defaultMask:h,disableFormatting:g}),maskChar:w$,dialCode:b.dialCode,trimNonDigitsEnd:s,charAfterDialCode:d,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:f}),S=p&&!x?.fullDialCodeMatch?t:b;return{phone:qf({phone:f?`${S.dialCode}${w}`:w,prefix:l}),inputValue:w,country:S}}var _F=e=>{if(e?.toLocaleLowerCase().includes("delete")??!1)return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"},jF=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:s,prefix:a,charAfterDialCode:l,forceDialCode:d,disableDialCodeAndPrefix:u,countryGuessingEnabled:f,defaultMask:h,disableFormatting:p,countries:g})=>{let y=e.nativeEvent,x=y.inputType,b=_F(x),w=!!x?.startsWith("insertFrom"),S=x==="insertText",N=y?.data||void 0,C=e.target.value,E=e.target.selectionStart??0;if(x?.includes("history"))return{inputValue:s,phone:qf({phone:s,prefix:a}),cursorPosition:s.length,country:t};if(S&&!Mo(N)&&C!==a)return{inputValue:s,phone:qf({phone:u?`${t.dialCode}${s}`:s,prefix:a}),cursorPosition:E-(N?.length??0),country:t};if(d&&!C.startsWith(`${a}${t.dialCode}`)&&!w){let k=C?s:`${a}${t.dialCode}${l}`;return{inputValue:k,phone:qf({phone:k,prefix:a}),cursorPosition:a.length+t.dialCode.length+l.length,country:t}}
vendor: 3,151 bytes, line 162
162let{phone:M,inputValue:L,country:R}=wv({value:C,country:t,trimNonDigitsEnd:b==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:f,countries:g,prefix:a,charAfterDialCode:l,forceDialCode:d,disableDialCodeAndPrefix:u,disableFormatting:p,defaultMask:h}),O=xF({cursorPositionAfterInput:E,phoneBeforeInput:s,phoneAfterInput:C,phoneAfterFormatted:L,leftOffset:d?a.length+t.dialCode.length+l.length:0,deletion:b});return{phone:M,inputValue:L,cursorPosition:O,country:R}},wF=(e,t)=>{let n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let a of n)if(e[a]!==t[a])return!1;return!0},SF=()=>{let e=j.useRef(),t=j.useRef(Date.now());return{check:()=>{let n=Date.now(),s=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,s}}},NF={size:20,overrideLastItemDebounceMS:-1};function CF(e,t){let{size:n,overrideLastItemDebounceMS:s,onChange:a}={...NF,...t},[l,d]=j.useState(e),[u,f]=j.useState([l]),[h,p]=j.useState(0),g=SF();return[l,(y,x)=>{if(typeof y=="object"&&typeof l=="object"&&wF(y,l)||y===l)return;let b=s>0,w=g.check(),S=b&&w!==void 0?w>s:!0;if(x?.overrideLastItem!==void 0?x.overrideLastItem:!S)f(N=>[...N.slice(0,h),y]);else{let N=u.length>=n;f(C=>[...C.slice(N?1:0,h+1),y]),N||p(C=>C+1)}d(y),a?.(y)},()=>{if(h<=0)return{success:!1};let y=u[h-1];return d(y),p(x=>x-1),a?.(y),{success:!0,value:y}},()=>{if(h+1>=u.length)return{success:!1};let y=u[h+1];return d(y),p(x=>x+1),a?.(y),{success:!0,value:y}}]}var w$=".",Ps={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:rl},$F=({defaultCountry:e=Ps.defaultCountry,value:t=Ps.value,countries:n=Ps.countries,prefix:s=Ps.prefix,defaultMask:a=Ps.defaultMask,charAfterDialCode:l=Ps.charAfterDialCode,historySaveDebounceMS:d=Ps.historySaveDebounceMS,disableCountryGuess:u=Ps.disableCountryGuess,disableDialCodePrefill:f=Ps.disableDialCodePrefill,forceDialCode:h=Ps.forceDialCode,disableDialCodeAndPrefix:p=Ps.disableDialCodeAndPrefix,disableFormatting:g=Ps.disableFormatting,onChange:y,inputRef:x})=>{let b={countries:n,prefix:s,charAfterDialCode:l,forceDialCode:p?!1:h,disableDialCodeAndPrefix:p,defaultMask:a,countryGuessingEnabled:!u,disableFormatting:g},w=j.useRef(null),S=x||w,N=W=>{Promise.resolve().then(()=>{typeof window>"u"||S.current!==document?.activeElement||S.current?.setSelectionRange(W,W)})},[{phone:C,inputValue:E,country:M},L,R,O]=CF(()=>{let W=Fo({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let Q=W||Fo({value:"us",field:"iso2",countries:n}),{phone:D,inputValue:H,country:U}=wv({value:t,country:Q,insertDialCodeOnEmpty:!f,...b});return N(H.length),{phone:D,inputValue:H,country:U.iso2}},{overrideLastItemDebounceMS:d,onChange:({inputValue:W,phone:Q,country:D})=>{if(!y)return;let H=k(D);y({phone:Q,inputValue:W,country:H})}}),k=j.useCallback(W=>Fo({value:W,field:"iso2",countries:n}),[n]),B=j.useMemo(()=>k(M),[M,k]);j.useEffect(()=>{let W=S.current;if(!W)return;let Q=D=>
vendor: 4,177 bytes, line 162
162{if(!D.key)return;let H=D.ctrlKey,U=D.metaKey,Z=D.shiftKey;if(D.key.toLowerCase()==="z"){if(yF()){if(!U)return}else if(!H)return;Z?O():R()}};return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[S,R,O]);let I=W=>{W.preventDefault();let{phone:Q,inputValue:D,country:H,cursorPosition:U}=jF(W,{country:B,phoneBeforeInput:E,insertDialCodeOnEmpty:!1,...b});return L({inputValue:D,phone:Q,country:H.iso2}),N(U),t},V=(W,Q={focusOnInput:!1})=>{let D=Fo({value:W,field:"iso2",countries:n});if(!D){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let H=p?"":`${s}${D.dialCode}${l}`;L({inputValue:H,phone:`${s}${D.dialCode}`,country:D.iso2}),Q.focusOnInput&&Promise.resolve().then(()=>{S.current?.focus()})},[z,K]=j.useState(!1);return j.useEffect(()=>{if(!z){K(!0),t!==C&&y?.({inputValue:E,phone:C,country:B});return}if(t===C)return;let{phone:W,inputValue:Q,country:D}=wv({value:t,country:B,insertDialCodeOnEmpty:!f,...b});L({phone:W,inputValue:Q,country:D.iso2})},[t]),{phone:C,inputValue:E,country:B,setCountry:V,handlePhoneValueChange:I,inputRef:S}},EF=({phone:e,country:t,defaultMask:n="............",disableFormatting:s=!1})=>{let a=t.format,l=u=>s?u.replace(new RegExp(`[^${w$}]`,"g"),""):u;if(!a)return l(n);if(typeof a=="string")return l(a);if(!a.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),l(n);let d=Object.keys(a).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let f=new RegExp(u.substring(1,u.length-1)),h=e.replace(t.dialCode,"");return f.test(Xm(h))});return l(d?a[d]:a.default)},fi=e=>{let[t,n,s,a,l,d]=e;return{name:t,iso2:n,dialCode:s,format:a,priority:l,areaCodes:d}},TF=e=>`Field "${e}" is not supported`,Fo=({field:e,value:t,countries:n=rl})=>{if(["priority"].includes(e))throw new Error(TF(e));let s=n.find(a=>{let l=fi(a);return t===l[e]});if(s)return fi(s)},AF=({phone:e,countries:t=rl,currentCountryIso2:n})=>{let s={country:void 0,fullDialCodeMatch:!1};if(!e)return s;let a=Xm(e);if(!a)return s;let l=s,d=({country:u,fullDialCodeMatch:f})=>{let h=u.dialCode===l.country?.dialCode,p=(u.priority??0)<(l.country?.priority??0);(!h||p)&&(l={country:u,fullDialCodeMatch:f})};for(let u of t){let f=fi(u),{dialCode:h,areaCodes:p}=f;if(a.startsWith(h)){let g=l.country?Number(h)>=Number(l.country.dialCode):!0;if(p){let y=a.substring(h.length);for(let x of p)if(y.startsWith(x))return{country:f,fullDialCodeMatch:!0}}(g||h===a||!l.fullDialCodeMatch)&&d({country:f,fullDialCodeMatch:!0})}l.fullDialCodeMatch||a.length<h.length&&h.startsWith(a)&&(!l.country||Number(h)<=Number(l.country.dialCode))&&d({country:f,fullDialCodeMatch:!1})}if(n){let u=Fo({value:n,field:"iso2",countries:t});if(!u)return l;let f=u?(h=>{if(!h?.areaCodes)return!1;let p=a.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(p))})(u):!1;l&&l.country?.dialCode===u.dialCode&&l.country!==u&&l.fullDialCodeMatch&&(!u.areaCodes||f)&&(l={country:u,fullDialCodeMatch:!0})}return l},kF=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},MF="abcdefghijklmnopqrstuvwxyz",OF="1f1e6",lw=MF.split("").reduce((e,t,n)=>({...e,[t]:kF(OF,n)}),{}),RF=e=>[lw[e[0]],lw[e[1]]].join("-"),vm=({iso2:e,size:t,src:n,protocol:s="https",disableLazyLoading:a,className:l,style:d,...u})=>{if(!e)return ye.createElement("img",{className:$n({addPrefix:["flag-emoji"],rawClassNames:[l]}),width:t,height:t,...u});let f=()=>{if(n)return n;let h=RF(e);return`${s}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${h}.svg`};return ye.createElement("img",{className:$n({addPrefix:["flag-emoji"],rawClassNames:[l]}),src:f(),width:t,height:t,draggable:!1,"data-country":e,loading:a?void 0:"lazy",style:{width:t,height:t,...d},alt:"",...u})},PF=1e3,DF=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:s=rl,preferredCountries:a=[],flags:l,onSelect:d,onClose:u,...f})=>{let h=j.useRef(null),p=j.useRef(),g=j.useMemo(()=>{if(!a||!a.length)return s;let R=[],O=[...s];for(let k of a){let B=O.findIndex(I=>fi(I).iso2===k);
vendor: 5,301 bytes, line 162
162if(B!==-1){let I=O.splice(B,1)[0];R.push(I)}}return R.concat(O)},[s,a]),y=j.useRef({updatedAt:void 0,value:""}),x=R=>{let O=y.current.updatedAt&&new Date().getTime()-y.current.updatedAt.getTime()>PF;y.current={value:O?R:`${y.current.value}${R}`,updatedAt:new Date};let k=g.findIndex(B=>fi(B).name.toLowerCase().startsWith(y.current.value));k!==-1&&S(k)},b=j.useCallback(R=>g.findIndex(O=>fi(O).iso2===R),[g]),[w,S]=j.useState(b(n)),N=()=>{p.current!==n&&S(b(n))},C=j.useCallback(R=>{S(b(R.iso2)),d?.(R)},[d,b]),E=R=>{let O=g.length-1,k=B=>R==="prev"?B-1:R==="next"?B+1:R==="last"?O:0;S(B=>{let I=k(B);return I<0?0:I>O?O:I})},M=R=>{if(R.stopPropagation(),R.key==="Enter"){R.preventDefault();let O=fi(g[w]);C(O);return}if(R.key==="Escape"){u?.();return}if(R.key==="ArrowUp"){R.preventDefault(),E("prev");return}if(R.key==="ArrowDown"){R.preventDefault(),E("next");return}if(R.key==="PageUp"){R.preventDefault(),E("first");return}if(R.key==="PageDown"){R.preventDefault(),E("last");return}R.key===" "&&R.preventDefault(),R.key.length===1&&!R.altKey&&!R.ctrlKey&&!R.metaKey&&x(R.key.toLocaleLowerCase())},L=j.useCallback(()=>{if(!h.current||w===void 0)return;let R=fi(g[w]).iso2;if(R===p.current)return;let O=h.current.querySelector(`[data-country="${R}"]`);O&&(vF(h.current,O),p.current=R)},[w,g]);return j.useEffect(()=>{L()},[w,L]),j.useEffect(()=>{h.current&&(e?h.current.focus():N())},[e]),j.useEffect(()=>{N()},[n]),ye.createElement("ul",{ref:h,role:"listbox",className:$n({addPrefix:["country-selector-dropdown"],rawClassNames:[f.className]}),style:{display:e?"block":"none",...f.style},onKeyDown:M,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${fi(g[w]).iso2}-option`},g.map((R,O)=>{let k=fi(R),B=k.iso2===n,I=O===w,V=a.includes(k.iso2),z=O===a.length-1,K=l?.find(W=>W.iso2===k.iso2);return ye.createElement(ye.Fragment,{key:k.iso2},ye.createElement("li",{"data-country":k.iso2,role:"option","aria-selected":B,"aria-label":`${k.name} ${t}${k.dialCode}`,id:`react-international-phone__${k.iso2}-option`,className:$n({addPrefix:["country-selector-dropdown__list-item",V&&"country-selector-dropdown__list-item--preferred",B&&"country-selector-dropdown__list-item--selected",I&&"country-selector-dropdown__list-item--focused"],rawClassNames:[f.listItemClassName,V&&f.listItemPreferredClassName,B&&f.listItemSelectedClassName,I&&f.listItemFocusedClassName]}),onClick:()=>C(k),style:f.listItemStyle,title:k.name},ye.createElement(vm,{iso2:k.iso2,src:K?.src,className:$n({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[f.listItemFlagClassName]}),style:f.listItemFlagStyle}),ye.createElement("span",{className:$n({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[f.listItemCountryNameClassName]}),style:f.listItemCountryNameStyle},k.name),ye.createElement("span",{className:$n({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[f.listItemDialCodeClassName]}),style:f.listItemDialCodeStyle},t,k.dialCode)),z?ye.createElement("hr",{className:$n({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[f.preferredListDividerClassName]}),style:f.preferredListDividerStyle}):null)}))},LF=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:s,countries:a=rl,preferredCountries:l=[],flags:d,renderButtonWrapper:u,...f})=>{let[h,p]=j.useState(!1),g=j.useMemo(()=>{if(e)return Fo({value:e,field:"iso2",countries:a})},[a,e]),y=j.useRef(null),x=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),p(!0))},b=()=>{let w={title:g?.name,onClick:()=>p(N=>!N),onMouseDown:N=>N.preventDefault(),onKeyDown:x,disabled:s||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":h},S=ye.createElement("div",{className:$n({addPrefix:["country-selector-button__button-content"],rawClassNames:[f.buttonContentWrapperClassName]}),style:f.buttonContentWrapperStyle},ye.createElement(vm,{iso2:e,src:d?.find(N=>N.iso2===e)?.src,className:$n({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[f.flagClassName]}),style:{visibility:e?"visible":"hidden",...f.flagStyle}}),!s&&ye.createElement("div",{className:$n({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",h&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[f.dropdownArrowClassName]}),style:f.dropdownArrowStyle}));return u?u({children:S,rootProps:w}):ye.createElement("button",{...w,type:"button",className:$n({addPrefix:["country-selector-button",h&&"country-selector-button--active",n&&"country-selector-button--disabled",s&&"country-selector-button--hide-dropdown"],rawClassNames:[f.buttonClassName]}),"data-country":e,style:f.buttonStyle},S)};return ye.createElement("div",{className:$n({addPrefix:["country-selector"],rawClassNames:[f.className]}),style:f.style,ref:y},b(),ye.createElement(DF,{show:h,countries:a,preferredCountries:l,flags:d,onSelect:w=>{p(!1),t?.(w)},selectedCountry:e,onClose:()=>{p(!1)},...f.dropdownStyleProps}))},FF=({dialCode:e,prefix:t,disabled:n,style:s,className:a})=>ye.createElement("div",{className:$n({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[a]}),style:s},`${t}${e}
162`),S$=j.forwardRef(({value:e,onChange:t,countries:n=rl,preferredCountries:s=[],hideDropdown:a,showDisabledDialCodeAndPrefix:l,disableFocusAfterCountrySelect:d,flags:u,style:f,className:h,inputStyle:p,inputClassName:g,countrySelectorStyleProps:y,dialCodePreviewStyleProps:x,inputProps:b,placeholder:w,disabled:S,name:N,onFocus:C,onBlur:E,required:M,autoFocus:L,...R},O)=>{let{phone:k,inputValue:B,inputRef:I,country:V,setCountry:z,handlePhoneValueChange:K}=$F({value:e,countries:n,...R,onChange:Q=>{t?.(Q.phone,{country:Q.country,inputValue:Q.inputValue})}}),W=R.disableDialCodeAndPrefix&&l&&V?.dialCode;return j.useImperativeHandle(O,()=>I.current?Object.assign(I.current,{setCountry:z,state:{phone:k,inputValue:B,country:V}}):null,[I,z,k,B,V]),ye.createElement("div",{ref:O,className:$n({addPrefix:["input-container"],rawClassNames:[h]}),style:f},ye.createElement(LF,{onSelect:Q=>z(Q.iso2,{focusOnInput:!d}),flags:u,selectedCountry:V.iso2,countries:n,preferredCountries:s,disabled:S,hideDropdown:a,...y}),W&&ye.createElement(FF,{dialCode:V.dialCode,prefix:R.prefix??"+",disabled:S,...x}),ye.createElement("input",{onChange:K,value:B,type:"tel",ref:I,className:$n({addPrefix:["input",S&&"input--disabled"],rawClassNames:[g]}),placeholder:w,disabled:S,style:p,name:N,onFocus:C,onBlur:E,autoFocus:L,required:M,...b}))});function Zm({id:e,value:t,onChange:n,onBlur:s,className:a="auth-form__phone",hasError:l=!1,defaultCountry:d="lt",inputProps:u={}}){const f=`${a}${l?` ${a}--error`:""}`;return i.jsx("div",{className:f,children:i.jsx(S$,{inputProps:{id:e,...u},defaultCountry:d,forceDialCode:!0,disableDialCodePrefill:!1,value:t,onChange:n,onBlur:s})})}Zm.propTypes={id:q.string,value:q.string,onChange:q.func.isRequired,onBlur:q.func,className:q.string,hasError:q.bool,defaultCountry:q.string,inputProps:q.object};const IF={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46
vendor: 10,172 bytes, line 162
162])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}
vendor: 15,256 bytes, line 162
162|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-57
162-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
162))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6
vendor: 17,388 bytes, line 162
162]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{
1623})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}
162(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
162)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[0-79]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
162)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function BF(e,t){var n=Array.prototype.slice.call(t);return n.push(IF),e.apply(this,n)}function cw(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),s=t[0].split("."),a=0;a<3;a++){var l=Number(n[a]),d=Number(s[a]);if(l>d)return 1;if(d>l)return-1;if(!isNaN(l)&&isNaN(d))return 1;if(isNaN(l)&&!isNaN(d))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var zF={}.constructor;function Uo(e){return e!=null&&e.constructor===zF}function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function Qm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VF(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,UF(s.key),s)}}function Jm(e,t,n){return t&&VF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UF(e){var t=HF(e,"string");return Qo(t)=="symbol"?t:t+""}function HF(e,t){if(Qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Qo(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qF="1.2.0",GF="1.7.35",dw=" ext. ",WF=/^\d+$/,On=(function(){function e(t){Qm(this,e),N$(t),this.metadata=t,C$.call(this,t)}return Jm(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var s=this.countryCallingCodes()[n];if(s&&s.length===1&&s[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,s){if(n&&WF.test(n)&&(s=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new uw(this.getCountryMetadata(n),this)}else if(s){if(!this.hasCallingCode(s))throw new Error("Unknown calling code: ".concat(s));this.numberingPlan=new uw(this.getNumberingPlanMetadata(s),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var s=this.countryCallingCodes()[n];if(s)return s.length===1&&s[0].length===3?void 0:s}},{key:"getCountryCodeForCallingCode",value:function(n){var s=this.getCountryCodesForCallingCode(n);if(s)return s[0]}},{key:"getNumberingPlanMetadata",value:function(n){var s=this.getCountryCodeForCallingCode(n);if(s)return this.getCountryMetadata(s);if(this.nonGeographic()){var a=this.nonGeographic()[n];if(a)return a}else{var l=this.countryCallingCodes()[n];if(l&&l.length===1&&l[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),uw=(function(){function e(t,n){Qm(this,e),this.globalMetadataObject=n,this.metadata=t,C$.call(this,n.metadata)}return Jm(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,s=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return s.map(function(a){return new YF(a,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&fw(this.types(),n))return new XF(fw(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?dw:this.metadata[13]||dw}}])})(),YF=(function(){function e(t,n){Qm(this,e),this._format=t,this.metadata=n}return Jm(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!KF.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),KF=/^\(?\$1\)?$/,XF=(function(){function e(t,n){Qm(this,e),this.type=t,this.metadata=n}return Jm(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 26,052 bytes, lines 162-166
162ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function fw(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function N$(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Uo(e)||!Uo(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Uo(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ZF(e)+": "+e,"."))}var ZF=function(t){return Qo(t)};function ib(e,t){if(t=new On(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function QF(e,t){return t.countries.hasOwnProperty(e)}function C$(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?cw(t,qF)===-1?this.v2=!0:cw(t,GF)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function rb(e,t,n){return JF(e,t,void 0,n)}function JF(e,t,n,s){t&&(s=new On(s.metadata),s.selectNumberingPlan(t));var a=s.type(n),l=a&&a.possibleLengths()||s.possibleLengths();if(!l)return"IS_POSSIBLE";var d=e.length,u=l[0];return u===d?"IS_POSSIBLE":u>d?"TOO_SHORT":l[l.length-1]<d?"TOO_LONG":l.indexOf(d,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function eI(e,t,n){if(t===void 0&&(t={}),n=new On(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return $$(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function $$(e,t,n){switch(rb(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function Qi(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function tI(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=nI(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
163In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nI(e,t){if(e){if(typeof e=="string")return mw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mw(e,t):void 0}}function mw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}var sI=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ab(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new On(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var s=t.v2?e.nationalNumber:e.phone;if(Qi(s,n.nationalNumberPattern())){if(d0(s,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||d0(s,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=tI(sI),l;!(l=a()).done;){var d=l.value;if(d0(s,d,n))return d}}}}function d0(e,t,n){var s=n.type(t);return!s||!s.pattern()||s.possibleLengths()&&s.possibleLengths().indexOf(e.length)<0?!1:Qi(e,s.pattern())}function iI(e,t,n){if(t=t||{},n=new On(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return ab(e,t,n.metadata)!==void 0;var s=t.v2?e.nationalNumber:e.phone;return Qi(s,n.nationalNumberPattern())}function rI(e,t,n){var s=new On(n),a=s.getCountryCodesForCallingCode(e);return a?a.filter(function(l){return aI(t,l,n)}):[]}function aI(e,t,n){var s=new On(n);return s.selectNumberingPlan(t),s.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ob=2,oI=17,lI=3,ti="0-90-9٠-٩۰-۹",cI="-‐-―−ー-",dI="//",uI="..",fI="  ­​⁠ ",mI="()()[]\\[\\]",hI="~⁓∼~",ym="".concat(cI).concat(dI).concat(uI).concat(fI).concat(mI).concat(hI),lb="++",pI=new RegExp("(["+ti+"])");function gI(e,t,n,s){if(t){var a=new On(s);a.selectNumberingPlan(t,n);var l=new RegExp(a.IDDPrefix());if(e.search(l)===0){e=e.slice(e.match(l)[0].length);var d=e.match(pI);if(!(d&&d[1]!=null&&d[1].length>0&&d[1]==="0"))return e}}}function vI(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),s=n.exec(e);if(s){var a,l,d=s.length-1,u=d>0&&s[d];if(t.nationalPrefixTransformRule()&&u)a=e.replace(n,t.nationalPrefixTransformRule()),d>1&&(l=s[1]);else{var f=s[0];a=e.slice(f.length),u&&(l=s[1])}var h;if(u){var p=e.indexOf(s[1]),g=e.slice(0,p);g===t.numberingPlan.nationalPrefix()&&(h=t.numberingPlan.nationalPrefix())}else h=s[0];return{nationalNumber:a,nationalPrefix:h,carrierCode:l}}}return{nationalNumber:e}}function yI(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=bI(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
164In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bI(e,t){if(e){if(typeof e=="string")return hw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hw(e,t):void 0}}function hw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function xI(e,t){var n=t.countries,s=t.metadata;s=new On(s);for(var a=yI(n),l;!(l=a()).done;){var d=l.value;if(s.selectNumberingPlan(d),s.leadingDigits()){if(e&&e.search(s.leadingDigits())===0)return d}else if(ab({phone:e,country:d},void 0,s.metadata))return d}}function E$(e,t){var n=t.nationalNumber,s=t.metadata,a=s.getCountryCodesForCallingCode(e);if(a)return a.length===1?a[0]:xI(n,{countries:a,metadata:s.metadata})}function Sv(e,t,n){var s=vI(e,n),a=s.carrierCode,l=s.nationalNumber;if(l!==e){if(!_I(e,l,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=E$(n.numberingPlan.callingCode(),{nationalNumber:l,metadata:n})),!jI(l,t,n)))return{nationalNumber:e}}return{nationalNumber:l,carrierCode:a}}function _I(e,t,n){return!(Qi(e,n.nationalNumberPattern())&&!Qi(t,n.nationalNumberPattern()))}function jI(e,t,n){switch(rb(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function wI(e,t,n,s,a){var l=n?ib(n,a):s;if(e.indexOf(l)===0){a=new On(a),a.selectNumberingPlan(n,l);var d=e.slice(l.length),u=Sv(d,t,a),f=u.nationalNumber,h=Sv(e,t,a),p=h.nationalNumber;if(!Qi(p,a.nationalNumberPattern())&&Qi(f,a.nationalNumberPattern())||rb(p,t,a)==="TOO_LONG")return{countryCallingCode:l,number:d}}return{number:e}}function T$(e,t,n,s,a){if(!e)return{};var l;if(e[0]!=="+"){var d=gI(e,n,s,a);if(d&&d!==e)l=!0,e="+"+d;else{if(n||s){var u=wI(e,t,n,s,a),f=u.countryCallingCode,h=u.number;if(f)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:f,number:h}}return{number:e}}}if(e[1]==="0")return{};a=new On(a);for(var p=2;p-1<=lI&&p<=e.length;){var g=e.slice(1,p);if(a.hasCallingCode(g))return a.selectNumberingPlan(g),{countryCallingCodeSource:l?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:g,number:e.slice(p)};p++}return{}}function SI(e){return e.replace(new RegExp("[".concat(ym,"]+"),"g")," ").trim()}var NI=/(\$\d)/;function CI(e,t,n){var s=n.useInternationalFormat,a=n.withNationalPrefix,l=e.replace(new RegExp(t.pattern()),s?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(NI,t.nationalPrefixFormattingRule()):t.format());return s?SI(l):l}var $I=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function EI(e,t,n){var s=new On(n);if(s.selectNumberingPlan(e,t),s.defaultIDDPrefix())return s.defaultIDDPrefix();if($I.test(s.IDDPrefix()))return s.IDDPrefix()}var TI=";ext=",Co=function(t){return"([".concat(ti,"]{1,").concat(t,"})")};function A$(e){var t="20",n="15",s="9",a="6",l="[  \\t,]*",d="[:\\..]?[  \\t,-]*",u="#?",f="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",p="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",x=TI+Co(t),b=l+f+d+Co(t)+u,w=l+h+d+Co(s)+u,S=p+Co(a)+"#",N=g+y+d+Co(n)+u,C=g+"(?:,)+"+d+Co(s)+u;return x+"|"+b+"|"+w+"|"+S+"|"+N+"|"+C}var AI="["+ti+"]{"+ob+"}",kI="["+lb+"]{0,1}(?:["+ym+"]*["+ti+"]){3,}["+ym+ti+"]*",MI=new RegExp("^["+lb+"]{0,1}(?:["+ym+"]*["+ti+"]){1,2}$","i"),OI=kI+"(?:"+A$()+")?",RI=new RegExp("^"+AI+"$|^"+OI+"$","i");function PI(e){return e.length>=ob&&RI.test(e)}function DI(e){return MI.test(e)}function LI(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var pw={formatExtension:function(t,n,s){return"".concat(t).concat(s.ext()).concat(n)}};function FI(e,t,n,s){if(n?n=zI({},pw,n):n=pw,s=new On(s),e.country&&e.country!=="001"){if(!s.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));s.selectNumberingPlan(e.country)}else if(e.countryCallingCode)s.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=s.countryCallingCode(),l=n.v2?e.nationalNumber:e.phone,d;switch(t){case"NATIONAL":return l?(d=bm(l,e.carrierCode,"NATIONAL",s,n),u0(d,e.ext,s,n.formatExtension)):"";case"INTERNATIONAL":return l?(d=bm(l,null,"INTERNATIONAL",s,n),d="+".concat(a," ").concat(d),u0(d,e.ext,s,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(l);case"RFC3966":return LI({number:"+".concat(a).concat(l),ext:e.ext});case"IDD":if(!n.fromCountry)return;var u=BI(l,e.carrierCode,a,n.fromCountry,s);return u?u0(u,e.ext,s,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function bm(e,t,n,s,a){var l=II(s.formats(),e);return l?CI(e,l,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(l.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1)}):e}function II(e,t){return VI(e,function(n){if(n.leadingDigitsPatterns().length>0){var s=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(s)!==0)return!1}return Qi(t,n.pattern())})}function u0(e,t,n,s){return t?s(e,t,n):e}function BI(e,t,n,s,a){var l=ib(s,a.metadata);if(l===n){var d=bm(e,t,"NATIONAL",a);return n==="1"?n+" "+d:d}var u=EI(s,void 0,a.metadata);if(u)return"".concat(u," ").concat(n," ").concat(bm(e,null,"INTERNATIONAL",a))}function zI(){for(var e=1,t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(;e<n.length;){if(n[e])for(var a in n[e])n[0][a]=n[e][a];e++}return n[0]}function VI(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Zc(e){"@babel/helpers - typeof";return Zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zc(e)}function gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function vw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gw(Object(n),!0).forEach(function(s){UI(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function UI(e,t,n){return(t=k$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qI(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,k$(s.key),s)}}function GI(e,t,n){return t&&qI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k$(e){var t=WI(e,"string");return Zc(t)=="symbol"?t:t+""}function WI(e,t){if(Zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(Zc(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YI=(function(){function e(t,n,s){if(HI(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Uo(n)&&Uo(n.countries)){s=n;var a=t;if(!ZI.test(a))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var l=T$(a,void 0,void 0,void 0,s),d=l.countryCallingCode,u=l.number;if(n=u,t=d,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");N$(s);var f=XI(t,s),h=f.country,p=f.countryCallingCode;this.country=h,this.countryCallingCode=p,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return s}}return GI(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:rI(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return eI(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return iI(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new On(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return ab(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,s){return FI(this,n,s?vw(vw({},s),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),KI=function(t){return/^[A-Z]{2}$/.test(t)};function XI(e,t){var n,s,a=new On(t);return KI(e)?(n=e,a.selectNumberingPlan(n),s=a.countryCallingCode()):s=e,{country:n,countryCallingCode:s}}var ZI=/^\+\d+$/;function Nv(e){"@babel/helpers - typeof";return Nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nv(e)}function QI(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function JI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eB(e,t,n){return t=Jc(t),tB(e,cb()?Reflect.construct(t,n||[],Jc(e).constructor):t.apply(e,n))}function tB(e,t){if(t&&(Nv(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nB(e)}function nB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qc(e,t)}function Cv(e){var t=typeof Map=="function"?new Map:void 0;return Cv=function(s){if(s===null||!rB(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(s))return t.get(s);t.set(s,a)}function a(){return iB(s,arguments,Jc(this).constructor)}return a.prototype=Object.create(s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Qc(a,s)},Cv(e)}function iB(e,t,n){if(cb())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,t);var a=new(e.bind.apply(e,s));return n&&Qc(a,n.prototype),a}function cb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cb=function(){return!!e})()}function rB(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Qc(e,t){return Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},Qc(e,t)}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jc(e)}var Gi=(function(e){function t(n){var s;return JI(this,t),s=eB(this,t,[n]),Object.setPrototypeOf(s,t.prototype),s.name=s.constructor.name,s}return sB(t,e),QI(t)})(Cv(Error)),yw=new RegExp("(?:"+A$()+")$","i");function aB(e){var t=e.search(yw);if(t<0)return{};for(var n=e.slice(0,t),s=e.match(yw),a=1;a<s.length;){if(s[a])return{number:n,ext:s[a]};a++}}var oB={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function lB(e){return oB[e]}function cB(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=dB(e))||t){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
165In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dB(e,t){if(e){if(typeof e=="string")return bw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bw(e,t):void 0}}function bw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function xw(e){for(var t="",n=cB(e.split("")),s;!(s=n()).done;){var a=s.value;t+=uB(a,t)||""}return t}function uB(e,t,n){return e==="+"?t?void 0:"+":lB(e)}var M$="+",fB="[\\-\\.\\(\\)]?",_w="(["+ti+"]|"+fB+")",mB="^\\"+M$+_w+"*["+ti+"]"+_w+"*$",hB=new RegExp(mB,"g"),$v=ti,pB="["+$v+"]+((\\-)*["+$v+"])*",gB="a-zA-Z",vB="["+gB+"]+((\\-)*["+$v+"])*",yB="^("+pB+"\\.)*"+vB+"\\.?$",bB=new RegExp(yB,"g"),jw="tel:",Ev=";phone-context=",xB=";isub=";function _B(e){var t=e.indexOf(Ev);if(t<0)return null;var n=t+Ev.length;if(n>=e.length)return"";var s=e.indexOf(";",n);return s>=0?e.substring(n,s):e.substring(n)}function jB(e){return e===null?!0:e.length===0?!1:hB.test(e)||bB.test(e)}function wB(e,t){var n=t.extractFormattedPhoneNumber,s=_B(e);if(!jB(s))throw new Gi("NOT_A_NUMBER");var a;if(s===null)a=n(e)||"";else{a="",s.charAt(0)===M$&&(a+=s);var l=e.indexOf(jw),d;l>=0?d=l+jw.length:d=0;var u=e.indexOf(Ev);a+=e.substring(d,u)}var f=a.indexOf(xB);if(f>0&&(a=a.substring(0,f)),a!=="")return a}var SB=250,NB=new RegExp("["+lb+ti+"]"),CB=new RegExp("[^"+ti+"#]+$");function $B(e,t,n){if(t=t||{},n=new On(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Gi("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var s=TB(e,t.v2,t.extract),a=s.number,l=s.ext,d=s.error;if(!a){if(t.v2)throw d==="TOO_SHORT"?new Gi("TOO_SHORT"):new Gi("NOT_A_NUMBER");return{}}var u=kB(a,t.defaultCountry,t.defaultCallingCode,n),f=u.country,h=u.nationalNumber,p=u.countryCallingCode,g=u.countryCallingCodeSource,y=u.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Gi("INVALID_COUNTRY");return{}}if(!h||h.length<ob){if(t.v2)throw new Gi("TOO_SHORT");return{}}if(h.length>oI){if(t.v2)throw new Gi("TOO_LONG");return{}}if(t.v2){var x=new YI(p,h,n.metadata);return f&&(x.country=f),y&&(x.carrierCode=y),l&&(x.ext=l),x.__countryCallingCodeSource=g,x}var b=(t.extended?n.hasSelectedNumberingPlan():f)?Qi(h,n.nationalNumberPattern()):!1;return t.extended?{country:f,countryCallingCode:p,carrierCode:y,valid:b,possible:b?!0:!!(t.extended===!0&&n.possibleLengths()&&$$(h,f,n)),phone:h,ext:l}:b?AB(f,h,l):{}}function EB(e,t,n){if(e){if(e.length>SB){if(n)throw new Gi("TOO_LONG");return}if(t===!1)return e;var s=e.search(NB);if(!(s<0))return e.slice(s).replace(CB,"")}}function TB(e,t,n){var s=wB(e,{extractFormattedPhoneNumber:function(d){return EB(d,n,t)}});if(!s)return{};if(!PI(s))return DI(s)?{error:"TOO_SHORT"}:{};var a=aB(s);return a.ext?a:{number:s}}function AB(e,t,n){var s={country:e,phone:t};return n&&(s.ext=n),s}function kB(e,t,n,s){var a=T$(xw(e),void 0,t,n,s.metadata),l=a.countryCallingCodeSource,d=a.countryCallingCode,u=a.number,f;if(d)s.selectNumberingPlan(d);else if(u&&(t||n))s.selectNumberingPlan(t,n),t&&(f=t),d=n||ib(t,s.metadata);else return{};if(!u)return{countryCallingCodeSource:l,countryCallingCode:d};var h=Sv(xw(u),f,s),p=h.nationalNumber,g=h.carrierCode,y=E$(d,{nationalNumber:p,metadata:s});return y&&(f=y,y==="001"||s.selectNumberingPlan(f)),{country:f,countryCallingCode:d,countryCallingCodeSource:l,nationalNumber:p,carrierCode:g}}function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ww(Object(n),!0).forEach(function(s){MB(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function MB(e,t,n){return(t=OB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e){var t=RB(e,"string");return ed(t)=="symbol"?t:t+""}function RB(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(ed(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PB(e,t,n){return $B(e,Sw(Sw({},t),{},{v2:!0}),n)}function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function Nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function DB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(n),!0).forEach(function(s){LB(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nw(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function LB(e,t,n){return(t=FB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FB(e){var t=IB(e,"string");return td(t)=="symbol"?t:t+""}function IB(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(td(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BB(e,t){return HB(e)||UB(e,t)||VB(e,t)||zB()}function zB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
166In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VB(e,t){if(e){if(typeof e=="string")return Cw(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cw(e,t):void 0}}function Cw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function UB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s,a,l,d,u=[],f=!0,h=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(s=l.call(n)).done)&&(u.push(s.value),u.length!==t);f=!0);}catch(p){h=!0,a=p}finally{try{if(!f&&n.return!=null&&(d=n.return(),Object(d)!==d))return}finally{if(h)throw a}}return u}}function HB(e){if(Array.isArray(e))return e}function qB(e){var t=Array.prototype.slice.call(e),n=BB(t,4),s=n[0],a=n[1],l=n[2],d=n[3],u,f,h;if(typeof s=="string")u=s;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")d?(f=l,h=d):(f=void 0,h=l),a&&(f=DB({defaultCountry:a},f));else if(Uo(a))l?(f=a,h=l):h=a;else throw new Error("Invalid second argument: ".concat(a));return{text:u,options:f,metadata:h}}
166function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}function $w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Ew(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(n),!0).forEach(function(s){GB(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$w(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function GB(e,t,n){return(t=WB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WB(e){var t=YB(e,"string");return nd(t)=="symbol"?t:t+""}function YB(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(nd(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KB(e,t,n){t&&t.defaultCountry&&!QF(t.defaultCountry,n)&&(t=Ew(Ew({},t),{},{defaultCountry:void 0}));try{return PB(e,t,n)}catch(s){if(!(s instanceof Gi))throw s}}function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(e)}function Tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,s)}return n}function Aw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(n),!0).forEach(function(s){XB(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function XB(e,t,n){return(t=ZB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZB(e){var t=QB(e,"string");return sd(t)=="symbol"?t:t+""}function QB(e,t){if(sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(sd(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JB(){var e=qB(arguments),t=e.text,n=e.options,s=e.metadata;n=Aw(Aw({},n),{},{extract:!1});var a=KB(t,n,s);return a&&a.isValid()||!1}function ez(){return BF(JB,arguments)}const tz=/^\+\d{1,4}$/;function Lr(e){return!e||tz.test(e)||ez(e)?null:"Please enter a valid phone number."}/**
167 * @license lucide-react v1.7.0 - ISC
168 *
169 * This source code is licensed under the ISC license.
170 * See the LICENSE file in the root directory of this source tree.
171 */const O$=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
172 * @license lucide-react v1.7.0 - ISC
173 *
174 * This source code is licensed under the ISC license.
175 * See the LICENSE file in the root directory of this source tree.
176 */const nz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
177 * @license lucide-react v1.7.0 - ISC
178 *
179 * This source code is licensed under the ISC license.
180 * See the LICENSE file in the root directory of this source tree.
181 */const sz=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());/**
182 * @license lucide-react v1.7.0 - ISC
183 *
184 * This source code is licensed under the ISC license.
185 * See the LICENSE file in the root directory of this source tree.
186 */const kw=e=>{const t=sz(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
187 * @license lucide-react v1.7.0 - ISC
188 *
189 * This source code is licensed under the ISC license.
190 * See the LICENSE file in the root directory of this source tree.
191 */var f0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
192 * @license lucide-react v1.7.0 - ISC
193 *
194 * This source code is licensed under the ISC license.
195 * See the LICENSE file in the root directory of this source tree.
196 */const iz=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},rz=j.createContext({}),az=()=>j.useContext(rz),oz=j.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:s,className:a="",children:l,iconNode:d,...u},f)=>
196{const{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:g=!1,color:y="currentColor",className:x=""}=az()??{},b=s??g?Number(n??p)*24/Number(t??h):n??p;return j.createElement("svg",{ref:f,...f0,width:t??h??f0.width,height:t??h??f0.height,stroke:e??y,strokeWidth:b,className:O$("lucide",x,a),...!l&&!iz(u)&&{"aria-hidden":"true"},...u},[...d.map(([w,S])=>j.createElement(w,S)),...Array.isArray(l)?l:[l]])});/**
197 * @license lucide-react v1.7.0 - ISC
198 *
199 * This source code is licensed under the ISC license.
200 * See the LICENSE file in the root directory of this source tree.
201 */const Xe=(e,t)=>{const n=j.forwardRef(({className:s,...a},l)=>j.createElement(oz,{ref:l,iconNode:t,className:O$(`lucide-${nz(kw(e))}`,`lucide-${e}`,s),...a}));return n.displayName=kw(e),n};/**
202 * @license lucide-react v1.7.0 - ISC
203 *
204 * This source code is licensed under the ISC license.
205 * See the LICENSE file in the root directory of this source tree.
206 */const lz=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],xm=Xe("arrow-right",lz);/**
207 * @license lucide-react v1.7.0 - ISC
208 *
209 * This source code is licensed under the ISC license.
210 * See the LICENSE file in the root directory of this source tree.
211 */const cz=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],dz=Xe("calendar",cz);/**
212 * @license lucide-react v1.7.0 - ISC
213 *
214 * This source code is licensed under the ISC license.
215 * See the LICENSE file in the root directory of this source tree.
216 */const uz=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ka=Xe("check",uz);/**
217 * @license lucide-react v1.7.0 - ISC
218 *
219 * This source code is licensed under the ISC license.
220 * See the LICENSE file in the root directory of this source tree.
221 */const fz=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],id=Xe("chevron-down",fz);/**
222 * @license lucide-react v1.7.0 - ISC
223 *
224 * This source code is licensed under the ISC license.
225 * See the LICENSE file in the root directory of this source tree.
226 */const mz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],R$=Xe("circle-alert",mz);/**
227 * @license lucide-react v1.7.0 - ISC
228 *
229 * This source code is licensed under the ISC license.
230 * See the LICENSE file in the root directory of this source tree.
231 */const hz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],P$=Xe("clock",hz);/**
232 * @license lucide-react v1.7.0 - ISC
233 *
234 * This source code is licensed under the ISC license.
235 * See the LICENSE file in the root directory of this source tree.
236 */const pz=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],D$=Xe("code",pz);/**
237 * @license lucide-react v1.7.0 - ISC
238 *
239 * This source code is licensed under the ISC license.
240 * See the LICENSE file in the root directory of this source tree.
241 */const gz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],vz=Xe("compass",gz);/**
242 * @license lucide-react v1.7.0 - ISC
243 *
244 * This source code is licensed under the ISC license.
245 * See the LICENSE file in the root directory of this source tree.
246 */const yz=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],L$=Xe("credit-card",yz);/**
247 * @license lucide-react v1.7.0 - ISC
248 *
249 * This source code is licensed under the ISC license.
250 * See the LICENSE file in the root directory of this source tree.
251 */const bz=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],xz=Xe("crown",bz);/**
252 * @license lucide-react v1.7.0 - ISC
253 *
254 * This source code is licensed under the ISC license.
255 * See the LICENSE file in the root directory of this source tree.
256 */const _z=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],uf=Xe("ellipsis-vertical",_z);/**
257 * @license lucide-react v1.7.0 - ISC
258 *
259 * This source code is licensed under the ISC license.
260 * See the LICENSE file in the root directory of this source tree.
261 */const jz=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],wz=Xe("external-link",jz);/**
262 * @license lucide-react v1.7.0 - ISC
263 *
264 * This source code is licensed under the ISC license.
265 * See the LICENSE file in the root directory of this source tree.
266 */const Sz=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Tv=Xe("eye-off",Sz);/**
267 * @license lucide-react v1.7.0 - ISC
268 *
269 * This source code is licensed under the ISC license.
270 * See the LICENSE file in the root directory of this source tree.
271 */const Nz=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Av=Xe("eye",Nz);/**
272 * @license lucide-react v1.7.0 - ISC
273 *
274 * This source code is licensed under the ISC license.
275 * See the LICENSE file in the root directory of this source tree.
276 */const Cz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],$z=Xe("globe",Cz);/**
277 * @license lucide-react v1.7.0 - ISC
278 *
279 * This source code is licensed under the ISC license.
280 * See the LICENSE file in the root directory of this source tree.
281 */const Ez=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],db=Xe("graduation-cap",Ez);/**
282 * @license lucide-react v1.7.0 - ISC
283 *
284 * This source code is licensed under the ISC license.
285 * See the LICENSE file in the root directory of this source tree.
286 */const Tz=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],Az=Xe("handshake",Tz);/**
287 * @license lucide-react v1.7.0 - ISC
288 *
289 * This source code is licensed under the ISC license.
290 * See the LICENSE file in the root directory of this source tree.
291 */const kz=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Mz=Xe("info",kz);/**
292 * @license lucide-react v1.7.0 - ISC
293 *
294 * This source code is licensed under the ISC license.
295 * See the LICENSE file in the root directory of this source tree.
296 */const Oz=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Rz=Xe("log-out",Oz);/**
297 * @license lucide-react v1.7.0 - ISC
298 *
299 * This source code is licensed under the ISC license.
300 * See the LICENSE file in the root directory of this source tree.
301 */const Pz=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],F$=Xe("mail",Pz);/**
302 * @license lucide-react v1.7.0 - ISC
303 *
304 * This source code is licensed under the ISC license.
305 * See the LICENSE file in the root directory of this source tree.
306 */const Dz=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],I$=Xe("messages-square",Dz);/**
307 * @license lucide-react v1.7.0 - ISC
308 *
309 * This source code is licensed under the ISC license.
310 * See the LICENSE file in the root directory of this source tree.
311 */const Lz=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],xi=Xe("network",Lz);/**
312 * @license lucide-react v1.7.0 - ISC
313 *
314 * This source code is licensed under the ISC license.
315 * See the LICENSE file in the root directory of this source tree.
316 */const Fz=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],B$=Xe("pencil",Fz);/**
317 * @license lucide-react v1.7.0 - ISC
318 *
319 * This source code is licensed under the ISC license.
320 * See the LICENSE file in the root directory of this source tree.
321 */const Iz=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
3210 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Bz=Xe("phone",Iz);/**
322 * @license lucide-react v1.7.0 - ISC
323 *
324 * This source code is licensed under the ISC license.
325 * See the LICENSE file in the root directory of this source tree.
326 */const zz=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Sd=Xe("plus",zz);/**
327 * @license lucide-react v1.7.0 - ISC
328 *
329 * This source code is licensed under the ISC license.
330 * See the LICENSE file in the root directory of this source tree.
331 */const Vz=[["path",{d:"M12 17V7",key:"pyj7ub"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8",key:"1elt7d"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]],z$=Xe("receipt",Vz);/**
332 * @license lucide-react v1.7.0 - ISC
333 *
334 * This source code is licensed under the ISC license.
335 * See the LICENSE file in the root directory of this source tree.
336 */const Uz=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],V$=Xe("search",Uz);/**
337 * @license lucide-react v1.7.0 - ISC
338 *
339 * This source code is licensed under the ISC license.
340 * See the LICENSE file in the root directory of this source tree.
341 */const Hz=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],qz=Xe("settings",Hz);/**
342 * @license lucide-react v1.7.0 - ISC
343 *
344 * This source code is licensed under the ISC license.
345 * See the LICENSE file in the root directory of this source tree.
346 */const Gz=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ub=Xe("shield-check",Gz);/**
347 * @license lucide-react v1.7.0 - ISC
348 *
349 * This source code is licensed under the ISC license.
350 * See the LICENSE file in the root directory of this source tree.
351 */const Wz=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],U$=Xe("shield",Wz);/**
352 * @license lucide-react v1.7.0 - ISC
353 *
354 * This source code is licensed under the ISC license.
355 * See the LICENSE file in the root directory of this source tree.
356 */const Yz=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],H$=Xe("sliders-horizontal",Yz);/**
357 * @license lucide-react v1.7.0 - ISC
358 *
359 * This source code is licensed under the ISC license.
360 * See the LICENSE file in the root directory of this source tree.
361 */const Kz=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
361],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],q$=Xe("sparkles",Kz);/**
362 * @license lucide-react v1.7.0 - ISC
363 *
364 * This source code is licensed under the ISC license.
365 * See the LICENSE file in the root directory of this source tree.
366 */const Xz=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],fb=Xe("sprout",Xz);/**
367 * @license lucide-react v1.7.0 - ISC
368 *
369 * This source code is licensed under the ISC license.
370 * See the LICENSE file in the root directory of this source tree.
371 */const Zz=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],G$=Xe("trash-2",Zz);/**
372 * @license lucide-react v1.7.0 - ISC
373 *
374 * This source code is licensed under the ISC license.
375 * See the LICENSE file in the root directory of this source tree.
376 */const Qz=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],eh=Xe("trending-up",Qz);/**
377 * @license lucide-react v1.7.0 - ISC
378 *
379 * This source code is licensed under the ISC license.
380 * See the LICENSE file in the root directory of this source tree.
381 */const Jz=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],eV=Xe("upload",Jz);/**
382 * @license lucide-react v1.7.0 - ISC
383 *
384 * This source code is licensed under the ISC license.
385 * See the LICENSE file in the root directory of this source tree.
386 */const tV=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],nV=Xe("user-plus",tV);/**
387 * @license lucide-react v1.7.0 - ISC
388 *
389 * This source code is licensed under the ISC license.
390 * See the LICENSE file in the root directory of this source tree.
391 */const sV=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],iV=Xe("user",sV);/**
392 * @license lucide-react v1.7.0 - ISC
393 *
394 * This source code is licensed under the ISC license.
395 * See the LICENSE file in the root directory of this source tree.
396 */const rV=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ji=Xe("x",rV);/**
397 * @license lucide-react v1.7.0 - ISC
398 *
399 * This source code is licensed under the ISC license.
400 * See the LICENSE file in the root directory of this source tree.
401 */const aV=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],oV=Xe("zoom-in",aV);/**
402 * @license lucide-react v1.7.0 - ISC
403 *
404 * This source code is licensed under the ISC license.
405 * See the LICENSE file in the root directory of this source tree.
406 */const lV=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],cV=Xe("zoom-out",lV);function Vr({id:e,value:t,onChange:n,onBlur:s,error:a=!1,placeholder:l="",autoComplete:d="new-password"}){const[u,f]=j.useState(!1);return i.jsxs("div",{className:"auth-form__input-wrap",children:[i.jsx("input",{id:e,type:u?"text":"password",className:`auth-form__input auth-form__input--with-toggle${a?" auth-form__input--error":""}`,value:t,onChange:h=>n(h.target.value),onBlur:s,placeholder:l,autoComplete:d}),i.jsx("button",{type:"button",className:"auth-form__password-toggle",onClick:()=>f(h=>!h),"aria-label":u?"Hide password":"Show password",tabIndex:-1,children:u?i.jsx(Av,{size:18,strokeWidth:1.5}):i.jsx(Tv,{size:18,strokeWidth:1.5})})]})}Vr.propTypes={id:q.string,value:q.string.isRequired,onChange:q.func.isRequired,onBlur:q.func,error:q.bool,placeholder:q.string,autoComplete:q.string};function mb({password:e=""}){const t=[{key:"length",label:"At least 8 characters",met:e.length>=8},{key:"upper",label:"One uppercase letter",met:/[A-Z]/.test(e)},{key:"number",label:"One number",met:/\d/.test(e)},{key:"special",label:"One special character",met:/[^A-Za-z0-9]/.test(e)}];return i.jsx("ul",{className:"auth-form__pw-requirements",children:t.map(n=>i.jsx("li",{className:`auth-form__pw-req${n.met?" auth-form__pw-req--met":""}`,children:n.label},n.key))})}mb.propTypes={password:q.string};function Rc(e=""){return e.length>=8&&/[A-Z]/.test(e)&&/\d/.test(e)&&/[^A-Za-z0-9]/.test(e)}const dV=typeof document<"u"?ye.useLayoutEffect:()=>{},Gr=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Sa=e=>e&&"window"in e&&e.window===e?e:Gr(e).defaultView||window;function uV(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function fV(e){return uV(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let mV=!1;
vendor: 4,593 bytes, line 406
406function hb(){return mV}function Na(e,t){if(!hb())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:fV(n)?n=n.host:n=n.parentNode}return!1}const Jo=(e=document)=>{var t;if(!hb())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Vn(e){if(hb()&&e.target instanceof Element&&e.target.shadowRoot){var t,n;if("composedPath"in e)return(t=e.composedPath()[0])!==null&&t!==void 0?t:null;if("composedPath"in e.nativeEvent)return(n=e.nativeEvent.composedPath()[0])!==null&&n!==void 0?n:null}return e.target}function hV(e){if(pV())e.focus({preventScroll:!0});else{let t=gV(e);e.focus(),vV(t)}}let ff=null;function pV(){if(ff==null){ff=!1;try{document.createElement("div").focus({get preventScroll(){return ff=!0,!0}})}catch{}}return ff}function gV(e){let t=e.parentNode,n=[],s=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==s;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return s instanceof HTMLElement&&n.push({element:s,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),n}function vV(e){for(let{element:t,scrollTop:n,scrollLeft:s}of e)t.scrollTop=n,t.scrollLeft=s}function th(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(s=>e.test(s.brand))||e.test(window.navigator.userAgent)}function W$(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function al(e){let t=null;return()=>(t==null&&(t=e()),t)}const _m=al(function(){return W$(/^Mac/i)}),yV=al(function(){return W$(/^iPad/i)||_m()&&navigator.maxTouchPoints>1}),bV=al(function(){return th(/AppleWebKit/i)&&!xV()}),xV=al(function(){return th(/Chrome/i)}),_V=al(function(){return th(/Android/i)}),jV=al(function(){return th(/Firefox/i)});function rd(e,t,n=!0){var s,a;let{metaKey:l,ctrlKey:d,altKey:u,shiftKey:f}=t;jV()&&(!((a=window.event)===null||a===void 0||(s=a.type)===null||s===void 0)&&s.startsWith("key"))&&e.target==="_blank"&&(_m()?l=!0:d=!0);let h=bV()&&_m()&&!yV()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:d,altKey:u,shiftKey:f}):new MouseEvent("click",{metaKey:l,ctrlKey:d,altKey:u,shiftKey:f,detail:1,bubbles:!0,cancelable:!0});rd.isOpening=n,hV(e),e.dispatchEvent(h),rd.isOpening=!1}rd.isOpening=!1;function Y$(){let e=j.useRef(new Map),t=j.useCallback((a,l,d,u)=>{let f=u?.once?(...h)=>{e.current.delete(d),d(...h)}:d;e.current.set(d,{type:l,eventTarget:a,fn:f,options:u}),a.addEventListener(l,f,u)},[]),n=j.useCallback((a,l,d,u)=>{var f;let h=((f=e.current.get(d))===null||f===void 0?void 0:f.fn)||d;a.removeEventListener(l,h,u),e.current.delete(d)},[]),s=j.useCallback(()=>{e.current.forEach((a,l)=>{n(a.eventTarget,a.type,l,a.options)})},[n]);return j.useEffect(()=>s,[s]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:s}}function wV(e){return e.pointerType===""&&e.isTrusted?!0:_V()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function K$(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function SV(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function X$(e){let t=j.useRef({isFocused:!1,observer:null});return dV(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),j.useCallback(n=>{let s=Vn(n);if(s instanceof HTMLButtonElement||s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement){t.current.isFocused=!0;let a=s,l=d=>{if(t.current.isFocused=!1,a.disabled){let u=K$(d);e?.(u)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var d;(d=t.current.observer)===null||d===void 0||d.disconnect();let u=a===Jo()?null:Jo();a.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let NV=!1,Nd=null;
406const kv=new Set;let Pc=new Map,La=!1,Mv=!1;const CV={Tab:!0,Escape:!0};function pb(e,t){for(let n of kv)n(e,t)}function $V(e){return!(e.metaKey||!_m()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function jm(e){La=!0,!rd.isOpening&&$V(e)&&(Nd="keyboard",pb("keyboard",e))}function Ho(e){Nd="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(La=!0,pb("pointer",e))}function Z$(e){!rd.isOpening&&wV(e)&&(La=!0,Nd="virtual")}function Q$(e){Vn(e)===window||Vn(e)===document||NV||!e.isTrusted||(!La&&!Mv&&(Nd="virtual",pb("virtual",e)),La=!1,Mv=!1)}function J$(){La=!1,Mv=!0}function Ov(e){if(typeof window>"u"||typeof document>"u"||Pc.get(Sa(e)))return;const t=Sa(e),n=Gr(e);let s=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){La=!0,s.apply(this,arguments)},n.addEventListener("keydown",jm,!0),n.addEventListener("keyup",jm,!0),n.addEventListener("click",Z$,!0),t.addEventListener("focus",Q$,!0),t.addEventListener("blur",J$,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ho,!0),n.addEventListener("pointermove",Ho,!0),n.addEventListener("pointerup",Ho,!0)),t.addEventListener("beforeunload",()=>{e6(e)},{once:!0}),Pc.set(t,{focus:s})}const e6=(e,t)=>{const n=Sa(e),s=Gr(e);t&&s.removeEventListener("DOMContentLoaded",t),Pc.has(n)&&(n.HTMLElement.prototype.focus=Pc.get(n).focus,s.removeEventListener("keydown",jm,!0),s.removeEventListener("keyup",jm,!0),s.removeEventListener("click",Z$,!0),n.removeEventListener("focus",Q$,!0),n.removeEventListener("blur",J$,!1),typeof PointerEvent<"u"&&(s.removeEventListener("pointerdown",Ho,!0),s.removeEventListener("pointermove",Ho,!0),s.removeEventListener("pointerup",Ho,!0)),Pc.delete(n))};function EV(e){const t=Gr(e);let n;return t.readyState!=="loading"?Ov(e):(n=()=>{Ov(e)},t.addEventListener("DOMContentLoaded",n)),()=>e6(e,n)}typeof document<"u"&&EV();function Rv(){return Nd!=="pointer"}const TV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function AV(e,t,n){let s=Gr(n?Vn(n):void 0),a=n?Vn(n):void 0;const l=typeof window<"u"?Sa(a).HTMLInputElement:HTMLInputElement,d=typeof window<"u"?Sa(a).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?Sa(a).HTMLElement:HTMLElement,f=typeof window<"u"?Sa(a).KeyboardEvent:KeyboardEvent;let h=Jo(s);return e=e||h instanceof l&&!TV.has(h.type)||h instanceof d||h instanceof u&&h.isContentEditable,!(e&&t==="keyboard"&&n instanceof f&&!CV[n.key])}function kV(e,t,n){Ov(),j.useEffect(()=>{if(n?.enabled===!1)return;let s=(a,l)=>{AV(!!n?.isTextInput,a,l)&&e(Rv())};return kv.add(s),()=>{kv.delete(s)}},t)}function MV(e){let{isDisabled:t,onFocus:n,onBlur:s,onFocusChange:a}=e;const l=j.useCallback(f=>{if(Vn(f)===f.currentTarget)return s&&s(f),a&&a(!1),!0},[s,a]),d=X$(l),u=j.useCallback(f=>{let h=Vn(f);const p=Gr(h),g=p?Jo(p):Jo();h===f.currentTarget&&h===g&&(n&&n(f),a&&a(!0),d(f))},[a,n,d]);return{focusProps:{onFocus:!t&&(n||a||s)?u:void 0,onBlur:!t&&(s||a)?l:void 0}}}function OV(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:a}=e,l=j.useRef({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:u}=Y$(),f=j.useCallback(g=>{Na(g.currentTarget,Vn(g))&&l.current.isFocusWithin&&!Na(g.currentTarget,g.relatedTarget)&&(l.current.isFocusWithin=!1,u(),n&&n(g),a&&a(!1))},[n,a,l,u]),h=X$(f),p=j.useCallback(g=>{if(!Na(g.currentTarget,Vn(g)))return;let y=Vn(g);const x=Gr(y),b=Jo(x);if(!l.current.isFocusWithin&&b===y){s&&s(g),a&&a(!0),l.current.isFocusWithin=!0,h(g);let w=g.currentTarget;d(x,"focus",S=>{let N=Vn(S);if(l.current.isFocusWithin&&!Na(w,N)){let C=new x.defaultView.FocusEvent("blur",{relatedTarget:N});SV(C,w);let E=K$(C);f(E)}},{capture:!0})}},[s,a,h,d,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let Pv=!1,mf=0;function RV(){Pv=!0,setTimeout(()=>{Pv=!1},50)}function Mw(e){e.pointerType==="touch"&&RV()}function PV(){if(!(typeof document>"u"))return mf===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Mw),mf++,()=>{mf--,!(mf>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Mw)}}function gb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,isDisabled:a}=e,[l,d]=j.useState(!1),u=j.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;j.useEffect(PV,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=Y$(),{hoverProps:p,triggerHoverEnd:g}=j.useMemo(()=>{let y=(w,S)=>{if(u.pointerType=S,a||S==="touch"||u.isHovered||!Na(w.currentTarget,Vn(w)))return;u.isHovered=!0;let N=w.currentTarget;u.target=N,f(Gr(Vn(w)),"pointerover",C=>{u.isHovered&&u.target&&!Na(u.target,Vn(C))&&x(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:N,pointerType:S}),n&&n(!0),d(!0)},x=(w,S)=>{let N=u.target;u.pointerType="",u.target=null,!(S==="touch"||!u.isHovered||!N)&&(u.isHovered=!1,h(),s&&s({type:"hoverend",target:N,pointerType:S}),n&&n(!1),d(!1))},b={};return typeof PointerEvent<"u"&&(b.onPointerEnter=w=>{Pv&&w.pointerType==="mouse"||y(w,w.pointerType)},b.onPointerLeave=w=>{!a&&Na(w.currentTarget,Vn(w))&&x(w,w.pointerType)}),{hoverProps:b,triggerHoverEnd:x}},[t,n,s,a,u,f,h]);return j.useEffect(()=>{a&&g({currentTarget:u.target},u.pointerType)},[a]),{hoverProps:p,isHovered:l}}function vb(e={}){let{autoFocus:t=!1,isTextInput:n,within:s}=e,a=j.useRef({isFocused:!1,isFocusVisible:t||Rv()}),[l,d]=j.useState(!1),[u,f]=j.useState(()=>a.current.isFocused&&a.current.isFocusVisible),h=j.useCallback(()=>f(a.current.isFocused&&a.current.isFocusVisible),[]),p=j.useCallback(x=>{a.current.isFocused=x,a.current.isFocusVisible=Rv(),d(x),h()}
vendor: 4,501 bytes, line 406
406,[h]);kV(x=>{a.current.isFocusVisible=x,h()},[n,l],{enabled:l,isTextInput:n});let{focusProps:g}=MV({isDisabled:s,onFocusChange:p}),{focusWithinProps:y}=OV({isDisabled:!s,onFocusWithinChange:p});return{isFocused:l,isFocusVisible:u,focusProps:s?y:g}}var DV=Object.defineProperty,LV=(e,t,n)=>t in e?DV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m0=(e,t,n)=>(LV(e,typeof t!="symbol"?t+"":t,n),n);let FV=class{constructor(){m0(this,"current",this.detect()),m0(this,"handoffState","pending"),m0(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ma=new FV;function Cd(e){var t;return Ma.isServer?null:e==null?document:(t=e?.ownerDocument)!=null?t:document}function wm(e){var t,n;return Ma.isServer?null:e==null?document:(n=(t=e?.getRootNode)==null?void 0:t.call(e))!=null?n:document}function t6(e){var t,n;return(n=(t=wm(e))==null?void 0:t.activeElement)!=null?n:null}function yb(e){return t6(e)===e}function n6(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function rs(){let e=[],t={addEventListener(n,s,a,l){return n.addEventListener(s,a,l),t.add(()=>n.removeEventListener(s,a,l))},requestAnimationFrame(...n){let s=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(s))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let s=setTimeout(...n);return t.add(()=>clearTimeout(s))},microTask(...n){let s={current:!0};return n6(()=>{s.current&&n[0]()}),t.add(()=>{s.current=!1})},style(n,s,a){let l=n.style.getPropertyValue(s);return Object.assign(n.style,{[s]:a}),this.add(()=>{Object.assign(n.style,{[s]:l})})},group(n){let s=rs();return n(s),this.add(()=>s.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let s=e.indexOf(n);if(s>=0)for(let a of e.splice(s,1))a()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ba(){let[e]=j.useState(rs);return j.useEffect(()=>()=>e.dispose(),[e]),e}let Rt=(e,t)=>{Ma.isServer?j.useEffect(e,t):j.useLayoutEffect(e,t)};function Wr(e){let t=j.useRef(e);return Rt(()=>{t.current=e},[e]),t}let He=function(e){let t=Wr(e);return ye.useCallback((...n)=>t.current(...n),[t])};function IV(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function BV(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function s6({disabled:e=!1}={}){let t=j.useRef(null),[n,s]=j.useState(!1),a=Ba(),l=He(()=>{t.current=null,s(!1),a.dispose()}),d=He(u=>{if(a.dispose(),t.current===null){t.current=u.currentTarget,s(!0);{let f=Cd(u.currentTarget);a.addEventListener(f,"pointerup",l,!1),a.addEventListener(f,"pointermove",h=>{if(t.current){let p=IV(h);s(BV(p,t.current.getBoundingClientRect()))}},!1),a.addEventListener(f,"pointercancel",l,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:d,onPointerUp:l,onClick:l}}}function xs(e){return j.useMemo(()=>e,Object.values(e))}let zV=j.createContext(void 0);function nh(){return j.useContext(zV)}function Ow(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Mn(e,t,...n){if(e in t){let a=t[e];return typeof a=="function"?a(...n):a}let s=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,Mn),s}var ad=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ad||{}),VV=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(VV||{});function Rn(){let e=HV();return j.useCallback(t=>UV({mergeRefs:e,...t}),[e])}function UV({ourProps:e,theirProps:t,slot:n,defaultTag:s,features:a,visible:l=!0,name:d,mergeRefs:u}){u=u??qV;let f=i6(t,e);if(l)return hf(f,n,s,d,u);let h=a??0;if(h&2){let{static:p=!1,...g}=f;if(p)return hf(g,n,s,d,u)}if(h&1){let{unmount:p=!0,...g}=f;return Mn(p?0:1,{0(){return null},1(){return hf({...g,hidden:!0,style:{display:"none"}},n,s,d,u)}})}return hf(f,n,s,d,u)}function hf(e,t={}
vendor: 5,622 bytes, lines 406-409
406,n,s,a){let{as:l=n,children:d,refName:u="ref",...f}=h0(e,["unmount","static"]),h=e.ref!==void 0?{[u]:e.ref}:{},p=typeof d=="function"?d(t):d;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t)),f["aria-labelledby"]&&f["aria-labelledby"]===f.id&&(f["aria-labelledby"]=void 0);let g={};if(t){let y=!1,x=[];for(let[b,w]of Object.entries(t))typeof w=="boolean"&&(y=!0),w===!0&&x.push(b.replace(/([A-Z])/g,S=>`-${S.toLowerCase()}`));if(y){g["data-headlessui-state"]=x.join(" ");for(let b of x)g[`data-${b}`]=""}}if(Gf(l)&&(Object.keys(ya(f)).length>0||Object.keys(ya(g)).length>0))if(!j.isValidElement(p)||Array.isArray(p)&&p.length>1||WV(p)){if(Object.keys(ya(f)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${s} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ya(f)).concat(Object.keys(ya(g))).map(y=>`  - ${y}`).join(`
407`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>`  - ${y}`).join(`
408`)].join(`
409`))}else{let y=p.props,x=y?.className,b=typeof x=="function"?(...N)=>Ow(x(...N),f.className):Ow(x,f.className),w=b?{className:b}:{},S=i6(p.props,ya(h0(f,["ref"])));for(let N in g)N in S&&delete g[N];return j.cloneElement(p,Object.assign({},S,g,h,{ref:a(GV(p),h.ref)},w))}return j.createElement(l,Object.assign({},h0(f,["ref"]),!Gf(l)&&h,!Gf(l)&&g),p)}function HV(){let e=j.useRef([]),t=j.useCallback(n=>{for(let s of e.current)s!=null&&(typeof s=="function"?s(n):s.current=n)},[]);return(...n)=>{if(!n.every(s=>s==null))return e.current=n,t}}function qV(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function i6(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let s of e)for(let a in s)a.startsWith("on")&&typeof s[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(s[a])):t[a]=s[a];if(t.disabled||t["aria-disabled"])for(let s in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(s)&&(n[s]=[a=>{var l;return(l=a?.preventDefault)==null?void 0:l.call(a)}]);for(let s in n)Object.assign(t,{[s](a,...l){let d=n[s];for(let u of d){if((a instanceof Event||a?.nativeEvent instanceof Event)&&a.defaultPrevented)return;u(a,...l)}}});return t}function $d(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let s of e)for(let a in s)a.startsWith("on")&&typeof s[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(s[a])):t[a]=s[a];for(let s in n)Object.assign(t,{[s](...a){let l=n[s];for(let d of l)d?.(...a)}});return t}function Pn(e){var t;return Object.assign(j.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ya(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function h0(e,t=[]){let n=Object.assign({},e);for(let s of t)s in n&&delete n[s];return n}function GV(e){return ye.version.split(".")[0]>="19"?e.props.ref:e.ref}function Gf(e){return e===j.Fragment||e===Symbol.for("react.fragment")}function WV(e){return Gf(e.type)}function r6(e,t,n){let[s,a]=j.useState(n),l=e!==void 0,d=j.useRef(l),u=j.useRef(!1),f=j.useRef(!1);return l&&!d.current&&!u.current?(u.current=!0,d.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!l&&d.current&&!f.current&&(f.current=!0,d.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[l?e:s,He(h=>(l||ln.flushSync(()=>a(h)),t?.(h)))]}function a6(e){let[t]=j.useState(e);return t}function o6(e={},t=null,n=[]){for(let[s,a]of Object.entries(e))c6(n,l6(t,s),a);return n}function l6(e,t){return e?e+"["+t+"]":t}function c6(e,t,n){if(Array.isArray(n))for(let[s,a]of n.entries())c6(e,l6(t,s.toString()),a);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):KV(n)&&!j.isValidElement(n)&&o6(n,t,e)}function YV(e){var t,n;let s=(t=e?.form)!=null?t:e.closest("form");if(s){for(let a of s.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(n=s.requestSubmit)==null||n.call(s)}}function KV(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}let XV="span";var bb=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bb||{});function ZV(e,t){var n;let{features:s=1,...a}=e,l={ref:t,"aria-hidden":(s&2)===2?!0:(n=a["aria-hidden"])!=null?n:void 0,hidden:(s&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(s&4)===4&&(s&2)!==2&&{display:"none"}}};return Rn()({ourProps:l,theirProps:a,slot:{},defaultTag:XV,name:"Hidden"})}let d6=Pn(ZV),QV=j.createContext(null);function JV({children:e}){let t=j.useContext(QV);if(!t)return ye.createElement(ye.Fragment,null,e);let{target:n}=t;return n?ln.createPortal(ye.createElement(ye.Fragment,null,e),n):null}function u6({data:e,form:t,disabled:n,onReset:s,overrides:a}){let[l,d]=j.useState(null),u=Ba();return j.useEffect(()=>
vendor: 9,605 bytes, lines 409-412
409{if(s&&l)return u.addEventListener(l,"reset",s)},[l,t,s]),ye.createElement(JV,null,ye.createElement(eU,{setForm:d,formId:t}),o6(e).map(([f,h])=>ye.createElement(d6,{features:bb.Hidden,...ya({key:f,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:f,value:h,...a})})))}function eU({setForm:e,formId:t}){return j.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:ye.createElement(d6,{features:bb.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let s=n.closest("form");s&&e(s)}})}let tU=j.createContext(void 0);function xb(){return j.useContext(tU)}function f6(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function sh(e){return f6(e)&&"tagName"in e}function _i(e){return sh(e)&&"accessKey"in e}function Ca(e){return sh(e)&&"tabIndex"in e}function nU(e){return sh(e)&&"style"in e}function sU(e){return _i(e)&&e.nodeName==="IFRAME"}function Sm(e){return _i(e)&&e.nodeName==="INPUT"}function Rw(e){return _i(e)&&e.nodeName==="LABEL"}function iU(e){return _i(e)&&e.nodeName==="FIELDSET"}function m6(e){return _i(e)&&e.nodeName==="LEGEND"}function rU(e){return sh(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function Pw(e){let t=e.parentElement,n=null;for(;t&&!iU(t);)m6(t)&&(n=t),t=t.parentElement;let s=t?.getAttribute("disabled")==="";return s&&aU(n)?!1:s}function aU(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(m6(t))return!1;t=t.previousElementSibling}return!0}let h6=Symbol();function oU(e,t=!0){return Object.assign(e,{[h6]:t})}function as(...e){let t=j.useRef(e);j.useEffect(()=>{t.current=e},[e]);let n=He(s=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(s):a.current=s)});return e.every(s=>s==null||s?.[h6])?void 0:n}let _b=j.createContext(null);_b.displayName="DescriptionContext";function p6(){let e=j.useContext(_b);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,p6),t}return e}function g6(){var e,t;return(t=(e=j.useContext(_b))==null?void 0:e.value)!=null?t:void 0}let lU="p";function cU(e,t){let n=j.useId(),s=nh(),{id:a=`headlessui-description-${n}`,...l}=e,d=p6(),u=as(t);Rt(()=>d.register(a),[a,d.register]);let f=xs({...d.slot,disabled:s||!1}),h={ref:u,...d.props,id:a};return Rn()({ourProps:h,theirProps:l,slot:f,defaultTag:lU,name:d.name||"Description"})}let dU=Pn(cU);Object.assign(dU,{});var ft=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ft||{});let ih=j.createContext(null);ih.displayName="LabelContext";function v6(){let e=j.useContext(ih);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,v6),t}return e}function Ed(e){var t,n,s;let a=(n=(t=j.useContext(ih))==null?void 0:t.value)!=null?n:void 0;return((s=e?.length)!=null?s:0)>0?[a,...e].filter(Boolean).join(" "):a}function y6({inherit:e=!1}={}){let t=Ed(),[n,s]=j.useState([]),a=e?[t,...n].filter(Boolean):n;return[a.length>0?a.join(" "):void 0,j.useMemo(()=>function(l){let d=He(f=>(s(h=>[...h,f]),()=>s(h=>{let p=h.slice(),g=p.indexOf(f);return g!==-1&&p.splice(g,1),p}))),u=j.useMemo(()=>({register:d,slot:l.slot,name:l.name,props:l.props,value:l.value}),[d,l.slot,l.name,l.props,l.value]);return ye.createElement(ih.Provider,{value:u},l.children)},[s])]}let uU="label";function fU(e,t){var n;let s=j.useId(),a=v6(),l=xb(),d=nh(),{id:u=`headlessui-label-${s}`,htmlFor:f=l??((n=a.props)==null?void 0:n.htmlFor),passive:h=!1,...p}=e,g=as(t);Rt(()=>a.register(u),[u,a.register]);let y=He(w=>{let S=w.currentTarget;if(!(w.target!==w.currentTarget&&rU(w.target))&&(Rw(S)&&w.preventDefault(),a.props&&"onClick"in a.props&&typeof a.props.onClick=="function"&&a.props.onClick(w),Rw(S))){let N=document.getElementById(S.htmlFor);if(N){let C=N.getAttribute("disabled");if(C==="true"||C==="")return;let E=N.getAttribute("aria-disabled");if(E==="true"||E==="")return;(Sm(N)&&(N.type==="file"||N.type==="radio"||N.type==="checkbox")||N.role==="radio"||N.role==="checkbox"||N.role==="switch")&&N.click(),N.focus({preventScroll:!0})}}}),x=xs({...a.slot,disabled:d||!1}),b={ref:g,...a.props,id:u,htmlFor:f,onClick:y};return h&&("onClick"in b&&(delete b.htmlFor,delete b.onClick),"onClick"in p&&delete p.onClick),Rn()({ourProps:b,theirProps:p,slot:x,defaultTag:f?uU:"div",name:a.name||"Label"})}let mU=Pn(fU),b6=Object.assign(mU,{});function $o(e,t,n){let s=n.initialDeps??[],a,l=!0;function d(){var u,f,h;let p;n.key&&((u=n.debug)!=null&&u.call(n))&&(p=Date.now());const g=e();if(!(g.length!==s.length||g.some((b,w)=>s[w]!==b)))return a;s=g;let x;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(x=Date.now()),a=t(...g),n.key&&((h=n.debug)!=null&&h.call(n))){const b=Math.round((Date.now()-p)*100)/100,w=Math.round((Date.now()-x)*100)/100,S=w/16,N=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${N(w,5)} /${N(b,5)} ms`,`
410            font-size: .6rem;
411            font-weight: bold;
412            color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(l&&n.skipInitialOnChange)&&n.onChange(a),l=!1,a}return d.updateDeps=u=>{s=u},d}function Dw(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const hU=(e,t)=>Math.abs(e-t)<1.01,pU=(e,t,n)=>{let s;return function(...a){e.clearTimeout(s),s=e.setTimeout(()=>t.apply(this,a),n)}},Lw=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},gU=e=>e,vU=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),s=[];for(let a=t;a<=n;a++)s.push(a);return s},yU=(e,t)=>{const n=e.scrollElement;if(!n)return;const s=e.targetWindow;if(!s)return;const a=d=>{const{width:u,height:f}=d;t({width:Math.round(u),height:Math.round(f)})};if(a(Lw(n)),!s.ResizeObserver)return()=>{};const l=new s.ResizeObserver(d=>{const u=()=>{const f=d[0];if(f?.borderBoxSize){const h=f.borderBoxSize[0];if(h){a({width:h.inlineSize,height:h.blockSize});return}}a(Lw(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},Fw={passive:!0},Iw=typeof window>"u"?!0:"onscrollend"in window,bU=(e,t)=>{const n=e.scrollElement;if(!n)return;const s=e.targetWindow;if(!s)return;let a=0;const l=e.options.useScrollendEvent&&Iw?()=>{}:pU(s,()=>{t(a,!1)},e.options.isScrollingResetDelay),d=p=>()=>{const{horizontal:g,isRtl:y}=e.options;a=g?n.scrollLeft*(y&&-1||1):n.scrollTop,l(),t(a,p)},u=d(!0),f=d(!1);n.addEventListener("scroll",u,Fw);const h=e.options.useScrollendEvent&&Iw;return h&&n.addEventListener("scrollend",f,Fw),()=>{n.removeEventListener("scroll",u),h&&n.removeEventListener("scrollend",f)}},xU=(e,t,n)=>{if(t?.borderBoxSize){const s=t.borderBoxSize[0];if(s)return Math.round(s[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},_U=(e,{adjustments:t=0,behavior:n},s)=>{var a,l;const d=e+t;(l=(a=s.scrollElement)==null?void 0:a.scrollTo)==null||l.call(a,{[s.options.horizontal?"left":"top"]:d,behavior:n})};class jU{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,s,a;return((a=(s=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:s.now)==null?void 0:a.call(s))??Date.now()},this.observer=(()=>{let n=null;const s=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(a=>{a.forEach(l=>{const d=()=>{const u=l.target,f=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u);return}this.shouldMeasureDuringScroll(f)&&this.resizeItem(f,this.options.measureElement(u,l,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var a;(a=s())==null||a.disconnect(),n=null},observe:a=>{var l;return(l=s())==null?void 0:l.observe(a,{box:"border-box"})},unobserve:a=>{var l;return(l=s())==null?void 0:l.unobserve(a)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([s,a])=>{typeof a>"u"&&delete n[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:gU,rangeExtractor:vU,onChange:()=>{},measureElement:xU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var s,a;(a=(s=this.options).onChange)==null||a.call(s,this,n)},this.maybeNotify=$o(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
412{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(a=>{this.observer.observe(a)}),this.unsubs.push(this.options.observeElementRect(this,a=>{this.scrollRect=a,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(a,l)=>{this.scrollAdjustments=0,this.scrollDirection=l?this.getScrollOffset()<a?"forward":"backward":null,this.scrollOffset=a,this.isScrolling=l,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,s)=>{const a=new Map,l=new Map;for(let d=s-1;d>=0;d--){const u=n[d];if(a.has(u.lane))continue;const f=l.get(u.lane);if(f==null||u.end>f.end?l.set(u.lane,u):u.end<f.end&&a.set(u.lane,!0),a.size===this.options.lanes)break}return l.size===this.options.lanes?Array.from(l.values()).sort((d,u)=>d.end===u.end?d.index-u.index:d.end-u.end)[0]:void 0},this.getMeasurementOptions=$o(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,s,a,l,d,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:s,scrollMargin:a,getItemKey:l,enabled:d,lanes:u}),{key:!1}),this.getMeasurements=$o(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:s,scrollMargin:a,getItemKey:l,enabled:d,lanes:u},f)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const y of this.laneAssignments.keys())y>=n&&this.laneAssignments.delete(y);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(y=>{this.itemSizeCache.set(y.key,y.size)}));const h=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,h),g=new Array(u).fill(void 0);for(let y=0;y<h;y++){const x=p[y];x&&(g[x.lane]=y)}for(let y=h;y<n;y++){const x=l(y),b=this.laneAssignments.get(y);let w,S;if(b!==void 0&&this.options.lanes>1){w=b;const M=g[w],L=M!==void 0?p[M]:void 0;S=L?L.end+this.options.gap:s+a}else{const M=this.options.lanes===1?p[y-1]:this.getFurthestMeasurement(p,y);S=M?M.end+this.options.gap:s+a,w=M?M.lane:y%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(y,w)}const N=f.get(x),C=typeof N=="number"?N:this.options.estimateSize(y),E=S+C;p[y]={index:y,start:S,size:C,end:E,key:x,lane:w},g[w]=y}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=$o(()=>
412[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,s,a,l)=>this.range=n.length>0&&s>0?wU({measurements:n,outerSize:s,scrollOffset:a,lanes:l}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=$o(()=>{let n=null,s=null;const a=this.calculateRange();return a&&(n=a.startIndex,s=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,s]},(n,s,a,l,d)=>l===null||d===null?[]:n({startIndex:l,endIndex:d,overscan:s,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const s=this.options.indexAttribute,a=n.getAttribute(s);return a?parseInt(a,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var s;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const a=this.scrollState.index??((s=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:s.index);if(a!==void 0&&this.range){const l=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),d=Math.max(0,a-l),u=Math.min(this.options.count-1,a+l);return n>=d&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((d,u)=>{d.isConnected||(this.observer.unobserve(d),this.elementsCache.delete(u))});return}const s=this.indexFromElement(n),a=this.options.getItemKey(s),l=this.elementsCache.get(a);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(a,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(s)&&this.resizeItem(s,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,s)=>{var a;const l=this.measurementsCache[n];if(!l)return;const d=this.itemSizeCache.get(l.key)??l.size,u=s-d;u!==0&&(((a=this.scrollState)==null?void 0:a.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(l,u,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,s)),this.notify(!1))},this.getVirtualItems=$o(()=>
412[this.getVirtualIndexes(),this.getMeasurements()],(n,s)=>{const a=[];for(let l=0,d=n.length;l<d;l++){const u=n[l],f=s[u];a.push(f)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const s=this.getMeasurements();if(s.length!==0)return Dw(s[x6(0,s.length-1,a=>Dw(s[a]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,s,a=0)=>{if(!this.scrollElement)return 0;const l=this.getSize(),d=this.getScrollOffset();s==="auto"&&(s=n>=d+l?"end":"start"),s==="center"?n+=(a-l)/2:s==="end"&&(n-=l);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,s="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getSize(),l=this.getScrollOffset(),d=this.measurementsCache[n];if(!d)return;if(s==="auto")if(d.end>=l+a-this.options.scrollPaddingEnd)s="end";else if(d.start<=l+this.options.scrollPaddingStart)s="start";else return[l,s];if(s==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),s];const u=s==="end"?d.end+this.options.scrollPaddingEnd:d.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,s,d.size),s]},this.scrollToOffset=(n,{align:s="start",behavior:a="auto"}={})=>{const l=this.getOffsetForAlignment(n,s),d=this.now();this.scrollState={index:null,align:s,behavior:a,startedAt:d,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:s="auto",behavior:a="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const l=this.getOffsetForIndex(n,s);if(!l)return;const[d,u]=l,f=this.now();this.scrollState={index:n,align:u,behavior:a,startedAt:f,lastTargetOffset:d,stableFrames:0},this._scrollToOffset(d,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:s="auto"}={})=>{const a=this.getScrollOffset()+n,l=this.now();this.scrollState={index:null,align:"start",behavior:s,startedAt:l,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const s=this.getMeasurements();let a;if(s.length===0)a=this.options.paddingStart;else if(this.options.lanes===1)a=((n=s[s.length-1])==null?void 0:n.end)??0;else{const l=Array(this.options.lanes).fill(null);let d=s.length-1;for(;d>=0&&l.some(u=>u===null);){const u=s[d];l[u.lane]===null&&(l[u.lane]=u.end),d--}a=Math.max(...l.filter(u=>u!==null))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:s,behavior:a})=>{this.options.scrollToFn(n,{behavior:a,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const s=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,a=s?s[0]:this.scrollState.lastTargetOffset,l=1,d=a!==this.scrollState.lastTargetOffset;
412if(!d&&hU(a,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=l){this.scrollState=null;return}}else this.scrollState.stableFrames=0,d&&(this.scrollState.lastTargetOffset=a,this.scrollState.behavior="auto",this._scrollToOffset(a,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const x6=(e,t,n,s)=>{for(;e<=t;){const a=(e+t)/2|0,l=n(a);if(l<s)e=a+1;else if(l>s)t=a-1;else return a}return e>0?e-1:0};function wU({measurements:e,outerSize:t,scrollOffset:n,lanes:s}){const a=e.length-1,l=f=>e[f].start;if(e.length<=s)return{startIndex:0,endIndex:a};let d=x6(0,a,l,n),u=d;if(s===1)for(;u<a&&e[u].end<n+t;)u++;else if(s>1){const f=Array(s).fill(0);for(;u<a&&f.some(p=>p<n+t);){const p=e[u];f[p.lane]=p.end,u++}const h=Array(s).fill(n+t);for(;d>=0&&h.some(p=>p>=n);){const p=e[d];h[p.lane]=p.start,d--}d=Math.max(0,d-d%s),u=Math.min(a,u+(s-1-u%s))}return{startIndex:d,endIndex:u}}const Bw=typeof document<"u"?j.useLayoutEffect:j.useEffect;function SU({useFlushSync:e=!0,...t}){const n=j.useReducer(()=>({}),{})[1],s={...t,onChange:(l,d)=>{var u;e&&d?ln.flushSync(n):n(),(u=t.onChange)==null||u.call(t,l,d)}},[a]=j.useState(()=>new jU(s));return a.setOptions(s),Bw(()=>a._didMount(),[]),Bw(()=>a._willUpdate()),a}function NU(e){return SU({observeElementRect:yU,observeElementOffset:bU,scrollToFn:_U,...e})}function CU(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function _6(e=CU){return j.useCallback((t,n)=>{if(typeof e=="string"){let s=e;return t?.[s]===n?.[s]}return e(t,n)},[e])}function zw(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Dv(e,t,n=!1){let[s,a]=j.useState(()=>zw(t));return Rt(()=>{if(!t||!e)return;let l=rs();return l.requestAnimationFrame(function d(){l.requestAnimationFrame(d),a(u=>{let f=zw(t);return f.width===u.width&&f.height===u.height?u:f})}),()=>{l.dispose()}},[t,e]),n?{width:`${s.width}px`,height:`${s.height}px`}:s}var jb=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(jb||{});function j6(e){let t=j.useRef(null),n=He(a=>{t.current=a.pointerType,!Pw(a.currentTarget)&&a.pointerType==="mouse"&&a.button===jb.Left&&(a.preventDefault(),e(a))}),s=He(a=>{t.current!=="mouse"&&(Pw(a.currentTarget)||e(a))});return{onPointerDown:n,onClick:s}}let w6=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var $U=Object.defineProperty,EU=(e,t,n)=>t in e?$U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TU=(e,t,n)=>(EU(e,t+"",n),n),S6=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Ds=(e,t,n)=>(S6(e,t,"read from private field"),n?n.call(e):t.get(e)),p0=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Vw=(e,t,n,s)=>(S6(e,t,"write to private field"),t.set(e,n),n),di,jc,wc;let wb=class{constructor(t){p0(this,di,{}),p0(this,jc,new w6(()=>new Set)),p0(this,wc,new Set),TU(this,"disposables",rs()),Vw(this,di,t),Ma.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Ds(this,di)}subscribe(t,n){if(Ma.isServer)return()=>{};let s={selector:t,callback:n,current:t(Ds(this,di))};return Ds(this,wc).add(s),this.disposables.add(()=>{Ds(this,wc).delete(s)})}on(t,n){return Ma.isServer?()=>{}:(Ds(this,jc).get(t).add(n),this.disposables.add(()=>{Ds(this,jc).get(t).delete(n)}))}send(t){let n=this.reduce(Ds(this,di),t);if(n!==Ds(this,di)){Vw(this,di,n);for(let s of Ds(this,wc)){let a=s.selector(Ds(this,di));N6(s.current,a)||(s.current=a,s.callback(a))}for(let s of Ds(this,jc).get(t.type))s(Ds(this,di),t)}}};di=new WeakMap,jc=new WeakMap,wc=new WeakMap;function N6(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:g0(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:g0(e.entries(),t.entries()):Uw(e)&&Uw(t)?g0(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function g0(e,t){do{let n=e.next(),s=t.next();if(n.done&&s.done)return!0;
vendor: 6,598 bytes, lines 412-420
412if(n.done||s.done||!Object.is(n.value,s.value))return!1}while(!0)}function Uw(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function v0(e){let[t,n]=e(),s=rs();return(...a)=>{t(...a),s.dispose(),s.microTask(n)}}var AU=Object.defineProperty,kU=(e,t,n)=>t in e?AU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hw=(e,t,n)=>(kU(e,typeof t!="symbol"?t+"":t,n),n),Sb=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Sb||{});let MU={0(e,t){let n=t.id,s=e.stack,a=e.stack.indexOf(n);if(a!==-1){let l=e.stack.slice();return l.splice(a,1),l.push(n),s=l,{...e,stack:s}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,s=e.stack.indexOf(n);if(s===-1)return e;let a=e.stack.slice();return a.splice(s,1),{...e,stack:a}}},OU=class C6 extends wb{constructor(){super(...arguments),Hw(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Hw(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new C6({stack:[]})}reduce(t,n){return Mn(n.type,MU,t,n)}};const Td=new w6(()=>OU.new());var y0={exports:{}},b0={};/**
413 * @license React
414 * use-sync-external-store-with-selector.production.js
415 *
416 * Copyright (c) Meta Platforms, Inc. and affiliates.
417 *
418 * This source code is licensed under the MIT license found in the
419 * LICENSE file in the root directory of this source tree.
420 */var qw;function RU(){if(qw)return b0;qw=1;var e=Dm();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,s=e.useSyncExternalStore,a=e.useRef,l=e.useEffect,d=e.useMemo,u=e.useDebugValue;return b0.useSyncExternalStoreWithSelector=function(f,h,p,g,y){var x=a(null);if(x.current===null){var b={hasValue:!1,value:null};x.current=b}else b=x.current;x=d(function(){function S(L){if(!N){if(N=!0,C=L,L=g(L),y!==void 0&&b.hasValue){var R=b.value;if(y(R,L))return E=R}return E=L}if(R=E,n(C,L))return R;var O=g(L);return y!==void 0&&y(R,O)?(C=L,R):(C=L,E=O)}var N=!1,C,E,M=p===void 0?null:p;return[function(){return S(h())},M===null?void 0:function(){return S(M())}]},[h,p,g,y]);var w=s(f,x[0],x[1]);return l(function(){b.hasValue=!0,b.value=w},[w]),u(w),w},b0}var Gw;function PU(){return Gw||(Gw=1,y0.exports=RU()),y0.exports}var DU=PU();function gt(e,t,n=N6){return DU.useSyncExternalStoreWithSelector(He(s=>e.subscribe(LU,s)),He(()=>e.state),He(()=>e.state),He(t),n)}function LU(e){return e}function $6(e,t){let n=j.useId(),s=Td.get(t),[a,l]=gt(s,j.useCallback(d=>[s.selectors.isTop(d,n),s.selectors.inStack(d,n)],[s,n]));return Rt(()=>{if(e)return s.actions.push(n),()=>s.actions.pop(n)},[s,e,n]),e?l?a:!0:!1}let Lv=new Map,Dc=new Map;function Ww(e){var t;let n=(t=Dc.get(e))!=null?t:0;return Dc.set(e,n+1),n!==0?()=>Yw(e):(Lv.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Yw(e))}function Yw(e){var t;let n=(t=Dc.get(e))!=null?t:1;if(n===1?Dc.delete(e):Dc.set(e,n-1),n!==1)return;let s=Lv.get(e);s&&(s["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",s["aria-hidden"]),e.inert=s.inert,Lv.delete(e))}function E6(e,{allowed:t,disallowed:n}={}){let s=$6(e,"inert-others");Rt(()=>{var a,l;if(!s)return;let d=rs();for(let f of(a=n?.())!=null?a:[])f&&d.add(Ww(f));let u=(l=t?.())!=null?l:[];for(let f of u){if(!f)continue;let h=Cd(f);if(!h)continue;let p=f.parentElement;for(;p&&p!==h.body;){for(let g of p.children)u.some(y=>g.contains(y))||d.add(Ww(g));p=p.parentElement}}return d.dispose},[s,t,n])}function T6(e,t,n){let s=Wr(a=>{let l=a.getBoundingClientRect();l.x===0&&l.y===0&&l.width===0&&l.height===0&&n()});j.useEffect(()=>{if(!e)return;let a=t===null?null:_i(t)?t:t.current;if(!a)return;let l=rs();if(typeof ResizeObserver<"u"){let d=new ResizeObserver(()=>s.current(a));d.observe(a),l.add(()=>d.disconnect())}if(typeof IntersectionObserver<"u"){let d=new IntersectionObserver(()=>s.current(a));d.observe(a),l.add(()=>d.disconnect())}return()=>l.dispose()},[t,s,e])}let Nm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),FU=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Fv=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Fv||{}),IU=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(IU||{}),BU=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(BU||{});function A6(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Nm)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function zU(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(FU)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Nb=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Nb||{});function k6(e,t=0){var n;return e===((n=Cd(e))==null?void 0:n.body)?!1:Mn(t,{0(){return e.matches(Nm)},1(){let s=e;for(;s!==null;){if(s.matches(Nm))return!0;s=s.parentElement}return!1}})}var VU=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(VU||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let UU=["textarea","input"].join(",");function HU(e){var t,n;return(n=(t=e?.matches)==null?void 0:t.call(e,UU))!=null?n:!1}function Cb(e,t=n=>n){return e.slice().sort((n,s)=>{let a=t(n),l=t(s);if(a===null||l===null)return 0;let d=a.compareDocumentPosition(l);return d&Node.DOCUMENT_POSITION_FOLLOWING?-1:d&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function qU(e,t,n=e===null?document.body:wm(e)){return GU(A6(n),t,{relativeTo:e})}function GU(e,t,{sorted:n=!0,relativeTo:s=null,skipElements:a=[]}={}){let l=Array.isArray(e)?e.length>0?wm(e[0]):document:wm(e),d=Array.isArray(e)?n?Cb(e):e:t&64?zU(e):A6(e);a.length>0&&d.length>1&&(d=d.filter(x=>!a.some(b=>b!=null&&"current"in b?b?.current===x:b===x))),s=s??l?.activeElement;let u=(()=>
420{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,d.indexOf(s))-1;if(t&4)return Math.max(0,d.indexOf(s))+1;if(t&8)return d.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=t&32?{preventScroll:!0}:{},p=0,g=d.length,y;do{if(p>=g||p+g<=0)return 0;let x=f+p;if(t&16)x=(x+g)%g;else{if(x<0)return 3;if(x>=g)return 1}y=d[x],y?.focus(h),p+=u}while(y!==t6(y));return t&6&&HU(y)&&y.select(),2}function M6(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function WU(){return/Android/gi.test(window.navigator.userAgent)}function Iv(){return M6()||WU()}function Io(e,t,n,s){let a=Wr(n);j.useEffect(()=>{if(!e)return;function l(d){a.current(d)}return document.addEventListener(t,l,s),()=>document.removeEventListener(t,l,s)},[e,t,s])}function YU(e,t,n,s){let a=Wr(n);j.useEffect(()=>{if(!e)return;function l(d){a.current(d)}return window.addEventListener(t,l,s),()=>window.removeEventListener(t,l,s)},[e,t,s])}const Kw=30;function O6(e,t,n){let s=Wr(n),a=j.useCallback(function(u,f){if(u.defaultPrevented)return;let h=f(u);if(h===null||!h.getRootNode().contains(h)||!h.isConnected)return;let p=(function g(y){return typeof y=="function"?g(y()):Array.isArray(y)||y instanceof Set?y:[y]})(t);for(let g of p)if(g!==null&&(g.contains(h)||u.composed&&u.composedPath().includes(g)))return;return!k6(h,Nb.Loose)&&h.tabIndex!==-1&&u.preventDefault(),s.current(u,h)},[s,t]),l=j.useRef(null);Io(e,"pointerdown",u=>{var f,h;Iv()||(l.current=((h=(f=u.composedPath)==null?void 0:f.call(u))==null?void 0:h[0])||u.target)},!0),Io(e,"pointerup",u=>{if(Iv()||!l.current)return;let f=l.current;return l.current=null,a(u,()=>f)},!0);let d=j.useRef({x:0,y:0});Io(e,"touchstart",u=>{d.current.x=u.touches[0].clientX,d.current.y=u.touches[0].clientY},!0),Io(e,"touchend",u=>{let f={x:u.changedTouches[0].clientX,y:u.changedTouches[0].clientY};if(!(Math.abs(f.x-d.current.x)>=Kw||Math.abs(f.y-d.current.y)>=Kw))return a(u,()=>Ca(u.target)?u.target:null)},!0),YU(e,"blur",u=>a(u,()=>sU(window.document.activeElement)?window.document.activeElement:null),!0)}function od(...e){return j.useMemo(()=>Cd(...e),[...e])}var KU=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(KU||{});const Wi={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},XU=200,Xw=5;function R6(e,{trigger:t,action:n,close:s,select:a}){let l=j.useRef(null),d=j.useRef(null),u=j.useRef(null);Io(e&&t!==null,"pointerdown",f=>{f6(f?.target)&&t!=null&&t.contains(f.target)&&(d.current=f.x,u.current=f.y,l.current=f.timeStamp)}),Io(e&&t!==null,"pointerup",f=>{var h,p;let g=l.current;if(g===null||(l.current=null,!Ca(f.target))||Math.abs(f.x-((h=d.current)!=null?h:f.x))<Xw&&Math.abs(f.y-((p=u.current)!=null?p:f.y))<Xw)return;let y=n(f);switch(y.kind){case 0:return;case 1:{f.timeStamp-g>XU&&(a(y.target),s());break}case 2:{s();break}}},{capture:!0})}function ZU(e,t,n,s){let a=Wr(n);j.useEffect(()=>{e=e??window;function l(d){a.current(d)}return e.addEventListener(t,l,s),()=>e.removeEventListener(t,l,s)},[e,t,s])}function P6(e){let t=j.useRef({value:"",selectionStart:null,selectionEnd:null});return ZU(e,"blur",n=>{let s=n.target;Sm(s)&&(t.current={value:s.value,selectionStart:s.selectionStart,selectionEnd:s.selectionEnd})}),He(()=>{if(!yb(e)&&Sm(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:s}=t.current;n!==null&&s!==null&&e.setSelectionRange(n,s)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function D6(e,t){return j.useMemo(()=>{var n;if(e.type)return e.type;let s=(n=e.as)!=null?n:"button";if(typeof s=="string"&&s.toLowerCase()==="button"||t?.tagName==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function QU(e){return j.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function JU(e,t){let n=e(),s=new Set;return{getSnapshot(){return n},subscribe(a){return s.add(a),()=>s.delete(a)},dispatch(a,...l){let d=t[a].call(n,...l);
vendor: 8,194 bytes, lines 420-421
420d&&(n=d,s.forEach(u=>u()))}}}function eH(){let e;return{before({doc:t}){var n;let s=t.documentElement,a=(n=t.defaultView)!=null?n:window;e=Math.max(0,a.innerWidth-s.clientWidth)},after({doc:t,d:n}){let s=t.documentElement,a=Math.max(0,s.clientWidth-s.offsetWidth),l=Math.max(0,e-a);n.style(s,"paddingRight",`${l}px`)}}}function tH(){return M6()?{before({doc:e,d:t,meta:n}){function s(a){for(let l of n().containers)for(let d of l())if(d.contains(a))return!0;return!1}t.microTask(()=>{var a;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let u=rs();u.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>u.dispose()))}let l=(a=window.scrollY)!=null?a:window.pageYOffset,d=null;t.addEventListener(e,"click",u=>{if(Ca(u.target))try{let f=u.target.closest("a");if(!f)return;let{hash:h}=new URL(f.href),p=e.querySelector(h);Ca(p)&&!s(p)&&(d=p)}catch{}},!0),t.group(u=>{t.addEventListener(e,"touchstart",f=>{if(u.dispose(),Ca(f.target)&&nU(f.target))if(s(f.target)){let h=f.target;for(;h.parentElement&&s(h.parentElement);)h=h.parentElement;u.style(h,"overscrollBehavior","contain")}else u.style(f.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",u=>{if(Ca(u.target)){if(Sm(u.target))return;if(s(u.target)){let f=u.target;for(;f.parentElement&&f.dataset.headlessuiPortal!==""&&!(f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth);)f=f.parentElement;f.dataset.headlessuiPortal===""&&u.preventDefault()}else u.preventDefault()}},{passive:!1}),t.add(()=>{var u;let f=(u=window.scrollY)!=null?u:window.pageYOffset;l!==f&&window.scrollTo(0,l),d&&d.isConnected&&(d.scrollIntoView({block:"nearest"}),d=null)})})}}:{}}function nH(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Zw(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let $a=JU(()=>new Map,{PUSH(e,t){var n;let s=(n=this.get(e))!=null?n:{doc:e,count:0,d:rs(),meta:new Set,computedMeta:{}};return s.count++,s.meta.add(t),s.computedMeta=Zw(s.meta),this.set(e,s),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=Zw(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[tH(),eH(),nH()];n.forEach(({before:s})=>s?.(t)),n.forEach(({after:s})=>s?.(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});$a.subscribe(()=>{let e=$a.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let s=t.get(n.doc)==="hidden",a=n.count!==0;(a&&!s||!a&&s)&&$a.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&$a.dispatch("TEARDOWN",n)}});function sH(e,t,n=()=>({containers:[]})){let s=QU($a),a=t?s.get(t):void 0,l=a?a.count>0:!1;return Rt(()=>{if(!(!t||!e))return $a.dispatch("PUSH",t,n),()=>$a.dispatch("POP",t,n)},[e,t]),l}function L6(e,t,n=()=>[document.body]){let s=$6(e,"scroll-lock");sH(s,t,a=>{var l;return{containers:[...(l=a.containers)!=null?l:[],n]}})}function Qw(e){return[e.screenX,e.screenY]}function F6(){let e=j.useRef([-1,-1]);return{wasMoved(t){let n=Qw(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Qw(t)}}}function iH(e=0){let[t,n]=j.useState(e),s=j.useCallback(f=>n(f),[]),a=j.useCallback(f=>n(h=>h|f),[]),l=j.useCallback(f=>(t&f)===f,[t]),d=j.useCallback(f=>n(h=>h&~f),[]),u=j.useCallback(f=>n(h=>h^f),[]);return{flags:t,setFlag:s,addFlag:a,hasFlag:l,removeFlag:d,toggleFlag:u}}var rH={},Jw,eS;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Jw=process==null?void 0:rH)==null?void 0:Jw.NODE_ENV)==="test"&&typeof((eS=Element?.prototype)==null?void 0:eS.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
421`)),[]});var aH=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(aH||{});function I6(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function B6(e,t,n,s){let[a,l]=j.useState(n),{hasFlag:d,addFlag:u,removeFlag:f}=iH(e&&a?3:0),h=j.useRef(!1),p=j.useRef(!1),g=Ba();return Rt(()=>{var y;if(e){if(n&&l(!0),!t){n&&u(3);return}return(y=void 0)==null||y.call(s,n),oH(t,{inFlight:h,prepare(){p.current?p.current=!1:p.current=h.current,h.current=!0,!p.current&&(n?(u(3),f(4)):(u(4),f(2)))},run(){p.current?n?(f(3),u(4)):(f(4),u(3)):n?f(1):u(1)},done(){var x;p.current&&dH(t)||(h.current=!1,f(7),n||l(!1),(x=void 0)==null||x.call(s,n))}})}},[e,n,t,g]),e?[a,{closed:d(1),enter:d(2),leave:d(4),transition:d(2)||d(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function oH(e,{prepare:t,run:n,done:s,inFlight:a}){let l=rs();return cH(e,{prepare:t,inFlight:a}),l.nextFrame(()=>{n(),l.requestAnimationFrame(()=>{l.add(lH(e,s))})}),l.dispose}function lH(e,t){var n,s;let a=rs();if(!e)return a.dispose;let l=!1;a.add(()=>{l=!0});let d=(s=(n=e.getAnimations)==null?void 0:n.call(e).filter(u=>u instanceof CSSTransition))!=null?s:[];return d.length===0?(t(),a.dispose):(Promise.allSettled(d.map(u=>u.finished)).then(()=>{l||t()}),a.dispose)}function cH(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let s=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=s}function dH(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(s=>s instanceof CSSTransition&&s.playState!=="finished")}function uH(e,{container:t,accept:n,walk:s}){let a=j.useRef(n),l=j.useRef(s);j.useEffect(()=>{a.current=n,l.current=s},[n,s]),Rt(()=>{if(!t||!e)return;let d=Cd(t);if(!d)return;let u=a.current,f=l.current,h=Object.assign(g=>u(g),{acceptNode:u}),p=d.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,h,!1);for(;p.nextNode();)f(p.currentNode)},[t,e,a,l])}function tS(e,t){let n=j.useRef([]),s=He(e);j.useEffect(()=>{let a=[...n.current];for(let[l,d]of t.entries())if(n.current[l]!==d){let u=s(t,a);return n.current=t,u}},[s,...t])}function rh(){return typeof window<"u"}function ol(e){return z6(e)?(e.nodeName||"").toLowerCase():"#document"}function bs(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ji(e){var t;return(t=(z6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function z6(e){return rh()?e instanceof Node||e instanceof bs(e).Node:!1}function Un(e){return rh()?e instanceof Element||e instanceof bs(e).Element:!1}function tr(e){return rh()?e instanceof HTMLElement||e instanceof bs(e).HTMLElement:!1}function nS(e){return!rh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bs(e).ShadowRoot}function Ad(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&a!=="inline"&&a!=="contents"}function fH(e){return/^(table|td|th)$/.test(ol(e))}function ah(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const mH=/transform|translate|scale|rotate|perspective|filter/,hH=/paint|layout|strict|content/,pa=e=>!!e&&e!=="none";let x0;function $b(e){const t=Un(e)?ni(e):e;return pa(t.transform)||pa(t.translate)||pa(t.scale)||pa(t.rotate)||pa(t.perspective)||!Eb()&&(pa(t.backdropFilter)||pa(t.filter))||mH.test(t.willChange||"")||hH.test(t.contain||"")}function pH(e){let t=Ur(e);for(;tr(t)&&!el(t);){if($b(t))return t;if(ah(t))return null;t=Ur(t)}return null}function Eb(){return x0==null&&(x0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),x0}function el(e){return/^(html|body|#document)$/.test(ol(e))}function ni(e){return bs(e).getComputedStyle(e)}function oh(e){return Un(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ur(e){if(ol(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nS(e)&&e.host||ji(e);return nS(t)?t.host:t}function V6(e){const t=Ur(e);return el(t)?e.ownerDocument?e.ownerDocument.body:e.body:tr(t)&&Ad(t)?t:V6(t)}function ld(e,t,n){var s;
vendor: 10,381 bytes, line 421
421t===void 0&&(t=[]),n===void 0&&(n=!0);const a=V6(e),l=a===((s=e.ownerDocument)==null?void 0:s.body),d=bs(a);if(l){const u=Bv(d);return t.concat(d,d.visualViewport||[],Ad(a)?a:[],u&&n?ld(u):[])}else return t.concat(a,ld(a,[],n))}function Bv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gH(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:s}=t;return n+"/"+s}).join(" "):navigator.userAgent}const Fa=Math.min,En=Math.max,cd=Math.round,pf=Math.floor,yi=e=>({x:e,y:e}),vH={left:"right",right:"left",bottom:"top",top:"bottom"};function sS(e,t,n){return En(e,Fa(t,n))}function ll(e,t){return typeof e=="function"?e(t):e}function Hr(e){return e.split("-")[0]}function kd(e){return e.split("-")[1]}function U6(e){return e==="x"?"y":"x"}function H6(e){return e==="y"?"height":"width"}function Yi(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function q6(e){return U6(Yi(e))}function yH(e,t,n){n===void 0&&(n=!1);const s=kd(e),a=q6(e),l=H6(a);let d=a==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(d=Cm(d)),[d,Cm(d)]}function bH(e){const t=Cm(e);return[zv(e),t,zv(t)]}function zv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const iS=["left","right"],rS=["right","left"],xH=["top","bottom"],_H=["bottom","top"];function jH(e,t,n){switch(e){case"top":case"bottom":return n?t?rS:iS:t?iS:rS;case"left":case"right":return t?xH:_H;default:return[]}}function wH(e,t,n,s){const a=kd(e);let l=jH(Hr(e),n==="start",s);return a&&(l=l.map(d=>d+"-"+a),t&&(l=l.concat(l.map(zv)))),l}function Cm(e){const t=Hr(e);return vH[t]+e.slice(t.length)}function SH(e){return{top:0,right:0,bottom:0,left:0,...e}}function NH(e){return typeof e!="number"?SH(e):{top:e,right:e,bottom:e,left:e}}function $m(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function aS(e,t,n){let{reference:s,floating:a}=e;const l=Yi(t),d=q6(t),u=H6(d),f=Hr(t),h=l==="y",p=s.x+s.width/2-a.width/2,g=s.y+s.height/2-a.height/2,y=s[u]/2-a[u]/2;let x;switch(f){case"top":x={x:p,y:s.y-a.height};break;case"bottom":x={x:p,y:s.y+s.height};break;case"right":x={x:s.x+s.width,y:g};break;case"left":x={x:s.x-a.width,y:g};break;default:x={x:s.x,y:s.y}}switch(kd(t)){case"start":x[d]-=y*(n&&h?-1:1);break;case"end":x[d]+=y*(n&&h?-1:1);break}return x}async function G6(e,t){var n;t===void 0&&(t={});const{x:s,y:a,platform:l,rects:d,elements:u,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=ll(t,e),b=NH(x),S=u[y?g==="floating"?"reference":"floating":g],N=$m(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(u.floating)),boundary:h,rootBoundary:p,strategy:f})),C=g==="floating"?{x:s,y:a,width:d.floating.width,height:d.floating.height}:d.reference,E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u.floating)),M=await(l.isElement==null?void 0:l.isElement(E))?await(l.getScale==null?void 0:l.getScale(E))||{x:1,y:1}:{x:1,y:1},L=$m(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:E,strategy:f}):C);return{top:(N.top-L.top+b.top)/M.y,bottom:(L.bottom-N.bottom+b.bottom)/M.y,left:(N.left-L.left+b.left)/M.x,right:(L.right-N.right+b.right)/M.x}}const CH=50,$H=async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:l=[],platform:d}=n,u=d.detectOverflow?d:{...d,detectOverflow:G6},f=await(d.isRTL==null?void 0:d.isRTL(t));let h=await d.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:g}=aS(h,s,f),y=s,x=0;const b={};for(let w=0;w<l.length;w++){const S=l[w];if(!S)continue;const{name:N,fn:C}=S,{x:E,y:M,data:L,reset:R}=await C({x:p,y:g,initialPlacement:s,placement:y,strategy:a,middlewareData:b,rects:h,platform:u,elements:{reference:e,floating:t}});p=E??p,g=M??g,b[N]={...b[N],...L},R&&x<CH&&(x++,typeof R=="object"&&(R.placement&&(y=R.placement),R.rects&&(h=R.rects===!0?await d.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:p,y:g}=aS(h,y,f)),w=-1)}return{x:p,y:g,placement:y,strategy:a,middlewareData:b}},EH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:l,rects:d,initialPlacement:u,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...S}=ll(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const N=Hr(a),C=Yi(u),E=Hr(u)===u,M=await(f.isRTL==null?void 0:f.isRTL(h.floating)),L=y||(E||!w?[Cm(u)]:bH(u)),R=b!=="none";!y&&R&&L.push(...wH(u,w,b,M));const O=[u,...L],k=await f.detectOverflow(t,S),B=[];let I=((s=l.flip)==null?void 0:s.overflows)||[];if(p&&B.push(k[N]),g){const W=yH(a,d,M);B.push(k[W[0]],k[W[1]])}if(I=[...I,{placement:a,overflows:B}],!B.every(W=>W<=0)){var V,z;const W=(((V=l.flip)==null?void 0:V.index)||0)+1,Q=O[W];if(Q&&(!(g==="alignment"?C!==Yi(Q):!1)||I.every(U=>Yi(U.placement)===C?U.overflows[0]>0:!0)))return{data:{index:W,overflows:I},reset:{placement:Q}};let D=(z=I.filter(H=>H.overflows[0]<=0).sort((H,U)=>H.overflows[1]-U.overflows[1])[0])==null?void 0:z.placement;if(!D)switch(x){case"bestFit":{var K;const H=(K=I.filter(U=>{if(R){const Z=Yi(U.placement);return Z===C||Z==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Z=>Z>0).reduce((Z,F)=>Z+F,0)]).sort((U,Z)=>U[1]-Z[1])[0])==null?void 0:K[0];H&&(D=H);break}case"initialPlacement":D=u;break}if(a!==D)return{reset:{placement:D}}}return{}}}},TH=new Set(["left","top"]);async function AH(e,t){const{placement:n,platform:s,elements:a}=e,l=await(s.isRTL==null?void 0:s.isRTL(a.floating)),d=Hr(n),u=kd(n),f=Yi(n)==="y",h=TH.has(d)?-1:1,p=l&&f?-1:1,g=ll(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof b=="number"&&(x=u==="end"?b*-1:b),f?{x:x*p,y:y*h}:{x:y*h,y:x*p}}const kH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:l,placement:d,middlewareData:u}=t,f=await AH(t,e);return d===((n=u.offset)==null?void 0:n.placement)&&(s=u.arrow)!=null&&s.alignmentOffset?{}:{x:a+f.x,y:l+f.y,data:{...f,placement:d}}}}},MH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a,platform:l}=t,{mainAxis:d=!0,crossAxis:u=!1,limiter:f={fn:N=>{let{x:C,y:E}=N;return{x:C,y:E}}},...h}=ll(e,t),p={x:n,y:s},g=await l.detectOverflow(t,h),y=Yi(Hr(a)),x=U6(y);let b=p[x],w=p[y];if(d){const N=x==="y"?"top":"left",C=x==="y"?"bottom":"right",E=b+g[N],M=b-g[C];b=sS(E,b,M)}if(u){const N=y==="y"?"top":"left",C=y==="y"?"bottom":"right",E=w+g[N],M=w-g[C];w=sS(E,w,M)}const S=f.fn({...t,[x]:b,[y]:w});return{...S,data:{x:S.x-n,y:S.y-s,enabled:{[x]:d,[y]:u}}}}}},OH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:l,platform:d,elements:u}=t,{apply:f=()=>{},...h}=ll(e,t),p=await d.detectOverflow(t,h),g=Hr(a),y=kd(a),x=Yi(a)==="y",{width:b,height:w}=l.floating;let S,N;g==="top"||g==="bottom"?(S=g,N=y===(await(d.isRTL==null?void 0:d.isRTL(u.floating))?"start":"end")?"left":"right"):(N=g,S=y==="end"?"top":"bottom");const C=w-p.top-p.bottom,E=b-p.left-p.right,M=Fa(w-p[S],C),L=Fa(b-p[N],E),R=!t.middlewareData.shift;let O=M,k=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=E),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(O=C),R&&!y){const I=En(p.left,0),V=En(p.right,0),z=En(p.top,0),K=En(p.bottom,0);x?k=b-2*(I!==0||V!==0?I+V:En(p.left,p.right)):O=w-2*(z!==0||K!==0?z+K:En(p.top,p.bottom))}await f({...t,availableWidth:k,availableHeight:O});const B=await d.getDimensions(u.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function W6(e){const t=ni(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=tr(e),l=a?e.offsetWidth:n,d=a?e.offsetHeight:s,u=cd(n)!==l||cd(s)!==d;return u&&(n=l,s=d),{width:n,height:s,$:u}}function Tb(e){return Un(e)?e:e.contextElement}function qo(e){const t=Tb(e);if(!tr(t))return yi(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:l}=W6(t);let d=(l?cd(n.width):n.width)/s,u=(l?cd(n.height):n.height)/a;return(!d||!Number.isFinite(d))&&(d=1),(!u||!Number.isFinite(u))&&(u=1),{x:d,y:u}}const RH=yi(0);function Y6(e){const t=bs(e);return!Eb()||!t.visualViewport?RH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bs(e)?!1:t}function Ia(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=Tb(e);let d=yi(1);t&&(s?Un(s)&&(d=qo(s)):d=qo(e));const u=PH(l,n,s)?Y6(l):yi(0);let f=(a.left+u.x)/d.x,h=(a.top+u.y)/d.y,p=a.width/d.x,g=a.height/d.y;if(l){const y=bs(l),x=s&&Un(s)?bs(s):s;let b=y,w=Bv(b);for(;w&&s&&x!==b;){const S=qo(w),N=w.getBoundingClientRect(),C=ni(w),E=N.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,M=N.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;f*=S.x,h*=S.y,p*=S.x,g*=S.y,f+=E,h+=M,b=bs(w),w=Bv(b)}}return $m({width:p,height:g,x:f,y:h})}function lh(e,t){const n=oh(e).scrollLeft;return t?t.left+n:Ia(ji(e)).left+n}function K6(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-lh(e,n),a=n.top+t.scrollTop;return{x:s,y:a}}function DH(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const l=a==="fixed",d=ji(s),u=t?ah(t.floating):!1;if(s===d||u&&l)return n;let f={scrollLeft:0,scrollTop:0},h=yi(1);const p=yi(0),g=tr(s);if((g||!g&&!l)&&((ol(s)!=="body"||Ad(d))&&(f=oh(s)),g)){const x=Ia(s);h=qo(s),p.x=x.x+s.clientLeft,p.y=x.y+s.clientTop}const y=d&&!g&&!l?K6(d,f):yi(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+y.x,y:n.y*h.y-f.scrollTop*h.y+p.y+y.y}}function LH(e){return Array.from(e.getClientRects())}function FH(e){const t=ji(e),n=oh(e),s=e.ownerDocument.body,a=En(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=En(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let d=-n.scrollLeft+lh(e);const u=-n.scrollTop;return ni(s).direction==="rtl"&&(d+=En(t.clientWidth,s.clientWidth)-a),{width:a,height:l,x:d,y:u}}const oS=25;
vendor: 4,786 bytes, line 421
421function IH(e,t){const n=bs(e),s=ji(e),a=n.visualViewport;let l=s.clientWidth,d=s.clientHeight,u=0,f=0;if(a){l=a.width,d=a.height;const p=Eb();(!p||p&&t==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}const h=lh(s);if(h<=0){const p=s.ownerDocument,g=p.body,y=getComputedStyle(g),x=p.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,b=Math.abs(s.clientWidth-g.clientWidth-x);b<=oS&&(l-=b)}else h<=oS&&(l+=h);return{width:l,height:d,x:u,y:f}}function BH(e,t){const n=Ia(e,!0,t==="fixed"),s=n.top+e.clientTop,a=n.left+e.clientLeft,l=tr(e)?qo(e):yi(1),d=e.clientWidth*l.x,u=e.clientHeight*l.y,f=a*l.x,h=s*l.y;return{width:d,height:u,x:f,y:h}}function lS(e,t,n){let s;if(t==="viewport")s=IH(e,n);else if(t==="document")s=FH(ji(e));else if(Un(t))s=BH(t,n);else{const a=Y6(e);s={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return $m(s)}function X6(e,t){const n=Ur(e);return n===t||!Un(n)||el(n)?!1:ni(n).position==="fixed"||X6(n,t)}function zH(e,t){const n=t.get(e);if(n)return n;let s=ld(e,[],!1).filter(u=>Un(u)&&ol(u)!=="body"),a=null;const l=ni(e).position==="fixed";let d=l?Ur(e):e;for(;Un(d)&&!el(d);){const u=ni(d),f=$b(d);!f&&u.position==="fixed"&&(a=null),(l?!f&&!a:!f&&u.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Ad(d)&&!f&&X6(e,d))?s=s.filter(p=>p!==d):a=u,d=Ur(d)}return t.set(e,s),s}function VH(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const d=[...n==="clippingAncestors"?ah(t)?[]:zH(t,this._c):[].concat(n),s],u=lS(t,d[0],a);let f=u.top,h=u.right,p=u.bottom,g=u.left;for(let y=1;y<d.length;y++){const x=lS(t,d[y],a);f=En(x.top,f),h=Fa(x.right,h),p=Fa(x.bottom,p),g=En(x.left,g)}return{width:h-g,height:p-f,x:g,y:f}}function UH(e){const{width:t,height:n}=W6(e);return{width:t,height:n}}function HH(e,t,n){const s=tr(t),a=ji(t),l=n==="fixed",d=Ia(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const f=yi(0);function h(){f.x=lh(a)}if(s||!s&&!l)if((ol(t)!=="body"||Ad(a))&&(u=oh(t)),s){const x=Ia(t,!0,l,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else a&&h();l&&!s&&a&&h();const p=a&&!s&&!l?K6(a,u):yi(0),g=d.left+u.scrollLeft-f.x-p.x,y=d.top+u.scrollTop-f.y-p.y;return{x:g,y,width:d.width,height:d.height}}function _0(e){return ni(e).position==="static"}function cS(e,t){if(!tr(e)||ni(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ji(e)===n&&(n=n.ownerDocument.body),n}function Z6(e,t){const n=bs(e);if(ah(e))return n;if(!tr(e)){let a=Ur(e);for(;a&&!el(a);){if(Un(a)&&!_0(a))return a;a=Ur(a)}return n}let s=cS(e,t);for(;s&&fH(s)&&_0(s);)s=cS(s,t);return s&&el(s)&&_0(s)&&!$b(s)?n:s||pH(e)||n}const qH=async function(e){const t=this.getOffsetParent||Z6,n=this.getDimensions,s=await n(e.floating);return{reference:HH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function GH(e){return ni(e).direction==="rtl"}const WH={convertOffsetParentRelativeRectToViewportRelativeRect:DH,getDocumentElement:ji,getClippingRect:VH,getOffsetParent:Z6,getElementRects:qH,getClientRects:LH,getDimensions:UH,getScale:qo,isElement:Un,isRTL:GH};function Q6(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YH(e,t){let n=null,s;const a=ji(e);function l(){var u;clearTimeout(s),(u=n)==null||u.disconnect(),n=null}function d(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),l();const h=e.getBoundingClientRect(),{left:p,top:g,width:y,height:x}=h;if(u||t(),!y||!x)return;const b=pf(g),w=pf(a.clientWidth-(p+y)),S=pf(a.clientHeight-(g+x)),N=pf(p),E={rootMargin:-b+"px "+-w+"px "+-S+"px "+-N+"px",threshold:En(0,Fa(1,f))||1};let M=!0;function L(R){const O=R[0].intersectionRatio;if(O!==f){if(!M)return d();O?d(!1,O):s=setTimeout(()=>{d(!1,1e-7)},1e3)}O===1&&!Q6(h,e.getBoundingClientRect())&&d(),M=!1}try{n=new IntersectionObserver(L,{...E,root:a.ownerDocument})}catch{n=new IntersectionObserver(L,E)}n.observe(e)}return d(!0),l}function KH(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,h=Tb(e),p=a||l?[...h?ld(h):[],...t?ld(t):[]]:[];p.forEach(N=>{a&&N.addEventListener("scroll",n,{passive:!0}),l&&N.addEventListener("resize",n)});const g=h&&u?YH(h,n):null;let y=-1,x=null;d&&(x=new ResizeObserver(N=>{let[C]=N;C&&C.target===h&&x&&t&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var E;(E=x)==null||E.observe(t)})),n()}),h&&!f&&x.observe(h),t&&x.observe(t));let b,w=f?Ia(e):null;f&&S();function S(){const N=Ia(e);w&&!Q6(w,N)&&n(),w=N,b=requestAnimationFrame(S)}return n(),()=>{var N;p.forEach(C=>{a&&C.removeEventListener("scroll",n),l&&C.removeEventListener("resize",n)}),g?.(),(N=x)==null||N.disconnect(),x=null,f&&cancelAnimationFrame(b)}}
vendor: 1,634 bytes, line 421
421const j0=G6,XH=kH,ZH=MH,QH=EH,JH=OH,eq=(e,t,n)=>{const s=new Map,a={platform:WH,...n},l={...a.platform,_c:s};return $H(e,t,{...a,platform:l})};var tq=typeof document<"u",nq=function(){},Wf=tq?j.useLayoutEffect:nq;function Em(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!Em(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;s--!==0;){const l=a[s];if(!(l==="_owner"&&e.$$typeof)&&!Em(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function J6(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dS(e,t){const n=J6(e);return Math.round(t*n)/n}function w0(e){const t=j.useRef(e);return Wf(()=>{t.current=e}),t}function sq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:a,elements:{reference:l,floating:d}={},transform:u=!0,whileElementsMounted:f,open:h}=e,[p,g]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=j.useState(s);Em(y,s)||x(s);const[b,w]=j.useState(null),[S,N]=j.useState(null),C=j.useCallback(U=>{U!==R.current&&(R.current=U,w(U))},[]),E=j.useCallback(U=>{U!==O.current&&(O.current=U,N(U))},[]),M=l||b,L=d||S,R=j.useRef(null),O=j.useRef(null),k=j.useRef(p),B=f!=null,I=w0(f),V=w0(a),z=w0(h),K=j.useCallback(()=>{if(!R.current||!O.current)return;const U={placement:t,strategy:n,middleware:y};
421V.current&&(U.platform=V.current),eq(R.current,O.current,U).then(Z=>{const F={...Z,isPositioned:z.current!==!1};W.current&&!Em(k.current,F)&&(k.current=F,ln.flushSync(()=>{g(F)}))})},[y,t,n,V,z]);Wf(()=>{h===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(U=>({...U,isPositioned:!1})))},[h]);const W=j.useRef(!1);Wf(()=>(W.current=!0,()=>{W.current=!1}),[]),Wf(()=>{if(M&&(R.current=M),L&&(O.current=L),M&&L){if(I.current)return I.current(M,L,K);K()}},[M,L,K,I,B]);const Q=j.useMemo(()=>({reference:R,floating:O,setReference:C,setFloating:E}),[C,E]),D=j.useMemo(()=>({reference:M,floating:L}),[M,L]),H=j.useMemo(()=>{const U={position:n,left:0,top:0};if(!D.floating)return U;const Z=dS(D.floating,p.x),F=dS(D.floating,p.y);return u?{...U,transform:"translate("+Z+"px, "+F+"px)",...J6(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:F}},[n,u,D.floating,p.x,p.y]);return j.useMemo(()=>({...p,update:K,refs:Q,elements:D,floatingStyles:H}),[p,K,Q,D,H])}const eE=(e,t)=>{const n=XH(e);return{name:n.name,fn:n.fn,options:[e,t]}},iq=(e,t)=>{const n=ZH(e);return{name:n.name,fn:n.fn,options:[e,t]}},rq=(e,t)=>{const n=QH(e);return{name:n.name,fn:n.fn,options:[e,t]}},aq=(e,t)=>{const n=JH(e);return{name:n.name,fn:n.fn,options:[e,t]}},tE={...A7},oq=tE.useInsertionEffect,lq=oq||(e=>e());function nE(e){const t=j.useRef(()=>{});return lq(()=>{t.current=e}),j.useCallback(function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return t.current==null?void 0:t.current(...s)},[])}var Vv=typeof document<"u"?j.useLayoutEffect:j.useEffect;let uS=!1,cq=0;const fS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cq++;function dq(){const[e,t]=j.useState(()=>uS?fS():void 0);return Vv(()=>{e==null&&t(fS())},[]),j.useEffect(()=>{uS=!0},[]),e}const uq=tE.useId,fq=uq||dq;function mq(){const e=new Map;return{emit(t,n){var s;(s=e.get(t))==null||s.forEach(a=>a(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var s;e.set(t,((s=e.get(t))==null?void 0:s.filter(a=>a!==n))||[])}}}const hq=j.createContext(null),pq=j.createContext(null),gq=()=>{var e;return((e=j.useContext(hq))==null?void 0:e.id)||null},vq=()=>j.useContext(pq),yq="data-floating-ui-focusable";function bq(e){const{open:t=!1,onOpenChange:n,elements:s}=e,a=fq(),l=j.useRef({}),[d]=j.useState(()=>mq()),u=gq()!=null,[f,h]=j.useState(s.reference),p=nE((x,b,w)=>{l.current.openEvent=x?b:void 0,d.emit("openchange",{open:x,event:b,reason:w,nested:u}),n?.(x,b,w)}),g=j.useMemo(()=>({setPositionReference:h}),[]),y=j.useMemo(()=>({reference:f||s.reference||null,floating:s.floating||null,domReference:s.reference}),[f,s.reference,s.floating]);return j.useMemo(()=>({dataRef:l,open:t,onOpenChange:p,elements:y,events:d,floatingId:a,refs:g}),[t,p,y,d,a,g])}function xq(e){e===void 0&&(e={});const{nodeId:t}=e,n=bq({...e,elements:{reference:null,floating:null,...e.elements}}),s=e.rootContext||n,a=s.elements,[l,d]=j.useState(null),[u,f]=j.useState(null),p=a?.domReference||l,g=j.useRef(null),y=vq();Vv(()=>{p&&(g.current=p)},[p]);const x=sq({...e,elements:{...a,...u&&{reference:u}}}),b=j.useCallback(E=>{const M=Un(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;f(M),x.refs.setReference(M)},[x.refs]),w=j.useCallback(E=>{(Un(E)||E===null)&&(g.current=E,d(E)),(Un(x.refs.reference.current)||x.refs.reference.current===null||E!==null&&!Un(E))&&x.refs.setReference(E)},[x.refs]),S=j.useMemo(()=>({...x.refs,setReference:w,setPositionReference:b,domReference:g}),[x.refs,w,b]),N=j.useMemo(()=>({...x.elements,domReference:p}),[x.elements,p]),C=j.useMemo(()=>({...x,...s,refs:S,elements:N,nodeId:t}),[x,S,N,t,s]);return Vv(()=>{s.dataRef.current.floatingContext=C;const E=y?.nodesRef.current.find(M=>M.id===t);E&&(E.context=C)}),j.useMemo(()=>({...x,context:C,refs:S,elements:N}),[x,S,N,C])}const mS="active",hS="selected";function S0(e,t,n){const s=new Map,a=n==="item";let l=e;if(a&&e){const{[mS]:d,[hS]:u,...f}=e;l=f}return{...n==="floating"&&{tabIndex:-1,[yq]:""},...l,...t.map(d=>{const u=d?d[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((d,u)=>(u&&Object.entries(u).forEach(f=>{let[h,p]=f;if(!(a&&[mS,hS].includes(h)))if(h.indexOf("on")===0){if(s.has(h)||s.set(h,[]),typeof p=="function"){var g;(g=s.get(h))==null||g.push(p),d[h]=function(){for(var y,x=arguments.length,b=new Array(x),w=0;w<x;w++)b[w]=arguments[w];return(y=s.get(h))==null?void 0:y.map(S=>S(...b)).find(S=>S!==void 0)}}}else d[h]=p}),d),{})}}function _q(e){e===void 0&&(e=[]);const t=e.map(u=>u?.reference),n=e.map(u=>u?.floating),s=e.map(u=>u?.item),a=j.useCallback(u=>S0(u,e,"reference"),t),l=j.useCallback(u=>S0(u,e,"floating"),n),d=j.useCallback(u=>S0(u,e,"item"),s);return j.useMemo(()=>({getReferenceProps:a,getFloatingProps:l,getItemProps:d}),[a,l,d])}function pS(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const jq=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:s,onFallbackChange:a,offset:l=0,index:d=0,minItemsVisible:u=4,referenceOverflowThreshold:f=0,scrollRef:h,...p}=ll(e,t),{rects:g,elements:{floating:y}}=t,x=n.current[d],b=h?.current||y,w=y.clientTop||b.clientTop,S=y.clientTop!==0,N=b.clientTop!==0,C=y===b;if(!x)return{};const E={...t,...await eE(-x.offsetTop-y.clientTop-g.reference.height/2-x.offsetHeight/2-l).fn(t)},M=await j0(pS(E,b.scrollHeight+w+y.clientTop),p),L=await j0(E,{...p,elementContext:"reference"}),R=En(0,M.top),O=E.y+R,I=(b.scrollHeight>b.clientHeight?V=>V:cd)(En(0,b.scrollHeight+(S&&C||N?w*2:0)-R-En(0,M.bottom)));if(b.style.maxHeight=I+"px",b.scrollTop=R,a){const V=b.offsetHeight<x.offsetHeight*Fa(u,n.current.length)-1||L.top>=-f||L.bottom>=-f;ln.flushSync(()=>a(V))}return s&&(s.current=await j0(pS({...E,y:O},b.offsetHeight+w+y.clientTop),p)),{y:O}}});function wq(e,t){const{open:n,elements:s}=e,{enabled:a=!0,overflowRef:l,scrollRef:d,onChange:u}=t,f=nE(u),h=j.useRef(!1),p=j.useRef(null),g=j.useRef(null);j.useEffect(()=>{if(!a)return;function x(w){if(w.ctrlKey||!b||l.current==null)return;const S=w.deltaY,N=l.current.top>=-.5,C=l.current.bottom>=-.5,E=b.scrollHeight-b.clientHeight,M=S<0?-1:1,L=S<0?"max":"min";b.scrollHeight<=b.clientHeight||(!N&&S>0||!C&&S<0?(w.preventDefault(),ln.flushSync(()=>{f(R=>R+Math[L](S,E*M))})):/firefox/i.test(gH())&&(b.scrollTop+=S))}const b=d?.current||s.floating;if(n&&b)return b.addEventListener("wheel",x),requestAnimationFrame(()=>{p.current=b.scrollTop,l.current!=null&&(g.current={...l.current})}),()=>{p.current=null,g.current=null,b.removeEventListener("wheel",x)}},[a,n,s.floating,l,d,f]);const y=j.useMemo(()=>({onKeyDown(){h.current=!0},onWheel(){h.current=!1},onPointerMove(){h.current=!1},onScroll(){const x=d?.current||s.floating;if(!(!l.current||!x||!h.current)){if(p.current!==null){const b=x.scrollTop-p.current;(l.current.bottom<-.5&&b<-1||l.current.top<-.5&&b>1)&&ln.flushSync(()=>f(w=>w+b))}requestAnimationFrame(()=>{p.current=x.scrollTop})}}}),[s.floating,f,l,d]);return j.useMemo(()=>a?{floating:y}:{},[a,y])}let cl=j.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});cl.displayName="FloatingContext";let Ab=j.createContext(null);
vendor: 6,613 bytes, line 421
421Ab.displayName="PlacementContext";function sE(e){return j.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function iE(){return j.useContext(cl).setReference}function Sq(){return j.useContext(cl).getReferenceProps}function rE(){let{getFloatingProps:e,slot:t}=j.useContext(cl);return j.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function aE(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=j.useContext(Ab),n=j.useMemo(()=>e,[JSON.stringify(e,(a,l)=>{var d;return(d=l?.outerHTML)!=null?d:l})]);Rt(()=>{t?.(n??null)},[t,n]);let s=j.useContext(cl);return j.useMemo(()=>[s.setFloating,e?s.styles:{}],[s.setFloating,e,s.styles])}let gS=4;function oE({children:e,enabled:t=!0}){let[n,s]=j.useState(null),[a,l]=j.useState(0),d=j.useRef(null),[u,f]=j.useState(null);Nq(u);let h=t&&n!==null&&u!==null,{to:p="bottom",gap:g=0,offset:y=0,padding:x=0,inner:b}=Cq(n,u),[w,S="center"]=p.split(" ");Rt(()=>{h&&l(0)},[h]);let{refs:N,floatingStyles:C,context:E}=xq({open:h,placement:w==="selection"?S==="center"?"bottom":`bottom-${S}`:S==="center"?`${w}`:`${w}-${S}`,strategy:"absolute",transform:!1,middleware:[eE({mainAxis:w==="selection"?0:g,crossAxis:y}),iq({padding:x}),w!=="selection"&&rq({padding:x}),w==="selection"&&b?jq({...b,padding:x,overflowRef:d,offset:a,minItemsVisible:gS,referenceOverflowThreshold:x,onFallbackChange(V){var z,K;if(!V)return;let W=E.elements.floating;if(!W)return;let Q=parseFloat(getComputedStyle(W).scrollPaddingBottom)||0,D=Math.min(gS,W.childElementCount),H=0,U=0;for(let Z of(K=(z=E.elements.floating)==null?void 0:z.childNodes)!=null?K:[])if(_i(Z)){let F=Z.offsetTop,T=F+Z.clientHeight+Q,A=W.scrollTop,Y=A+W.clientHeight;if(F>=A&&T<=Y)D--;else{U=Math.max(0,Math.min(T,Y)-Math.max(F,A)),H=Z.clientHeight;break}}D>=1&&l(Z=>{let F=H*D-U+Q;return Z>=F?Z:F})}}):null,aq({padding:x,apply({availableWidth:V,availableHeight:z,elements:K}){Object.assign(K.floating.style,{overflow:"auto",maxWidth:`${V}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${z}px)`})}})].filter(Boolean),whileElementsMounted:KH}),[M=w,L=S]=E.placement.split("-");w==="selection"&&(M="selection");let R=j.useMemo(()=>({anchor:[M,L].filter(Boolean).join(" ")}),[M,L]),O=wq(E,{overflowRef:d,onChange:l}),{getReferenceProps:k,getFloatingProps:B}=_q([O]),I=He(V=>{f(V),N.setFloating(V)});return j.createElement(Ab.Provider,{value:s},j.createElement(cl.Provider,{value:{setFloating:I,setReference:N.setReference,styles:C,getReferenceProps:k,getFloatingProps:B,slot:R}},e))}function Nq(e){Rt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,s=parseFloat(n);if(isNaN(s))return;let a=parseInt(n);isNaN(a)||s!==a&&(e.style.maxHeight=`${Math.ceil(s)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Cq(e,t){var n,s,a;let l=N0((n=e?.gap)!=null?n:"var(--anchor-gap, 0)",t),d=N0((s=e?.offset)!=null?s:"var(--anchor-offset, 0)",t),u=N0((a=e?.padding)!=null?a:"var(--anchor-padding, 0)",t);return{...e,gap:l,offset:d,padding:u}}function N0(e,t,n=void 0){let s=Ba(),a=He((f,h)=>{if(f==null)return[n,null];if(typeof f=="number")return[f,null];if(typeof f=="string"){if(!h)return[n,null];let p=vS(f,h);return[p,g=>{let y=lE(f);{let x=y.map(b=>window.getComputedStyle(h).getPropertyValue(b));s.requestAnimationFrame(function b(){s.nextFrame(b);let w=!1;for(let[N,C]of y.entries()){let E=window.getComputedStyle(h).getPropertyValue(C);if(x[N]!==E){x[N]=E,w=!0;break}}if(!w)return;let S=vS(f,h);p!==S&&(g(S),p=S)})}return s.dispose}]}return[n,null]}),l=j.useMemo(()=>a(e,t)[0],[e,t]),[d=l,u]=j.useState();return Rt(()=>{let[f,h]=a(e,t);if(u(f),!!h)return h(u)},[e,t]),d}function lE(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let s=t[1].slice(0,n).trim(),a=t[1].slice(n+1).trim();return a?[s,...lE(a)]:[s]}return[]}function vS(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let s=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),s}function $q({children:e,freeze:t},n){let s=Tm(t,e);return j.isValidElement(s)?j.cloneElement(s,{ref:n}):ye.createElement(ye.Fragment,null,s)}const Eq=ye.forwardRef($q);function Tm(e,t){let[n,s]=j.useState(t);return!e&&n!==t&&s(t),e?n:t}let kb=j.createContext(null);kb.displayName="OpenClosedContext";var er=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(er||{});function cE(){return j.useContext(kb)}function dE({value:e,children:t}){return ye.createElement(kb.Provider,{value:e},t)}function Tq(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let ba=[];Tq(()=>{function e(t){if(!Ca(t.target)||t.target===document.body||ba[0]===t.target)return;let n=t.target;n=n.closest(Nm),ba.unshift(n??t.target),ba=ba.filter(s=>s!=null&&s.isConnected),ba.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Aq(e){throw new Error("Unexpected object: "+e)}var Je=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Je||{});function Bo(e,t){let n=t.resolveItems();if(n.length<=0)return null;let s=t.resolveActiveIndex(),a=s??-1;switch(e.focus){case 0:{for(let l=0;l<n.length;++l)if(!t.resolveDisabled(n[l],l,n))return l;return s}case 1:{a===-1&&(a=n.length);for(let l=a-1;l>=0;--l)if(!t.resolveDisabled(n[l],l,n))return l;return s}case 2:{for(let l=a+1;l<n.length;++l)if(!t.resolveDisabled(n[l],l,n))return l;return s}case 3:{for(let l=n.length-1;l>=0;--l)if(!t.resolveDisabled(n[l],l,n))return l;return s}case 4:{for(let l=0;l<n.length;++l)if(t.resolveId(n[l],l,n)===e.id)return l;return s}case 5:return null;default:Aq(e)}}function Mb(e){let t=He(e),n=j.useRef(!1);j.useEffect(()=>(n.current=!1,()=>{n.current=!0,n6(()=>{n.current&&t()})}),[t])}let kq=j.createContext(!1);function Mq(){return j.useContext(kq)}function Oq(e){let t=Mq(),n=j.useContext(fE),[s,a]=j.useState(()=>{var l;if(!t&&n!==null)return(l=n.current)!=null?l:null;if(Ma.isServer)return null;let d=e?.getElementById("headlessui-portal-root");
421if(d)return d;if(e===null)return null;let u=e.createElement("div");return u.setAttribute("id","headlessui-portal-root"),e.body.appendChild(u)});return j.useEffect(()=>{s!==null&&(e!=null&&e.body.contains(s)||e==null||e.body.appendChild(s))},[s,e]),j.useEffect(()=>{t||n!==null&&a(n.current)},[n,a,t]),s}let uE=j.Fragment,Rq=Pn(function(e,t){let{ownerDocument:n=null,...s}=e,a=j.useRef(null),l=as(oU(y=>{a.current=y}),t),d=od(a.current),u=n??d,f=Oq(u),h=j.useContext(Fq),p=Ba(),g=Rn();return Mb(()=>{var y;f&&f.childNodes.length<=0&&((y=f.parentElement)==null||y.removeChild(f))}),f?ln.createPortal(ye.createElement("div",{"data-headlessui-portal":"",ref:y=>{p.dispose(),h&&y&&p.add(h.register(y))}},g({ourProps:{ref:l},theirProps:s,slot:{},defaultTag:uE,name:"Portal"})),f):null});function Pq(e,t){let n=as(t),{enabled:s=!0,ownerDocument:a,...l}=e,d=Rn();return s?ye.createElement(Rq,{...l,ownerDocument:a,ref:n}):d({ourProps:{ref:n},theirProps:l,slot:{},defaultTag:uE,name:"Portal"})}let Dq=j.Fragment,fE=j.createContext(null);function Lq(e,t){let{target:n,...s}=e,a={ref:as(t)},l=Rn();return ye.createElement(fE.Provider,{value:n},l({ourProps:a,theirProps:s,defaultTag:Dq,name:"Popover.Group"}))}let Fq=j.createContext(null),Iq=Pn(Pq),Bq=Pn(Lq),mE=Object.assign(Iq,{Group:Bq});const Ki={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function Ob(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function hE(e,t,n){let s=rs();if(t.kind==="Tracked"){let a=function(){l!==Ob(e)&&(s.dispose(),n())},{position:l}=t,d=new ResizeObserver(a);d.observe(e),s.add(()=>d.disconnect()),s.addEventListener(window,"scroll",a,{passive:!0}),s.addEventListener(window,"resize",a)}return()=>s.dispose()}var zq=Object.defineProperty,Vq=(e,t,n)=>t in e?zq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yS=(e,t,n)=>(Vq(e,typeof t!="symbol"?t+"":t,n),n),it=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(it||{}),ys=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ys||{}),bi=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(bi||{}),pE=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e[e.MarkInputAsMoved=12]="MarkInputAsMoved",e))(pE||{});function C0(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,s=t(e.options.slice()),a=s.length>0&&s[0].dataRef.current.order!==null?s.sort((d,u)=>d.dataRef.current.order-u.dataRef.current.order):Cb(s,d=>d.dataRef.current.domRef.current),l=n?a.indexOf(n):null;return l===-1&&(l=null),{options:a,activeOptionIndex:l}}let Uq={1(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1)return e;let n=e.inputElement?Ki.Tracked(Ob(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let s=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(s!==-1)return{...e,activeOptionIndex:s,comboboxState:0,__demoMode:!1,inputPositionState:Ki.Idle}}return{...e,comboboxState:0,inputPositionState:Ki.Idle,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,s,a,l;if((n=e.dataRef.current)!=null&&n.disabled||e.optionsElement&&!((s=e.dataRef.current)!=null&&s.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:h,disabled:p}=e.virtual,g=t.focus===Je.Specific?t.idx:Bo(t,{resolveItems:()=>h,resolveActiveIndex:()=>{var x,b;return(b=(x=e.activeOptionIndex)!=null?x:h.findIndex(w=>!p(w)))!=null?b:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),y=(a=t.trigger)!=null?a:2;return e.activeOptionIndex===g&&e.activationTrigger===y?e:{...e,activeOptionIndex:g,activationTrigger:y,isTyping:!1,__demoMode:!1}}let d=C0(e);if(d.activeOptionIndex===null){let h=d.options.findIndex(p=>!p.dataRef.current.disabled);h!==-1&&(d.activeOptionIndex=h)}let u=t.focus===Je.Specific?t.idx:Bo(t,{resolveItems:()=>d.options,resolveActiveIndex:()=>d.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled}),f=(l=t.trigger)!=null?l:2;return e.activeOptionIndex===u&&e.activationTrigger===f?e:{...e,...d,isTyping:!1,activeOptionIndex:u,activationTrigger:f,__demoMode:!1}},4:(e,t)=>{var n,s,a,l;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let d=t.payload,u=C0(e,h=>(h.push(d),h));e.activeOptionIndex===null&&(a=(s=e.dataRef.current).isSelected)!=null&&a.call(s,t.payload.dataRef.current.value)&&(u.activeOptionIndex=u.options.indexOf(d));let f={...e,...u,activationTrigger:2};return(l=e.dataRef.current)!=null&&l.__demoMode&&e.dataRef.current.value===void 0&&(f.activeOptionIndex=0),f},5:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(a=>a.id!==t.id)};let s=C0(e,a=>{let l=a.findIndex(d=>d.id===t.id);return l!==-1&&a.splice(l,1),a});return{...e,...s,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
vendor: 10,936 bytes, line 421
421{var n,s;if(e.virtual===null)return{...e,virtual:{options:t.options,disabled:(n=t.disabled)!=null?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let a=e.activeOptionIndex;if(e.activeOptionIndex!==null){let l=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);l!==-1?a=l:a=null}return{...e,activeOptionIndex:a,virtual:{options:t.options,disabled:(s=t.disabled)!=null?s:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12(e){return e.inputPositionState.kind!=="Tracked"?e:{...e,inputPositionState:Ki.Moved}}},Hq=class gE extends wb{constructor(t){super(t),yS(this,"actions",{onChange:n=>{let{onChange:s,compare:a,mode:l,value:d}=this.state.dataRef.current;return Mn(l,{0:()=>s?.(n),1:()=>{let u=d.slice(),f=u.findIndex(h=>a(h,n));return f===-1?u.push(n):u.splice(f,1),s?.(u)}})},registerOption:(n,s)=>(this.send({type:4,payload:{id:n,dataRef:s}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(s.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:n})}),goToOption:(n,s)=>(this.send({type:6,value:!1}),this.send({type:2,...n,trigger:s})),setIsTyping:n=>{this.send({type:3,isTyping:n})},closeCombobox:()=>{var n,s;this.send({type:1}),this.send({type:6,value:!1}),(s=(n=this.state.dataRef.current).onClose)==null||s.call(n)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:n=>{this.send({type:7,trigger:n})},selectActiveOption:()=>{let n=this.selectors.activeOptionIndex(this.state);if(n!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[n]);else{let{dataRef:s}=this.state.options[n];this.actions.onChange(s.current.value)}this.actions.goToOption({focus:Je.Specific,idx:n})}},setInputElement:n=>{this.send({type:9,element:n})},setButtonElement:n=>{this.send({type:10,element:n})},setOptionsElement:n=>{this.send({type:11,element:n})}}),yS(this,"selectors",{activeDescendantId:n=>{var s,a;let l=this.selectors.activeOptionIndex(n);if(l!==null)return n.virtual?(a=n.options.find(d=>!d.dataRef.current.disabled&&n.dataRef.current.compare(d.dataRef.current.value,n.virtual.options[l])))==null?void 0:a.id:(s=n.options[l])==null?void 0:s.id},activeOptionIndex:n=>{if(n.defaultToFirstOption&&n.activeOptionIndex===null&&(n.virtual?n.virtual.options.length>0:n.options.length>0)){if(n.virtual){let{options:a,disabled:l}=n.virtual,d=a.findIndex(u=>{var f;return!((f=l?.(u))!=null&&f)});if(d!==-1)return d}let s=n.options.findIndex(a=>!a.dataRef.current.disabled);if(s!==-1)return s}return n.activeOptionIndex},activeOption:n=>{var s,a;let l=this.selectors.activeOptionIndex(n);return l===null?null:n.virtual?n.virtual.options[l??0]:(a=(s=n.options[l])==null?void 0:s.dataRef.current.value)!=null?a:null},isActive:(n,s,a)=>{var l;let d=this.selectors.activeOptionIndex(n);return d===null?!1:n.virtual?d===n.dataRef.current.calculateIndex(s):((l=n.options[d])==null?void 0:l.id)===a},shouldScrollIntoView:(n,s,a)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,s,a)),didInputMove(n){return n.inputPositionState.kind==="Moved"}});{let n=this.state.id,s=Td.get(null);this.disposables.add(s.on(Sb.Push,a=>{!s.selectors.isTop(a,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>s.actions.push(n)),this.on(1,()=>s.actions.pop(n))}this.disposables.group(n=>{this.on(1,s=>{s.inputElement&&(n.dispose(),n.add(hE(s.inputElement,s.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:t,virtual:n=null,__demoMode:s=!1}){var a;return new gE({id:t,dataRef:{current:{}},comboboxState:s?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(a=n.disabled)!=null?a:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:s,inputPositionState:Ki.Idle})}reduce(t,n){return Mn(n.type,Uq,t,n)}};const vE=j.createContext(null);function Md(e){let t=j.useContext(vE);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yE),n}return t}function yE({id:e,virtual:t=null,__demoMode:n=!1}){let s=j.useMemo(()=>Hq.new({id:e,virtual:t,__demoMode:n}),[]);return Mb(()=>s.dispose()),s}let dd=j.createContext(null);dd.displayName="ComboboxDataContext";function dl(e){let t=j.useContext(dd);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,dl),n}return t}let bE=j.createContext(null);function qq(e){let t=Md("VirtualProvider"),n=dl("VirtualProvider"),{options:s}=n.virtual,a=gt(t,x=>x.optionsElement),[l,d]=j.useMemo(()=>{let x=a;if(!x)return[0,0];let b=window.getComputedStyle(x);return[parseFloat(b.paddingBlockStart||b.paddingTop),parseFloat(b.paddingBlockEnd||b.paddingBottom)]},[a]),u=NU({enabled:s.length!==0,scrollPaddingStart:l,scrollPaddingEnd:d,count:s.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[f,h]=j.useState(0);Rt(()=>{h(x=>x+1)},[s]);let p=u.getVirtualItems(),g=gt(t,x=>x.activationTrigger===bi.Pointer),y=gt(t,t.selectors.activeOptionIndex);return p.length===0?null:ye.createElement(bE.Provider,{value:u},ye.createElement("div",{style:{position:"relative",width:"100%",height:`${u.getTotalSize()}px`},ref:x=>{x&&(g||y!==null&&s.length>y&&u.scrollToIndex(y))}},p.map(x=>{var b;return ye.createElement(j.Fragment,{key:x.key},ye.cloneElement((b=e.children)==null?void 0:b.call(e,{...e.slot,option:s[x.index]}),{key:`${f}-${x.key}`,"data-index":x.index,"aria-setsize":s.length,"aria-posinset":x.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${x.start}px)`,overflowAnchor:"none"}}))})))}let Gq=j.Fragment;function Wq(e,t){let n=j.useId(),s=nh(),{value:a,defaultValue:l,onChange:d,form:u,name:f,by:h,invalid:p=!1,disabled:g=s||!1,onClose:y,__demoMode:x=!1,multiple:b=!1,immediate:w=!1,virtual:S=null,nullable:N,...C}=e,E=a6(l),[M=b?[]:void 0,L]=r6(a,d,E),R=yE({id:n,virtual:S,__demoMode:x}),O=j.useRef({static:!1,hold:!1}),k=_6(h),B=He(le=>S?h===null?S.options.indexOf(le):S.options.findIndex(ve=>k(ve,le)):R.state.options.findIndex(ve=>k(ve.dataRef.current.value,le))),I=j.useCallback(le=>Mn(K.mode,{[ys.Multi]:()=>M.some(ve=>k(ve,le)),[ys.Single]:()=>k(M,le)}),[M]),V=gt(R,le=>le.virtual),z=He(()=>y?.()),K=j.useMemo(()=>({__demoMode:x,immediate:w,optionsPropsRef:O,value:M,defaultValue:E,disabled:g,invalid:p,mode:b?ys.Multi:ys.Single,virtual:S?V:null,onChange:L,isSelected:I,calculateIndex:B,compare:k,onClose:z}),[x,w,O,M,E,g,p,b,S,V,L,I,B,k,z]);Rt(()=>{var le;S&&R.send({type:pE.UpdateVirtualConfiguration,options:S.options,disabled:(le=S.disabled)!=null?le:null})},[S,S?.options,S?.disabled]),Rt(()=>{R.state.dataRef.current=K},[K]);let[W,Q,D,H]=gt(R,le=>[le.comboboxState,le.buttonElement,le.inputElement,le.optionsElement]),U=Td.get(null),Z=gt(U,j.useCallback(le=>U.selectors.isTop(le,n),[U,n]));O6(Z,[Q,D,H],()=>R.actions.closeCombobox());let F=gt(R,R.selectors.activeOptionIndex),T=gt(R,R.selectors.activeOption),A=xs({open:W===it.Open,disabled:g,invalid:p,activeIndex:F,activeOption:T,value:M}),[Y,ee]=y6(),te=t===null?{}:{ref:t},ae=j.useCallback(()=>{if(E!==void 0)return L?.(E)},[L,E]),pe=Rn();return ye.createElement(ee,{value:Y,props:{htmlFor:D?.id},slot:{open:W===it.Open,disabled:g}},ye.createElement(oE,null,ye.createElement(dd.Provider,{value:K},ye.createElement(vE.Provider,{value:R},ye.createElement(dE,{value:Mn(W,{[it.Open]:er.Open,[it.Closed]:er.Closed})},f!=null&&ye.createElement(u6,{disabled:g,data:M!=null?{[f]:M}:{},form:u,onReset:ae}),pe({ourProps:te,theirProps:C,slot:A,defaultTag:Gq,name:"Combobox"}))))))}let Yq="input";function Kq(e,t){var n,s;let a=Md("Combobox.Input"),l=dl("Combobox.Input"),d=j.useId(),u=xb(),{id:f=u||`headlessui-combobox-input-${d}`,onChange:h,displayValue:p,disabled:g=l.disabled||!1,autoFocus:y=!1,type:x="text",...b}=e,w=j.useRef(null),S=as(w,t,iE(),a.actions.setInputElement),[N,C]=gt(a,A=>[A.comboboxState,A.isTyping]),E=Ba(),M=He(()=>{a.actions.onChange(null),a.state.optionsElement&&(a.state.optionsElement.scrollTop=0),a.actions.goToOption({focus:Je.Nothing})}),L=j.useMemo(()=>{var A;return typeof p=="function"&&l.value!==void 0?(A=p(l.value))!=null?A:"":typeof l.value=="string"?l.value:""},[l.value,p]);tS(([A,Y],[ee,te])=>{if(a.state.isTyping)return;let ae=w.current;ae&&((te===it.Open&&Y===it.Closed||A!==ee)&&(ae.value=A),requestAnimationFrame(()=>{if(a.state.isTyping||!ae||yb(ae))return;let{selectionStart:pe,selectionEnd:le}=ae;Math.abs((le??0)-(pe??0))===0&&pe===0&&ae.setSelectionRange(ae.value.length,ae.value.length)}))},[L,N,C]),tS(([A],[Y])=>{if(A===it.Open&&Y===it.Closed){if(a.state.isTyping)return;let ee=w.current;if(!ee)return;let te=ee.value,{selectionStart:ae,selectionEnd:pe,selectionDirection:le}=ee;ee.value="",ee.value=te,le!==null?ee.setSelectionRange(ae,pe,le):ee.setSelectionRange(ae,pe)}},[N]);let R=j.useRef(!1),O=He(()=>{R.current=!0}),k=He(()=>{E.nextFrame(()=>{R.current=!1})}),B=He(A=>{switch(a.actions.setIsTyping(!0),A.key){case ft.Enter:if(a.state.comboboxState!==it.Open||R.current)return;if(A.preventDefault(),A.stopPropagation(),a.selectors.activeOptionIndex(a.state)===null){a.actions.closeCombobox();return}a.actions.selectActiveOption(),l.mode===ys.Single&&a.actions.closeCombobox();break;case ft.ArrowDown:return A.preventDefault(),A.stopPropagation(),Mn(a.state.comboboxState,{[it.Open]:()=>a.actions.goToOption({focus:Je.Next}),[it.Closed]:()=>a.actions.openCombobox()});case ft.ArrowUp:return A.preventDefault(),A.stopPropagation(),Mn(a.state.comboboxState,{[it.Open]:()=>a.actions.goToOption({focus:Je.Previous}),[it.Closed]:()=>{ln.flushSync(()=>a.actions.openCombobox()),l.value||a.actions.goToOption({focus:Je.Last})}});case ft.Home:if(a.state.comboboxState===it.Closed||A.shiftKey)break;return A.preventDefault(),A.stopPropagation(),a.actions.goToOption({focus:Je.First});case ft.PageUp:return A.preventDefault(),A.stopPropagation(),a.actions.goToOption({focus:Je.First});case ft.End:if(a.state.comboboxState===it.Closed||A.shiftKey)break;return A.preventDefault(),A.stopPropagation(),a.actions.goToOption({focus:Je.Last});case ft.PageDown:return A.preventDefault(),A.stopPropagation(),a.actions.goToOption({focus:Je.Last});case ft.Escape:return a.state.comboboxState!==it.Open?void 0:(A.preventDefault(),a.state.optionsElement&&!l.optionsPropsRef.current.static&&A.stopPropagation(),l.mode===ys.Single&&l.value===null&&M(),a.actions.closeCombobox());case ft.Tab:if(a.actions.setIsTyping(!1),a.state.comboboxState!==it.Open)return;l.mode===ys.Single&&a.state.activationTrigger!==bi.Focus&&a.actions.selectActiveOption(),a.actions.closeCombobox();break}}
421),I=He(A=>{h?.(A),l.mode===ys.Single&&A.target.value===""&&M(),a.actions.openCombobox()}),V=He(A=>{var Y,ee,te;let ae=(Y=A.relatedTarget)!=null?Y:ba.find(pe=>pe!==A.currentTarget);if(!((ee=a.state.optionsElement)!=null&&ee.contains(ae))&&!((te=a.state.buttonElement)!=null&&te.contains(ae))&&a.state.comboboxState===it.Open)return A.preventDefault(),l.mode===ys.Single&&l.value===null&&M(),a.actions.closeCombobox()}),z=He(A=>{var Y,ee,te;let ae=(Y=A.relatedTarget)!=null?Y:ba.find(pe=>pe!==A.currentTarget);(ee=a.state.buttonElement)!=null&&ee.contains(ae)||(te=a.state.optionsElement)!=null&&te.contains(ae)||l.disabled||l.immediate&&a.state.comboboxState!==it.Open&&E.microTask(()=>{ln.flushSync(()=>a.actions.openCombobox()),a.actions.setActivationTrigger(bi.Focus)})}),K=Ed(),W=g6(),{isFocused:Q,focusProps:D}=vb({autoFocus:y}),{isHovered:H,hoverProps:U}=gb({isDisabled:g}),Z=gt(a,A=>A.optionsElement),F=xs({open:N===it.Open,disabled:g,invalid:l.invalid,hover:H,focus:Q,autofocus:y}),T=$d({ref:S,id:f,role:"combobox",type:x,"aria-controls":Z?.id,"aria-expanded":N===it.Open,"aria-activedescendant":gt(a,a.selectors.activeDescendantId),"aria-labelledby":K,"aria-describedby":W,"aria-autocomplete":"list",defaultValue:(s=(n=e.defaultValue)!=null?n:l.defaultValue!==void 0?p?.(l.defaultValue):null)!=null?s:l.defaultValue,disabled:g||void 0,autoFocus:y,onCompositionStart:O,onCompositionEnd:k,onKeyDown:B,onChange:I,onFocus:z,onBlur:V},D,U);return Rn()({ourProps:T,theirProps:b,slot:F,defaultTag:Yq,name:"Combobox.Input"})}let Xq="button";function Zq(e,t){let n=Md("Combobox.Button"),s=dl("Combobox.Button"),[a,l]=j.useState(null),d=as(t,l,n.actions.setButtonElement),u=j.useId(),{id:f=`headlessui-combobox-button-${u}`,disabled:h=s.disabled||!1,autoFocus:p=!1,...g}=e,[y,x,b]=gt(n,z=>[z.comboboxState,z.inputElement,z.optionsElement]),w=P6(x),S=y===it.Open;R6(S,{trigger:a,action:j.useCallback(z=>{if(a!=null&&a.contains(z.target)||x!=null&&x.contains(z.target))return Wi.Ignore;let K=z.target.closest('[role="option"]:not([data-disabled])');return _i(K)?Wi.Select(K):b!=null&&b.contains(z.target)?Wi.Ignore:Wi.Close},[a,x,b]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let N=He(z=>{switch(z.key){case ft.Space:case ft.Enter:z.preventDefault(),z.stopPropagation(),n.state.comboboxState===it.Closed&&ln.flushSync(()=>n.actions.openCombobox()),w();return;case ft.ArrowDown:z.preventDefault(),z.stopPropagation(),n.state.comboboxState===it.Closed&&(ln.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:Je.First})),w();return;case ft.ArrowUp:z.preventDefault(),z.stopPropagation(),n.state.comboboxState===it.Closed&&(ln.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:Je.Last})),w();return;case ft.Escape:if(n.state.comboboxState!==it.Open)return;z.preventDefault(),n.state.optionsElement&&!s.optionsPropsRef.current.static&&z.stopPropagation(),ln.flushSync(()=>n.actions.closeCombobox()),w();return;default:return}}),C=j6(()=>{n.state.comboboxState===it.Open?n.actions.closeCombobox():n.actions.openCombobox(),w()}),E=Ed([f]),{isFocusVisible:M,focusProps:L}=vb({autoFocus:p}),{isHovered:R,hoverProps:O}=gb({isDisabled:h}),{pressed:k,pressProps:B}=s6({disabled:h}),I=xs({open:y===it.Open,active:k||y===it.Open,disabled:h,invalid:s.invalid,value:s.value,hover:R,focus:M}),V=$d({ref:d,id:f,type:D6(e,a),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":b?.id,"aria-expanded":y===it.Open,"aria-labelledby":E,disabled:h||void 0,autoFocus:p,onKeyDown:N},C,L,O,B);return Rn()({ourProps:V,theirProps:g,slot:I,defaultTag:Xq,name:"Combobox.Button"})}let Qq="div",Jq=ad.RenderStrategy|ad.Static;function eG(e,t){var n,s,a;let l=j.useId(),{id:d=`headlessui-combobox-options-${l}`,hold:u=!1,anchor:f,portal:h=!1,modal:p=!0,transition:g=!1,...y}=e,x=Md("Combobox.Options"),b=dl("Combobox.Options"),w=sE(f);w&&(h=!0);let[S,N]=aE(w),[C,E]=j.useState(null),M=rE(),L=as(t,w?S:null,x.actions.setOptionsElement,E),[R,O,k,B,I]=gt(x,$e=>[$e.comboboxState,$e.inputElement,$e.buttonElement,$e.optionsElement,$e.activationTrigger]),V=od(O||k),z=od(B),K=cE(),[W,Q]=B6(g,C,K!==null?(K&er.Open)===er.Open:R===it.Open);T6(W,O,x.actions.closeCombobox);let D=b.__demoMode?!1:p&&R===it.Open;L6(D,z);let H=b.__demoMode?!1:p&&R===it.Open;E6(H,{allowed:j.useCallback(()=>[O,k,B],[O,k,B])});let U=gt(x,x.selectors.didInputMove)?!1:W;Rt(()=>{var $e;b.optionsPropsRef.current.static=($e=e.static)!=null?$e:!1},[b.optionsPropsRef,e.static]),Rt(()=>{b.optionsPropsRef.current.hold=u},[b.optionsPropsRef,u]),uH(R===it.Open,{container:B,accept($e){return $e.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:$e.hasAttribute("role")?N
421odeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk($e){$e.setAttribute("role","none")}});let Z=Ed([k?.id]),F=xs({open:R===it.Open,option:void 0}),T=He(()=>{x.actions.setActivationTrigger(bi.Pointer)}),A=He($e=>{$e.preventDefault(),x.actions.setActivationTrigger(bi.Pointer)}),Y=$d(w?M():{},{"aria-labelledby":Z,role:"listbox","aria-multiselectable":b.mode===ys.Multi?!0:void 0,id:d,ref:L,style:{...y.style,...N,"--input-width":Dv(W,O,!0).width,"--button-width":Dv(W,k,!0).width},onWheel:I===bi.Pointer?void 0:T,onMouseDown:A,...I6(Q)}),ee=W&&R===it.Closed&&!e.static,te=Tm(ee,(n=b.virtual)==null?void 0:n.options),ae=Tm(ee,b.value),pe=j.useCallback($e=>b.compare(ae,$e),[b.compare,ae]),le=j.useMemo(()=>{if(!b.virtual)return b;if(te===void 0)throw new Error("Missing `options` in virtual mode");return te!==b.virtual.options?{...b,virtual:{...b.virtual,options:te}}:b},[b,te,(s=b.virtual)==null?void 0:s.options]);b.virtual&&Object.assign(y,{children:ye.createElement(dd.Provider,{value:le},ye.createElement(qq,{slot:F},y.children))});let ve=Rn(),xe=j.useMemo(()=>b.mode===ys.Multi?b:{...b,isSelected:pe},[b,pe]);return ye.createElement(mE,{enabled:h?e.static||W:!1,ownerDocument:V},ye.createElement(dd.Provider,{value:xe},ve({ourProps:Y,theirProps:{...y,children:ye.createElement(Eq,{freeze:ee},typeof y.children=="function"?(a=y.children)==null?void 0:a.call(y,F):y.children)},slot:F,defaultTag:Qq,features:Jq,visible:U,name:"Combobox.Options"}
421)))}let tG="div";function nG(e,t){var n,s,a;let l=dl("Combobox.Option"),d=Md("Combobox.Option"),u=j.useId(),{id:f=`headlessui-combobox-option-${u}`,value:h,disabled:p=(a=(s=(n=l.virtual)==null?void 0:n.disabled)==null?void 0:s.call(n,h))!=null?a:!1,order:g=null,...y}=e,[x]=gt(d,Q=>[Q.inputElement]),b=P6(x),w=gt(d,j.useCallback(Q=>d.selectors.isActive(Q,h,f),[h,f])),S=l.isSelected(h),N=j.useRef(null),C=Wr({disabled:p,value:h,domRef:N,order:g}),E=j.useContext(bE),M=as(t,N,E?E.measureElement:null),L=He(()=>{d.actions.setIsTyping(!1),d.actions.onChange(h)});Rt(()=>d.actions.registerOption(f,C),[C,f]);let R=gt(d,j.useCallback(Q=>d.selectors.shouldScrollIntoView(Q,h,f),[h,f]));Rt(()=>{if(R)return rs().requestAnimationFrame(()=>{var Q,D;(D=(Q=N.current)==null?void 0:Q.scrollIntoView)==null||D.call(Q,{block:"nearest"})})},[R,N]);let O=He(Q=>{Q.preventDefault(),Q.button===jb.Left&&(p||(L(),Iv()||requestAnimationFrame(()=>b()),l.mode===ys.Single&&d.actions.closeCombobox()))}),k=He(()=>{if(p)return d.actions.goToOption({focus:Je.Nothing});let Q=l.calculateIndex(h);d.actions.goToOption({focus:Je.Specific,idx:Q})}),B=F6(),I=He(Q=>B.update(Q)),V=He(Q=>{if(!B.wasMoved(Q)||p||w&&d.state.activationTrigger===bi.Pointer)return;let D=l.calculateIndex(h);d.actions.goToOption({focus:Je.Specific,idx:D},bi.Pointer)}),z=He(Q=>{B.wasMoved(Q)&&(p||w&&(l.optionsPropsRef.current.hold||d.state.activationTrigger===bi.Pointer&&d.actions.goToOption({focus:Je.Nothing})))}),K=xs({active:w,focus:w,selected:S,disabled:p}),W={id:f,ref:M,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":S,disabled:void 0,onMouseDown:O,onFocus:k,onPointerEnter:I,onMouseEnter:I,onPointerMove:V,onMouseMove:V,onPointerLeave:z,onMouseLeave:z};return Rn()({ourProps:W,theirProps:y,slot:K,defaultTag:tG,name:"Combobox.Option"})}let sG=Pn(Wq),xE=Pn(Zq),_E=Pn(Kq),iG=b6,jE=Pn(eG),wE=Pn(nG),rG=Object.assign(sG,{Input:_E,Button:xE,Label:iG,Options:jE,Option:wE}),bS=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function xS(e){var t,n;let s=(t=e.innerText)!=null?t:"",a=e.cloneNode(!0);if(!_i(a))return s;let l=!1;for(let u of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))u.remove(),l=!0;let d=l?(n=a.innerText)!=null?n:"":s;return bS.test(d)&&(d=d.replace(bS,"")),d}function aG(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let s=n.split(" ").map(a=>{let l=document.getElementById(a);if(l){let d=l.getAttribute("aria-label");return typeof d=="string"?d.trim():xS(l).trim()}return null}).filter(Boolean);if(s.length>0)return s.join(", ")}return xS(e).trim()}function oG(e){let t=j.useRef(""),n=j.useRef("");return He(()=>{let s=e.current;if(!s)return"";let a=s.innerText;if(t.current===a)return n.current;let l=aG(s).trim().toLowerCase();return t.current=a,n.current=l,l})}var lG=Object.defineProperty,cG=(e,t,n)=>t in e?lG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_S=(e,t,n)=>(cG(e,typeof t!="symbol"?t+"":t,n),n),Tn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tn||{}),Fr=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Fr||{}),Yf=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Yf||{}),SE=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.SelectOption=5]="SelectOption",e[e.RegisterOptions=6]="RegisterOptions",e[e.UnregisterOptions=7]="UnregisterOptions",e[e.SetButtonElement=8]="SetButtonElement",e[e.SetOptionsElement=9]="SetOptionsElement",e[e.SortOptions=10]="SortOptions",e[e.MarkButtonAsMoved=11]="MarkButtonAsMoved",e))(SE||{});function jS(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,s=Cb(t(e.options.slice()),l=>l.dataRef.current.domRef.current),a=n?s.indexOf(n):null;return a===-1&&(a=null),{options:s,activeOptionIndex:a}}let dG={1(e){if(e.dataRef.current.disabled||e.listboxState===1)return e;let t=e.buttonElement?Ki.Tracked(Ob(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:Je.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||e.listboxState===0)return e;let n=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,a=e.options.findIndex(l=>s(l.dataRef.current.value));return a!==-1&&(n=a),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:Ki.Idle}},2(e,t){var n,s,a,l,d;if(e.dataRef.current.disabled||e.listboxState===1)return e;let u={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===Je.Nothing)return{...u,activeOptionIndex:null};if(t.focus===Je.Specific)return{...u,activeOptionIndex:e.options.findIndex(p=>p.id===t.id)};if(t.focus===Je.Previous){let p=e.activeOptionIndex;if(p!==null){let g=e.options[p].dataRef.current.domRef,y=Bo(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:x=>x.id,resolveDisabled:x=>x.dataRef.current.disabled});if(y!==null){let x=e.options[y].dataRef.current.domRef;if(((s=g.current)==null?void 0:s.previousElementSibling)===x.current||((a=x.current)==null?void 0:a.previousElementSibling)===null)return{...u,activeOptionIndex:y}}}}else if(t.focus===Je.Next){let p=e.activeOptionIndex;if(p!==null){let g=e.options[p].dataRef.current.domRef,y=Bo(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:x=>x.id,resolveDisabled:x=>x.dataRef.current.disabled});if(y!==null){let x=e.options[y].dataRef.current.domRef;if(((l=g.current)==null?void 0:l.nextElementSibling)===x.current||((d=x.current)==null?void 0:d.nextElementSibling)===null)return{...u,activeOptionIndex:y}}}}let f=jS(e),h=Bo(t,{resolveItems:()=>f.options,resolveActiveIndex:()=>f.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});return{...u,...f,activeOptionIndex:h}},3:(e,t)=>
421{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,s=e.searchQuery+t.value.toLowerCase(),a=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(d=>{var u;return!d.dataRef.current.disabled&&((u=d.dataRef.current.textValue)==null?void 0:u.startsWith(s))}),l=a?e.options.indexOf(a):-1;return l===-1||l===e.activeOptionIndex?{...e,searchQuery:s}:{...e,searchQuery:s,activeOptionIndex:l,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5(e){return e.dataRef.current.mode===0?{...e,frozenValue:!0}:{...e}},6:(e,t)=>{let n=e.options.concat(t.options),s=e.activeOptionIndex;if(e.pendingFocus.focus!==Je.Nothing&&(s=Bo(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled})),e.activeOptionIndex===null){let{isSelected:a}=e.dataRef.current;if(a){let l=n.findIndex(d=>a?.(d.dataRef.current.value));l!==-1&&(s=l)}}return{...e,options:n,activeOptionIndex:s,pendingFocus:{focus:Je.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,s=[],a=new Set(t.options);for(let[l,d]of n.entries())if(a.has(d.id)&&(s.push(l),a.delete(d.id),a.size===0))break;if(s.length>0){n=n.slice();for(let l of s.reverse())n.splice(l,1)}return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...jS(e),pendingShouldSort:!1}:e,11(e){return e.buttonPositionState.kind!=="Tracked"?e:{...e,buttonPositionState:Ki.Moved}}};class Rb extends wb{constructor(t){super(t),_S(this,"actions",{onChange:n=>{let{onChange:s,compare:a,mode:l,value:d}=this.state.dataRef.current;return Mn(l,{0:()=>s?.(n),1:()=>{let u=d.slice(),f=u.findIndex(h=>a(h,n));return f===-1?u.push(n):u.splice(f,1),s?.(u)}})},registerOption:v0(()=>{let n=[],s=new Set;return[(a,l)=>{s.has(l)||(s.add(l),n.push({id:a,dataRef:l}))},()=>(s.clear(),this.send({type:6,options:n.splice(0)}))]}),unregisterOption:v0(()=>{let n=[];return[s=>n.push(s),()=>{this.send({type:7,options:n.splice(0)})}]}),goToOption:v0(()=>{let n=null;return[(s,a)=>{n={type:2,...s,trigger:a}},()=>n&&this.send(n)]}),closeListbox:()=>{this.send({type:1})},openListbox:n=>{this.send({type:0,focus:n})},selectActiveOption:()=>{var n;if(this.state.activeOptionIndex!==null){let{dataRef:s}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(s.current.value)}else this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(n=this.state.buttonElement)==null||n.focus({preventScroll:!0}))},selectOption:n=>{this.send({type:5,value:n})},search:n=>{this.send({type:3,value:n})},clearSearch:()=>{this.send({type:4})},setButtonElement:n=>{this.send({type:8,element:n})},setOptionsElement:n=>{this.send({type:9,element:n})}}),_S(this,"selectors",{activeDescendantId(n){var s;let a=n.activeOptionIndex,l=n.options;return a===null||(s=l[a])==null?void 0:s.id},isActive(n,s){var a;let l=n.activeOptionIndex,d=n.options;return l!==null?((a=d[l])==null?void 0:a.id)===s:!1},hasFrozenValue(n){return n.frozenValue},shouldScrollIntoView(n,s){return n.__demoMode||n.listboxState!==0||n.activationTrigger===0?!1:this.isActive(n,s)},didButtonMove(n){return n.buttonPositionState.kind==="Moved"}}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let n=this.state.id,s=Td.get(null);this.disposables.add(s.on(Sb.Push,a=>{!s.selectors.isTop(a,n)&&this.state.listboxState===0&&this.actions.closeListbox()})),this.on(0,()=>s.actions.push(n)),this.on(1,()=>s.actions.pop(n))}this.disposables.group(n=>{this.on(1,s=>{s.buttonElement&&(n.dispose(),n.add(hE(s.buttonElement,s.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(n,s)=>{var a;this.actions.onChange(s.value),this.state.dataRef.current.mode===0&&(this.actions.closeListbox(),(a=this.state.buttonElement)==null||a.focus({preventScroll:!0}))})}static new({id:t,__demoMode:n=!1}){return new Rb({id:t,dataRef:{current:{}},listboxState:n?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:Je.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:Ki.Idle})}reduce(t,n){return Mn(n.type,dG,t,n)}}const NE=j.createContext(null);function Pb(e){let t=j.useContext(NE);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,CE),n}return t}function CE({id:e,__demoMode:t=!1}){let n=j.useMemo(()=>Rb.new({id:e,__demoMode:t}),[]);return Mb(()=>n.dispose()),n}let ch=j.createContext(null);ch.displayName="ListboxDataContext";
421function Od(e){let t=j.useContext(ch);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Od),n}return t}let uG=j.Fragment;function fG(e,t){let n=j.useId(),s=nh(),{value:a,defaultValue:l,form:d,name:u,onChange:f,by:h,invalid:p=!1,disabled:g=s||!1,horizontal:y=!1,multiple:x=!1,__demoMode:b=!1,...w}=e;const S=y?"horizontal":"vertical";let N=as(t),C=a6(l),[E=x?[]:void 0,M]=r6(a,f,C),L=CE({id:n,__demoMode:b}),R=j.useRef({static:!1,hold:!1}),O=j.useRef(new Map),k=_6(h),B=j.useCallback(A=>Mn(I.mode,{[Fr.Multi]:()=>E.some(Y=>k(Y,A)),[Fr.Single]:()=>k(E,A)}),[E]),I=xs({value:E,disabled:g,invalid:p,mode:x?Fr.Multi:Fr.Single,orientation:S,onChange:M,compare:k,isSelected:B,optionsPropsRef:R,listRef:O});Rt(()=>{L.state.dataRef.current=I},[I]);let V=gt(L,A=>A.listboxState),z=Td.get(null),K=gt(z,j.useCallback(A=>z.selectors.isTop(A,n),[z,n])),[W,Q]=gt(L,A=>[A.buttonElement,A.optionsElement]);O6(K,[W,Q],(A,Y)=>{L.send({type:SE.CloseListbox}),k6(Y,Nb.Loose)||(A.preventDefault(),W?.focus())});let D=xs({open:V===Tn.Open,disabled:g,invalid:p,value:E}),[H,U]=y6({inherit:!0}),Z={ref:N},F=j.useCallback(()=>{if(C!==void 0)return M?.(C)},[M,C]),T=Rn();return ye.createElement(U,{value:H,props:{htmlFor:W?.id},slot:{open:V===Tn.Open,disabled:g}},ye.createElement(oE,null,ye.createElement(NE.Provider,{value:L},ye.createElement(ch.Provider,{value:I},ye.createElement(dE,{value:Mn(V,{[Tn.Open]:er.Open,[Tn.Closed]:er.Closed})},u!=null&&E!=null&&ye.createElement(u6,{disabled:g,data:{[u]:E},form:d,onReset:F}),T({ourProps:Z,theirProps:w,slot:D,defaultTag:uG,name:"Listbox"}))))))}let mG="button";function hG(e,t){let n=j.useId(),s=xb(),a=Od("Listbox.Button"),l=Pb("Listbox.Button"),{id:d=s||`headlessui-listbox-button-${n}`,disabled:u=a.disabled||!1,autoFocus:f=!1,...h}=e,p=as(t,iE(),l.actions.setButtonElement),g=Sq(),[y,x,b]=gt(l,Q=>[Q.listboxState,Q.buttonElement,Q.optionsElement]),w=y===Tn.Open;R6(w,{trigger:x,action:j.useCallback(Q=>{if(x!=null&&x.contains(Q.target))return Wi.Ignore;let D=Q.target.closest('[role="option"]:not([data-disabled])');return _i(D)?Wi.Select(D):b!=null&&b.contains(Q.target)?Wi.Ignore:Wi.Close},[x,b]),close:l.actions.closeListbox,select:l.actions.selectActiveOption});let S=He(Q=>{switch(Q.key){case ft.Enter:YV(Q.currentTarget);break;case ft.Space:case ft.ArrowDown:Q.preventDefault(),l.actions.openListbox({focus:a.value?Je.Nothing:Je.First});break;case ft.ArrowUp:Q.preventDefault(),l.actions.openListbox({focus:a.value?Je.Nothing:Je.Last});break}}),N=He(Q=>{switch(Q.key){case ft.Space:Q.preventDefault();break}}),C=j6(Q=>{var D;l.state.listboxState===Tn.Open?(ln.flushSync(()=>l.actions.closeListbox()),(D=l.state.buttonElement)==null||D.focus({preventScroll:!0})):(Q.preventDefault(),l.actions.openListbox({focus:Je.Nothing}))}),E=He(Q=>Q.preventDefault()),M=Ed([d]),L=g6(),{isFocusVisible:R,focusProps:O}=vb({autoFocus:f}),{isHovered:k,hoverProps:B}=gb({isDisabled:u}),{pressed:I,pressProps:V}=s6({disabled:u}),z=xs({open:y===Tn.Open,active:I||y===Tn.Open,disabled:u,invalid:a.invalid,value:a.value,hover:k,focus:R,autofocus:f}),K=gt(l,Q=>Q.listboxState===Tn.Open),W=$d(g(),{ref:p,id:d,type:D6(e,x),"aria-haspopup":"listbox","aria-controls":b?.id,"aria-expanded":K,"aria-labelledby":M,"aria-describedby":L,disabled:u||void 0,autoFocus:f,onKeyDown:S,onKeyUp:N,onKeyPress:E},C,O,B,V);return Rn()({ourProps:W,theirProps:h,slot:z,defaultTag:mG,name:"Listbox.Button"})}let $E=j.createContext(!1),pG="div",gG=ad.RenderStrategy|ad.Static;function vG(e,t){let n=j.useId(),{id:s=`headlessui-listbox-options-${n}`,anchor:a,portal:l=!1,modal:d=!0,transition:u=!1,...f}=e,h=sE(a),[p,g]=j.useState(null);h&&(l=!0);let y=Od("Listbox.Options"),x=Pb("Listbox.Options"),[b,w,S,N]=gt(x,ae=>[ae.listboxState,ae.buttonElement,ae.optionsElement,ae.__demoMode]),C=od(w),E=od(S),M=cE(),[L,R]=B6(u,p,M!==null?(M&er.Open)===er.Open:b===Tn.Open);T6(L,w,x.actions.closeListbox);let O=N?!1:d&&b===Tn.Open;L6(O,E);let k=N?!1:d&&b===Tn.Open;E6(k,{allowed:j.useCallback(()=>[w,S],[w,S])});let B=gt(x,x.selectors.didButtonMove)?!1:L,I=gt(x,x.selectors.hasFrozenValue)&&!e.static,V=Tm(I,y.value),z=j.useCallback(ae=>y.compare(V,ae),[y.compare,V]),K=gt(x,ae=>{var pe;if(h==null||!((pe=h?.to)!=null&&pe.includes("selection")))return null;let le=ae.options.findIndex(ve=>z(ve.dataRef.current.value));return le===-1&&(le=0),le}),W=(()=>
421{if(h==null)return;if(K===null)return{...h,inner:void 0};let ae=Array.from(y.listRef.current.values());return{...h,inner:{listRef:{current:ae},index:K}}})(),[Q,D]=aE(W),H=rE(),U=as(t,h?Q:null,x.actions.setOptionsElement,g),Z=Ba();j.useEffect(()=>{let ae=S;ae&&b===Tn.Open&&(yb(ae)||ae==null||ae.focus({preventScroll:!0}))},[b,S]);let F=He(ae=>{var pe;switch(Z.dispose(),ae.key){case ft.Space:if(x.state.searchQuery!=="")return ae.preventDefault(),ae.stopPropagation(),x.actions.search(ae.key);case ft.Enter:ae.preventDefault(),ae.stopPropagation(),x.actions.selectActiveOption();break;case Mn(y.orientation,{vertical:ft.ArrowDown,horizontal:ft.ArrowRight}):return ae.preventDefault(),ae.stopPropagation(),x.actions.goToOption({focus:Je.Next});case Mn(y.orientation,{vertical:ft.ArrowUp,horizontal:ft.ArrowLeft}):return ae.preventDefault(),ae.stopPropagation(),x.actions.goToOption({focus:Je.Previous});case ft.Home:case ft.PageUp:return ae.preventDefault(),ae.stopPropagation(),x.actions.goToOption({focus:Je.First});case ft.End:case ft.PageDown:return ae.preventDefault(),ae.stopPropagation(),x.actions.goToOption({focus:Je.Last});case ft.Escape:ae.preventDefault(),ae.stopPropagation(),ln.flushSync(()=>x.actions.closeListbox()),(pe=x.state.buttonElement)==null||pe.focus({preventScroll:!0});return;case ft.Tab:ae.preventDefault(),ae.stopPropagation(),ln.flushSync(()=>x.actions.closeListbox()),qU(x.state.buttonElement,ae.shiftKey?Fv.Previous:Fv.Next);break;default:ae.key.length===1&&(x.actions.search(ae.key),Z.setTimeout(()=>x.actions.clearSearch(),350));break}}),T=gt(x,ae=>{var pe;return(pe=ae.buttonElement)==null?void 0:pe.id}),A=xs({open:b===Tn.Open}),Y=$d(h?H():{},{id:s,ref:U,"aria-activedescendant":gt(x,x.selectors.activeDescendantId),"aria-multiselectable":y.mode===Fr.Multi?!0:void 0,"aria-labelledby":T,"aria-orientation":y.orientation,onKeyDown:F,role:"listbox",tabIndex:b===Tn.Open?0:void 0,style:{...f.style,...D,"--button-width":Dv(L,w,!0).width},...I6(R)}),ee=Rn(),te=j.useMemo(()=>y.mode===Fr.Multi?y:{...y,isSelected:z},[y,z]);return ye.createElement(mE,{enabled:l?e.static||L:!1,ownerDocument:C},ye.createElement(ch.Provider,{value:te},ee({ourProps:Y,theirProps:f,slot:A,defaultTag:pG,features:gG,visible:B,name:"Listbox.Options"}
421)))}let yG="div";function bG(e,t){let n=j.useId(),{id:s=`headlessui-listbox-option-${n}`,disabled:a=!1,value:l,...d}=e,u=j.useContext($E)===!0,f=Od("Listbox.Option"),h=Pb("Listbox.Option"),p=gt(h,I=>h.selectors.isActive(I,s)),g=f.isSelected(l),y=j.useRef(null),x=oG(y),b=Wr({disabled:a,value:l,domRef:y,get textValue(){return x()}}),w=as(t,y,I=>{I?f.listRef.current.set(s,I):f.listRef.current.delete(s)}),S=gt(h,I=>h.selectors.shouldScrollIntoView(I,s));Rt(()=>{if(S)return rs().requestAnimationFrame(()=>{var I,V;(V=(I=y.current)==null?void 0:I.scrollIntoView)==null||V.call(I,{block:"nearest"})})},[S,y]),Rt(()=>{if(!u)return h.actions.registerOption(s,b),()=>h.actions.unregisterOption(s)},[b,s,u]);let N=He(I=>{if(a)return I.preventDefault();h.actions.selectOption(l)}),C=He(()=>{if(a)return h.actions.goToOption({focus:Je.Nothing});h.actions.goToOption({focus:Je.Specific,id:s})}),E=F6(),M=He(I=>E.update(I)),L=He(I=>{E.wasMoved(I)&&(a||p&&h.state.activationTrigger===Yf.Pointer||h.actions.goToOption({focus:Je.Specific,id:s},Yf.Pointer))}),R=He(I=>{E.wasMoved(I)&&(a||p&&h.state.activationTrigger===Yf.Pointer&&h.actions.goToOption({focus:Je.Nothing}))}),O=xs({active:p,focus:p,selected:g,disabled:a,selectedOption:g&&u}),k=u?{}:{id:s,ref:w,role:"option",tabIndex:a===!0?void 0:-1,"aria-disabled":a===!0?!0:void 0,"aria-selected":g,disabled:void 0,onClick:N,onFocus:C,onPointerEnter:M,onMouseEnter:M,onPointerMove:L,onMouseMove:L,onPointerLeave:R,onMouseLeave:R},B=Rn();return!g&&u?null:B({ourProps:k,theirProps:d,slot:O,defaultTag:yG,name:"Listbox.Option"})}let xG=j.Fragment;function _G(e,t){let{options:n,placeholder:s,...a}=e,l={ref:as(t)},d=Od("ListboxSelectedOption"),u=xs({}),f=d.value===void 0||d.value===null||d.mode===Fr.Multi&&Array.isArray(d.value)&&d.value.length===0,h=Rn();return ye.createElement($E.Provider,{value:!0},h({ourProps:l,theirProps:{...a,children:ye.createElement(ye.Fragment,null,s&&f?s:n)},slot:u,defaultTag:xG,name:"ListboxSelectedOption"}))}let jG=Pn(fG),ud=Pn(hG),wG=b6,fd=Pn(vG),Go=Pn(bG),SG=Pn(_G),Am=Object.assign(jG,{Button:ud,Label:wG,Options:fd,Option:Go,SelectedOption:SG});const Kf=[{value:"AF",label:"Afghanistan"},{value:"AX",label:"Åland Islands"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire, Sint Eustatius and Saba"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CA",label:"Canada"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CG",label:"Congo"},{value:"CD",label:"Congo, Democratic Republic of the"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"CI",label:"Côte d'Ivoire"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands (Malvinas)"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KP",label:"Korea, Democratic People's Republic of"},{value:"KR",label:"Korea, Republic of"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MK",label:"North Macedonia"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"RE",label:"Réunion"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin (French part)"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten (Dutch part)"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Türkiye"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"GB",label:"United Kingdom"},{value:"US",label:"United States of America"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Viet Nam"},{value:"VG",label:"Virgin Islands (British)"},{value:"VI",label:"Virgin Islands (U.S.)"},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"}];function dh({id:e,value:t,onChange:n,onBlur:s,invalid:a=!1,placeholder:l="Select country…",required:d=!1}){const[u,f]=j.useState(""),h=j.useMemo(()=>
421{if(u.trim()==="")return Kf;const g=u.toLowerCase();return Kf.filter(y=>y.label.toLowerCase().includes(g)||y.value.toLowerCase()===g)},[u]),p=j.useMemo(()=>{if(!t)return null;const g=Kf.find(y=>y.label===t);return g?g.value.toLowerCase():null},[t]);return i.jsx(rG,{value:t??"",onChange:g=>n(g??""),children:i.jsxs("div",{className:"country-combobox",children:[i.jsxs("div",{className:"country-combobox__input-wrapper",children:[p&&i.jsx(vm,{iso2:p,className:"country-combobox__selected-flag","aria-hidden":"true"}),i.jsx(_E,{id:e,required:d,className:`auth-form__input country-combobox__input${p?" country-combobox__input--with-flag":""}${a?" auth-form__input--error":""}`,placeholder:l,displayValue:g=>g||"",onChange:g=>f(g.target.value),onBlur:s}),i.jsx(xE,{className:"country-combobox__toggle","aria-label":"Toggle country list",children:i.jsx(id,{size:16})})]}),i.jsx(jE,{className:"country-combobox__options",children:h.length===0?i.jsx("div",{className:"country-combobox__empty",children:"No matching country"}):h.map(g=>i.jsxs(wE,{value:g.label,className:"country-combobox__option",children:[i.jsx(vm,{iso2:g.value.toLowerCase(),className:"country-combobox__option-flag","aria-hidden":"true"}),i.jsx("span",{children:g.label})]},g.value))})]})})}dh.propTypes={id:q.string,value:q.string,onChange:q.func.isRequired,onBlur:q.func,invalid:q.bool,placeholder:q.string,required:q.bool};function EE({id:e,value:t,onChange:n,options:s,placeholder:a="Select…",invalid:l=!1}){const d=s.map(f=>typeof f=="string"?{value:f,label:f}:f),u=d.find(f=>f.value===t)??null;return i.jsx(Am,{value:t??"",onChange:n,children:i.jsxs("div",{className:"country-combobox",children:[i.jsx("div",{className:"country-combobox__input-wrapper",children:i.jsxs(ud,{id:e,className:`auth-form__input country-combobox__input country-combobox__button${l?" auth-form__input--error":""}`,children:[i.jsx("span",{className:u?"":"country-combobox__placeholder",children:u?u.label:a}),i.jsx("span",{className:"country-combobox__toggle","aria-hidden":"true",children:i.jsx(id,{size:16})})]})}),i.jsx(fd,{className:"country-combobox__options",children:d.map(f=>i.jsx(Go,{value:f.value,className:"country-combobox__option",children:f.label},f.value))})]})})}EE.propTypes={id:q.string,value:q.string,onChange:q.func.isRequired,options:q.arrayOf(q.oneOfType([q.string,q.shape({value:q.string,label:q.string})])).isRequired,placeholder:q.string,invalid:q.bool};const Rd=e=>(e??"").normalize("NFKC").replace(/[^\p{L}\p{N}]/gu,"").toUpperCase();function NG(e){const t=Rd(e);if(/^\d{6,8}$/.test(t))return!0;if(!/^\d{9}$/.test(t))return!1;const n=[...t].map(Number),s=d=>n.slice(0,8).reduce((u,f,h)=>u+f*d[h],0)%11,a=s([1,2,3,4,5,6,7,8]);if(a!==10)return a===n[8];const l=s([3,4,5,6,7,8,9,1]);return n[8]===0||n[8]===(l===10?0:l)}function wS(e){let t=Rd(e);if(/^\d{9,10}$/.test(t))return!0;if(!/^\d{6,8}$/.test(t))return!1;t=t.padStart(8,"0");const n=[...t].map(Number);return(11-n.slice(0,7).reduce((a,l,d)=>a+l*(8-d),0)%11)%10===n[7]}const Ot=e=>t=>e.test(Rd(t)),gf=(...e)=>(t,n)=>e.some(s=>s(t,n)),uc=(e,t,n,s=a=>a)=>(a,l)=>{const d=s(Rd(a));if(!n.test(d))return!1;const u=l?.stdnum?.[e];return u?t.some(f=>u[f]?.validate(d).isValid):!0},vf=(e,t,n=s=>s)=>(s,a)=>{const l=n(Rd(s).replace(new RegExp(`^${e}`),""));if(!t.test(l))return!1;const d=a?.euVat?.[e]??[];return d.length===0?!0:d.some(u=>u.validate(`${e}${l}`).isValid)},CG={AT:{name:"Firmenbuchnummer",hint:"e.g. FN 123456a",test:Ot(/^(FN|T)?\d{1,6}[A-Z]$/)},BE:{name:"Enterprise number (KBO/BCE)",hint:"10 digits, e.g. 0202.239.951",test:vf("BE",/^\d{10}$/,e=>e.length===9?`0${e}`:e)},BG:{name:"UIC / EIK",hint:"9 or 13 digits",test:Ot(/^(\d{9}|\d{13})$/)},HR:{name:"MBS / OIB",hint:"MBS 8–9 digits, or OIB 11 digits",test:gf(Ot(/^\d{8,9}$/),vf("HR",/^\d{11}$/))},CY:{name:"Registration number",hint:"e.g. HE 123456",test:Ot(/^(HE|ΗΕ|AE|ΑΕ|C|O|P)?\d{1,8}$/u)},CZ:{name:"IČO",hint:"8 digits, e.g. 45274649",test:e=>wS(e)},DK:{name:"CVR number",hint:"8 digits, e.g. 24256790",test:vf("DK",/^\d{8}$/)},EE:{name:"Registrikood",hint:"8 digits",test:uc("EE",["registrikood"],/^\d{8}$/)},FI:{name:"Y-tunnus",hint:"e.g. 0112038-9",test:uc("FI",["ytunnus"],/^\d{8}$/,e=>e.padStart(8,"0"))},FR:{name:"SIREN / SIRET",hint:"9 or 14 digits",test:Ot(/^(\d{9}|\d{14})$/)},DE:{name:"Handelsregisternummer",hint:"e.g. HRB 12345",test:e=>/(HRA|HRB|GNR|PR|VR)\s?\d{1,6}/i.test(e??"")},GR:{name:"GEMI number",hint:"up to 12 digits",test:Ot(/^\d{7,12}$/)},HU:{name:"Cégjegyzékszám",hint:"e.g. 01-10-041683",test:Ot(/^(CG)?\d{10}$/)},IE:{name:"CRO number",hint:"up to 7 digits",test:Ot(/^\d{1,7}$/)},IT:{name:"Codice fiscale / REA",hint:"11 digits, or REA e.g. MI-1234567",test:gf(Ot(/^[A-Z]{2}\d{1,7}$/),vf("IT",/^\d{11}$/))},LV:{name:"Reģistrācijas numurs",hint:"11 digits, e.g. 40003032949",test:Ot(/^\d{11}$/)},LT:{name:"Įmonės kodas",hint:"9 digits, e.g. 124110246",test:e=>NG(e)},LU:{name:"RCS number",hint:"e.g. B123456",test:Ot(/^[A-Z]\d{1,7}$/)},MT:{name:"Registration number",hint:"e.g. C 12345",test:Ot(/^[A-Z]{1,3}\d{1,6}$/)},NL:{name:"KvK number",hint:"8 digits",test:Ot(/^\d{8}$/)},PL:{name:"KRS / REGON",hint:"KRS 10 digits, or REGON 9/14 digits",test:Ot(/^(\d{6}|\d{8,10}|\d{14})$/)},PT:{name:"NIPC",hint:"9 digits",test:Ot(/^(\d{9}|\d{3,6})$/)},RO:{name:"CUI / Trade register number",hint:"e.g. J40/1234/2020 or CUI",test:Ot(/^((RO)?\d{2,10}|[JFC]\d{2,20})$/)},SK:{name:"IČO",hint:"8 digits, e.g. 31322832",test:e=>wS(e)},SI:{name:"Matična številka",hint:"7 to 10 digits",test:Ot(/^\d{7,10}$/)},ES:{name:"NIF (CIF)",hint:"e.g. A15075062",test:Ot(/^([A-Z]\d{7}[A-Z0-9]|\d{8}[A-Z]|[XYZ]\d{7}[A-Z])$/)},SE:{name:"Organisationsnummer",hint:"10 digits, e.g. 556012-5790",test:uc("SE",["orgnr"],/^\d{10}$/,e=>e.length===12?e.slice(2):e)},GB:{name:"Company number",hint:"8 characters, e.g. 01234567 or SC123456",test:Ot(/^(\d{6,8}|[A-Z]{2}\d{6}|R\d{7}|[A-Z]{2}\d{5}[A-Z])$/)},NO:{name:"Organisasjonsnummer",hint:"9 digits",test:gf(Ot(/^\d{11}$/),uc("NO",["orgnr"],/^\d{9}$/))},CH:{name:"UID / CH-number",hint:"e.g. CHE-116.281.710",test:gf(Ot(/^(CH|FL)\d{11}$/),uc("CH",["uid"],/^CHE\d{9}$/,e=>/^\d{9}$/.test(e)?`CHE${e}`:e))},LI:{name:"Register number / UID",hint:"e.g. FL-0002.123.456-7",test:Ot(/^([A-Z]{2,3})?\d{9,11}$/)},UA:{name:"EDRPOU",hint:"8 digits",test:Ot(/^(\d{8}|\d{10})$/)}},$G=Object.fromEntries(Kf.map(e=>[e.label,e.value])),SS=/\b(VAT|Tax|TIN|GST)\b|Employer Identification/i,EG=/Company|Business|Organi[sz]ation|Register|Registration|Entity|Corporate|Establishment|Legal Person|Statistical|Credit Code/i;let NS;function TE(){return NS??=a8(()=>import("./index-BZlhzEqZ.js"),[]),NS}const yf=e=>e.localName||e.abbreviation||e.name;function CS(e,t){return e.some(n=>n.validate(t).isValid)}function AE(e,t){const n=$G[e],s={iso:null,checkVat:()=>null,checkCompanyCode:()=>null,companyCodeHint:null,vatHint:null};if(!n)return s;const a=t?.entityValidators?.[n]??[],l=t?.euVat?.[n]??[],d=l.length>0?l:a.filter(h=>SS.test(h.name)),u=a.filter(h=>!d.includes(h)&&EG.test(h.name)&&!SS.test(h.name)),f=CG[n];
421return{iso:n,companyCodeHint:f?`${f.name} — ${f.hint}`:u.length>0?u.map(yf).join(" / "):null,vatHint:d.length>0?d.map(yf).join(" / "):null,checkVat(h){const p=(h??"").trim();return!p||d.length===0||CS(d,p)?null:`Enter a valid ${d.map(yf).join(" / ")} for ${e}.`},checkCompanyCode(h){const p=(h??"").trim();return p?f?f.test(p,t)?null:`Enter a valid ${f.name} for ${e} (${f.hint}).`:u.length>0?CS(u,p)?null:`Enter a valid company registration number for ${e} (${u.map(yf).join(" / ")}).`:null:null}}}const fc={first_name:"First name is required",last_name:"Last name is required",email:"Email is required",password:"Password is required",password_confirmation:"Confirm your password",company_name:"Company name is required",company_code:"Company registration number is required",legal_form:"Legal form is required",company_website:"Website is required",country:"Country is required",company_email:"Company email is required",city:"City is required"},$S='Enter a VAT number / Tax ID, or tick "Not a VAT payer"',mc={street:"Office address is required",postal_code:"Postal code is required"},TG={pattern:"(?=[A-Z0-9\\s\\-]*\\d)[A-Z0-9][A-Z0-9\\s\\-]{1,10}[A-Z0-9]",example:""},kr=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,$0=/linkedin\.com\/in\//i,E0=/linkedin\.com\/company\//i,bf=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+(\/.*)?$/i,AG=["1–10 employees","11–50 employees","51–200 employees","201–500 employees","500+ employees"];function kG({plans:e=[],industries:t=[],business_stages:n=[],company_types:s=[],postal_code_patterns:a={}}){const{data:l,setData:d,post:u,processing:f,errors:h}=Yt({first_name:"",last_name:"",email:"",password:"",password_confirmation:"",job_title:"",phone:"",linkedin_url:"",company_name:"",industry_ids:[],business_stage_id:null,company_type_id:null,legal_form:"",company_website:"",company_email:"",company_linkedin:"",country:"",street:"",postal_code:"",city:"",region:"",company_code:"",vat_number:"",not_vat_payer:!1,business_id_format_override:!1,company_
421size:"",company_description:"",tier:"bronze",billing_cycle:null,newsletter_opt_in:!1,terms_accepted:!1}),p=j.useMemo(()=>a[l.country]??a._default??TG,[l.country,a]);function g(F){return new RegExp(`^(?:${p.pattern})$`,"i").test(F.trim())}j.useEffect(()=>{const F=(l.postal_code??"").trim();if(F)if(g(F))k(T=>{if(!T.postal_code)return T;const A={...T};return delete A.postal_code,A});else{const T=p?.example;k(A=>({...A,postal_code:T?`Enter a valid postal code (e.g. ${T}).`:"Enter a valid postal code."}))}},[l.country]);const[y,x]=j.useState(null);j.useEffect(()=>{let F=!0;return TE().then(T=>F&&x(T)).catch(()=>{}),()=>{F=!1}},[]);const b=j.useMemo(()=>AE(l.country,y),[l.country,y]),w=j.useRef(new Set),S=b.checkCompanyCode(l.company_code),N=l.not_vat_payer?null:b.checkVat(l.vat_number),C=!!l.business_id_format_override,E=F=>C?null:b.checkCompanyCode(F),M=F=>C||l.not_vat_payer?null:b.checkVat(F);j.useEffect(()=>{k(F=>{const T={...F};return[["company_code",E(l.company_code)],["vat_number",M(l.vat_number)]].forEach(([Y,ee])=>{(l[Y]??"").trim()&&(ee?T[Y]=ee:delete T[Y])}),T})},[b,C]);const L=3;function R(F){const T=l.industry_ids.includes(F);if(!T&&l.industry_ids.length>=L)return;const A=T?l.industry_ids.filter(Y=>Y!==F):[...l.industry_ids,F];d("industry_ids",A),k(Y=>{const ee={...Y};return A.length===0?ee.industry_ids="Pick at least one industry":delete ee.industry_ids,ee})}const[O,k]=j.useState({}),B={...h,...O},I=j.useMemo(()=>!Object.keys(fc).every(T=>(l[T]??"").toString().trim().length>0)||!l.not_vat_payer&&!(l.vat_number??"").trim()||l.tier==="silver"&&(!Object.keys(mc).every(A=>(l[A]??"").toString().trim().length>0)||!g(l.postal_code))||!l.industry_ids||l.industry_ids.length===0||!l.business_stage_id||!l.company_type_id||E(l.company_code)||M(l.vat_number)||!kr.test(l.email.trim())||!bf.test(l.company_website.trim())||!Rc(l.password)||l.password!==l.password_confirmation||!l.terms_accepted?!1:Object.keys(O).length===0,[l,O,p,b]);function V(F,T){if(d(F,T),O[F]){if(fc[F]&&T.trim()){if(F==="email"&&!kr.test(T.trim()))return;z(F);return}if(mc[F]&&T.trim()){z(F);return}if(F==="vat_number"&&T.trim()){z(F);return}if(F==="linkedin_url"&&(!T.trim()||$0.test(T.trim()))){z(F);return}if(F==="company_linkedin"&&(!T.trim()||E0.test(T.trim()))){z(F);return}if(F==="company_website"&&(!T.trim()||bf.test(T.trim()))){z(F);return}if(F==="postal_code"&&T.trim()&&g(T)){z(F);return}}if(F==="password"||F==="password_confirmation"){const A=F==="password"?T:l.password,Y=F==="password_confirmation"?T:l.password_confirmation;Y&&A&&A===Y&&O.password_confirmation==="Passwords do not match"&&z("password_confirmation")}}function z(F){k(T=>{const A={...T};return delete A[F],A})}function K(F,T){const A=`${l.country}|${F}|${T}`;w.current.has(A)||(w.current.add(A),Et.post("/api/business-id-rejection",{country:l.country,field:F,value:T}).catch(()=>{}))}async function W(F){const T=(l[F]??"").toString().trim();if(fc[F]&&!T){k(A=>({...A,[F]:fc[F]}));return}if(l.tier==="silver"&&mc[F]&&!T){k(A=>({...A,[F]:mc[F]}));return}if(F==="vat_number"&&!T&&!l.not_vat_payer){k(A=>({...A,vat_number:$S}));return}if(F==="company_code"||F==="vat_number"&&!l.not_vat_payer){const A=F==="company_code"?E(T):M(T);if(A){k(Y=>({...Y,[F]:A})),K(F,T);return}}if(F==="email"&&T&&!kr.test(T)){k(A=>({...A,email:"Enter a valid email address"}));return}if(F==="email"&&T&&kr.test(T))try{const{data:A}=await Et.post("/api/email-check",{email:T});if(A?.taken){k(Y=>({...Y,email:"An account with this email already exists."}));return}}catch{}if(F==="linkedin_url"&&T&&!$0.test(T)){k(A=>({...A,linkedin_url:"Enter a valid LinkedIn URL (linkedin.com/in/…)"}));return}if(F==="company_website"&&T&&!bf.test(T)){k(A=>({...A,company_website:"Enter a valid website (e.g. example.com)"}));return}if(F==="phone"){const A=Lr(l.phone);if(A){k(Y=>({...Y,phone:A}));return}}if(F==="company_email"&&T&&!kr.test(T)){k(A=>({...A,company_email:"Enter a valid email (e.g. [email protected])"}));return}if(F==="company_email"&&T&&kr.test(T))try{const{data:A}=await Et.post("/api/company-check",{email:T});if(A?.email_taken){k(Y=>({...Y,company_email:"A company with this email is already registered."}));return}}catch{}if(F==="company_name"&&T)try{const{data:A}=await Et.post("/api/company-check",{name:T});if(A?.name_taken){k(Y=>({...Y,company_name:"A company with this name is already registered."}));return}}catch{}if(F==="company_linkedin"&&T&&!E0.test(T)){k(A=>({...A,company_linkedin:"Enter a LinkedIn page URL (linkedin.com/company/…)"}));return}if(F==="password"&&T&&!Rc(T)){k(A=>({...A,password:"Password does not meet all requirements"}));return}if(F==="password_confirmation"&&T&&T!==l.password){k(A=>({...A,password_confirmation:"Passwords do not match"}));return}if(F==="postal_code"&&T&&!g(T)){const A=p?.example;k(Y=>({...Y,postal_code:A?`Enter a valid postal code (e.g. ${A}).`:"Enter a valid postal code."}));return}z(F)}function Q(F){d("tier",F),F==="bronze"?(d("billing_cycle",null),k(T=>{const A={...T};return delete A.street,delete A.postal_code,A})):l.billing_cycle||d("billing_cycle","quarterly")}function D(F){d("billing_cycle",F)}function H(F,T){const A=T==="annual"?F.price_annual:F.price_quarterly;return Math.round((A??0)/100)}function U(){const F={};
421Object.entries(fc).forEach(([ee,te])=>{(l[ee]??"").toString().trim()||(F[ee]=te)}),!l.not_vat_payer&&!(l.vat_number??"").trim()&&(F.vat_number=$S);const T=E(l.company_code);T&&!F.company_code&&(F.company_code=T);const A=M(l.vat_number);if(A&&!F.vat_number&&(F.vat_number=A),l.tier==="silver"&&Object.entries(mc).forEach(([ee,te])=>{(l[ee]??"").toString().trim()||(F[ee]=te)}),l.tier==="silver"&&l.postal_code.trim()&&!g(l.postal_code)){const ee=p?.example;F.postal_code=ee?`Enter a valid postal code (e.g. ${ee}).`:"Enter a valid postal code."}(!l.industry_ids||l.industry_ids.length===0)&&(F.industry_ids="Pick at least one industry"),l.business_stage_id||(F.business_stage_id="Pick a business stage"),l.company_type_id||(F.company_type_id="Pick a company type"),l.email.trim()&&!kr.test(l.email.trim())&&(F.email="Enter a valid email address"),l.company_website.trim()&&!bf.test(l.company_website.trim())&&(F.company_website="Enter a valid website (e.g. example.com)");const Y=Lr(l.phone);return Y&&(F.phone=Y),l.linkedin_url.trim()&&!$0.test(l.linkedin_url.trim())&&(F.linkedin_url="Enter a valid LinkedIn URL (linkedin.com/in/…)"),l.company_email.trim()&&!kr.test(l.company_email.trim())&&(F.company_email="Enter a valid email (e.g. [email protected])"),l.company_linkedin.trim()&&!E0.test(l.company_linkedin.trim())&&(F.company_linkedin="Enter a LinkedIn page URL (linkedin.com/company/…)"),l.password&&!Rc(l.password)&&(F.password="Password does not meet all requirements"),l.password_confirmation&&l.password_confirmation!==l.password&&(F.password_confirmation="Passwords do not match"),l.terms_accepted||(F.terms_accepted="Please accept the Terms and Conditions to continue."),F}function Z(F){F.preventDefault();const T=U();if(Object.keys(T).length>0){k(T),requestAnimationFrame(()=>{const A=Object.keys(T)[0],Y=document.querySelector(`[name="${A}"]`)||document.querySelector(`#${CSS.escape(A)}`)||document.querySelector(".auth-form__error")||document.querySelector(".auth-form__consent-row--error");if(Y?.scrollIntoView&&(Y.scrollIntoView({behavior:"smooth",block:"center"}),typeof Y.focus=="function"))try{Y.focus({preventScroll:!0})}catch{}});return}k({}),u(route("register.company"),{onSuccess:()=>{Se.visit("/login")}})}return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Become a Member of the BCCS Cluster",description:"Register your company with BCCS to join the Blockchain Cybersecurity and Compliance Solutions Cluster.",url:"/register-company"}),i.jsx(Kt,{}),i.jsx("div",{className:"register-company-page",children:i.jsxs("div",{className:"header-section",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"login-logo"})}),i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Register your company"}),i.jsx("p",{children:"Join the BCCS ecosystem. Fill in your details and company information to get started."})]})}),i.jsxs("form",{onSubmit:Z,className:"auth-form",noValidate:!0,children:[i.jsxs("div",{className:"auth-form__section",children:[i.jsx("h2",{className:"auth-form__section-title",children:"Company details"}),i.jsxs("div",{className:"auth-form__row auth-form__row--legal-name",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("div",{className:"auth-form__label-row",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"legal_form",children:["Legal form ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsxs("span",{className:"auth-form__tooltip",children:[i.jsx("button",{type:"button",className:"auth-form__tooltip-trigger","aria-label":"What is a legal form?","aria-describedby":"legal_form_tooltip",children:i.jsx("img",{src:"/images/icons/question-mark.svg",alt:"",width:"14",height:"14"})}),i.jsx("span",{id:"legal_form_tooltip",role:"tooltip",className:"auth-form__tooltip-bubble",children:"Enter your company's legal form, e.g. UAB, MB, Ltd, LLC, GmbH, AG, SIA, OÜ."})]})]}),i.jsx("input",{id:"legal_form",name:"legal_form",type:"text",className:`auth-form__input${B.legal_form?" auth-form__input--error":""}`,value:l.legal_form,onChange:F=>V("legal_form",F.target.value),onBlur:()=>W("legal_form"),placeholder:"e.g. UAB"}),B.legal_form&&i.jsx("span",{className:"auth-form__error",children:B.legal_form})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_name",children:["Company name ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"company_name",type:"text",className:`auth-form__input${B.company_name?" auth-form__input--error":""}`,value:l.company_name,onChange:F=>V("company_name",F.target.value),onBlur:()=>W("company_name"),placeholder:"Acme"}),B.company_name&&i.jsx("span",{className:"auth-form__error",children:B.company_name})]})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"country",children:["Country ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx(dh,{id:"country",value:l.country,onChange:F=>V("country",F),onBlur:()=>W("country"),invalid:!!B.country}),B.country&&i.jsx("span",{className:"auth-form__error",children:B.country})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"city",children:["City ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"city",name:"city",type:"text",className:`auth-form__input${B.city?" auth-form__input--error":""}`,value:l.city,onChange:F=>V("city",F.target.value),onBlur:()=>W("city"),placeholder:"e.g. Vilnius"}),B.city&&i.jsx("span",{className:"auth-form__error",children:B.city})]})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_code",children:["Company registration number ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"company_code",name:"company_code",type:"text",className:`auth-form__input${B.company_code?" auth-form__input--error":""}`,value:l.company_code,onChange:F=>V("company_code",F.target.value),onBlur:()=>W("company_code"),placeholder:"Company registration number"}),B.company_code&&i.jsx("span",{className:"auth-form__error",children:B.company_code}),!B.company_code&&b.companyCodeHint&&i.jsxs("span",{className:"auth-form__hint",children:[l.country,": ",b.companyCodeHint]}),!B.company_code&&!l.country&&i.jsx("span",{className:"auth-form__hint",children:"Select the country first — the format depends on it."})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"vat_number",children:["VAT number / Tax ID"," ",l.not_vat_payer?i.jsx("span",{className:"auth-form__optional",children:"(optional)"}):i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"vat_number",name:"vat_number",type:"text",className:`auth-form__input${B.vat_number?" auth-form__input--error":""}`,value:l.vat_number,onChange:F=>V("vat_number",F.target.value),onBlur:()=>W("vat_number"),placeholder:b.iso&&b.vatHint?`${b.vatHint}, e.g. ${b.iso}…`:"VAT number / Tax ID",disabled:l.not_vat_payer}),i.jsxs("label",{className:"auth-form__field-checkbox",children:[i.jsx("input",{type:"checkbox",checked:l.not_vat_payer,onChange:F=>{const T=F.target.checked;d("not_vat_payer",T),T&&(d("vat_number",""),k(A=>{const Y={...A};return delete Y.vat_number,Y}))}}),i.jsx("span",{children:"Not a VAT payer"})]}),B.vat_number&&i.jsx("span",{className:"auth-form__error",children:B.vat_number})]})]}),(S||N||C)&&i.jsxs("label",{className:"auth-form__field-checkbox",children:[i.jsx("input",{type:"checkbox",checked:C,onChange:F=>d("business_id_format_override",F.target.checked)}),i.jsx("span",{children:"My number is correct, continue anyway (we will double-check it manually)"})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",children:["Industries ",i.jsx("span",{className:"auth-form__required",children:"*"}),i.jsxs("span",{className:"auth-form__optional",children:[" (pick up to ",L,") — ",l.industry_ids.length,"/",L]})]}),i.jsx("div",{className:`auth-form__checkbox-grid${B.industry_ids?" auth-form__checkbox-grid--error":""}`,children:t.map(F=>{const T=l.industry_ids.includes(F.id),A=!T&&l.industry_ids.length>=L;return i.jsxs("label",{className:`auth-form__checkbox-option${T?" auth-form__checkbox-option--checked":""}${B.industry_ids?" auth-form__checkbox-option--error":""}${A?" auth-form__checkbox-option--disabled":""}`,children:[i.jsx("input",{type:"checkbox",checked:T,disabled:A,onChange:()=>R(F.id)}),i.jsx("span",{children:F.name})]},F.id)})}),B.industry_ids&&i.jsx("span",{className:"auth-form__error",children:B.industry_ids}
421)]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"business_stage_id",children:["Business stage ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsxs("select",{id:"business_stage_id",className:`auth-form__input${B.business_stage_id?" auth-form__input--error":""}`,value:l.business_stage_id??"",onChange:F=>{const T=F.target.value?Number(F.target.value):null;d("business_stage_id",T),k(A=>{const Y={...A};return T?delete Y.business_stage_id:Y.business_stage_id="Pick a business stage",Y})},onBlur:()=>{l.business_stage_id||k(F=>({...F,business_stage_id:"Pick a business stage"}))},children:[i.jsx("option",{value:"",children:"Choose a stage…"}),n.map(F=>i.jsx("option",{value:F.id,children:F.name},F.id))]}),l.business_stage_id&&i.jsx("span",{className:"auth-form__hint",children:n.find(F=>F.id===l.business_stage_id)?.description}),B.business_stage_id&&i.jsx("span",{className:"auth-form__error",children:B.business_stage_id})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_website",children:["Website ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"company_website",type:"text",className:`auth-form__input${B.company_website?" auth-form__input--error":""}`,value:l.company_website,onChange:F=>V("company_website",F.target.value),onBlur:()=>W("company_website"),placeholder:"example.com"}),B.company_website&&i.jsx("span",{className:"auth-form__error",children:B.company_website})]})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_type_id",children:["Company type ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsxs("select",{id:"company_type_id",className:`auth-form__input${B.company_type_id?" auth-form__input--error":""}`,value:l.company_type_id??"",onChange:F=>{const T=F.target.value?Number(F.target.value):null;d("company_type_id",T),k(A=>{const Y={...A};return T?delete Y.company_type_id:Y.company_type_id="Pick a company type",Y})},onBlur:()=>{l.company_type_id||k(F=>({...F,company_type_id:"Pick a company type"}))},children:[i.jsx("option",{value:"",children:"Choose a type…"}),s.map(F=>i.jsx("option",{value:F.id,children:F.name},F.id))]}),B.company_type_id&&i.jsx("span",{className:"auth-form__error",children:B.company_type_id})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_size",children:["Company size ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx(EE,{id:"company_size",value:l.company_size,onChange:F=>V("company_size",F),options:AG,placeholder:"Select size…"})]})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_email",children:["Company email ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"company_email",type:"email",className:`auth-form__input${B.company_email?" auth-form__input--error":""}`,value:l.company_email,onChange:F=>V("company_email",F.target.value),onBlur:()=>W("company_email"),placeholder:"[email protected]"}),B.company_email&&i.jsx("span",{className:"auth-form__error",children:B.company_email})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_linkedin",children:["Company LinkedIn ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("input",{id:"company_linkedin",type:"text",className:`auth-form__input${B.company_linkedin?" auth-form__input--error":""}`,value:l.company_linkedin,onChange:F=>V("company_linkedin",F.target.value),onBlur:()=>W("company_linkedin"),placeholder:"linkedin.com/company/your-name"}),B.company_linkedin&&i.jsx("span",{className:"auth-form__error",children:B.company_linkedin})]})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"company_description",children:["Description ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("textarea",{id:"company_description",className:"auth-form__textarea",rows:3,value:l.company_description,onChange:F=>V("company_description",F.target.value.slice(0,1e3)),maxLength:1e3,placeholder:"Tell us about your organization..."}),i.jsx("div",{className:"auth-form__field-footer",children:i.jsxs("span",{className:"auth-form__char-count",children:[(l.company_description??"").length," / 1000"]})})]}),i.jsxs("div",{className:"auth-form__section",children:[i.jsx("h2",{className:"auth-form__section-title",children:"Personal details"}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"first_name",children:["First name ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"first_name",type:"text",className:`auth-form__input${B.first_name?" auth-form__input--error":""}`,value:l.first_name,onChange:F=>V("first_name",F.target.value),onBlur:()=>W("first_name"),placeholder:"Jane",autoComplete:"given-name"}),B.first_name&&i.jsx("span",{className:"auth-form__error",children:B.first_name})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"last_name",children:["Last name ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"last_name",type:"text",className:`auth-form__input${B.last_name?" auth-form__input--error":""}`,value:l.last_name,onChange:F=>V("last_name",F.target.value),onBlur:()=>W("last_name"),placeholder:"Doe",autoComplete:"family-name"}),B.last_name&&i.jsx("span",{className:"auth-form__error",children:B.last_name})]})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"email",children:["Email ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"email",type:"email",className:`auth-form__input${B.email?" auth-form__input--error":""}`,value:l.email,onChange:F=>V("email",F.target.value),onBlur:()=>W("email"),autoComplete:"email",placeholder:"[email protected]"}),B.email&&i.jsx("span",{className:"auth-form__error",children:B.email})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"password",children:["Password ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx(Vr,{id:"password",value:l.password,onChange:F=>V("password",F),onBlur:()=>W("password"),error:!!B.password,autoComplete:"new-password",placeholder:"At least 8 characters"}),B.password&&i.jsx("span",{className:"auth-form__error",children:B.password})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"password_confirmation",children:["Confirm password ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx(Vr,{id:"password_confirmation",value:l.password_confirmation,onChange:F=>V("password_confirmation",F),onBlur:()=>W("password_confirmation"),error:!!B.password_confirmation,autoComplete:"new-password",placeholder:"Repeat the password"}),B.password_confirmation&&i.jsx("span",{className:"auth-form__error",children:B.password_confirmation})]})]}),i.jsx(mb,{password:l.password}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"job_title",children:["Job title ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("input",{id:"job_title",type:"text",className:"auth-form__input",value:l.job_title,onChange:F=>V("job_title",F.target.value),placeholder:"e.g. Head of Product"})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"phone",children:["Phone ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx(Zm,{id:"phone",className:"auth-form__phone",hasError:!!B.phone,value:l.phone,onChange:F=>V("phone",F),onBlur:()=>W("phone")}),B.phone&&i.jsx("span",{className:"auth-form__error",children:B.phone})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"linkedin_url",children:["LinkedIn ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("input",{id:"linkedin_url",type:"text",className:`auth-form__input${B.linkedin_url?" auth-form__input--error":""}`,value:l.linkedin_url,onChange:F=>V("linkedin_url",F.target.value),onBlur:()=>W("linkedin_url"),placeholder:"linkedin.com/in/username"}),B.linkedin_url&&i.jsx("span",{className:"auth-form__error",children:B.linkedin_url})]})]})]})]}),i.jsxs("div",{className:"auth-form__section",children:[i.jsx("h2",{className:"auth-form__section-title",children:"Membership plan"}),i.jsx("div",{className:"register-plans",children:e.map(F=>{const T=l.tier===F.slug;return i.jsxs("div",{className:`register-plan${T?" register-plan--selected":""}`,onClick:()=>Q(F.slug),role:"button",tabIndex:0,children:[T&&i.jsx("div",{className:"register-plan__badge",children:"SELECTED"}),i.jsx("h4",{className:"register-plan__name",children:F.name}),i.jsx("p",{className:"register-plan__description",children:F.description}),F.is_free?i.jsx("div",{className:"register-plan__pricing",children:i.jsx("span",{className:"register-plan__price",children:"Free"})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"register-plan__billing-toggle",onClick:A=>A.stopPropagation(),children:[i.jsx("button",{type:"button",className:`register-plan__billing-toggle-btn${T&&l.billing_cycle==="quarterly"?" register-plan__billing-toggle-btn--active":""}`,onClick:()=>{Q(F.slug),D("quarterly")},children:"Quarterly"}),i.jsx("button",{type:"button",className:`register-plan__billing-toggle-btn${T&&l.billing_cycle==="annual"?" register-plan__billing-toggle-btn--active":""}`,onClick:()=>{Q(F.slug),D("annual")},children:"Annual"})]}),i.jsxs("div",{className:"register-plan__pricing",children:[i.jsxs("span",{className:"register-plan__price",children:["€",H(F,T?l.billing_cycle:"quarterly")]}),i.jsx("span",{className:"register-plan__cycle",children:"/month"})]}),i.jsx("span",{className:"register-plan__vat",children:"+ VAT if applicable"})]}),i.jsx("div",{className:"register-plan__separator"}),i.jsx("ul",{className:"register-plan__features",children:(F.features??[]).map((A,Y)=>i.jsxs("li",{className:"register-plan__feature",children:[i.jsx("span",{className:"register-plan__feature-check",children:"✓"}),typeof A=="string"?A:A.label]},Y))})]},F.slug)})}),B.tier&&i.jsx("span",{className:"auth-form__error",children:B.tier}),B.billing_cycle&&i.jsx("span",{className:"auth-form__error",children:B.billing_cycle})]}),l.tier==="silver"&&i.jsxs("div",{className:"auth-form__section auth-form__billing-details",children:[i.jsx("h3",{className:"auth-form__section-title",children:"Billing details"}),i.jsx("p",{className:"auth-form__section-hint",children:"Required so we can issue your Silver membership invoices."}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"street",children:["Office address ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"street",name:"street",type:"text",className:`auth-form__input${B.street?" auth-form__input--error":""}`,value:l.street,onChange:F=>V("street",F.target.value),onBlur:()=>W("street"),placeholder:"e.g. Gedimino pr. 9"}),B.street&&i.jsx("span",{className:"auth-form__error",children:B.street})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"postal_code",children:["Postal code ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"postal_code",name:"postal_code",type:"text",className:`auth-form__input${B.postal_code?" auth-form__input--error":""}`,value:l.postal_code,onChange:F=>V("postal_code",F.target.value),onBlur:()=>W("postal_code"),placeholder:p?.example||"e.g. LT-01100"}),B.postal_code&&i.jsx("span",{className:"auth-form__error",children:B.postal_code})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"region",children:["Region / state ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("input",{id:"region",name:"region",type:"text",className:"auth-form__input",value:l.region,onChange:F=>V("region",F.target.value),placeholder:"e.g. Vilniaus apskritis"})]})]})]}),i.jsxs("div",{className:"auth-form__section auth-form__consent",children:[i.jsxs("label",{className:"auth-form__consent-row",children:[i.jsx("input",{type:"checkbox",checked:l.newsletter_opt_in,onChange:F=>V("newsletter_opt_in",F.target.checked)}),i.jsx("span",{children:"I'd like to receive the BCCS newsletter, event invitations, and occasional product updates. You can unsubscribe at any time."})]}),i.jsxs("label",{className:`auth-form__consent-row${B.terms_accepted?" auth-form__consent-row--error":""}`,children:[i.jsx("input",{type:"checkbox",checked:l.terms_accepted,onChange:F=>{V("terms_accepted",F.target.checked),F.target.checked&&O.terms_accepted&&k(T=>{const A={...T};return delete A.terms_accepted,A})},"aria-invalid":!!B.terms_accepted,"aria-describedby":B.terms_accepted?"terms-error":void 0}),i.jsxs("span",{children:["I have read and agree to the"," ",i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"auth-form__consent-link",onClick:F=>{F.stopPropagation()},children:"BCCS Terms and Conditions"}),". ",i.jsx("span",{className:"auth-form__required",children:"*"})]})]}),B.terms_accepted&&i.jsx("span",{id:"terms-error",className:"auth-form__error",children:B.terms_accepted})]}),i.jsxs("div",{className:"auth-form__actions",children:[i.jsx("button",{type:"submit",className:"auth-form__submit",disabled:f,"aria-disabled":!I,children:f?"Creating account...":"Create account"}),i.jsxs("p",{className:"auth-form__login-link",children:["Already have an account? ",i.jsx(Ce,{href:"/login",children:"Log in"})]})]})]})]})}),i.jsx(Xt,{})]})}const MG=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),xf={first_name:"First name is required",last_name:"Last name is required",email:"Email is required",password:"Password is required",password_confirmation:"Confirm your password"},T0=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,A0=/linkedin\.com\/in\//i;function OG({inviteEmail:e=null}){const{data:t,setData:n,post:s,processing:a,errors:l}=Yt({first_name:"",last_name:"",email:e??"",password:"",password_confirmation:"",job_title:"",phone:"",linkedin_url:""}),[d,u]=j.useState({}),f={...l,...d};function h(b){u(w=>{const S={...w};return delete S[b],S})}function p(b,w){if(n(b,w),d[b]){if(xf[b]&&w.trim()){if(b==="email"&&!T0.test(w.trim()))return;h(b);return}if(b==="linkedin_url"&&(!w.trim()||A0.test(w.trim()))){h(b);return}}if(b==="password"||b==="password_confirmation"){const S=b==="password"?w:t.password,N=b==="password_confirmation"?w:t.password_confirmation;N&&S&&S===N&&d.password_confirmation==="Passwords do not match"&&h("password_confirmation")}}function g(b){const w=(t[b]??"").toString().trim();if(xf[b]&&!w){u(S=>({...S,[b]:xf[b]}));return}if(b==="email"&&w&&!T0.test(w)){u(S=>({...S,email:"Enter a valid email address"}));return}if(b==="linkedin_url"&&w&&!A0.test(w)){u(S=>({...S,linkedin_url:"Enter a valid LinkedIn URL (linkedin.com/in/…)"}));return}if(b==="phone"){const S=Lr(t.phone);if(S){u(N=>({...N,phone:S}));return}}if(b==="password"&&w&&!Rc(w)){u(S=>({...S,password:"Password does not meet all requirements"}));return}if(b==="password_confirmation"&&w&&w!==t.password){u(S=>({...S,password_confirmation:"Passwords do not match"}));return}h(b)}function y(){const b={};Object.entries(xf).forEach(([S,N])=>{(t[S]??"").toString().trim()||(b[S]=N)}),t.email.trim()&&!T0.test(t.email.trim())&&(b.email="Enter a valid email address"),t.linkedin_url.trim()
421&&!A0.test(t.linkedin_url.trim())&&(b.linkedin_url="Enter a valid LinkedIn URL (linkedin.com/in/…)"),t.password&&!Rc(t.password)&&(b.password="Password does not meet all requirements"),t.password_confirmation&&t.password_confirmation!==t.password&&(b.password_confirmation="Passwords do not match");const w=Lr(t.phone);return w&&(b.phone=w),b}function x(b){b.preventDefault();const w=y();if(Object.keys(w).length>0){u(w);return}u({}),s("/register-user")}return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{noindex:!0,title:"Create Account",description:"Create your BCCS account to join your team.",url:"/register-user"}),i.jsx(Kt,{}),i.jsx("div",{className:"register-company-page",children:i.jsxs("div",{className:"header-section",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"login-logo"})}),i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Create your account"}),i.jsx("p",{children:"Fill in your details to join your team on BCCS."})]})}),i.jsxs("form",{onSubmit:x,className:"auth-form",noValidate:!0,children:[i.jsxs("div",{className:"auth-form__section",children:[i.jsx("h2",{className:"auth-form__section-title",children:"Your details"}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"first_name",children:["First name ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"first_name",type:"text",className:`auth-form__input${f.first_name?" auth-form__input--error":""}`,value:t.first_name,onChange:b=>p("first_name",b.target.value),onBlur:()=>g("first_name"),placeholder:"Jane",autoComplete:"given-name"}),f.first_name&&i.jsx("span",{className:"auth-form__error",children:f.first_name})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"last_name",children:["Last name ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"last_name",type:"text",className:`auth-form__input${f.last_name?" auth-form__input--error":""}`,value:t.last_name,onChange:b=>p("last_name",b.target.value),onBlur:()=>g("last_name"),placeholder:"Doe",autoComplete:"family-name"}),f.last_name&&i.jsx("span",{className:"auth-form__error",children:f.last_name})]})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"email",children:["Email ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx("input",{id:"email",type:"email",className:`auth-form__input${f.email?" auth-form__input--error":""}`,value:t.email,onChange:b=>p("email",b.target.value),onBlur:()=>g("email"),readOnly:!!e,autoComplete:"email",placeholder:"[email protected]"}),e&&i.jsx("span",{className:"auth-form__hint",children:"This email was set by your invitation and cannot be changed."}),f.email&&i.jsx("span",{className:"auth-form__error",children:f.email})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"password",children:["Password ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx(Vr,{id:"password",value:t.password,onChange:b=>p("password",b),onBlur:()=>g("password"),error:!!f.password,autoComplete:"new-password",placeholder:"At least 8 characters"}),f.password&&i.jsx("span",{className:"auth-form__error",children:f.password})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"password_confirmation",children:["Confirm password ",i.jsx("span",{className:"auth-form__required",children:"*"})]}),i.jsx(Vr,{id:"password_confirmation",value:t.password_confirmation,onChange:b=>p("password_confirmation",b),onBlur:()=>g("password_confirmation"),error:!!f.password_confirmation,autoComplete:"new-password",placeholder:"Repeat the password"}),f.password_confirmation&&i.jsx("span",{className:"auth-form__error",children:f.password_confirmation})]})]}),i.jsx(mb,{password:t.password}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"job_title",children:["Job title ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("input",{id:"job_title",type:"text",className:"auth-form__input",value:t.job_title,onChange:b=>p("job_title",b.target.value),placeholder:"e.g. Head of Product"})]}),i.jsxs("div",{className:"auth-form__row",children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"phone",children:["Phone ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx(Zm,{id:"phone",className:"auth-form__phone",hasError:!!f.phone,value:t.phone,onChange:b=>p("phone",b),onBlur:()=>g("phone")}),f.phone&&i.jsx("span",{className:"auth-form__error",children:f.phone})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsxs("label",{className:"auth-form__label",htmlFor:"linkedin_url",children:["LinkedIn ",i.jsx("span",{className:"auth-form__optional",children:"(optional)"})]}),i.jsx("input",{id:"linkedin_url",type:"text",className:`auth-form__input${f.linkedin_url?" auth-form__input--error":""}`,value:t.linkedin_url,onChange:b=>p("linkedin_url",b.target.value),onBlur:()=>g("linkedin_url"),placeholder:"linkedin.com/in/username"}),f.linkedin_url&&i.jsx("span",{className:"auth-form__error",children:f.linkedin_url})]})]})]}),i.jsxs("div",{className:"auth-form__actions",children:[i.jsx("button",{type:"submit",className:"auth-form__submit",disabled:a,children:a?"Creating account...":"Create account"}),i.jsxs("p",{className:"auth-form__login-link",children:["Already have an account? ",i.jsx(Ce,{href:"/login",children:"Log in"})]})]})]})]})}),i.jsx(Xt,{})]})}const RG=Object.freeze(Object.defineProperty({__proto__:null,default:OG},Symbol.toStringTag,{value:"Module"})),ES=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Eo=8;function kE({token:e,email:t}){const{data:n,setData:s,post:a,processing:l,errors:d}=Yt({token:e??"",email:t??"",password:"",password_confirmation:""}),[u,f]=j.useState({}),h={...d,...u};function p(b){u[b]&&f(w=>{const S={...w};return delete S[b],S})}function g(b,w){if(s(b,w),p(b),b==="password"||b==="password_confirmation"){const S=b==="password"?w:n.password,N=b==="password_confirmation"?w:n.password_confirmation;S&&N&&S===N&&p("password_confirmation")}}function y(b){const w=(n[b]??"").toString(),S=w.trim();if(b==="email"){if(!S){f(N=>({...N,email:"Email is required"}));return}ES.test(S)||f(N=>({...N,email:"Enter a valid email address"}));return}if(b==="password"){if(!w){f(N=>({...N,password:"Password is required"}));return}w.length<Eo&&f(N=>({...N,password:`Password must be at least ${Eo} characters`}));return}if(b==="password_confirmation"){if(!w){f(N=>({...N,password_confirmation:"Confirm your password"}));return}w!==n.password&&f(N=>({...N,password_confirmation:"Passwords do not match"}))}}function x(b){b.preventDefault();const w={},S=n.email.trim();if(S?ES.test(S)||(w.email="Enter a valid email address"):w.email="Email is required",n.password?n.password.length<Eo&&(w.password=`Password must be at least ${Eo} characters`):w.password="Password is required",n.password_confirmation?n.password_confirmation!==n.password&&(w.password_confirmation="Passwords do not match"):w.password_confirmation="Confirm your password",Object.keys(w).length){f(w);return}f({}),a("/reset-password")}return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{noindex:!0,title:"Reset password",description:"Choose a new password for your BCCS account.",url:"/reset-password",keywords:"reset password, set new password"}),i.jsx(Kt,{}),i.jsx("div",{className:"login-page",children:i.jsxs("div",{className:"header-section",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"login-logo"})}),i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Set a new password"}),i.jsxs("p",{children:["Pick something you don't already use elsewhere — at least ",Eo," characters."]})]})}),i.jsxs("form",{onSubmit:x,className:"auth-form",noValidate:!0,children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsx("label",{className:"auth-form__label",htmlFor:"reset-email",children:"Email"}),i.jsx("input",{id:"reset-email",type:"email",className:`auth-form__input${h.email?" auth-form__input--error":""}`,value:n.email,onChange:b=>g("email",b.target.value),onBlur:()=>y("email"),autoComplete:"email",placeholder:"[email protected]"}),h.email&&i.jsx("span",{className:"auth-form__error",children:h.email})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsx("label",{className:"auth-form__label",htmlFor:"reset-password",children:"New password"}),i.jsx(Vr,{id:"reset-password",value:n.password,onChange:b=>g("password",b),onBlur:()=>y("password"),error:!!h.password,autoComplete:"new-password",placeholder:`At least ${Eo} characters`}),h.password&&i.jsx("span",{className:"auth-form__error",children:h.password})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsx("label",{className:"auth-form__label",htmlFor:"reset-password-confirm",children:"Confirm new password"}),i.jsx(Vr,{id:"reset-password-confirm",value:n.password_confirmation,onChange:b=>g("password_confirmation",b),onBlur:()=>y("password_confirmation"),error:!!h.password_confirmation,autoComplete:"new-password",placeholder:"Repeat the password"}),h.password_confirmation&&i.jsx("span",{className:"auth-form__error",children:h.password_confirmation})]}),i.jsx("div",{className:"auth-form__actions",children:i.jsx("button",{type:"submit",className:"auth-form__submit",disabled:l,children:l?"Saving...":"Save new password"})}),i.jsx("div",{className:"auth-form__footer-link",children:i.jsx(Ce,{href:"/login",children:"Back to login"})})]})]})}),i.jsx(Xt,{})]})}kE.propTypes={token:q.string,email:q.string};const PG=Object.freeze(Object.defineProperty({__proto__:null,default:kE},Symbol.toStringTag,{value:"Module"}));function DG({onClick:e}){return i.jsxs(kn.div,{className:"back-top-button",onClick:e,initial:{x:100,opacity:0}
421,animate:{x:0,opacity:1,transition:{type:"spring",stiffness:260,damping:20}},exit:{x:120,opacity:0,transition:{duration:.3,ease:[.4,0,1,1]}},whileHover:{scale:1.05},whileTap:{scale:.95},children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/chevron-right2.svg",width:"5",height:"8",alt:"",style:{transform:"rotate(-90deg)"}})}),i.jsx("p",{children:"Back to top"})]})}const k0={label:"Insights",title:"Between the Lines",description:"Explore the latest in fintech and member highlights."};function LG(){return i.jsx("div",{className:"header-section",children:i.jsxs("div",{className:"header-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:k0.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:k0.title}),i.jsx("p",{children:k0.description})]})]})})}function FG({post:e}){if(!e)return null;const t=(n,s=25)=>{if(!n)return"";const a=n.split(" ");return a.length<=s?n:a.slice(0,s).join(" ")+"..."};return i.jsx("div",{className:"latest-posts-section",children:i.jsxs("div",{className:"post-container",children:[i.jsx("div",{className:"image",children:i.jsx("img",{src:e.featured_image||"/images/image.png",alt:e.title,width:"800",height:"450"})}),i.jsxs("div",{className:"content-kit",children:[i.jsxs("div",{className:"main-kit-body",children:[i.jsxs("div",{className:"content-header",children:[i.jsx("div",{className:"title-container",children:i.jsxs("div",{className:"title",children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:"/images/icons/sparkle-blue.svg",width:"16",height:"16",alt:""})}),i.jsx("h4",{children:"Newest Post"})]})}),i.jsx("div",{className:"border"})]}),i.jsxs("div",{className:"content-container",children:[i.jsx("div",{className:"info-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h4",{children:e.title}),i.jsxs("div",{className:"badge-container",children:[e.categories&&e.categories.length>0?e.categories.map(n=>i.jsx("div",{className:"tag-badge",children:i.jsx("p",{children:n})},n)):e.category&&i.jsx("div",{className:"tag-badge",children:i.jsx("p",{children:e.category})}),i.jsxs("div",{className:"read-badge",children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/clock.svg",width:"24",height:"24",alt:"Read time"})}),i.jsx("p",{children:e.read_time})]})]})]})}),i.jsx("p",{children:t(e.description,25)})]})]}),i.jsxs("div",{className:"content-footer",children:[i.jsx("div",{className:"border"}),i.jsx("div",{className:"footer-container",children:i.jsxs(Ce,{href:`/${e.slug}/`,className:"button",children:[i.jsx("p",{children:"Read more"}),i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/chevron-right2.svg",width:"5",height:"8",alt:"Read"})})]})})]})]})]})})}function IG({onLoadMore:e,feedRef:t,posts:n=[],initialCategory:s=null}){const a=(C,E=10)=>{if(!C)return"";const M=C.split(" ");return M.length<=E?C:M.slice(0,E).join(" ")+"..."},l=()=>typeof window>"u"||window.innerWidth>=1440?12:5,d=()=>typeof window>"u"||window.innerWidth>=1440?6:5,[u,f]=j.useState(12);j.useEffect(()=>{f(l())},[]);const[h,p]=j.useState(s||"News"),[g,y]=j.useState(!1),x=j.useMemo(()=>{const C=new Set;n.forEach(L=>{L.categories&&Array.isArray(L.categories)&&L.categories.forEach(R=>C.add(R))});const E=Array.from(C).sort(),M=E.indexOf("News");return M>-1&&(E.splice(M,1),E.unshift("News")),E},[n]),b=j.useMemo(()=>h?n.filter(C=>C.categories&&C.categories.includes(h)):n,[n,h]),w=C=>{y(!0),p(C),f(l()),setTimeout(()=>y(!1),400)},S=()=>{f(C=>C+d()),e&&e()},N=u<b.length;return i.jsxs("div",{className:"blog-feed-section",ref:t,children:[i.jsx("div",{className:"categories-container",children:x.map(C=>i.jsx("div",{className:`button ${h===C?"active":""}`,onClick:()=>w(C),children:i.jsx("p",{children:C})},C))}),i.jsx("div",{className:"blog-posts",children:g?Array(6).fill(0).map((C,E)=>i.jsxs("div",{className:"skeleton-card",children:[i.jsx("div",{className:"skeleton-image"}),i.jsxs("div",{className:"skeleton-content",children:[i.jsx("div",{className:"skeleton-title"}),i.jsxs("div",{className:"skeleton-badges",children:[i.jsx("div",{className:"skeleton-badge"}),i.jsx("div",{className:"skeleton-badge"})]}),i.jsx("div",{className:"skeleton-text"}),i.jsx("div",{className:"skeleton-text short"}),i.jsx("div",{className:"skeleton-footer",children:i.jsx("div",{className:"skeleton-date"})})]})]},E)):b.length===0?i.jsx("div",{className:"empty-state",children:i.jsx("p",{children:h?`Sorry, there are no posts in the ${h} category yet.`:"No posts available yet."})}):i.jsxs(i.Fragment,{children:[b.slice(0,u).map(C=>i.jsxs(Ce,{className:"blog-post",href:`/${C.slug}/`,children:[i.jsx("div",{className:"image",children:i.jsx("img",{src:C.featured_image||"/images/image.png",alt:C.title,width:"800",height:"450",loading:"lazy"})}),i.jsx("div",{className:"content-kit",children:i.jsx("div",{className:"main-kit-body",children:i.jsxs("div",{className:"content-container",children:[i.jsxs("div",{className:"info-container",children:[i.jsx("div",{className:"title-container",children:i.jsx("h6",{children:C.title})}),i.jsxs("div",{className:"badge-container",children:[C.categories&&C.categories.length>0?C.categories.map(E=>i.jsx("div",{className:"tag-badge",children:i.jsx("p",{children:E})},E)):C.category&&i.jsx("div",{className:"tag-badge",children:i.jsx("p",{children:C.category})}),i.jsxs("div",{className:"read-badge",children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/clock.svg",width:"24",height:"24",alt:"Read time"})}),i.jsx("p",{children:C.read_time})]})]})]}),i.jsx("p",{children:a(C.description,10)})]})})})]},C.id)),N&&i.jsx("div",{className:"button-container",children:i.jsx("div",{className:"button",onClick:S,children:i.jsx("p",{children:"Load more"})})})]})})]})}function BG({posts:e=[],initialCategory:t=null}){const[n,s]=j.useState(!1),a=j.useRef(null);j.useEffect(()=>{const f=()=>{if(a.current){const h=document.querySelector(".header"),p=h?h.offsetHeight+10:0,g=a.current.getBoundingClientRect().top+window.pageYOffset;window.scrollY+p>g+100?s(!0):s(!1)}};return window.addEventListener("scroll",f),f(),()=>{window.removeEventListener("scroll",f)}},[]);const l=()=>{},d=()=>
421{if(a.current){const f=document.querySelector(".header"),h=f?f.offsetHeight+10:0,g=a.current.getBoundingClientRect().top+window.pageYOffset-h;window.scrollTo({top:g,behavior:"smooth"})}},u=e[0]||null;return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Fintech & Cybersecurity News and Insights",description:"Insights, news, and updates from the world of fintech. Stay ahead with the latest trends in cybersecurity, blockchain, and financial technology.",url:"/news",keywords:"fintech blog, cybersecurity news, blockchain insights, regtech updates"}),i.jsx(Kt,{}),i.jsxs("main",{className:"blog-page",children:[i.jsx(LG,{}),i.jsx(FG,{post:u}),i.jsx(IG,{posts:e,initialCategory:t,onLoadMore:l,feedRef:a}),i.jsx(Ra,{mode:"wait",children:n&&i.jsx(DG,{onClick:d})})]}),i.jsx(Xt,{})]})}const zG=Object.freeze(Object.defineProperty({__proto__:null,default:BG},Symbol.toStringTag,{value:"Module"}));function VG({post:e}){const t=e?.content_blocks||[],n=typeof window<"u"?window.location.href:"",s=[{name:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(n)}`,icon:"/images/icons/facebook.svg"},{name:"LinkedIn",url:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(n)}`,icon:"/images/icons/linked.svg"}],a=(l,d)=>{const u=l.content||{};switch(l.type){case"lg-subtitle":return i.jsxs("div",{className:"lg-subtitle-block",children:[i.jsx("h2",{children:u.title}),(u.text||u.boldText)&&i.jsx("p",{dangerouslySetInnerHTML:{__html:u.text+(u.boldText?` <span>${u.boldText}</span>`:"")}})]},d);case"ol":return i.jsx("div",{className:"ol-block",children:i.jsx("ol",{children:(u.items||[]).map((x,b)=>i.jsx("li",{children:i.jsx("p",{dangerouslySetInnerHTML:{__html:x}})},b))})},d);case"md-subtitle":return i.jsxs("div",{className:"md-subtitle-block",children:[i.jsx("h4",{children:u.title}),i.jsx("p",{dangerouslySetInnerHTML:{__html:u.text+(u.link?` <a href="${u.link.href}">${u.link.text}</a>`:"")}})]},d);case"img-video":const f=x=>{if(!x)return null;const b=x.match(/src="([^"]*youtube[^"]*)"/);return b?b[1]:x},h=x=>{if(!x)return null;const b=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,w=x.match(b);return w&&w[7].length===11?w[7]:null},p=f(u.video||u.image),g=h(p),y=!!g;return i.jsxs("div",{className:"img-video-block",children:[y?i.jsx("div",{className:"video-wrapper",children:i.jsx("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${g}`,title:u.caption||"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):i.jsx("div",{className:"image",children:i.jsx("img",{src:u.image,alt:u.caption||"Article illustration",width:"800",height:"450",loading:"lazy"})}),u.caption&&i.jsx("p",{children:u.caption})]},d);case"sm-subtitle":return i.jsxs("div",{className:"sm-subtitle-block",children:[i.jsx("h5",{children:u.title}),i.jsx("p",{dangerouslySetInnerHTML:{__html:u.text}})]},d);case"quote":return i.jsx("div",{className:"quote-block",children:i.jsxs("div",{className:"quote-container",children:[i.jsx("p",{dangerouslySetInnerHTML:{__html:u.text}}),i.jsxs("div",{className:"content-footer",children:[i.jsx("div",{className:"border"}),i.jsx("div",{className:"footer-container",children:i.jsx("div",{className:"content",children:i.jsxs("div",{className:"content-container",children:[u.avatar?i.jsx("div",{className:"avatar",children:i.jsx("img",{src:u.avatar,alt:"Author photo",width:"400",height:"400"})}):null,i.jsx("div",{className:"text-container",children:i.jsx("p",{dangerouslySetInnerHTML:{__html:u.author}})})]})})})]})]})},d);case"ul":return i.jsx("div",{className:"ul-block",children:i.jsx("ul",{children:(u.items||[]).map((x,b)=>i.jsx("li",{children:i.jsx("p",{dangerouslySetInnerHTML:{__html:x}})},b))})},d);case"text":return i.jsx("div",{className:"text-block",children:i.jsx("p",{dangerouslySetInnerHTML:{__html:u.text}})},d);default:return null}};return i.jsx("div",{className:"post-section",children:i.jsxs("div",{className:"post-container",children:[i.jsxs("div",{className:"header-container",children:[i.jsxs("div",{className:"actions-container",children:[i.jsxs(Ce,{href:"/news",className:"button",children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/chevron-right2.svg",width:"5",height:"8",alt:"",style:{transform:"rotate(-180deg)"}})}),i.jsx("p",{children:"All Posts"})]}),i.jsxs("div",{className:"socials-container",children:[i.jsxs("div",{className:"text-container",children:[i.jsx("p",{children:e?.
421share_text||"Share this post"}),i.jsx("div",{className:"separator"})]}),s.map((l,d)=>i.jsx("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",className:"icon",children:i.jsx("img",{src:l.icon,alt:`Share on ${l.name}`,width:"24",height:"24"})},d))]})]}),i.jsxs("div",{className:"title-container",children:[i.jsxs("div",{className:"badges-container",children:[i.jsx("div",{className:"tag-badge",children:i.jsx("p",{children:e?.category||"Blog"})}),i.jsxs("div",{className:"read-badge",children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/clock.svg",width:"24",height:"24",alt:""})}),i.jsx("p",{children:e?.read_time||"5 min read"})]})]}),i.jsx("h1",{children:e?.title||"Blog Post"})]})]}),i.jsx("div",{className:"featured-image",children:i.jsx("img",{src:e?.featured_image||"/images/image.png",alt:e?.title||"Blog Post",width:"1200",height:"675"})}),i.jsxs("div",{className:"post-content",children:[t.map((l,d)=>a(l,d)),i.jsxs("div",{className:"socials-container",children:[i.jsxs("div",{className:"text-container",children:[i.jsx("p",{children:e?.share_text||"Share this post"}),i.jsx("div",{className:"separator"})]}),s.map((l,d)=>i.jsx("a",{href:l.url,target:"_blank",rel:"noopener noreferrer",className:"icon",children:i.jsx("img",{src:l.icon,alt:`Share on ${l.name}`,width:"24",height:"24"})},d))]})]})]})})}const hc={label:"Insights",title:"Ideas Worth Sharing",description:"Stay informed with articles from across the BCCS network.",buttonText:"View all"};function UG({posts:e=[]}){const t=(n,s=10)=>{if(!n)return"";const a=n.split(" ");return a.length<=s?n:a.slice(0,s).join(" ")+"..."};return i.jsx("div",{className:"post-insights-section",children:i.jsxs("div",{className:"insights-container",children:[i.jsxs("div",{className:"insights-intro-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:hc.label})}),i.jsxs("div",{className:"title-container",children:[i.jsxs("div",{className:"title-content-container",children:[i.jsx("h3",{children:hc.title}),i.jsx("div",{children:i.jsx("p",{children:hc.description})})]}),i.jsx(Ce,{href:"/news",className:"button display-none display-laptop-block",children:hc.buttonText})]})]}),i.jsx("div",{className:"insights-content-container",children:e.map(n=>i.jsxs(Ce,{href:`/${n.slug}/`,className:"media-object",children:[i.jsx("div",{className:"image",children:i.jsx("img",{src:n.featured_image||"/images/image.png",alt:n.title,width:"800",height:"450",loading:"lazy"})}),i.jsx("div",{className:"content-kit",children:i.jsx("div",{className:"main-kit-body",children:i.jsxs("div",{className:"content-container",children:[i.jsxs("div",{className:"info-container",children:[i.jsx("div",{className:"title-container",children:i.jsx("h6",{children:n.title})}),i.jsxs("div",{className:"badge-container",children:[n.categories&&n.categories.map((s,a)=>i.jsx("div",{className:"badge",children:i.jsx("p",{children:s})},a)),n.read_time&&i.jsxs("div",{className:"time-badge",children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/clock.svg",width:"24",height:"24",alt:"Insights"})}),i.jsx("p",{children:n.read_time})]})]})]}),i.jsx("p",{children:t(n.description,10)})]})})})]},n.id))}),i.jsx(Ce,{href:"/news",className:"button display-laptop-none",children:hc.buttonText})]})})}function HG({post:e,latestPosts:t=[]}){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:e?.seo_title||e?.title,description:e?.seo_description||e?.description,image:e?.featured_image,isArticle:!0,url:`/${e?.slug}/`,publishedTime:e?.published_at,modifiedTime:e?.updated_at,author:e?.published_author||e?.author,keywords:e?.categories?.join(", "),wordCount:e?.word_count,categories:e?.categories}),i.jsx(Kt,{}),i.jsxs("main",{className:"blog-post-page",children:[i.jsx(VG,{post:e}),i.jsx(UG,{posts:t})]}),i.jsx(Xt,{})]})}const qG=Object.freeze(Object.defineProperty({__proto__:null,default:HG},Symbol.toStringTag,{value:"Module"})),Gt={label:"Get in Touch",title:"How Can We Help?",description:"Fill out the form and a member of our team will be in touch.",contactInfo:[{id:1,title:"Email",value:"[email protected]",link:"mailto:[email protected]"},{id:2,title:"Phone",value:"+370 680 33980",link:"tel:+37068033980"}],socials:{title:"Socials",icons:[{id:1,name:"LinkedIn",url:"https://www.linkedin.com/company/15826553",svg:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M21.3333 0C22.0406 0 22.7189 0.280951 23.219 0.781048C23.719 1.28115 24 1.95942 24 2.66667V21.3333C24 22.0406 23.719 22.7189 23.219 23.219C22.7189 23.719 22.0406 24 21.3333 24H2.66667C1.95942 24 1.28115 23.719 0.781048 23.219C0.280951 22.7189 0 22.0406 0 21.3333V2.66667C0 1.95942 0.280951 1.28115 0.781048 0.781048C1.28115 0.280951 1.95942 0 2.66667 0H21.3333ZM20.6667 20.6667V13.6C20.6667 12.4472 20.2087 11.3416 19.3936 10.5264C18.5784 9.71128 17.4728 9.25333 16.32 9.25333C15.1867 9.25333 13.8667 9.94667 13.2267 10.9867V9.50667H9.50667V20.6667H13.2267V14.0933C13.2267 13.0667 14.0533 12.2267 15.08 12.2267C15.5751 12.2267 16.0499 12.4233 16.3999 12.7734C16.75 13.1235 16.9467 13.5983 16.9467 14.0933V20.6667H20.6667ZM5.17333 7.41333C5.76742 7.41333 6.33717 7.17733 6.75725 6.75725C7.17733 6.33717 7.41333 5.76742 7.41333 5.17333C7.41333 3.93333 6.41333 2.92 5.17333 2.92C4.57571 2.92 4.00257 3.1574 3.57999 3.57999C3.1574 4.00257 2.92 4.57571 2.92 5.17333C2.92 6.41333 3.93333 7.41333 5.17333 7.41333ZM7.02667 20.6667V9.50667H3.33333V20.6667H7.02667Z",fill:"#4B4C4A"})})},{id:2,name:"Facebook",url:"https://www.facebook.com/BCCS.Cluster",svg:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",fill:"#4B4C4A"})})},{id:3,name:"YouTube",url:"https://www.youtube.com/@bccs-cluster",svg:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z",fill:"#4B4C4A"})})}]},form:{fields:{fullName:{label:"Full Name",placeholder:"John Doe"}
421,company:{label:"Company Name",placeholder:"ExampleCorp"},email:{label:"Email",placeholder:"[email protected]"},phone:{label:"Phone"},subject:{label:"Subject",placeholder:"Choose One..."},message:{label:"Message",placeholder:"Enter Your Message..."}},submitText:"Send Message",loginText:"By submitting this form you agree that we may use your information to respond to your inquiry.",loginLink:""}};function GG(){const{props:e}=rn(),[t,n]=j.useState(!1),[s,a]=j.useState(""),{data:l,setData:d,post:u,processing:f,errors:h,reset:p}=Yt({fullName:"",company:"",email:"",phone:"",subject:"",message:""}),g=y=>{y.preventDefault(),u("/contact-inquiry",{preserveScroll:!0,onSuccess:()=>{p(),a(e.flash?.success||"Your inquiry has been submitted successfully!"),n(!0)}})};return i.jsxs("div",{className:"header-section",children:[i.jsxs("div",{className:"new-header-section",children:[i.jsx("div",{className:"left-section"}),i.jsx("div",{className:"right-section"})]}),t&&i.jsx(hd,{type:"success",message:s,onClose:()=>n(!1)}),i.jsxs("div",{className:"adjustment-container",children:[i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"intro-container",children:[i.jsxs("div",{className:"intro-content",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:Gt.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:Gt.title}),i.jsx("p",{children:Gt.description})]})]}),i.jsxs("div",{className:"info-container",children:[Gt.contactInfo.map(y=>i.jsxs("div",{className:"info-item",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:y.title})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:i.jsx("a",{href:y.link,children:y.value})})})]},y.id)),i.jsxs("div",{className:"info-item",children:[i.jsx("div",{className:"title",children:i.jsx("p",{children:Gt.socials.title})}),i.jsx("div",{className:"socials-container",children:Gt.socials.icons.map(y=>i.jsx("a",{href:y.url,target:"_blank",rel:"noopener noreferrer",className:"social","aria-label":y.name,children:y.svg},y.id))})]})]})]})}),i.jsx("form",{onSubmit:g,className:"inputs-container",noValidate:!0,children:i.jsxs("div",{className:"input-container",children:[i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Gt.form.fields.fullName.label]})}),i.jsx("div",{className:`input-container ${h.fullName?"error":""}`,children:i.jsx("input",{type:"text",name:"fullName",value:l.fullName,onChange:y=>d("fullName",y.target.value),className:"input",placeholder:Gt.form.fields.fullName.placeholder})}),h.fullName&&i.jsx(ct,{message:h.fullName})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Gt.form.fields.email.label]})}),i.jsx("div",{className:`input-container ${h.email?"error":""}`,children:i.jsx("input",{type:"email",name:"email",value:l.email,onChange:y=>d("email",y.target.value),className:"input",placeholder:Gt.form.fields.email.placeholder})}),h.email&&i.jsx(ct,{message:h.email})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsx("p",{children:Gt.form.fields.phone.label})}),i.jsx("div",{className:`input-container phone-input-container ${h.phone?"error":""}`,children:i.jsx(S$,{defaultCountry:"us",value:l.phone,onChange:y=>d("phone",y),inputClassName:"input",inputProps:{"aria-label":"Phone number"}})}),h.phone&&i.jsx(ct,{message:h.phone})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Gt.form.fields.company.label]})}),i.jsx("div",{className:`input-container ${h.company?"error":""}`,children:i.jsx("input",{type:"text",name:"company",value:l.company,onChange:y=>d("company",y.target.value),className:"input",placeholder:Gt.form.fields.company.placeholder})}),h.company&&i.jsx(ct,{message:h.company})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsx("p",{children:Gt.form.fields.subject.label})}),i.jsx("div",{className:`input-container ${h.subject?"error":""}`,children:i.jsxs("select",{name:"subject",value:l.subject,onChange:y=>
421d("subject",y.target.value),className:"input","aria-label":Gt.form.fields.subject.label,children:[i.jsx("option",{value:"",children:Gt.form.fields.subject.placeholder}),i.jsx("option",{value:"General Inquiry",children:"General Inquiry"}),i.jsx("option",{value:"Technical Support",children:"Technical Support"}),i.jsx("option",{value:"Business Partnership",children:"Business Partnership"}),i.jsx("option",{value:"Other",children:"Other"})]})}),h.subject&&i.jsx(ct,{message:h.subject})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Gt.form.fields.message.label]})}),i.jsx("div",{className:`input-container ${h.message?"error":""}`,children:i.jsx("textarea",{name:"message",value:l.message,onChange:y=>d("message",y.target.value),className:"input",placeholder:Gt.form.fields.message.placeholder})}),h.message&&i.jsx(ct,{message:h.message})]}),i.jsxs("div",{className:"submit-container",children:[i.jsx("button",{type:"submit",className:"submit-button",disabled:f,children:i.jsx("p",{children:f?"Submitting...":Gt.form.submitText})}),i.jsxs("p",{children:[Gt.form.loginText," ",i.jsx("a",{href:"/login","aria-label":"Login",children:Gt.form.loginLink})]})]})]})})]})]})}const _f={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"How do we decide where to start?",content:"We usually run a discovery call, define success metrics, and propose a phased plan with clear deliverables and timelines."},{id:"item2",title:"Do I need to be a BCCS member to use BCCS services?",content:"No - you can hire the cluster as a client. Members additionally benefit from access to international networks and joint initiatives."},{id:"item3",title:"Which regions do you focus on?",content:"Primarily the EU with connections across multiple countries; our network spans 10+ countries and global partners."},{id:"item4",title:"Can you help with licensing for market entry?",content:"Yes - starting with licence scoping and carrying through full application preparation and regulator engagement."}]};function WG(){const[e,t]=j.useState({item1:!0,item2:!1,item3:!1,item4:!1}),n=s=>{t(a=>{const l={};return Object.keys(a).forEach(d=>{l[d]=!1}),l[s]=!a[s],l})};return i.jsx("div",{className:"faq-section",children:i.jsxs("div",{className:"faq-content",children:[i.jsx("div",{className:"label",children:i.jsx("p",{className:"section-label",children:_f.label})}),i.jsxs("div",{className:"faq-dropdown-content",children:[i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{className:"heading",children:_f.title}),i.jsxs("p",{className:"body",children:["Didn't find your answer? ",i.jsx(Ce,{className:"link",href:"/contact-us",children:_f.linkText})," and we'll get back to you as soon as we can."]})]}),i.jsx("div",{className:"dropdowns",children:_f.faqs.map(s=>i.jsxs("div",{className:"dropdown",onClick:()=>n(s.id),style:{cursor:"pointer"},children:[i.jsxs("div",{className:"content-container",children:[i.jsx("p",{className:"title-text",children:s.title}),i.jsx(Ra,{initial:!1,children:e[s.id]&&i.jsx(kn.p,{className:"text",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.4,ease:"easeInOut"},opacity:{duration:.3,delay:.1}}},exit:{opacity:0,height:0,transition:{opacity:{duration:.08},height:{duration:.25,delay:.08,ease:"easeInOut"}}},style:{overflow:"hidden"},children:s.content})})]}),i.jsx("div",{className:"open-close-icon",children:i.jsx(Ra,{mode:"wait",children:i.jsx(kn.img,{src:e[s.id]?"/images/icons/close.svg":"/images/icons/plus.svg",width:e[s.id]?34:24,height:e[s.id]?34:24,alt:e[s.id]?"Close":"Expand",initial:{rotate:-90,scale:.8,opacity:0}
421,animate:{rotate:0,scale:1,opacity:1,transition:{duration:.3,ease:[.4,0,.2,1]}},exit:{rotate:90,scale:.8,opacity:0,transition:{duration:.2,ease:[.4,0,1,1]}}},e[s.id]?"close":"plus")})})]},s.id))})]})]})})}function YG(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Contact the BCCS Cluster Team",description:"Contact us for any questions or inquiries. Get in touch with our team to learn more about our cybersecurity and fintech solutions.",url:"/contact-us",keywords:"contact, get in touch, support, inquiries"}),i.jsx(Kt,{}),i.jsxs("main",{className:"contact-page",children:[i.jsx(GG,{}),i.jsx(WG,{})]}),i.jsx(Xt,{})]})}const KG=Object.freeze(Object.defineProperty({__proto__:null,default:YG},Symbol.toStringTag,{value:"Module"}));function ME({blogPosts:e=[],onEdit:t,onCreate:n}){const[s,a]=j.useState(null),l=f=>{window.confirm("Are you sure you want to delete this blog post?")&&(a(f),Se.delete(`/dashboard/blog-posts/${f}`,{preserveScroll:!0,onFinish:()=>a(null),onError:()=>{alert("Failed to delete the blog post. Please try again."),a(null)}}))},d=f=>({draft:"status-badge-draft",published:"status-badge-published",archived:"status-badge-archived"})[f]||"status-badge-draft",u=f=>f?new Date(f).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"—";return i.jsxs("div",{className:"blog-posts-list",children:[i.jsxs("div",{className:"list-header",children:[i.jsxs("div",{className:"list-title-section",children:[i.jsx("h2",{children:"Blog Posts"}),i.jsx("p",{className:"list-subtitle",children:"Manage your blog content and publications"})]}),i.jsxs("button",{className:"btn-primary",onClick:n,children:[i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M8 3.33334V12.6667M3.33334 8H12.6667",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"New Post"]})]}),e.length===0?i.jsxs("div",{className:"empty-state",children:[i.jsx("div",{className:"empty-state-icon",children:i.jsx("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M12 16H36M12 24H36M12 32H24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsx("h3",{children:"No blog posts yet"}),i.jsx("p",{children:"Get started by creating your first blog post"}),i.jsx("button",{className:"btn-primary",onClick:n,children:"Create First Post"})]}):i.jsx("div",{className:"posts-table-wrapper",children:i.jsxs("table",{className:"posts-table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Title"}),i.jsx("th",{children:"Category"}),i.jsx("th",{children:"Status"}),i.jsx("th",{children:"Date"}),i.jsx("th",{children:"Author"}),i.jsx("th",{children:"Blocks"}),i.jsx("th",{children:"Actions"})]})}),i.jsx("tbody",{children:e.map(f=>i.jsxs("tr",{children:[i.jsx("td",{className:"post-title-cell",children:i.jsx("span",{className:"post-title",children:f.title||"Untitled"})}),i.jsx("td",{children:i.jsx("span",{className:"post-category",children:f.category||"—"})}),i.jsx("td",{children:i.jsx("span",{className:`status-badge ${d(f.status)}`,children:f.status||"draft"})}),i.jsx("td",{className:"post-date",children:u(f.published_at)}),i.jsx("td",{className:"post-author",children:f.author?.name||"—"}),i.jsx("td",{className:"post-blocks-count",children:f.content_blocks?.length||0}),i.jsx("td",{children:i.jsxs("div",{className:"action-buttons",children:[i.jsx("button",{className:"btn-icon btn-edit",onClick:()=>t(f.id),title:"Edit post",disabled:s===f.id,children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M11.3333 2.00004C11.5084 1.82494 11.7163 1.68605 11.9451 1.59129C12.1738 1.49653 12.419 1.44775 12.6666 1.44775C12.9143 1.44775 13.1595 1.49653 13.3882 1.59129C13.617 1.68605 13.8249 1.82494 14 2.00004C14.1751 2.17513 14.314 2.383 14.4087 2.61178C14.5035 2.84055 14.5523 3.08575 14.5523 3.33337C14.5523 3.581 14.5035 3.8262 14.4087 4.05497C14.314 4.28375 14.1751 4.49162 14 4.66671L5.00001 13.6667L1.33334 14.6667L2.33334 11L11.3333 2.00004Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsx("button",{className:"btn-icon btn-delete",onClick:()=>l(f.id),title:"Delete post",disabled:s===f.id,children:s===f.id?i.jsx("span",{className:"spinner-small"}):i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M2 4H3.33333H14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M5.33334 4.00004V2.66671C5.33334 2.31309 5.47381 1.97395 5.72386 1.7239C5.97391 1.47385 6.31305 1.33337 6.66668 1.33337H9.33334C9.68697 1.33337 10.0261 1.47385 10.2762 1.7239C10.5262 1.97395 10.6667 2.31309 10.6667 2.66671V4.00004M12.6667 4.00004V13.3334C12.6667 13.687 12.5262 14.02
42161 12.2762 14.2762C12.0261 14.5262 11.687 14.6667 11.3333 14.6667H4.66668C4.31305 14.6667 3.97391 14.5262 3.72386 14.2762C3.47381 14.0261 3.33334 13.687 3.33334 13.3334V4.00004H12.6667Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})]},f.id))})]})})]})}function It({value:e,className:t="",children:n,...s}){return i.jsx("label",{...s,className:"block font-medium text-sm text-gray-700 "+t,children:e||n})}function XG({items:e=[],onChange:t}){const n=()=>{t([...e,""])},s=l=>{const d=e.filter((u,f)=>f!==l);t(d)},a=(l,d)=>{const u=[...e];u[l]=d,t(u)};return i.jsxs("div",{className:"list-items-input",children:[e.map((l,d)=>i.jsxs("div",{className:"list-item-row",children:[i.jsxs("span",{className:"list-item-number",children:[d+1,"."]}),i.jsx("input",{type:"text",className:"form-input list-item-input",value:l,onChange:u=>a(d,u.target.value),placeholder:`Item ${d+1}`}),i.jsx("button",{type:"button",className:"btn-icon btn-remove",onClick:()=>s(d),title:"Remove item",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]},d)),i.jsxs("button",{type:"button",className:"btn-secondary btn-add-item",onClick:n,children:[i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M8 3.33334V12.6667M3.33334 8H12.6667",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"Add Item"]})]})}const ZG=[{value:"lg-subtitle",label:"Large Subtitle"},{value:"md-subtitle",label:"Medium Subtitle"},{value:"sm-subtitle",label:"Small Subtitle"},{value:"ol",label:"Ordered List"},{value:"ul",label:"Unordered List"},{value:"quote",label:"Quote"},{value:"img-video",label:"Image/Video"},{value:"text",label:"Text"}];function QG({blocks:e=[],onChange:t,errors:n={}}){const[s,a]=j.useState(e.map((x,b)=>b)),l=()=>{const x={type:"text",content:{text:""},order:e.length};t([...e,x]),a([...s,e.length])},d=x=>{const b=e.filter((w,S)=>S!==x).map((w,S)=>({...w,order:S}));t(b),a(s.filter(w=>w!==x))},u=(x,b)=>{const w=b==="up"?x-1:x+1;if(w<0||w>=e.length)return;const S=[...e];[S[x],S[w]]=[S[w],S[x]],S.forEach((N,C)=>N.order=C),t(S)},f=(x,b)=>{const w=[...e],S=g(b);w[x]={...w[x],type:b,content:S},t(w)},h=(x,b,w)=>{const S=[...e];S[x]={...S[x],content:{...S[x].content,[b]:w}},t(S)},p=x=>{s.includes(x)?a(s.filter(b=>b!==x)):a([...s,x])},g=x=>{switch(x){case"lg-subtitle":case"md-subtitle":case"sm-subtitle":return{title:"",text:"",boldText:"",link:{text:"",href:""}};case"ol":case"ul":return{items:[""]};case"quote":return{text:"",author:""};case"img-video":return{image:"",caption:""};case"text":default:return{text:""}}},y=(x,b)=>{const w=x.content||{},S=n[`content_blocks.${b}.content`]||{};switch(x.type){case"lg-subtitle":return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Title *"}),i.jsx("input",{type:"text",className:`form-input ${S.title?"error":""}`,value:w.title||"",onChange:N=>h(b,"title",N.target.value),placeholder:"Enter subtitle title"}),S.title&&i.jsx(ct,{message:S.title})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Text *"}),i.jsx("textarea",{className:`form-textarea ${S.text?"error":""}`,value:w.text||"",onChange:N=>h(b,"text",N.target.value),placeholder:"Enter text content",rows:"4"}),S.text&&i.jsx(ct,{message:S.text})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Bold Text (optional)"}),i.jsx("input",{type:"text",className:"form-input",value:w.boldText||"",onChange:N=>h(b,"boldText",N.target.value),placeholder:"Text to highlight in bold"})]})]});case"md-subtitle":return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Title *"}),i.jsx("input",{type:"text",className:`form-input ${S.title?"error":""}`,value:w.title||"",onChange:N=>h(b,"title",N.target.value),placeholder:"Enter subtitle title"}),S.title&&i.jsx(ct,{message:S.title})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Text *"}),i.jsx("textarea",{className:`form-textarea ${S.text?"error":""}`,value:w.text||"",onChange:N=>h(b,"text",N.target.value),placeholder:"Enter text content",rows:"4"}),S.text&&i.jsx(ct,{message:S.text})]}),i.jsxs("div",{className:"form-field-group",children:[i.jsx(It,{value:"Link (optional)"}),i.jsxs("div",{className:"form-inline-fields",children:[i.jsx("input",{type:"text",className:"form-input",value:w.link?.text||"",onChange:N=>h(b,"link",{...w.link||{},text:N.target.value}),placeholder:"Link text"}),i.jsx("input",{type:"text",className:"form-input",value:w.link?.href||"",onChange:N=>h(b,"link",{...w.link||{},href:N.target.value}),placeholder:"Link URL"})]})]})]});case"sm-subtitle":return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Title *"}),i.jsx("input",{type:"text",className:`form-input ${S.title?"error":""}`,value:w.title||"",onChange:N=>h(b,"title",N.target.value),placeholder:"Enter subtitle title"}),S.title&&i.jsx(ct,{message:S.title})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Text *"}),i.jsx("textarea",{className:`form-textarea ${S.text?"error":""}`,value:w.text||"",onChange:N=>h(b,"text",N.target.value),placeholder:"Enter text content",rows:"3"}),S.text&&i.jsx(ct,{message:S.text})]})]});case"ol":case"ul":return i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"List Items *"}),i.jsx(XG,{items:w.items||[""],onChange:N=>h(b,"items",N)}),S.items&&i.jsx(ct,{message:S.items})]});case"quote":return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Quote Text *"}),i.jsx("textarea",{className:`form-textarea ${S.text?"error":""}`,value:w.text||"",onChange:N=>h(b,"text",N.target.value),placeholder:"Enter quote text",rows:"3"}),S.text&&i.jsx(ct,{message:S.text})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Author *"}),i.jsx("input",{type:"text",className:`form-input ${S.author?"error":""}`,value:w.author||"",onChange:N=>h(b,"author",N.target.value),placeholder:"Quote author"}),S.author&&i.jsx(ct,{message:S.author})]})]});case"img-video":return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Image/Video Path *"}),i.jsx("input",{type:"text",className:`form-input ${S.image?"error":""}`,value:w.image||"",onChange:N=>h(b,"image",N.target.value),placeholder:"/images/blog/image.jpg"}),S.image&&i.jsx(ct,{message:S.image})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Caption"}),i.jsx("input",{type:"text",className:"form-input",value:w.caption||"",onChange:N=>h(b,"caption",N.target.value),placeholder:"Image caption"})]})]});case"text":default:return i.jsxs("div",{className:"form-field",children:[i.jsx(It,{value:"Text Content *"}),i.jsx("textarea",{className:`form-textarea ${S.text?"error":""}`,value:w.text||"",onChange:N=>h(b,"text",N.target.value),placeholder:"Enter text content",rows:"4"}),S.text&&i.jsx(ct,{message:S.text})]})}};return i.jsxs("div",{className:"content-blocks-repeater",children:[e.length===0?i.jsx("div",{className:"empty-blocks-state",children:i.jsx("p",{children:"No content blocks yet. Add your first block to get started."})}):i.jsx("div",{className:"blocks-list",children:e.map((x,b)=>{const w=s.includes(b);return i.jsxs("div",{className:"content-block-item",children:[i.jsxs("div",{className:"block-header",children:[i.jsxs("div",{className:"block-header-left",children:[i.jsx("button",{type:"button",className:"block-toggle",onClick:()=>p(b),children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`toggle-icon ${w?"expanded":""}`,children:i.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsxs("span",{className:"block-number",children:["Block ",b+1]}),i.jsx("select",{className:"block-type-selector",value:x.type,onCh
421ange:S=>f(b,S.target.value),children:ZG.map(S=>i.jsx("option",{value:S.value,children:S.label},S.value))})]}),i.jsxs("div",{className:"block-actions",children:[i.jsx("button",{type:"button",className:"btn-icon",onClick:()=>u(b,"up"),disabled:b===0,title:"Move up",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M12 10L8 6L4 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsx("button",{type:"button",className:"btn-icon",onClick:()=>u(b,"down"),disabled:b===e.length-1,title:"Move down",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.jsx("button",{type:"button",className:"btn-icon btn-delete",onClick:()=>d(b),title:"Delete block",children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M2 4H3.33333H14M5.33334 4.00004V2.66671C5.33334 2.31309 5.47381 1.97395 5.72386 1.7239C5.97391 1.47385 6.31305 1.33337 6.66668 1.33337H9.33334C9.68697 1.33337 10.0261 1.47385 10.2762 1.7239C10.5262 1.97395 10.6667 2.31309 10.6667 2.66671V4.00004M12.6667 4.00004V13.3334C12.6667 13.687 12.5262 14.0261 12.2762 14.2762C12.0261 14.5262 11.687 14.6667 11.3333 14.6667H4.66668C4.31305 14.6667 3.97391 14.5262 3.72386 14.2762C3.47381 14.0261 3.33334 13.687 3.33334 13.3334V4.00004H12.6667Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),w&&i.jsx("div",{className:"block-fields",children:y(x,b)})]},b)})}),i.jsxs("button",{type:"button",className:"btn-secondary btn-add-block",onClick:l,children:[i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M8 3.33334V12.6667M3.33334 8H12.6667",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"Add Content Block"]})]})}function OE({post:e,onCancel:t}){const n=!!e,{data:s,setData:a,post:l,put:d,processing:u,errors:f,reset:h}=Yt({title:e?.title||"",slug:e?.slug||"",description:e?.description||"",category:e?.category||"",published_author:e?.published_author||"",featured_image:e?.featured_image||"",read_time:e?.read_time||"",status:e?.status||"draft",content_blocks:e?.content_blocks||[]});j.useEffect(()=>{e&&h({title:e.title||"",slug:e.slug||"",description:e.description||"",category:e.category||"",published_author:e.published_author||"",featured_image:e.featured_image||"",read_time:e.read_time||"",status:e.status||"draft",content_blocks:e.content_blocks||[]})},[e]);const p=g=>{g.preventDefault(),n?d(`/dashboard/blog-posts/${e.id}`,{preserveScroll:!0,onSuccess:()=>{alert("Blog post updated successfully!")},onError:()=>{alert("Failed to update blog post. Please check the errors.")}}):l("/dashboard/blog-posts",{preserveScroll:!0,onSuccess:()=>{alert("Blog post created successfully!"),h()},onError:()=>{alert("Failed to create blog post. Please check the errors.")}})};return i.jsxs("div",{className:"blog-post-editor",children:[i.jsxs("div",{className:"editor-header",children:[i.jsxs("div",{className:"editor-title-section",children:[i.jsx("h2",{children:n?"Edit Blog Post":"Create New Blog Post"}),i.jsx("p",{className:"editor-subtitle",children:n?"Update your blog post content and settings":"Fill in the details to create a new blog post"})]}),i.jsx("button",{type:"button",className:"btn-secondary",onClick:t,disabled:u,children:"Back to List"})]}),i.jsxs("form",{onSubmit:p,className:"editor-form",children:[i.jsxs("div",{className:"post-metadata-section",children:[i.jsx("h3",{className:"section-title",children:"Post Metadata"}),i.jsxs("div",{className:"form-grid",children:[i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"title",value:"Title *"}),i.jsx("input",{id:"title",type:"text",className:`form-input ${f.title?"error":""}`,value:s.title,onChange:g=>a("title",g.target.value),placeholder:"Enter post title",autoFocus:!0}),f.title&&i.jsx(ct,{message:f.title})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"slug",value:"Slug *"}),i.jsx("input",{id:"slug",type:"text",className:`form-input ${f.slug?"error":""}`,value:s.slug,onChange:g=>a("slug",g.target.value),placeholder:"auto-generated-from-title"}),f.slug&&i.jsx(ct,{message:f.slug})]}),i.jsxs("div",{className:"form-field",style:{gridColumn:"1 / -1"},children:[i.jsx(It,{htmlFor:"description",value:"Description *"}),i.jsx("textarea",{id:"description",className:`form-input ${f.description?"error":""}`,value:s.description,onChange:g=>a("description",g.target.value),placeholder:"Brief description of the post",rows:"3"}),f.description&&i.jsx(ct,{message:f.description})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"category",value:"Category *"}),i.jsx("input",{id:"category",type:"text",className:`form-input ${f.category?"error":""}`,value:s.category,onChange:g=>a("category",g.target.value),placeholder:"e.g., Technology, Finance"}),f.category&&i.jsx(ct,{message:f.category})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"published_author",value:"Published Author *"}),i.jsx("input",{id:"published_author",type:"text",className:`form-input ${f.published_author?"error":""}`,value:s.published_author,onChange:g=>a("published_author",g.target.value),placeholder:"Author name to display on blog post"}),f.published_author&&i.jsx(ct,{message:f.published_author})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"featured_image",value:"Featured Image URL *"}),i.jsx("input",{id:"featured_image",type:"text",className:`form-input ${f.featured_image?"error":""}`,value:s.featured_image,onChange:g=>a("featured_image",g.target.value),placeholder:"/images/blog/post-image.jpg"}),f.featured_image&&i.jsx(ct,{message:f.featured_image})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"read_time",value:"Read Time *"}),i.jsx("input",{id:"read_time",type:"text",className:`form-input ${f.read_time?"error":""}`,value:s.read_time,onChange:g=>a("read_time",g.target.value),placeholder:"5 min read"}),f.read_time&&i.jsx(ct,{message:f.read_time})]}),i.jsxs("div",{className:"form-field",children:[i.jsx(It,{htmlFor:"status",value:"Status *"}),i.jsxs("select",{id:"status",className:`form-select ${f.status?"error":""}`,value:s.status,onChange:g=>a("status",g.target.value),children:[i.jsx("option",{value:"draft",children:"Draft"}),i.jsx("option",{value:"published",children:"Published"}),i.jsx("option",{value:"archived",children:"Archived"})]}),f.status&&i.jsx(ct,{message:f.status})]})]})]}),i.jsxs("div",{className:"content-blocks-section",children:[i.jsxs("div",{className:"section-header",children:[i.jsx("h3",{className:"section-title",children:"Content Blocks"}),i.jsx("p",{className:"section-description",children:"Add and arrange content blocks to build your post"})]}),i.jsx(QG,{blocks:s.content_blocks,onChange:g=>a("content_blocks",g),errors:f})]}),i.jsxs("div",{className:"form-actions",children:[i.jsx("button",{type:"button",className:"btn-secondary",onClick:t,disabled:u,children:"Cancel"}),i.jsx("button",{type:"submit",className:"btn-primary",disabled:u,children:u?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"spinner-small"}),n?"Updating...":"Creating..."]}):i.jsx(i.Fragment,{children:n?"Update Post":"Create Post"})})]})]})]})}function JG({auth:e,blogPosts:t=[],editorMode:n=!1,editingPost:s=null}){console.log("=== DASHBOARD PROPS ==="),console.log("editorMode:",n),console.log("editingPost:",s),console.log("blogPosts:",t),console.log("======================");const[a,l]=j.useState(n?"blog-posts":"overview"),d=[{name:"Overview",id:"overview"},{name:"Blog Posts",id:"blog-posts"}];return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Dashboard",description:"Your BCCS dashboard - Access your account and manage your fintech membership.",url:"/dashboard",keywords:"dashboard, account, member area"}),i.jsxs("div",{className:"dashboard-page",children:[i.jsxs("aside",{className:"dashboard-sidebar",children:[i.jsx("div",{className:"sidebar-header",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"sidebar-logo"})}),i.jsx("nav",{className:"sidebar-nav",children:d.map(u=>i.jsx("button",{onClick:()=>l(u.id),className:`nav-item ${a===u.id?"active":""}`,children:i.jsx("span",{className:"nav-text",children:u.name})},u.id))}),i.jsxs("div",{className:"sidebar-footer",children:[i.jsxs("div",{className:"user-info",children:[i.jsx("div",{className:"user-avatar",children:(e?.user?.name?.[0]||e?.user?.email?.[0]||"U").toUpperCase()}),i.jsxs("div",{className:"user-details",children:[i.jsx("p",{className:"user-name",children:e?.user?.name||"User"}),i.jsx("p",{className:"user-email",children:e?.user?.email})]})]}),i.jsx(Ce,{href:"/logout",method:"post",as:"button",className:"logout-button",children:"Logout"})]})]}),i.jsxs("main",{className:"dashboard-content",children:[i.jsxs("div",{className:"content-header",children:[i.jsxs("h1",{children:["Welcome back, ",e?.user?.name||"User","!"]}),i.jsx("p",{children:"Here's what's happening with your account today."})]}),a==="overview"&&i.jsx("div",{className:"content-body",children:i.jsxs("div",{className:"info-section",children:[i.jsx("h2",{children:"Account Information"}),i.jsxs("div",{className:"info-card",children:[i.jsxs("div",{className:"info-row",children:[i.jsx("span",{className:"info-label",children:"Email"}),i.jsx("span",{className:"info-value",children:e?.user?.email})]}),i.jsxs("div",{className:"info-row",children:[i.jsx("span",{className:"info-label",children:"Name"}),i.jsx("span",{className:"info-value",children:e?.user?.name||"Not set"})]}),i.jsxs("div",{className:"info-row",children:[i.jsx("span",{className:"info-label",children:"Role"}),i.jsx("span",{className:"info-value",children:e?.user?.role||"user"})]})]})]})}),a==="blog-posts"&&i.jsx("div",{className:"content-body",children:n?i.jsx(OE,{post:s,onCancel:()=>Se.visit("/dashboard")}):i.jsx(ME,{blogPosts:t,onEdit:u=>Se.visit(`/dashboard/blog-posts/${u}/edit`),onCreate:()=>Se.visit("/dashboard/blog-posts/create")})})]})]})]})}const eW=Object.freeze(Object.defineProperty({__proto__:null,default:JG},Symbol.toStringTag,{value:"Module"}));function Nt({name:e,className:t="",size:n}){const s=n?{width:n,height:n}:void 0;return i.jsx("svg",{className:t,style:s,children:i.jsx("use",{href:`/images/icons/dashboard-icons.svg#icon-${e}`})})}const jf=[{label:"Directory",icon:"compass",route:"dashboard.directory",roles:null,tiers:null,group:"standalone",needsCompany:!0},{label:"Profile",icon:"building",route:"dashboard.company",roles:null,tiers:null,group:"company",needsCompany:!0},{label:"Team",icon:"users",route:"dashboard.team",roles:null,tiers:["silver","gold"],group:"company",needsCompany:!0},{label:"Directory",icon:"compass",route:"dashboard.directory",roles:["admin"],tiers:null,group:"admin",needsCompany:!1}
421,{label:"Teams",icon:"users",route:"dashboard.team",roles:["admin"],tiers:null,group:"admin",needsCompany:!1},{label:"Blog Posts",icon:"briefcase",route:"dashboard.blog-posts.index",roles:["admin"],tiers:null,group:"admin",needsCompany:!1},{label:"Waiting list",icon:"clock",route:"dashboard.waitlist.index",roles:["admin"],tiers:null,group:"admin",needsCompany:!1},{label:"Newsletter",icon:"mail",route:"dashboard.newsletter.index",roles:["admin"],tiers:null,group:"admin",needsCompany:!1},{label:"Activity",icon:"eye",route:"dashboard.activity.index",roles:["admin"],tiers:null,group:"admin",needsCompany:!1}];function RE({collapsed:e,onToggle:t,sidebarWidth:n=260,transition:s={duration:.25}}){const{auth:a,company:l,has_connections:d}=rn().props,u=a?.user?.roles??[],f=l?.tier??"bronze",h=a?.user?.is_platform_admin,p=!!l,g={has_connections:!!d};typeof window<"u"&&typeof document<"u"&&localStorage.getItem("dark-mode")==="true"&&!document.body.classList.contains("dark")&&document.body.classList.add("dark"),typeof document<"u"&&document.body.classList.contains("dark");function y(O){return!(O.needsCompany&&!p||O.tiers&&!h&&!O.tiers.includes(f)||O.roles&&!O.roles.some(k=>u.includes(k))||O.requires&&!g[O.requires])}const x=rn().url,[b,w]=j.useState(null);function S(O,k){if(!e)return;const B=O.currentTarget.getBoundingClientRect();w({label:k,left:B.right+8,top:B.top+B.height/2})}function N(){w(null)}function C(O){if(!y(O))return null;const k=O.route?route(O.route):O.href,B=k.replace(/^https?:\/\/[^/]+/,""),I=B==="/dashboard"?x===B:x===B||x.startsWith(B+"/");return i.jsxs(Ce,{href:k,className:`sidebar__nav-item${I?" sidebar__nav-item--active":""}`,onMouseEnter:V=>S(V,O.label),onMouseLeave:N,children:[i.jsx(Nt,{name:O.icon,className:"sidebar__nav-icon"}),i.jsx("span",{className:"sidebar__nav-text",children:O.label})]},O.label+O.group)}const E=jf.filter(O=>O.group==="standalone"),M=jf.filter(O=>O.group==="company"),L=jf.filter(O=>O.group==="other"),R=jf.filter(O=>O.group==="admin");return i.jsxs(kn.aside,{className:`sidebar${e?" sidebar--collapsed":""}`,animate:{width:n},transition:s,style:{width:n},children:[i.jsxs("div",{className:"sidebar__company",children:[i.jsx("div",{className:"sidebar__company-logo",children:l?.logo_url?i.jsx("img",{src:l.logo_url,alt:l.name}):h?"A":l?.name?.charAt(0).toUpperCase()??"?"}),i.jsx("span",{className:"sidebar__company-name",children:h?"BCCS Admin":l?.name??"Your Company"})]}),i.jsxs("nav",{className:"sidebar__nav","aria-label":"Main navigation",children:[E.map(C),p&&M.some(y)&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"sidebar__nav-divider"}),i.jsxs("div",{className:"sidebar__nav-section",children:[i.jsx("div",{className:"sidebar__nav-label",children:"Your company"}),M.map(C)]})]}),p&&L.some(y)&&i.jsx(i.Fragment,{children:L.map(C)}),R.some(y)&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"sidebar__nav-divider"}),i.jsxs("div",{className:"sidebar__nav-section",children:[i.jsx("div",{className:"sidebar__nav-label",children:"Admin"}),R.map(C)]})]})]}),i.jsx("div",{className:"sidebar__footer",children:i.jsx("button",{type:"button",className:"sidebar__toggle",onClick:t,"aria-label":"Toggle sidebar",children:i.jsx(Nt,{name:e?"panel-left-open":"panel-left-close",className:"sidebar__footer-icon sidebar__toggle-icon"})})}),e&&b&&i.jsx("span",{className:"sidebar__tooltip sidebar__tooltip--visible",style:{left:b.left,top:b.top},children:b.label})]})}RE.propTypes={collapsed:q.bool.isRequired,onToggle:q.func.isRequired,sidebarWidth:q.number,transition:q.object};function PE({notifications:e=[]}){const{auth:t}=rn().props,n=t?.user,[s,a]=j.useState(!1),[l,d]=j.useState(!1),u=j.useRef(null),f=j.useRef(null);j.useEffect(()=>{function y(x){u.current&&!u.current.contains(x.target)&&a(!1),f.current&&!f.current.contains(x.target)&&d(!1)}return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);function h(){Se.post(route("logout"))}const p=n?.name?n.name.split(" ")[0]:"User",g=n?.name?n.name.split(" ").map(y=>y[0]).slice(0,2).join("").toUpperCase():"??";return e&&e.filter(y=>y.unread).length,i.jsxs("header",{className:"header",children:[i.jsx(Ce,{href:"/",className:"header__logo",children:i.jsx("img",{className:"header__logo-img",src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS"})}),i.jsxs("div",{className:"header__right",children:[!1,i.jsxs("span",{className:"header__greeting",children:["Welcome back, ",p]}),i.jsxs("div",{className:"header__avatar-wrapper",ref:u,children:[i.jsx("button",{type:"button",className:"header__avatar","aria-label":"User menu",onClick:()=>a(y=>!y),children:n?.avatar_url?i.jsx("img",{src:n.avatar_url,alt:""}):g}),i.jsxs("nav",{className:`header__dropdown${s?" header__dropdown--open":""}`,"aria-label":"User menu",children:[i.jsxs("button",{type:"button",className:"header__dropdown-item",onClick:()=>{a(!1),Se.visit(route("dashboard.profile"))},children:[i.jsx(iV,{size:16,strokeWidth:1.5,className:"header__dropdown-icon"}),"Profile"]}),i.jsxs("button",{type:"button",className:"header__dropdown-item",onClick:()=>{a(!1),Se.visit(route("dashboard.settings"))},children:[i.jsx(qz,{size:16,strokeWidth:1.5,className:"header__dropdown-icon"}
421),"Settings"]}),i.jsx("div",{className:"header__dropdown-divider"}),i.jsxs("button",{type:"button",className:"header__dropdown-item",onClick:h,children:[i.jsx(Rz,{size:16,strokeWidth:1.5,className:"header__dropdown-icon"}),"Log out"]})]})]})]})]})}PE.propTypes={notifications:q.arrayOf(q.shape({title:q.string.isRequired,description:q.string,time:q.string,severity:q.oneOf(["critical","action","info"]),unread:q.bool,actionLabel:q.string,actionHref:q.string,actionRoute:q.string,actionIcon:q.oneOf(["external","download"])}))};const tW=260,nW=72,TS={duration:.25,ease:[.4,0,.2,1]};function os({children:e}){const[t,n]=j.useState(()=>typeof window<"u"&&localStorage.getItem("sidebar-collapsed")==="true");j.useEffect(()=>(document.body.classList.remove("dark"),()=>{localStorage.getItem("darkMode")==="true"&&document.body.classList.add("dark")}),[]);function s(){n(l=>{const d=!l;return localStorage.setItem("sidebar-collapsed",d?"true":"false"),d})}const a=t?nW:tW;return i.jsxs(kn.div,{className:`dashboard-layout${t?" dashboard-layout--collapsed":""}`,animate:{gridTemplateColumns:`${a}px 1fr`},transition:TS,style:{gridTemplateColumns:`${a}px 1fr`},children:[i.jsxs(Lm,{children:[i.jsx("title",{children:"Dashboard | BCCS"}),i.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),i.jsx(PE,{}),i.jsx(RE,{collapsed:t,sidebarWidth:a,transition:TS,onToggle:s}),i.jsx("main",{className:"main-content",children:e})]})}const sW={"user.login":"Login","team.invited":"Team","team.invite_accepted":"Team","team.invite_revoked":"Team","team.role_changed":"Team","team.deactivated":"Team","team.reactivated":"Team","team.removed":"Team","team.ownership_transferred":"Team","membership.registration_submitted":"Membership","membership.request_approved":"Membership","membership.request_rejected":"Membership","membership.upgrade_requested":"Membership","membership.downgrade_scheduled":"Membership","membership.resubscribe_requested":"Membership","membership.cancelled":"Membership","admin.suspended":"Admin","admin.renewed":"Admin","admin.revoked":"Admin","admin.reinstated":"Admin","admin.dates_changed":"Admin","intro.requested":"Intro","intro.approved":"Intro","intro.rejected":"Intro","inquiry.contact_submitted":"Inquiry","inquiry.waitlist_joined":"Inquiry","inquiry.newsletter_subscribed":"Inquiry"},AS=[{value:"user",label:"Login"},{value:"team",label:"Team"},{value:"membership",label:"Membership"},{value:"admin",label:"Admin"},{value:"intro",label:"Intro"},{value:"inquiry",label:"Inquiry"}];function Db({activities:e={data:[],current_page:1,last_page:1,total:0,per_page:30},companies:t=[],filters:n={company_id:null,type:[],date_from:null,date_to:null}}){function s(u){Se.get(route("dashboard.activity.index"),u,{preserveState:!0,preserveScroll:!0,only:["activities","filters"]})}function a(u){s({...l(),page:u})}function l(){const u={};return n.company_id&&(u.company_id=n.company_id),n.type?.length&&(u.type=n.type),n.date_from&&(u.date_from=n.date_from),n.date_to&&(u.date_to=n.date_to),u}const d=!!(n.company_id||n.type?.length||n.date_from||n.date_to);return i.jsxs("div",{className:"team activity",children:[i.jsx("div",{className:"team__header",children:i.jsx("h1",{className:"page__title",children:"Activity"})}),i.jsxs("section",{className:"team__filters",children:[i.jsx(Am,{value:n.company_id?String(n.company_id):"",onChange:u=>s({...l(),company_id:u||void 0}),children:i.jsxs("div",{className:"team__filter",children:[i.jsxs(ud,{className:`team__filter-btn${n.company_id?" team__filter-btn--active":""}`,children:[i.jsx("span",{children:n.company_id?`Company: ${t.find(u=>String(u.id)===String(n.company_id))?.name??n.company_id}`:"All companies"}),i.jsx(id,{size:14,strokeWidth:1.5})]}),i.jsxs(fd,{anchor:"bottom start",className:"team__filter-options",children:[i.jsx(Go,{value:"",className:"team__filter-option",children:({selected:u})=>i.jsxs(i.Fragment,{children:[i.jsx("span",{className:`team__filter-checkbox${u?" team__filter-checkbox--checked":""}`,children:u&&i.jsx(ka,{size:12,strokeWidth:2.5})}),i.jsx("span",{children:"All companies"})]})}),t.map(u=>i.jsx(Go,{value:String(u.id),className:"team__filter-option",children:({selected:f})=>i.jsxs(i.Fragment,{children:[i.jsx("span",{className:`team__filter-checkbox${f?" team__filter-checkbox--checked":""}`,children:f&&i.jsx(ka,{size:12,strokeWidth:2.5})}),i.jsx("span",{children:u.name})]})},u.id))]})]})}),i.jsx(Am,{value:n.type??[],onChange:u=>s({...l(),type:u}),multiple:!0,children:i.jsxs("div",{className:"team__filter",children:[i.jsxs(ud,{className:`team__filter-btn${n.type?.length?" team__filter-btn--active":""}`,children:[i.jsx("span",{children:n.type?.length?n.type.length===1?`Type: ${AS.find(u=>u.value===n.type[0])?.label??n.type[0]}`:`Type (${n.type.length})`:"Type"}),i.jsx(id,{size:14,strokeWidth:1.5})]}
421),i.jsx(fd,{anchor:"bottom start",className:"team__filter-options",children:AS.map(u=>i.jsx(Go,{value:u.value,className:"team__filter-option",children:({selected:f})=>i.jsxs(i.Fragment,{children:[i.jsx("span",{className:`team__filter-checkbox${f?" team__filter-checkbox--checked":""}`,children:f&&i.jsx(ka,{size:12,strokeWidth:2.5})}),i.jsx("span",{children:u.label})]})},u.value))})]})}),i.jsxs("div",{className:"team__filter-dates",children:[i.jsx("label",{className:"team__filter-date-label",htmlFor:"activity-from",children:"Date"}),i.jsx("input",{id:"activity-from",type:"date",className:`team__filter-date${n.date_from?" team__filter-date--active":""}`,value:n.date_from??"",onChange:u=>s({...l(),date_from:u.target.value||void 0})}),i.jsx("span",{className:"team__filter-date-sep",children:"–"}),i.jsx("input",{id:"activity-to",type:"date","aria-label":"Date (to)",className:`team__filter-date${n.date_to?" team__filter-date--active":""}`,value:n.date_to??"",onChange:u=>s({...l(),date_to:u.target.value||void 0})})]}),d&&i.jsx("button",{type:"button",className:"team__filter-clear",onClick:()=>s({}),children:"Clear filters"}),i.jsx("a",{href:route("dashboard.activity.download",l()),className:"activity__download-btn",children:"Download PDF"})]}),i.jsx("section",{className:"team__table-wrap",children:e.data.length===0?i.jsx("div",{style:{textAlign:"center",padding:"var(--space-6)",color:"var(--color-placeholder)"},children:"No activity recorded yet."}):i.jsxs("table",{className:"team__table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"When"}),i.jsx("th",{children:"Company"}),i.jsx("th",{children:"Type"}),i.jsx("th",{children:"What happened"})]})}),i.jsx("tbody",{children:e.data.map(u=>i.jsxs("tr",{children:[i.jsx("td",{className:"activity__date",children:u.created_at}),i.jsx("td",{children:u.company_name??"—"}),i.jsx("td",{children:i.jsx("span",{className:`team__badge activity__badge--${(u.event??"").split(".")[0]}`,children:sW[u.event]??"Other"})}),i.jsx("td",{className:"activity__description",children:u.description})]},u.id))})]})}),e.last_page>1&&i.jsxs("nav",{className:"waitlist__pagination","aria-label":"Pagination",children:[i.jsxs("span",{children:["Showing ",(e.current_page-1)*e.per_page+1,"–",Math.min(e.current_page*e.per_page,e.total)," of ",e.total]}),i.jsxs("div",{className:"waitlist__pagination-controls",children:[e.current_page>1?i.jsx("button",{type:"button",className:"waitlist__pagination-btn",onClick:()=>a(e.current_page-1),children:"← Previous"}):i.jsx("span",{className:"waitlist__pagination-btn waitlist__pagination-btn--disabled","aria-disabled":"true",children:"← Previous"}),i.jsxs("span",{children:["Page ",e.current_page," of ",e.last_page]}),e.current_page<e.last_page?i.jsx("button",{type:"button",className:"waitlist__pagination-btn",onClick:()=>a(e.current_page+1),children:"Next →"}):i.jsx("span",{className:"waitlist__pagination-btn waitlist__pagination-btn--disabled","aria-disabled":"true",children:"Next →"})]})]})]})}Db.layout=e=>i.jsx(os,{breadcrumbs:[{label:"Dashboard",href:"/dashboard"},{label:"Activity"}],children:e});Db.propTypes={activities:q.shape({data:q.array,current_page:q.number,last_page:q.number,total:q.number}),companies:q.arrayOf(q.shape({id:q.number,name:q.string})),filters:q.shape({company_id:q.oneOfType([q.number,q.string]),type:q.arrayOf(q.string),date_from:q.string,date_to:q.string})};const iW=Object.freeze(Object.defineProperty({__proto__:null,default:Db},Symbol.toStringTag,{value:"Module"}));function rW(e,t){if(!e)return"—";const n=new Date(e);if(Number.isNaN(n.getTime()))return"—";try{return n.toLocaleString(void 0,t?{timeZone:t}:void 0)}catch{return n.toLocaleString()}}const aW={cta:"Together We Can Do More section",footer:"Footer"};
421function Lb({subscribers:e}){const t=rn().props.auth?.user?.display_timezone,n=e,s=n?.data??[],a=n?.total??0,l=n?.from??0,d=n?.to??0,u=n?.current_page??1,f=n?.last_page??1,h=n?.prev_page_url,p=n?.next_page_url;return i.jsxs("div",{className:"dashboard-page",children:[i.jsx(Lm,{title:"Newsletter"}),i.jsxs("main",{className:"dashboard-content",children:[i.jsxs("div",{className:"content-header",children:[i.jsx("h1",{className:"page__title",children:"Newsletter"}),i.jsxs("p",{className:"waitlist__count",children:[a," ",a===1?"subscriber":"subscribers"]}),a>0&&i.jsx("a",{href:route("dashboard.newsletter.export"),className:"waitlist__pagination-btn",download:!0,children:"Download CSV"})]}),i.jsxs("div",{className:"content-body",children:[i.jsx("section",{className:"waitlist__table-wrap",children:s.length===0?i.jsx("div",{className:"waitlist__empty",children:"No newsletter subscribers yet."}):i.jsxs("table",{className:"waitlist__table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Email"}),i.jsx("th",{children:"Signed up from"}),i.jsx("th",{children:"IP address"}),i.jsx("th",{children:"Subscribed"})]})}),i.jsx("tbody",{children:s.map(g=>i.jsxs("tr",{children:[i.jsx("td",{title:g.email,children:g.email}),i.jsx("td",{children:aW[g.source]??(g.source||i.jsx(i.Fragment,{children:"—"}))}),i.jsx("td",{children:g.ip_address||i.jsx(i.Fragment,{children:"—"})}),i.jsx("td",{children:rW(g.created_at,t)})]},g.id))})]})}),f>1&&i.jsxs("nav",{className:"waitlist__pagination","aria-label":"Pagination",children:[i.jsxs("span",{children:["Showing ",l,"–",d," of ",a]}),i.jsxs("div",{className:"waitlist__pagination-controls",children:[h?i.jsx(Ce,{href:h,preserveScroll:!0,className:"waitlist__pagination-btn",children:"← Previous"}):i.jsx("span",{className:"waitlist__pagination-btn waitlist__pagination-btn--disabled","aria-disabled":"true",children:"← Previous"}),i.jsxs("span",{children:["Page ",u," of ",f]}),p?i.jsx(Ce,{href:p,preserveScroll:!0,className:"waitlist__pagination-btn",children:"Next →"}):i.jsx("span",{className:"waitlist__pagination-btn waitlist__pagination-btn--disabled","aria-disabled":"true",children:"Next →"})]})]})]})]})]})}Lb.layout=e=>i.jsx(os,{children:e});Lb.propTypes={subscribers:q.shape({data:q.array,total:q.number,from:q.number,to:q.number,current_page:q.number,last_page:q.number,prev_page_url:q.string,next_page_url:q.string})};const oW=Object.freeze(Object.defineProperty({__proto__:null,default:Lb},Symbol.toStringTag,{value:"Module"}));function lW(e,t){if(!e)return"—";const n=new Date(e);if(Number.isNaN(n.getTime()))return"—";try{return n.toLocaleString(void 0,t?{timeZone:t}:void 0)}catch{return n.toLocaleString()}}function Fb({entries:e}){const t=rn().props.auth?.user?.display_timezone,n=e?.data??[],s=e?.total??0,a=e?.from??0,l=e?.to??0,d=e?.current_page??1,u=e?.last_page??1,f=e?.prev_page_url,h=e?.next_page_url;return i.jsxs("div",{className:"dashboard-page",children:[i.jsx(Lm,{title:"Waiting list"}),i.jsxs("main",{className:"dashboard-content",children:[i.jsxs("div",{className:"content-header",children:[i.jsx("h1",{className:"page__title",children:"Waiting list"}),i.jsxs("p",{className:"waitlist__count",children:[s," ",s===1?"person":"people"," signed up"]})]}),i.jsxs("div",{className:"content-body",children:[i.jsx("section",{className:"waitlist__table-wrap",children:n.length===0?i.jsx("div",{className:"waitlist__empty",children:"No signups yet."}):i.jsxs("table",{className:"waitlist__table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Email"}),i.jsx("th",{children:"Source"}),i.jsx("th",{children:"IP address"}),i.jsx("th",{children:"Signed up"})]})}),i.jsx("tbody",{children:n.map(p=>i.jsxs("tr",{children:[i.jsx("td",{title:p.email,children:p.email}),i.jsx("td",{children:p.source||i.jsx(i.Fragment,{children:"—"})}),i.jsx("td",{children:p.ip_address||i.jsx(i.Fragment,{children:"—"})}),i.jsx("td",{children:lW(p.created_at,t)})]},p.id))})]})}),u>1&&i.jsxs("nav",{className:"waitlist__pagination","aria-label":"Pagination",children:[i.jsxs("span",{children:["Showing ",a,"–",l," of ",s]}),i.jsxs("div",{className:"waitlist__pagination-controls",children:[f?i.jsx(Ce,{href:f,preserveScroll:!0,
421className:"waitlist__pagination-btn",children:"← Previous"}):i.jsx("span",{className:"waitlist__pagination-btn waitlist__pagination-btn--disabled","aria-disabled":"true",children:"← Previous"}),i.jsxs("span",{children:["Page ",d," of ",u]}),h?i.jsx(Ce,{href:h,preserveScroll:!0,className:"waitlist__pagination-btn",children:"Next →"}):i.jsx("span",{className:"waitlist__pagination-btn waitlist__pagination-btn--disabled","aria-disabled":"true",children:"Next →"})]})]})]})]})]})}Fb.layout=e=>i.jsx(os,{children:e});Fb.propTypes={entries:q.shape({data:q.array,total:q.number,from:q.number,to:q.number,current_page:q.number,last_page:q.number,prev_page_url:q.string,next_page_url:q.string})};const cW=Object.freeze(Object.defineProperty({__proto__:null,default:Fb},Symbol.toStringTag,{value:"Module"}));function Ib({blogPosts:e=[],editorMode:t=!1,editingPost:n=null}){const{auth:s}=rn().props,a=s?.user;return i.jsx("div",{className:"dashboard-page",children:i.jsxs("main",{className:"dashboard-content",children:[i.jsxs("div",{className:"content-header",children:[i.jsxs("h1",{children:["Welcome back, ",a?.name||"User","!"]}),i.jsx("p",{children:"Here's what's happening with your account today."})]}),i.jsx("div",{className:"content-body",children:t?i.jsx(OE,{post:n,onCancel:()=>Se.visit("/dashboard/blog-posts")}):i.jsx(ME,{blogPosts:e,onEdit:l=>Se.visit(`/dashboard/blog-posts/${l}/edit`),onCreate:()=>Se.visit("/dashboard/blog-posts/create")})})]})})}Ib.layout=e=>i.jsx(os,{children:e});Ib.propTypes={blogPosts:q.array,editorMode:q.bool,editingPost:q.object};const dW=Object.freeze(Object.defineProperty({__proto__:null,default:Ib},Symbol.toStringTag,{value:"Module"}));q.arrayOf(q.shape({value:q.string.isRequired,label:q.string.isRequired})).isRequired,q.string,q.func.isRequired,q.string,q.string,q.string;function Bb({value:e=[],onChange:t,disabled:n=!1,addLabel:s="Add",placeholder:a="Type and press Enter",maxLength:l=120,max:d=null}){const[u,f]=j.useState(!1),[h,p]=j.useState(""),g=j.useRef(null),y=d!==null&&e.length>=d;j.useEffect(()=>{u&&g.current?.focus()},[u]),j.useEffect(()=>{y&&u&&(p(""),f(!1))},[y,u]);function x(){const N=h.trim();N&&!e.includes(N)&&!y&&t([...e,N]),p("")}function b(N){N.key==="Enter"?(N.preventDefault(),x()):N.key==="Escape"?(p(""),f(!1)):N.key==="Backspace"&&h===""&&e.length>0&&t(e.slice(0,-1))}function w(){h.trim()&&x(),f(!1)}function S(N){t(e.filter((C,E)=>E!==N))}return i.jsxs("div",{className:"skill-chips",children:[e.map((N,C)=>i.jsxs("span",{className:"skill-chips__chip",children:[N,i.jsx("button",{type:"button",className:"skill-chips__chip-remove",onClick:()=>S(C),disabled:n,"aria-label":`Remove ${N}`,children:i.jsx(Ji,{size:12,strokeWidth:2})})]},`${N}-${C}`)),u?i.jsx("input",{ref:g,type:"text",className:"skill-chips__input",value:h,onChange:N=>p(N.target.value),onKeyDown:b,onBlur:w,placeholder:a,maxLength:l}):!y&&i.jsxs("button",{type:"button",className:"skill-chips__add",onClick:()=>f(!0),disabled:n,children:[i.jsx(Sd,{size:12,strokeWidth:1.75}),s]})]})}Bb.propTypes={value:q.arrayOf(q.string).isRequired,onChange:q.func.isRequired,disabled:q.bool,addLabel:q.string,placeholder:q.string,maxLength:q.number,max:q.number};const kS={network:xi,shield:U$,receipt:z$,"credit-card":L$,sparkles:q$,code:D$,"messages-square":I$};function DE({value:e=[],onChange:t,categories:n=[],disabled:s=!1}){const[a,l]=j.useState(!1),d=j.useRef(null);j.useEffect(()=>{if(!a)return;function y(x){d.current&&!d.current.contains(x.target)&&l(!1)}return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[a]);const u=j.useMemo(()=>new Set(e.map(y=>y.category_id)),[e]),f=j.useMemo(()=>n.filter(y=>!u.has(y.id)),[n,u]);function h(y){t([...e,{category_id:y,skills:[]}]),l(!1)}function p(y){t(e.filter(x=>x.category_id!==y))}function g(y,x){t(e.map(b=>b.category_id===y?{...b,skills:x}:b))}return i.jsxs("div",{className:"company-profile__profs-wrap",children:[e.length===0&&i.jsx("p",{className:"company-profile__form-hint",children:"No proficiencies yet. Click below to add your first one."}),e.length>0&&i.jsx("div",{className:"company-profile__profs",children:e.map(y=>{const x=n.find(w=>w.id===y.category_id);if(!x)return null;const b=kS[x.icon]??xi;return i.jsxs("div",{className:"company-profile__prof-card",children:[i.jsxs("div",{className:"company-profile__prof-head",children:[i.jsx(b,{className:"company-profile__prof-icon",strokeWidth:1.5,"aria-hidden":"true"}),i.jsx("h4",{className:"company-profile__prof-name",children:x.name}),i.jsx("button",{type:"button",className:"company-profile__prof-remove",onClick:()=>p(x.id),disabled:s,"aria-label":`Remove ${x.name}`,children:i.jsx(Ji,{size:14,strokeWidth:1.75})})]}),i.jsx(Bb,{value:y.skills,onChange:w=>g(x.id,w),disabled:s,addLabel:"Add skill",placeholder:"Type a skill, press Enter",maxLength:80,max:
4215}),i.jsxs("p",{className:"company-profile__form-hint company-profile__form-hint--prof-count",children:[y.skills.length,"/5 skills"]})]},x.id)})}),f.length>0&&i.jsxs("div",{className:"company-profile__add-prof-wrap",ref:d,children:[i.jsxs("button",{type:"button",className:"company-profile__add-btn",onClick:()=>l(y=>!y),disabled:s,"aria-haspopup":"menu","aria-expanded":a,children:[i.jsx(Sd,{size:16,strokeWidth:1.5}),"Add proficiency"]}),a&&i.jsx("div",{className:"company-profile__prof-picker",role:"menu",children:f.map(y=>{const x=kS[y.icon]??xi;return i.jsxs("button",{type:"button",role:"menuitem",className:"company-profile__prof-picker-option",onClick:()=>h(y.id),children:[i.jsx(x,{size:16,strokeWidth:1.5,className:"company-profile__prof-picker-icon"}),y.name]},y.id)})})]}),f.length===0&&e.length>0&&i.jsx("p",{className:"company-profile__form-hint",children:"All 7 proficiency categories added."})]})}DE.propTypes={value:q.array,onChange:q.func.isRequired,categories:q.array,disabled:q.bool};function LE({value:e=[],onChange:t,errors:n={},disabled:s=!1}){function a(f,h){t(e.map((p,g)=>g===f?{...p,...h}:p))}function l(f){t(e.filter((h,p)=>p!==f))}function d(){t([...e,{id:null,name:"",issuer:"",issued_on:""}])}function u(f,h){return n[`certifications.${f}.${h}`]}return i.jsxs("div",{className:"company-profile__certs-edit",children:[e.length===0&&i.jsx("p",{className:"company-profile__form-hint",children:"No certifications yet."}),e.map((f,h)=>i.jsxs("div",{className:"company-profile__cert-row",children:[i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",children:"Name"}),i.jsx("input",{className:`company-profile__input${u(h,"name")?" company-profile__input--error":""}`,type:"text",value:f.name??"",onChange:p=>a(h,{name:p.target.value}),disabled:s,placeholder:"e.g. ISO 27001",maxLength:120}),u(h,"name")&&i.jsx("span",{className:"company-profile__form-error",children:u(h,"name")})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",children:"Issuer"}),i.jsx("input",{className:`company-profile__input${u(h,"issuer")?" company-profile__input--error":""}`,type:"text",value:f.issuer??"",onChange:p=>a(h,{issuer:p.target.value}),disabled:s,placeholder:"e.g. BSI Group",maxLength:120}),u(h,"issuer")&&i.jsx("span",{className:"company-profile__form-error",children:u(h,"issuer")})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",children:"Month"}),i.jsx("input",{className:`company-profile__input${u(h,"issued_on")?" company-profile__input--error":""}`,type:"month",value:f.issued_on??"",onChange:p=>a(h,{issued_on:p.target.value}),disabled:s}),u(h,"issued_on")&&i.jsx("span",{className:"company-profile__form-error",children:u(h,"issued_on")})]}),i.jsx("button",{type:"button",className:"company-profile__row-remove",onClick:()=>l(h),disabled:s,"aria-label":"Remove certification",children:i.jsx(G$,{size:16,strokeWidth:1.5})})]},f.id??`new-${h}`)),i.jsxs("button",{type:"button",className:"company-profile__add-btn",onClick:d,disabled:s,children:[i.jsx(Sd,{size:16,strokeWidth:1.5}),"Add certification"]})]})}LE.propTypes={value:q.array,onChange:q.func.isRequired,errors:q.object,disabled:q.bool};const uW=["image/jpeg","image/png","image/webp"],fW=5*1024*1024,mW=/^(https?:\/\/)?[\w-]+(\.[\w-]+)+(\/[^\s]*)?$/i;function FE({value:e=[],onChange:t,errors:n={},disabled:s=!1}){function a(w,S){return n[`case_studies.${w}.${S}`]}const l=j.useRef([]),[d,u]=j.useState({});function f(w,S){const N=(S??"").trim();u(C=>{const E={...C};return N&&!mW.test(N)?E[w]="Enter a valid URL (e.g. example.com).":delete E[w],E})}function h(w,S){t(e.map((N,C)=>C===w?{...N,...S}:N))}function p(w){t(e.filter((S,N)=>N!==w))}function g(){t([...e,{id:null,client_name:"",description:"",url:"",image_url:null,image:null,_localPreview:null,remove_image:!1}])}function y(w){s||l.current[w]?.click()}function x(w,S){const N=S.target.files?.[0];if(S.target.value="",!!N){if(!uW.includes(N.type)){alert("Image must be JPG, PNG or WebP.");return}if(N.size>fW){alert("Image must be under 5MB.");return}h(w,{image:N,_localPreview:URL.createObjectURL(N),remove_image:!1})}}function b(w){h(w,{image:null,_localPreview:null,image_url:null,remove_image:!0})}return i.jsxs("div",{className:"company-profile__cases-edit",children:[e.length===0&&i.jsx("p",{className:"company-profile__form-hint",children:"No case studies yet."}),e.map((w,S)=>{const N=w._localPreview??w.image_url;return i.jsx("div",{className:"company-profile__case-edit-card",children:i.jsxs("div",{className:"company-profile__case-edit-grid",children:[i.jsxs("div",{className:"company-profile__case-edit-image-col",children:[i.jsx("div",{className:`company-profile__case-image-drop${N?" company-profile__case-image-drop--has-image":""}`,role:"button",tabIndex:0,onClick:()=>y(S),onKeyDown:C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),y(S))},"aria-label":"Upload case study image",children:N?i.jsx("img",{src:N,alt:"",className:"company-profile__case-image-preview"}):i.jsxs(i.Fragment,{children:[i.jsx(eV,{size:20,strokeWidth:1.5,"aria-hidden":"true"}),i.jsx("span",{children:"Upload image"})]})}),N&&i.jsx("button",{type:"button",className:"company-profile__case-image-clear",onClick:()=>b(S),disabled:s,children:"Remove image"}),i.jsx("input",{ref:C=>l.current[S]=C,type:"file",accept:"image/jpeg, image/png, image/webp",hidden:!0,onChange:C=>x(S,C)})]}),i.jsxs("div",{className:"company-profile__case-edit-fields",children:[i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",children:"Client name"}),i.jsx("input",{className:`company-profile__input${a(S,"client_name")?" company-profile__input--error":""}`,type:"text",value:w.client_name??"",onChange:C=>h(S,{client_name:C.target.value}),disabled:s,placeholder:"e.g. Revolut",maxLength:120}),a(S,"client_name")&&i.jsx("span",{className:"company-profile__form-error",children:a(S,"client_name")}
421)]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",children:"Description"}),i.jsx("textarea",{className:`company-profile__textarea${a(S,"description")?" company-profile__input--error":""}`,rows:4,value:w.description??"",onChange:C=>h(S,{description:C.target.value}),disabled:s,placeholder:"What you did, results, time-frame…",maxLength:2e3}),a(S,"description")&&i.jsx("span",{className:"company-profile__form-error",children:a(S,"description")})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsxs("label",{className:"company-profile__form-label",children:["URL ",i.jsx("span",{className:"company-profile__form-hint",children:"(optional)"})]}),i.jsx("input",{className:`company-profile__input${a(S,"url")||d[S]?" company-profile__input--error":""}`,type:"text",value:w.url??"",onChange:C=>{const E=C.target.value;h(S,{url:E}),d[S]&&f(S,E)},onBlur:C=>f(S,C.target.value),disabled:s,placeholder:"example.com/case-study",maxLength:500}),(a(S,"url")||d[S])&&i.jsx("span",{className:"company-profile__form-error",children:a(S,"url")||d[S]})]})]}),i.jsx("button",{type:"button",className:"company-profile__row-remove company-profile__row-remove--case",onClick:()=>p(S),disabled:s,"aria-label":"Remove case study",children:i.jsx(G$,{size:16,strokeWidth:1.5})})]})},w.id??`new-${S}`)}),i.jsxs("button",{type:"button",className:"company-profile__add-btn",onClick:g,disabled:s,children:[i.jsx(Sd,{size:16,strokeWidth:1.5}),"Add case study"]})]})}FE.propTypes={value:q.array,onChange:q.func.isRequired,disabled:q.bool};function hW({size:e=16,strokeWidth:t=1.5}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),i.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),i.jsx("circle",{cx:"4",cy:"4",r:"2"})]})}function pW({size:e=16,strokeWidth:t=1.5}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z"}),i.jsx("circle",{cx:"12",cy:"13",r:"3"})]})}const gW=["1–10 employees","11–50 employees","51–200 employees","201–500 employees","500+ employees"];function MS(e){if(!e)return e;const t=String(e).trim();return!t||/^https?:\/\//i.test(t)?t:`https://${t}`}function zb({company:e=null,plan:t=null,billing:n=null,industries_options:s=[],business_stages_options:a=[],company_types_options:l=[],proficiency_categories_options:d=[]}){const{auth:u}=rn().props,h=(u?.user?.roles??[]).includes("owner"),p=h,g=h,[y,x]=j.useState("main"),b=(e?.industries??[]).map(he=>he.id),w=e?.business_stage?.id??null,[S,N]=j.useState({name:e?.name??"",industry_ids:b,business_stage_id:w,city:e?.city??"",country:e?.country??"",size:e?.size??"",company_type_id:e?.company_type_id??"",legal_form:e?.legal_form??"",description:e?.description??"",website:e?.website??"",email:e?.email??"",linkedin:e?.linkedin_url??""}),[C,E]=j.useState({}),[M,L]=j.useState(!1),[R,O]=j.useState(!1),k=M,B=e?.proficiencies??[],I=e?.certifications??[],V=e?.clients??[],z=e?.case_studies??[],[K,W]=j.useState(B),[Q,D]=j.useState(I),[H,U]=j.useState(V),[Z,F]=j.useState(z),T=j.useRef(e);j.useEffect(()=>{T.current=e},[e]);const A=/linkedin\.com\/company\//i,Y=/^(https?:\/\/)?([\w-]+\.)+[\w-]{2,}(\/[^\s]*)?$/i,ee=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,te={name:"Company name is required",website:"Website is required",email:"Email is required"},ae=3;function pe(he){N(Me=>{const Pe=Me.industry_ids.includes(he);if(!Pe&&Me.industry_ids.length>=ae)return Me;const et=Pe?Me.industry_ids.filter(Sn=>Sn!==he):[...Me.industry_ids,he];return{...Me,industry_ids:et}}),C.industry_ids&&E(Me=>{const Pe={...Me};return delete Pe.industry_ids,Pe})}const le=S,ve=C,xe=(he,Me)=>{if(N(Pe=>({...Pe,[he]:Me})),C[he])if(te[he]&&Me.trim()){if(he==="website"&&!Y.test(Me.trim())||he==="email"&&!ee.test(Me.trim()))return;E(Pe=>{const et={...Pe};return delete et[he],et})}else he==="linkedin"&&(!Me.trim()||A.test(Me.trim()))&&E(Pe=>{const et={...Pe};return delete et[he],et})},[$e,ce]=j.useState(null),[be,Ee]=j.useState(""),ke=j.useRef(null),[Le,Ne]=j.useState(null),Ue=j.useRef(null);function Te(){p&&ke.current?.click()}
421function Ze(he){p&&(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),ke.current?.click())}function vt(he){const Me=URL.createObjectURL(he);ce(Me),O(!0),Se.post(route("dashboard.company.update"),{_method:"PATCH",logo:he},{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{URL.revokeObjectURL(Me),ce(null)},onError:()=>Ve.error("Failed to upload logo."),onFinish:()=>O(!1)})}function fe(he){const Me=he.target.files?.[0];if(!Me)return;if(he.target.value="",!["image/jpeg","image/png","image/webp","image/svg+xml"].includes(Me.type)){Ve.error("Unsupported format — please upload a JPG, PNG, WebP or SVG");return}if(Me.size>5*1024*1024){Ve.error("File too large — maximum size is 5 MB");return}if(Ee(""),Me.type==="image/svg+xml"){vt(Me);return}const et=new Image;et.onload=function(){if(URL.revokeObjectURL(et.src),et.naturalWidth<128||et.naturalHeight<128){Ve.error("Image too small — minimum dimensions are 128×128 pixels");return}if(et.naturalWidth>2048||et.naturalHeight>2048){Ve.error("Image too large — maximum dimensions are 2048×2048 pixels");return}const Sn=et.naturalWidth/et.naturalHeight;(Sn>2||Sn<.5)&&setTimeout(()=>Ve.info("Tip: Square logos look best in the dashboard"),600),vt(Me)},et.onerror=function(){URL.revokeObjectURL(et.src),vt(Me)},et.src=URL.createObjectURL(Me)}function ze(){p&&Ue.current?.click()}function Ge(he){p&&(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),Ue.current?.click())}function mt(he){const Me=URL.createObjectURL(he);Ne(Me),O(!0),Se.post(route("dashboard.company.update"),{_method:"PATCH",cover_image:he},{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{URL.revokeObjectURL(Me),Ne(null)},onError:()=>Ve.error("Failed to upload cover image."),onFinish:()=>O(!1)})}function wt(he){const Me=he.target.files?.[0];if(!Me)return;if(he.target.value="",!["image/jpeg","image/png","image/webp"].includes(Me.type)){Ve.error("Unsupported format — please upload a JPG, PNG or WebP");return}if(Me.size>5*1024*1024){Ve.error("File too large — maximum size is 5 MB");return}const et=new Image;et.onload=function(){if(URL.revokeObjectURL(et.src),et.naturalWidth<800||et.naturalHeight<200){Ve.error("Image too small — recommended minimum 800×200 pixels");return}mt(Me)},et.onerror=function(){URL.revokeObjectURL(et.src),mt(Me)},et.src=URL.createObjectURL(Me)}function vn(){const he={};return Object.entries(te).forEach(([Me,Pe])=>{S[Me]?.trim()||(he[Me]=Pe)}),(!S.industry_ids||S.industry_ids.length===0)&&(he.industry_ids="Pick at least one industry"),S.business_stage_id||(he.business_stage_id="Pick a business stage"),!he.website&&S.website.trim()&&!Y.test(S.website.trim())&&(he.website="Enter a valid website (e.g. example.com)"),!he.email&&S.email.trim()&&!ee.test(S.email.trim())&&(he.email="Enter a valid email (e.g. [email protected])"),S.linkedin.trim()&&!A.test(S.linkedin.trim())&&(he.linkedin="Enter a LinkedIn URL like linkedin.com/company/your-name"),he}function cn(he){const Me=S[he]?.trim();te[he]&&!Me?E(Pe=>({...Pe,[he]:te[he]})):he==="website"&&Me&&!Y.test(Me)?E(Pe=>({...Pe,website:"Enter a valid website (e.g. example.com)"})):he==="email"&&Me&&!ee.test(Me)?E(Pe=>({...Pe,email:"Enter a valid email (e.g. [email protected])"})):he==="linkedin"&&Me&&!A.test(Me)&&E(Pe=>({...Pe,linkedin:"Enter a LinkedIn URL like linkedin.com/company/your-name"}))}function wn(he){if(he.preventDefault(),M)return;const Me=vn();if(Object.keys(Me).length>0){E(Me);return}L(!0),Se.post(route("dashboard.company.update"),{_method:"PATCH",...S,proficiencies:K,certifications:Q,clients:H,case_studies:Z.map(Pe=>{const{_localPreview:et,image_url:Sn,...Vs}=Pe;return Vs})},{forceFormData:!0,preserveState:!0,onSuccess:()=>{E({}),x("main");const Pe=T.current;Pe&&(W(Pe.proficiencies??[]),D(Pe.certifications??[]),U(Pe.clients??[]),F(Pe.case_studies??[]))},onError:Pe=>{E(Pe)},onFinish:()=>L(!1)})}function ii(){N({name:e?.name??"",industry_ids:(e?.industries??[]).map(he=>he.id),business_stage_id:e?.business_stage?.id??null,city:e?.city??"",country:e?.country??"",size:e?.size??"",company_type_id:e?.company_type_id??"",legal_form:e?.legal_form??"",description:e?.description??"",website:e?.website??"",email:e?.email??"",linkedin:e?.linkedin_url??""}),W(e?.proficiencies??[]),D(e?.certifications??[]),U(e?.clients??[]),F(e?.case_studies??[]),E({}),x("main")}const wi=$e??e?.logo_url??null,Si=Le??e?.cover_image_url??null,Ni=(e?.name??"C").charAt(0).toUpperCase(),dn=e?.tier?e.tier.charAt(0).toUpperCase()+e.tier.slice(1):"Bronze",js=e?.tier&&["silver","gold"].includes(e.tier),un=[e?.city,e?.country].filter(
421Boolean),ul=un.length>0?un.join(", "):null;return i.jsxs("div",{className:"company-profile",children:[y==="main"&&i.jsxs("div",{className:"company-profile__view","data-subpage-view":"main",children:[i.jsx("h1",{className:"company-profile__title",children:"Company profile"}),i.jsxs("section",{className:"company-profile__card-wrapper",children:[i.jsxs("div",{className:"company-profile__card-top",children:[i.jsxs("div",{className:`company-profile__banner${Si?" company-profile__banner--has-image":""}`,role:p?"button":void 0,"aria-label":p?"Change cover image":void 0,tabIndex:p?0:-1,onClick:ze,onKeyDown:Ge,style:Si?{backgroundImage:`url(${Si})`}:void 0,children:[p&&i.jsx("div",{className:"company-profile__banner-edit",children:i.jsx(pW,{size:16,strokeWidth:1.5})}),i.jsx("input",{ref:Ue,type:"file",className:"company-profile__banner-input",accept:"image/png, image/jpeg, image/webp",hidden:!0,onChange:wt})]}),i.jsxs("div",{className:"company-profile__details-header",children:[i.jsxs("div",{className:"company-profile__identity-col",children:[i.jsxs("div",{className:"company-profile__logo",role:"button","aria-label":"Change company logo",tabIndex:0,onClick:Te,onKeyDown:Ze,children:[wi?i.jsx("img",{src:wi,alt:e?.name??"Company logo",className:"company-profile__logo-img"}):Ni,p&&i.jsx("div",{className:"company-profile__logo-edit",children:i.jsx(B$,{size:14,strokeWidth:1.5})}),i.jsx("input",{ref:ke,type:"file",className:"company-profile__logo-input",accept:"image/png, image/jpeg, image/webp, image/svg+xml",hidden:!0,onChange:fe})]}),i.jsxs("div",{className:"company-profile__identity",children:[i.jsx("h2",{className:"company-profile__name",children:e?.name??"Your Company"}),e?.member_since&&i.jsx("span",{className:"company-profile__member-since",children:e.member_since})]})]}),p&&i.jsx("button",{type:"button",className:"company-profile__edit-btn",onClick:()=>{E({}),x("edit")},children:"Edit profile"})]}),i.jsxs("div",{className:"company-profile__info-row",children:[i.jsxs("div",{className:"company-profile__contact-col",children:[i.jsx("h5",{className:"company-profile__label",children:"Links"}),i.jsxs("div",{className:"company-profile__contact-icons",children:[(le?.website||e?.website)&&i.jsx("a",{href:MS(le?.website||e.website),className:"company-profile__contact-icon",target:"_blank",rel:"noopener noreferrer","aria-label":"Website",children:i.jsx($z,{size:16,strokeWidth:1.5})}),(le?.email||e?.email)&&i.jsx("a",{href:`mailto:${le?.email||e.email}`,className:"company-profile__contact-icon","aria-label":"Email",children:i.jsx(F$,{size:16,strokeWidth:1.5})}),(le?.linkedin||e?.linkedin_url)&&i.jsx("a",{href:MS(le?.linkedin||e.linkedin_url),className:"company-profile__contact-icon",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",children:i.jsx(hW,{size:16,strokeWidth:1.5})})]})]}),i.jsxs("div",{className:"company-profile__details-row",children:[i.jsxs("div",{className:"company-profile__field",children:[i.jsx("h5",{className:"company-profile__label",children:"Industry"}),i.jsx("span",{className:"company-profile__value",children:(e?.industries??[]).map(he=>he.name).join(", ")||"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("h5",{className:"company-profile__label",children:"Location"}),i.jsx("span",{className:"company-profile__value",children:ul??"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("h5",{className:"company-profile__label",children:"Company size"}),i.jsx("span",{className:"company-profile__value",children:e?.size??"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("h5",{className:"company-profile__label",children:"Company type"}),i.jsx("span",{className:"company-profile__value",children:e?.company_type??"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("h5",{className:"company-profile__label",children:"Legal form"}),i.jsx("span",{className:"company-profile__value",children:e?.legal_form??"—"})]})]})]})]}),i.jsx("div",{className:"company-profile__card-bottom",children:i.jsxs("div",{className:"company-profile__bottom-row",children:[i.jsxs("div",{className:"company-profile__field",children:[i.jsxs("h4",{className:"company-profile__card-title",children:["About ",e?.name]}),i.jsx("p",{className:"company-profile__value",children:e?.description??"—"})]}),i.jsxs("div",{className:"company-profile__plan-col",children:[i.jsxs("h3",{className:"company-profile__plan-tier",children:["You're on plan"," ",i.jsx("span",{className:"company-profile__plan-tier-name",children:dn}),e?.plan_expires&&i.jsxs("span",{className:"company-profile__plan-until",children:[" ",e.plan_expires]})]}),t?.description&&i.jsx("p",{className:"company-profile__plan-description",children:t.description}),js&&h&&(n?.next_payment||n?.cycle)&&i.jsxs("div",{className:"company-profile__plan-billing-section","data-
421plan-billing":!0,children:[i.jsx("h4",{className:"company-profile__plan-subtitle",children:"Billing information"}),i.jsxs("div",{className:"company-profile__plan-billing",children:[i.jsx(dz,{className:"company-profile__plan-billing-icon",size:14,strokeWidth:1.5}),i.jsxs("div",{className:"company-profile__plan-billing-info",children:[n?.next_payment&&i.jsxs("span",{children:["Next payment: ",n.next_payment]}),n?.cycle&&i.jsxs("span",{children:["Paid ",n.cycle]})]})]})]}),g&&i.jsx("button",{type:"button",className:"company-profile__manage-plan-btn",onClick:()=>Se.visit(route("dashboard.plan")),children:"Manage plan"})]})]})})]}),be&&i.jsx("p",{style:{color:"var(--color-error)",fontSize:"13px",marginTop:"var(--space-2)"},children:be})]}),y==="edit"&&i.jsxs("div",{className:"company-profile__view","data-subpage-view":"edit",children:[i.jsxs("div",{className:"company-profile__subpage-header",children:[i.jsxs("button",{type:"button",className:"company-profile__back-btn",onClick:ii,children:[i.jsx(xm,{size:16,strokeWidth:1.5}),"Back to profile"]}),i.jsx("h3",{className:"company-profile__subpage-title",children:"Edit profile"})]}),i.jsxs("form",{className:"company-profile__edit-form",onSubmit:wn,noValidate:!0,children:[i.jsxs("div",{className:"company-profile__edit-titles",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Company details"}),i.jsx("h3",{className:"company-profile__card-title",children:"Contact & links"})]}),i.jsx("section",{className:"company-profile__details-card",children:i.jsxs("div",{className:"company-profile__details-columns",children:[i.jsxs("div",{className:"company-profile__details-col",children:[i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-name",children:"Company name"}),i.jsx("input",{className:`company-profile__input${ve.name?" company-profile__input--error":""}`,type:"text",id:"edit-name",value:le.name,onChange:he=>xe("name",he.target.value),onBlur:()=>cn("name"),disabled:k,placeholder:"Acme Ltd"}),ve.name&&i.jsx("span",{className:"company-profile__form-error",children:ve.name})]}),i.jsxs("div",{className:"company-profile__form-row",children:[i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-city",children:"City"}),i.jsx("input",{className:"company-profile__input",type:"text",id:"edit-city",value:le.city,onChange:he=>xe("city",he.target.value),disabled:k,placeholder:"e.g. Vilnius"})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-country",children:"Country"}),i.jsx(dh,{id:"edit-country",value:le.country??"",onChange:he=>xe("country",he),invalid:!!ve.country}),ve.country&&i.jsx("span",{className:"company-profile__form-error",children:ve.country})]})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-size",children:"Company size"}),i.jsxs("select",{className:"company-profile__select",id:"edit-size",value:le.size,onChange:he=>xe("size",he.target.value),disabled:k,children:[i.jsx("option",{value:"",children:"Select size"}),gW.map(he=>i.jsx("option",{value:he,children:he},he))]}),ve.size&&i.jsx("span",{className:"company-profile__form-error",children:ve.size})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-company-type",children:"Company type"}),i.jsxs("select",{className:"company-profile__select",id:"edit-company-type",value:le.company_type_id??"",onChange:he=>xe("company_type_id",he.target.value?Number(he.target.value):""),disabled:k,children:[i.jsx("option",{value:"",children:"Select company type"}),l.map(he=>i.jsx("option",{value:he.id,children:he.name},he.id))]}),ve.company_type_id&&i.jsx("span",{className:"company-profile__form-error",children:ve.company_type_id})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsxs("label",{className:"company-profile__form-label company-profile__form-label--with-help",htmlFor:"edit-legal-form",children:["Legal form",i.jsxs("span",{className:"company-profile__help",children:[i.jsx("button",{type:"button",className:"company-profile__help-trigger","aria-label":"What is a legal form?","aria-describedby":"edit-legal-form-help",children:i.jsx("img",{src:"/images/icons/question-mark.svg",alt:"",width:"14",height:"14"})}),i.jsx("span",{id:"edit-legal-form-help",role:"tooltip",className:"company-profile__help-bubble",children:"Enter your company's legal form, e.g. UAB, MB, Ltd, LLC, GmbH, AG, SIA, OÜ."})]})]}),i.jsx("input",{className:"company-profile__input",id:"edit-legal-form",type:"text",maxLength:100,placeholder:"e.g. UAB, MB, Ltd, GmbH",value:le.legal_form??"",onChange:he=>xe("legal_form",he.target.value),disabled:k}),ve.legal_form&&i.jsx("span",{className:"company-profile__form-error",children:ve.legal_form})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-description",children:"Description"}),i.jsx("textarea",{className:"company-profile__textarea",id:"edit-description",rows:4,value:le.description,onChange:he=>xe("description",he.target.value.slice(0,1e3)),disabled:k,maxLength:1e3,placeholder:"Tell us about your company..."}),i.jsxs("div",{className:"company-profile__form-field-footer",children:[ve.description&&i.jsx("span",{className:"company-profile__form-error",children:ve.description}),i.jsxs("span",{className:"company-profile__char-count",children:[(le.description??"").length," / 1000"]})]})]})]}),i.jsx("div",{className:"company-profile__details-separator"}),i.jsxs("div",{className:"company-profile__details-col",children:[i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-website",children:"Website"}),i.jsx("input",{className:`company-profile__input${ve.website?" company-profile__input--error":""}`,type:"text",id:"edit-website",value:le.website,onChange:he=>xe("website",he.target.value),onBlur:()=>cn("website"),disabled:k,placeholder:"example.com"}),ve.website&&i.jsx("span",{className:"company-profile__form-error",children:ve.website})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-email",children:"Email"}),i.jsx("input",{className:`company-profile__input${ve.email?" company-profile__input--error":""}`,type:"email",id:"edit-email",value:le.email,onChange:he=>xe("email",he.target.value),onBlur:()=>cn("email"),disabled:k,placeholder:"[email protected]"}),ve.email&&i.jsx("span",{className:"company-profile__form-error",children:ve.email})]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("label",{className:"company-profile__form-label",htmlFor:"edit-linkedin",children:"LinkedIn"}),i.jsx("input",{className:`company-profile__input${ve.linkedin?" company-profile__input--error":""}`,type:"text",id:"edit-linkedin",value:le.linkedin,onChange:he=>xe("linkedin",he.target.value),onBlur:()=>cn("linkedin"),disabled:k,placeholder:"linkedin.com/company/your-name"}),ve.linkedin&&i.jsx("span",{className:"company-profile__form-error",children:ve.linkedin})]})]})]})}),i.jsx("section",{className:"company-profile__details-card",children:i.jsxs("div",{className:"company-profile__details-columns",children:[i.jsxs("div",{className:"company-profile__details-col",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Industries"}),i.jsxs("p",{className:"company-profile__form-hint",children:["Pick up to ",ae," — ",le.industry_ids.length,"/",ae,"."]}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsx("div",{className:"company-profile__checkbox-grid",children:s.map(he=>{const Me=le.industry_ids.includes(he.id),Pe=!Me&&le.industry_ids.length>=ae;return i.jsxs("label",{className:`company-profile__checkbox-option${Me?" company-profile__checkbox-option--checked":""}${Pe?" company-profile__checkbox-option--disabled":""}`,children:[i.jsx("input",{type:"checkbox",checked:Me,disabled:k||Pe,onChange:()=>pe(he.id)}),i.jsx("span",{children:he.name})]},he.id)})}),ve.industry_ids&&i.jsx("span",{className:"company-profile__form-error",children:ve.industry_ids}
421)]})]}),i.jsx("div",{className:"company-profile__details-separator"}),i.jsxs("div",{className:"company-profile__details-col",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Business stage"}),i.jsx("p",{className:"company-profile__form-hint",children:"Where the company is in its lifecycle."}),i.jsxs("div",{className:"company-profile__form-field",children:[i.jsxs("select",{id:"edit-stage",className:`company-profile__input${ve.business_stage_id?" company-profile__input--error":""}`,value:le.business_stage_id??"",disabled:k,onChange:he=>{const Me=he.target.value?Number(he.target.value):null;N(Pe=>({...Pe,business_stage_id:Me})),C.business_stage_id&&E(Pe=>{const et={...Pe};return delete et.business_stage_id,et})},children:[i.jsx("option",{value:"",children:"Choose a stage…"}),a.map(he=>i.jsx("option",{value:he.id,children:he.name},he.id))]}),le.business_stage_id&&i.jsx("p",{className:"company-profile__form-hint",style:{marginTop:"var(--space-2)"},children:a.find(he=>he.id===le.business_stage_id)?.description}),ve.business_stage_id&&i.jsx("span",{className:"company-profile__form-error",children:ve.business_stage_id})]})]})]})}),i.jsxs("section",{className:"company-profile__details-card",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Proficiencies"}),i.jsx("p",{className:"company-profile__form-hint",children:"Pick the categories you work in and add the specific skills, tools, or standards under each. Categories you leave empty won't appear on your public profile."}),i.jsx(DE,{value:K,onChange:W,categories:d,disabled:k})]}),i.jsxs("div",{className:"company-profile__row-pair",children:[i.jsxs("section",{className:"company-profile__details-card",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Certifications & Standards"}),i.jsx("p",{className:"company-profile__form-hint",children:"Name, issuer and month are required for each certification."}),i.jsx(LE,{value:Q,onChange:D,errors:C,disabled:k})]}),i.jsxs("section",{className:"company-profile__details-card company-profile__details-card--clients",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Notable clients & partners"}),i.jsx("p",{className:"company-profile__form-hint",children:"Click “Add client” and press Enter after typing each name."}),i.jsx(Bb,{value:H,onChange:U,disabled:k,addLabel:"Add client",placeholder:"Client name, press Enter",maxLength:120})]})]}),i.jsxs("section",{className:"company-profile__details-card",children:[i.jsx("h3",{className:"company-profile__card-title",children:"Case Studies"}),i.jsx("p",{className:"company-profile__form-hint",children:"Add notable projects with the client, a description, and an optional cover image and link."}),i.jsx(FE,{value:Z,onChange:F,errors:C,disabled:k})]}),i.jsxs("div",{className:"company-profile__form-actions",children:[i.jsx("button",{type:"button",className:"company-profile__btn company-profile__btn--secondary",onClick:ii,disabled:k,children:"Cancel"}),i.jsx("button",{type:"submit",className:"company-profile__btn company-profile__btn--primary",disabled:k,children:k?"Saving...":"Save changes"})]})]})]})]})}zb.layout=e=>i.jsx(os,{breadcrumbs:[{label:"Dashboard",href:route("dashboard.home")},{label:"Company Profile"}],children:e});zb.propTypes={company:q.shape({id:q.number,name:q.string,description:q.string,website:q.string,email:q.string,linkedin:q.string,industries:q.array,business_stage:q.object,city:q.string,country:q.string,size:q.string,tier:q.string,logo_url:q.string,member_since:q.string,plan_until:q.string,plan_description:q.string,next_payment:q.string,billing_cycle:q.string}),plan:q.object,billing:q.object,industries_options:q.array,business_stages_options:q.array};const vW=Object.freeze(Object.defineProperty({__proto__:null,default:zb},Symbol.toStringTag,{value:"Module"}));function Wt({isOpen:e,onClose:t,title:n,children:s=null,footer:a=null,persistent:l=!1,className:d=""}){const u=j.useRef(null);if(j.useEffect(()=>{if(!e)return;const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=p}},[e]),j.useEffect(()=>{if(!e||l)return;function p(g){g.key==="Escape"&&t()}return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[e,l,t]),j.useEffect(()=>{if(!e||!u.current)return;const p=u.current.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not
421([tabindex="-1"])');p.length>0&&p[0].focus()},[e]),!e)return null;function f(){l||t()}const h=i.jsxs("div",{className:`modal modal--active${d?` ${d}`:""}`,children:[i.jsx("div",{className:"modal__backdrop",onClick:f}),i.jsxs("div",{className:"modal__dialog",ref:u,role:"dialog","aria-modal":"true","aria-labelledby":n?"modal-title":void 0,children:[n&&i.jsxs("div",{className:"modal__header",children:[i.jsx("h2",{id:"modal-title",className:"modal__title",children:n}),!l&&i.jsx("button",{type:"button",className:"modal__close",onClick:t,"aria-label":"Close modal",children:i.jsx(Ji,{size:18,strokeWidth:1.5})})]}),i.jsx("div",{className:"modal__body",children:s}),a&&i.jsx("div",{className:"modal__footer",children:a})]})]});return ln.createPortal(h,document.body)}Wt.propTypes={isOpen:q.bool.isRequired,onClose:q.func.isRequired,title:q.string,children:q.node,footer:q.node,persistent:q.bool,className:q.string};const yW={sprout:fb,"trending-up":eh,"shield-check":ub,network:xi,"graduation-cap":db},bW=3;function Uv({slug:e,className:t}){const n=yW[e]??xi;return i.jsx(n,{className:t,"aria-hidden":"true",strokeWidth:1.5})}Uv.propTypes={slug:q.string,className:q.string};function xW(e,t){if(!t)return e;const n=e.toLowerCase().indexOf(t.toLowerCase());return n===-1?e:i.jsxs(i.Fragment,{children:[e.slice(0,n),i.jsx("strong",{children:e.slice(n,n+t.length)}),e.slice(n+t.length)]})}function IE({connections:e=[],pending:t=[],filters:n={search:"",industries:[],stages:[]},industry_options:s=[],stage_options:a=[]}){const[l,d]=j.useState(n.search??""),[u,f]=j.useState(!1),[h,p]=j.useState(-1),g=j.useRef(null),y=j.useRef(!1),[x,b]=j.useState(!1),[w,S]=j.useState([...n.industries??[]]),[N,C]=j.useState([...n.stages??[]]),E=j.useMemo(()=>({industries:n.industries??[],stages:n.stages??[]}),[n.industries,n.stages]);j.useEffect(()=>{if(y.current){y.current=!1;return}return g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{M({search:l})},300),()=>g.current&&clearTimeout(g.current)},[l]);function M(T={}){const A={search:T.search??l,industries:T.industries??E.industries,stages:T.stages??E.stages},Y={};A.search&&(Y.search=A.search),A.industries.length&&(Y.industries=A.industries.join(",")),A.stages.length&&(Y.stages=A.stages.join(",")),Se.get("/dashboard/connections",Y,{preserveState:!0,preserveScroll:!0,replace:!0})}const L=j.useMemo(()=>[...e,...t],[e,t]),R=j.useMemo(()=>{const T=l.trim().toLowerCase();return T?L.map(A=>({company:A,idx:(A.name||"").toLowerCase().indexOf(T)})).filter(A=>A.idx!==-1).sort((A,Y)=>A.idx-Y.idx||(A.company.name||"").localeCompare(Y.company.name||"")).slice(0,bW):[]},[L,l]);function O(T){y.current=!0,d(T),f(!1),M({search:T})}function k(T){T.key==="ArrowDown"?(T.preventDefault(),f(!0),p(A=>Math.min(A+1,R.length-1))):T.key==="ArrowUp"?(T.preventDefault(),p(A=>Math.max(A-1,0))):T.key==="Enter"?(T.preventDefault(),h>=0&&R[h]?O(R[h].company.name):f(!1)):T.key==="Escape"&&f(!1)}function B(T){S(A=>A.includes(T)?A.filter(Y=>Y!==T):[...A,T])}function I(T){C(A=>A.includes(T)?A.filter(Y=>Y!==T):[...A,T])}function V(){S([]),C([])}function z(){b(!1),M({industries:w,stages:N})}function K(T){const A=E.industries.filter(Y=>Y!==T);S(A),M({industries:A})}function W(T){const A=E.stages.filter(Y=>Y!==T);C(A),M({stages:A})}function Q(){S([]),C([]),M({industries:[],stages:[]})}const D=j.useMemo(()=>{const T=new Map;return s.forEach(A=>T.set(A.id,A)),T},[s]),H=j.useMemo(()=>{const T=new Map;return a.forEach(A=>T.set(A.id,A)),T},[a]),U=e.length+t.length,Z=U===0;function F(T){return i.jsx("li",{children:i.jsxs("article",{className:"network__card","data-company-name":T.name,children:[i.jsxs("div",{className:"network__card-top",children:[i.jsx("div",{className:"network__card-logo","aria-hidden":"true",children:T.logo_url?i.jsx("img",{src:T.logo_url,alt:`${T.name} logo`}):(T.name||"?").charAt(0).toUpperCase()}),i.jsxs("div",{className:"network__card-identity",children:[i.jsx("h3",{className:"network__card-name",children:T.name}),i.jsxs("div",{className:"network__card-chips",children:[T.business_stage&&i.jsxs("span",{className:"network__card-chip network__card-chip--stage",children:[i.jsx(Uv,{slug:T.business_stage.
421icon,className:"network__card-chip-icon"}),T.business_stage.name]}),(T.industries??[]).map(A=>i.jsx("span",{className:"network__card-chip network__card-chip--industry",children:A.name},A.id))]})]})]}),T.slug?i.jsx(Ce,{href:route("dashboard.members.show",{slug:T.slug}),className:"network__card-view",children:"View profile"}):i.jsx("button",{type:"button",className:"network__card-view",disabled:!0,children:"View profile"})]})},T.intro_request_id)}return i.jsxs(os,{title:"Connections",children:[i.jsx("section",{className:"page connections-page",children:i.jsxs("div",{className:"network",children:[i.jsx("header",{className:"network__header",children:i.jsx("h1",{className:"page__title",children:"Connections"})}),i.jsxs("div",{className:"network__toolbar",children:[i.jsxs("div",{className:"network__search",children:[i.jsx(V$,{className:"network__search-icon","aria-hidden":"true"}),i.jsx("input",{type:"search",className:"network__search-input",placeholder:"Search connections…","aria-label":"Search connections",role:"combobox","aria-autocomplete":"list","aria-expanded":u,autoComplete:"off",value:l,onChange:T=>{d(T.target.value),f(T.target.value.trim().length>0)},onFocus:()=>f(l.trim().length>0),onBlur:()=>setTimeout(()=>f(!1),150),onKeyDown:k}),u&&R.length>0&&i.jsx("ul",{className:"network__search-suggestions",role:"listbox",children:R.map((T,A)=>i.jsxs("li",{className:`network__search-suggestion${A===h?" is-active":""}`,role:"option","aria-selected":A===h,onMouseDown:()=>O(T.company.name),children:[i.jsx("span",{className:"network__search-suggestion-avatar","aria-hidden":"true",children:(T.company.name||"?").charAt(0).toUpperCase()}),i.jsx("span",{className:"network__search-suggestion-name",children:xW(T.company.name,l)})]},T.company.intro_request_id))})]}),i.jsxs("button",{type:"button",className:"network__filters-btn","aria-haspopup":"dialog",onClick:()=>{S([...E.industries]),C([...E.stages]),b(!0)},children:[i.jsx(H$,{className:"network__filters-icon","aria-hidden":"true",strokeWidth:1.5}),"Filters"]}),i.jsxs(Ce,{href:"/dashboard/directory",className:"network__discover-link",children:[i.jsx(Sd,{"aria-hidden":"true",strokeWidth:1.75}),"Discover"]})]}),(E.industries.length>0||E.stages.length>0)&&i.jsxs("div",{className:"network__active-filters",role:"group","aria-label":"Active filters",children:[E.industries.map(T=>{const A=D.get(T);return A?i.jsxs("button",{type:"button",className:"network__active-filter-chip","aria-label":`Remove ${A.name} filter`,onClick:()=>K(T),children:[A.name,i.jsx(Ji,{size:14,"aria-hidden":"true"})]},`ind-${T}`):null}),E.stages.map(T=>{const A=H.get(T);return A?i.jsxs("button",{type:"button",className:"network__active-filter-chip","aria-label":`Remove ${A.name} filter`,onClick:()=>W(T),children:[A.name,i.jsx(Ji,{size:14,"aria-hidden":"true"})]},`stg-${T}`):null}),i.jsx("button",{type:"button",className:"network__active-filters-clear",onClick:Q,children:"Clear all"})]}),i.jsxs("p",{className:"network__count","aria-live":"polite",children:[U," of ",U," connections"]}),Z?i.jsxs("p",{className:"network__empty",children:["You don't have any connections yet."," ",i.jsx(Ce,{href:"/dashboard/directory",children:"Browse the directory"})," to request your first introduction."]}):i.jsxs(i.Fragment,{children:[e.length>0&&i.jsx("section",{className:"network__group",children:i.jsx("ul",{className:"network__list",children:e.map(F)})}),t.length>0&&i.jsxs("section",{className:"network__group","aria-labelledby":"network-pending-title",children:[i.jsx("h2",{className:"network__group-title",id:"network-pending-title",children:"Pending requests"}),i.jsx("ul",{className:"network__list",children:t.map(F)})]})]})]})}),i.jsxs(Wt,{isOpen:x,onClose:()=>b(!1),className:"network__filters-modal directory__filters-modal",title:"Filters",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",disabled:w.length===0&&N.length===0,onClick:V,children:"Clear all"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:z,children:"Apply"})]}),children:[i.jsxs("section",{className:"directory__filter-group",children:[i.jsx("h2",{className:"directory__filter-heading",children:"Industry"}),i.jsx("ul",{className:"directory__filter-options directory__filter-options--cols-2",role:"group","aria-label":"Industry",children:s.map(T=>i.jsx("li",{children:i.jsxs("label",{className:"directory__filter-option",children:[i.jsx("input",{type:"checkbox",checked:w.includes(T.id),onChange:()=>B(T.id)}),i.jsx("span",{className:"directory__filter-option-name",children:T.name})]})},T.id))})]}),i.jsxs("section",{className:"directory__filter-group",children:[i.jsx("h2",{className:"directory__filter-heading",children:"Business stage"}),i.jsx("ul",{className:"directory__filter-options directory__filter-options--buttons",role:"group","aria-label":"Business stage",children:a.map(T=>i.jsxs("li",{className:"directory__stage",children:[i.jsxs("label",{className:"directory__stage-button",children:[i.jsx("input",{type:"checkbox",className:"directory__stage-input",checked:N.includes(T.id),onChange:()=>I(T.id)}),i.jsx(Uv,{slug:T.icon,className:"directory__stage-icon"}),i.jsx("span",{className:"directory__stage-name",children:T.name})]}),T.description&&i.jsx("p",{className:"directory__stage-desc",children:T.description})]},T.id))})]})]})]})}IE.propTypes={connections:q.array,pending:q.array,filters:q.object,industry_options:q.array,stage_options:q.array};const _W=Object.freeze(Object.defineProperty({__proto__:null,default:IE},Symbol.toStringTag,{value:"Module"})),wf=20,Sf=200;
421function jW(e){return(e??"").trim().split(/\s+/).filter(Boolean).length}function Vb({isOpen:e,onClose:t,company:n}){const[s,a]=j.useState(""),[l,d]=j.useState(""),[u,f]=j.useState(!1);j.useEffect(()=>{e&&(a(""),d(""))},[e,n?.id]);const h=jW(s),p=h>Sf?"modal__word-count modal__word-count--over":h>0&&h<wf?"modal__word-count modal__word-count--under":"modal__word-count";function g(){if(!u){if(d(""),h===0){d("Please tell us why you'd like this introduction.");return}if(h<wf){d(`Please write at least ${wf} words to support your request.`);return}if(h>Sf){d(`Please keep your message under ${Sf} words.`);return}f(!0),Se.post(`/dashboard/directory/${n.id}/intro`,{motivation:s},{preserveScroll:!0,onSuccess:()=>{a(""),t()},onError:y=>{d(y?.motivation||"Something went wrong. Please try again.")},onFinish:()=>f(!1)})}}return i.jsxs(Wt,{isOpen:e,onClose:()=>!u&&t(),persistent:u,title:"Request introduction",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",disabled:u,onClick:t,children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",disabled:u,onClick:g,children:u?"Sending…":"Send request"})]}),children:[i.jsxs("p",{className:"modal__text",children:["Tell ",i.jsx("strong",{children:n?.name})," why you'd like to connect. A BCCS coordinator will review your request and send a warm introduction on your behalf."]}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"intro-motivation",children:"Why are you requesting this introduction?"}),i.jsx("textarea",{id:"intro-motivation",className:`modal__textarea ${l?"modal__textarea--error":""}`,rows:5,placeholder:"e.g. We're exploring partnership opportunities around cross-border compliance for fintech onboarding…",value:s,onChange:y=>{a(y.target.value),l&&d("")}}),i.jsxs("div",{className:"modal__field-footer",children:[l&&i.jsx("span",{className:"modal__error",children:l}),i.jsxs("span",{className:p,children:[h," / min ",wf," · max ",Sf," words"]})]})]}),i.jsxs("div",{className:"modal__notice",children:[i.jsx(Mz,{size:20,strokeWidth:1.5,"aria-hidden":"true"}),i.jsx("div",{children:i.jsx("p",{className:"modal__notice-text",children:"If approved, you'll get a warm introduction by email. If it's not the right fit, we'll share why."})})]})]})}Vb.propTypes={isOpen:q.bool.isRequired,onClose:q.func.isRequired,company:q.shape({id:q.number,name:q.string})};function BE({street:e,postalCode:t,errors:n={},disabled:s=!1,onChange:a}){return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"modal__field-row",children:[i.jsxs("div",{className:"modal__field-group",children:[i.jsxs("label",{className:"modal__label",htmlFor:"upgrade-street",children:["Office address ",i.jsx("span",{style:{color:"var(--color-error)"},children:"*"})]}),i.jsx("input",{id:"upgrade-street",type:"text",className:"modal__input",value:e,onChange:l=>a("street",l.target.value),placeholder:"Street and number",disabled:s}),n.street&&i.jsx("span",{className:"modal__error",children:n.street})]}),i.jsxs("div",{className:"modal__field-group",children:[i.jsxs("label",{className:"modal__label",htmlFor:"upgrade-postal",children:["Postal code ",i.jsx("span",{style:{color:"var(--color-error)"},children:"*"})]}),i.jsx("input",{id:"upgrade-postal",type:"text",className:"modal__input",value:t,onChange:l=>a("postal_code",l.target.value),placeholder:"e.g. LT-01103",disabled:s}),n.postal_code&&i.jsx("span",{className:"modal__error",children:n.postal_code})]})]}),i.jsx("p",{className:"modal__text",style:{fontSize:13,marginTop:0},children:"We need your invoicing address to prepare the Silver invoice."})]})}const wW=["Full ecosystem access","Priority support","Partner marketplace","Team management"],Nf=20,M0=500;function Ub({isOpen:e,onClose:t,onSuccess:n=null,billingCycle:s="quarterly"}){const{company:a}=rn().props,l=Yt({type:"upgrade",target_tier:"silver",billing_cycle:s,justification:"",attachment:null,street:
421a?.street??"",postal_code:a?.postal_code??""});j.useEffect(()=>{e&&(l.reset(),l.setData(f=>({...f,billing_cycle:s,street:a?.street??"",postal_code:a?.postal_code??""})))},[e]);const d=l.data.justification.length;function u(f){if(f?.preventDefault?.(),l.processing)return;if(l.data.justification.trim().length<Nf){l.setError("justification",`Please write at least ${Nf} characters so we can review your request.`);return}const p={};if(l.data.street.trim()||(p.street="Office address is required."),l.data.postal_code.trim()||(p.postal_code="Postal code is required."),Object.keys(p).length>0){l.setError(p);return}l.post(route("dashboard.plan.request"),{forceFormData:!0,preserveScroll:!0,onSuccess:()=>{l.reset(),t(),n?.()},onError:()=>Ve.error("Failed to submit request.")})}return i.jsxs(Wt,{isOpen:e,onClose:()=>!l.processing&&t(),persistent:l.processing,title:"Request Silver upgrade",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",disabled:l.processing,onClick:t,children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",disabled:l.processing,onClick:u,children:l.processing?"Submitting...":"Submit request"})]}),children:[i.jsx("p",{className:"modal__text",children:"Silver membership gives you full access to the BCCS ecosystem. Your request will be reviewed by the cluster coordinator."}),i.jsx("ul",{className:"modal__list modal__list--criteria",children:wW.map(f=>i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," ",f]},f))}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{htmlFor:"silver-justification",className:"modal__label",children:"Describe how your organization meets these criteria"}),i.jsx("textarea",{id:"silver-justification",className:"modal__textarea",value:l.data.justification,onChange:f=>{l.setData("justification",f.target.value.slice(0,M0)),f.target.value.trim()&&l.errors.justification&&l.clearErrors("justification")},rows:4,maxLength:M0,placeholder:"Tell us about your organization and why you'd like to join as a Silver member...",disabled:l.processing}),i.jsxs("div",{className:"modal__field-footer",children:[l.errors.justification&&i.jsx("span",{className:"modal__error",children:l.errors.justification}),i.jsxs("span",{className:"modal__word-count",style:d>0&&d<Nf?{color:"var(--color-error)"}:void 0,children:[d," / min ",Nf," · max ",M0]})]})]}),i.jsx(BE,{street:l.data.street,postalCode:l.data.postal_code,errors:l.errors,disabled:l.processing,onChange:(f,h)=>{l.setData(f,h),h.trim()&&l.errors[f]&&l.clearErrors(f)}}),i.jsxs("div",{className:"modal__notice",children:[i.jsx(Nt,{name:"info"}),i.jsxs("div",{children:[i.jsxs("p",{className:"modal__notice-text",children:["Please mention in your message which billing cycle you'd like —",i.jsx("strong",{children:" quarterly"})," or ",i.jsx("strong",{children:"annual"})," — so we can prepare the invoice."]}),i.jsxs("p",{className:"modal__notice-text",children:["The cluster coordinator will review your request within ",i.jsx("strong",{children:"5 business days"}),". You'll be notified once a decision is made."]}),i.jsx("p",{className:"modal__notice-text",children:"If approved, you'll be prompted to set up payment to activate your Silver membership."}),i.jsx("p",{className:"modal__notice-text",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"modal__notice-link",children:"View terms & agreement"})})]})]}),l.errors.request&&i.jsx("span",{className:"modal__error",children:l.errors.request})]})}Ub.propTypes={isOpen:q.bool.isRequired,onClose:q.func.isRequired,onSuccess:q.func,billingCycle:q.oneOf(["quarterly","annual"])};const SW={sprout:fb,"trending-up":eh,"shield-check":ub,network:xi,"graduation-cap":db},NW=3;function CW(e,t){if(!t)return e;const n=e.toLowerCase().indexOf(t.toLowerCase());return n===-1?e:i.jsxs(i.Fragment,{children:[e.slice(0,n),i.jsx("strong",{children:e.slice(n,n+t.length)}),e.slice(n+t.length)]})}function Hv({slug:e,className:t}){const n=SW[e]??xi;return i.jsx(n,{className:t,"aria-hidden":"true",strokeWidth:1.5})}
421Hv.propTypes={slug:q.string,className:q.string};function zE({companies:e=[],pagination:t={current_page:1,last_page:1,total:0,has_more:!1,per_page:6},filters:n={search:"",industries:[],stages:[]},industry_options:s=[],stage_options:a=[],viewer_tier:l=null,can_request_intro:d=!1}){const{auth:u,pending_plan_request:f}=rn().props,h=f?.type==="upgrade",[p,g]=j.useState(n.search??""),[y,x]=j.useState(!1),[b,w]=j.useState(-1),S=j.useRef(null),N=j.useRef(null),C=j.useRef(!1),[E,M]=j.useState(!1),[L,R]=j.useState([...n.industries??[]]),[O,k]=j.useState([...n.stages??[]]),[B,I]=j.useState(null),[V,z]=j.useState(!1),K=j.useMemo(()=>({industries:n.industries??[],stages:n.stages??[]}),[n.industries,n.stages]);j.useEffect(()=>{if(C.current){C.current=!1;return}return N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{W({search:p})},300),()=>N.current&&clearTimeout(N.current)},[p]);function W(ce={}){const be={search:ce.search??p,industries:ce.industries??K.industries,stages:ce.stages??K.stages},Ee={};be.search&&(Ee.search=be.search),be.industries.length&&(Ee.industries=be.industries.join(",")),be.stages.length&&(Ee.stages=be.stages.join(",")),Se.get("/dashboard/directory",Ee,{preserveState:!0,preserveScroll:!0,replace:!0})}const Q=j.useMemo(()=>{const ce=p.trim().toLowerCase();return ce?e.map(be=>({company:be,idx:be.name.toLowerCase().indexOf(ce)})).filter(be=>be.idx!==-1).sort((be,Ee)=>be.idx-Ee.idx||be.company.name.localeCompare(Ee.company.name)).slice(0,NW):[]},[e,p]);function D(ce){C.current=!0,g(ce),x(!1),W({search:ce})}function H(ce){ce.key==="ArrowDown"?(ce.preventDefault(),x(!0),w(be=>Math.min(be+1,Q.length-1))):ce.key==="ArrowUp"?(ce.preventDefault(),w(be=>Math.max(be-1,0))):ce.key==="Enter"?(ce.preventDefault(),b>=0&&Q[b]?D(Q[b].company.name):x(!1)):ce.key==="Escape"&&x(!1)}const[U,Z]=j.useState(t.total??0),F=j.useRef(null);j.useEffect(()=>{if(!E)return;if(!L.length&&!O.length){Z(t.total??0);return}F.current?.abort();const ce=new AbortController;F.current=ce;const be=new URLSearchParams;return p&&be.set("search",p),L.length&&be.set("industries",L.join(",")),O.length&&be.set("stages",O.join(",")),be.set("count_only","1"),fetch(`/dashboard/directory?${be.toString()}`,{headers:{Accept:"application/json"},signal:ce.signal,credentials:"same-origin"}).then(Ee=>Ee.ok?Ee.json():Promise.reject(Ee)).then(Ee=>Z(Ee.count??0)).catch(Ee=>{Ee?.name!=="AbortError"&&Z(null)}),()=>ce.abort()},[E,L,O,p,t.total]);function T(ce){R(be=>be.includes(ce)?be.filter(Ee=>Ee!==ce):[...be,ce])}function A(ce){k(be=>be.includes(ce)?be.filter(Ee=>Ee!==ce):[...be,ce])}function Y(){R([]),k([])}function ee(){M(!1),W({industries:L,stages:O})}function te(ce){const be=K.industries.filter(Ee=>Ee!==ce);R(be),W({industries:be})}function ae(ce){const be=K.stages.filter(Ee=>Ee!==ce);k(be),W({stages:be})}function pe(){R([]),k([]),W({industries:[],stages:[]})}function le(ce){if(!d){if(h){Ve.info("Your Silver upgrade request is still under review.");return}z(!0);return}I(ce)}function ve(){const be={page:(t.current_page??1)+1};p&&(be.search=p),K.industries.length&&(be.industries=K.industries.join(",")),K.stages.length&&(be.stages=K.stages.join(",")),Se.get("/dashboard/directory",be,{preserveState:!0,preserveScroll:!0,preserveUrl:!0,only:["companies","pagination"]})}const xe=j.useMemo(()=>{const ce=new Map;return s.forEach(be=>ce.set(be.id,be)),ce},[s]),$e=j.useMemo(()=>{const ce=new Map;return a.forEach(be=>ce.set(be.id,be)),ce},[a]);return i.jsxs(os,{title:"Directory",children:[i.jsx("section",{className:"page directory-page",children:i.jsxs("div",{className:"directory",children:[i.jsx("header",{className:"directory__header",children:i.jsx("h1",{className:"page__title",children:"Directory"})}),i.jsxs("div",{className:"directory__toolbar",children:[i.jsxs("div",{className:"directory__search",children:[i.jsx(V$,{className:"directory__search-icon","aria-hidden":"true"}),i.jsx("input",{ref:S,type:"search",className:"directory__search-input",placeholder:"Search companies…","aria-label":"Search companies",role:"combobox","aria-autocomplete":"list","aria-expanded":y,autoComplete:"off",value:p,onChange:ce=>{g(ce.target.value),x(ce.target.value.trim().length>0)},onFocus:()=>x(p.trim().length>0),onBlur:()=>setTimeout(()=>x(!1),150),onKeyDown:H}),y&&Q.length>0&&i.jsx("ul",{className:"directory__search-suggestions",role:"listbox",children:Q.map((ce,be)=>i.jsxs("li",{className:`directory__search-suggestion ${be===b?"is-active":""}`,role:"option","aria-selected":be===b,onMouseDown:()=>D(ce.company.name),children:[i.jsx("span",{className:"directory__search-suggestion-avatar","aria-hidden":"true",children:ce.company.name.charAt(0).toUpperCase()}),i.jsx("span",{className:"directory__search-suggestion-name",children:CW(ce.company.name,p)})]},ce.company.id))})]}),i.jsxs("button",{type:"button",className:"directory__filters-btn","aria-haspopup":"dialog",onClick:()=>
421{R([...K.industries]),k([...K.stages]),M(!0)},children:[i.jsx(H$,{className:"directory__filters-icon","aria-hidden":"true",strokeWidth:1.5}),"Filters"]})]}),(K.industries.length>0||K.stages.length>0)&&i.jsxs("div",{className:"directory__active-filters",role:"group","aria-label":"Active filters",children:[K.industries.map(ce=>{const be=xe.get(ce);return be?i.jsxs("button",{type:"button",className:"directory__active-filter-chip","aria-label":`Remove ${be.name} filter`,onClick:()=>te(ce),children:[be.name,i.jsx(Ji,{size:14,"aria-hidden":"true"})]},`ind-${ce}`):null}),K.stages.map(ce=>{const be=$e.get(ce);return be?i.jsxs("button",{type:"button",className:"directory__active-filter-chip","aria-label":`Remove ${be.name} filter`,onClick:()=>ae(ce),children:[be.name,i.jsx(Ji,{size:14,"aria-hidden":"true"})]},`stg-${ce}`):null}),i.jsx("button",{type:"button",className:"directory__active-filters-clear",onClick:pe,children:"Clear all"})]}),i.jsxs("p",{className:"directory__count","aria-live":"polite",children:["Showing ",e.length," of ",t.total," members"]}),e.length===0?i.jsx("p",{className:"directory__empty",children:"No companies match your search."}):i.jsx("ul",{className:"directory__list",children:e.map(ce=>i.jsx("li",{children:i.jsxs("article",{className:"directory__card","data-company-name":ce.name,"data-intro-state":ce.intro_state,children:[i.jsxs("div",{className:"directory__card-main",children:[i.jsx("div",{className:"directory__card-logo","aria-hidden":"true",children:ce.logo_url?i.jsx("img",{src:ce.logo_url,alt:`${ce.name} logo`,style:{width:"100%",height:"100%",objectFit:"contain"}}):ce.name.charAt(0).toUpperCase()}),i.jsxs("div",{className:"directory__card-identity",children:[i.jsx("h2",{className:"directory__card-name",children:ce.name}),i.jsxs("div",{className:"directory__card-chips",children:[ce.business_stage&&i.jsxs("span",{className:"directory__card-chip directory__card-chip--stage",children:[i.jsx(Hv,{slug:ce.business_stage.icon,className:"directory__card-chip-icon"}),ce.business_stage.name]}),(ce.industries??[]).map(be=>i.jsx("span",{className:"directory__card-chip directory__card-chip--industry",children:be.name},be.id))]})]}),ce.description&&i.jsx("p",{className:"directory__card-description",children:ce.description})]}),i.jsxs("div",{className:"directory__card-side",children:[i.jsx(Ce,{href:`/dashboard/members/${ce.slug}`,className:"directory__card-view",children:"View profile"}),$W(ce,l,d,le)]})]})},ce.id))}),t.has_more&&i.jsx("button",{type:"button",className:"directory__load-more",onClick:ve,children:"Load more"})]})}),i.jsxs(Wt,{isOpen:E,onClose:()=>M(!1),className:"directory__filters-modal",title:"Filters",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",disabled:L.length===0&&O.length===0,onClick:Y,children:"Clear all"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",disabled:U===0,onClick:ee,children:U===0?"No matches":U===null?"Apply":`View all ${U}`})]}),children:[i.jsxs("section",{className:"directory__filter-group",children:[i.jsx("h2",{className:"directory__filter-heading",children:"Industry"}),i.jsx("ul",{className:"directory__filter-options directory__filter-options--cols-2",role:"group","aria-label":"Industry",children:s.map(ce=>i.jsx("li",{children:i.jsxs("label",{className:"directory__filter-option",children:[i.jsx("input",{type:"checkbox",checked:L.includes(ce.id),onChange:()=>T(ce.id)}),i.jsx("span",{className:"directory__filter-option-name",children:ce.name})]})},ce.id))})]}),i.jsxs("section",{className:"directory__filter-group",children:[i.jsx("h2",{className:"directory__filter-heading",children:"Business stage"}),i.jsx("ul",{className:"directory__filter-options directory__filter-options--buttons",role:"group","aria-label":"Business stage",children:a.map(ce=>i.jsxs("li",{className:"directory__stage",children:[i.jsxs("label",{className:"directory__stage-button",children:[i.jsx("input",{type:"checkbox",className:"directory__stage-input",checked:O.includes(ce.id),onChange:()=>A(ce.id)}),i.jsx(Hv,{slug:ce.icon,className:"directory__stage-icon"}),i.jsx("span",{className:"directory__stage-name",children:ce.name})]}),ce.description&&i.jsx("p",{className:"directory__stage-desc",children:ce.description})]},ce.id))})]})]}),i.jsx(Vb,{isOpen:B!==null,onClose:()=>I(null),company:B}),i.jsx(Ub,{isOpen:V,onClose:()=>z(!1)})]})}function $W(e,t,n,s){const a=e.intro_state;return!n&&t==="bronze"?i.jsx("button",{type:"button",className:"directory__card-intro",onClick:()=>s(e),children:"Upgrade for introduction"}):a==="under-review"?i.jsxs("span",{className:"directory__card-intro directory__card-intro--pill directory__card-intro--pill-review",role:"status",children:[i.jsx(P$,{"aria-hidden":"true"}),"Under review"]}):a==="connected"?i.jsxs("span",{className:"directory__card-intro directory__card-intro--pill directory__card-intro--pill-connected",role:"status",children:[i.jsx(ka,{"aria-hidden":"true"}),"Connected"]}):i.jsx("button",{type:"button",className:"directory__card-intro",onClick:()=>s(e),children:"Get introduction"})}zE.propTypes={companies:q.array,pagination:q.object,filters:q.object,industry_options:q.array,stage_options:q.array,viewer_tier:q.string,can_request_intro:q.bool};const EW=Object.freeze(Object.defineProperty({__proto__:null,default:zE},Symbol.toStringTag,{value:"Module"}));q.arrayOf(q.shape({id:q.string.isRequired,completed:q.bool.isRequired})),q.string,q.func;function TW(){return i.jsxs("section",{className:"home__card home__card--ecosystem",id:"ecosystem-section",children:[i.jsx("img",{className:"home__ecosystem-logo",src:"/images/logoform_dark.svg",width:"494",height:"501",alt:"BCCS"}),i.jsx("h3",{className:"home__ecosystem-title",children:"More is on the way"}),i.jsx("p",{className:"home__ecosystem-desc",children:"New features are coming next quarter:"}),i.jsxs("ul",{className:"home__ecosystem-list",children:[i.jsxs("li",{className:"home__ecosystem-item",children:[i.jsxs("div",{className:"home__ecosystem-item-header",children:[i.jsx(vz,{className:"home__ecosystem-icon icon--lg"}),i.jsx("strong",{className:"home__ecosystem-item-name",children:"Network Hub"})]}),i.jsxs("div",{className:"home__ecosystem-item-content",children:[i.jsx("span",{className:"home__ecosystem-item-desc",children:"Discover who's in the community"}),i.jsxs("ul",{className:"home__ecosystem-features",children:[i.jsx("li",{children:"Search members by role, company, sector, expertise, and location"}),i.jsx("li",{children:"Filter by interests, capabilities, and collaboration goals"}),i.jsx("li",{children:"Rich member profiles with bio, focus areas, and links"}),i.jsx("li",{children:"Highlighted expertise and areas of interest"}),i.jsx("li",{children:"Recommended members based on shared focus or relevance"}),i.jsx("li",{children:"Save members for later"})]})]})]}),i.jsxs("li",{className:"home__ecosystem-item",children:[i.jsxs("div",{className:"home__ecosystem-item-header",children:[i.jsx(Az,{className:"home__ecosystem-icon icon--lg"}),i.jsx("strong",{className:"home__ecosystem-item-name",children:"Guided Introductions"})]}),i.jsxs("div",{className:"home__ecosystem-item-content",children:[i.jsx("span",{className:"home__ecosystem-item-desc",children:"Turn discovery into actual connections"}),i.jsxs("ul",{className:"home__ecosystem-features",children:[i.jsx("li",{children:"Request introductions to relevant members"}),i.jsx("li",{children:"Facilitated matching based on goals and fit"}),i.jsx("li",{children:"Intro notes to explain context and intent"}),i.jsx("li",{children:"Admin review or support for higher-quality matches"}),i.jsx("li",{children:"Mutual opt-in before contact is shared"}),i.jsx("li",{children:"Track intro status from request to completion"})]})]})]})]})]})}function Hb({checklistSteps:e=[],isFirstVisit:t=!1,isAdmin:n=!1,stats:s=null}){const{auth:a,company:l}=rn().props,d=a?.user;j.useRef(null),j.useEffect(()=>{},[t]);const u=d?.name?d.name.split(" ")[0]:"there",f=l?.name??null,h=l?.tier??"bronze",p=h.charAt(0).toUpperCase()+h.slice(1);return n&&s?i.jsxs("div",{className:"home",children:[i.jsx("header",{className:"home__hero",children:i.jsx("h1",{className:"home__hero-greeting",children:"Admin Dashboard"})}),i.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"var(--space-4)"},children:[i.jsx(Ce,{href:route("dashboard.team"),style:{textDecoration:"none",color:"inherit"},children:i.jsxs("div",{className:"company-profile__details-card",style:{padding:"var(--space-6)",textAlign:"center"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:700,color:"var(--color-primary)"},children:s.users}),i.jsx("div",{style:{fontSize:14,color:"var(--color-placeholder)",marginTop:"var(--space-1)"},children:"Total Users"})]})}),i.jsxs("div",{className:"company-profile__details-card",style:{padding:"var(--space-6)",textAlign:"center"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:700,color:"var(--color-primary)"},children:s.companies}),i.jsx("div",{style:{fontSize:14,color:"var(--color-placeholder)",marginTop:"var(--space-1)"},children:"Companies"})]}),i.jsx(Ce,{href:route("dashboard.team"),style:{textDecoration:"none",color:"inherit"},children:i.jsxs("div",{className:"company-profile__details-card",style:{padding:"var(--space-6)",textAlign:"center"},children:[i.jsx("div",{style:{fontSize:32,fontWeight:700,color:s.pendingRequests>0?"var(--color-error, #dc2626)":"var(--color-primary)"},children:s.pendingRequests}),i.jsx("div",{style:{fontSize:14,color:"var(--color-placeholder)",marginTop:"var(--space-1)"},children:"Pending Requests"})]})})]})]}):i.jsxs("div",{className:"home",children:[i.jsxs("header",{className:"home__hero",children:[i.jsxs("h1",{className:"home__hero-greeting",children:["What's on the agenda today, ",i.jsx("span",{className:"home__hero-name",children:u}),"?"]}),i.jsxs("p",{className:"home__hero-context",children:[f&&i.jsx("span",{className:"home__hero-company",children:f}),i.jsx("span",{className:"home__hero-tier-badge","data-tier":p,children:p})]})]}),i.jsx(TW,{})]})}Hb.propTypes={checklistSteps:q.array,isFirstVisit:q.bool,user:q.shape({name:q.string}),company:q.shape({name:q.string,tier:q.string})};Hb.layout=e=>i.jsx(os,{children:e});const AW=Object.freeze(Object.defineProperty({__proto__:null,default:Hb},Symbol.toStringTag,{value:"Module"})),kW={pattern:"(?=[A-Z0-9\\s\\-]*\\d)[A-Z0-9][A-Z0-9\\s\\-]{1,10}[A-Z0-9]",example:""};function VE({isOpen:e,onClose:t,initial:n,postalCodePatterns:s={}}){const a=Yt({name:n?.name??"",street:n?.street??"",postal_code:n?.postal_code??"",city:n?.city??"",country:n?.country??"",company_code:n?.company_code??"",vat_number:n?.vat_number??"",not_vat_payer:!!n?.not_vat_payer,business_id_format_override:!1});j.useEffect(()=>{e&&(a.setData({name:n?.name??"",street:n?.street??"",postal_code:n?.postal_code??"",city:n?.city??"",country:n?.country??"",company_code:n?.company_code??"",vat_number:n?.vat_number??"",not_vat_payer:!!n?.not_vat_payer,business_id_format_override:!1}),a.clearErrors())},[e]);const[l,d]=j.useState(null);j.useEffect(()=>{if(!e||l)return;let w=!0;return TE().then(S=>w&&d(S)).catch(()=>{}),()=>{w=!1}},[e,l]);const u=j.useMemo(()=>AE(a.data.country,l),[a.data.country,l]),f=u.checkCompanyCode(a.data.company_code),h=a.data.not_vat_payer?null:u.checkVat(a.data.vat_number),p=!!a.data.business_id_format_override;function g(w){if(p)return;const S=w==="company_code"?f:h;S?a.setError(w,S):a.clearErrors(w)}j.useEffect(()=>{if(!e)return;function w(N){N.key==="Escape"&&!a.processing&&t()}document.addEventListener("keydown",w);const S=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",w),document.body.style.overflow=S}},[e,a.processing,t]);function y(w){return s[w]??s._default??kW}function x(w,S){const N=y(S);return new RegExp(`^(?:${N.pattern})$`,"i").test((w??"").trim())}function b(w){if(w?.preventDefault?.(),a.processing)return;const S={};if(a.data.name.trim()||(S.name="Company name is required."),a.data.street.trim()||(S.street="Office address is required."),a.data.city.trim()||(S.city="
421City is required."),a.data.country.trim()||(S.country="Country is required."),a.data.company_code.trim()||(S.company_code="Company code is required."),!a.data.postal_code.trim())S.postal_code="Postal code is required.";else if(!x(a.data.postal_code,a.data.country)){const N=y(a.data.country);S.postal_code=N.example?`Enter a valid postal code (e.g. ${N.example}).`:"Enter a valid postal code."}if(!a.data.not_vat_payer&&!a.data.vat_number.trim()&&(S.vat_number='VAT number is required (or tick "Not a VAT payer").'),p||(!S.company_code&&f&&(S.company_code=f),!S.vat_number&&h&&(S.vat_number=h)),Object.keys(S).length>0){a.clearErrors(),a.setError(S);return}a.patch(route("dashboard.plan.billing.update"),{preserveScroll:!0,onSuccess:()=>{Ve.success("Billing details updated."),t()},onError:()=>Ve.error("Could not save billing details.")})}return e?i.jsx("div",{className:"billing-modal__backdrop",role:"presentation",onClick:()=>!a.processing&&t(),children:i.jsxs("div",{className:"billing-modal__dialog",role:"dialog","aria-modal":"true","aria-labelledby":"billing-modal-title",onClick:w=>w.stopPropagation(),children:[i.jsxs("div",{className:"billing-modal__header",children:[i.jsx("h2",{id:"billing-modal-title",className:"billing-modal__title",children:"Edit billing details"}),i.jsx("button",{type:"button",className:"billing-modal__close","aria-label":"Close",onClick:()=>!a.processing&&t(),children:i.jsx(Ji,{size:20})})]}),i.jsxs("form",{className:"billing-modal__body",onSubmit:b,children:[i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-name",className:"billing-modal__label",children:"Company name"}),i.jsx("input",{id:"billing-name",type:"text",className:`billing-modal__input${a.errors.name?" billing-modal__input--error":""}`,value:a.data.name,onChange:w=>a.setData("name",w.target.value),disabled:a.processing}),a.errors.name&&i.jsx("span",{className:"billing-modal__error",children:a.errors.name})]}),i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-country",className:"billing-modal__label",children:"Country"}),i.jsx(dh,{id:"billing-country",value:a.data.country,onChange:w=>a.setData("country",w??""),invalid:!!a.errors.country}),a.errors.country&&i.jsx("span",{className:"billing-modal__error",children:a.errors.country})]}),i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-street",className:"billing-modal__label",children:"Office address"}),i.jsx("input",{id:"billing-street",type:"text",className:`billing-modal__input${a.errors.street?" billing-modal__input--error":""}`,value:a.data.street,onChange:w=>a.setData("street",w.target.value),disabled:a.processing}),a.errors.street&&i.jsx("span",{className:"billing-modal__error",children:a.errors.street})]}),i.jsxs("div",{className:"billing-modal__row",children:[i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-postal",className:"billing-modal__label",children:"Postal code"}),i.jsx("input",{id:"billing-postal",type:"text",className:`billing-modal__input${a.errors.postal_code?" billing-modal__input--error":""}`,value:a.data.postal_code,onChange:w=>a.setData("postal_code",w.target.value),placeholder:y(a.data.country).example||"",disabled:a.processing}),a.errors.postal_code&&i.jsx("span",{className:"billing-modal__error",children:a.errors.postal_code})]}),i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-city",className:"billing-modal__label",children:"City"}),i.jsx("input",{id:"billing-city",type:"text",className:`billing-modal__input${a.errors.city?" billing-modal__input--error":""}`,value:a.data.city,onChange:w=>a.setData("city",w.target.value),disabled:a.processing}),a.errors.city&&i.jsx("span",{className:"billing-modal__error",children:a.errors.city})]})]}),i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-company-code",className:"billing-modal__label",children:"Company code"}),i.jsx("input",{id:"billing-company-code",type:"text",className:`billing-modal__input${a.errors.company_code?" billing-modal__input--error":""}`,value:a.data.company_code,onChange:w=>a.setData("company_code",w.target.value),onBlur:()=>g("company_code"),disabled:a.processing}),u.companyCodeHint&&!a.errors.company_code&&i.jsx("span",{className:"billing-modal__hint",children:u.companyCodeHint}),a.errors.company_code&&i.jsx("span",{className:"billing-modal__error",children:a.errors.company_code})]}),i.jsxs("div",{className:"billing-modal__field",children:[i.jsx("label",{htmlFor:"billing-vat",className:"billing-modal__label",children:"VAT number"}),i.jsx("input",{id:"billing-vat",type:"text",className:`billing-modal__input${a.errors.vat_number?" billing-modal__input--error":""}`,value:a.data.vat_number,onChange:w=>a.setData("vat_number",w.target.value),onBlur:()=>g("vat_number"),disabled:a.processing||a.data.not_vat_payer}),u.vatHint&&!a.data.not_vat_payer&&!a.errors.vat_number&&i.jsx("span",{className:"billing-modal__hint",children:u.vatHint}),i.jsxs("label",{className:"billing-modal__checkbox",children:[i.jsx("input",{type:"checkbox",checked:a.data.not_vat_payer,onChange:w=>{const S=w.target.checked;a.setData("not_vat_payer",S),S&&(a.setData("vat_number",""),a.clearErrors("vat_number"))},disabled:a.processing}),i.jsx("span",{children:"Not a VAT payer"})]}),a.errors.vat_number&&i.jsx("span",{className:"billing-modal__error",children:a.errors.vat_number})]}),(f||h||p)&&i.jsxs("label",{className:"billing-modal__checkbox",children:[i.jsx("input",{type:"checkbox",checked:p,onChange:w=>{a.setData("business_id_format_override",w.target.checked),w.target.checked&&a.clearErrors("company_code","vat_number")},disabled:a.processing}),i.jsx("span",{children:"My number is correct, continue anyway (we will double-check it manually)"})]}),i.jsxs("div",{className:"billing-modal__footer",children:[i.jsx("button",{type:"button",className:"billing-modal__btn billing-modal__btn--secondary",onClick:t,disabled:a.processing,children:"Cancel"}),i.jsx("button",{type:"submit",className:"billing-modal__btn billing-modal__btn--primary",disabled:a.processing,children:a.processing?"Saving…":"Save changes"})]})]})]})}):null}VE.propTypes={isOpen:q.bool.isRequired,onClose:q.func.isRequired,initial:q.shape({name:q.string,street:q.string,postal_code:q.string,city:q.string,country:q.string,vat_number:q.string,not_vat_payer:q.bool}),postalCodePatterns:q.object};const MW=[{key:"bronze",name:"Bronze",description:"Basic access to the BCCS directory and limited ecosystem features.",features:[{label:"Directory listing",included:!0},{label:"Basic ecosystem access",included:!0},{label:"Priority support",included:!1},{label:"Partner marketplace",included:!1}],hasBillingToggle:!1,priceQuarterly:null,priceAnnual:null},{key:"silver",name:"Silver",description:"Full access to the BCCS ecosystem, priority support, and partner marketplace.",features:[{label:"Full ecosystem access",included:!0},{label:"Priority support",included:!0},{label:"Partner marketplace",included:!0},{label:"Team management",included:!0}],hasBillingToggle:!0,priceQuarterly:"€100",priceAnnual:"€90"}
421,{key:"gold",name:"Gold",description:"Exclusive benefits for long-standing, high-contribution members.",features:[{label:"Everything in Silver",included:!0},{label:"Exclusive events",included:!0},{label:"Advisory board access",included:!0},{label:"Featured directory listing",included:!0}],hasBillingToggle:!0,priceQuarterly:"€100",priceAnnual:"€90"}],OW=[];function qb({currentTier:e="bronze",companyName:t="",billingCycle:n=null,planExpires:s=null,goldEligibleAt:a=null,plans:l=[],invoices:d=[],paymentMethod:u=null,subscriptionStatus:f="active",cancelledAt:h=null,accessEndsAt:p=null,pendingRequest:g=null,billing:y=null,postal_code_patterns:x={}}){const{auth:b}=rn().props,S=(b?.user?.roles??[]).includes("owner"),N=l.length>0?l.map(fe=>({key:fe.slug,name:fe.name,description:fe.description,features:(fe.features||[]).map(ze=>typeof ze=="string"?{label:ze,included:!0}:ze),hasBillingToggle:!fe.is_free,priceQuarterly:fe.is_free?null:`€${(fe.price_quarterly/100).toFixed(0)}`,priceAnnual:fe.is_free?null:`€${(fe.price_annual/100).toFixed(0)}`})):MW,C=d.length>0?d:OW,[E,M]=j.useState("quarterly"),[L,R]=j.useState("quarterly"),[O,k]=j.useState(!1),[B,I]=j.useState(!1),[V,z]=j.useState(!1),[K,W]=j.useState(!1),[Q,D]=j.useState(""),[H,U]=j.useState(""),[Z,F]=j.useState(null),[T,A]=j.useState(""),[Y,ee]=j.useState(!1),te=Yt({type:"",target_tier:"",billing_cycle:"",justification:"",attachment:null,street:"",postal_code:""}),ae=rn().props.company,pe=T==="upgrade"&&Z==="silver",le=Yt({attachment:null,justification:""}),ve=te.data.justification.length,xe=50,$e=500,ce=["silver","gold"].includes(e);function be(fe){const ze=["bronze","silver","gold"].indexOf(fe),Ge=["bronze","silver","gold"].indexOf(e);return ze<Ge||e==="gold"||fe==="gold"||fe==="silver"}function Ee(fe,ze){F(fe),A(ze);const mt={type:ze,target_tier:fe,billing_cycle:fe==="silver"?E:fe==="gold"?L:null,justification:"",attachment:null,street:
421ae?.street??"",postal_code:ae?.postal_code??""};if(te.setData(mt),be(fe)){I(!0);return}Se.post(route("dashboard.plan.request"),mt,{onSuccess:()=>{F(null),te.reset()},onError:()=>Ve.error("Failed to submit request.")})}function ke(fe){fe.preventDefault();const ze=te.data.justification.trim();if(e==="gold"||Z==="gold"){if(!ze){te.setError("justification","Please describe your reason.");return}if(ze.length<xe){te.setError("justification",`Justification must be at least ${xe} characters.`);return}}if(pe){const mt={};if(te.data.street.trim()||(mt.street="Office address is required."),te.data.postal_code.trim()||(mt.postal_code="Postal code is required."),Object.keys(mt).length>0){te.setError(mt);return}}te.post(route("dashboard.plan.request"),{forceFormData:!0,onSuccess:()=>{I(!1),F(null),te.reset()},onError:()=>Ve.error("Failed to submit request.")})}function Le(fe){if(fe.preventDefault(),!le.data.attachment){le.setError("attachment","Please upload your signed contract.");return}le.post(route("dashboard.plan.resubscribe"),{forceFormData:!0,onSuccess:()=>{W(!1),le.reset()},onError:()=>Ve.error("Failed to submit resubscribe request.")})}function Ne(fe){return N.findIndex(ze=>ze.key===fe)}function Ue(fe){const ze=fe.key===e,Ge=Ne(fe.key),mt=Ne(e),wt=Ge>mt,vn=Ge<mt,wn=g&&g.target_tier===fe.key?g.status:null;if(ze)return f==="pending"?i.jsx("button",{className:"plan__option-btn plan__option-btn--secondary",disabled:!0,children:"Request pending"}):f==="cancelled"?i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"plan__option-btn plan__option-btn--primary",onClick:()=>S&&W(!0),disabled:!S,children:"Resubscribe"}),i.jsxs("span",{className:"plan__option-status",children:["Cancelled — access until ",p||"end of period"]})]}):i.jsx("button",{className:"plan__cancel-btn",onClick:()=>S&&z(!0),disabled:!S,children:"Cancel membership"});if(vn)return i.jsxs("button",{className:"plan__option-btn plan__option-btn--secondary",onClick:()=>S&&Ee(fe.key,"downgrade"),disabled:!S||!!g,children:["Switch to ",fe.name]});if(wt){if(fe.key==="gold"&&e==="bronze")return i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"plan__option-btn plan__option-btn--disabled",disabled:!0,children:"Request upgrade"}),i.jsx("span",{className:"plan__option-status",children:"Silver membership required"})]});if(fe.key==="gold"&&e==="silver"&&a){const ii=new Date(a);if(new Date<ii){const Si=ii.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});return i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"plan__option-btn plan__option-btn--disabled",disabled:!0,children:"Request upgrade"}),i.jsxs("span",{className:"plan__option-status",children:["Eligible for Gold on ",Si]})]})}}return wn==="pending"?i.jsx("button",{className:"plan__option-btn plan__option-btn--disabled",disabled:!0,children:"Request pending"}):i.jsx("button",{className:"plan__option-btn plan__option-btn--primary",onClick:()=>S&&Ee(fe.key,"upgrade"),disabled:!S||!!g,children:fe.key==="silver"?"Upgrade to Silver":"Request upgrade"})}return null}function Te(fe){return fe==="silver"?E:fe==="gold"?L:"quarterly"}function Ze(fe){if(!fe.hasBillingToggle)return i.jsx("div",{className:"plan__option-pricing",children:i.jsx("span",{className:"plan__option-price",children:"Free"})});const Ge=Te(fe.key)==="annual"?fe.priceAnnual:fe.priceQuarterly;return i.jsxs("div",{className:"plan__option-pricing",children:[i.jsx("span",{className:"plan__option-price",children:Ge}),i.jsx("span",{className:"plan__option-cycle",children:"/month"}),i.jsx("span",{className:"plan__option-vat",children:"+ VAT if applicable"})]})}function vt(fe){if(!fe.hasBillingToggle)return i.jsx("div",{className:"plan__option-toggle"});const ze=Te(fe.key),Ge=fe.key==="silver"?M:R;return i.jsxs("div",{className:"plan__option-toggle plan__billing-toggle","data-toggle-for":fe.key,children:[i.jsx("button",{type:"button",className:`plan__billing-toggle-btn${ze==="quarterly"?" plan__billing-toggle-btn--active":""}`,onClick:()=>Ge("quarterly"),children:"Quarterly"}),i.jsx("button",{type:"button",className:`plan__billing-toggle-btn${ze==="annual"?" plan__billing-toggle-btn--active":""}`,onClick:()=>Ge("annual"),children:"Annual"})]})}return O||C.slice(0,4),i.jsxs("div",{className:"company-profile",children:[i.jsxs("div",{className:"company-profile__subpage-header",children:[i.jsxs("button",{type:"button",className:"company-profile__back-btn",onClick:()=>Se.visit(route("dashboard.company")),children:[i.jsx(xm,{size:16,strokeWidth:1.5}),"Back to profile"]}),i.jsx("h3",{className:"company-profile__subpage-title",children:"Manage plan"})]}),i.jsx("h3",{className:"plan__section-title",id:"plan-options",children:"Plan options"}),i.jsx("div",{className:"plan__options",children:N.map(fe=>{const ze=fe.key===e;return i.jsxs("div",{className:`plan__option${ze?" plan__option--current":""}`,children:[ze&&i.jsx("div",{className:"plan__option-badge plan__option-badge--current",children:i.jsx("span",{children:"Current plan"})}),i.jsx("h4",{className:"plan__option-name",children:fe.name}),i.jsx("p",{className:"plan__option-description",children:fe.description}),vt(fe),Ze(fe),Ue(fe),i.jsx("span",{className:"plan__option-status"}),i.jsx("div",{className:"plan__option-separator"}),i.jsx("ul",{className:"plan__option-features",children:fe.features.map((Ge,mt)=>i.jsxs("li",{className:`plan__option-feature plan__option-feature--${Ge.included?"included":"excluded"}`,children:[Ge.included?i.jsx(ka,{size:14,strokeWidth:2}):i.jsx(Ji,{size:14,strokeWidth:2}),Ge.label]},mt))})]},fe.key)})}),y&&ce&&i.jsxs(i.Fragment,{children:[i.jsx("h3",{className:"plan__section-title",id:"plan-billing",children:"Billing details"}),i.jsx("section",{className:"plan__billing-details plan__billing-details--single",children:i.jsxs("div",{className:"plan__billing-col",children:[i.jsx("h4",{className:"plan__billing-col-title",children:"Invoice recipient"}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("span",{className:"company-profile__label",children:"Company"}),i.jsx("span",{className:"company-profile__value",children:y.name||"Not set"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("span",{className:"company-profile__label",children:"Address"}),i.jsx("span",{className:"company-profile__value",children:y.street?i.jsxs(i.Fragment,{children:[y.street,i.jsx("br",{}
421),[y.postal_code,y.city].filter(Boolean).join(" ")||"—"]}):"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("span",{className:"company-profile__label",children:"Country"}),i.jsx("span",{className:"company-profile__value",children:y.country||"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("span",{className:"company-profile__label",children:"Company code"}),i.jsx("span",{className:"company-profile__value",children:y.company_code||"—"})]}),i.jsxs("div",{className:"company-profile__field",children:[i.jsx("span",{className:"company-profile__label",children:"VAT number"}),i.jsx("span",{className:"company-profile__value",children:y.not_vat_payer?"Not a VAT payer":y.vat_number||"—"})]}),S&&i.jsx("button",{type:"button",className:"plan__billing-edit-btn",onClick:()=>ee(!0),children:"Edit billing details"})]})})]}),!1,i.jsxs(Wt,{isOpen:B,onClose:()=>I(!1),title:T==="downgrade"?`Downgrade to ${Z?Z.charAt(0).toUpperCase()+Z.slice(1):""}?`:`Request ${Z?Z.charAt(0).toUpperCase()+Z.slice(1):""} upgrade`,footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>I(!1),children:"Cancel"}),i.jsx("button",{type:"button",className:`modal__btn ${T==="downgrade"?"modal__btn--danger":"modal__btn--primary"}`,onClick:ke,disabled:te.processing,children:te.processing?"Submitting...":T==="downgrade"?"Confirm downgrade":"Submit request"})]}),children:[T==="downgrade"&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"modal__text",children:["If you switch to ",Z?Z.charAt(0).toUpperCase()+Z.slice(1):"",", you'll lose access to the following features at the end of your current agreement:"]}),i.jsxs("ul",{className:"modal__list modal__list--warning",children:[e==="gold"&&Z==="silver"&&i.jsxs(i.Fragment,{children:[i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Exclusive events"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Advisory board access"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Featured directory listing"]})]}),Z==="bronze"&&i.jsxs(i.Fragment,{children:[i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Priority support"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Partner marketplace"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Team management"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"x",className:"icon--sm"})," Full ecosystem access"]})]})]})]}),T==="upgrade"&&i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"modal__text",children:Z==="silver"?"Silver membership gives you full access to the BCCS ecosystem. Your request will be reviewed by the cluster coordinator.":"Gold membership is awarded by the BCCS board to members who demonstrate exceptional contribution to the ecosystem. Your request will be evaluated against the following criteria:"}),te.data.billing_cycle&&i.jsxs("p",{className:"modal__text",style:{fontSize:13,color:"var(--color-placeholder)"},children:["Selected billing: ",i.jsx("strong",{style:{color:"var(--color-black)"},children:te.data.billing_cycle.charAt(0).toUpperCase()+te.data.billing_cycle.slice(1)})]}),i.jsxs("ul",{className:"modal__list modal__list--criteria",children:[Z==="silver"&&i.jsxs(i.Fragment,{children:[i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Full ecosystem access"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Priority support"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Partner marketplace"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Team management"]})]}),Z==="gold"&&i.jsxs(i.Fragment,{children:[i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Active membership duration and engagement"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Contributions to the BCCS ecosystem"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Community involvement and collaboration"]}),i.jsxs("li",{className:"modal__list-item",children:[i.jsx(Nt,{name:"check",className:"icon--sm"})," Industry impact and innovation"]})]})]})]}),pe&&i.jsx(BE,{street:te.data.street,postalCode:te.data.postal_code,errors:te.errors,disabled:te.processing,onChange:(fe,ze)=>{te.setData(fe,ze),ze.trim()&&te.errors[fe]&&te.clearErrors(fe)}}),i.jsxs("div",{className:"modal__field-group",children:[i.jsxs("label",{htmlFor:"justification",className:"modal__label",children:[T==="downgrade"?"Reason for downgrade":"Describe how your organization meets these criteria",T==="downgrade"&&i.jsx("span",{className:"modal__label-optional",children:" (optional)"})]}),i.jsx("textarea",{id:"justification",className:"modal__textarea",value:te.data.justification,onChange:fe=>{te.setData("justification",fe.target.value.slice(0,$e)),fe.target.value.trim()&&te.errors.justification&&te.clearErrors("justification")},rows:3,maxLength:$e,placeholder:T==="downgrade"?"Help us understand your decision...":"Tell the board why your organization qualifies for Gold membership..."}),i.jsxs("div",{className:"modal__field-footer",children:[te.errors.justification&&i.jsx("span",{className:"modal__error",children:te.errors.justification}),i.jsxs("span",{className:"modal__word-count",style:(e==="gold"||Z==="gold")&&ve<xe?{color:"var(--color-error)"}:void 0,children:[ve," / ",$e," max"]})]})]}),T==="downgrade"&&i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label modal__label--or",children:"Or attach a document"}),i.jsxs("label",{className:"modal__upload",htmlFor:"downgrade-attachment",children:[i.jsx(Nt,{name:"upload"}),i.jsx("span",{className:"modal__upload-text",children:te.data.attachment?.name??"Click to upload or drag and drop"}),i.jsx("span",{className:"modal__upload-hint",children:".pdf, .doc, .docx — max 10 MB"}),i.jsx("input",{id:"downgrade-attachment",type:"file",className:"modal__upload-input",accept:".pdf,.doc,.docx",onChange:fe=>{const ze=fe.target.files?.[0]??null;te.setData("attachment",ze)}})]}),te.errors.attachment&&i.jsx("span",{className:"modal__error",children:te.errors.attachment})]}),i.jsxs("div",{className:"modal__notice",children:[i.jsx(Nt,{name:"info"}),i.jsxs("div",{children:[T==="downgrade"&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"modal__notice-text",children:["You'll stay on ",e?e.charAt(0).toUpperCase()+e.slice(1):"",s?` until ${s.replace(/^\(until\s+/,"").replace(/\)$/,"")}`:"",", then move to ",Z?Z.charAt(0).toUpperCase()+Z.slice(1):"",". No refund is issued for the remainder of the current billing cycle."]}),i.jsx("p",{className:"modal__notice-text",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"modal__notice-link",children:"View terms & agreement"})})]}),T==="upgrade"&&Z==="silver"&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"modal__notice-text",children:["The cluster coordinator will review your request within ",i.jsx("strong",{children:"5 business days"}),". You'll be notified once a decision is made."]}),i.jsx("p",{className:"modal__notice-text",children:"If approved, you'll be prompted to set up payment to activate your Silver membership."}),i.jsx("p",{className:"modal__notice-text",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"modal__notice-link",children:"View terms & agreement"})})]}),T==="upgrade"&&Z==="gold"&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"modal__notice-text",children:["The board reviews requests within ",i.jsx("strong",{children:"5 business days"}),". You'll be notified within ",i.jsx("strong",{children:"3 business days"})," of the decision."]}),i.jsx("p",{className:"modal__notice-text",children:"If approved, a BCCS Joint Activity Agreement will be sent for signature. Your plan updates once the agreement is signed and confirmed."}),i.jsx("p",{className:"modal__notice-text",children:i.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"modal__notice-link",children:"View terms & agreement"})})]})]})]}),te.errors.request&&i.jsx("span",{className:"modal__error",children:te.errors.request})]}),i.jsxs(Wt,{isOpen:V,onClose:()=>z(!1),title:"Cancel membership?",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>z(!1),children:"Keep membership"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--danger",onClick:()=>{const fe=Q.trim();if(!fe){U("Please describe your reason for cancelling.");return}if(fe.length<xe){U(`Reason must be at least ${xe} characters.`);return}Se.post(route("dashboard.plan.cancel"),{reason:Q},{onSuccess:()=>{z(!1),D(""),U("")},onError:()=>Ve.error("Failed to cancel membership.")})},children:"Cancel membership"})]}),children:[i.jsx("p",{className:"modal__text",children:"Are you sure you want to cancel your BCCS membership? This action cannot be undone."}),e!=="bronze"&&i.jsxs("div",{className:"modal__retention",children:[i.jsx("p",{className:"modal__retention-text",children:"Not ready to leave completely?"}),i.jsxs("div",{className:"modal__retention-actions",style:{display:"flex",gap:"var(--space-2)",marginTop:"var(--space-2)"},children:[e==="gold"&&i.jsx("button",{type:"button",className:"modal__retention-btn modal__retention-btn--primary",onClick:()=>{z(!1),Ee("silver","downgrade")},children:"Switch to Silver instead"}),i.jsx("button",{type:"button",className:"modal__retention-btn modal__retention-btn--primary",onClick:()=>{z(!1),Ee("bronze","downgrade")},children:"Switch to Bronze instead"})]})]}),i.jsxs("div",{className:"modal__field-group",children:[i.jsxs("label",{className:"modal__label",htmlFor:"cancel-reason",children:["Reason for cancelling ",i.jsx("span",{className:"modal__label-optional",children:"(optional)"})]}),i.jsx("textarea",{id:"cancel-reason",className:"modal__textarea",rows:3,maxLength:$e,placeholder:"Help us understand your decision...",value:Q,onChange:fe=>{D(fe.target.value.slice(0,$e)),fe.target.value.trim().length>=xe&&U("")}}),i.jsxs("div",{className:"modal__field-footer",children:[H&&i.jsx("span",{className:"modal__error",children:H}),i.jsxs("span",{className:"modal__word-count",style:Q.length<xe?{color:"var(--color-error)"}:void 0,children:[Q.length," / ",xe," min (",$e," max)"]})]})]}),e==="bronze"&&i.jsxs("div",{className:"modal__notice modal__notice--warning",children:[i.jsx(Nt,{name:"alert-circle"}),i.jsxs("p",{className:"modal__notice-text",children:[i.jsx("strong",{children:"You will lose access to the BCCS Dashboard"})," and all member features."]})]}),e!=="bronze"&&i.jsxs("div",{className:"modal__notice",children:[i.jsx(Nt,{name:"info"}),i.jsxs("div",{children:[i.jsx("p",{className:"modal__notice-text",children:"Your membership will end at the end of the current billing cycle. No refunds are issued for the current period."}),i.jsxs("p",{className:"modal__notice-text",children:["Questions? Email ",i.jsx("a",{href:"mailto:[email protected]",className:"modal__notice-link",children:"[email protected]"})," or ",i.jsx("a",{href:"/terms",className:"modal__notice-link",target:"_blank",rel:"noopener noreferrer",children:"view terms & agreement"}),"."]})]})]})]}),i.jsxs(Wt,{isOpen:K,onClose:()=>W(!1),title:`Resubscribe to ${e?e.charAt(0).toUpperCase()+e.slice(1):""}
421?`,footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>W(!1),children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:Le,disabled:le.processing||!le.data.attachment,children:le.processing?"Submitting...":"Submit resubscribe request"})]}),children:[i.jsx("p",{className:"modal__text",children:"Resubscribing requires a new signed BCCS agreement. Upload the signed contract below — a cluster coordinator will review and reactivate your membership."}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",children:"Signed contract"}),i.jsxs("label",{className:"modal__upload",htmlFor:"resubscribe-attachment",children:[i.jsx(Nt,{name:"upload"}),i.jsx("span",{className:"modal__upload-text",children:le.data.attachment?.name??"Click to upload or drag and drop"}),i.jsx("span",{className:"modal__upload-hint",children:".pdf, .doc, .docx — max 10 MB"}),i.jsx("input",{id:"resubscribe-attachment",type:"file",className:"modal__upload-input",accept:".pdf,.doc,.docx",onChange:fe=>{const ze=fe.target.files?.[0]??null;le.setData("attachment",ze),ze&&le.clearErrors("attachment")}})]}),le.errors.attachment&&i.jsx("span",{className:"modal__error",children:le.errors.attachment})]}),i.jsxs("div",{className:"modal__field-group",children:[i.jsxs("label",{htmlFor:"resubscribe-justification",className:"modal__label",children:["Notes for the coordinator ",i.jsx("span",{className:"modal__label-optional",children:"(optional)"})]}),i.jsx("textarea",{id:"resubscribe-justification",className:"modal__textarea",rows:3,maxLength:$e,placeholder:"Anything the coordinator should know...",value:le.data.justification,onChange:fe=>le.setData("justification",fe.target.value.slice(0,$e))}),i.jsxs("div",{className:"modal__field-footer",children:[le.errors.justification&&i.jsx("span",{className:"modal__error",children:le.errors.justification}),i.jsxs("span",{className:"modal__word-count",children:[le.data.justification.length," / ",$e," max"]})]})]}),le.errors.request&&i.jsx("span",{className:"modal__error",children:le.errors.request})]}),i.jsx(VE,{isOpen:Y,onClose:()=>ee(!1),initial:y,postalCodePatterns:x})]})}qb.layout=e=>i.jsx(os,{breadcrumbs:[{label:"Dashboard",href:route("dashboard.home")},{label:"Company Profile",href:route("dashboard.company")},{label:"Manage Plan"}],children:e});qb.propTypes={currentTier:q.string.isRequired,companyName:q.string,pendingRequest:q.shape({id:q.number,type:q.string,target_tier:q.string,status:q.string,created_at:q.string})};const RW=Object.freeze(Object.defineProperty({__proto__:null,default:qb},Symbol.toStringTag,{value:"Module"}));function PW(e){if(!e)return e;const t=String(e).trim();return!t||/^https?:\/\//i.test(t)?t:`https://${t}`}const DW={sprout:fb,"trending-up":eh,"shield-check":ub,network:xi,"graduation-cap":db},LW={network:xi,shield:U$,receipt:z$,"credit-card":L$,sparkles:q$,code:D$,"messages-square":I$},FW={name:"",avatar:"?",website:null,stage:null,industries:[],about:null,proficiencies:[],certifications:[],clients:[],caseStudies:[],team:[],similar:[]};function IW(e){return e?e.charAt(0).toUpperCase():"?"}function BW({slug:e,className:t}){const n=DW[e]??eh;return i.jsx(n,{className:t,"aria-hidden":"true",strokeWidth:1.5})}function zW({slug:e,className:t}){const n=LW[e]??xi;return i.jsx(n,{className:t,"aria-hidden":"true",strokeWidth:1.5})}function VW({profileCompany:e}){const t={...FW,...e??{}},{company:n,pending_plan_request:s}=rn().props,a=n?.tier??"bronze",l=a==="bronze",d=a==="silver"||a==="gold",u=s?.type==="upgrade",f=!!t.about&&t.about.trim()!=="",h=(t.proficiencies?.length??0)>0,p=(t.certifications?.length??0)>0,g=(t.clients?.length??0)>0,y=(t.caseStudies?.length??0)>0,x=(t.team?.length??0)>0,b=(t.similar?.length??0)>0,w=f||h||p||g||y,S=t.intro_state==="connected",N="overview",[C,E]=j.useState(N),M=C,[L,R]=j.useState(!1),[O,k]=j.useState(!1);function B(){if(l){if(u){Ve.info("Your Silver upgrade request is still under review.");return}R(!0);return}k(!0)}return i.jsxs(os,{title:t.name,children:[i.jsx("section",{className:"page member-profile-page",children:i.jsxs("div",{className:"member-profile","data-company-name":t.name,children:[i.jsxs("section",{className:"member-profile__header",children:[i.jsx("div",{className:`member-profile__header-band${t.cover_image_url?" member-profile__header-band--has-image":""}`,style:t.cover_image_url?{backgroundImage:`url(${t.cover_image_url})`}:void 0}),i.jsxs("div",{className:"member-profile__header-body",children:[i.jsx("div",{className:"member-profile__header-avatar","aria-hidden":"true",children:t.logo_url?i.jsx("img",{src:t.logo_url,alt:`${t.name} logo`,style:{width:"100%",height:"100%",objectFit:"contain"}}):t.avatar}),i.jsxs("div",{className:"member-profile__header-identity",children:[i.jsx("h1",{className:"member-profile__name",children:t.name}),i.jsxs("div",{className:"member-profile__chips",children:[t.stage&&i.jsxs("span",{className:"member-profile__chip member-profile__chip--stage",children:[i.jsx(BW,{slug:t.stage.
421icon,className:"member-profile__chip-icon"}),t.stage.name]}),t.industries.map(I=>i.jsx("span",{className:"member-profile__chip member-profile__chip--industry",children:I},I))]})]}),i.jsxs("div",{className:"member-profile__header-actions",children:[t.website&&i.jsxs("a",{className:"member-profile__btn member-profile__btn--secondary",href:PW(t.website),target:"_blank",rel:"noopener noreferrer",children:[i.jsx(wz,{"aria-hidden":"true",strokeWidth:1.5}),"Visit website"]}),t.intro_state==="under-review"?i.jsxs("span",{className:"member-profile__btn member-profile__btn--review",role:"status",children:[i.jsx(P$,{"aria-hidden":"true",strokeWidth:1.5}),"Under review"]}):t.intro_state==="connected"?i.jsxs("span",{className:"member-profile__btn member-profile__btn--connected",role:"status",children:[i.jsx(ka,{"aria-hidden":"true",strokeWidth:1.5}),"Connected"]}):i.jsx("button",{className:"member-profile__btn member-profile__btn--primary",type:"button","data-action":"request-intro","data-company-name":t.name,onClick:B,children:l?"Upgrade for introduction":"Get introduction"})]})]})]}),i.jsxs("div",{className:"member-profile__layout",children:[i.jsxs("nav",{className:"member-profile__tabs",role:"tablist","aria-label":"Profile sections",children:[i.jsx("button",{className:`member-profile__tab${M==="overview"?" member-profile__tab--active":""}`,type:"button",role:"tab","data-subpage":"overview","aria-selected":M==="overview",onClick:()=>E("overview"),children:"Overview"}),i.jsx("button",{className:`member-profile__tab${M==="team"?" member-profile__tab--active":""}`,type:"button",role:"tab","data-subpage":"team","aria-selected":M==="team",onClick:()=>E("team"),children:"Team"})]}),i.jsxs("main",{className:"member-profile__main",children:[i.jsxs("div",{className:"member-profile__panel","data-subpage-view":"overview",role:"tabpanel",hidden:M!=="overview",children:[!w&&i.jsx("section",{className:"member-profile__empty",children:i.jsxs("p",{className:"member-profile__empty-text",children:[t.name," hasn't shared any profile details yet."]})}),f&&i.jsxs("section",{className:"member-profile__section",children:[i.jsx("h2",{className:"member-profile__section-title",children:"About"}),i.jsx("p",{className:"member-profile__about",children:t.about})]}),h&&i.jsxs("section",{className:"member-profile__section",children:[i.jsx("h2",{className:"member-profile__section-title",children:"Proficiencies"}),i.jsx("div",{className:"member-profile__proficiencies",children:t.proficiencies.map(I=>i.jsxs("div",{className:"member-profile__proficiency",children:[i.jsxs("h3",{className:"member-profile__proficiency-category",children:[i.jsx(zW,{slug:I.icon,className:"member-profile__proficiency-icon"}),I.category]}),I.skills.length>0&&i.jsx("ul",{className:"member-profile__proficiency-skills",children:I.skills.map(V=>i.jsx("li",{className:"member-profile__chip member-profile__chip--skill",children:V},V))})]},I.category))})]}),p&&i.jsxs("section",{className:"member-profile__section",children:[i.jsx("h2",{className:"member-profile__section-title",children:"Certifications & Standards"}),i.jsx("ul",{className:"member-profile__certs",children:t.certifications.map(I=>i.jsx("li",{className:"member-profile__cert-card",children:i.jsxs("div",{className:"member-profile__cert-body",children:[i.jsx("h4",{className:"member-profile__cert-name",children:I.name}),i.jsxs("p",{className:"member-profile__cert-meta",children:[i.jsx("span",{className:"member-profile__cert-issuer",children:I.issuer}),i.jsx("span",{className:"member-profile__cert-date",children:I.date})]})]})},I.name))})]}),g&&i.jsxs("section",{className:"member-profile__section",children:[i.jsx("h2",{className:"member-profile__section-title",children:"Notable clients & partners"}),i.jsx("ul",{className:"member-profile__clients",children:t.clients.map(I=>i.jsx("li",{className:"member-profile__chip member-profile__chip--client",children:I},I))})]}),y&&i.jsxs("section",{className:"member-profile__section",children:[i.jsx("h2",{className:"member-profile__section-title",children:"Case Studies"}),i.jsx("ul",{className:"member-profile__case-studies",children:t.caseStudies.map((I,V)=>i.jsx("li",{children:i.jsxs("article",{className:"member-profile__case-card",children:[i.jsx("div",{className:`member-profile__case-image${I.image_url?"":" member-profile__case-image--placeholder"}`,style:I.image_url?{backgroundImage:`url(${I.image_url})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,children:!I.image_url&&i.jsx("h4",{className:"member-profile__case-client member-profile__case-client--on-placeholder",children:I.client})}),i.jsxs("div",{className:"member-profile__case-body",children:[i.jsx("h4",{className:"member-profile__case-client",children:I.client}),i.jsx("p",{className:"member-profile__case-description",children:I.description}),I.link&&i.jsxs("a",{className:"member-profile__case-link",href:I.link,target:"_blank",rel:"noopener noreferrer",children:["Read full case study",i.jsx(xm,{"aria-hidden":"true",strokeWidth:1.5})]})]})]})},V))})]})]}),i.jsx("div",{className:"member-profile__panel","data-subpage-view":"team",role:"tabpanel",hidden:M!=="team",children:x?i.jsx("ul",{className:"member-profile__team",children:t.team.map(I=>i.jsx("li",{children:i.jsxs("article",{className:"member-profile__team-card",children:[i.jsx("div",{className:"member-profile__team-avatar","aria-hidden":"true",children:I.avatar_url?i.jsx("img",{src:I.avatar_url,alt:"",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"inherit"}}):I.initials}),i.jsxs("div",{className:"member-profile__team-identity",children:[i.jsx("h3",{className:"member-profile__team-name",children:I.name}),i.jsx("p",{className:"member-profile__team-role",children:I.role})]}),d&&S&&i.jsxs("div",{className:"member-profile__team-contacts","data-silver-plus":!0,children:[i.jsx("a",{className:"member-profile__team-contact",href:`mailto:${I.email}`,"aria-label":`Email ${I.name}`,children:i.jsx(F$,{"aria-hidden":"true",strokeWidth:1.5})}),i.jsx("a",{className:"member-profile__team-contact",href:I.linkedin,target:"_blank",rel:"noopener noreferrer","aria-label":`LinkedIn profile of ${I.name}`,children:i.jsx(Nt,{name:"linkedin"})})]})]})},I.email))}):i.jsx("section",{className:"member-profile__empty",children:i.jsxs("p",{className:"member-profile__empty-text",children:[t.name," has no team members listed yet."]})})})]}),i.jsxs("aside",{className:"member-profile__aside","aria-label":"Profile sidebar",children:[b&&i.jsxs("section",{className:"member-profile__similar",children:[i.jsx("h3",{className:"member-profile__similar-title",children:"Similar members"}),i.jsx("ul",{className:"member-profile__similar-list",children:t.similar.map(I=>i.jsx("li",{children:i.jsxs("article",{className:"member-profile__similar-card",children:[i.jsxs("div",{className:"member-profile__similar-head",children:[i.jsx("div",{className:"member-profile__similar-avatar","aria-hidden":"true",children:I.logo_url?i.jsx("img",{src:I.logo_url,alt:"",style:{width:"100%",height:"100%",objectFit:"contain"}}):I.initial??IW(I.name)}),i.jsx("h4",{className:"member-profile__similar-name",children:I.name}),i.jsx(Ce,{href:`/dashboard/members/${I.slug}`,className:"member-profile__similar-btn","aria-label":`View ${I.name} profile`,children:i.jsx(xm,{"aria-hidden":"true",strokeWidth:1.5})})]}),i.jsx("p",{className:"member-profile__similar-reason",children:I.reason})]})},I.slug??I.name))})]}),l&&i.jsxs("section",{className:"member-profile__upgrade","data-bronze-only":!0,
421children:[i.jsx("div",{className:"member-profile__upgrade-icon","aria-hidden":"true",children:i.jsx(xz,{strokeWidth:1.5})}),i.jsx("h3",{className:"member-profile__upgrade-title",children:"Unlock more with Silver"}),i.jsx("p",{className:"member-profile__upgrade-text",children:"Send introduction requests, contact team members directly and gain access to other full ecosystem features."}),i.jsx("button",{className:"member-profile__upgrade-btn",type:"button","data-modal-trigger":"modal-upgrade-silver",onClick:()=>{if(u){Ve.info("Your Silver upgrade request is still under review.");return}R(!0)},children:"Upgrade to Silver"})]})]})]})]})}),i.jsx(Vb,{isOpen:O,onClose:()=>k(!1),company:{id:t.id,name:t.name}}),i.jsx(Ub,{isOpen:L,onClose:()=>R(!1)})]})}const UW=Object.freeze(Object.defineProperty({__proto__:null,default:VW},Symbol.toStringTag,{value:"Module"}));function UE({planRequest:e,plan:t,companyName:n}){const s=e.type==="downgrade";function a(){Se.post(route("dashboard.mock-payment.process",e.id))}function l(){Se.visit(route("dashboard.plan"))}return i.jsx("div",{className:"company-profile",children:i.jsxs("div",{className:"company-profile__view",children:[i.jsxs("div",{className:"company-profile__subpage-header",children:[i.jsxs("button",{className:"company-profile__back-btn",onClick:l,children:[i.jsx(Nt,{name:"arrow-right",className:"sidebar__nav-icon"}),"Back to plans"]}),i.jsx("h3",{className:"company-profile__subpage-title",children:"Confirm plan change"})]}),i.jsx("section",{className:"company-profile__details-card",style:{maxWidth:600,margin:"0 auto"},children:i.jsxs("div",{style:{padding:"var(--space-6)",textAlign:"center"},children:[i.jsxs("h2",{style:{fontSize:20,fontWeight:600,marginBottom:"var(--space-2)"},children:[s?"Downgrade":"Upgrade"," to ",t.name]}),i.jsx("p",{style:{color:"var(--color-placeholder)",marginBottom:"var(--space-4)"},children:t.description}),i.jsx("p",{style:{fontSize:24,fontWeight:700,marginBottom:"var(--space-2)"},children:t.price}),i.jsxs("p",{style:{color:"var(--color-placeholder)",fontSize:13,marginBottom:"var(--space-8)"},children:["for ",n]}),i.jsxs("div",{style:{display:"flex",gap:"var(--space-3)",justifyContent:"center"},children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:l,children:"Cancel"}),i.jsxs("button",{type:"button",className:`modal__btn ${s?"modal__btn--danger":"modal__btn--primary"}`,onClick:a,children:["Confirm ",s?"downgrade":"payment"]})]}),i.jsx("p",{style:{color:"var(--color-placeholder)",fontSize:12,marginTop:"var(--space-4)"},children:"Mock payment — no real charge. Replace with Stripe in production."})]})})]})})}UE.layout=e=>i.jsx(os,{children:e});const HW=Object.freeze(Object.defineProperty({__proto__:null,default:UE},Symbol.toStringTag,{value:"Module"}));function qW({size:e=16,strokeWidth:t=1.5}){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),i.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),i.jsx("circle",{cx:"4",cy:"4",r:"2"})]})}const OS=5;function RS(e){return e?e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2):""}function Gb({members:e=[],pendingInvites:t=[],isAdmin:n=!1,groups:s=[],total:a=0,filters:l={search:"",status:[],tier:[],request:[],member_from:null,member_to:null}}){const[d,u]=j.useState(l.search??"");j.useEffect(()=>{if(!n||d===(l.search??""))return;const we=setTimeout(()=>{Se.get(route("dashboard.team"),{...l,search:d},{preserveState:!0,preserveScroll:!0,only:["groups","filters","total"]})},300);return()=>clearTimeout(we)},[d]);const{auth:f}=rn().props,h=f?.user?.roles??[],p=h.includes("owner"),g=p,y=p||h.includes("member"),[x,b]=j.useState(!1),[w,S]=j.useState(!1),[N,C]=j.useState(null),[E,M]=j.useState(null),[L,R]=j.useState(!1),O=new Date().toISOString().slice(0,10),[k,B]=j.useState(null),[I,V]=j.useState({plan_started_at:O,plan_expires_at:"",billing_cycle:"quarterly"}),[z,K]=j.useState({}),[W,Q]=j.useState(!1),[D,H]=j.useState(null),[U,Z]=j.useState(!1),[F,T]=j.useState({plan_started_at:"",plan_expires_at:""}),[A,Y]=j.useState(!1),[ee,te]=j.useState(null),[ae,pe]=j.useState(""),[le,ve]=j.useState(!1),[xe,$e]=j.useState(null),[ce,be]=j.useState(null),[Ee,ke]=j.useState(!1),[Le,Ne]=j.useState(null),[Ue,Te]=j.useState("");function Ze(we){Ee||(ke(!0),Se.post(route("dashboard.introductions.approve",we),{},{preserveScroll:!0,onSuccess:()=>{be(je=>
421je&&{...je,pendingIntros:je.pendingIntros.filter(Be=>Be.id!==we),pendingIntroCount:je.pendingIntroCount-1})},onFinish:()=>ke(!1)}))}function vt(we,je){Ee||(ke(!0),Se.post(route("dashboard.introductions.reject",we),{review_notes:je??""},{preserveScroll:!0,onSuccess:()=>{be(Be=>Be&&{...Be,pendingIntros:Be.pendingIntros.filter(Ut=>Ut.id!==we),pendingIntroCount:Be.pendingIntroCount-1}),Ne(null),Te("")},onFinish:()=>ke(!1)}))}const[fe,ze]=j.useState(null),[Ge,mt]=j.useState(!1),[wt,vn]=j.useState(""),[cn,wn]=j.useState(!1);async function ii(we){$e(we),vn(""),mt(!0),ze(null);try{const je=await fetch(route("dashboard.companies.show",we.company_id),{headers:{Accept:"application/json"},credentials:"same-origin"});if(!je.ok)throw new Error(`HTTP ${je.status}`);ze(await je.json()),mt(!1)}catch{Ve.error("Failed to load company details. Try refreshing the page."),mt(!1),$e(null),ze(null)}}function wi(){cn||($e(null),ze(null),vn(""))}function Si(){xe?.pendingRequest&&(wn(!0),Se.post(route("dashboard.plan-requests.approve",xe.pendingRequest.id),{},{onSuccess:()=>{wn(!1),wi()},onError:we=>{wn(!1),Ve.error(we?.request||"Failed to approve.")}}))}function Ni(){xe?.pendingRequest&&(wn(!0),Se.post(route("dashboard.plan-requests.reject",xe.pendingRequest.id),{reason:wt.trim()||null},{onSuccess:()=>{wn(!1),wi()},onError:we=>{wn(!1),Ve.error(we?.request||"Failed to decline.")}}))}function dn(){ee&&(ve(!0),Se.post(route("dashboard.plan-requests.reject",ee.id),{reason:ae.trim()||null},{onSuccess:()=>{te(null),pe(""),ve(!1)},onError:()=>{ve(!1),Ve.error("Failed to reject request.")}}))}function js(){k&&(Q(!0),Se.post(route("dashboard.plan-requests.approve",k.id),{},{onSuccess:()=>{B(null),Q(!1)},onError:we=>{K(we),Q(!1)}}))}async function un(we){Z(!0),H({id:we});try{const je=await fetch(route("dashboard.companies.show",we),{headers:{Accept:"application/json"},credentials:"same-origin"});if(!je.ok)throw new Error(`HTTP ${je.status}`);const Be=await je.json();H(Be),T({plan_started_at:Be.plan_started_at??"",plan_expires_at:Be.plan_expires_at??""})}catch{Ve.error("Failed to load company details"),H(null)}finally{Z(!1)}}function ul(){if(!D?.id)return;Y(!0);const we={plan_started_at:F.plan_started_at||null,plan_expires_at:F.plan_expires_at||null};Se.patch(route("dashboard.companies.update-dates",D.id),we,{onSuccess:()=>{H(null),Y(!1)},onError:()=>Y(!1)})}const he=Yt({email:"",role:"member"}),[Me,Pe]=j.useState({}),[et,Sn]=j.useState(!1),Vs=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function nr(we){const je=(we??he.data.email).trim();if(!je)return"Enter an email address";if(!Vs.test(je))return"Enter a valid email address";const Be=je.toLowerCase();return e.find(tt=>tt.email?.toLowerCase()===Be)?"This person is already a member":t.find(tt=>tt.email?.toLowerCase()===Be)?"An invite has already been sent to this address":null}function Yr(){if(!he.data.email.trim())return;Sn(!0);const we=nr();Pe(we?{email:we}:{})}function uh(we){if(he.setData("email",we),et){const je=nr(we);Pe(je?{email:je}:{})}}const ls=Yt({role:""});j.useEffect(()=>{if(E===null)return;function we(je){je.target.closest(".team__actions")||M(null)}return document.addEventListener("mousedown",we),()=>document.removeEventListener("mousedown",we)},[E]);function fl(we){we.preventDefault();const je=nr();if(je){Sn(!0),Pe({email:je});return}he.post(route("dashboard.team.invite"),{onSuccess:()=>{b(!1),he.reset(),Pe({}),Sn(!1)},onError:Be=>{Be.email&&Pe({email:Be.email})}})}function sr(we){we.preventDefault(),ls.patch(route("dashboard.team.update-role",N.id),{onSuccess:()=>{S(!1),C(null),Ve.show({message:"Role updated.",type:"success"})},onError:()=>Ve.show({message:"Failed to update role.",type:"error"})})}const[Kr,Xr]=j.useState(null),[Zr,Va]=j.useState(!1);function fn(we,je,Be={}){M(null),Xr({type:we,member:je,...Be})}function Ua(){Zr||Xr(null)}function Id(){if(!Kr)return;const{type:we,member:je,companyId:Be,reason:Ut}=Kr;Va(!0);const Pt=()=>{Va(!1),Xr(null)},tt=(ht,ge)=>{const We=ht?.role||ht?.error||ht?.email||ht?.company||ge;Ve.error(We),Va(!1)};we==="deactivate"?Se.patch(route("dashboard.team.deactivate",je.id),{},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to deactivate member.")}):we==="reactivate"?Se.patch(route("dashboard.team.reactivate",je.id),{},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to reactivate member.")}):we==="remove"?Se.delete(route("dashboard.team.remove",je.id),{onSuccess:Pt,onError:ht=>tt(ht,"Failed to remove member.")}):we==="make-owner"?Se.post(route("dashboard.team.transfer-ownership",je.id),{},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to transfer ownership.")}):we==="company-deactivate"?Se.patch(route("dashboard.companies.deactivate",Be),{reason:Ut?.trim()||null},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to suspend company.")}
421):we==="company-reactivate"?Se.patch(route("dashboard.companies.reactivate",Be),{},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to reactivate company.")}):we==="company-revoke"?Se.post(route("dashboard.companies.revoke",Be),{reason:Ut?.trim()||null},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to revoke plan.")}):we==="company-unrevoke"&&Se.post(route("dashboard.companies.unrevoke",Be),{},{onSuccess:Pt,onError:ht=>tt(ht,"Failed to reinstate membership.")})}function Bd(we){Se.post(route("dashboard.team.resend-invite",we.id),{},{onSuccess:()=>{},onError:()=>Ve.show({message:"Failed to resend invitation.",type:"error"})}),M(null)}function ri(we){M(null),Se.delete(route("dashboard.team.revoke-invite",we.id),{onSuccess:()=>{},onError:()=>Ve.error("Failed to revoke invitation.")})}function an(we){M(null),Se.delete(route("dashboard.team.revoke-invite",we.id),{onSuccess:()=>{},onError:()=>Ve.error("Failed to remove invitation.")})}const mn=f?.user?.id,Ci=e.find(we=>we.id===mn),ml=e.filter(we=>we.id!==mn),Ha=[...Ci?[Ci]:[],...ml,...t.map(we=>({...we,_isInvite:!0}))],fh=L?Ha:Ha.slice(0,OS),zd=Ha.length>OS;function ir(){if(!Kr)return null;const{type:we,member:je,companyLabel:Be,previousOwnerName:Ut,reason:Pt,selfDemotion:tt}=Kr,ht=Be?` from ${Be}`:"",We={"make-owner":we==="make-owner"&&tt?{title:"Transfer ownership?",primary:"Transfer ownership",danger:!0,body:i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"modal__text",children:["You are about to transfer ownership to ",i.jsx("strong",{children:je?.name}),". They will have full control over this company account, including billing, plan management, and the ability to remove any member."]}),i.jsxs("div",{className:"modal__notice modal__notice--warning",children:[i.jsx(R$,{size:20,strokeWidth:1.5}),i.jsxs("p",{className:"modal__notice-text",children:[i.jsx("strong",{children:"This action cannot be undone."})," You will be demoted to Member."]})]})]})}:{title:"Promote to owner",primary:"Make owner",danger:!1,body:Ut?`Promote ${je?.name} to owner${Be?" of "+Be:""}? Current owner ${Ut} will become a member.`:`Promote ${je?.name} to owner${Be?" of "+Be:""}?`},deactivate:{title:"Deactivate member",primary:"Deactivate",danger:!1,body:`Deactivate ${je?.name}? They'll keep team membership but lose access until reactivated.`},reactivate:{title:"Reactivate member",primary:"Reactivate",danger:!1,body:`Reactivate ${je?.name}? They'll be restored as a member.`},remove:{title:"Remove member",primary:"Remove",danger:!0,body:`Remove ${je?.name}${ht}? They'll need to be re-invited to rejoin.`},"company-deactivate":{title:"Deactivate company",primary:"Deactivate",danger:!1,body:`Deactivate ${Be}? All members lose access until renewed. The owner will be emailed about the outstanding payment.`,withReason:!0},"company-reactivate":{title:"Renew company membership",primary:"Renew",danger:!1,body:`Renew ${Be}? All members regain access immediately.`},"company-revoke":{title:"Revoke plan",primary:"Revoke plan",danger:!0,body:`Revoke ${Be}'s plan? Access is cut immediately and the company is cancelled. The owner will be emailed. This is the final step — only use it after warnings have failed.`,withReason:!0},"company-unrevoke":{title:"Reinstate membership",primary:"Reinstate",danger:!1,body:`Reinstate ${Be}? All members regain access immediately and the owner will be emailed.`}}[we];return i.jsxs(Wt,{isOpen:!0,onClose:Ua,title:We.title,footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:Ua,disabled:Zr,children:"Cancel"}),i.jsx("button",{type:"button",className:`modal__btn ${We.danger?"modal__btn--danger":"modal__btn--primary"}`,onClick:Id,disabled:Zr,children:Zr?"Working…":We.primary})]}),children:[typeof We.body=="string"?i.jsx("p",{className:"modal__text",children:We.body}):We.body,We.withReason&&i.jsxs("div",{className:"modal__field-group",style:{marginTop:"var(--space-3)"},children:[i.jsx("label",{className:"modal__label",htmlFor:"confirm-reason",children:"Optional note for the owner"}),i.jsx("textarea",{id:"confirm-reason",className:"modal__textarea",rows:3,value:Pt??"",onChange:Qe=>Xr({...Kr,reason:Qe.target.value.slice(0,1e3)}),placeholder:"e.g. Invoice INV-2026-04 — please remit to restore access.",maxLength:1e3})]})]})}if(n){let we=function(ge){Se.get(route("dashboard.team"),ge,{preserveState:!0,preserveScroll:!0,only:["groups","filters","total"]})},je=function(){u(""),we({search:"",status:[],tier:[],request:[],member_from:null,member_to:null})};const Be=[{value:"active",label:"Active"},{value:"pending",label:"Pending"},{value:"past_due",label:"Suspended"},{value:"revoked",label:"Revoked"}],Ut=[{value:"bronze",label:"Bronze"},{value:"silver",label:"Silver"},{value:"gold",label:"Gold"}
421],Pt=[{value:"registration",label:"New membership"},{value:"upgrade",label:"Plan upgrade"},{value:"downgrade",label:"Plan downgrade"},{value:"resubscribe",label:"Resubscribe"}],tt=l.status.length>0||l.tier.length>0||l.request.length>0||!!l.member_from||!!l.member_to||!!l.search,ht=(ge,We,Qe)=>{const qn=l[We]??[],Us=qn.length===0?ge:qn.length===1?`${ge}: ${Qe.find(Dn=>Dn.value===qn[0])?.label??qn[0]}`:`${ge} (${qn.length})`;return i.jsx(Am,{value:qn,onChange:Dn=>we({...l,[We]:Dn}),multiple:!0,children:i.jsxs("div",{className:"team__filter",children:[i.jsxs(ud,{className:`team__filter-btn${qn.length>0?" team__filter-btn--active":""}`,children:[i.jsx("span",{children:Us}),i.jsx(id,{size:14,strokeWidth:1.5})]}),i.jsx(fd,{anchor:"bottom start",className:"team__filter-options",children:Qe.map(Dn=>i.jsx(Go,{value:Dn.value,className:"team__filter-option",children:({selected:rr})=>i.jsxs(i.Fragment,{children:[i.jsx("span",{className:`team__filter-checkbox${rr?" team__filter-checkbox--checked":""}`,children:rr&&i.jsx(ka,{size:12,strokeWidth:2.5})}),i.jsx("span",{children:Dn.label})]})},Dn.value))})]})})};return i.jsxs("div",{className:"team",children:[i.jsx("div",{className:"team__header",children:i.jsx("h1",{className:"page__title",children:"Team"})}),i.jsxs("section",{className:"team__filters",children:[i.jsx("input",{type:"search",className:`team__filter-date team__filter-search${l.search?" team__filter-date--active":""}`,placeholder:"Search companies or members…","aria-label":"Search companies or members",value:d,onChange:ge=>u(ge.target.value)}),ht("Status","status",Be),ht("Tier","tier",Ut),ht("Request","request",Pt),i.jsxs("div",{className:"team__filter-dates",children:[i.jsx("label",{className:"team__filter-date-label",htmlFor:"member-from",children:"Member since"}),i.jsx("input",{id:"member-from",type:"date",className:`team__filter-date${l.member_from?" team__filter-date--active":""}`,value:l.member_from??"",onChange:ge=>we({...l,member_from:ge.target.value||null})}),i.jsx("span",{className:"team__filter-date-sep",children:"–"}),i.jsx("input",{id:"member-to",type:"date","aria-label":"Member since (to)",className:`team__filter-date${l.member_to?" team__filter-date--active":""}`,value:l.member_to??"",onChange:ge=>we({...l,member_to:ge.target.value||null})})]}),tt&&i.jsx("button",{type:"button",className:"team__filter-clear",onClick:je,children:"Clear filters"}),i.jsxs("span",{className:"team__filter-count","aria-live":"polite",children:["Showing ",s.length," of ",a," teams"]}
421)]}),s.length===0&&i.jsx("section",{className:"team__table-wrap",children:i.jsx("div",{style:{textAlign:"center",padding:"var(--space-6)",color:"var(--color-placeholder)"},children:tt?"No companies match the current filters.":"No active, pending, or suspended companies to show."})}),s.map((ge,We)=>i.jsxs("div",{style:{marginBottom:"var(--space-6)"},children:[i.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"var(--space-3)"},children:[i.jsxs("h2",{style:{fontSize:14,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.04em",color:"var(--color-placeholder)",display:"flex",alignItems:"center",gap:"var(--space-2)"},children:[ge.label,ge.tier&&i.jsx("span",{className:`team__badge team__badge--${ge.tier}`,children:ge.tier.charAt(0).toUpperCase()+ge.tier.slice(1)}),ge.company_id&&ge.subscription_status&&i.jsx("span",{className:`team__badge team__badge--${ge.subscription_status}`,children:ge.revoked_by_admin&&ge.subscription_status==="cancelled"?"Revoked":ge.subscription_status==="pending"?"Pending Approval":ge.subscription_status==="past_due"?"Past Due":ge.subscription_status.charAt(0).toUpperCase()+ge.subscription_status.slice(1)}),ge.pendingRequest&&i.jsx("span",{className:"team__badge team__badge--pending",children:"1 pending request"}),ge.pendingIntroCount>0&&i.jsxs("span",{className:"team__badge team__badge--intro",children:[ge.pendingIntroCount," intro request",ge.pendingIntroCount===1?"":"s"]})]}),ge.company_id&&(ge.pendingRequest||ge.pendingIntroCount>0)&&i.jsxs("div",{className:"team__review-actions",children:[ge.pendingRequest&&i.jsx("button",{type:"button",className:"team__review-btn",onClick:()=>ii(ge),children:"Review plan"}),ge.pendingIntroCount>0&&i.jsx("button",{type:"button",className:"team__review-btn",onClick:()=>be(ge),children:"Review intros"})]}),ge.company_id&&!ge.pendingRequest&&!(ge.pendingIntroCount>0)&&i.jsxs("div",{className:"team__actions",children:[i.jsx("button",{type:"button",className:"team__actions-trigger team__actions-trigger--outlined","aria-label":"Company actions","aria-expanded":E===`company-${ge.company_id}`,onClick:()=>M(E===`company-${ge.company_id}`?null:`company-${ge.company_id}`),children:i.jsx(uf,{size:16,strokeWidth:1.5})}),E===`company-${ge.company_id}`&&i.jsxs("div",{className:"team__actions-menu",children:[i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>{M(null),un(ge.company_id)},children:"View details"}),i.jsx("a",{href:route("dashboard.companies.membership-pdf",ge.company_id),className:"team__actions-item",onClick:()=>M(null),children:"Download membership PDF"}),ge.subscription_status==="active"&&i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("company-deactivate",null,{companyId:ge.company_id,companyLabel:ge.label}),children:"Deactivate"}),ge.subscription_status==="past_due"&&i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("company-reactivate",null,{companyId:ge.company_id,companyLabel:ge.label}),children:"Renew"}),(ge.subscription_status==="active"||ge.subscription_status==="past_due")&&i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>fn("company-revoke",null,{companyId:ge.company_id,companyLabel:ge.label}),children:"Revoke plan"}),ge.revoked_by_admin&&ge.subscription_status==="cancelled"&&i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("company-unrevoke",null,{companyId:ge.company_id,companyLabel:ge.label}),children:"Reinstate"})]})]})]}),i.jsx("section",{className:"team__table-wrap",children:i.jsxs("table",{className:"team__table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Member"}),i.jsx("th",{children:"Title"}),i.jsx("th",{children:"Role"}),i.jsx("th",{className:"team__th--right",children:i.jsx("span",{className:"sr-only",children:"Actions"})})]})}),i.jsx("tbody",{children:ge.members.map(Qe=>{const qn=Qe.id===f?.user?.id,Us=Qe.status==="deactivated",Dn=`team__avatar${Us?" team__avatar--deactivated":""}`,rr=`team__name${Us?" team__name--deactivated":""}`,Hs=`admin-member-${Qe.id}`;return i.jsxs("tr",{children:[i.jsx("td",{children:i.jsxs("div",{className:"team__member",children:[Qe.avatar_url?i.jsx("img",{src:Qe.avatar_url,alt:Qe.name,className:Dn}):i.jsx("div",{className:Dn,children:Qe.initials??Qe.name.split(" ").map(ar=>ar[0]).join("").toUpperCase()}),i.jsxs("div",{className:"team__member-info",children:[i.jsxs("span",{className:rr,children:[Qe.name,qn&&i.jsxs(i.Fragment,{children:[" ",i.jsx("span",{className:"team__you",children:"(you)"})]})]}),i.jsx("span",{className:"team__email",children:Qe.email})]})]})}),i.jsx("td",{children:Qe.job_title||i.jsx(i.Fragment,{children:"—"})}),i.jsx("td",{children:Us?i.jsx("span",{className:"team__badge team__badge--deactivated",children:"Deactivated"}):i.jsx("span",{className:`team__badge team__badge--${Qe.role}`,children:Qe.role.charAt(0).toUpperCase()+Qe.role.slice(1)})}),i.jsx("td",{className:"team__td--right",children:qn?i.jsx(i.Fragment,{children:"—"}):i.jsxs("div",{className:"team__actions",children:[i.jsx("button",{type:"button",className:"team__actions-trigger","aria-label":"Member actions","aria-expanded":E===Hs,onClick:()=>M(E===Hs?null:Hs),children:i.jsx(uf,{size:16,strokeWidth:1.5})}),E===Hs&&i.jsx("div",{className:"team__actions-menu",children:Us?i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("reactivate",Qe,{companyLabel:ge.label}),children:"Reactivate"}),i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>fn("remove",Qe,{companyLabel:ge.label}),children:"Remove member"})]}):i.jsxs(i.Fragment,{children:[Qe.role!=="owner"&&i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>{const ar=ge.members.find(qs=>qs.role==="owner");fn("make-owner",Qe,{companyLabel:ge.label,previousOwnerName:ar?.name})},children:"Make owner"}),i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("deactivate",Qe,{companyLabel:ge.label}),children:"Deactivate"}),i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>fn("remove",Qe,{companyLabel:ge.label}),children:"Remove member"})]})})]})})]},Qe.id)})})]})})]},We)),w&&N&&i.jsxs(Wt,{isOpen:w,onClose:()=>S(!1),title:"Change role",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>S(!1),children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:sr,disabled:ls.processing,children:"Save"})]}),children:[i.jsxs("p",{className:"modal__text",children:["Change role for ",i.jsx("strong",{children:N.name})]}),i.jsxs("select",{className:"user-settings__select",value:ls.data.role,onChange:ge=>ls.setData("role",ge.target.value),children:[i.jsx("option",{value:"owner",children:"Owner"}),i.jsx("option",{value:"member",children:"Member"})]})]}),k&&i.jsx(Wt,{isOpen:!0,onClose:()=>
421B(null),title:"Approve plan",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>B(null),children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:js,disabled:W,children:W?"Approving…":"Approve"})]}),children:i.jsxs("p",{className:"modal__text",children:["Approve ",i.jsx("strong",{children:k.target_tier.charAt(0).toUpperCase()+k.target_tier.slice(1)})," plan",k.type==="registration"?" registration":" upgrade",["silver","gold"].includes(k.target_tier)&&k.billing_cycle?` — billed ${k.billing_cycle}.`:"."]})}),D&&i.jsx(Wt,{isOpen:!0,onClose:()=>H(null),title:U?"Loading…":`${D.name??"Company"} details`,footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>H(null),children:"Close"}),!U&&i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:ul,disabled:A,children:A?"Saving…":"Save dates"})]}),children:U?i.jsx("p",{className:"modal__text",children:"Loading…"}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,marginBottom:16},children:[i.jsxs("div",{children:[i.jsx("strong",{children:"Tier:"})," ",D.tier]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Billing:"})," ",D.billing_cycle??"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Status:"})," ",D.subscription_status]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Industry:"})," ",D.industry||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Company type:"})," ",D.company_type||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Legal form:"})," ",D.legal_form||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Billing address:"})," ",[D.street,[D.postal_code,D.city].filter(Boolean).join(" ")].filter(Boolean).join(", ")||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Company registration code:"})," ",D.company_code||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"VAT number:"})," ",D.not_vat_payer?"Not a VAT payer":D.vat_number||"—"]}),D.business_id_format_override&&i.jsxs("div",{style:{gridColumn:"1 / -1",color:"var(--color-error)"},children:[i.jsx("strong",{children:"Check the numbers:"})," the company registration code or VAT number did not match ",D.country||"the country","'s format — the applicant confirmed it is correct."]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Country:"})," ",D.country||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"City:"})," ",D.city||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Size:"})," ",D.size||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Website:"})," ",D.website||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Email:"})," ",D.email||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Member since:"})," ",D.member_since||"—"]}),D.cancelled_at&&i.jsxs("div",{children:[i.jsx("strong",{children:"Cancelled at:"})," ",D.cancelled_at]})]}),i.jsxs("div",{className:"modal__field-row",children:[i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"details-start",children:"Plan starts"}),i.jsx("input",{id:"details-start",type:"date",className:"modal__input",value:F.plan_started_at,onChange:ge=>T({...F,plan_started_at:ge.target.value})})]}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"details-end",children:"Plan expires"}),i.jsx("input",{id:"details-end",type:"date",className:"modal__input",value:F.plan_expires_at,onChange:ge=>T({...F,plan_expires_at:ge.target.value})})]})]})]})}),xe&&i.jsx(Wt,{isOpen:!0,onClose:wi,title:xe.pendingRequest?.type==="registration"?"Review registration":xe.pendingRequest?.type==="upgrade"?"Review plan upgrade":xe.pendingRequest?.type==="downgrade"?"Review plan downgrade":"Review request",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--danger",onClick:Ni,disabled:cn||Ge,children:cn?"Working…":"Decline"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:Si,disabled:cn||Ge,children:cn?"Working…":"Approve"})]}),children:Ge||!fe?i.jsx("p",{className:"modal__text",children:"Loading…"}):i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"modal__text",style:{marginBottom:"var(--space-3)"},children:[i.jsx("strong",{children:fe.name})," — ",xe.pendingRequest.type==="upgrade"||xe.pendingRequest.type==="downgrade"?i.jsxs(i.Fragment,{children:["plan ",xe.pendingRequest.type," from ",i.jsx("strong",{children:(fe.tier??"").charAt(0).toUpperCase()+(fe.tier??"").slice(1)})," to ",i.jsx("strong",{children:xe.pendingRequest.target_tier.charAt(0).toUpperCase()+xe.pendingRequest.target_tier.slice(1)})]}):i.jsxs(i.Fragment,{children:["requested ",i.jsx("strong",{children:xe.pendingRequest.target_tier.charAt(0).toUpperCase()+xe.pendingRequest.target_tier.slice(1)})," ",xe.pendingRequest.type==="registration"?"membership":xe.pendingRequest.type]}),xe.pendingRequest.billing_cycle&&i.jsxs(i.Fragment,{children:[" — billed ",i.jsx("strong",{children:xe.pendingRequest.billing_cycle})]}),"."]}),i.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"var(--space-2) var(--space-4)",marginBottom:"var(--space-4)",fontSize:13},children:[i.jsxs("div",{children:[i.jsx("strong",{children:"Industry:"})," ",fe.industry||"—"]}
421),i.jsxs("div",{children:[i.jsx("strong",{children:"Company type:"})," ",fe.company_type||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Legal form:"})," ",fe.legal_form||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Country:"})," ",fe.country||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"City:"})," ",fe.city||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Size:"})," ",fe.size||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Website:"})," ",fe.website||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Email:"})," ",fe.email||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Billing address:"})," ",[fe.street,[fe.postal_code,fe.city].filter(Boolean).join(" ")].filter(Boolean).join(", ")||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"Company registration code:"})," ",fe.company_code||"—"]}),i.jsxs("div",{children:[i.jsx("strong",{children:"VAT number:"})," ",fe.not_vat_payer?"Not a VAT payer":fe.vat_number||"—"]}),fe.business_id_format_override&&i.jsxs("div",{style:{gridColumn:"1 / -1",color:"var(--color-error)"},children:[i.jsx("strong",{children:"Check the numbers:"})," the company registration code or VAT number did not match ",fe.country||"the country","'s format — the applicant confirmed it is correct."]})]}),fe.description&&i.jsxs("div",{className:"modal__field-group",style:{marginBottom:"var(--space-4)"},children:[i.jsx("label",{className:"modal__label",children:"Description"}),i.jsx("p",{className:"modal__text",style:{margin:0,fontSize:13},children:fe.description})]}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"review-reason",children:"Optional comment for the applicant (used if you decline)"}),i.jsx("textarea",{id:"review-reason",className:"modal__textarea",rows:3,value:wt,onChange:ge=>vn(ge.target.value.slice(0,1e3)),placeholder:"Leave blank to send the default rejection email.",maxLength:1e3})]})]})}),i.jsxs(Wt,{isOpen:!!ee,onClose:()=>{le||(te(null),pe(""))},title:"Decline request",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>{te(null),pe("")},disabled:le,children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:dn,disabled:le,children:le?"Declining...":"Decline request"})]}),children:[i.jsx("p",{className:"modal__text",children:"An email will be sent to the applicant letting them know their request was declined."}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"admin-reject-reason",children:"Optional comment for the applicant"}),i.jsx("textarea",{id:"admin-reject-reason",className:"modal__textarea",rows:4,value:ae,onChange:ge=>pe(ge.target.value.slice(0,1e3)),placeholder:"Leave blank to send the default rejection email, or add a short comment that will be included in the email.",maxLength:1e3}),i.jsx("div",{className:"modal__field-footer",children:i.jsxs("span",{className:"modal__word-count",children:[ae.length," / 1000 max"]})})]})]}),ir(),ce&&i.jsx(Wt,{isOpen:!0,onClose:()=>{Ee||(be(null),Ne(null),Te(""))},title:`Introductions from ${ce.label}`,footer:i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",disabled:Ee,onClick:()=>{be(null),Ne(null),Te("")},children:"Close"}),children:(ce.pendingIntros??[]).length===0?i.jsx("p",{className:"modal__text",children:"No pending introduction requests left."}):i.jsx("ul",{className:"team__intro-list",children:(ce.pendingIntros??[]).map(ge=>i.jsxs("li",{className:"team__intro-row",children:[i.jsxs("div",{className:"team__intro-row-head",children:[i.jsx("div",{className:"team__intro-avatar","aria-hidden":"true",children:ge.target_company_logo_url?i.jsx("img",{src:ge.target_company_logo_url,alt:""}):(ge.target_company_name??"?").charAt(0).toUpperCase()}),i.jsxs("div",{className:"team__intro-meta",children:[i.jsxs("h3",{className:"team__intro-target",children:["→ ",ge.target_company_name]}),i.jsxs("span",{className:"team__intro-date",children:["Submitted ",ge.created_at]})]})]}),i.jsx("p",{className:"team__intro-motivation",children:ge.motivation}),Le===ge.id?i.jsxs("div",{className:"team__intro-reject-form",children:[i.jsx("textarea",{className:"modal__textarea",rows:3,placeholder:"Optional: tell them why (sent in the rejection email)",value:Ue,onChange:We=>Te(We.target.value),maxLength:1e3}),i.jsxs("div",{className:"team__intro-row-actions",children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",disabled:Ee,onClick:()=>{Ne(null),Te("")},children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--danger",disabled:Ee,onClick:()=>vt(ge.id,Ue),children:Ee?"Rejecting…":"Confirm reject"})]})]}):i.jsxs("div",{className:"team__intro-row-actions",children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--danger",disabled:Ee,onClick:()=>{Ne(ge.id),Te("")},children:"Reject"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",disabled:Ee,onClick:()=>Ze(ge.id),children:Ee?"Approving…":"Approve"})]})]},ge.id))})})]})}return i.jsxs("div",{className:"team",children:[i.jsxs("div",{className:"team__header",children:[i.jsx("h1",{className:"page__title",children:"Team"}),y&&!n&&i.jsxs("button",{type:"button",className:"team__invite-btn",onClick:()=>b(!0),children:[i.jsx(nV,{size:16,strokeWidth:1.5}),"Invite member"]})]}),i.jsxs("section",{className:"team__table-wrap",children:[i.jsxs("table",{className:"team__table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Member"}),n&&i.jsx("th",{children:"Company"}),i.jsx("th",{children:"Title"}),i.jsx("th",{children:"Role"}),i.jsx("th",{children:"Status"}),y&&!n&&i.jsx("th",{className:"team__th--right"})]})}),i.jsxs("tbody",{children:[fh.map(we=>{if(we._isInvite){const We=we,Qe=We.status==="expired",qn=`team__avatar${Qe?" team__avatar--expired":" team__avatar--pending"}`,Us=`team__name${Qe?" team__name--expired":" team__name--pending"}`,Dn=`team__badge team__badge--${Qe?"expired":"pending"}`,rr=Qe?"Expired":"Pending",Hs=RS(We.email.split("@")[0].replace(/[._-]/g," "));return i.jsxs("tr",{"data-team-role":We.role,"data-team-status":We.status,children:[i.jsx("td",{children:i.jsxs("div",{className:"team__member",children:[i.jsx("div",{className:qn,children:Hs}),i.jsxs("div",{className:"team__member-info",children:[i.jsx("span",{className:Us,children:We.email}),i.jsxs("span",{className:"team__email",children:["Invited ",We.invited_at]})]})]})}),i.jsx("td",{children:"—"}),i.jsx("td",{children:i.jsx("span",{className:`team__badge team__badge--${We.role}`,children:We.role.charAt(0).toUpperCase()+We.role.slice(1)})}),i.jsx("td",{children:i.jsx("span",{className:Dn,children:rr})}),y&&i.jsx("td",{className:"team__td--right",children:i.jsxs("div",{className:"team__actions",children:[i.jsx("button",{type:"button",className:"team__actions-trigger","aria-label":"Invitation actions","aria-expanded":E===`invite-${We.id}`,onClick:()=>M(E===`invite-${We.id}`?null:`invite-${We.id}`),children:i.jsx(uf,{size:16,strokeWidth:1.5})}),E===`invite-${We.id}`&&i.jsxs("div",{className:"team__actions-menu",children:[i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>Bd(We),children:"Resend invite"}),Qe?i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>an(We),children:"Remove"}):i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>ri(We),children:"Revoke invite"})]})]})})]},`invite-${We.id}`)}const je=we,Be=je.id===mn,Ut=je.status==="deactivated",Pt=`team__avatar${Ut?" team__avatar--deactivated":""}`,tt=`team__name${Ut?" team__name--deactivated":""}`,ht=Ut?"Deactivated":"Active",ge=je.role.charAt(0).toUpperCase()+je.role.slice(1);return i.jsxs("tr",{"data-team-you":Be||void 0,"data-team-role":je.role,"data-team-status":je.status,children:[i.jsx("td",{children:i.jsxs("div",{className:"team__member",children:[je.avatar_url?i.jsx("img",{src:je.avatar_url,alt:je.name,className:"team__avatar"}):i.jsx("div",{className:Pt,children:je.initials??RS(je.name)}),i.jsxs("div",{className:"team__member-info",children:[i.jsxs("span",{className:tt,children:[je.name,Be&&i.jsxs(i.Fragment,{children:[" ",i.jsx("span",{className:"team__you",children:"(you)"})]})]}),i.jsxs("span",{className:"team__contact-row",children:[i.jsx("span",{className:"team__email",children:je.email}),i.jsxs("span",{className:"team__contact-icons",children:[je.linkedin_url?i.jsx("a",{className:"team__contact-icon team__c
421ontact-linkedin",href:je.linkedin_url,target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn",children:i.jsx(qW,{size:14,strokeWidth:1.5})}):null,je.phone?i.jsx("a",{className:"team__contact-icon team__contact-phone",href:`tel:${je.phone}`,"aria-label":"Phone",children:i.jsx(Bz,{size:14,strokeWidth:1.5})}):null]})]})]})]})}),n&&i.jsx("td",{children:je.company_name||i.jsx(i.Fragment,{children:"—"})}),i.jsx("td",{className:"team__title",children:je.job_title||i.jsx(i.Fragment,{children:"—"})}),i.jsx("td",{children:i.jsx("span",{className:`team__badge team__badge--${je.role}`,children:ge})}),i.jsx("td",{children:i.jsx("span",{className:`team__badge team__badge--${je.status}`,children:ht})}),y&&!n&&i.jsx("td",{className:"team__td--right",children:Be||!g?i.jsx(i.Fragment,{children:"—"}):i.jsxs("div",{className:"team__actions",children:[i.jsx("button",{type:"button",className:"team__actions-trigger","aria-label":"Member actions","aria-expanded":E===je.id,onClick:()=>M(E===je.id?null:je.id),children:i.jsx(uf,{size:16,strokeWidth:1.5})}),E===je.id&&i.jsx("div",{className:"team__actions-menu",children:Ut?i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("reactivate",je),children:"Reactivate"}),i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>fn("remove",je),children:"Remove member"})]}):i.jsxs(i.Fragment,{children:[p&&je.role!=="owner"&&i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("make-owner",je,{selfDemotion:!0}),children:"Make owner"}),i.jsx("button",{type:"button",className:"team__actions-item",onClick:()=>fn("deactivate",je),children:"Deactivate"}),i.jsx("button",{type:"button",className:"team__actions-item team__actions-item--danger",onClick:()=>fn("remove",je),children:"Remove member"})]})})]})})]},`member-${je.id}`)}),Ha.length===0&&i.jsx("tr",{children:i.jsx("td",{colSpan:5,style:{textAlign:"center",padding:"var(--space-6)",color:"var(--color-placeholder)"},children:"No team members yet."})})]})]}),zd&&i.jsx("div",{className:"team__toggle",children:i.jsx("button",{type:"button",className:"team__toggle-btn",onClick:()=>R(!L),children:L?"Show fewer members":"Show all members"})})]}),i.jsx(Wt,{isOpen:x,onClose:()=>{b(!1),he.reset(),Pe({}),Sn(!1)},title:"Invite team member",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>{b(!1),he.reset(),Pe({}),Sn(!1)},children:"Cancel"}),i.jsx("button",{type:"submit",form:"invite-form",className:"modal__btn modal__btn--primary",disabled:he.processing,children:he.processing?"Sending...":"Send invite"})]}),children:i.jsx("form",{id:"invite-form",onSubmit:fl,noValidate:!0,children:i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"invite-email",children:"Email address"}),i.jsx("input",{id:"invite-email",type:"email",className:`modal__input${Me.email?" modal__input--error":""}`,value:he.data.email,onChange:we=>uh(we.target.value),onBlur:Yr,placeholder:"[email protected]"}),Me.email&&i.jsx("span",{className:"modal__field-error",children:Me.email})]})})}),i.jsx(Wt,{isOpen:w,onClose:()=>{S(!1),C(null)},title:N?`Change role: ${N.name}`:"Change role",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>{S(!1),C(null)},children:"Cancel"}),i.jsx("button",{type:"submit",form:"role-form",className:"modal__btn modal__btn--primary",disabled:ls.processing,children:ls.processing?"Saving...":"Update role"})]}),children:i.jsx("form",{id:"role-form",onSubmit:sr,children:i.jsxs("div",{className:"team__modal-field",children:[i.jsx("label",{className:"team__modal-label",htmlFor:"change-role",children:"New role"}),i.jsxs("select",{id:"change-role",className:"modal__select",value:ls.data.role,onChange:we=>ls.setData("role",we.target.value),children:[i.jsx("option",{value:"member",children:"Member"}),i.jsx("option",{value:"owner",children:"Owner"})]}),ls.errors.role&&i.jsx("span",{className:"team__modal-error",children:ls.errors.role})]})})}),i.jsxs(Wt,{isOpen:!!ee,onClose:()=>{le||(te(null),pe(""))},title:"Decline request",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>{te(null),pe("")},disabled:le,children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:dn,disabled:le,children:le?"Declining...":"Decline request"})]}),children:[i.jsx("p",{className:"modal__text",children:"An email will be sent to the applicant letting them know their request was declined."}),i.jsxs("div",{className:"modal__field-group",children:[i.jsx("label",{className:"modal__label",htmlFor:"reject-reason",children:"Optional comment for the applicant"}),i.jsx("textarea",{id:"reject-reason",className:"modal__textarea",rows:4,value:ae,onChange:we=>pe(we.target.value.slice(0,1e3)),placeholder:"Leave blank to send the default rejection email, or add a short comment that will be included in the email.",maxLength:1e3}),i.jsx("div",{className:"modal__field-footer",children:i.jsxs("span",{className:"modal__word-count",children:[ae.length," / 1000 max"]})})]})]}),ir()]})}Gb.layout=e=>i.jsx(os,{breadcrumbs:[{label:"Dashboard",href:route("dashboard.home")},{label:"Team"}],children:e});Gb.propTypes={members:q.arrayOf(q.shape({id:q.number.isRequired,name:q.string.isRequired,email:q.string.isRequired,initials:q.string,avatar_url:q.string,role:q.string.isRequired,status:q.string.isRequired,job_title:q.string,linkedin_url:q.string,phone:q.string})),pendingInvites:q.arrayOf(q.shape({id:q.number.isRequired,email:q.string.isRequired,role:q.string.isRequired,status:q.string.isRequired,invited_at:q.string,expires_at:q.string}))};const GW=Object.freeze(Object.defineProperty({__proto__:null,default:Gb},Symbol.toStringTag,{value:"Module"})),Pr=240,To=480;function PS(e,t,n,s,a){const l=s*n,d=a*n,u=0,f=Pr-l,h=0,p=Pr-d;return{x:Math.min(u,Math.max(f,e)),y:Math.min(h,Math.max(p,t))}}function HE({isOpen:e,imageSrc:t,onCancel:n,onApply:s,onReupload:a,processing:l=!1}){const[d,u]=j.useState({scale:1,minScale:1,imgW:0,imgH:0,x:0,y:0}),f=j.useRef(null);j.useEffect(()=>{if(!e||!t)return;const x=new Image;x.onload=()=>
421{const b=x.naturalWidth,w=x.naturalHeight,S=Math.max(Pr/b,Pr/w),N=b*S,C=w*S;u({scale:S,minScale:S,imgW:b,imgH:w,x:(Pr-N)/2,y:(Pr-C)/2})},x.src=t},[e,t]);const h=x=>x.touches?.length?{x:x.touches[0].clientX,y:x.touches[0].clientY}:{x:x.clientX,y:x.clientY},p=x=>{x.preventDefault();const b=h(x);f.current={startX:b.x,startY:b.y,origX:d.x,origY:d.y}};j.useEffect(()=>{if(!e)return;const x=w=>{const S=f.current;if(!S)return;w.preventDefault();const N=h(w);u(C=>{const E=S.origX+(N.x-S.startX),M=S.origY+(N.y-S.startY),L=PS(E,M,C.scale,C.imgW,C.imgH);return{...C,...L}})},b=()=>{f.current=null};return document.addEventListener("mousemove",x),document.addEventListener("mouseup",b),document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",b),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",b)}},[e]);const g=x=>{const b=parseFloat(x.target.value);u(w=>{const S=Pr/2,N=(S-w.x)/w.scale,C=(S-w.y)/w.scale,E=S-N*b,M=S-C*b,L=PS(E,M,b,w.imgW,w.imgH);return{...w,scale:b,...L}})},y=j.useCallback(()=>{if(l||!t||!d.imgW)return;const x=document.createElement("canvas");x.width=To,x.height=To;const b=x.getContext("2d");b.beginPath(),b.arc(To/2,To/2,To/2,0,Math.PI*2),b.closePath(),b.clip();const w=To/Pr,S=new Image;S.onload=()=>{b.drawImage(S,d.x*w,d.y*w,d.imgW*d.scale*w,d.imgH*d.scale*w),x.toBlob(N=>{N&&s(N)},"image/png")},S.src=t},[d,t,s,l]);return e?i.jsx(Wt,{isOpen:e,onClose:n,title:"Adjust photo",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:n,disabled:l,children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--primary",onClick:y,disabled:l||!d.imgW,children:l?"Saving…":"Apply"})]}),children:i.jsxs("div",{className:"modal__body--crop",children:[i.jsx("div",{className:"user-profile__crop-viewport",onMouseDown:p,onTouchStart:p,children:t&&d.imgW>0&&i.jsx("img",{className:"user-profile__crop-img",src:t,alt:"",draggable:!1,style:{width:`${d.imgW*d.scale}px`,height:`${d.imgH*d.scale}px`,left:`${d.x}px`,top:`${d.y}px`}})}),i.jsxs("div",{className:"user-profile__crop-controls",children:[i.jsx(cV,{className:"user-profile__crop-zoom-icon",size:16,strokeWidth:1.5}),i.jsx("input",{type:"range",className:"user-profile__crop-slider",min:d.minScale,max:d.minScale*3,step:d.minScale*.01,value:d.scale,onChange:g,disabled:!d.imgW}),i.jsx(oV,{className:"user-profile__crop-zoom-icon",size:16,strokeWidth:1.5})]}),i.jsx("button",{type:"button",className:"user-profile__crop-reupload",onClick:a,disabled:l,children:"Upload a different image"})]})}):null}HE.propTypes={isOpen:q.bool.isRequired,imageSrc:q.string,onCancel:q.func.isRequired,onApply:q.func.isRequired,onReupload:q.func.isRequired,processing:q.bool};const DS=200,LS=1920,Cf=/linkedin\.com\/in\//i,pc={first_name:"First name is required",last_name:"Last name is required",job_title:"Job title is required"};function Wb({profile:e={}}){const t=(e.name??"").trim().split(" "),n=t[0]??"",s=t.slice(1).join(" "),[a,l]=j.useState({first_name:n,last_name:s,job_title:e.job_title??"",phone:e.phone??"",linkedin_url:e.linkedin_url??""}),[d,u]=j.useState({}),[f,h]=j.useState(!1),p=j.useRef({first_name:n,last_name:s,job_title:e.job_title??"",phone:e.phone??"",linkedin_url:e.linkedin_url??""}),g=a,y=d,x=(A,Y)=>{l(ee=>({...ee,[A]:Y})),d[A]&&typeof Y=="string"&&(pc[A]&&Y.trim()?u(ee=>{const te={...ee};return delete te[A],te}):A==="phone"&&Lr(Y)===null?u(ee=>{const te={...ee};return delete te[A],te}):A==="linkedin_url"&&(!Y.trim()||Cf.test(Y.trim()))&&u(ee=>{const te={...ee};return delete te[A],te}))},b=j.useMemo(()=>Object.keys(p.current).some(A=>a[A]!==p.current[A]),[a]),w=j.useMemo(()=>{const A=Object.keys(pc).every(te=>a[te]?.trim()),Y=Lr(a.phone)===null,ee=!a.linkedin_url.trim()||Cf.test(a.linkedin_url.trim());return A&&Y&&ee},[a]),[S,N]=j.useState(null),[C,E]=j.useState(null),[M,L]=j.useState(!1),[R,O]=j.useState(!1),[k,B]=j.useState(!1),I=j.useRef(null);function V(A){const Y=A.target.files?.[0];if(!Y)return;if(A.target.value="",!["image/jpeg","image/png","image/webp"].includes(Y.type)){Ve.error("Unsupported format — please upload a JPG, PNG or WebP");return}if(Y.size>5*1024*1024){Ve.error("File too large — maximum size is 5 MB");return}const te=new FileReader;te.onload=ae=>{const pe=new Image;pe.onload=()=>
421{if(pe.naturalWidth<DS||pe.naturalHeight<DS){Ve.error("Image too small — minimum dimensions are 200×200 pixels");return}if(pe.naturalWidth>LS||pe.naturalHeight>LS){Ve.error("Image too large — maximum dimensions are 1920×1920 pixels");return}E(ae.target.result)},pe.src=ae.target.result},te.readAsDataURL(Y)}function z(A){const Y=URL.createObjectURL(A);N(te=>(te?.startsWith("blob:")&&URL.revokeObjectURL(te),Y)),L(!0);const ee=new File([A],"avatar.png",{type:"image/png"});Se.post(route("dashboard.profile.update"),{_method:"PATCH",avatar:ee},{forceFormData:!0,preserveScroll:!0,preserveState:!0,onSuccess:()=>{E(null),L(!1)},onError:()=>{Ve.error("Failed to upload avatar."),L(!1)}})}function K(){M||E(null)}function W(){M||I.current?.click()}function Q(){B(!0),Se.delete(route("dashboard.profile.avatar.delete"),{preserveScroll:!0,preserveState:!0,onSuccess:()=>{N(A=>(A?.startsWith("blob:")&&URL.revokeObjectURL(A),null)),O(!1),B(!1)},onError:()=>{Ve.error("Failed to remove photo."),B(!1)}})}function D(){const A={};Object.entries(pc).forEach(([ee,te])=>{a[ee]?.trim()||(A[ee]=te)});const Y=Lr(a.phone);return Y&&(A.phone=Y),a.linkedin_url.trim()&&!Cf.test(a.linkedin_url.trim())&&(A.linkedin_url="Enter a LinkedIn URL like linkedin.com/in/your-name"),A}function H(A){const Y=a[A]?.trim();if(pc[A]&&!Y)u(ee=>({...ee,[A]:pc[A]}));else if(A==="phone"){const ee=Lr(a.phone);u(ee?te=>({...te,phone:ee}):te=>{const ae={...te};return delete ae.phone,ae})}else A==="linkedin_url"&&Y&&!Cf.test(Y)&&u(ee=>({...ee,linkedin_url:"Enter a LinkedIn URL like linkedin.com/in/your-name"}))}function U(A){A.preventDefault();const Y=D();if(Object.keys(Y).length>0){u(Y);return}h(!0),Se.post(route("dashboard.profile.update"),{_method:"PATCH",...a},{forceFormData:!0,onSuccess:()=>{u({}),p.current={...a},h(!1)},onError:ee=>{u(ee),h(!1)}})}const Z=S??e.avatar_url??null,T=[g.first_name,g.last_name].filter(Boolean).join(" ").split(" ").map(A=>A[0]).join("").toUpperCase().slice(0,2);return i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"page__title",children:"Profile"}),i.jsx("div",{className:"user-profile",children:i.jsxs("div",{className:"user-profile__card",children:[i.jsxs("div",{className:"user-profile__avatar-section",children:[i.jsxs("div",{className:"user-profile__avatar-container",children:[i.jsx("div",{className:"user-profile__avatar",style:Z?{backgroundColor:"transparent"}:void 0,children:Z?i.jsx("img",{src:Z,alt:"Avatar",style:{width:"100%",height:"100%",objectFit:"cover"}}):T}),i.jsx("button",{type:"button",className:"user-profile__avatar-edit","aria-label":"Change profile picture",onClick:()=>I.current?.click(),children:i.jsx(B$,{size:16,strokeWidth:1.5})}),i.jsx("input",{ref:I,type:"file",className:"user-profile__file-input",accept:"image/png, image/jpeg, image/webp",hidden:!0,onChange:V})]}),i.jsx("div",{className:"user-profile__avatar-hint",children:"JPG, PNG or WebP, max 5 MB"}),e.avatar_url&&i.jsx("button",{type:"button",className:"user-profile__avatar-remove",onClick:()=>O(!0),children:"Remove photo"})]}),i.jsxs("form",{className:"user-profile__form",onSubmit:U,noValidate:!0,children:[i.jsxs("div",{className:"user-profile__form-row",children:[i.jsxs("div",{className:"user-profile__form-field",children:[i.jsx("label",{className:"user-profile__form-label",htmlFor:"profile-first-name",children:"First name"}),i.jsx("input",{id:"profile-first-name",type:"text",className:`user-profile__input${y.first_name?" user-profile__input--error":""}`,value:g.first_name,onChange:A=>x("first_name",A.target.value),onBlur:()=>H("first_name"),maxLength:255,autoComplete:"given-name",placeholder:"Jane"}),y.first_name&&i.jsx("span",{className:"user-profile__form-error",children:y.first_name})]}),i.jsxs("div",{className:"user-profile__form-field",children:[i.jsx("label",{className:"user-profile__form-label",htmlFor:"profile-last-name",children:"Last name"}),i.jsx("input",{id:"profile-last-name",type:"text",className:`user-profile__input${y.last_name?" user-profile__input--error":""}`,value:g.last_name,onChange:A=>x("last_name",A.target.value),onBlur:()=>H("last_name"),maxLength:255,autoComplete:"family-name",placeholder:"Doe"}),y.last_name&&i.jsx("span",{className:"user-profile__form-error",children:y.last_name})]})]}),i.jsxs("div",{className:"user-profile__form-field",children:[i.jsx("label",{className:"user-profile__form-label",htmlFor:"profile-title",children:"Job title"}),i.jsx("input",{id:"profile-title",type:"text",className:`user-profile__input${y.job_title?" user-profile__input--error":""}`,value:g.job_title,onChange:A=>x("job_title",A.target.value),onBlur:()=>H("job_title"),maxLength:255,placeholder:"e.g. Head of Product"}),y.job_title&&i.jsx("span",{className:"user-profile__form-error",children:y.job_title})]}),i.jsxs("div",{className:"user-profile__form-field",children:[i.jsx("label",{className:"user-profile__form-label",htmlFor:"profile-email",children:"Email"}),i.jsx("input",{id:"profile-email",type:"text",className:"user-profile__input",value:e.email??"",readOnly:!0,autoComplete:"off"})]}),i.jsxs("div",{className:"user-profile__form-row",children:[i.jsxs("div",{className:"user-profile__form-field",children:[i.jsxs("label",{className:"user-profile__form-label",htmlFor:"profile-phone",children:["Phone number ",i.jsx("span",{className:"user-profile__optional",children:"(optional)"})]}),i.jsx(Zm,{id:"profile-phone",className:"user-profile__field-phone",hasError:!!y.phone,value:g.phone,onChange:A=>x("phone",A),onBlur:()=>H("phone")}),y.phone&&i.jsx("span",{className:"user-profile__form-error",children:y.phone})]}),i.jsxs("div",{className:"user-profile__form-field",children:[i.jsxs("label",{className:"user-profile__form-label",htmlFor:"profile-social",children:["LinkedIn ",i.jsx("span",{className:"user-profile__optional",children:"(optional)"})]}),i.jsx("input",{id:"profile-social",type:"text",className:`user-profile__input${y.linkedin_url?" user-profile__input--error":""}`,value:g.linkedin_url,onChange:A=>x("linkedin_url",A.target.value),onBlur:()=>H("linkedin_url"),placeholder:"linkedin.com/in/username",autoComplete:"url","data-1p-ignore":!0,"data-lpignore":"true","data-form-type":"other"}),y.linkedin_url&&i.jsx("span",{className:"user-profile__form-error",children:y.linkedin_url})]})]}),i.jsx("div",{className:"user-profile__form-actions",children:i.jsx("button",{type:"submit",className:"user-profile__save-btn",disabled:f||!b||!w,children:f?"
421Saving...":"Save changes"})})]})]})}),i.jsx(HE,{isOpen:!!C,imageSrc:C,onCancel:K,onApply:z,onReupload:W,processing:M}),i.jsx(Wt,{isOpen:R,onClose:()=>{k||O(!1)},title:"Remove profile photo",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"modal__btn modal__btn--secondary",onClick:()=>O(!1),disabled:k,children:"Cancel"}),i.jsx("button",{type:"button",className:"modal__btn modal__btn--danger",onClick:Q,disabled:k,children:k?"Removing…":"Remove photo"})]}),children:i.jsx("p",{className:"modal__text",children:"Remove your profile photo? Your initials will be shown instead."})})]})}Wb.layout=e=>i.jsx(os,{breadcrumbs:[{label:"Dashboard",href:route("dashboard.home")},{label:"Profile"}],children:e});Wb.propTypes={profile:q.shape({name:q.string,email:q.string,job_title:q.string,phone:q.string,linkedin_url:q.string,avatar_url:q.string})};const WW=Object.freeze(Object.defineProperty({__proto__:null,default:Wb},Symbol.toStringTag,{value:"Module"}));function Yb({timezone:e="",timezones:t,email:n,pendingEmail:s=null,notificationPreferences:a={email_team_updates:!0,email_product_news:!0,email_billing:!0}}){const{auth:l}=rn().props;(l?.user?.roles??[]).some(U=>["owner","admin"].includes(U));const[u,f]=j.useState(!1),[h,p]=j.useState(!1),[g,y]=j.useState(!1),x=j.useRef(""),b=Yt({current_password:"",password:"",password_confirmation:""}),w=b.data.password,S=w.length>=8,N=/[A-Z]/.test(w),C=/[0-9]/.test(w),E=/[^A-Za-z0-9]/.test(w),M=S&&N&&C&&E,L=!g&&b.data.current_password.length>0&&M&&b.data.password_confirmation.length>0;function R(U){return typeof U=="string"&&U.startsWith("Too many failed attempts")}function O(U){U.preventDefault(),!g&&b.patch(route("dashboard.settings.password"),{onSuccess:()=>{b.reset(),x.current=""},onError:Z=>{R(Z?.current_password)&&y(!0),Ve.show({message:"Failed to update password.",type:"error"})}})}function k(){const U=b.data.current_password;g||!U||U===x.current||(x.current=U,Se.post(route("dashboard.settings.password.verify-current"),{current_password:U},{preserveState:!0,preserveScroll:!0,only:["errors"],onError:Z=>{R(Z?.current_password)&&y(!0)},onSuccess:()=>{b.clearErrors("current_password")}}))}function B(){Se.post(route("password.email"),{email:n},{onSuccess:()=>{},onError:()=>Ve.show({message:"Failed to send reset email.",type:"error"})})}const[I,V]=j.useState(!1),z=Yt({email:"",current_password:""});function K(U){U.preventDefault(),z.post(route("dashboard.settings.email"),{onSuccess:()=>{z.reset(),V(!1)},onError:()=>Ve.show({message:"Failed to request email change.",type:"error"})})}const[W,Q]=j.useState(!1);Yt({timezone:e||""});const[D,H]=j.useState("light");return Yt({email_billing:a?.email_billing??!0,email_team_updates:a?.email_team_updates??!0,email_product_news:a?.email_product_news??!0}),i.jsxs(i.Fragment,{children:[i.jsx("h1",{className:"page__title",children:"Settings"}),i.jsxs("div",{className:"user-settings",children:[i.jsxs("section",{className:"user-settings__card",id:"settings-security",children:[i.jsx("h2",{className:"user-settings__card-title",children:"Security"}),i.jsxs("div",{className:"user-settings__row",children:[i.jsxs("div",{className:"user-settings__row-info",children:[i.jsx("h3",{className:"user-settings__row-label",children:"Email address"}),i.jsxs("p",{className:"user-settings__row-desc",children:["Your current email is"," ",i.jsx("strong",{className:"user-settings__current-email",children:n})]})]}),i.jsx("button",{type:"button",className:"user-settings__btn user-settings__btn--secondary",onClick:()=>V(!0),children:"Change email"})]}),i.jsx("div",{className:"user-settings__divider"}),i.jsxs("div",{className:"user-settings__row user-settings__row--column",children:[i.jsxs("div",{className:"user-settings__row-info",children:[i.jsx("h3",{className:"user-settings__row-label",children:"Password"}),i.jsx("p",{className:"user-settings__row-desc",children:"Update your password regularly to keep your account secure."})]}),i.jsxs("div",{className:`user-settings__password-form${g?" user-settings__password-form--locked":""}`,id:"pw-form",children:[i.jsxs("div",{className:"user-settings__field",children:[i.jsx("label",{className:"user-settings__field-label",htmlFor:"settings-current-pw",children:"Current password"}),i.jsx("input",{className:`user-settings__input${b.errors.current_password?" user-settings__input--error":""}`,type:"password",id:"settings-current-pw",autoComplete:"current-password",value:b.data.current_password,onChange:U=>b.setData("current_password",U.target.value),onBlur:k,disabled:g,placeholder:"Your current password"}),i.jsx("span",{className:"user-settings__field-error",hidden:!b.errors.current_password,children:b.errors.current_password})]}),i.jsxs("div",{className:"user-settings__field-row",children:[i.jsxs("div",{className:"user-settings__field",children:[i.jsx("label",{className:"user-settings__field-label",htmlFor:"settings-new-pw",children:"New password"}),i.jsxs("div",{className:"user-settings__input-wrap",children:[i.jsx("input",{className:"user-settings__input",type:u?"text":"password",id:"settings-new-pw",autoComplete:"new-password",value:b.data.password,onChange:U=>b.setData("password",U.target.value),disabled:g,placeholder:"At least 8 characters"}),i.jsx("button",{type:"button",className:"user-settings__pw-toggle","aria-label":u?"Hide password":"Show password",onClick:()=>f(U=>!U),children:u?i.jsx(Av,{size:16}):i.jsx(Tv,{size:16})})]}),i.jsxs("ul",{className:"user-settings__pw-requirements",id:"pw-requirements",children:[i.jsx("li",{className:S?"user-settings__pw-req--met":"","data-pw-req":"length",children:"At least 8 characters"}),i.jsx("li",{className:N?"user-settings__pw-req--met":"","data-pw-req":"uppercase",children:"One uppercase letter"}),i.jsx("li",{className:C?"user-settings__pw-req--met":"","data-pw-req":"number",children:"One number"}),i.jsx("li",{className:E?"user-settings__pw-req--met":"","data-pw-req":"special",children:"One special character"})]})]}),i.jsxs("div",{className:"user-settings__field",children:[i.jsx("label",{className:"user-settings__field-label",htmlFor:"settings-confirm-pw",children:"Confirm new password"}),i.jsxs("div",{className:"user-settings__input-wrap",children:[i.jsx("input",{className:"user-settings__input",type:h?"text":"password",id:"settings-confirm-pw",autoComplete:"new-password",value:b.data.password_confirmation,onChange:U=>b.setData("password_confirmation",U.target.value),disabled:g,placeholder:"Repeat the new password"}),i.jsx("button",{type:"button",className:"user-settings__pw-toggle","aria-label":h?"Hide password":"Show password",onClick:()=>p(U=>!U),children:h?i.jsx(Av,{size:16}):i.jsx(Tv,{size:16})})]}),i.jsx("span",{className:"user-settings__field-error",hidden:!b.errors.password,children:b.errors.password})]})]}),i.jsx("div",{className:"user-settings__field-actions",children:i.jsx("button",{type:"button",className:"user-settings__btn user-settings__btn--primary",id:"settings-update-pw",disabled:!L||b.processing,onClick:O,children:b.processing?"Upd
421ating…":"Update password"})}),g&&i.jsxs("div",{className:"user-settings__lockout",id:"pw-lockout",children:[i.jsx(R$,{className:"user-settings__lockout-icon"}),i.jsxs("div",{className:"user-settings__lockout-content",children:[i.jsx("p",{className:"user-settings__lockout-text",children:"Too many failed attempts. Reset your password via email to continue."}),i.jsx("button",{type:"button",className:"user-settings__lockout-link",id:"pw-reset-email",onClick:B,children:"Send reset email"})]})]})]})]}),i.jsx("div",{className:"user-settings__divider"}),!1]}),!1,!1]}),i.jsxs(Wt,{isOpen:I,onClose:()=>{V(!1),z.reset()},title:"Change email address",children:[s&&i.jsxs("p",{className:"user-settings__row-desc",style:{marginBottom:"1rem"},children:["Verification pending for ",i.jsx("strong",{children:s}),". Check your inbox."]}),i.jsxs("form",{onSubmit:K,noValidate:!0,children:[i.jsxs("div",{className:"user-settings__field",children:[i.jsx("label",{className:"user-settings__field-label",htmlFor:"modal-new-email",children:"New email address"}),i.jsx("input",{id:"modal-new-email",type:"email",className:"user-settings__input",value:z.data.email,onChange:U=>z.setData("email",U.target.value),placeholder:"[email protected]",autoComplete:"email"}),z.errors.email&&i.jsx("span",{className:"user-settings__field-error",children:z.errors.email})]}),i.jsxs("div",{className:"user-settings__field",style:{marginTop:"1rem"},children:[i.jsx("label",{className:"user-settings__field-label",htmlFor:"modal-email-password",children:"Current password"}),i.jsx("input",{id:"modal-email-password",type:"password",className:"user-settings__input",value:z.data.current_password,onChange:U=>z.setData("current_password",U.target.value),placeholder:"Required to change email",autoComplete:"current-password"}),z.errors.current_password&&i.jsx("span",{className:"user-settings__field-error",children:z.errors.current_password})]}),i.jsx("div",{className:"user-settings__field-actions",style:{marginTop:"1.5rem"},children:i.jsx("button",{type:"submit",className:"user-settings__btn user-settings__btn--primary",disabled:z.processing,children:z.processing?"Sending…":"Send verification email"})})]})]})]})}Yb.layout=e=>i.jsx(os,{breadcrumbs:[{label:"Dashboard",href:route("dashboard.home")},{label:"Settings"}],children:e});Yb.propTypes={timezone:q.string,timezones:q.arrayOf(q.shape({value:q.string.isRequired,label:q.string.isRequired})).isRequired,email:q.string.isRequired,pendingEmail:q.string,notificationPreferences:q.shape({email_team_updates:q.bool,email_product_news:q.bool,email_billing:q.bool})};const YW=Object.freeze(Object.defineProperty({__proto__:null,default:Yb},Symbol.toStringTag,{value:"Module"})),KW="It looks like this email is already registered",$f="[email protected]";function XW(e){if(!e||!e.includes($f))return e;const[t,n]=e.split($f);return i.jsxs(i.Fragment,{children:[t,i.jsx("a",{href:`mailto:${$f}`,children:$f}),n]})}function ZW(){const{data:e,setData:t,post:n,processing:s,errors:a}=Yt({email:"",password:""}),[l,d]=j.useState({}),u={...a,...l};function f(g,y){t(g,y),l[g]&&d(x=>{const b={...x};return delete b[g],b})}function h(g){const y=(e[g]??"").trim();if(!y){const x={email:"Email is required",password:"Password is required"};d(b=>({...b,[g]:x[g]}));return}g==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y)&&d(x=>({...x,email:"Enter a valid email address"}))}function p(g){g.preventDefault();const y={};if(e.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email.trim())||(y.email="Enter a valid email address"):y.email="Email is required",e.password||(y.password="Password is required"),Object.keys(y).length){d(y);return}d({}),n("/login")}return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{noindex:!0,title:"Login",description:"Login to your BCCS account to access exclusive fintech resources and opportunities.",url:"/login",keywords:"login, sign in, authentication"}),i.jsx(Kt,{}),i.jsx("div",{className:"login-page",children:i.jsxs("div",{className:"header-section",children:[i.jsx("div",{className:"logo-container",children:i.jsx("img",{src:"/images/icons/bccs-logo.svg",width:"98",height:"36",alt:"BCCS Logo",className:"login-logo"})}),i.jsx("div",{className:"contact-intro-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Welcome Back"}),i.jsx("p",{children:"Sign in to access your account and continue your journey with BCCS."})]})}),i.jsxs("form",{onSubmit:p,className:"auth-form",noValidate:!0,children:[i.jsxs("div",{className:"auth-form__field",children:[i.jsx("label",{className:"auth-form__label",htmlFor:"login-email",children:"Email"}),i.jsx("input",{id:"login-email",type:"email",className:`auth-form__input${u.email?" auth-form__input--error":""}`,value:e.email,onChange:g=>f("email",g.target.value),onBlur:()=>h("email"),autoComplete:"email",placeholder:"[email protected]"}),u.email&&i.jsx("span",{className:"auth-form__error",children:XW(u.email)}),u.email?.startsWith(KW)&&i.jsx("span",{className:"auth-form__error",children:i.jsx(Ce,{href:"/",children:"Back to homepage"})})]}),i.jsxs("div",{className:"auth-form__field",children:[i.jsx("label",{className:"auth-form__label",htmlFor:"login-password",children:"Password"}),i.jsx(Vr,{id:"login-password",value:e.password,onChange:g=>f("password",g),onBlur:()=>h("password"),error:!!u.password,autoComplete:"current-password",placeholder:"Your password"}),u.password&&i.jsx("span",{className:"auth-form__error",children:u.password}),i.jsx(Ce,{href:"/forgot-password",className:"auth-form__inline-link",children:"Forgot your password?"})]}),i.jsx("div",{className:"auth-form__actions",children:i.jsx("button",{type:"submit",className:"auth-form__submit",disabled:s,children:s?"Logging in...":"Log in"})})]})]})}),i.jsx(Xt,{})]})}const QW=Object.freeze(Object.defineProperty({__proto__:null,default:ZW},Symbol.toStringTag,{value:"Module"}));function JW(){return i.jsx("div",{children:i.jsx("div",{className:"membership-header-section",children:i.jsxs("div",{className:"header-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:"Membership"})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Become a Member of Our Network"}),i.jsx("p",{children:"Join a network designed to support your growth, amplify your voice, and connect you with others moving in the same direction. Whether you are contributing or learning, there’s value in every interaction."})]}),i.jsxs("div",{className:"button-container",children:[i.jsx(Ce,{className:"button-light",href:"/contact-us",children:i.jsx("p",{children:"Get in touch"})}),i.jsx(Ce,{className:"button-blue",href:"/register-company",children:i.jsx("p",{children:"Become a Member"})})]})]})})})}const gc={label:"Network",title:"Inside the BCCS Ecosystem",description:"From member growth to global reach, these numbers reflect the scale, diversity, and momentum of the BCCS network - spanning industries, sectors and regions.",buttonText:"View Community",stats:[{id:1,value:15,suffix:"",label:"Members in our network"},{id:2,value:10,suffix:"+",label:"Total number of projects implemented"},{id:3,value:25,suffix:"M+",label:"Consolidated revenue in 2024"}]};function eY({value:e,suffix:t=""}){const n=j.useRef(null),s=Gy(n,{once:!0,margin:"-100px"}),[a,l]=j.useState(0);return j.useEffect(()=>{if(s)return OC(0,e,{duration:2,ease:"easeOut",onUpdate:u=>{l(Math.round(u))}}).stop},[s,e]),i.jsxs("h2",{ref:n,children:[a,t]})}function tY(){return i.jsx("div",{className:"stats-section",children:i.jsxs("div",{className:"stats-container",children:[i.jsxs("div",{className:"stats-intro-container",children:[i.jsxs("div",{className:"content-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:gc.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{children:gc.title}),i.jsx("p",{children:gc.description})]})]}),i.jsx(Ce,{className:"button",href:"/our-community",children:i.jsx("p",{children:gc.buttonText})})]}),i.jsx("div",{className:"stats-content-container",children:gc.stats.map(e=>i.jsxs("div",{className:"stat",children:[i.jsx(eY,{value:e.value,suffix:e.suffix}),i.jsx("p",{children:e.label})]},e.id))})]})})}const nY={cards:[{id:1,icon:"/images/icons/link.svg",width:24,height:24,title:"Awareness & Visibility",description:"Boost your visibility through our newsletters, social media, and shared marketing at major events."},{id:2,icon:"/images/icons/handshake.svg",width:24,height:24,title:"Networking & Partnerships",description:"Meet the right people faster. We offer curated matchmaking, trade missions, and exclusive member events."},{id:3,icon:"/images/icons/satelite.svg",width:24,height:24,title:"Access to International Networks",description:"Leverage our partnerships with top fintech clusters across Europe, Asia, and beyond to find the right contacts and opportunities."},{id:4,icon:"/images/icons/hand-dollar.svg",width:27,height:25,title:"Grants & Funding",description:"Stay ahead of funding calls. We share relevant EU/national opportunities and help build strong consortia."},{id:5,icon:"/images/icons/hexagone-nodes.svg",width:21,height:24,title:"Joint Projects",description:"Join cluster-led projects where members combine their expertise to deliver complex solutions."}]};function sY(){return i.jsx("div",{className:"about-section",children:i.jsx("div",{className:"about-container",children:i.jsx("div",{className:"cards-container",children:nY.cards.map(e=>i.jsx("div",{className:"card",children:i.jsxs("div",{className:"media-object",children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:e.icon,alt:"Icon",width:e.width,height:e.height})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("h3",{children:e.title})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:e.description})})]})]})},e.id))})})})}function za({label:e,title:t,linkText:n,faqs:s}){const a=s.reduce((f,h,p)=>(f[h.id]=p===0,f),{}),[l,d]=j.useState(a),u=f=>{d(h=>{const p={};
421return Object.keys(h).forEach(g=>{p[g]=!1}),p[f]=!h[f],p})};return i.jsx("div",{className:"faq-section",children:i.jsxs("div",{className:"faq-content",children:[i.jsx("div",{className:"label",children:i.jsx("p",{className:"section-label",children:e})}),i.jsxs("div",{className:"faq-dropdown-content",children:[i.jsxs("div",{className:"title-container",children:[i.jsx("h2",{className:"heading",children:t}),i.jsxs("p",{className:"body",children:["Didn't find your answer? ",i.jsx(Ce,{className:"link",href:"/contact-us",children:n})," and we'll get back to you as soon as we can."]})]}),i.jsx("div",{className:"dropdowns",children:s.map(f=>i.jsxs("div",{className:"dropdown",onClick:()=>u(f.id),style:{cursor:"pointer"},children:[i.jsxs("div",{className:"content-container",children:[i.jsx("p",{className:"title-text",children:f.title}),i.jsx(Ra,{initial:!1,children:l[f.id]&&i.jsx(kn.p,{className:"text",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.4,ease:"easeInOut"},opacity:{duration:.3,delay:.1}}},exit:{opacity:0,height:0,transition:{opacity:{duration:.08},height:{duration:.25,delay:.08,ease:"easeInOut"}}},style:{overflow:"hidden"},children:f.content})})]}),i.jsx("div",{className:"open-close-icon",children:i.jsx(Ra,{mode:"wait",children:i.jsx(kn.img,{src:l[f.id]?"/images/icons/close.svg":"/images/icons/plus.svg",width:l[f.id]?34:24,height:l[f.id]?34:24,alt:l[f.id]?"Close":"Expand",initial:{rotate:-90,scale:.8,opacity:0}
421,animate:{rotate:0,scale:1,opacity:1,transition:{duration:.3,ease:[.4,0,.2,1]}},exit:{rotate:90,scale:.8,opacity:0,transition:{duration:.2,ease:[.4,0,1,1]}}},l[f.id]?"close":"plus")})})]},f.id))})]})]})})}const km={label:"Testimonials",title:"What our members say",items:[{id:1,video:"/videos/agne-dauksiene.mp4",poster:"/images/testimonials/agne-dauksiene.jpg",logo:"/images/icons/members/expert-lab.svg",logoWidth:121,logoHeight:32,logoAlt:"ExpertLab",quote:'"Working with the BCCS community, we collaborate across different projects and still feel like one team. We engage new clients faster and focus on what unites us: solving real problems for financial institutions."',name:"Agnė Daukšienė",role:"Founder of ExpertLab"},{id:2,video:"/videos/martynas-bieliunas.mp4",poster:"/images/testimonials/martynas-bieliunas.jpg",logo:"/images/icons/members/privacy-partners.svg",logoWidth:121,logoHeight:32,logoAlt:"Privacy Partners",quote:`"With BCCS, our domains - fintech, cybersecurity, privacy- meet a like-minded network. We've gained peer knowledge, practical collaboration and joint business, including a product developed together with BCCS. It's the best mix of networking, co-creation and results."`,name:"Martynas Bieliūnas",role:"CEO of Privacy Partners"},{id:3,video:"/videos/miroslav-lucinskij.mp4",poster:"/images/testimonials/miroslav-lucinskij.jpg",logo:"/images/icons/members/critical-security.svg",logoWidth:121,logoHeight:30,logoAlt:"Critical Security",quote:'"BCCS Cluster helped our company to reach new customer audiences. For our company, it was important to enhance the visibility of our brand. Together with BCCS we accomplished this task."',name:"Miroslav Lucinskij",role:"CEO of Critical Security"},{id:4,video:"/videos/arseniy-burmistrov.mp4",poster:"/images/testimonials/arseniy-burmistrov.jpg",logo:"/images/icons/members/s-pro.svg",logoWidth:121,logoHeight:46,logoAlt:"S-PRO",quote:'"The biggest value is the amount of different businesses that are within the BCCS Cluster. In general, it removes blockers and helps our clients feel confident that they can cover almost anything within our company or the cluster."',name:"Arseniy Burmistrov",role:"CBDO of S-PRO"}]},qv=4,iY=Array.from({length:qv*2},(e,t)=>({...km.items[t%km.items.length],id:t}));function FS(e){if(!e||Number.isNaN(e))return"0:00";const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${String(n).padStart(2,"0")}`}function rY({item:e,total:t=1,active:n=0,onPrev:s,onNext:a}){const l=j.useRef(null),d=j.useRef(null),[u,f]=j.useState(!1),[h,p]=j.useState(!1),[g,y]=j.useState(0),[x,b]=j.useState(0),[w,S]=j.useState(!1),[N,C]=j.useState(!1),[E,M]=j.useState(!1),L=()=>{clearTimeout(d.current),M(!1);const z=l.current;z&&!z.paused&&(d.current=setTimeout(()=>M(!0),2500))},R=()=>{const z=l.current;z&&(C(!1),z.currentTime=0,z.play())},O=()=>{const z=l.current;z&&(z.paused?z.play():z.pause(),L())},k=()=>{const z=l.current;z&&(z.muted=!z.muted,S(z.muted),L())},B=z=>{const K=l.current;if(!K)return;const W=Number(z.target.value);K.currentTime=W,y(W),L()},I=()=>{p(!1),f(!1),C(!1),M(!1),clearTimeout(d.current),y(0)};j.useEffect(()=>{const z=l.current;if(!z)return;if(!N){z.volume=1;return}let K;const W=z.volume,Q=performance.now(),D=800,H=U=>{const Z=Math.min(1,(U-Q)/D);z.volume=W*(1-Z),Z<1&&(K=requestAnimationFrame(H))};return K=requestAnimationFrame(H),()=>cancelAnimationFrame(K)},[N]);const V=x?g/x*100:0;return i.jsxs("div",{className:"testimonial-card",children:[i.jsxs("div",{className:"video-frame",onMouseMove:L,onPointerDown:L,onMouseLeave:()=>{const z=l.current;z&&!z.paused&&M(!0)},children:[i.jsx("video",{ref:l,poster:e.poster,preload:"metadata",playsInline:!0,onClick:O,onPlay:()=>{p(!0),f(!0),L()},onPause:()=>{p(!1),M(!1),clearTimeout(d.current)},onTimeUpdate:()=>{const z=l.current;z&&(y(z.currentTime),C(!!z.duration&&z.duration-z.currentTime<=.9))},onLoadedMetadata:()=>b(l.current?.duration||0),onEnded:I,children:i.jsx("source",{src:e.video,type:"video/mp4"})}),i.jsxs("div",{className:`poster-layer${!u||N?" poster-layer--visible":""}`,children:[i.jsx("img",{className:"poster-image",src:e.poster,alt:`${e.name} testimonial`,width:"1000",height:"1000","aria-hidden":"true"}),i.jsxs("button",{type:"button",className:"watch-button",onClick:R,tabIndex:!u||N?0:-1,children:[i.jsx("span",{children:"Watch Testimonial"}),i.jsx("span",{className:"watch-icon","aria-hidden":"true"})]})]}),u&&!N&&i.jsxs("div",{className:`video-controls${E?" video-controls--idle":""}`,children:[i.jsx("button",{type:"button",className:"vc-btn vc-play",onClick:O,"aria-label":h?"Pause":"Play",children:h?i.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{d:"M6 5h4v14H6zM14 5h4v14h-4z"})}):i.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:i.jsx("path",{d:"M8 5v14l11-7z"})})}),i.jsxs("span",{className:"vc-time",children:[FS(g)," / ",FS(x)]}),i.jsx("input",{type:"range",className:"vc-track",min:"0",max:x||0,step:"0.1",value:g,onChange:B,"aria-label":"Seek",style:{"--vc-progress":`${V}%`}}),i.jsx("button",{type:"button",className:"vc-btn vc-sound",onClick:k,"aria-label":w?"Unmute":"Mute",children:w?i.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[i.jsx("path",{d:"M11 5 6 9H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h3l5 4z",fill:"
421currentColor"}),i.jsx("path",{d:"M16 9l5 6M21 9l-5 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}):i.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[i.jsx("path",{d:"M11 5 6 9H3a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h3l5 4z",fill:"currentColor"}),i.jsx("path",{d:"M16 9a4 4 0 0 1 0 6M18.5 7a7 7 0 0 1 0 10",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})})]})]}),i.jsxs("div",{className:"quote-card",children:[i.jsxs("div",{className:"quote-top",children:[i.jsx("div",{className:"member-logo",children:i.jsx("img",{src:e.logo,alt:e.logoAlt,width:e.logoWidth,height:e.logoHeight})}),i.jsxs("div",{className:"quote-body",children:[i.jsx("p",{className:"quote",children:e.quote}),i.jsx("div",{className:"divider"}),i.jsxs("div",{className:"attribution",children:[i.jsx("span",{className:"name",children:e.name}),i.jsx("span",{className:"role",children:e.role})]})]})]}),i.jsxs("div",{className:"slider-controls",children:[i.jsx("div",{className:"dots",children:Array.from({length:t}).map((z,K)=>i.jsx("span",{className:`dot${K===n?" dot--active":""}`},K))}),i.jsxs("div",{className:"arrows",children:[i.jsx("button",{type:"button",className:"arrow","aria-label":"Previous testimonial",onClick:s,children:i.jsx("span",{className:"arrow-icon","aria-hidden":"true",style:{WebkitMaskImage:"url(/images/icons/arrow-left-solid.svg)",maskImage:"url(/images/icons/arrow-left-solid.svg)"}})}),i.jsx("button",{type:"button",className:"arrow","aria-label":"Next testimonial",onClick:a,children:i.jsx("span",{className:"arrow-icon","aria-hidden":"true",style:{WebkitMaskImage:"url(/images/icons/arrow-right-solid.svg)",maskImage:"url(/images/icons/arrow-right-solid.svg)"}})})]})]})]})]})}function qE(){const e=j.useRef(null),[t,n]=j.useState(0);return i.jsxs("div",{className:"testimonials-section",children:[i.jsxs(vs,{className:"testimonials-header",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:km.label})}),i.jsx("div",{className:"title-container",children:i.jsx("h3",{children:km.title})})]}),i.jsx(vs,{className:"testimonials-content",delay:.1,children:i.jsx(Um,{className:"testimonials-slider",modules:[CD],effect:"coverflow",centeredSlides:!0,grabCursor:!0,loop:!0,loopAdditionalSlides:2,speed:600,slidesPerView:"auto",coverflowEffect:{rotate:0,stretch:0,depth:120,scale:.88,slideShadows:!1},onSwiper:s=>{e.current=s,s.slideToLoop(0,0)},onSlideChange:s=>{s.el.querySelectorAll("video").forEach(a=>a.pause())},onSlideChangeTransitionEnd:s=>{n(s.realIndex%qv)},children:iY.map(s=>i.jsx(Hm,{children:i.jsx(rY,{item:s,total:qv,active:t,onPrev:()=>e.current?.slidePrev(),onNext:()=>e.current?.slideNext()})},s.id))})})]})}const Ef={label:"Network",title:"Our Community",description:"BCCS members represent a wide range of industries, all committed to collaboration, innovation and shared progress.",buttonText:"View all"};function aY(){return i.jsx("div",{className:"membership-section",children:i.jsxs("div",{className:"membership-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:Ef.label})}),i.jsxs("div",{className:"membership-content",children:[i.jsxs("div",{className:"membership-intro-container",children:[i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{children:Ef.title}),i.jsx("div",{children:i.jsx("p",{children:Ef.description})})]}),i.jsx(Ce,{className:"button",href:"/our-community",children:Ef.buttonText})]}),i.jsx("div",{className:"logo-container",children:i.jsx(Xy,{})})]})]})})}function O0({children:e}){const[t,n]=j.useState(!1);return i.jsxs("div",{className:`plan-features-container${t?" is-open":""}`,children:[i.jsxs("button",{type:"button",className:"plan-features-title",onClick:()=>n(s=>!s),"aria-expanded":t,children:[i.jsx("p",{children:"Key Features:"}),i.jsx("span",{className:"plan-features-chevron","aria-hidden":"true"})]}),i.jsx("div",{className:"plan-features-collapse",children:i.jsx("div",{className:"plan-ul-block",children:e})})]})}function GE(){return i.jsxs("div",{className:"plans-section",id:"plans",children:[i.jsxs(vs,{className:"plans-info-container",children:[i.jsx("div",{className:"plans-title-container",children:i.jsx("h3",{children:"Membership Plans"})}),i.jsx("div",{className:"plans-content-container",children:i.jsx("p",{children:"Explore flexible membership options designed to help your organisation connect, grow, and create greater impact."})})]}),i.jsxs("div",{className:"plans-container",children:[i.jsxs("div",{className:"plans-row",children:[i.jsxs(vs,{className:"plan-container light",delay:0,children:[i.jsxs("div",{className:"plan-info-container",children:[i.jsxs("div",{className:"plan-title-container",children:[i.jsx("div",{className:"plan-title",children:i.jsx("h5",{children:"Bronze"})}),i.jsx("div",{className:"plan-desc",children:i.jsx("p",{children:"Entry level access."})})]}),i.jsxs("div",{className:"plan-price-container",children:[i.jsx("p",{className:"plan-price-value",children:"Free"}),i.jsx("div",{className:"plan-price-spacer"})]})]}),i.jsxs(O0,{children:[i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Basic website listing"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Access to external events"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Market updates & information"})]})]})]}),i.jsxs(vs,{className:"plan-container light",delay:.12,children:[i.jsxs("div",{className:"plan-info-container",children:[i.jsxs("div",{className:"plan-title-container",children:[i.jsx("div",{className:"plan-title",children:i.jsx("h5",{children:"Silver"})}),i.jsx("div",{className:"plan-desc",children:i.jsx("p",{children:"Full ecosystem access."})})]}),i.jsxs("div",{className:"plan-price-container",children:[i.jsxs("div",{className:"plan-price",children:[i.jsx("p",{className:"plan-price-value",children:"From €90"}),i.jsx("div",{className:"plan-price-month",children:i.jsx("p",{children:"/month"})})]}),i.jsx("p",{className:"plan-price-note",children:"+ VAT if applicable"})]})]}),i.jsxs(O0,{children:[i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Internal member events"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Joint conference stands"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Facilitated introductions"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Trade missions & international activities"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Project collaboration opportunities"})]})]})]}),i.jsxs(vs,{className:"plan-container light",delay:.24,children:[i.jsxs("div",{className:"plan-info-container",children:[i.jsxs("div",{className:"plan-title-container",children:[i.jsx("div",{className:"plan-title",children:i.jsx("h5",{children:"Gold"})}),i.jsxs("div",{className:"plan-desc",children:[i.jsx("p",{children:"Strategic partner level."}),i.jsx("p",{children:"Select Silver members only."})]})]}),i.jsxs("div",{className:"plan-price-container",children:[i.jsxs("div",{className:"plan-price",children:[i.jsx("p",{className:"plan-price-value",children:"From €90"}),i.jsx("div",{className:"plan-price-month",children:i.jsx("p",{children:"/month"})})]}),i.jsx("p",{className:"plan-price-note",children:"+ VAT if applicable"})]})]}),i.jsxs(O0,{children:[i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Everything in Silver"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Voting & strategic input"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Priority in visibility & trade missions"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Early involvement in projects"})]}),i.jsxs("div",{className:"plan-li",children:[i.jsx("div",{className:"plan-icon-container",children:i.jsx("span",{className:"plan-bullet","aria-hidden":"true"})}),i.jsx("p",{children:"Leadership in working groups"})]})]})]})]}),i.jsx(vs,{delay:.36,children:i.jsx(Ce,{href:"/register-company",className:"plans-button",children:"Become a Member"})})]})]})}const oY={faqs:[{id:"item1",title:"Who should become a BCCS member?",content:"Fintech and Web3 companies, professional service providers (tech, cybersecurity, legal, compliance, marketing), academia, investors, and public institutions that want to collaborate and scale through a trusted network."},{id:"item2",title:"Do I need to be in Lithuania to join?",content:"No. BCCS operates and delivers projects across 10+ countries, with a global partner network."},{id:"item3",title:"How do I apply?",content:"Submit the Membership Application Form and our team will follow up to discu
421ss fit, goals, and next steps."},{id:"item4",title:"What's expected from members?",content:"A collaborative mindset and participation in initiatives - events, joint projects, knowledge-sharing - guided by BCCS values"},{id:"item5",title:"Who can I contact with questions?",content:"Use [email protected] or the Membership topic in the contact form; the team will route your request."}]};function lY(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Membership",description:"The BCCS Member Directory showcases the diverse and dynamic individuals, companies, and partners that make up our global network.",url:"/membership",keywords:"bccs membership, fintech network, blockchain community, cybersecurity partners"}),i.jsx(Kt,{}),i.jsxs("main",{className:"membership-page",children:[i.jsx(JW,{}),i.jsx(tY,{}),i.jsx(sY,{}),i.jsx(aY,{}),i.jsx(GE,{}),i.jsx(qE,{}),i.jsx(Qy,{}),i.jsx(za,{label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:oY.faqs})]}),i.jsx(Xt,{})]})}const cY=Object.freeze(Object.defineProperty({__proto__:null,default:lY},Symbol.toStringTag,{value:"Module"}));function dY(){return i.jsx("div",{children:i.jsx("div",{className:"membership-header-section",children:i.jsxs("div",{className:"header-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:"Network"})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Our Community"}),i.jsx("p",{children:"The BCCS consist of the diverse and dynamic individuals, companies and partners that make up our global network. Interested in joining? Learn more about membership and gain access to future networking opportunities and member-only features."})]}),i.jsx("div",{className:"btn-container",children:i.jsx(Ce,{className:"button",href:"/register-company",children:i.jsx("p",{children:"Join the BCCS Network"})})})]})})})}const IS=[{id:1,name:"Bitlocus",tier:"gold",logo:"/images/icons/members/bitlocus.svg",logoWidth:129,logoHeight:36,linkedin:"https://www.linkedin.com/company/bitlocus/",website:"https://bitlocus.com/"},{id:2,name:"CEE Attorneys",tier:"gold",logo:"/images/icons/members/cee-atorneys.svg",logoWidth:120,logoHeight:42,linkedin:"https://www.linkedin.com/company/cee-attorneys-vilnius/",website:"https://ceeattorneys.com/"},{id:3,name:"Critical Security",tier:"gold",logo:"/images/icons/members/critical-security.svg",logoWidth:121,logoHeight:30,linkedin:"https://www.linkedin.com/company/jsc-critical-security/",website:"https://www.critical.lt/"},{id:4,name:"DevSlate",tier:"gold",logo:"/images/icons/members/devslate.svg",logoWidth:57,logoHeight:56,linkedin:"https://www.linkedin.com/company/devslate/",website:"https://devslate.com/"},{id:5,name:"Expert Lab",tier:"gold",logo:"/images/icons/members/expert-lab.svg",logoWidth:121,logoHeight:32,linkedin:"https://www.linkedin.com/company/expertlab-consulting/",website:"https://www.expertlab.lt/"},{id:6,name:"Fintexus",tier:"gold",logo:"/images/icons/members/fintexus.svg",logoWidth:121,logoHeight:24,linkedin:"https://www.linkedin.com/company/fintexus/",website:"https://fintexus.com/"},{id:7,name:"L3CE",tier:"gold",logo:"/images/icons/members/l3ce.svg",logoWidth:121,logoHeight:32,linkedin:"https://www.linkedin.com/company/lithuanian-cybercrime-center-of-excellence-for-training-research-education/",website:"https://www.l3ce.eu/"},{id:9,name:"Privacy Partners",tier:"gold",logo:"/images/icons/members/privacy-partners.svg",logoWidth:121,logoHeight:32,linkedin:"https://www.linkedin.com/company/privacypartners/",website:"https://www.privacypartners.lt/"},{id:10,name:"S-PRO",tier:"gold",logo:"/images/icons/members/s-pro.svg",logoWidth:121,logoHeight:46,linkedin:"https://www.linkedin.com/company/s-pro/",website:"https://s-pro.io/"},{id:11,name:"Skale360",tier:"gold",logo:"/images/icons/members/skale360.svg",logoWidth:121,logoHeight:14,linkedin:"https://www.linkedin.com/company/skale360/",website:"https://skale360.com/"},{id:12,name:"VDU",tier:"gold",logo:"/images/icons/members/vdu.svg",logoWidth:131,logoHeight:56,linkedin:"https://www.linkedin.com/school/vduni/",website:"https://www.vdu.lt/lt/"},{id:13,name:"Vilnius University",tier:"gold",logo:"/images/icons/members/vilniaus-university.svg",logoWidth:109,logoHeight:56,linkedin:"https://www.linkedin.com/school/vilnius-university/",website:"https://www.vu.lt/"},{id:14,name:"BekoreTech",tier:"bronze",logo:"/images/icons/members/bekoretech.svg",logoWidth:121,logoHeight:37,linkedin:"https://www.linkedin.com/company/bekoretech/",website:"https://bekoretech.com/"},{id:15,name:"Cybora",tier:"bronze",logo:"/images/icons/members/cybora.svg",logoWidth:56,logoHeight:56,linkedin:"https://www.linkedin.com/company/cybora-tech/",
421website:"https://cybora.tech/"},{id:16,name:"Paymont",tier:"bronze",logo:"/images/icons/members/paymont.svg",logoWidth:121,logoHeight:24,linkedin:"https://www.linkedin.com/company/paymont/",website:"https://paymont.eu/"},{id:17,name:"Pinerock AI",tier:"bronze",logo:"/images/icons/members/pinerock.svg",logoWidth:121,logoHeight:26,linkedin:"https://www.linkedin.com/company/pinerock-ai/",website:"https://pinerock.ai/"},{id:18,name:"Tribe Payments",tier:"bronze",logo:"/images/icons/members/tribe-payments.svg",logoWidth:121,logoHeight:47,linkedin:"https://www.linkedin.com/company/tribepayments/",website:"https://tribepayments.com/"},{id:19,name:"Inomis",tier:"bronze",logo:"/images/icons/members/inomis.svg",logoWidth:121,logoHeight:50,linkedin:"https://www.linkedin.com/company/inomis/",website:"https://inomis.lt/"},{id:20,name:"CyberTested",tier:"bronze",logo:"/images/icons/members/cybertested.svg",logoWidth:121,logoHeight:27,linkedin:"https://www.linkedin.com/company/cybertested/",website:"https://cybertested.com/"},{id:21,name:"SaaScada",tier:"bronze",logo:"/images/icons/members/saascada.svg",logoWidth:121,logoHeight:30,linkedin:"https://www.linkedin.com/company/saascada/",website:"https://saascada.com/"},{id:22,name:"Kalipso",tier:"bronze",logo:"/images/icons/members/kalipso.svg",logoWidth:121,logoHeight:26,linkedin:"https://www.linkedin.com/company/kalipso/",website:"https://kalipso.ai/"},{id:23,name:"CoreLedger",tier:"bronze",logo:"/images/icons/members/coreledger.svg",logoWidth:121,logoHeight:20,linkedin:"https://www.linkedin.com/company/coreledger/",website:"https://coreledger.net/"},{id:24,name:"Mano bank",tier:"bronze",logo:"/images/icons/members/mano-bank.svg",logoWidth:121,logoHeight:18,linkedin:"https://www.linkedin.com/company/mano-bankas/",website:"https://www.mano.bank/"},{id:25,name:"4Square Innovations",tier:"bronze",logo:"/images/icons/members/askdiana.svg",logoWidth:121,logoHeight:30,linkedin:"https://www.linkedin.com/showcase/askdiana-4sqc/",website:"https://askdiana.ai/"},{id:26,name:"GrowTech",tier:"bronze",logo:"/images/icons/members/growtech.svg",logoWidth:121,logoHeight:30,linkedin:"https://www.linkedin.com/company/growtechagency/",website:"https://growtech.lt/"},{id:27,name:"Buck4Bug",tier:"bronze",logo:"/images/icons/members/buck4bug.svg",logoWidth:121,logoHeight:34,linkedin:"https://www.linkedin.com/company/buck4bug/",website:"https://buck4bug.com/"},{id:28,name:"EcomWall",tier:"bronze",logo:"/images/icons/members/ecomwall.svg",logoWidth:121,logoHeight:22,linkedin:"https://www.linkedin.com/company/ecomwall/",website:"https://ecomwall.com/"},{id:29,name:"HHHUB",tier:"silver",logo:"/images/icons/members/hhhub.svg",logoWidth:86,logoHeight:36,linkedin:"https://www.linkedin.com/company/headhunters-hub/",website:"https://hhhub.eu/"},{id:30,name:"WiseOn",tier:"bronze",logo:"/images/icons/members/wiseon.svg",logoWidth:121,logoHeight:29,linkedin:"https://www.linkedin.com/in/wise-on-13447a198/",website:"https://wiseon.eu/"},{id:31,name:"Diskusija",tier:"bronze",logo:"/images/icons/members/diskusija.svg",logoWidth:65,logoHeight:36,linkedin:"https://www.linkedin.com/company/diskusija/",website:"https://diskusija.lt/"}],uY=[{key:"gold",title:"Gold Members"},{key:"silver",title:"Silver Members"},{key:"bronze",title:"Bronze Members"}];function fY(){const[e,t]=j.useState(!1),n=IS.some(s=>s.tier==="bronze");return i.jsxs("div",{className:"members-section",children:[uY.map(s=>{const a=IS.filter(d=>d.tier===s.key).sort((d,u)=>d.name.localeCompare(u.name));if(a.length===0)return null;const l=s.key==="bronze"&&!e;return i.jsxs("div",{className:`tier-section${l?" tier-section--hidden":""}`,children:[i.jsxs("div",{className:"tier-header",children:[i.jsx("h2",{children:s.title}),i.jsx("div",{className:"border"})]}),i.jsx("div",{className:"company-cards",children:a.map(d=>i.jsxs("div",{className:"company-card",children:[i.jsx("div",{className:"logo-container",children:i.jsx("a",{href:d.website,target:"_blank",rel:"noopener noreferrer",children:i.jsx("img",{src:d.logo,alt:d.name,width:d.logoWidth,height:d.logoHeight})})}),i.jsxs("div",{className:"content-kit",children:[i.jsx("div",{className:"main-kit-body",children:i.jsx("div",{className:"content-container",children:i.jsx("div",{className:"info-container",children:i.jsx("div",{className:"title-container",children:i.jsx("h6",{children:i.jsx("a",{href:d.website,target:"_blank",rel:"noopener noreferrer",children:d.name})})})})})}),i.jsxs("div",{className:"content-footer",children:[i.jsx("div",{className:"border"}),i.jsx("div",{className:"footer-container",children:i.jsx("div",{className:"content",children:i.jsx("div",{className:"socials-container",children:i.jsx("div",{className:"socials",children:i.jsxs("div",{className:"icon",children:[i.jsx("a",{href:d.linkedin,target:"_blank",rel:"noopener noreferrer",children:i.jsx("img",{src:"/images/icons/linked.svg",width:"24",height:"25",alt:"Linkedin"})}),i.jsx("a",{href:d.website,target:"_blank",rel:"noopener noreferrer",children:i.jsx("img",{src:"/images/icons/globe.svg",width:"16",height:"16",alt:"Website"})})]})})})})})]})]})]},d.id))})]},s.key)}),n&&!e&&i.jsx("div",{className:"button-container",children:i.jsx("div",{className:"button",onClick:()=>t(!0),children:i.jsx("p",{children:"View more"})})})]})}function mY(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Our Community — BCCS Cluster Members",description:"Meet the fintech, cybersecurity and Web3 companies of the BCCS cluster — explore member profiles, expertise and partnership opportunities.",url:"/our-community",keywords:"membership directory"}),i.jsx(Kt,{}
421),i.jsxs("main",{className:"membership-directory-page",children:[i.jsx(dY,{}),i.jsx(fY,{})]}),i.jsx(Xt,{})]})}const hY=Object.freeze(Object.defineProperty({__proto__:null,default:mY},Symbol.toStringTag,{value:"Module"}));function pY(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{noindex:!0,title:"404 - Page Not Found",description:"The page you're looking for doesn't exist.",url:"/404"}),i.jsxs("div",{className:"not-found-page",children:[i.jsx(Kt,{}),i.jsx("div",{className:"not-found-section",children:i.jsxs("div",{className:"header-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:"404"})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"Page Not Found"}),i.jsx("p",{children:"The page you’re looking for doesn’t exist or has been moved"})]}),i.jsx("div",{className:"btn-container",children:i.jsx(Ce,{className:"button",href:"/",children:i.jsx("p",{children:"Back to Homepage"})})})]})}),i.jsx(Xt,{})]})]})}const gY=Object.freeze(Object.defineProperty({__proto__:null,default:pY},Symbol.toStringTag,{value:"Module"})),Cn={label:"Join BCCS",title:"Membership Application Form",description:"Ready to connect, collaborate, and grow? Start your application today.",form:{fields:{fullName:{label:"Full Name",placeholder:"John Doe"},company:{label:"Company Name",placeholder:"ExampleCorp"},email:{label:"Email",placeholder:"[email protected]"},websiteUrl:{label:"Website URL",placeholder:"www.examplecorp.com"},message:{label:"Message",placeholder:"Why would you like to join our community?"}},submitText:"Submit form",loginText:"By submitting this form you agree that we may use your information to respond to your inquiry. ",loginLink:""}};function vY(){const{props:e}=rn(),[t,n]=j.useState(!1),[s,a]=j.useState(""),{data:l,setData:d,post:u,processing:f,errors:h,reset:p}=Yt({fullName:"",company:"",email:"",websiteUrl:"",message:""}),g=y=>{y.preventDefault(),u("/register-inquiry",{preserveScroll:!0,onSuccess:()=>{p(),a(e.flash?.success||"Your registration inquiry has been submitted successfully!"),n(!0)}})};return i.jsxs("div",{className:"header-section",children:[i.jsxs("div",{className:"new-header-section",children:[i.jsx("div",{className:"left-section"}),i.jsx("div",{className:"right-section"})]}),t&&i.jsx(hd,{type:"success",message:s,onClose:()=>n(!1)}),i.jsxs("div",{className:"adjustment-container",children:[i.jsxs("div",{className:"contact-intro-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:Cn.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:Cn.title}),i.jsx("p",{children:Cn.description})]})]}),i.jsxs("form",{onSubmit:g,className:"inputs-container",noValidate:!0,children:[i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Cn.form.fields.fullName.label]})}),i.jsx("div",{className:`input-container ${h.fullName?"error":""}`,children:i.jsx("input",{type:"text",name:"fullName",value:l.fullName,onChange:y=>d("fullName",y.target.value),className:"input",placeholder:Cn.form.fields.fullName.placeholder})}),h.fullName&&i.jsx(ct,{message:h.fullName})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Cn.form.fields.company.label]})}),i.jsx("div",{className:`input-container ${h.company?"error":""}`,children:i.jsx("input",{type:"text",name:"company",value:l.company,onChange:y=>d("company",y.target.value),className:"input",placeholder:Cn.form.fields.company.placeholder})}),h.company&&i.jsx(ct,{message:h.company})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Cn.form.fields.email.label]})}),i.jsx("div",{className:`input-container ${h.email?"error":""}`,children:i.jsx("input",{type:"text",name:"email",value:l.email,onChange:y=>d("email",y.target.value),className:"input",placeholder:Cn.form.fields.email.placeholder})}),h.email&&i.jsx(ct,{message:h.email})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Cn.form.fields.websiteUrl.label]})}),i.jsx("div",{className:`input-container ${h.websiteUrl?"error":""}`,children:i.jsx("input",{type:"text",name:"websiteUrl",value:l.websiteUrl,onChange:y=>
421d("websiteUrl",y.target.value),className:"input",placeholder:Cn.form.fields.websiteUrl.placeholder})}),h.websiteUrl&&i.jsx(ct,{message:h.websiteUrl})]}),i.jsxs("div",{className:"input-content",children:[i.jsx("div",{className:"label-container",children:i.jsxs("p",{children:["* ",Cn.form.fields.message.label]})}),i.jsx("div",{className:`input-container ${h.message?"error":""}`,children:i.jsx("textarea",{name:"message",value:l.message,onChange:y=>d("message",y.target.value),className:"input",placeholder:Cn.form.fields.message.placeholder})}),h.message&&i.jsx(ct,{message:h.message})]}),i.jsxs("div",{className:"submit-container",children:[i.jsx("button",{type:"submit",className:"submit-button",disabled:f,children:i.jsx("p",{children:f?"Submitting...":Cn.form.submitText})}),i.jsxs("p",{children:[Cn.form.loginText," ",i.jsx("a",{href:"/login",children:Cn.form.loginLink})]})]})]})]})]})}const Tf={label:"Network",title:"Our Community",description:"BCCS members represent a wide range of industries, all committed to collaboration, innovation and shared progress.",buttonText:"View all"};function yY(){return i.jsx("div",{className:"membership-section",children:i.jsxs("div",{className:"membership-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:Tf.label})}),i.jsxs("div",{className:"membership-content",children:[i.jsxs("div",{className:"membership-intro-container",children:[i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{children:Tf.title}),i.jsx("div",{children:i.jsx("p",{children:Tf.description})})]}),i.jsx(Ce,{className:"button",href:"/our-community",children:Tf.buttonText})]}),i.jsx("div",{className:"logo-container",children:i.jsx(Xy,{})})]})]})})}const Af={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"How is my application evaluated?",content:"We evaluate applications based on fit with our mission and values, relevance to the ecosystem, collaboration potential, and track record or clear intent."},{id:"item2",title:"What happens after I submit?",content:"We review your information and invite you to a 20 - 30 minute call. If there's mutual fit, we propose a package and start the onboarding process."},{id:"item3",title:"How long does the process take?",content:"The process typically takes a few weeks from submission to decision, depending on responsiveness and due-diligence needs."},{id:"item4",title:"Will there be due diligence?",content:"Yes, we conduct light-touch due diligence including basic checks on company, compliance posture, and references if needed to protect member trust."},{id:"item5",title:"Who do I contact with questions?",content:"You can write us an email at [email protected]"},{id:"item6",title:"If I'm not accepted, can I reapply?",content:"Yes. We'll share feedback and suggest when to reapply or how to engage via events first."}]};function bY(){const[e,t]=j.useState({item1:!0,item2:!1,item3:!1,item4:!1,item5:!1,item6:!1}),n=s=>{t(a=>{const l={};return Object.keys(a).forEach(d=>{l[d]=!1}),l[s]=!a[s],l})};return i.jsx("div",{className:"faq-section",children:i.jsxs("div",{className:"faq-content",children:[i.jsx("div",{className:"label",children:i.jsx("p",{className:"section-label",children:Af.label})}),i.jsxs("div",{className:"faq-dropdown-content",children:[i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{className:"heading",children:Af.title}),i.jsxs("p",{className:"body",children:["Didn't find your answer? ",i.jsx(Ce,{className:"link",href:"/contact-us",children:Af.linkText})," and we'll get back to you as soon as we can."]})]}),i.jsx("div",{className:"dropdowns",children:Af.faqs.map(s=>i.jsxs("div",{className:"dropdown",onClick:()=>n(s.id),style:{cursor:"pointer"},children:[i.jsxs("div",{className:"content-container",children:[i.jsx("p",{className:"title-text",children:s.title}),i.jsx(Ra,{initial:!1,children:e[s.id]&&i.jsx(kn.p,{className:"text",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.4,ease:"easeInOut"},opacity:{duration:.3,delay:.1}}},exit:{opacity:0,height:0,transition:{opacity:{duration:.08},height:{duration:.25,delay:.08,ease:"easeInOut"}}},style:{overflow:"hidden"},children:s.content})})]}),i.jsx("div",{className:"open-close-icon",children:i.jsx(Ra,{mode:"wait",children:i.jsx(kn.img,{src:e[s.id]?"/images/icons/close.svg":"/images/icons/plus.svg",width:e[s.id]?34:24,height:e[s.id]?34:24,alt:e[s.id]?"Close":"Expand",initial:{rotate:-90,scale:.8,opacity:0}
421,animate:{rotate:0,scale:1,opacity:1,transition:{duration:.3,ease:[.4,0,.2,1]}},exit:{rotate:90,scale:.8,opacity:0,transition:{duration:.2,ease:[.4,0,1,1]}}},e[s.id]?"close":"plus")})})]},s.id))})]})]})})}function xY(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Register",description:"Create an account to get started with our services. Join BCCS and gain access to a trusted network of fintech leaders.",url:"/register",keywords:"register, sign up, create account, membership"}),i.jsx(Kt,{}),i.jsxs("div",{className:"register-page",children:[i.jsx(vY,{}),i.jsx(yY,{}),i.jsx(bY,{})]}),i.jsx(Xt,{})]})}const _Y=Object.freeze(Object.defineProperty({__proto__:null,default:xY},Symbol.toStringTag,{value:"Module"}));function Pd({label:e,title:t,description:n}){return i.jsx("div",{className:"header-section",children:i.jsxs("div",{className:"header-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:e})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:t}),i.jsx("p",{children:n})]})]})})}function Dd({features:e}){return i.jsx("div",{className:"feature-section",children:i.jsx("div",{className:"cards-container",children:e.map(t=>i.jsx("div",{className:"card",children:i.jsxs("div",{className:"media-object",children:[i.jsx("div",{className:"icon",children:i.jsx("img",{src:t.icon,alt:"Icon",width:t.width,height:t.height})}),i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title",children:i.jsx("h3",{children:t.title})}),i.jsx("div",{className:"text",children:i.jsx("p",{children:t.description})})]})]})},t.id))})})}function Ld({title:e,description:t,packages:n}){const s=n.reduce((u,f)=>(u[f.id]=f.defaultExpanded,u),{}),[a,l]=j.useState(s),d=u=>{l(f=>{const h={};return Object.keys(f).forEach(p=>{h[p]=!1}),h[u]=!f[u],h})};return i.jsxs("div",{className:"packages-section",children:[i.jsxs("div",{className:"info-container",children:[i.jsx("div",{className:"title-container",children:i.jsx("h2",{children:e})}),i.jsx("div",{className:"content-container",children:i.jsx("p",{children:t})})]}),i.jsx("div",{className:"services-dropdown",children:n.map(u=>i.jsxs("div",{className:a[u.id]?"dropdown-item":"dropdown-item-closed",children:[i.jsxs("div",{className:"number-container",children:[i.jsx("div",{className:"number",children:u.number}),i.jsx("div",{className:"text-desktop",children:u.desktopDescription})]}),i.jsxs("div",{className:"item-container",children:[i.jsxs("div",{className:"title-container",onClick:()=>d(u.id),style:{cursor:"pointer"},children:[i.jsxs("div",{className:"text-container",children:[i.jsx("span",{className:"pkg-number","aria-hidden":"true",children:u.number}),i.jsx("h4",{children:u.title})]}),i.jsx("div",{className:"icon-container",children:i.jsx(kn.img,{src:a[u.id]?"/images/icons/close.svg":"/images/icons/plus.svg",width:a[u.id]?34:24,height:a[u.id]?34:24,alt:a[u.id]?"Close":"Expand",initial:{rotate:-90,scale:.5,opacity:0},animate:{rotate:0,scale:1,opacity:1,transition:{duration:.3,ease:"easeOut"}},exit:{rotate:90,scale:.5,opacity:0,transition:{duration:.2,ease:"easeIn"}}},a[u.id]?"close":"plus")})]}),a[u.id]&&i.jsxs("div",{className:"content-text-container",children:[i.jsx("div",{className:"desc-container",children:i.jsx("p",{children:u.description})}),i.jsx("div",{className:"content-container",children:u.services.map((f,h)=>i.jsx("p",{children:f},h))})]})]})]},u.id))})]})}function Fd({title:e,description:t,buttonText:n}){return i.jsx("div",{className:"cta-section",children:i.jsxs("div",{className:"cta-container",children:[i.jsx(Zy,{className:"diamond-field--mask-bottom"}),i.jsxs("div",{className:"title-container",children:[i.jsx("h2",{className:"title",children:e}),i.jsx("p",{className:"body",children:t})]}),i.jsx(Ce,{className:"button",href:"/contact-us",children:i.jsx("p",{children:n})})]})})}function jY(){const e={label:"Services",title:"Compliance & Regulation",description:"Stay ahead of fast-moving regulation without slowing the business. We design practical, risk-based programs that turn rules into clear processes, evidence and accountability - so you're audit-ready and never stuck in compliance overkill."},t=[{id:1,icon:"/images/icons/magnifying-glass.svg",width:24,height:24,title:"Regulatory Clarity",description:"From AML/CFT and sanctions to GDPR and payments rules, we align obligations with your real risk and operations - so controls are lean, effective, and provable."},{id:2,icon:"/images/icons/file-contract.svg",width:18,height:24,title:"Licensing & Authorisations",description:"Choose the right licence and get it approved. We prepare full licensing packs, manage the process, and coordinate stakeholders end-to-e
421nd."},{id:3,icon:"/images/icons/user-tie.svg",width:22,height:24,title:"Fractional Leaders & Independent Oversight",description:"Augment your team with part-time Compliance/MLRO officers and independent board members to strengthen governance from day one."}],n={title:"Compliance Packages",description:"Each option blends expert guidance, proven frameworks, and hands-on delivery to help you interpret requirements, implement controls, and maintain evidence with less internal overhead.",packages:[{id:"item1",number:"01",title:"Licensing & Regulatory Readiness",desktopDescription:"Complete, regulator-ready application with operating-model clarity from day one.",description:"Complete, regulator-ready application with operating-model clarity from day one.",services:["Licence scoping & recommendations","Full licensing package preparation","Project management with the regulator","Foundational compliance set-up"],defaultExpanded:!0},{id:"item2",number:"02",title:"GRC & Program Build",desktopDescription:"Risk-based compliance program documented, implemented, and ready to evidence.",description:"Risk-based compliance program documented, implemented, and ready to evidence.",services:["AML/CFT framework","Sanctions compliance","Privacy & data protection","Payments/financial services rules","Internal control system","Board & committee governance"],defaultExpanded:!1},{id:"item3",number:"03",title:"Ongoing Compliance Operations",desktopDescription:"Sustained compliance, clearer accountability, and fewer surprises during audits.",description:"Sustained compliance, clearer accountability, and fewer surprises during audits.",services:["Second-line monitoring & testing","Regulatory reporting & liaison","Training & awareness","Fractional officers","Independent board members"],defaultExpanded:!1}]},s={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"Which regulations do you cover?",content:"Core areas include AML/CFT, international sanctions, GDPR, PSD/PSD2, and broader internal control requirements. For operational resilience and security, we coordinate with our cybersecurity team on DORA and NIS2 alignment."},{id:"item2",title:"Can you help us choose and obtain the right licence?",content:"Yes, starting with licence scoping, then preparing the full licensing package and managing regulator interactions through approval."},{id:"item3",title:"Do you provide interim or fractional compliance leadership?",content:"We offer part-time managers (e.g., Compliance Officer/MLRO) and independent board members to 
421strengthen governance."},{id:"item4",title:"What if we already have policies but lack evidence?",content:"We operationalise what exists - mapping each requirement to controls, processes, and artifacts (logs, reports, sign-offs) so you're inspection-ready."},{id:"item5",title:"How do you tailor the workload for a startup vs. a scale-up?",content:"We calibrate controls to risk and stage - meeting regulatory expectations without overkill."},{id:"item6",title:"Do I need to be a BCCS member to use these services?",content:"No - you can hire the cluster as a client. Members additionally benefit from access to international networks and joint initiatives."}]},a={title:i.jsxs(i.Fragment,{children:["Plan smarter. ",i.jsx("br",{}),"Talk with us today."]}),description:"Speak with our team to find the right package and get the right solution in place",buttonText:"Get in touch"};return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Compliance, DORA & Regulation Services",description:"Stay ahead of fast-moving regulation without slowing the business. We design practical, risk-based programs that turn rules into clear processes, evidence and accountability.",url:"/services/compliance-regulation",keywords:"compliance, regulation, financial compliance, regulatory services"}),i.jsxs("div",{className:"services-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx(Pd,{label:e.label,title:e.title,description:e.description}),i.jsx(Dd,{features:t}),i.jsx(Ld,{title:n.title,description:n.description,packages:n.packages}),i.jsx(za,{label:s.label,title:s.title,linkText:s.linkText,faqs:s.faqs}),i.jsx(Fd,{title:a.title,description:a.description,buttonText:a.buttonText})]}),i.jsx(Xt,{})]})]})}const wY=Object.freeze(Object.defineProperty({__proto__:null,default:jY},Symbol.toStringTag,{value:"Module"}));function SY(){const e={label:"Services",title:"Cybersecurity",description:"Enhance digital resilience and trust while you scale. We help you manage transformation risk across people, process, and technology - designing security in, proving compliance, and responding fast when threats emerge."},t=[{id:1,icon:"/images/icons/user-shield.svg",width:27,height:26,title:"Custom Risk-Based Security Solutions",description:"We tailor security to your risk profile and business goals- prioritising the controls that matter most and avoiding compliance overkill."},{id:2,icon:"/images/icons/chess.svg",width:19,height:26,title:"Strategic Security Investments",description:"Get a clear assessment of your current posture and a roadmap that shows where to invest for the biggest reduction in risk and the fastest path to audit-readiness."},{id:3,icon:"/images/icons/bolt.svg",width:21,height:26,title:"Advanced Threat Response",description:"From proactive testing to managed detection and response, we help you contain incidents quickly and strengthen resilience after the fact."}],n={title:"Security Packages",description:"Each service package blends expert guidance, proven methods, and modern tooling to help your organisation identify, prioritise, and reduce cyber risk efficiently.",packages:[{id:"item1",number:"01",title:"Assessment & Advisory",desktopDescription:"Organisations that need a clear baseline, a pragmatic plan, or fractional leadership to accelerate security maturity.",description:"Organisations that need a clear baseline, a pragmatic plan, or fractional leadership to accelerate security maturity.",services:["CISO-as-a-Service","SDLC / Security by Design","IT / Cloud Security Audit","IoT & Hardware Security Audit","Security Policy Development","Security Program Development","Risk Management & Assessments"],defaultExpanded:!0},{id:"item2",number:"02",title:"Cyber Resilience",desktopDescription:"Validated controls, exploitable gaps closed, and a measurable uplift in your ability to withstand and recover from attacks.",description:"Validated controls, exploitable gaps closed, and a measurable uplift in your ability to withstand and recover from attacks.",services:["Web & Mobile Application Security","Penetration Testing","Supply Chain Risk Management","Social Engineering","Cybersecurity Governance & Risk Management","Red Teaming / Blue Teaming"],defaultExpanded:!1},{id:"item3",number:"03",title:"Protection / Managed Services",desktopDescription:"Continuous visibility, faster containment, and ongoing compliance evidence with less internal overhead.",description:"Continuous visibility, faster containment, and ongoing compliance evidence with less internal overhead.",services:["SOC-as-a-Service","Incident Detection & Response","Vulnerability Programme Management","Third-Party Risk & Compliance Management"],defaultExpanded:!1},{id:"item4",number:"04",title:"Regulatory Compliance & Assurance",desktopDescription:"Meet EU regulations and industry standards without bloating your stack. We align controls across frameworks so you can prove resilience.",description:"Meet EU regulations and industry standards without bloating your stack. We align controls across frameworks so you can prove resilience.",services:["DORA / NIS2 readiness","ISO/IEC 27001 (ISMS)","PCI DSS","SWIFT"],defaultExpanded:!1}]},s={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"How do we decide where to start?",content:"We usually run a discovery call, define success metrics, and propose a phased plan with clear deliverables and timelines."},{id:"item2",title:"Can you prepare us for DORA and NIS2?",content:"Yes. We align policies, controls, and evidence to DORA/NIS2 requirements and industry standards (ISO 27001, PCI DSS, SOC 1/2), then guide you through testing and audits."},{id:"item3",title:"Can you act as interim or fractional CISO?",content:"Yes - governance, program leadership, board reporting, and coordination of technical workstreams."}
421,{id:"item4",title:"How is pricing structured?",content:"Fixed-scope packages, T&M for open-ended work, or hybrid retainers for ongoing coverage."},{id:"item5",title:"Can you run TLPT or tabletop exercises for DORA/NIS2?",content:"Yes - threat-led testing and executive/technical tabletops with clear action plans and evidence packs."},{id:"item6",title:"Do I need to be a BCCS member to use these services?",content:"No - you can hire the cluster as a client. Members additionally benefit from access to international networks and joint initiatives."}]},a={title:i.jsxs(i.Fragment,{children:["Plan smarter. ",i.jsx("br",{}),"Talk with us today."]}),description:"Speak with our team to find the right package and get the right solution in place",buttonText:"Get in touch"};return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Cybersecurity Services for Fintech & Web3",description:"Enhancing digital resilience and trust enables innovation while managing digital-transformation risks. We tackle cybersecurity complexity by identifying and mitigating threats.",url:"/services/cybersecurity",keywords:"cybersecurity, security services, risk assessment, penetration testing, CISO as a service"}),i.jsxs("div",{className:"services-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx(Pd,{label:e.label,title:e.title,description:e.description}),i.jsx(Dd,{features:t}),i.jsx(Ld,{title:n.title,description:n.description,packages:n.packages}),i.jsx(za,{label:s.label,title:s.title,linkText:s.linkText,faqs:s.faqs}),i.jsx(Fd,{title:a.title,description:a.description,buttonText:a.buttonText})]}),i.jsx(Xt,{})]})]})}const NY=Object.freeze(Object.defineProperty({__proto__:null,default:SY},Symbol.toStringTag,{value:"Module"}));function CY(){const e={label:"Services",title:"International Expansion",description:"Enter new markets with confidence. We help you soft-land in the EU, pick the right licence and structure, build local partnerships, and stand out on international stages - so expansion creates revenue, not risk."},t=[{id:1,icon:"/images/icons/plane-arival.svg",width:27,height:25,title:"Market Entry & Soft-Landing",description:"Validate markets, map regulation, and set up operations - company formation, secretarial, tax/legal, and your first key hires."},{id:2,icon:"/images/icons/bullhorn.svg",width:25,height:24,title:"Partnerships & Go-to-Market",description:"Build the right alliances and channels, craft a GTM plan, and raise visibility with coordinated marketing and PR."},{id:3,icon:"/images/icons/clipboard-check.svg",width:19,height:24,title:"Investor & Deal Readiness",description:"Get fundraising-ready - from strategy and materials to investor targeting, communications, due diligence support, and M&A."}],n={title:"Expansion Packages",description:"Each option blends expert guidance, international networks, and hands-on delivery - helping you select the market, secure approvals, win partners, and grow.",packages:[{id:"item1",number:"01",title:"Go-to-Market & Soft-Landing",desktopDescription:"Compliant, locally operational presence with a clear GTM plan and first commercial momentum.",description:"Compliant, locally operational presence with a clear GTM plan and first commercial momentum.",services:["Market selection & validation","Soft-landing (EU) plan and execution","Licensing matters","Legal & tax advisory","Company establishment & accounting","Executive search / HR"],defaultExpanded:!0},{id:"item2",number:"02",title:"Partnerships, Visibility & Events",desktopDescription:"Trusted local allies, pipeline coverage, and stronger brand recognition across target markets.",description:"Trusted local allies, pipeline coverage, and stronger brand recognition across target markets.",services:["Partnerships & alliances building","GTM activation","Digital marketing","PR","Trade missions & conference participation"],defaultExpanded:!1},{id:"item3",number:"03",title:"Fundraising & Transactions",desktopDescription:"Sharper equity story, warmer investor conversations, and smoother deal execution.",description:"Sharper equity story, warmer investor conversations, and smoother deal execution.",services:["Fundraising strategy and materials preparation","Investor targeting and communications / IR management","Due-diligence support and M&A"],defaultExpanded:!1}]},s={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"Which regions do you focus on?",content:"Primarily the EU with connections across multiple countries; our network spans 10+ countries and global partners."},{id:"item2",title:"Can you help with licensing for market entry?",content:"Yes - starting with licence scoping and carrying through full application preparation and regulator engagement."},{id:"item3",title:"Do you handle company setup and early hiring?",content:"We support company establishment, corporate secretarial, accounting, and executive search / HR."},{id:"item4",title:"How do you create visibility in a new market?",content:"Through partnerships and GTM activation plus international events, trade missions, and stage time with curated networking."},{id:"item5",title:"Do I need to be a BCCS member to use these services?",content:"No - you can hire the cluster as a client. Members additionally benefit from access to international networks and joint initiatives."}]},a={title:i.jsxs(i.Fragment,{children:["Plan smarter. ",i.jsx("br",{}),"Talk with us today."]}),description:"Speak with our team to find the right package and get the right solution in place",buttonText:"Get in touch"};return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"International Expansion for Fintech",description:"Enter new markets with confidence. We help you soft-land in the EU, pick the right licence and structure, build local partnerships, and stand out on international stages.",url:"/services/international-expansion",keywords:"international expansion, global markets, cross-border services"}),i.jsxs("div",{className:"services-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx(Pd,{label:e.label,title:e.title,de
421scription:e.description}),i.jsx(Dd,{features:t}),i.jsx(Ld,{title:n.title,description:n.description,packages:n.packages}),i.jsx(za,{label:s.label,title:s.title,linkText:s.linkText,faqs:s.faqs}),i.jsx(Fd,{title:a.title,description:a.description,buttonText:a.buttonText})]}),i.jsx(Xt,{})]})]})}const $Y=Object.freeze(Object.defineProperty({__proto__:null,default:CY},Symbol.toStringTag,{value:"Module"}));function EY(){const e={label:"Services",title:"Technology Innovation",description:"Build faster with less risk. Our product and platform teams cover the full application lifecycle - from discovery and UX to development, integrations, modernization, and ongoing management - so you can ship what matters and scale with confidence."},t=[{id:1,icon:"/images/icons/infinity.svg",width:30,height:24,title:"End-to-End Product Engineering",description:"From custom software and UI/UX to application management, we turn concepts into reliable products and keep them running smoothly."},{id:2,icon:"/images/icons/rotate.svg",width:24,height:24,title:"Modernization & Integrations",description:"Untangle legacy systems, carve out services, and connect your stack - core banking, ERPs, and critical third-party tools included."},{id:3,icon:"/images/icons/cubes.svg",width:26,height:25,title:"Fintech-Ready Building Blocks",description:"Accelerate time-to-market with whitelabel modules for KYC/KYB, card issuing & processing, exchanges/wallets, transaction monitoring, and GRC."}],n={title:"Technology Packages",description:"Build faster with less risk. Our product and platform teams cover the full application lifecycle - from discovery and UX to development, integrations, modernization, and ongoing management - so you can ship what matters and scale with confidence.",packages:[{id:"item1",number:"01",title:"Product & Platform Engineering",desktopDescription:"Production-ready software, predictable delivery, and a foundation that scales.",description:"Production-ready software, predictable delivery, and a foundation that scales.",services:["Custom software development","UI/UX design and prototyping","Application management","Systems carve-out & integrations","Banking IT architecture","ERP systems setup and extensions"],defaultExpanded:!0},{id:"item2",number:"02",title:"Modernization & Advisory",desktopDescription:"Clearer roadmaps, faster change with lower risk, and teams augmented exactly where you need them.",description:"Clearer roadmaps, faster change with lower risk, and teams augmented exactly where you need them.",services:["Digital transformation and Strategy & Innovation advisory","Legacy modernization","IT due diligence","Talent-as-a-Service"],defaultExpanded:!1},{id:"item3",number:"03",title:"Emerging Tech & Fintech Stack",desktopDescription:"Accelerate innovation with pre-built components and specialists who understand regulated environments.",description:"Accelerate innovation with pre-built components and specialists who understand regulated environments.",services:["AI & Machine Learning use-cases and enablement","Blockchain development & integration, tokenomics","Whitelabel solution"],defaultExpanded:!1}]},s={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"Do you take projects end-to-end or augment our team?",content:"Both. We deliver turnkey products or embed specialists via Talent-as-a-Service to extend your capacity."},{id:"item2",title:"Can you integrate with banking cores, ERPs, and third-party tools?",content:"Yes, our teams handle banking IT architecture, ERP systems, and complex systems carve-outs/integrations."},{id:"item3",title:"What if we're modernising an aging platform?",content:"We assess your stack, plan the migration, and execute legacy modernization with minimal disruption."},{id:"item4",title:"Can you help us launch faster in fintech?",content:"Use our whitelabel modules (KYC/KYB, card issuing & processing, wallets/exchanges, transaction monitoring, GRC) to compress timelines while meeting regulatory expectations."},{id:"item5",title:"Do I need to be a BCCS member to use these services?",content:"No - you can hire the cluster as a client. Members additionally benefit from access to international networks and joint initiatives."}]},a={title:i.jsxs(i.Fragment,{children:["Plan smarter. ",i.jsx("br",{}),"Talk with us today."]}),description:"Speak with our team to find the right package and get the right solution in place",buttonText:"Get in touch"};return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Technology & Innovation Services",description:"Build faster with less risk. Our product and platform teams cover the full application lifecycle - from discovery and UX to development, integrations, modernization, and ongoing management.",url:"/services/technology-innovation",keywords:"technology innovation, fintech, blockchain, digital transformation"}),i.jsxs("div",{className:"services-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx(Pd,{label:e.label,title:e.title,de
421scription:e.description}),i.jsx(Dd,{features:t}),i.jsx(Ld,{title:n.title,description:n.description,packages:n.packages}),i.jsx(za,{label:s.label,title:s.title,linkText:s.linkText,faqs:s.faqs}),i.jsx(Fd,{title:a.title,description:a.description,buttonText:a.buttonText})]}),i.jsx(Xt,{})]})]})}const TY=Object.freeze(Object.defineProperty({__proto__:null,default:EY},Symbol.toStringTag,{value:"Module"}));function AY(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"Cybersecurity Services",description:"Enhancing digital resilience and trust enables innovation while managing digital-transformation risks. We tackle cybersecurity complexity by identifying and mitigating threats.",url:"/services",keywords:"cybersecurity, security services, risk assessment, penetration testing, CISO as a service"}),i.jsxs("div",{className:"services-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx(Pd,{}),i.jsx(Dd,{}),i.jsx(Ld,{}),i.jsx(za,{}),i.jsx(Fd,{})]}),i.jsx(Xt,{})]})]})}const kY=Object.freeze(Object.defineProperty({__proto__:null,default:AY},Symbol.toStringTag,{value:"Module"}));function MY(){return i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"BCCS Cluster Membership Rules",description:"Terms and conditions governing membership in the BCCS Cluster (Blockchain, Cyber Security and Compliance Solutions).",url:"/terms"}),i.jsxs("div",{className:"terms-page",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx("div",{className:"header-section",children:i.jsx("div",{className:"header-container",children:i.jsxs("div",{className:"title-container",children:[i.jsx("h1",{children:"BCCS Cluster Membership Rules"}),i.jsx("p",{children:"Published 2026-06-01"})]})})}),i.jsxs("article",{className:"terms-page__content",children:[i.jsxs("section",{children:[i.jsx("h2",{children:"1. Definitions"}),i.jsxs("p",{children:[i.jsx("strong",{children:"BCCS Cluster or Cluster"}),' — a cluster named "Blockchain, Cyber Security and Compliance Solutions Cluster".']}),i.jsxs("p",{children:[i.jsx("strong",{children:"Joint Activity Agreement"})," — an agreement by which the Cluster has been established and by which the Full Members of the Cluster have agreed to cooperate on the basis of joint activity (partnership), in accordance with the legislation and best practices of the Republic of Lithuania, in order to create, develop and operate the Cluster based on synergy of specialisations of the members, dissemination of innovations, joint projects and sustainable economic benefits. The Cluster's activities include RDI (Research, Development and Innovation) initiatives to promote the development and practical application of knowledge and technology."]}),i.jsxs("p",{children:[i.jsx("strong",{children:"Cluster Member"})," — a legal entity engaged in the activities of this Cluster that has attained one of the levels of Cluster membership in accordance with these Rules and that complies with the provisions of this document and other internal documents of the Cluster."]}),i.jsxs("p",{children:[i.jsx("strong",{children:"Cluster Activities"})," — all activities related to the objectives and functions of the Cluster, which are carried out in accordance with the agreements between the members of the Cluster, the strategic documents, Joint Activity Agreement or the projects, including but not limited to: joint scientific research and experimental development (RDI), innovation creation and development, competence building, knowledge exchange, joint product and service development, market research, international cooperation, joint marketing, publicity, training, events, public procurement initiatives, preparation and implementation of applications for funding, etc."]}),i.jsxs("p",{children:[i.jsx("strong",{children:"Cluster Coordinator / Coordinator"})," — Devslate group, UAB, legal entity code 302450935, the company coordinating the activities of the BCCS cluster."]}),i.jsxs("p",{children:[i.jsx("strong",{children:"Full Members of the Cluster"})," — the founders and/or members of the Cluster who have acquired this status in accordance with the procedure set out in the internal documents described 
421in these Rules."]}),i.jsxs("p",{children:["The Cluster's Full Members holding ",i.jsx("strong",{children:"Academic Member status"})," are the founders of the Cluster and/or members who have acquired this status in accordance with the procedure set out in the Agreement and who are institutions engaged in academic and scientific activities, operating as non-profit organizations."]}),i.jsxs("p",{children:[i.jsx("strong",{children:"Fee"})," — a fee paid by a Cluster Member for participation in the activities of the Cluster."]}),i.jsxs("p",{children:[i.jsx("strong",{children:"Impeccable Reputation"})," — A Person shall not be considered to have an impeccable reputation if: (1) they have committed serious or systematic violations of the law related to their professional activity; (2) they have been convicted of corruption, economic or financial crimes; (3) there are publicly known circumstances which raise reasonable doubts as to the person's honesty, trustworthiness or suitability; (4) they have been included in the lists of sanctions applied by the European Union, the United Nations or the Republic of Lithuania, or have been subject to economic, financial, diplomatic or any other type of sanctions limiting their activity, financial relations or cooperation."]})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"2. General provisions"}),i.jsx("p",{children:'2.1. These Cluster Membership Rules (hereinafter referred to as the "Rules") is a document of the BCCS Cluster (hereinafter referred to as the "Cluster"), which sets out the terms and conditions of participation in the Cluster, the rights and obligations of the Associate and Affiliate Members, as well as the conditions for the acquisition, termination and other conditions of the membership.'}),i.jsx("p",{children:"2.2. The Rules shall be approved by a decision of the Cluster Coordinator and shall enter into force on the date of their publication."}),i.jsx("p",{children:"2.3. The Rules are mandatory for all Associate and Affiliated Members, and for Full Members to the extent specified by the obligations assumed under the Joint Activity Agreement, and insofar as they do not contradict its essence and purpose."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"3. Cluster membership"}),i.jsx("p",{children:"3.1. Cluster membership is divided into three levels:"}),i.jsxs("ol",{children:[i.jsx("li",{children:"Full Members, including those holding Academic Member status (Gold Membership)"}),i.jsx("li",{children:"Associate Members (Silver Membership)"}),i.jsx("li",{children:"Affiliate Members (Bronze Membership)"})]})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"4. Full Members, including those holding Academic Member status (Gold Membership)"}),i.jsx("p",{children:"4.1. Legal entities, scientific institutions or organisations that have been participating as Associate Members in the Cluster for at least 3 (three) months may become Full Members of the Cluster."}),i.jsx("p",{children:"4.2. After the expiry of this period, in order to acquire the status of Full Member, it is necessary to submit a written request to the Cluster Coordinator to join the Agreement."}),i.jsx("p",{children:"4.3. The Cluster Coordinator shall, within 3 (three) working days of receipt of the request, send the information to all Full Members of the Cluster, asking them to vote on the candidate."}),i.jsx("p",{children:"4.4. The Full Members of the Cluster must vote within 5 (five) working days to accept or reject the candidate. If no vote is cast within this period, the acceptance of the candidate shall be deemed unopposed. A candidacy shall be deemed approved if it is supported by at least two-thirds of all active Full Members. Voting may take place electronically or physically."}),i.jsx("p",{children:"4.5. The Coordinator shall inform the candidate of the decision within 3 (three) working days of the decision being made. In the event of a negative decision, a repeat application may be submitted no earlier than after 3 (three) months."}),i.jsx("p",{children:"4.6. Upon acceptance, the person shall sign a contract to join the Agreement and pay the Cluster Full Member Fee, if applicable under the terms of this Agreement. A person acquires all the rights and obligations of a Full Member of the Cluster on the date of signing the Agreement and paying the Fee (if applicable), or from the later of the two dates, if they differ."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"5. Associate Members (Silver Membership)"}
421),i.jsx("p",{children:"5.1. Legal entities — companies, scientific or educational institutions, organisations — which wish to participate in the Cluster activities may become Associate Members of the Cluster."}),i.jsx("p",{children:"5.2. Associate Membership is obtained by logging in through the BCCS Cluster online platform, confirming that you are familiar with the Cluster Membership Rules, agreeing to abide by them and paying the Membership Fee (if applicable)."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"6. Affiliate Members (Bronze Membership)"}),i.jsx("p",{children:"6.1. Only legal entities (companies, scientific or educational institutions, organisations which wish to participate in the Cluster activities) can become Affiliate Members of the Cluster."}),i.jsx("p",{children:"6.2. Affiliate Membership is obtained by logging in through the BCCS Cluster online platform, confirming that you are familiar with the Cluster Membership Rules and agreeing to abide by them."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"7. Membership fees"}),i.jsx("p",{children:"7.1. The amount of the Cluster Membership Fee is determined by the Cluster Coordinator, subject to the approval of at least two-thirds of the Cluster's Full Members. The Cluster Coordinator may also exempt a Member from the Fee with the approval of two-thirds of the Full Members of the Cluster. The Cluster Coordinator may unilaterally exempt a Member from the Fee where such Member is a public, academic, scientific, research or other institution or non-profit organisation."}),i.jsxs("p",{children:["7.2. The approved membership fee is published through the Cluster's information channels and/or on the Cluster's official website and/or in the BCCS Cluster Membership Rules (see the ",i.jsx("a",{href:"/#plans",children:"membership plans and fees"}),"). The Cluster Members shall also be informed of the decision at least 30 (thirty) calendar days before the date of entry into force of the amendments. The relevant changes shall take effect for Members from the date of the next renewal of Membership."]}),i.jsx("p",{children:"7.3. The Membership Fee is payable quarterly or for the whole year in advance, according to the procedure set by the Cluster Coordinator. The tax period is calculated from the date on which the person becomes a Cluster Member."}),i.jsx("p",{children:"7.4. If a Cluster Member does not agree with the announced change in the amount of the Membership Fee or the payment procedure, they shall have the right not to renew their Membership and to withdraw from the Cluster by informing the Cluster Coordinator in writing prior to the date of renewal of the Membership. In the event of late termination of membership by a Cluster Member, their Membership shall be renewed for one year and the Member shall be obliged to pay the renewed Membership Fee."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"8. Rights and obligations of Members"}),i.jsx("p",{children:"8.1. The rights and obligations of Cluster Members, according to the levels of Membership, shall be defined in the BCCS Cluster Membership Rules as decided by the Cluster Coordinator."}),i.jsx("h3",{children:"8.2. General rights of Cluster Members"}),i.jsx("h4",{children:"a. Cooperation and participation"}),i.jsxs("ol",{children:[i.jsx("li",{children:"The right to participate in joint activities, projects and initiatives;"}),i.jsx("li",{children:"The right to use the benefits offered by the Cluster;"}),i.jsx("li",{children:"The right to cooperate with other Cluster members."})]}),i.jsx("h4",{children:"b. Visibility and communication"}),i.jsxs("ol",{children:[i.jsx("li",{children:"The right to be presented in the public space (social media, website, etc.);"}),i.jsx("li",{children:"The right to be included in the Cluster's marketing material;"}),i.jsx("li",{children:"The right to use the Cluster's logo or name in certain situations (in accordance with established rules)."})]}),i.jsx("h4",{children:"c. Initiative and proposals"}),i.jsxs("ol",{children:[i.jsx("li",{children:"The right to make proposals on projects;"}),i.jsx("li",{children:"The right to initiate working groups, projects or other activities."})]}),i.jsx("h4",{children:"d. Information and assistance"}
421),i.jsxs("ol",{children:[i.jsx("li",{children:"The right to receive information about the Cluster's activities and ongoing projects;"}),i.jsx("li",{children:"The right to attend training, events and meetings."})]}),i.jsx("h4",{children:"e. Benefits applicable to Cluster Members"}),i.jsxs("ol",{children:[i.jsxs("li",{children:["The right to use the benefits available to Associate members (see the ",i.jsx("a",{href:"/#benefits",children:"Associate member benefits"}),");"]}),i.jsxs("li",{children:["The right to use the benefits available to Affiliate Members (see the ",i.jsx("a",{href:"/#benefits",children:"Affiliate member benefits"}),")."]})]}),i.jsx("h3",{children:"8.3. Restrictions"}),i.jsx("ol",{children:i.jsx("li",{children:"Associate and Affiliate Members do not have voting rights."})}),i.jsx("h3",{children:"8.4. Responsibilities of Cluster Members"}),i.jsxs("ol",{children:[i.jsx("li",{children:"Comply with the Cluster Membership Rules;"}),i.jsx("li",{children:"Pay the specified Membership Fee;"}),i.jsx("li",{children:"Meet the requirements of Impeccable Reputation;"}),i.jsx("li",{children:"Not discredit the Cluster's name;"}),i.jsx("li",{children:"Carry out the functions assigned to them in accordance with their competence, if assigned."})]})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"9. Cluster Coordinator"}),i.jsx("p",{children:"9.1. The Cluster Coordinator shall manage the general affairs of the Cluster and shall act on behalf of the Cluster and represent the Cluster in its relations with third parties. The Cluster Coordinator is also the decision-making body of the Full Members, when they are admitted in accordance with the procedure established in the Joint Activity Agreement."}),i.jsx("p",{children:"9.2. The Cluster Coordinator shall develop and approve the Cluster's operational strategy taking into account the recommendations made by the Cluster's Full Members."}),i.jsx("p",{children:"9.3. All decisions relating to the general affairs of the Cluster shall be taken at the discretion of the Cluster Coordinator, provided that this is not in conflict with the approved Cluster Strategy or the Joint Activity Agreement. The Cluster Coordinator:"}),i.jsxs("ol",{children:[i.jsx("li",{children:"coordinates and controls the performance of the Joint Activity Agreement and these Rules;"}),i.jsx("li",{children:"drafts, amends and publishes the BCCS Cluster Membership Rules;"}),i.jsx("li",{children:"is responsible for the proper accounting of the Cluster's assets;"}),i.jsx("li",{children:"organises and/or carries out training, training programmes, seminars and conferences for Cluster Members, stakeholders and the public;"}),i.jsx("li",{children:"ensures effective communication between Cluster Members and Cluster Full Members;"}),i.jsx("li",{children:"prepares reports on the activities of the Cluster;"}),i.jsx("li",{children:"initiates and coordinates the Cluster's participation in projects, partnerships and funding initiatives;"}),i.jsx("li",{children:"ensures that the Cluster's activities comply with applicable legislation and internal documents;"}),i.jsx("li",{children:"manages the Cluster's communication channels (website, social networks, newsletters, etc.);"}),i.jsx("li",{children:"performs other functions and duties as set out in internal documents, agreements or the Joint Activity Agreement."})]})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"10. Termination of membership"}),i.jsx("p",{children:"10.1. An Associate or Affiliate Member of the Cluster may withdraw from the Cluster at any time by submitting a written request to the Cluster Coordinator. Such a request shall take effect within 5 working days of its submission."}),i.jsx("p",{children:"10.2. Membership in the Cluster shall terminate upon termination of the Cluster's activities."}),i.jsx("p",{children:"10.3. In the event of any of the following circumstances, the Cluster Coordinator shall immediately send a notice to the Cluster Associate or Affiliate Member regarding their removal. A Member shall be deemed removed 3 working days after the date of dispatch of the removal notice:"}),i.jsxs("ol",{children:[i.jsx("li",{children:"A Cluster Member goes bankrupt or is subject to bankruptcy or restructuring proceedings;"}),i.jsx("li",{children:"A decision is taken to dissolve the Cluster Member;"}),i.jsx("li",{children:"A Cluster Member is added to international sanctions lists;"}),i.jsx("li",{children:"A Cluster Member loses its Impeccable Reputation;"}),i.jsx("li",{children:"The activities or objectives of the Cluster Member are contrary to the mission and objectives of the BCCS Cluster;"}),i.jsx("li",{children:"A Cluster Member is more than 90 calendar days late in paying its Membership Fee;"}),i.jsx("li",{children:"A Cluster Member discredits the name of the BCCS Cluster or Cluster Members;"}),i.jsx("li",{children:"The actions of a Cluster Member threaten the interests of the Cluster or its members;"}),i.jsx("li",{children:"The actions of a Cluster Member pose a serious threat to the interests and/or reputation of the Cluster or its leaders;"}),i.jsx("li",{children:"A Cluster Member is otherwise in breach of these Rules."})]}),i.jsx("p",{children:"10.4. No refund of the Membership Fee shall be made in the event of a Member's resignation. A Cluster Member shall remain liable for all obligations incurred up to the date of withdrawal, including those relating to ongoing or uncompleted projects in which such Member is involved."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"11. Confidential information"}),i.jsx("p",{children:"11.1. The Cluster Member undertakes to comply with the confidentiality requirements applicable to its participation in the activities of the Cluster, which will be determined by separate agreements."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"12. Intellectual property"}),i.jsx("p",{children:"12.1. A separate agreement must be concluded in each case where the intellectual property of a member is used for the activities of the Cluster."}),i.jsx("p",{children:"12.2. Intellectual property created in the course of Cluster activities shall become the common shared property of the Cluster Members who jointly created it, unless the contribution of each Cluster Member cannot be clearly identified and unless otherwise provided for in a written separate agreement between the Cluster Members. Any Full Member may, with the written consent of the Cluster Coordinator, use such intellectual property for non-commercial purposes, providing a clear description of the use. All intellectual property created shall be considered as value created for the benefit of the Cluster and its use within the Cluster shall not be restricted unless otherwise specified."})]}),i.jsxs("section",{children:[i.jsx("h2",{children:"13. Final provisions"}),i.jsx("p",{children:"13.1. These Rules shall enter into force on the date of publication."}),i.jsx("p",{children:"13.2. Any disputes, uncertainties or claims arising between a Member and the Cluster or relating to these Rules, their performance or breach shall be settled by negotiations between the Cluster Members and the Cluster Coordinator, failing which the competent c
421ourt of the Republic of Lithuania shall have jurisdiction."}),i.jsx("p",{children:"13.3. An Associate or Affiliated Member of the Cluster shall not have the right to assign or transfer its rights and obligations arising from or related to this Agreement without the consent of the Cluster Coordinator."}),i.jsx("p",{className:"terms-page__signoff",children:"These rules were approved by the decision of the Cluster Coordinator on 2026-06-01."})]})]})]}),i.jsx(Xt,{})]})]})}const OY=Object.freeze(Object.defineProperty({__proto__:null,default:MY},Symbol.toStringTag,{value:"Module"}));function RY(){const e=[{id:1,name:"NEO Finance",logo:"/images/icons/members/neo-finance.svg",width:172,height:57,href:"https://www.neofinance.com/"},{id:3,name:"Fjord Bank",logo:"/images/icons/members/fjord-bank.svg",width:146,height:57,href:"https://www.fjordbank.lt/"},{id:4,name:"Verslo Žinios",logo:"/images/icons/members/verslo-zinios.svg",width:162,height:57,href:"https://www.vz.lt/"},{id:5,name:"Societe Generale",logo:"/images/icons/members/societe-generale.svg",width:200,height:41,href:"https://www.societegenerale.com/"},{id:6,name:"AMINA",logo:"/images/icons/members/amina.svg",width:200,height:35,href:"https://aminagroup.com/"},{id:7,name:"Crunch",logo:"/images/icons/members/crunch.svg",width:200,height:47,href:"https://www.getcrunch.app/"},{id:8,name:"COINMENA",logo:"/images/icons/members/coinmena.svg",width:200,height:21,href:"https://www.coinmena.com/"}];return i.jsx(Um,{slidesPerView:4,spaceBetween:30,loop:!0,autoplay:{delay:2500,disableOnInteraction:!1},navigation:!1,modules:[ZC,wD,jD],className:"client-slider",breakpoints:{320:{slidesPerView:3,spaceBetween:24},640:{slidesPerView:3,spaceBetween:20},768:{slidesPerView:4,spaceBetween:30},1024:{slidesPerView:5,spaceBetween:30}},children:e.map(t=>i.jsx(Hm,{children:i.jsx("div",{className:"client-logo",children:t.href?i.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer","aria-label":t.name,children:i.jsx("img",{src:t.logo,alt:t.name,width:t.width,height:t.height})}):i.jsx("img",{src:t.logo,alt:t.name,width:t.width,height:t.height})})},t.id))})}const ga={title:"Your Pathfinder in Fintech & Web3",description:"BCCS is a digital innovation hub, powered by people, partnerships, and collective value.",cta:{title:"Join our Fintech Ecosystem",description:["Stay ahead as financial technology evolves.","Connect, learn & grow with innovators like you."],buttonText:"Become a Member"},clientsTitle:"Clients across our member ecosystem"};function PY(){return i.jsxs("div",{className:"hero-section",children:[i.jsxs("div",{className:"hero-content",children:[i.jsxs("div",{className:"title-container",children:[i.jsx(vs,{y:-24,children:i.jsx("h1",{children:ga.title})}),i.jsx(vs,{y:-24,delay:.15,children:i.jsx("p",{children:ga.description})})]}),i.jsxs(vs,{className:"cta-container",y:0,delay:.5,children:[i.jsxs("div",{className:"content",children:[i.jsx("div",{className:"title-container",children:i.jsx("h5",{children:ga.cta.title})}),i.jsx("div",{children:i.jsxs("p",{children:[ga.cta.description[0],i.jsx("br",{}),ga.cta.description[1]]})})]}),i.jsx(Ce,{className:"button",href:"/register-company",children:ga.cta.buttonText})]})]}),i.jsxs("div",{className:"clients-container",children:[i.jsx(Zy,{className:"diamond-field--mask-up"}),i.jsx("div",{className:"title-container",children:i.jsx("h6",{children:ga.clientsTitle})}),i.jsx(RY,{})]})]})}const Mr={label:"Benefits",title:"Why Join BCCS?",description:"Join BCCS and gain access to a trusted ecosystem of Fintech leaders. Experience ecosystem orchestration that empowers your growth.",image1:{src:"/images/benefits-1.webp",alt:"BCCS members collaborating"},image2:{src:"/images/benefits-2.webp",alt:"BCCS event"},items:{awareness:{icon:"/images/icons/link.svg",title:"Awareness & Visibility",text:"Boost your visibility through our newsletters, social media, and shared marketing at major events."},networking:{icon:"/images/icons/handshake.svg",title:"Networking & Partnerships",text:"Meet the right people faster. We offer curated matchmaking, trade missions, and exclusive member events."},international:{icon:"/images/icons/satelite.svg",title:"Access to International Networks",text:"Leverage our partnerships with top fintech clusters across Europe, Asia, and beyond to find the right contacts and opportunities."},grants:{icon:"/images/icons/hand-dollar.svg",title:"Grants & Funding",text:"Stay ahead of funding calls. We share relevant EU/national opportunities and help build strong consortia."},joint:{icon:"/images/icons/hexagone-nodes.svg",title:"Joint Projects",text:"Join cluster-led projects where members combine their expertise to deliver complex solutions."}}},BS={hidden:{"--sweep-angle":"0deg"},visible:{"--sweep-angle":"360deg",transition:{duration:1.5,ease:"linear"}}};function vc({item:e,className:t="",delay:n=0,show:s=!1}){const a=AC();return i.jsxs("div",{className:`benefit-box${t?` ${t}`:""}`,children:[i.jsxs("div",{className:"title",children:[i.jsx(kn.span,{className:"icon","aria-hidden":"true",initial:{opacity:a?1:0}
421,animate:{opacity:s||a?1:0},transition:{duration:.5,delay:a?0:.35+n,ease:"easeOut"},children:i.jsx("span",{className:"icon-glyph",style:{WebkitMaskImage:`url(${e.icon})`,maskImage:`url(${e.icon})`}})}),i.jsx("h6",{children:e.title})]}),i.jsx("div",{className:"text",children:i.jsx("p",{children:e.text})})]})}function DY(){const e=Mr.items,t=j.useRef(null),n=Gy(t,{once:!0,margin:"0px 0px -120px 0px"});return i.jsx("div",{className:"benefits-section",id:"benefits",children:i.jsxs("div",{className:"benefits-container",children:[i.jsxs("div",{className:"benefits-intro-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:Mr.label})}),i.jsxs("div",{className:"title-container",children:[i.jsx("h3",{children:Mr.title}),i.jsx("div",{className:"content-container",children:i.jsx("div",{className:"text-container",children:i.jsx("p",{children:Mr.description})})})]})]}),i.jsxs("div",{className:"benefits-container",children:[i.jsxs("div",{className:"decor-container",children:[i.jsx("div",{className:"top-container-grid",children:i.jsx("div",{className:"top-container",children:i.jsx(kn.div,{className:"decor",initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.5},variants:BS,style:{position:"relative",isolation:"isolate",maskImage:"conic-gradient(from 180deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))",WebkitMaskImage:"conic-gradient(from 180deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))"}})})}),i.jsx("div",{className:"bottom-container-grid",children:i.jsx("div",{className:"bottom-container",children:i.jsx(kn.div,{className:"decor-2",initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.5},variants:BS,transition:{delay:.4},style:{position:"relative",isolation:"isolate",maskImage:"conic-gradient(from 0deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))",WebkitMaskImage:"conic-gradient(from 0deg at 50% 50%, black 0deg, black var(--sweep-angle, 0deg), transparent var(--sweep-angle, 0deg))"}})})})]}),i.jsxs("div",{className:"benefits-content",ref:t,children:[i.jsx("div",{className:"chunk-image bento-ia",children:i.jsx("img",{src:Mr.image1.src,alt:Mr.image1.alt,width:"1200",height:"900",loading:"lazy"})}),i.jsx(vc,{item:e.awareness,className:"bento-c1",delay:0,show:n}),i.jsx(vc,{item:e.networking,className:"bento-c2",delay:.12,show:n}),i.jsx(vc,{item:e.international,className:"bento-c3",delay:.24,show:n}),i.jsx(vc,{item:e.grants,className:"bento-c4",delay:.36,show:n}),i.jsx(vc,{item:e.joint,className:"bento-c5",delay:.48,show:n}),i.jsx("div",{className:"chunk-image bento-ib",children:i.jsx("img",{src:Mr.image2.src,alt:Mr.image2.alt,width:"1200",height:"900",loading:"lazy"})})]})]}),i.jsx(Ce,{className:"benefits-button",href:"/register-company",children:"Become a Member"})]})})}const yc={label:"Insights",title:"Industry Pulse",description:"Get the latest industry insights, news, and important events",buttonText:"View all",desktopButtonText:"View all"};function LY({posts:e=[]}){const t=(n,s=10)=>{if(!n)return"";const a=n.split(" ");return a.length<=s?n:a.slice(0,s).join(" ")+"..."};return i.jsx("div",{className:"insights-section",children:i.jsxs("div",{className:"insights-container",children:[i.jsxs("div",{className:"insights-intro-container",children:[i.jsx("div",{className:"label",children:i.jsx("p",{children:yc.label})}),i.jsxs("div",{className:"title-container",children:[i.jsxs("div",{className:"title-content-container",children:[i.jsx("h3",{children:yc.title}),i.jsx("div",{children:i.jsx("p",{children:yc.description})})]}),i.jsx(Ce,{href:"/news",className:"button display-none display-laptop-block",children:yc.desktopButtonText})]})]}),i.jsx("div",{className:"insights-content-container",children:e.map(n=>i.jsxs(Ce,{href:`/${n.slug}/`,className:"media-object",children:[i.jsx("div",{className:"image",children:i.jsx("img",{src:n.featured_image||"/images/image.png",alt:n.title,width:"800",height:"450",loading:"lazy"})}),i.jsx("div",{className:"content-kit",children:i.jsx("div",{className:"main-kit-body",children:i.jsxs("div",{className:"content-container",children:[i.jsxs("div",{className:"info-container",children:[i.jsx("div",{className:"title-container",children:i.jsx("h6",{children:n.title})}),i.jsxs("div",{className:"badge-container",children:[n.categories&&n.categories.map((s,a)=>i.jsx("div",{className:"badge",children:i.jsx("p",{children:s})},a)),n.read_time&&i.jsxs("div",{className:"time-badge",children:[i.jsx("div",{className:"placeholder",children:i.jsx("img",{src:"/images/icons/clock.svg",width:"24",height:"24",alt:"Insights"})}),i.jsx("p",{children:n.read_time})]})]})]}),i.jsx("p",{children:t(n.description,10)})]})})})]},n.id))}),i.jsx(Ce,{href:"/news",className:"button display-laptop-none",children:yc.buttonText})]})})}const kf={label:"FAQ",title:"Answers to Common Questions",linkText:"Send us an email",faqs:[{id:"item1",title:"Who should become a BCCS member?",content:"Fintech and Web3 companies, professional service providers (tech, cybersecurity, legal, compliance, marketing), academia, investors, and public institutions that want to collaborate and scale through a trusted network."},{id:"item2",title:"Do I need to be in Lithuania to join?",content:"No. BCCS operates and delivers projects across 10+ countries, with a global partner network."},{id:"item3",title:"How do I apply?",content:"Submit the Membership Application Form and our team will follow up to discu
421ss fit, goals, and next steps."},{id:"item4",title:"What's expected from members?",content:"A collaborative mindset and participation in initiatives - events, joint projects, knowledge-sharing - guided by BCCS values"},{id:"item5",title:"Who can I contact with questions?",content:"Use [email protected] or the Membership topic in the contact form; the team will route your request."}]};function FY({latestPosts:e=[]}){return j.useEffect(()=>{const t=window.location.hash.slice(1);if(!t)return;let n;const s=()=>{const d=document.getElementById(t);d&&d.scrollIntoView({block:"start"})},a=()=>{n=requestAnimationFrame(s)};document.readyState==="complete"?a():window.addEventListener("load",a,{once:!0});const l=setTimeout(s,400);return()=>{cancelAnimationFrame(n),clearTimeout(l),window.removeEventListener("load",a)}},[]),i.jsxs(i.Fragment,{children:[i.jsx(Vt,{title:"",description:"BCCS is a digital innovation hub that acts as a vital link in the global fintech ecosystem, fostering innovation and collaboration",url:"/",keywords:"fintech, cybersecurity, blockchain, innovation, startups, scaleups, web3"}),i.jsxs("div",{className:"homepage",children:[i.jsx(Kt,{}),i.jsxs("main",{children:[i.jsx(PY,{}),i.jsx(qE,{}),i.jsx(DY,{}),i.jsx(QC,{}),i.jsx(GE,{}
421),i.jsx(za,{label:kf.label,title:kf.title,linkText:kf.linkText,faqs:kf.faqs}),i.jsx(Qy,{}),i.jsx(LY,{posts:e})]}),i.jsx(Xt,{})]})]})}const IY=Object.freeze(Object.defineProperty({__proto__:null,default:FY},Symbol.toStringTag,{value:"Module"}));window.axios=Et;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";function WE(e){e&&(e.success&&Ve.success(e.success),e.error&&Ve.error(e.error))}Se.on("flash",e=>WE(e.detail.flash));Se.on("invalid",e=>{const t=e.detail.response?.status;if(t===419){e.preventDefault(),Ve.error("Your session expired or the file is too large. Please reload and try again.");return}if(t===413){e.preventDefault(),Ve.error("File too large — please choose a smaller file.");return}t>=500&&(e.preventDefault(),Ve.error("Something went wrong. Please try again."))});const BY="BCCS";B7({title:e=>e||BY,resolve:e=>Object.assign({"./Pages/About.jsx":kD,"./Pages/Auth/ForgotPassword.jsx":OD,"./Pages/Auth/InvitationExpired.jsx":PD,"./Pages/Auth/RegisterCompany.jsx":MG,"./Pages/Auth/RegisterUser.jsx":RG,"./Pages/Auth/ResetPassword.jsx":PG,"./Pages/Blog.jsx":zG,"./Pages/BlogPost.jsx":qG,"./Pages/Contact.jsx":KG,"./Pages/Dashboard.jsx":eW,"./Pages/Dashboard/Activity.jsx":iW,"./Pages/Dashboard/AdminNewsletter.jsx":oW,"./Pages/Dashboard/AdminWaitlist.jsx":cW,"./Pages/Dashboard/BlogPosts.jsx":dW,"./Pages/Dashboard/CompanyProfile.jsx":vW,"./Pages/Dashboard/Connections.jsx":_W,"./Pages/Dashboard/Directory.jsx":EW,"./Pages/Dashboard/Home.jsx":AW,"./Pages/Dashboard/ManagePlan.jsx":RW,"./Pages/Dashboard/MemberProfile.jsx":UW,"./Pages/Dashboard/PaymentConfirm.jsx":HW,"./Pages/Dashboard/Team.jsx":GW,"./Pages/Dashboard/UserProfile.jsx":WW,"./Pages/Dashboard/UserSettings.jsx":YW,"./Pages/Login.jsx":QW,"./Pages/Membership.jsx":cY,"./Pages/MembershipDirectory.jsx":hY,"./Pages/NotFound.jsx":gY,"./Pages/Register.jsx":_Y,"./Pages/ServiceCompliance.jsx":wY,"./Pages/ServiceCybersecurity.jsx":NY,"./Pages/ServiceInternationalExpansion.jsx":$Y,"./Pages/ServiceTechnologyInnovation.jsx":TY,"./Pages/Services.jsx":kY,"./Pages/Terms.jsx":OY,"./Pages/Welcome.jsx":IY})[`./Pages/${e}.jsx`],setup({el:e,App:t,props:n}){q0.hydrateRoot(e,i.jsx(t,{...n})),WE(n.initialPage?.props?.flash)},progress:{color:"#4B5563"}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.