From 154b74f9cc727263f23efaa61331f1d82ec75619 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 19 Jan 2026 09:16:40 +1100 Subject: [PATCH] Updates for Stripe ACH --- README.md | 2 +- app/Models/Gateway.php | 2 +- app/PaymentDrivers/Stripe/ACH.php | 203 +++++++++++++++--- app/PaymentDrivers/StripePaymentDriver.php | 6 + .../{app-8ade2cf8.js => app-03a29a9d.js} | 12 +- public/build/assets/stripe-ach-1f0bff4a.js | 9 + public/build/assets/stripe-ach-fe366ca7.js | 9 - public/build/manifest.json | 4 +- resources/js/clients/payments/stripe-ach.js | 104 ++++++--- .../gateways/stripe/ach/authorize.blade.php | 40 +--- 10 files changed, 274 insertions(+), 117 deletions(-) rename public/build/assets/{app-8ade2cf8.js => app-03a29a9d.js} (76%) create mode 100644 public/build/assets/stripe-ach-1f0bff4a.js delete mode 100644 public/build/assets/stripe-ach-fe366ca7.js diff --git a/README.md b/README.md index 48882a1a46..8def0bfb99 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Invoice Ninja Version 5 is here! We've taken the best parts of version 4 and add - [Hosted](https://www.invoiceninja.com): Our hosted version is a Software as a Service (SaaS) solution. You're up and running in under 5 minutes, with no need to worry about hosting or server infrastructure. - [Self-Hosted](https://www.invoiceninja.org): For those who prefer to manage their own hosting and server infrastructure. This version gives you full control and flexibility. -All Pro and Enterprise features from the hosted app are included in the source-available code. We offer a $30 per year white-label license to remove the Invoice Ninja branding from client-facing parts of the app. +All Pro and Enterprise features from the hosted app are included in the source-available code. We offer a $40 per year white-label license to remove the Invoice Ninja branding from client-facing parts of the app. #### Get social with us diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 6963714437..2d47070832 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -147,7 +147,7 @@ class Gateway extends StaticModel case 56: return [ GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => ['payment_intent.succeeded', 'charge.refunded', 'payment_intent.payment_failed']], - GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.refunded','charge.succeeded', 'customer.source.updated', 'payment_intent.processing', 'payment_intent.payment_failed', 'charge.failed']], + GatewayType::BANK_TRANSFER => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.refunded', 'charge.succeeded', 'customer.source.updated', 'setup_intent.succeeded', 'payment_intent.processing', 'payment_intent.payment_failed', 'charge.failed']], GatewayType::DIRECT_DEBIT => ['refund' => false, 'token_billing' => false, 'webhooks' => ['payment_intent.processing', 'charge.refunded', 'payment_intent.succeeded', 'payment_intent.partially_funded', 'payment_intent.payment_failed']], GatewayType::ALIPAY => ['refund' => false, 'token_billing' => false], GatewayType::APPLE_PAY => ['refund' => false, 'token_billing' => false], diff --git a/app/PaymentDrivers/Stripe/ACH.php b/app/PaymentDrivers/Stripe/ACH.php index df3f22eaaa..e4589ca3e5 100644 --- a/app/PaymentDrivers/Stripe/ACH.php +++ b/app/PaymentDrivers/Stripe/ACH.php @@ -51,10 +51,46 @@ class ACH implements LivewireMethodInterface /** * Authorize a bank account - requires microdeposit verification */ + // public function authorizeView(array $data) + // { + // $data['gateway'] = $this->stripe; + + // return render('gateways.stripe.ach.authorize', array_merge($data)); + // } + + + /** + * Instant Verification methods with fall back to microdeposits. + * + * @param array $data + * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View + */ public function authorizeView(array $data) { $data['gateway'] = $this->stripe; - + + $customer = $this->stripe->findOrCreateCustomer(); + + // Create SetupIntent with Financial Connections for instant verification + $intent = \Stripe\SetupIntent::create([ + 'customer' => $customer->id, + 'usage' => 'off_session', + 'payment_method_types' => ['us_bank_account'], + 'payment_method_options' => [ + 'us_bank_account' => [ + 'financial_connections' => [ + 'permissions' => ['payment_method'], + // Optional: add 'balances', 'ownership' for additional data + ], + 'verification_method' => 'automatic', // instant with microdeposit fallback + // Or use 'instant' to require instant only (no fallback) + ], + ], + ], $this->stripe->stripe_connect_auth); + + $data['client_secret'] = $intent->client_secret; + $data['customer'] = $customer; + return render('gateways.stripe.ach.authorize', array_merge($data)); } @@ -62,36 +98,96 @@ class ACH implements LivewireMethodInterface { $this->stripe->init(); - $stripe_response = json_decode($request->input('gateway_response')); + $setup_intent = json_decode($request->input('gateway_response')); + + if (!$setup_intent || !isset($setup_intent->payment_method)) { + throw new PaymentFailed('Invalid response from payment gateway.'); + } $customer = $this->stripe->findOrCreateCustomer(); try { - $source = Customer::createSource($customer->id, ['source' => $stripe_response->token->id], array_merge($this->stripe->stripe_connect_auth, ['idempotency_key' => uniqid("st", true)])); + // Retrieve the payment method to get bank account details + $payment_method = $this->stripe->getStripePaymentMethod($setup_intent->payment_method); + + if (!$payment_method || !isset($payment_method->us_bank_account)) { + throw new PaymentFailed('Unable to retrieve bank account details.'); + } + + $bank_account = $payment_method->us_bank_account; + + // Determine verification state based on SetupIntent status + /** @var string $status */ + $status = $setup_intent->status ?? 'unauthorized'; //@phpstan-ignore-line + $state = match ($status) { + 'succeeded' => 'authorized', + 'requires_action' => 'unauthorized', // Microdeposit verification pending + default => 'unauthorized', + }; + + // Build a new stdClass object for storage (Stripe objects are immutable) + $method = new \stdClass(); + $method->id = $setup_intent->payment_method; //@phpstan-ignore-line + $method->bank_name = $bank_account->bank_name; + $method->last4 = $bank_account->last4; + $method->state = $state; + + // If microdeposit verification is required, store the verification URL + if ($status === 'requires_action' && + isset($setup_intent->next_action) && + ($setup_intent->next_action->type ?? null) === 'verify_with_microdeposits') { //@phpstan-ignore-line + $method->next_action = $setup_intent->next_action->verify_with_microdeposits->hosted_verification_url ?? null; //@phpstan-ignore-line + } + + // Note: We don't attach the payment method here - it's already linked to the + // customer via the SetupIntent. For us_bank_account, the payment method must be + // verified before it can be used. Verification happens via: + // - Instant verification (Financial Connections) - already verified + // - Microdeposits - verified via webhook (setup_intent.succeeded) + + $client_gateway_token = $this->storePaymentMethod($method, GatewayType::BANK_TRANSFER, $customer); + + // If instant verification succeeded, redirect to payment methods + if ($state === 'authorized') { + return redirect()->route('client.payment_methods.show', ['payment_method' => $client_gateway_token->hashed_id]) + ->with('message', ctrans('texts.payment_method_added')); + } + + // If microdeposit verification required, send notification and redirect + $verification = route('client.payment_methods.verification', [ + 'payment_method' => $client_gateway_token->hashed_id, + 'method' => GatewayType::BANK_TRANSFER + ], false); + + $mailer = new NinjaMailerObject(); + + $mailer->mailable = new ACHVerificationNotification( + auth()->guard('contact')->user()->client->company, + route('client.contact_login', [ + 'contact_key' => auth()->guard('contact')->user()->contact_key, + 'next' => $verification + ]) + ); + + $mailer->company = auth()->guard('contact')->user()->client->company; + $mailer->settings = auth()->guard('contact')->user()->client->company->settings; + $mailer->to_user = auth()->guard('contact')->user(); + + NinjaMailerJob::dispatch($mailer); + + return redirect()->route('client.payment_methods.verification', [ + 'payment_method' => $client_gateway_token->hashed_id, + 'method' => GatewayType::BANK_TRANSFER + ]); + } catch (InvalidRequestException $e) { throw new PaymentFailed($e->getMessage(), $e->getCode()); } - - $client_gateway_token = $this->storePaymentMethod($source, $request->input('method'), $customer); - - $verification = route('client.payment_methods.verification', ['payment_method' => $client_gateway_token->hashed_id, 'method' => GatewayType::BANK_TRANSFER], false); - - $mailer = new NinjaMailerObject(); - - $mailer->mailable = new ACHVerificationNotification( - auth()->guard('contact')->user()->client->company, - route('client.contact_login', ['contact_key' => auth()->guard('contact')->user()->contact_key, 'next' => $verification]) - ); - - $mailer->company = auth()->guard('contact')->user()->client->company; - $mailer->settings = auth()->guard('contact')->user()->client->company->settings; - $mailer->to_user = auth()->guard('contact')->user(); - - NinjaMailerJob::dispatch($mailer); - - return redirect()->route('client.payment_methods.verification', ['payment_method' => $client_gateway_token->hashed_id, 'method' => GatewayType::BANK_TRANSFER]); } + /** + * Handle customer.source.updated webhook (legacy Sources API) + */ public function updateBankAccount(array $event) { $stripe_event = $event['data']['object']; @@ -108,6 +204,57 @@ class ACH implements LivewireMethodInterface } } + /** + * Handle setup_intent.succeeded webhook (new SetupIntent/Financial Connections flow) + * + * This is called when microdeposit verification is completed for us_bank_account payment methods. + */ + public function handleSetupIntentSucceeded(array $event): void + { + $setup_intent = $event['data']['object']; + + // Only handle us_bank_account payment methods + if (!isset($setup_intent['payment_method']) || !isset($setup_intent['payment_method_types'])) { + return; + } + + if (!in_array('us_bank_account', $setup_intent['payment_method_types'])) { + return; + } + + $payment_method_id = $setup_intent['payment_method']; + $customer_id = $setup_intent['customer'] ?? null; + + if (!$payment_method_id || !$customer_id) { + return; + } + + // Find the token by payment method ID + $token = ClientGatewayToken::query() + ->where('token', $payment_method_id) + ->where('gateway_customer_reference', $customer_id) + ->first(); + + if (!$token) { + nlog("ACH SetupIntent succeeded but no matching token found for payment_method: {$payment_method_id}"); + return; + } + + // Update the token state to authorized + $meta = $token->meta; + $meta->state = 'authorized'; + + // Clear the next_action since verification is complete + if (isset($meta->next_action)) { + unset($meta->next_action); + } + + $token->meta = $meta; + $token->save(); + + nlog("ACH bank account verified via SetupIntent webhook: {$payment_method_id}"); + } + public function verificationView(ClientGatewayToken $token) { @@ -379,12 +526,16 @@ class ACH implements LivewireMethodInterface $response = json_decode($request->gateway_response); $bank_account_response = json_decode($request->bank_account_response); - if ($response->status == 'requires_source_action' && $response->next_action->type == 'verify_with_microdeposits') { - $method = $bank_account_response->payment_method->us_bank_account; - $method = $bank_account_response->payment_method->us_bank_account; + if (in_array($response->status,['requires_action','requires_source_action']) && ($response->next_action->type ?? null) == 'verify_with_microdeposits') { + $method = $bank_account_response->payment_method->us_bank_account ?? null; + + if (!$method) { + throw new PaymentFailed('Unable to retrieve bank account details'); + } + $method->id = $response->payment_method; $method->state = 'unauthorized'; - $method->next_action = $response->next_action->verify_with_microdeposits->hosted_verification_url; + $method->next_action = $response->next_action->verify_with_microdeposits->hosted_verification_url ?? null; $customer = $this->stripe->getCustomer($request->customer); $cgt = $this->storePaymentMethod($method, GatewayType::BANK_TRANSFER, $customer); diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index 5adea2e4c0..acb9e4f35d 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -727,6 +727,12 @@ class StripePaymentDriver extends BaseDriver implements SupportsHeadlessInterfac $ach->updateBankAccount($request->all()); } + // Handle SetupIntent succeeded for ACH microdeposit verification + if ($request->type === 'setup_intent.succeeded') { + $ach = new ACH($this); + $ach->handleSetupIntentSucceeded($request->all()); + } + if ($request->type === 'payment_intent.processing') { PaymentIntentProcessingWebhook::dispatch($request->data, $request->company_key, $this->company_gateway->id)->delay(now()->addSeconds(5)); return response()->json([], 200); diff --git a/public/build/assets/app-8ade2cf8.js b/public/build/assets/app-03a29a9d.js similarity index 76% rename from public/build/assets/app-8ade2cf8.js rename to public/build/assets/app-03a29a9d.js index 46aecdbccc..54ab279e00 100644 --- a/public/build/assets/app-8ade2cf8.js +++ b/public/build/assets/app-03a29a9d.js @@ -1,10 +1,10 @@ -import{A as Kl}from"./index-08e160a7.js";import{c as Jt,g as Jl}from"./_commonjsHelpers-725317a4.js";var Gl={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}},Yl=Gl,si={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.clone=void 0;function Xl(e){return e?JSON.parse(JSON.stringify(e)):null}_n.clone=Xl;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.matches=void 0;function Ql(e,r,n){var a=String(r).length,o=e.substr(0,a),l=parseInt(o,10);return r=parseInt(String(r).substr(0,o.length),10),n=parseInt(String(n).substr(0,o.length),10),l>=r&&l<=n}function Zl(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function eu(e,r){return Array.isArray(r)?Ql(e,r[0],r[1]):Zl(e,r)}li.matches=eu;Object.defineProperty(si,"__esModule",{value:!0});si.addMatchingCardsToResults=void 0;var tu=_n,ru=li;function nu(e,r,n){var a,o;for(a=0;a=o&&(h.matchStrength=o),n.push(h);break}}}si.addMatchingCardsToResults=nu;var ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.isValidInputType=void 0;function iu(e){return typeof e=="string"||e instanceof String}ui.isValidInputType=iu;var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.findBestMatch=void 0;function au(e){var r=e.filter(function(n){return n.matchStrength}).length;return r>0&&r===e.length}function ou(e){return au(e)?e.reduce(function(r,n){return!r||Number(r.matchStrength)du?hn(!1,!1):fu.test(e)?hn(!1,!0):hn(!0,!0)}fi.cardholderName=pu;var di={};function hu(e){for(var r=0,n=!1,a=e.length-1,o;a>=0;)o=parseInt(e.charAt(a),10),n&&(o*=2,o>9&&(o=o%10+1)),n=!n,r+=o,a--;return r%10===0}var gu=hu;Object.defineProperty(di,"__esModule",{value:!0});di.cardNumber=void 0;var mu=gu,wo=as;function xr(e,r,n){return{card:e,isPotentiallyValid:r,isValid:n}}function vu(e,r){r===void 0&&(r={});var n,a,o;if(typeof e!="string"&&typeof e!="number")return xr(null,!1,!1);var l=String(e).replace(/-|\s/g,"");if(!/^\d*$/.test(l))return xr(null,!1,!1);var h=wo(l);if(h.length===0)return xr(null,!1,!1);if(h.length!==1)return xr(null,!0,!1);var v=h[0];if(r.maxLength&&l.length>r.maxLength)return xr(v,!1,!1);v.type===wo.types.UNIONPAY&&r.luhnValidateUnionPay!==!0?a=!0:a=mu(l),o=Math.max.apply(null,v.lengths),r.maxLength&&(o=Math.min(r.maxLength,o));for(var _=0;_4)return lr(!1,!1);var v=parseInt(e,10),_=Number(String(o).substr(2,2)),N=!1;if(a===2){if(String(o).substr(0,2)===e)return lr(!1,!0);n=_===v,N=v>=_&&v<=_+r}else a===4&&(n=o===v,N=v>=o&&v<=o+r);return lr(N,N,n)}en.expirationYear=bu;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.isArray=void 0;gi.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};Object.defineProperty(hi,"__esModule",{value:!0});hi.parseDate=void 0;var _u=en,wu=gi;function xu(e){var r=Number(e[0]),n;return r===0?2:r>1||r===1&&Number(e[1])>2?1:r===1?(n=e.substr(1),_u.expirationYear(n).isPotentiallyValid?1:2):e.length===5?1:e.length>5?2:1}function Su(e){var r;if(/^\d{4}-\d{1,2}$/.test(e)?r=e.split("-").reverse():/\//.test(e)?r=e.split(/\s*\/\s*/g):/\s/.test(e)&&(r=e.split(/ +/g)),wu.isArray(r))return{month:r[0]||"",year:r.slice(1).join()};var n=xu(e),a=e.substr(0,n);return{month:a,year:e.substr(a.length)}}hi.parseDate=Su;var xn={};Object.defineProperty(xn,"__esModule",{value:!0});xn.expirationMonth=void 0;function gn(e,r,n){return{isValid:e,isPotentiallyValid:r,isValidForThisYear:n||!1}}function Eu(e){var r=new Date().getMonth()+1;if(typeof e!="string")return gn(!1,!1);if(e.replace(/\s/g,"")===""||e==="0")return gn(!1,!0);if(!/^\d*$/.test(e))return gn(!1,!1);var n=parseInt(e,10);if(isNaN(Number(e)))return gn(!1,!1);var a=n>0&&n<13;return gn(a,a,a&&n>=r)}xn.expirationMonth=Eu;var da=Jt&&Jt.__assign||function(){return da=Object.assign||function(e){for(var r,n=1,a=arguments.length;nr?e[n]:r;return r}function Wr(e,r){return{isValid:e,isPotentiallyValid:r}}function Mu(e,r){return r===void 0&&(r=os),r=r instanceof Array?r:[r],typeof e!="string"||!/^\d*$/.test(e)?Wr(!1,!1):Pu(r,e.length)?Wr(!0,!0):e.lengthRu(r)?Wr(!1,!1):Wr(!0,!0)}mi.cvv=Mu;var vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.postalCode=void 0;var ku=3;function ta(e,r){return{isValid:e,isPotentiallyValid:r}}function Nu(e,r){r===void 0&&(r={});var n=r.minLength||ku;return typeof e!="string"?ta(!1,!1):e.lengthfunction(){return r||(0,e[ls(e)[0]])((r={exports:{}}).exports,r),r.exports},Qu=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ls(r))!Xu.call(e,o)&&o!==n&&ss(e,o,{get:()=>r[o],enumerable:!(a=Gu(r,o))||a.enumerable});return e},Je=(e,r,n)=>(n=e!=null?Ju(Yu(e)):{},Qu(r||!e||!e.__esModule?ss(n,"default",{value:e,enumerable:!0}):n,e)),ct=rr({"node_modules/alpinejs/dist/module.cjs.js"(e,r){var n=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,_=(t,i)=>function(){return i||(0,t[l(t)[0]])((i={exports:{}}).exports,i),i.exports},N=(t,i)=>{for(var s in i)a(t,s,{get:i[s],enumerable:!0})},L=(t,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of l(i))!v.call(t,d)&&d!==s&&a(t,d,{get:()=>i[d],enumerable:!(c=o(i,d))||c.enumerable});return t},ie=(t,i,s)=>(s=t!=null?n(h(t)):{},L(i||!t||!t.__esModule?a(s,"default",{value:t,enumerable:!0}):s,t)),ne=t=>L(a({},"__esModule",{value:!0}),t),B=_({"node_modules/@vue/shared/dist/shared.cjs.js"(t){Object.defineProperty(t,"__esModule",{value:!0});function i(y,Q){const oe=Object.create(null),he=y.split(",");for(let Ue=0;Ue!!oe[Ue.toLowerCase()]:Ue=>!!oe[Ue]}var s={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},c={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},d="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",p=i(d),m=2;function x(y,Q=0,oe=y.length){let he=y.split(/(\r?\n)/);const Ue=he.filter((bt,ft)=>ft%2===1);he=he.filter((bt,ft)=>ft%2===0);let Xe=0;const yt=[];for(let bt=0;bt=Q){for(let ft=bt-m;ft<=bt+m||oe>Xe;ft++){if(ft<0||ft>=he.length)continue;const dn=ft+1;yt.push(`${dn}${" ".repeat(Math.max(3-String(dn).length,0))}| ${he[ft]}`);const Vr=he[ft].length,ti=Ue[ft]&&Ue[ft].length||0;if(ft===bt){const zr=Q-(Xe-(Vr+ti)),Zi=Math.max(1,oe>Xe?Vr-zr:oe-Q);yt.push(" | "+" ".repeat(zr)+"^".repeat(Zi))}else if(ft>bt){if(oe>Xe){const zr=Math.max(Math.min(oe-Xe,Vr),1);yt.push(" | "+"^".repeat(zr))}Xe+=Vr+ti}}break}return yt.join(` -`)}var j="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ae=i(j),_e=i(j+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),qe=/[>/="'\u0009\u000a\u000c\u0020]/,Ie={};function Ge(y){if(Ie.hasOwnProperty(y))return Ie[y];const Q=qe.test(y);return Q&&console.error(`unsafe attribute name: ${y}`),Ie[y]=!Q}var At={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Vt=i("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),xe=i("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");function Ve(y){if(It(y)){const Q={};for(let oe=0;oe{if(oe){const he=oe.split(Be);he.length>1&&(Q[he[0].trim()]=he[1].trim())}}),Q}function Lt(y){let Q="";if(!y)return Q;for(const oe in y){const he=y[oe],Ue=oe.startsWith("--")?oe:Zn(oe);(yr(he)||typeof he=="number"&&Vt(Ue))&&(Q+=`${Ue}:${he};`)}return Q}function zt(y){let Q="";if(yr(y))Q=y;else if(It(y))for(let oe=0;oe]/;function qi(y){const Q=""+y,oe=Hi.exec(Q);if(!oe)return Q;let he="",Ue,Xe,yt=0;for(Xe=oe.index;Xe||--!>|Lr(oe,Q))}var Hn=y=>y==null?"":Wt(y)?JSON.stringify(y,Wi,2):String(y),Wi=(y,Q)=>vr(Q)?{[`Map(${Q.size})`]:[...Q.entries()].reduce((oe,[he,Ue])=>(oe[`${he} =>`]=Ue,oe),{})}:Dt(Q)?{[`Set(${Q.size})`]:[...Q.values()]}:Wt(Q)&&!It(Q)&&!Jn(Q)?String(Q):Q,Ki=["bigInt","optionalChaining","nullishCoalescingOperator"],on=Object.freeze({}),sn=Object.freeze([]),ln=()=>{},Ir=()=>!1,Dr=/^on[^a-z]/,$r=y=>Dr.test(y),Fr=y=>y.startsWith("onUpdate:"),qn=Object.assign,Vn=(y,Q)=>{const oe=y.indexOf(Q);oe>-1&&y.splice(oe,1)},zn=Object.prototype.hasOwnProperty,Wn=(y,Q)=>zn.call(y,Q),It=Array.isArray,vr=y=>br(y)==="[object Map]",Dt=y=>br(y)==="[object Set]",un=y=>y instanceof Date,cn=y=>typeof y=="function",yr=y=>typeof y=="string",Ji=y=>typeof y=="symbol",Wt=y=>y!==null&&typeof y=="object",Br=y=>Wt(y)&&cn(y.then)&&cn(y.catch),Kn=Object.prototype.toString,br=y=>Kn.call(y),Gi=y=>br(y).slice(8,-1),Jn=y=>br(y)==="[object Object]",Gn=y=>yr(y)&&y!=="NaN"&&y[0]!=="-"&&""+parseInt(y,10)===y,Yn=i(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_r=y=>{const Q=Object.create(null);return oe=>Q[oe]||(Q[oe]=y(oe))},Xn=/-(\w)/g,Qn=_r(y=>y.replace(Xn,(Q,oe)=>oe?oe.toUpperCase():"")),Yi=/\B([A-Z])/g,Zn=_r(y=>y.replace(Yi,"-$1").toLowerCase()),wr=_r(y=>y.charAt(0).toUpperCase()+y.slice(1)),Xi=_r(y=>y?`on${wr(y)}`:""),fn=(y,Q)=>y!==Q&&(y===y||Q===Q),Qi=(y,Q)=>{for(let oe=0;oe{Object.defineProperty(y,Q,{configurable:!0,enumerable:!1,value:oe})},Hr=y=>{const Q=parseFloat(y);return isNaN(Q)?y:Q},qr,ei=()=>qr||(qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});t.EMPTY_ARR=sn,t.EMPTY_OBJ=on,t.NO=Ir,t.NOOP=ln,t.PatchFlagNames=s,t.babelParserDefaultPlugins=Ki,t.camelize=Qn,t.capitalize=wr,t.def=Ur,t.escapeHtml=qi,t.escapeHtmlComment=Vi,t.extend=qn,t.generateCodeFrame=x,t.getGlobalThis=ei,t.hasChanged=fn,t.hasOwn=Wn,t.hyphenate=Zn,t.invokeArrayFns=Qi,t.isArray=It,t.isBooleanAttr=_e,t.isDate=un,t.isFunction=cn,t.isGloballyWhitelisted=p,t.isHTMLTag=Nr,t.isIntegerKey=Gn,t.isKnownAttr=xe,t.isMap=vr,t.isModelListener=Fr,t.isNoUnitNumericStyleProp=Vt,t.isObject=Wt,t.isOn=$r,t.isPlainObject=Jn,t.isPromise=Br,t.isReservedProp=Yn,t.isSSRSafeAttrName=Ge,t.isSVGTag=Ui,t.isSet=Dt,t.isSpecialBooleanAttr=ae,t.isString=yr,t.isSymbol=Ji,t.isVoidTag=jr,t.looseEqual=Lr,t.looseIndexOf=Un,t.makeMap=i,t.normalizeClass=zt,t.normalizeStyle=Ve,t.objectToString=Kn,t.parseStringStyle=vt,t.propsToAttrMap=At,t.remove=Vn,t.slotFlagsText=c,t.stringifyStyle=Lt,t.toDisplayString=Hn,t.toHandlerKey=Xi,t.toNumber=Hr,t.toRawType=Gi,t.toTypeString=br}}),C=_({"node_modules/@vue/shared/index.js"(t,i){i.exports=B()}}),b=_({"node_modules/@vue/reactivity/dist/reactivity.cjs.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var i=C(),s=new WeakMap,c=[],d,p=Symbol("iterate"),m=Symbol("Map key iterate");function x(u){return u&&u._isEffect===!0}function j(u,P=i.EMPTY_OBJ){x(u)&&(u=u.raw);const I=qe(u,P);return P.lazy||I(),I}function ae(u){u.active&&(Ie(u),u.options.onStop&&u.options.onStop(),u.active=!1)}var _e=0;function qe(u,P){const I=function(){if(!I.active)return u();if(!c.includes(I)){Ie(I);try{return xe(),c.push(I),d=I,u()}finally{c.pop(),Ve(),d=c[c.length-1]}}};return I.id=_e++,I.allowRecurse=!!P.allowRecurse,I._isEffect=!0,I.active=!0,I.raw=u,I.deps=[],I.options=P,I}function Ie(u){const{deps:P}=u;if(P.length){for(let I=0;I{gt&>.forEach($t=>{($t!==d||$t.allowRecurse)&&rt.add($t)})};if(P==="clear")Ne.forEach(_t);else if(I==="length"&&i.isArray(u))Ne.forEach((gt,$t)=>{($t==="length"||$t>=le)&&_t(gt)});else switch(I!==void 0&&_t(Ne.get(I)),P){case"add":i.isArray(u)?i.isIntegerKey(I)&&_t(Ne.get("length")):(_t(Ne.get(p)),i.isMap(u)&&_t(Ne.get(m)));break;case"delete":i.isArray(u)||(_t(Ne.get(p)),i.isMap(u)&&_t(Ne.get(m)));break;case"set":i.isMap(u)&&_t(Ne.get(p));break}const pn=gt=>{gt.options.onTrigger&>.options.onTrigger({effect:gt,target:u,key:I,type:P,newValue:le,oldValue:te,oldTarget:ge}),gt.options.scheduler?gt.options.scheduler(gt):gt()};rt.forEach(pn)}var vt=i.makeMap("__proto__,__v_isRef,__isVue"),Lt=new Set(Object.getOwnPropertyNames(Symbol).map(u=>Symbol[u]).filter(i.isSymbol)),zt=jr(),kr=jr(!1,!0),nn=jr(!0),an=jr(!0,!0),Nr=Ui();function Ui(){const u={};return["includes","indexOf","lastIndexOf"].forEach(P=>{u[P]=function(...I){const le=y(this);for(let ge=0,Ne=this.length;ge{u[P]=function(...I){Vt();const le=y(this)[P].apply(this,I);return Ve(),le}}),u}function jr(u=!1,P=!1){return function(le,te,ge){if(te==="__v_isReactive")return!u;if(te==="__v_isReadonly")return u;if(te==="__v_raw"&&ge===(u?P?Qn:Xn:P?_r:Yn).get(le))return le;const Ne=i.isArray(le);if(!u&&Ne&&i.hasOwn(Nr,te))return Reflect.get(Nr,te,ge);const rt=Reflect.get(le,te,ge);return(i.isSymbol(te)?Lt.has(te):vt(te))||(u||ke(le,"get",te),P)?rt:he(rt)?!Ne||!i.isIntegerKey(te)?rt.value:rt:i.isObject(rt)?u?fn(rt):wr(rt):rt}}var Hi=Bn(),qi=Bn(!0);function Bn(u=!1){return function(I,le,te,ge){let Ne=I[le];if(!u&&(te=y(te),Ne=y(Ne),!i.isArray(I)&&he(Ne)&&!he(te)))return Ne.value=te,!0;const rt=i.isArray(I)&&i.isIntegerKey(le)?Number(le)i.isObject(u)?wr(u):u,sn=u=>i.isObject(u)?fn(u):u,ln=u=>u,Ir=u=>Reflect.getPrototypeOf(u);function Dr(u,P,I=!1,le=!1){u=u.__v_raw;const te=y(u),ge=y(P);P!==ge&&!I&&ke(te,"get",P),!I&&ke(te,"get",ge);const{has:Ne}=Ir(te),rt=le?ln:I?sn:on;if(Ne.call(te,P))return rt(u.get(P));if(Ne.call(te,ge))return rt(u.get(ge));u!==te&&u.get(P)}function $r(u,P=!1){const I=this.__v_raw,le=y(I),te=y(u);return u!==te&&!P&&ke(le,"has",u),!P&&ke(le,"has",te),u===te?I.has(u):I.has(u)||I.has(te)}function Fr(u,P=!1){return u=u.__v_raw,!P&&ke(y(u),"iterate",p),Reflect.get(u,"size",u)}function qn(u){u=y(u);const P=y(this);return Ir(P).has.call(P,u)||(P.add(u),Be(P,"add",u,u)),this}function Vn(u,P){P=y(P);const I=y(this),{has:le,get:te}=Ir(I);let ge=le.call(I,u);ge?Gn(I,le,u):(u=y(u),ge=le.call(I,u));const Ne=te.call(I,u);return I.set(u,P),ge?i.hasChanged(P,Ne)&&Be(I,"set",u,P,Ne):Be(I,"add",u,P),this}function zn(u){const P=y(this),{has:I,get:le}=Ir(P);let te=I.call(P,u);te?Gn(P,I,u):(u=y(u),te=I.call(P,u));const ge=le?le.call(P,u):void 0,Ne=P.delete(u);return te&&Be(P,"delete",u,void 0,ge),Ne}function Wn(){const u=y(this),P=u.size!==0,I=i.isMap(u)?new Map(u):new Set(u),le=u.clear();return P&&Be(u,"clear",void 0,void 0,I),le}function It(u,P){return function(le,te){const ge=this,Ne=ge.__v_raw,rt=y(Ne),_t=P?ln:u?sn:on;return!u&&ke(rt,"iterate",p),Ne.forEach((pn,gt)=>le.call(te,_t(pn),_t(gt),ge))}}function vr(u,P,I){return function(...le){const te=this.__v_raw,ge=y(te),Ne=i.isMap(ge),rt=u==="entries"||u===Symbol.iterator&&Ne,_t=u==="keys"&&Ne,pn=te[u](...le),gt=I?ln:P?sn:on;return!P&&ke(ge,"iterate",_t?m:p),{next(){const{value:$t,done:ea}=pn.next();return ea?{value:$t,done:ea}:{value:rt?[gt($t[0]),gt($t[1])]:gt($t),done:ea}},[Symbol.iterator](){return this}}}}function Dt(u){return function(...P){{const I=P[0]?`on key "${P[0]}" `:"";console.warn(`${i.capitalize(u)} operation ${I}failed: target is readonly.`,y(this))}return u==="delete"?!1:this}}function un(){const u={get(ge){return Dr(this,ge)},get size(){return Fr(this)},has:$r,add:qn,set:Vn,delete:zn,clear:Wn,forEach:It(!1,!1)},P={get(ge){return Dr(this,ge,!1,!0)},get size(){return Fr(this)},has:$r,add:qn,set:Vn,delete:zn,clear:Wn,forEach:It(!1,!0)},I={get(ge){return Dr(this,ge,!0)},get size(){return Fr(this,!0)},has(ge){return $r.call(this,ge,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:It(!0,!1)},le={get(ge){return Dr(this,ge,!0,!0)},get size(){return Fr(this,!0)},has(ge){return $r.call(this,ge,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:It(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(ge=>{u[ge]=vr(ge,!1,!1),I[ge]=vr(ge,!0,!1),P[ge]=vr(ge,!1,!0),le[ge]=vr(ge,!0,!0)}),[u,I,P,le]}var[cn,yr,Ji,Wt]=un();function Br(u,P){const I=P?u?Wt:Ji:u?yr:cn;return(le,te,ge)=>te==="__v_isReactive"?!u:te==="__v_isReadonly"?u:te==="__v_raw"?le:Reflect.get(i.hasOwn(I,te)&&te in le?I:le,te,ge)}var Kn={get:Br(!1,!1)},br={get:Br(!1,!0)},Gi={get:Br(!0,!1)},Jn={get:Br(!0,!0)};function Gn(u,P,I){const le=y(I);if(le!==I&&P.call(u,le)){const te=i.toRawType(u);console.warn(`Reactive ${te} contains both the raw and reactive versions of the same object${te==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Yn=new WeakMap,_r=new WeakMap,Xn=new WeakMap,Qn=new WeakMap;function Yi(u){switch(u){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zn(u){return u.__v_skip||!Object.isExtensible(u)?0:Yi(i.toRawType(u))}function wr(u){return u&&u.__v_isReadonly?u:Ur(u,!1,Un,Kn,Yn)}function Xi(u){return Ur(u,!1,Wi,br,_r)}function fn(u){return Ur(u,!0,Hn,Gi,Xn)}function Qi(u){return Ur(u,!0,Ki,Jn,Qn)}function Ur(u,P,I,le,te){if(!i.isObject(u))return console.warn(`value cannot be made reactive: ${String(u)}`),u;if(u.__v_raw&&!(P&&u.__v_isReactive))return u;const ge=te.get(u);if(ge)return ge;const Ne=Zn(u);if(Ne===0)return u;const rt=new Proxy(u,Ne===2?le:I);return te.set(u,rt),rt}function Hr(u){return qr(u)?Hr(u.__v_raw):!!(u&&u.__v_isReactive)}function qr(u){return!!(u&&u.__v_isReadonly)}function ei(u){return Hr(u)||qr(u)}function y(u){return u&&y(u.__v_raw)||u}function Q(u){return i.def(u,"__v_skip",!0),u}var oe=u=>i.isObject(u)?wr(u):u;function he(u){return!!(u&&u.__v_isRef===!0)}function Ue(u){return bt(u)}function Xe(u){return bt(u,!0)}var yt=class{constructor(u,P=!1){this._shallow=P,this.__v_isRef=!0,this._rawValue=P?u:y(u),this._value=P?u:oe(u)}get value(){return ke(y(this),"get","value"),this._value}set value(u){u=this._shallow?u:y(u),i.hasChanged(u,this._rawValue)&&(this._rawValue=u,this._value=this._shallow?u:oe(u),Be(y(this),"set","value",u))}};function bt(u,P=!1){return he(u)?u:new yt(u,P)}function ft(u){Be(y(u),"set","value",u.value)}function dn(u){return he(u)?u.value:u}var Vr={get:(u,P,I)=>dn(Reflect.get(u,P,I)),set:(u,P,I,le)=>{const te=u[P];return he(te)&&!he(I)?(te.value=I,!0):Reflect.set(u,P,I,le)}};function ti(u){return Hr(u)?u:new Proxy(u,Vr)}var zr=class{constructor(u){this.__v_isRef=!0;const{get:P,set:I}=u(()=>ke(this,"get","value"),()=>Be(this,"set","value"));this._get=P,this._set=I}get value(){return this._get()}set value(u){this._set(u)}};function Zi(u){return new zr(u)}function ql(u){ei(u)||console.warn("toRefs() expects a reactive object but received a plain one.");const P=i.isArray(u)?new Array(u.length):{};for(const I in u)P[I]=_o(u,I);return P}var Vl=class{constructor(u,P){this._object=u,this._key=P,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(u){this._object[this._key]=u}};function _o(u,P){return he(u[P])?u[P]:new Vl(u,P)}var zl=class{constructor(u,P,I){this._setter=P,this._dirty=!0,this.__v_isRef=!0,this.effect=j(u,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Be(y(this),"set","value"))}}),this.__v_isReadonly=I}get value(){const u=y(this);return u._dirty&&(u._value=this.effect(),u._dirty=!1),ke(u,"get","value"),u._value}set value(u){this._setter(u)}};function Wl(u){let P,I;return i.isFunction(u)?(P=u,I=()=>{console.warn("Write operation failed: computed value is readonly")}):(P=u.get,I=u.set),new zl(P,I,i.isFunction(u)||!u.set)}t.ITERATE_KEY=p,t.computed=Wl,t.customRef=Zi,t.effect=j,t.enableTracking=xe,t.isProxy=ei,t.isReactive=Hr,t.isReadonly=qr,t.isRef=he,t.markRaw=Q,t.pauseTracking=Vt,t.proxyRefs=ti,t.reactive=wr,t.readonly=fn,t.ref=Ue,t.resetTracking=Ve,t.shallowReactive=Xi,t.shallowReadonly=Qi,t.shallowRef=Xe,t.stop=ae,t.toRaw=y,t.toRef=_o,t.toRefs=ql,t.track=ke,t.trigger=Be,t.triggerRef=ft,t.unref=dn}}),T=_({"node_modules/@vue/reactivity/index.js"(t,i){i.exports=b()}}),E={};N(E,{Alpine:()=>bo,default:()=>Hl}),r.exports=ne(E);var O=!1,D=!1,F=[],be=-1;function Se(t){G(t)}function G(t){F.includes(t)||F.push(t),R()}function W(t){let i=F.indexOf(t);i!==-1&&i>be&&F.splice(i,1)}function R(){!D&&!O&&(O=!0,queueMicrotask(K))}function K(){O=!1,D=!0;for(let t=0;tt.effect(i,{scheduler:s=>{Ce?Se(s):s()}}),re=t.raw}function X(t){S=t}function nt(t){let i=()=>{};return[c=>{let d=S(c);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(p=>p())}),t._x_effects.add(d),i=()=>{d!==void 0&&(t._x_effects.delete(d),M(d))},d},()=>{i()}]}function ze(t,i){let s=!0,c,d=S(()=>{let p=t();JSON.stringify(p),s?c=p:queueMicrotask(()=>{i(p,c),c=p}),s=!1});return()=>M(d)}var fe=[],me=[],we=[];function Oe(t){we.push(t)}function J(t,i){typeof i=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(i)):(i=t,me.push(i))}function ee(t){fe.push(t)}function We(t,i,s){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[i]||(t._x_attributeCleanups[i]=[]),t._x_attributeCleanups[i].push(s)}function pt(t,i){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([s,c])=>{(i===void 0||i.includes(s))&&(c.forEach(d=>d()),delete t._x_attributeCleanups[s])})}function st(t){var i,s;for((i=t._x_effects)==null||i.forEach(W);(s=t._x_cleanups)!=null&&s.length;)t._x_cleanups.pop()()}var Ze=new MutationObserver(Ye),wt=!1;function Ke(){Ze.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),wt=!0}function Pt(){Ft(),Ze.disconnect(),wt=!1}var Et=[];function Ft(){let t=Ze.takeRecords();Et.push(()=>t.length>0&&Ye(t));let i=Et.length;queueMicrotask(()=>{if(Et.length===i)for(;Et.length>0;)Et.shift()()})}function de(t){if(!wt)return t();Pt();let i=t();return Ke(),i}var $=!1,U=[];function ye(){$=!0}function Ae(){$=!1,Ye(U),U=[]}function Ye(t){if($){U=U.concat(t);return}let i=[],s=new Set,c=new Map,d=new Map;for(let p=0;p{m.nodeType===1&&m._x_marker&&s.add(m)}),t[p].addedNodes.forEach(m=>{if(m.nodeType===1){if(s.has(m)){s.delete(m);return}m._x_marker||i.push(m)}})),t[p].type==="attributes")){let m=t[p].target,x=t[p].attributeName,j=t[p].oldValue,ae=()=>{c.has(m)||c.set(m,[]),c.get(m).push({name:x,value:m.getAttribute(x)})},_e=()=>{d.has(m)||d.set(m,[]),d.get(m).push(x)};m.hasAttribute(x)&&j===null?ae():m.hasAttribute(x)?(_e(),ae()):_e()}d.forEach((p,m)=>{pt(m,p)}),c.forEach((p,m)=>{fe.forEach(x=>x(m,p))});for(let p of s)i.some(m=>m.contains(p))||me.forEach(m=>m(p));for(let p of i)p.isConnected&&we.forEach(m=>m(p));i=null,s=null,c=null,d=null}function ve(t){return pe(Y(t))}function V(t,i,s){return t._x_dataStack=[i,...Y(s||t)],()=>{t._x_dataStack=t._x_dataStack.filter(c=>c!==i)}}function Y(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?Y(t.host):t.parentNode?Y(t.parentNode):[]}function pe(t){return new Proxy({objects:t},He)}var He={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(i=>Object.keys(i))))},has({objects:t},i){return i==Symbol.unscopables?!1:t.some(s=>Object.prototype.hasOwnProperty.call(s,i)||Reflect.has(s,i))},get({objects:t},i,s){return i=="toJSON"?Fe:Reflect.get(t.find(c=>Reflect.has(c,i))||{},i,s)},set({objects:t},i,s,c){const d=t.find(m=>Object.prototype.hasOwnProperty.call(m,i))||t[t.length-1],p=Object.getOwnPropertyDescriptor(d,i);return p!=null&&p.set&&(p!=null&&p.get)?p.set.call(c,s)||!0:Reflect.set(d,i,s)}};function Fe(){return Reflect.ownKeys(this).reduce((i,s)=>(i[s]=Reflect.get(this,s),i),{})}function it(t){let i=c=>typeof c=="object"&&!Array.isArray(c)&&c!==null,s=(c,d="")=>{Object.entries(Object.getOwnPropertyDescriptors(c)).forEach(([p,{value:m,enumerable:x}])=>{if(x===!1||m===void 0||typeof m=="object"&&m!==null&&m.__v_skip)return;let j=d===""?p:`${d}.${p}`;typeof m=="object"&&m!==null&&m._x_interceptor?c[p]=m.initialize(t,j,p):i(m)&&m!==c&&!(m instanceof Element)&&s(m,j)})};return s(t)}function at(t,i=()=>{}){let s={initialValue:void 0,_x_interceptor:!0,initialize(c,d,p){return t(this.initialValue,()=>Rt(c,d),m=>Nt(c,d,m),d,p)}};return i(s),c=>{if(typeof c=="object"&&c!==null&&c._x_interceptor){let d=s.initialize.bind(s);s.initialize=(p,m,x)=>{let j=c.initialize(p,m,x);return s.initialValue=j,d(p,m,x)}}else s.initialValue=c;return s}}function Rt(t,i){return i.split(".").reduce((s,c)=>s[c],t)}function Nt(t,i,s){if(typeof i=="string"&&(i=i.split(".")),i.length===1)t[i[0]]=s;else{if(i.length===0)throw error;return t[i[0]]||(t[i[0]]={}),Nt(t[i[0]],i.slice(1),s)}}var fr={};function xt(t,i){fr[t]=i}function jt(t,i){let s=dr(i);return Object.entries(fr).forEach(([c,d])=>{Object.defineProperty(t,`$${c}`,{get(){return d(i,s)},enumerable:!1})}),t}function dr(t){let[i,s]=Le(t),c={interceptor:at,...i};return J(t,s),c}function En(t,i,s,...c){try{return s(...c)}catch(d){nr(d,t,i)}}function nr(...t){return An(...t)}var An=Si;function xi(t){An=t}function Si(t,i,s=void 0){t=Object.assign(t??{message:"No error message given."},{el:i,expression:s}),console.warn(`Alpine Expression Error: ${t.message} +import{A as Kl}from"./index-08e160a7.js";import{c as Jt,g as Jl}from"./_commonjsHelpers-725317a4.js";var Gl={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[624,626],[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[622019,622999],[62207,62209],[622126,622925],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}}},Yl=Gl,si={},_n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.clone=void 0;function Xl(e){return e?JSON.parse(JSON.stringify(e)):null}_n.clone=Xl;var li={};Object.defineProperty(li,"__esModule",{value:!0});li.matches=void 0;function Ql(e,r,n){var a=String(r).length,o=e.substr(0,a),l=parseInt(o,10);return r=parseInt(String(r).substr(0,o.length),10),n=parseInt(String(n).substr(0,o.length),10),l>=r&&l<=n}function Zl(e,r){return r=String(r),r.substring(0,e.length)===e.substring(0,r.length)}function eu(e,r){return Array.isArray(r)?Ql(e,r[0],r[1]):Zl(e,r)}li.matches=eu;Object.defineProperty(si,"__esModule",{value:!0});si.addMatchingCardsToResults=void 0;var tu=_n,ru=li;function nu(e,r,n){var a,o;for(a=0;a=o&&(h.matchStrength=o),n.push(h);break}}}si.addMatchingCardsToResults=nu;var ui={};Object.defineProperty(ui,"__esModule",{value:!0});ui.isValidInputType=void 0;function iu(e){return typeof e=="string"||e instanceof String}ui.isValidInputType=iu;var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.findBestMatch=void 0;function au(e){var r=e.filter(function(n){return n.matchStrength}).length;return r>0&&r===e.length}function ou(e){return au(e)?e.reduce(function(r,n){return!r||Number(r.matchStrength)du?hn(!1,!1):fu.test(e)?hn(!1,!0):hn(!0,!0)}fi.cardholderName=pu;var di={};function hu(e){for(var r=0,n=!1,a=e.length-1,o;a>=0;)o=parseInt(e.charAt(a),10),n&&(o*=2,o>9&&(o=o%10+1)),n=!n,r+=o,a--;return r%10===0}var gu=hu;Object.defineProperty(di,"__esModule",{value:!0});di.cardNumber=void 0;var mu=gu,wo=as;function xr(e,r,n){return{card:e,isPotentiallyValid:r,isValid:n}}function vu(e,r){r===void 0&&(r={});var n,a,o;if(typeof e!="string"&&typeof e!="number")return xr(null,!1,!1);var l=String(e).replace(/-|\s/g,"");if(!/^\d*$/.test(l))return xr(null,!1,!1);var h=wo(l);if(h.length===0)return xr(null,!1,!1);if(h.length!==1)return xr(null,!0,!1);var v=h[0];if(r.maxLength&&l.length>r.maxLength)return xr(v,!1,!1);v.type===wo.types.UNIONPAY&&r.luhnValidateUnionPay!==!0?a=!0:a=mu(l),o=Math.max.apply(null,v.lengths),r.maxLength&&(o=Math.min(r.maxLength,o));for(var _=0;_4)return lr(!1,!1);var v=parseInt(e,10),_=Number(String(o).substr(2,2)),j=!1;if(a===2){if(String(o).substr(0,2)===e)return lr(!1,!0);n=_===v,j=v>=_&&v<=_+r}else a===4&&(n=o===v,j=v>=o&&v<=o+r);return lr(j,j,n)}en.expirationYear=bu;var gi={};Object.defineProperty(gi,"__esModule",{value:!0});gi.isArray=void 0;gi.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};Object.defineProperty(hi,"__esModule",{value:!0});hi.parseDate=void 0;var _u=en,wu=gi;function xu(e){var r=Number(e[0]),n;return r===0?2:r>1||r===1&&Number(e[1])>2?1:r===1?(n=e.substr(1),_u.expirationYear(n).isPotentiallyValid?1:2):e.length===5?1:e.length>5?2:1}function Su(e){var r;if(/^\d{4}-\d{1,2}$/.test(e)?r=e.split("-").reverse():/\//.test(e)?r=e.split(/\s*\/\s*/g):/\s/.test(e)&&(r=e.split(/ +/g)),wu.isArray(r))return{month:r[0]||"",year:r.slice(1).join()};var n=xu(e),a=e.substr(0,n);return{month:a,year:e.substr(a.length)}}hi.parseDate=Su;var xn={};Object.defineProperty(xn,"__esModule",{value:!0});xn.expirationMonth=void 0;function gn(e,r,n){return{isValid:e,isPotentiallyValid:r,isValidForThisYear:n||!1}}function Eu(e){var r=new Date().getMonth()+1;if(typeof e!="string")return gn(!1,!1);if(e.replace(/\s/g,"")===""||e==="0")return gn(!1,!0);if(!/^\d*$/.test(e))return gn(!1,!1);var n=parseInt(e,10);if(isNaN(Number(e)))return gn(!1,!1);var a=n>0&&n<13;return gn(a,a,a&&n>=r)}xn.expirationMonth=Eu;var da=Jt&&Jt.__assign||function(){return da=Object.assign||function(e){for(var r,n=1,a=arguments.length;nr?e[n]:r;return r}function Wr(e,r){return{isValid:e,isPotentiallyValid:r}}function Mu(e,r){return r===void 0&&(r=os),r=r instanceof Array?r:[r],typeof e!="string"||!/^\d*$/.test(e)?Wr(!1,!1):Pu(r,e.length)?Wr(!0,!0):e.lengthRu(r)?Wr(!1,!1):Wr(!0,!0)}mi.cvv=Mu;var vi={};Object.defineProperty(vi,"__esModule",{value:!0});vi.postalCode=void 0;var ku=3;function ta(e,r){return{isValid:e,isPotentiallyValid:r}}function Nu(e,r){r===void 0&&(r={});var n=r.minLength||ku;return typeof e!="string"?ta(!1,!1):e.lengthfunction(){return r||(0,e[ls(e)[0]])((r={exports:{}}).exports,r),r.exports},Qu=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ls(r))!Xu.call(e,o)&&o!==n&&ss(e,o,{get:()=>r[o],enumerable:!(a=Gu(r,o))||a.enumerable});return e},Je=(e,r,n)=>(n=e!=null?Ju(Yu(e)):{},Qu(r||!e||!e.__esModule?ss(n,"default",{value:e,enumerable:!0}):n,e)),ct=rr({"node_modules/alpinejs/dist/module.cjs.js"(e,r){var n=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,_=(t,i)=>function(){return i||(0,t[l(t)[0]])((i={exports:{}}).exports,i),i.exports},j=(t,i)=>{for(var s in i)a(t,s,{get:i[s],enumerable:!0})},R=(t,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(let d of l(i))!v.call(t,d)&&d!==s&&a(t,d,{get:()=>i[d],enumerable:!(c=o(i,d))||c.enumerable});return t},re=(t,i,s)=>(s=t!=null?n(h(t)):{},R(i||!t||!t.__esModule?a(s,"default",{value:t,enumerable:!0}):s,t)),ie=t=>R(a({},"__esModule",{value:!0}),t),B=_({"node_modules/@vue/shared/dist/shared.cjs.js"(t){Object.defineProperty(t,"__esModule",{value:!0});function i(y,Q){const oe=Object.create(null),he=y.split(",");for(let Ue=0;Ue!!oe[Ue.toLowerCase()]:Ue=>!!oe[Ue]}var s={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},c={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},d="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",p=i(d),m=2;function x(y,Q=0,oe=y.length){let he=y.split(/(\r?\n)/);const Ue=he.filter((bt,ft)=>ft%2===1);he=he.filter((bt,ft)=>ft%2===0);let Xe=0;const yt=[];for(let bt=0;bt=Q){for(let ft=bt-m;ft<=bt+m||oe>Xe;ft++){if(ft<0||ft>=he.length)continue;const dn=ft+1;yt.push(`${dn}${" ".repeat(Math.max(3-String(dn).length,0))}| ${he[ft]}`);const Vr=he[ft].length,ti=Ue[ft]&&Ue[ft].length||0;if(ft===bt){const zr=Q-(Xe-(Vr+ti)),Zi=Math.max(1,oe>Xe?Vr-zr:oe-Q);yt.push(" | "+" ".repeat(zr)+"^".repeat(Zi))}else if(ft>bt){if(oe>Xe){const zr=Math.max(Math.min(oe-Xe,Vr),1);yt.push(" | "+"^".repeat(zr))}Xe+=Vr+ti}}break}return yt.join(` +`)}var L="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ae=i(L),_e=i(L+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),qe=/[>/="'\u0009\u000a\u000c\u0020]/,Ie={};function Ge(y){if(Ie.hasOwnProperty(y))return Ie[y];const Q=qe.test(y);return Q&&console.error(`unsafe attribute name: ${y}`),Ie[y]=!Q}var At={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Vt=i("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),xe=i("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");function Ve(y){if(It(y)){const Q={};for(let oe=0;oe{if(oe){const he=oe.split(Be);he.length>1&&(Q[he[0].trim()]=he[1].trim())}}),Q}function Lt(y){let Q="";if(!y)return Q;for(const oe in y){const he=y[oe],Ue=oe.startsWith("--")?oe:Zn(oe);(yr(he)||typeof he=="number"&&Vt(Ue))&&(Q+=`${Ue}:${he};`)}return Q}function zt(y){let Q="";if(yr(y))Q=y;else if(It(y))for(let oe=0;oe]/;function qi(y){const Q=""+y,oe=Hi.exec(Q);if(!oe)return Q;let he="",Ue,Xe,yt=0;for(Xe=oe.index;Xe||--!>|Lr(oe,Q))}var Hn=y=>y==null?"":Wt(y)?JSON.stringify(y,Wi,2):String(y),Wi=(y,Q)=>vr(Q)?{[`Map(${Q.size})`]:[...Q.entries()].reduce((oe,[he,Ue])=>(oe[`${he} =>`]=Ue,oe),{})}:Dt(Q)?{[`Set(${Q.size})`]:[...Q.values()]}:Wt(Q)&&!It(Q)&&!Jn(Q)?String(Q):Q,Ki=["bigInt","optionalChaining","nullishCoalescingOperator"],on=Object.freeze({}),sn=Object.freeze([]),ln=()=>{},Ir=()=>!1,Dr=/^on[^a-z]/,$r=y=>Dr.test(y),Fr=y=>y.startsWith("onUpdate:"),qn=Object.assign,Vn=(y,Q)=>{const oe=y.indexOf(Q);oe>-1&&y.splice(oe,1)},zn=Object.prototype.hasOwnProperty,Wn=(y,Q)=>zn.call(y,Q),It=Array.isArray,vr=y=>br(y)==="[object Map]",Dt=y=>br(y)==="[object Set]",un=y=>y instanceof Date,cn=y=>typeof y=="function",yr=y=>typeof y=="string",Ji=y=>typeof y=="symbol",Wt=y=>y!==null&&typeof y=="object",Br=y=>Wt(y)&&cn(y.then)&&cn(y.catch),Kn=Object.prototype.toString,br=y=>Kn.call(y),Gi=y=>br(y).slice(8,-1),Jn=y=>br(y)==="[object Object]",Gn=y=>yr(y)&&y!=="NaN"&&y[0]!=="-"&&""+parseInt(y,10)===y,Yn=i(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_r=y=>{const Q=Object.create(null);return oe=>Q[oe]||(Q[oe]=y(oe))},Xn=/-(\w)/g,Qn=_r(y=>y.replace(Xn,(Q,oe)=>oe?oe.toUpperCase():"")),Yi=/\B([A-Z])/g,Zn=_r(y=>y.replace(Yi,"-$1").toLowerCase()),wr=_r(y=>y.charAt(0).toUpperCase()+y.slice(1)),Xi=_r(y=>y?`on${wr(y)}`:""),fn=(y,Q)=>y!==Q&&(y===y||Q===Q),Qi=(y,Q)=>{for(let oe=0;oe{Object.defineProperty(y,Q,{configurable:!0,enumerable:!1,value:oe})},Hr=y=>{const Q=parseFloat(y);return isNaN(Q)?y:Q},qr,ei=()=>qr||(qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});t.EMPTY_ARR=sn,t.EMPTY_OBJ=on,t.NO=Ir,t.NOOP=ln,t.PatchFlagNames=s,t.babelParserDefaultPlugins=Ki,t.camelize=Qn,t.capitalize=wr,t.def=Ur,t.escapeHtml=qi,t.escapeHtmlComment=Vi,t.extend=qn,t.generateCodeFrame=x,t.getGlobalThis=ei,t.hasChanged=fn,t.hasOwn=Wn,t.hyphenate=Zn,t.invokeArrayFns=Qi,t.isArray=It,t.isBooleanAttr=_e,t.isDate=un,t.isFunction=cn,t.isGloballyWhitelisted=p,t.isHTMLTag=Nr,t.isIntegerKey=Gn,t.isKnownAttr=xe,t.isMap=vr,t.isModelListener=Fr,t.isNoUnitNumericStyleProp=Vt,t.isObject=Wt,t.isOn=$r,t.isPlainObject=Jn,t.isPromise=Br,t.isReservedProp=Yn,t.isSSRSafeAttrName=Ge,t.isSVGTag=Ui,t.isSet=Dt,t.isSpecialBooleanAttr=ae,t.isString=yr,t.isSymbol=Ji,t.isVoidTag=jr,t.looseEqual=Lr,t.looseIndexOf=Un,t.makeMap=i,t.normalizeClass=zt,t.normalizeStyle=Ve,t.objectToString=Kn,t.parseStringStyle=vt,t.propsToAttrMap=At,t.remove=Vn,t.slotFlagsText=c,t.stringifyStyle=Lt,t.toDisplayString=Hn,t.toHandlerKey=Xi,t.toNumber=Hr,t.toRawType=Gi,t.toTypeString=br}}),C=_({"node_modules/@vue/shared/index.js"(t,i){i.exports=B()}}),b=_({"node_modules/@vue/reactivity/dist/reactivity.cjs.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var i=C(),s=new WeakMap,c=[],d,p=Symbol("iterate"),m=Symbol("Map key iterate");function x(u){return u&&u._isEffect===!0}function L(u,P=i.EMPTY_OBJ){x(u)&&(u=u.raw);const I=qe(u,P);return P.lazy||I(),I}function ae(u){u.active&&(Ie(u),u.options.onStop&&u.options.onStop(),u.active=!1)}var _e=0;function qe(u,P){const I=function(){if(!I.active)return u();if(!c.includes(I)){Ie(I);try{return xe(),c.push(I),d=I,u()}finally{c.pop(),Ve(),d=c[c.length-1]}}};return I.id=_e++,I.allowRecurse=!!P.allowRecurse,I._isEffect=!0,I.active=!0,I.raw=u,I.deps=[],I.options=P,I}function Ie(u){const{deps:P}=u;if(P.length){for(let I=0;I{gt&>.forEach($t=>{($t!==d||$t.allowRecurse)&&rt.add($t)})};if(P==="clear")Ne.forEach(_t);else if(I==="length"&&i.isArray(u))Ne.forEach((gt,$t)=>{($t==="length"||$t>=le)&&_t(gt)});else switch(I!==void 0&&_t(Ne.get(I)),P){case"add":i.isArray(u)?i.isIntegerKey(I)&&_t(Ne.get("length")):(_t(Ne.get(p)),i.isMap(u)&&_t(Ne.get(m)));break;case"delete":i.isArray(u)||(_t(Ne.get(p)),i.isMap(u)&&_t(Ne.get(m)));break;case"set":i.isMap(u)&&_t(Ne.get(p));break}const pn=gt=>{gt.options.onTrigger&>.options.onTrigger({effect:gt,target:u,key:I,type:P,newValue:le,oldValue:te,oldTarget:ge}),gt.options.scheduler?gt.options.scheduler(gt):gt()};rt.forEach(pn)}var vt=i.makeMap("__proto__,__v_isRef,__isVue"),Lt=new Set(Object.getOwnPropertyNames(Symbol).map(u=>Symbol[u]).filter(i.isSymbol)),zt=jr(),kr=jr(!1,!0),nn=jr(!0),an=jr(!0,!0),Nr=Ui();function Ui(){const u={};return["includes","indexOf","lastIndexOf"].forEach(P=>{u[P]=function(...I){const le=y(this);for(let ge=0,Ne=this.length;ge{u[P]=function(...I){Vt();const le=y(this)[P].apply(this,I);return Ve(),le}}),u}function jr(u=!1,P=!1){return function(le,te,ge){if(te==="__v_isReactive")return!u;if(te==="__v_isReadonly")return u;if(te==="__v_raw"&&ge===(u?P?Qn:Xn:P?_r:Yn).get(le))return le;const Ne=i.isArray(le);if(!u&&Ne&&i.hasOwn(Nr,te))return Reflect.get(Nr,te,ge);const rt=Reflect.get(le,te,ge);return(i.isSymbol(te)?Lt.has(te):vt(te))||(u||ke(le,"get",te),P)?rt:he(rt)?!Ne||!i.isIntegerKey(te)?rt.value:rt:i.isObject(rt)?u?fn(rt):wr(rt):rt}}var Hi=Bn(),qi=Bn(!0);function Bn(u=!1){return function(I,le,te,ge){let Ne=I[le];if(!u&&(te=y(te),Ne=y(Ne),!i.isArray(I)&&he(Ne)&&!he(te)))return Ne.value=te,!0;const rt=i.isArray(I)&&i.isIntegerKey(le)?Number(le)i.isObject(u)?wr(u):u,sn=u=>i.isObject(u)?fn(u):u,ln=u=>u,Ir=u=>Reflect.getPrototypeOf(u);function Dr(u,P,I=!1,le=!1){u=u.__v_raw;const te=y(u),ge=y(P);P!==ge&&!I&&ke(te,"get",P),!I&&ke(te,"get",ge);const{has:Ne}=Ir(te),rt=le?ln:I?sn:on;if(Ne.call(te,P))return rt(u.get(P));if(Ne.call(te,ge))return rt(u.get(ge));u!==te&&u.get(P)}function $r(u,P=!1){const I=this.__v_raw,le=y(I),te=y(u);return u!==te&&!P&&ke(le,"has",u),!P&&ke(le,"has",te),u===te?I.has(u):I.has(u)||I.has(te)}function Fr(u,P=!1){return u=u.__v_raw,!P&&ke(y(u),"iterate",p),Reflect.get(u,"size",u)}function qn(u){u=y(u);const P=y(this);return Ir(P).has.call(P,u)||(P.add(u),Be(P,"add",u,u)),this}function Vn(u,P){P=y(P);const I=y(this),{has:le,get:te}=Ir(I);let ge=le.call(I,u);ge?Gn(I,le,u):(u=y(u),ge=le.call(I,u));const Ne=te.call(I,u);return I.set(u,P),ge?i.hasChanged(P,Ne)&&Be(I,"set",u,P,Ne):Be(I,"add",u,P),this}function zn(u){const P=y(this),{has:I,get:le}=Ir(P);let te=I.call(P,u);te?Gn(P,I,u):(u=y(u),te=I.call(P,u));const ge=le?le.call(P,u):void 0,Ne=P.delete(u);return te&&Be(P,"delete",u,void 0,ge),Ne}function Wn(){const u=y(this),P=u.size!==0,I=i.isMap(u)?new Map(u):new Set(u),le=u.clear();return P&&Be(u,"clear",void 0,void 0,I),le}function It(u,P){return function(le,te){const ge=this,Ne=ge.__v_raw,rt=y(Ne),_t=P?ln:u?sn:on;return!u&&ke(rt,"iterate",p),Ne.forEach((pn,gt)=>le.call(te,_t(pn),_t(gt),ge))}}function vr(u,P,I){return function(...le){const te=this.__v_raw,ge=y(te),Ne=i.isMap(ge),rt=u==="entries"||u===Symbol.iterator&&Ne,_t=u==="keys"&&Ne,pn=te[u](...le),gt=I?ln:P?sn:on;return!P&&ke(ge,"iterate",_t?m:p),{next(){const{value:$t,done:ea}=pn.next();return ea?{value:$t,done:ea}:{value:rt?[gt($t[0]),gt($t[1])]:gt($t),done:ea}},[Symbol.iterator](){return this}}}}function Dt(u){return function(...P){{const I=P[0]?`on key "${P[0]}" `:"";console.warn(`${i.capitalize(u)} operation ${I}failed: target is readonly.`,y(this))}return u==="delete"?!1:this}}function un(){const u={get(ge){return Dr(this,ge)},get size(){return Fr(this)},has:$r,add:qn,set:Vn,delete:zn,clear:Wn,forEach:It(!1,!1)},P={get(ge){return Dr(this,ge,!1,!0)},get size(){return Fr(this)},has:$r,add:qn,set:Vn,delete:zn,clear:Wn,forEach:It(!1,!0)},I={get(ge){return Dr(this,ge,!0)},get size(){return Fr(this,!0)},has(ge){return $r.call(this,ge,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:It(!0,!1)},le={get(ge){return Dr(this,ge,!0,!0)},get size(){return Fr(this,!0)},has(ge){return $r.call(this,ge,!0)},add:Dt("add"),set:Dt("set"),delete:Dt("delete"),clear:Dt("clear"),forEach:It(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(ge=>{u[ge]=vr(ge,!1,!1),I[ge]=vr(ge,!0,!1),P[ge]=vr(ge,!1,!0),le[ge]=vr(ge,!0,!0)}),[u,I,P,le]}var[cn,yr,Ji,Wt]=un();function Br(u,P){const I=P?u?Wt:Ji:u?yr:cn;return(le,te,ge)=>te==="__v_isReactive"?!u:te==="__v_isReadonly"?u:te==="__v_raw"?le:Reflect.get(i.hasOwn(I,te)&&te in le?I:le,te,ge)}var Kn={get:Br(!1,!1)},br={get:Br(!1,!0)},Gi={get:Br(!0,!1)},Jn={get:Br(!0,!0)};function Gn(u,P,I){const le=y(I);if(le!==I&&P.call(u,le)){const te=i.toRawType(u);console.warn(`Reactive ${te} contains both the raw and reactive versions of the same object${te==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Yn=new WeakMap,_r=new WeakMap,Xn=new WeakMap,Qn=new WeakMap;function Yi(u){switch(u){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zn(u){return u.__v_skip||!Object.isExtensible(u)?0:Yi(i.toRawType(u))}function wr(u){return u&&u.__v_isReadonly?u:Ur(u,!1,Un,Kn,Yn)}function Xi(u){return Ur(u,!1,Wi,br,_r)}function fn(u){return Ur(u,!0,Hn,Gi,Xn)}function Qi(u){return Ur(u,!0,Ki,Jn,Qn)}function Ur(u,P,I,le,te){if(!i.isObject(u))return console.warn(`value cannot be made reactive: ${String(u)}`),u;if(u.__v_raw&&!(P&&u.__v_isReactive))return u;const ge=te.get(u);if(ge)return ge;const Ne=Zn(u);if(Ne===0)return u;const rt=new Proxy(u,Ne===2?le:I);return te.set(u,rt),rt}function Hr(u){return qr(u)?Hr(u.__v_raw):!!(u&&u.__v_isReactive)}function qr(u){return!!(u&&u.__v_isReadonly)}function ei(u){return Hr(u)||qr(u)}function y(u){return u&&y(u.__v_raw)||u}function Q(u){return i.def(u,"__v_skip",!0),u}var oe=u=>i.isObject(u)?wr(u):u;function he(u){return!!(u&&u.__v_isRef===!0)}function Ue(u){return bt(u)}function Xe(u){return bt(u,!0)}var yt=class{constructor(u,P=!1){this._shallow=P,this.__v_isRef=!0,this._rawValue=P?u:y(u),this._value=P?u:oe(u)}get value(){return ke(y(this),"get","value"),this._value}set value(u){u=this._shallow?u:y(u),i.hasChanged(u,this._rawValue)&&(this._rawValue=u,this._value=this._shallow?u:oe(u),Be(y(this),"set","value",u))}};function bt(u,P=!1){return he(u)?u:new yt(u,P)}function ft(u){Be(y(u),"set","value",u.value)}function dn(u){return he(u)?u.value:u}var Vr={get:(u,P,I)=>dn(Reflect.get(u,P,I)),set:(u,P,I,le)=>{const te=u[P];return he(te)&&!he(I)?(te.value=I,!0):Reflect.set(u,P,I,le)}};function ti(u){return Hr(u)?u:new Proxy(u,Vr)}var zr=class{constructor(u){this.__v_isRef=!0;const{get:P,set:I}=u(()=>ke(this,"get","value"),()=>Be(this,"set","value"));this._get=P,this._set=I}get value(){return this._get()}set value(u){this._set(u)}};function Zi(u){return new zr(u)}function ql(u){ei(u)||console.warn("toRefs() expects a reactive object but received a plain one.");const P=i.isArray(u)?new Array(u.length):{};for(const I in u)P[I]=_o(u,I);return P}var Vl=class{constructor(u,P){this._object=u,this._key=P,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(u){this._object[this._key]=u}};function _o(u,P){return he(u[P])?u[P]:new Vl(u,P)}var zl=class{constructor(u,P,I){this._setter=P,this._dirty=!0,this.__v_isRef=!0,this.effect=L(u,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Be(y(this),"set","value"))}}),this.__v_isReadonly=I}get value(){const u=y(this);return u._dirty&&(u._value=this.effect(),u._dirty=!1),ke(u,"get","value"),u._value}set value(u){this._setter(u)}};function Wl(u){let P,I;return i.isFunction(u)?(P=u,I=()=>{console.warn("Write operation failed: computed value is readonly")}):(P=u.get,I=u.set),new zl(P,I,i.isFunction(u)||!u.set)}t.ITERATE_KEY=p,t.computed=Wl,t.customRef=Zi,t.effect=L,t.enableTracking=xe,t.isProxy=ei,t.isReactive=Hr,t.isReadonly=qr,t.isRef=he,t.markRaw=Q,t.pauseTracking=Vt,t.proxyRefs=ti,t.reactive=wr,t.readonly=fn,t.ref=Ue,t.resetTracking=Ve,t.shallowReactive=Xi,t.shallowReadonly=Qi,t.shallowRef=Xe,t.stop=ae,t.toRaw=y,t.toRef=_o,t.toRefs=ql,t.track=ke,t.trigger=Be,t.triggerRef=ft,t.unref=dn}}),T=_({"node_modules/@vue/reactivity/index.js"(t,i){i.exports=b()}}),E={};j(E,{Alpine:()=>bo,default:()=>Hl}),r.exports=ie(E);var O=!1,D=!1,F=[],be=-1;function Se(t){G(t)}function G(t){F.includes(t)||F.push(t),M()}function W(t){let i=F.indexOf(t);i!==-1&&i>be&&F.splice(i,1)}function M(){!D&&!O&&(O=!0,queueMicrotask(K))}function K(){O=!1,D=!0;for(let t=0;tt.effect(i,{scheduler:s=>{Ce?Se(s):s()}}),ne=t.raw}function X(t){S=t}function nt(t){let i=()=>{};return[c=>{let d=S(c);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(p=>p())}),t._x_effects.add(d),i=()=>{d!==void 0&&(t._x_effects.delete(d),k(d))},d},()=>{i()}]}function ze(t,i){let s=!0,c,d=S(()=>{let p=t();JSON.stringify(p),s?c=p:queueMicrotask(()=>{i(p,c),c=p}),s=!1});return()=>k(d)}var fe=[],me=[],we=[];function Oe(t){we.push(t)}function J(t,i){typeof i=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(i)):(i=t,me.push(i))}function ee(t){fe.push(t)}function We(t,i,s){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[i]||(t._x_attributeCleanups[i]=[]),t._x_attributeCleanups[i].push(s)}function pt(t,i){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([s,c])=>{(i===void 0||i.includes(s))&&(c.forEach(d=>d()),delete t._x_attributeCleanups[s])})}function st(t){var i,s;for((i=t._x_effects)==null||i.forEach(W);(s=t._x_cleanups)!=null&&s.length;)t._x_cleanups.pop()()}var Ze=new MutationObserver(Ye),wt=!1;function Ke(){Ze.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),wt=!0}function Pt(){Ft(),Ze.disconnect(),wt=!1}var Et=[];function Ft(){let t=Ze.takeRecords();Et.push(()=>t.length>0&&Ye(t));let i=Et.length;queueMicrotask(()=>{if(Et.length===i)for(;Et.length>0;)Et.shift()()})}function de(t){if(!wt)return t();Pt();let i=t();return Ke(),i}var $=!1,U=[];function ye(){$=!0}function Ae(){$=!1,Ye(U),U=[]}function Ye(t){if($){U=U.concat(t);return}let i=[],s=new Set,c=new Map,d=new Map;for(let p=0;p{m.nodeType===1&&m._x_marker&&s.add(m)}),t[p].addedNodes.forEach(m=>{if(m.nodeType===1){if(s.has(m)){s.delete(m);return}m._x_marker||i.push(m)}})),t[p].type==="attributes")){let m=t[p].target,x=t[p].attributeName,L=t[p].oldValue,ae=()=>{c.has(m)||c.set(m,[]),c.get(m).push({name:x,value:m.getAttribute(x)})},_e=()=>{d.has(m)||d.set(m,[]),d.get(m).push(x)};m.hasAttribute(x)&&L===null?ae():m.hasAttribute(x)?(_e(),ae()):_e()}d.forEach((p,m)=>{pt(m,p)}),c.forEach((p,m)=>{fe.forEach(x=>x(m,p))});for(let p of s)i.some(m=>m.contains(p))||me.forEach(m=>m(p));for(let p of i)p.isConnected&&we.forEach(m=>m(p));i=null,s=null,c=null,d=null}function ve(t){return pe(Y(t))}function V(t,i,s){return t._x_dataStack=[i,...Y(s||t)],()=>{t._x_dataStack=t._x_dataStack.filter(c=>c!==i)}}function Y(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?Y(t.host):t.parentNode?Y(t.parentNode):[]}function pe(t){return new Proxy({objects:t},He)}var He={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(i=>Object.keys(i))))},has({objects:t},i){return i==Symbol.unscopables?!1:t.some(s=>Object.prototype.hasOwnProperty.call(s,i)||Reflect.has(s,i))},get({objects:t},i,s){return i=="toJSON"?Fe:Reflect.get(t.find(c=>Reflect.has(c,i))||{},i,s)},set({objects:t},i,s,c){const d=t.find(m=>Object.prototype.hasOwnProperty.call(m,i))||t[t.length-1],p=Object.getOwnPropertyDescriptor(d,i);return p!=null&&p.set&&(p!=null&&p.get)?p.set.call(c,s)||!0:Reflect.set(d,i,s)}};function Fe(){return Reflect.ownKeys(this).reduce((i,s)=>(i[s]=Reflect.get(this,s),i),{})}function it(t){let i=c=>typeof c=="object"&&!Array.isArray(c)&&c!==null,s=(c,d="")=>{Object.entries(Object.getOwnPropertyDescriptors(c)).forEach(([p,{value:m,enumerable:x}])=>{if(x===!1||m===void 0||typeof m=="object"&&m!==null&&m.__v_skip)return;let L=d===""?p:`${d}.${p}`;typeof m=="object"&&m!==null&&m._x_interceptor?c[p]=m.initialize(t,L,p):i(m)&&m!==c&&!(m instanceof Element)&&s(m,L)})};return s(t)}function at(t,i=()=>{}){let s={initialValue:void 0,_x_interceptor:!0,initialize(c,d,p){return t(this.initialValue,()=>Rt(c,d),m=>Nt(c,d,m),d,p)}};return i(s),c=>{if(typeof c=="object"&&c!==null&&c._x_interceptor){let d=s.initialize.bind(s);s.initialize=(p,m,x)=>{let L=c.initialize(p,m,x);return s.initialValue=L,d(p,m,x)}}else s.initialValue=c;return s}}function Rt(t,i){return i.split(".").reduce((s,c)=>s[c],t)}function Nt(t,i,s){if(typeof i=="string"&&(i=i.split(".")),i.length===1)t[i[0]]=s;else{if(i.length===0)throw error;return t[i[0]]||(t[i[0]]={}),Nt(t[i[0]],i.slice(1),s)}}var fr={};function xt(t,i){fr[t]=i}function jt(t,i){let s=dr(i);return Object.entries(fr).forEach(([c,d])=>{Object.defineProperty(t,`$${c}`,{get(){return d(i,s)},enumerable:!1})}),t}function dr(t){let[i,s]=Le(t),c={interceptor:at,...i};return J(t,s),c}function En(t,i,s,...c){try{return s(...c)}catch(d){nr(d,t,i)}}function nr(...t){return An(...t)}var An=Si;function xi(t){An=t}function Si(t,i,s=void 0){t=Object.assign(t??{message:"No error message given."},{el:i,expression:s}),console.warn(`Alpine Expression Error: ${t.message} ${s?'Expression: "'+s+`" -`:""}`,i),setTimeout(()=>{throw t},0)}var ir=!0;function tn(t){let i=ir;ir=!1;let s=t();return ir=i,s}function Bt(t,i,s={}){let c;return mt(t,i)(d=>c=d,s),c}function mt(...t){return Cn(...t)}var Cn=Tn;function Ei(t){Cn=t}var On;function Ai(t){On=t}function Tn(t,i){let s={};jt(s,t);let c=[s,...Y(t)],d=typeof i=="function"?Pn(c,i):Ci(c,i,t);return En.bind(null,t,i,d)}function Pn(t,i){return(s=()=>{},{scope:c={},params:d=[],context:p}={})=>{if(!ir){f(s,i,pe([c,...t]),d);return}let m=i.apply(pe([c,...t]),d);f(s,m)}}var Tr={};function Rn(t,i){if(Tr[t])return Tr[t];let s=Object.getPrototypeOf(async function(){}).constructor,c=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,p=(()=>{try{let m=new s(["__self","scope"],`with (scope) { __self.result = ${c} }; __self.finished = true; return __self.result;`);return Object.defineProperty(m,"name",{value:`[Alpine] ${t}`}),m}catch(m){return nr(m,i,t),Promise.resolve()}})();return Tr[t]=p,p}function Ci(t,i,s){let c=Rn(i,s);return(d=()=>{},{scope:p={},params:m=[],context:x}={})=>{c.result=void 0,c.finished=!1;let j=pe([p,...t]);if(typeof c=="function"){let ae=c.call(x,c,j).catch(_e=>nr(_e,s,i));c.finished?(f(d,c.result,j,m,s),c.result=void 0):ae.then(_e=>{f(d,_e,j,m,s)}).catch(_e=>nr(_e,s,i)).finally(()=>c.result=void 0)}}}function f(t,i,s,c,d){if(ir&&typeof i=="function"){let p=i.apply(s,c);p instanceof Promise?p.then(m=>f(t,m,s,c)).catch(m=>nr(m,d,i)):t(p)}else typeof i=="object"&&i instanceof Promise?i.then(p=>t(p)):t(i)}function g(...t){return On(...t)}function w(t,i,s={}){var c,d;let p={};jt(p,t);let m=[p,...Y(t)],x=pe([(c=s.scope)!=null?c:{},...m]),j=(d=s.params)!=null?d:[];if(i.includes("await")){let ae=Object.getPrototypeOf(async function(){}).constructor,_e=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(async()=>{ ${i} })()`:i;return new ae(["scope"],`with (scope) { let __result = ${_e}; return __result }`).call(s.context,x)}else{let ae=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(()=>{ ${i} })()`:i,qe=new Function(["scope"],`with (scope) { let __result = ${ae}; return __result }`).call(s.context,x);return typeof qe=="function"&&ir?qe.apply(x,j):qe}}var A="x-";function k(t=""){return A+t}function q(t){A=t}var H={};function z(t,i){return H[t]=i,{before(s){if(!H[s]){console.warn(String.raw`Cannot find directive \`${s}\`. \`${t}\` will use the default order of execution`);return}const c=Ht.indexOf(s);Ht.splice(c>=0?c:Ht.indexOf("DEFAULT"),0,t)}}}function ue(t){return Object.keys(H).includes(t)}function ce(t,i,s){if(i=Array.from(i),t._x_virtualDirectives){let p=Object.entries(t._x_virtualDirectives).map(([x,j])=>({name:x,value:j})),m=Me(p);p=p.map(x=>m.find(j=>j.name===x.name)?{name:`x-bind:${x.name}`,value:`"${x.value}"`}:x),i=i.concat(p)}let c={};return i.map(lt((p,m)=>c[p]=m)).filter(Ut).map(hr(c,s)).sort(Mn).map(p=>et(t,p))}function Me(t){return Array.from(t).map(lt()).filter(i=>!Ut(i))}var Te=!1,je=new Map,Ee=Symbol();function Re(t){Te=!0;let i=Symbol();Ee=i,je.set(i,[]);let s=()=>{for(;je.get(i).length;)je.get(i).shift()();je.delete(i)},c=()=>{Te=!1,s()};t(s),c()}function Le(t){let i=[],s=x=>i.push(x),[c,d]=nt(t);return i.push(d),[{Alpine:Mr,effect:c,cleanup:s,evaluateLater:mt.bind(mt,t),evaluate:Bt.bind(Bt,t)},()=>i.forEach(x=>x())]}function et(t,i){let s=()=>{},c=H[i.type]||s,[d,p]=Le(t);We(t,i.original,p);let m=()=>{t._x_ignore||t._x_ignoreSelf||(c.inline&&c.inline(t,i,d),c=c.bind(c,t,i,d),Te?je.get(Ee).push(c):c())};return m.runCleanups=p,m}var De=(t,i)=>({name:s,value:c})=>(s.startsWith(t)&&(s=s.replace(t,i)),{name:s,value:c}),tt=t=>t;function lt(t=()=>{}){return({name:i,value:s})=>{let{name:c,value:d}=St.reduce((p,m)=>m(p),{name:i,value:s});return c!==i&&t(c,i),{name:c,value:d}}}var St=[];function ut(t){St.push(t)}function Ut({name:t}){return pr().test(t)}var pr=()=>new RegExp(`^${A}([^:^.]+)\\b`);function hr(t,i){return({name:s,value:c})=>{let d=s.match(pr()),p=s.match(/:([a-zA-Z0-9\-_:]+)/),m=s.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],x=i||t[s]||s;return{type:d?d[1]:null,value:p?p[1]:null,modifiers:m.map(j=>j.replace(".","")),expression:c,original:x}}}var Pr="DEFAULT",Ht=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Pr,"teleport"];function Mn(t,i){let s=Ht.indexOf(t.type)===-1?Pr:t.type,c=Ht.indexOf(i.type)===-1?Pr:i.type;return Ht.indexOf(s)-Ht.indexOf(c)}function Ct(t,i,s={}){t.dispatchEvent(new CustomEvent(i,{detail:s,bubbles:!0,composed:!0,cancelable:!0}))}function qt(t,i){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(d=>qt(d,i));return}let s=!1;if(i(t,()=>s=!0),s)return;let c=t.firstElementChild;for(;c;)qt(c,i),c=c.nextElementSibling}function ht(t,...i){console.warn(`Alpine Warning: ${t}`,...i)}var Yt=!1;function ar(){Yt&&ht("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Yt=!0,document.body||ht("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `