PageSourceSearch

https://www.bookingmood.com/_next/static/chunks/99459-0d40e866ce82ca38.js?dpl=dpl_CDnrziuP4cDZrz8iPvxF8r9ucXmb

js bookingmood.com collected 2026-09-24 19:47:41 UTC 87,946 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[99459],{99459:(t,e,s)=>{var i,a,n,r,o,d,c;s.d(e,{jX5:()=>al}),(o=i||(i={})).sandbox="sandbox",o.production="production",(d=a||(a={})).verbose="verbose",d.warn="warn",d.error="error",d.none="none";class l extends Error{type;code;detail;documentationUrl;errors;retryAfter;constructor(t,e){super(t.detail),this.type=t.type,this.code=t.code,this.detail=t.detail,this.documentationUrl=t.documentation_url,this.errors=t.errors?t.errors:null,this.retryAfter=e}}class u{interval;frequency;constructor(t){this.interval=t.interval,this.frequency=t.frequency}}class h{enableCheckout;purchaseOrderNumber;additionalInformation;paymentTerms;constructor(t){this.enableCheckout=t.enable_checkout??null,this.purchaseOrderNumber=t.purchase_order_number?t.purchase_order_number:null,this.additionalInformation=t.additional_information?t.additional_information:null,this.paymentTerms=new u(t.payment_terms)}}class p{type;last4;expiryMonth;expiryYear;cardholderName;constructor(t){this.type=t.type,this.last4=t.last4,this.expiryMonth=t.expiry_month,this.expiryYear=t.expiry_year,this.cardholderName=t.cardholder_name}}class m{type;constructor(t){this.type=t.type}}class _{koreaLocal;constructor(t){this.koreaLocal=t.korea_local?new m(t.korea_local):null}}class y{type;last4;constructor(t){this.type=t.type,this.last4=t.last4}}class w{email;reference;constructor(t){this.email=t.email,this.reference=t.reference}}class g{type;card;paypal;southKoreaLocalCard;underlyingDetails;constructor(t){this.type=t.type,this.card=t.card?new p(t.card):null,this.paypal=t.paypal?new w(t.paypal):null,this.southKoreaLocalCard=t.south_korea_local_card?new y(t.south_korea_local_card):null,this.underlyingDetails=t.underlying_details?new _(t.underlying_details):null}}class b{paymentAttemptId;paymentMethodId;storedPaymentMethodId;amount;status;errorCode;methodDetails;createdAt;capturedAt;constructor(t){this.paymentAttemptId=t.payment_attempt_id,this.paymentMethodId=t.payment_method_id??null,this.storedPaymentMethodId=t.stored_payment_method_id,this.amount=t.amount,this.status=t.status,this.errorCode=t.error_code?t.error_code:null,this.methodDetails=t.method_details?new g(t.method_details):null,this.createdAt=t.created_at,this.capturedAt=t.captured_at?t.captured_at:null}}class A{url;constructor(t){this.url=t.url?t.url:null}}class v{externalId;importedFrom;constructor(t){this.externalId=t.external_id?t.external_id:null,this.importedFrom=t.imported_from}}let x=Symbol("raw response");class f{client;constructor(t){this.client=t}handleError(t){if(t.error){let e=t[x]?.headers.get("Retry-After"),s=e?parseInt(e,10):null;throw new l(t.error,s)}}handleResponse(t){return this.handleError(t),t.data}}class I{queryParameters;constructor(t){this.queryParameters=t}toQueryString(){let t=new URLSearchParams;for(let s in this.queryParameters){var e;let i=this.queryParameters[s];s&&null!=(e=i)&&""!==e&&t.append(s.replace(/\b(\w+)([A-Z][a-z])/g,(t,e,s)=>e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase()+"_"+s.toLowerCase()),`${i}`)}return"?"+t.toString()}}class T{url;pathParameters;constructor(t,e){this.url=t,this.pathParameters=e}deriveUrl(){let t=this.url;for(let e in this.pathParameters){let s=this.pathParameters[e];e&&s&&(t=t.split(`{${e}}`).join(s.toString()))}return t}}class C{client;hasMore=!0;estimatedTotal=0;nextLink;data=[];constructor(t,e){this.client=t,this.nextLink=e}async next(){let t=await this.client.get(this.nextLink),e=this.handlePaginatedResponse(t);return this.hasMore=e.meta.pagination.has_more??!1,this.nextLink=e.meta.pagination.next,this.estimatedTotal=e.meta.pagination.estimated_total??0,this.data=e.data.map(t=>this.fromJson(t)),this.data.length>0?this.data:[]}handlePaginatedResponse(t){if(t.error){let e=t[x]?.headers.get("Retry-After"),s=e?parseInt(e,10):null;throw new l(t.error,s)}return t}async *[Symbol.asyncIterator](){for(;this.hasMore;){await this.next();for(let t=0;t<this.data.length;t++)this.data[t]&&(yield this.data[t])}}}class R{id;name;type;description;taxCategory;imageUrl;customData;status;createdAt;updatedAt;importMeta;prices;constructor(t){this.id=t.id,this.name=t.name,this.type=t.type??null,this.description=t.description?t.description:null,this.taxCategory=t.tax_category,this.imageUrl=t.image_url?t.image_url:null,this.customData=t.custom_data?t.custom_data:null,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new v(t.import_meta):null,this.prices=t.prices?t.prices.map(t=>new M(t)):null}}class P extends C{fromJson(t){return new R(t)}}class k{interval;frequency;requiresPaymentMethod;constructor(t){this.interval=t.interval,this.frequency=t.frequency,this.requiresPaymentMethod=t.requires_payment_method}}class U{amount;currencyCode;constructor(t){this.amount=t.amount,this.currencyCode=t.currency_code}}class D{countryCodes;unitPrice;constructor(t){this.countryCodes=t.country_codes,this.unitPrice=new 
1U(t.unit_price)}}class S{minimum;maximum;constructor(t){this.minimum=t.minimum,this.maximum=t.maximum}}class M{id;productId;description;name;type;billingCycle;trialPeriod;taxMode;unitPrice;unitPriceOverrides;quantity;status;createdAt;updatedAt;customData;importMeta;product;constructor(t){this.id=t.id,this.productId=t.product_id,this.description=t.description,this.type=t.type,this.name=t.name?t.name:null,this.billingCycle=t.billing_cycle?new u(t.billing_cycle):null,this.trialPeriod=t.trial_period?new k(t.trial_period):null,this.taxMode=t.tax_mode,this.unitPrice=new U(t.unit_price),this.unitPriceOverrides=t.unit_price_overrides?.map(t=>new D(t))??[],this.quantity=new S(t.quantity),this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new v(t.import_meta):null,this.product=t.product?new R(t.product):null}}class q extends C{fromJson(t){return new M(t)}}class B{startsAt;endsAt;constructor(t){this.startsAt=t.starts_at,this.endsAt=t.ends_at}}class j{rate;billingPeriod;constructor(t){this.rate=t.rate,this.billingPeriod=t.billing_period?new B(t.billing_period):null}}class L{price;quantity;proration;constructor(t){this.price=t.price?new M(t.price):null,this.quantity=t.quantity,this.proration=t.proration?new j(t.proration):null}}class F{subtotal;discount;tax;total;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total}}class E{subtotal;discount;tax;total;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total}}class K{id;priceId;quantity;proration;taxRate;unitTotals;totals;product;constructor(t){this.id=t.id,this.priceId=t.price_id,this.quantity=t.quantity,this.proration=t.proration?new j(t.proration):null,this.taxRate=t.tax_rate,this.unitTotals=t.unit_totals?new F(t.unit_totals):null,this.totals=t.totals?new E(t.totals):null,this.product=t.product?new R(t.product):null}}class O{taxRate;totals;constructor(t){this.taxRate=t.tax_rate,this.totals=t.totals?new E(t.totals):null}}class J{subtotal;discount;tax;total;credit;creditToBalance;balance;grandTotal;grandTotalTax;fee;earnings;currencyCode;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total,this.credit=t.credit,this.creditToBalance=t.credit_to_balance,this.balance=t.balance,this.grandTotal=t.grand_total,this.grandTotalTax=t.grand_total_tax,this.fee=t.fee?t.fee:null,this.earnings=t.earnings?t.earnings:null,this.currencyCode=t.currency_code}}class Q{subtotal;tax;total;grandTotal;grandTotalTax;fee;earnings;currencyCode;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.grandTotal=t.grand_total,this.grandTotalTax=t.grand_total_tax,this.fee=t.fee?t.fee:null,this.earnings=t.earnings?t.earnings:null,this.currencyCode=t.currency_code,this.retainedFee=t.retained_fee}}class N{subtotal;discount;tax;total;credit;creditToBalance;balance;grandTotal;grandTotalTax;fee;earnings;currencyCode;exchangeRate;feeRate;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total,this.credit=t.credit,this.creditToBalance=t.credit_to_balance,this.balance=t.balance,this.grandTotal=t.grand_total,this.grandTotalTax=t.grand_total_tax,this.fee=t.fee,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.exchangeRate=t.exchange_rate,this.feeRate=t.fee_rate}}class ${amount;currencyCode;constructor(t){this.amount=t.amount,this.currencyCode=t.currency_code}}class G{amount;original;constructor(t){this.amount=t.amount,this.original=t.original?new $(t.original):null}}class H{subtotal;tax;total;fee;chargebackFee;earnings;currencyCode;exchangeRate;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.chargebackFee=t.chargeback_fee?new G(t.chargeback_fee):null,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.exchangeRate=t.exchange_rate,this.retainedFee=t.retained_fee}}class V{taxRatesUsed;totals;adjustedTotals;payoutTotals;adjustedPayoutTotals;lineItems;constructor(t){this.taxRatesUsed=t.tax_rates_used.map(t=>
1new O(t)),this.totals=t.totals?new J(t.totals):null,this.adjustedTotals=t.adjusted_totals?new Q(t.adjusted_totals):null,this.payoutTotals=t.payout_totals?new N(t.payout_totals):null,this.adjustedPayoutTotals=t.adjusted_payout_totals?new H(t.adjusted_payout_totals):null,this.lineItems=t.line_items.map(t=>new K(t))}}class z{startsAt;endsAt;constructor(t){this.startsAt=t.starts_at,this.endsAt=t.ends_at}}class X{rate;billingPeriod;constructor(t){this.rate=t.rate,this.billingPeriod=t.billing_period?new z(t.billing_period):null}}class Y{subtotal;tax;total;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total}}class W{id;itemId;type;amount;proration;totals;constructor(t){this.id=t.id,this.itemId=t.item_id,this.type=t.type,this.amount=t.amount?t.amount:null,this.proration=t.proration?new X(t.proration):null,this.totals=t.totals?new Y(t.totals):null}}class Z{subtotal;tax;total;fee;earnings;currencyCode;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.retainedFee=t.retained_fee}}class tt{subtotal;tax;total;fee;chargebackFee;earnings;currencyCode;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.chargebackFee=t.chargeback_fee?new G(t.chargeback_fee):null,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.retainedFee=t.retained_fee}}class te{id;action;type;transactionId;subscriptionId;customerId;reason;creditAppliedToBalance;currencyCode;status;items;totals;payoutTotals;createdAt;updatedAt;constructor(t){this.id=t.id,this.action=t.action,this.type=t.type,this.transactionId=t.transaction_id,this.subscriptionId=t.subscription_id?t.subscription_id:null,this.customerId=t.customer_id,this.reason=t.reason,this.creditAppliedToBalance=t.credit_applied_to_balance,this.currencyCode=t.currency_code,this.status=t.status,this.items=t.items.map(t=>new W(t)),this.totals=new Z(t.totals),this.payoutTotals=t.payout_totals?new tt(t.payout_totals):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at}}class ts extends C{fromJson(t){return new te(t)}}class ti{url;constructor(t){this.url=t.url}}class ta{id;itemId;type;amount;proration;totals;constructor(t){this.id=t.id?t.id:null,this.itemId=t.item_id,this.type=t.type,this.amount=t.amount?t.amount:null,this.proration=t.proration?new j(t.proration):null,this.totals=t.totals?new Y(t.totals):null}}class tn{id;action;transactionId;subscriptionId;customerId;reason;creditAppliedToBalance;currencyCode;status;items;totals;payoutTotals;createdAt;updatedAt;constructor(t){this.id=t.id,this.action=t.action,this.transactionId=t.transaction_id,this.subscriptionId=t.subscription_id?t.subscription_id:null,this.customerId=t.customer_id,this.reason=t.reason,this.creditAppliedToBalance=t.credit_applied_to_balance,this.currencyCode=t.currency_code,this.status=t.status,this.items=t.items.map(t=>new ta(t)),this.totals=t.totals?new Z(t.totals):null,this.payoutTotals=t.payout_totals?new tt(t.payout_totals):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at}}class tr{credit;refund;chargeback;constructor(t){this.credit=t.credit,this.refund=t.refund,this.chargeback=t.chargeback}}class to{subtotal;tax;total;fee;earnings;breakdown;currencyCode;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.earnings=t.earnings,this.breakdown=t.breakdown?new tr(t.breakdown):null,this.currencyCode=t.currency_code}}class td{id;status;customerId;addressId;businessId;customData;currencyCode;origin;subscriptionId;invoiceId;invoiceNumber;collectionMode;discountId;billingDetails;billingPeriod;items;details;payments;checkout;createdAt;updatedAt;billedAt;revisedAt;address;adjustments;adjustmentsTotals;business;customer;discount;availablePaymentMethods;constructor(t){this.id=t.id,this.status=t.status,this.customerId=t.customer_id?t.customer_id:null,this.addressId=t.address_id?t.address_id:null,this.businessId=t.business_id?t.business_id:null,this.customData=t.custom_data?t.custom_data:null,this.currencyCode=t.currency_code,this.origin=t.origin,this.subscriptionId=t.subscription_id?t.subscription_id:null,this.invoiceId=t.invoice_id?t.invoice_id:null,this.invoiceNumber=t.invoice_number?t.invoice_number:null,this.collectionMode=t.collection_mode,this.discountId=t.discount_id?t.discount_id:null,this.billingDetails=t.billing_details?new h(t.billing_details):null,this.billingPeriod=t.billing_period?new B(t.billing_period):null,this.items=t.items.map(t=>new L(t)),this.details=t.details?new V(t.details):null,this.payments=t.payments.map(t=>new b(t)),this.checkout=t.checkout?new A(t.checkout):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.billedAt=t.billed_at?t.billed_at:null,this.revisedAt=t.revised_at?t.revised_at:null,this.address=t.address?new tJ(t.address):null,this.adjustments=t.adjustments?t.adjustments?.map(t=>new tn(t)):null,this.adjustmentsTotals=t.adjustments_totals?new to(t.adjustments_totals):null,this.business=t.business?new tK(t.business):null,this.customer=t.customer?new tD(t.customer):null,this.discount=t.discount?new tN(t.discount):null,this.availablePaymentMethods=t.available_payment_methods?t.available_payment_methods:null}}class tc extends C{fromJson(t){return new td(t)}}class tl{url;constructor(t){this.url=t.url}}class tu{postalCode;countryCode;constructor(t){this.postalCode=t.postal_code?t.postal_code:null,this.countryCode=t.country_code}}class th{rate;billingPeriod;constructor(t){this.rate=t.rate,this.billingPeriod=new B(t.billing_period)}}class tp{price;quantity;includeInTotals;proration;constructor(t){this.price=t.price?new M(t.price):null,this.quantity=t.quantity,this.includeInTotals=t.include_in_totals??null,this.proration=t.proration?new th(t.proration):null}}class tm{startsAt;endsAt;constructor(t){this.startsAt=t.starts_at,this.endsAt=t.ends_at}}class t_{status;quantity;recurring;createdAt;updatedAt;previouslyBilledAt;nextBilledAt;trialDates;price;product;constructor(t){this.status=t.status,this.quantity=t.quantity,this.recurring=t.recurring,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.previouslyBilledAt=t.previously_billed_at?t.previously_billed_at:null,this.nextBilledAt=t.next_billed_at?t.next_billed_at:null,this.trialDates=t.trial_dates?new tm(t.trial_dates):null,this.price=new M(t.price),this.product=ne
1w R(t.product)}}class ty{id;startsAt;endsAt;constructor(t){this.id=t.id,this.startsAt=t.starts_at??null,this.endsAt=t.ends_at??null}}class tw{action;effectiveAt;resumeAt;constructor(t){this.action=t.action,this.effectiveAt=t.effective_at,this.resumeAt=t.resume_at?t.resume_at:null}}class tg{updatePaymentMethod;cancel;constructor(t){this.updatePaymentMethod=t.update_payment_method?t.update_payment_method:null,this.cancel=t.cancel}}class tb{id;status;customerId;addressId;businessId;currencyCode;createdAt;updatedAt;startedAt;firstBilledAt;nextBilledAt;pausedAt;canceledAt;discount;collectionMode;billingDetails;currentBillingPeriod;billingCycle;scheduledChange;managementUrls;items;customData;importMeta;nextTransaction;recurringTransactionDetails;constructor(t){this.id=t.id,this.status=t.status,this.customerId=t.customer_id,this.addressId=t.address_id,this.businessId=t.business_id?t.business_id:null,this.currencyCode=t.currency_code,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.startedAt=t.started_at?t.started_at:null,this.firstBilledAt=t.first_billed_at?t.first_billed_at:null,this.nextBilledAt=t.next_billed_at?t.next_billed_at:null,this.pausedAt=t.paused_at?t.paused_at:null,this.canceledAt=t.canceled_at?t.canceled_at:null,this.discount=t.discount?new ty(t.discount):null,this.collectionMode=t.collection_mode,this.billingDetails=t.billing_details?new h(t.billing_details):null,this.currentBillingPeriod=t.current_billing_period?new tm(t.current_billing_period):null,this.billingCycle=new u(t.billing_cycle),this.scheduledChange=t.scheduled_change?new tw(t.scheduled_change):null,this.managementUrls=t.management_urls?new tg(t.management_urls):null,this.items=t.items.map(t=>new t_(t)),this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new v(t.import_meta):null,this.nextTransaction=t.next_transaction?new tT(t.next_transaction):null,this.recurringTransactionDetails=t.recurring_transaction_details?new tx(t.recurring_transaction_details):null}}class tA extends C{fromJson(t){return new tb(t)}}class tv{priceId;quantity;taxRate;unitTotals;totals;product;proration;constructor(t){this.priceId=t.price_id,this.quantity=t.quantity,this.taxRate=t.tax_rate,this.unitTotals=new F(t.unit_totals),this.totals=new E(t.totals),this.product=new R(t.product),this.proration=t.proration?new th(t.proration):null}}class tx{taxRatesUsed;totals;lineItems;constructor(t){this.taxRatesUsed=t.tax_rates_used.map(t=>new O(t)),this.totals=new J(t.totals),this.lineItems=t.line_items.map(t=>new tv(t))}}class tf{itemId;type;amount;proration;totals;constructor(t){this.itemId=t.item_id,this.type=t.type,this.amount=t.amount?t.amount:null,this.proration=t.proration?new X(t.proration):null,this.totals=t.totals?new Y(t.totals):null}}class tI{transactionId;items;totals;constructor(t){this.transactionId=t.transaction_id,this.items=t.items.map(t=>new tf(t)),this.totals=t.totals?new Z(t.totals):null}}class tT{billingPeriod;details;adjustments;constructor(t){this.billingPeriod=new tm(t.billing_period),this.details=new tx(t.details),this.adjustments=t.adjustments.map(t=>new tI(t))}}class tC{status;customerId;addressId;businessId;currencyCode;createdAt;updatedAt;startedAt;firstBilledAt;nextBilledAt;pausedAt;canceledAt;discount;collectionMode;billingDetails;currentBillingPeriod;billingCycle;scheduledChange;managementUrls;items;customData;immediateTransaction;nextTransaction;recurringTransactionDetails;updateSummary;importMeta;constructor(t){this.status=t.status,this.customerId=t.customer_id,this.addressId=t.address_id,this.businessId=t.business_id?t.business_id:null,this.currencyCode=t.currency_code,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.startedAt=t.started_at?t.started_at:null,this.firstBilledAt=t.first_billed_at?t.first_billed_at:null,this.nextBilledAt=t.next_billed_at?t.next_billed_at:null,this.pausedAt=t.paused_at?t.paused_at:null,this.canceledAt=t.canceled_at?t.canceled_at:null,this.discount=t.discount?new ty(t.discount):null,this.collectionMode=t.collection_mode,this.billingDetails=t.billing_details?new h(t.billing_details):null,this.currentBillingPeriod=t.current_billing_period?new tm(t.current_billing_period):null,this.billingCycle=t.billing_cycle?new u(t.billing_cycle):null,this.scheduledChange=t.scheduled_change?new tw(t.scheduled_change):null,this.managementUrls=t.management_urls?new tg(t.management_urls):null,this.items=t.items.map(t=>new t_(t)),this.customData=t.custom_data?t.custom_data:null,this.immediateTransaction=t.immediate_transaction?new tT(t.immediate_transaction):null,this.nextTransaction=t.next_transaction?new tT(t.next_transaction):null,this.recurringTransactionDetail
1s=t.recurring_transaction_details?new tx(t.recurring_transaction_details):null,this.updateSummary=t.update_summary?new tP(t.update_summary):null,this.importMeta=t.import_meta?new v(t.import_meta):null}}class tR{action;amount;currencyCode;constructor(t){this.action=t.action,this.amount=t.amount,this.currencyCode=t.currency_code}}class tP{credit;charge;result;constructor(t){this.credit=new U(t.credit),this.charge=new U(t.charge),this.result=new tR(t.result)}}class tk{customerId;addressId;businessId;currencyCode;discountId;customerIpAddress;address;ignoreTrials;items;details;availablePaymentMethods;constructor(t){this.customerId=t.customer_id?t.customer_id:null,this.addressId=t.address_id?t.address_id:null,this.businessId=t.business_id?t.business_id:null,this.currencyCode=t.currency_code,this.discountId=t.discount_id?t.discount_id:null,this.customerIpAddress=t.customer_ip_address?t.customer_ip_address:null,this.address=t.address?new tu(t.address):null,this.ignoreTrials=t.ignore_trials?t.ignore_trials:null,this.items=t.items.map(t=>new tp(t)),this.details=new tx(t.details),this.availablePaymentMethods=t.available_payment_method??null}}class tU{customerAuthToken;expiresAt;constructor(t){this.customerAuthToken=t.customer_auth_token,this.expiresAt=t.expires_at}}class tD{id;name;email;marketingConsent;status;customData;locale;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.name=t.name?t.name:null,this.email=t.email,this.marketingConsent=t.marketing_consent,this.status=t.status,this.customData=t.custom_data?t.custom_data:null,this.locale=t.locale,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new v(t.import_meta):null}}class tS extends C{fromJson(t){return new tD(t)}}class tM{available;reserved;used;constructor(t){this.available=t.available,this.reserved=t.reserved,this.used=t.used}}class tq{customerId;currencyCode;balance;constructor(t){this.customerId=t.customer_id?t.customer_id:null,this.currencyCode=t.currency_code?t.currency_code:null,this.balance=t.balance?new tM(t.balance):null}}class tB{overview;constructor(t){this.overview=t.overview}}class tj{id;cancelSubscription;updateSubscriptionPaymentMethod;constructor(t){this.id=t.id,this.cancelSubscription=t.cancel_subscription,this.updateSubscriptionPaymentMethod=t.update_subscription_payment_method}}class tL{general;subscriptions;constructor(t){this.general=new tB(t.general),this.subscriptions=t.subscriptions?.map(t=>new tj(t))??[]}}class tF{id;customerId;urls;createdAt;constructor(t){this.id=t.id,this.customerId=t.customer_id,this.urls=new tL(t.urls),this.createdAt=t.created_at}}class tE{name;email;constructor(t){this.name=t.name?t.name:null,this.email=t.email}}class tK{id;customerId;name;companyNumber;taxIdentifier;status;contacts;createdAt;updatedAt;customData;importMeta;constructor(t){this.id=t.id,this.customerId=t.customer_id,this.name=t.name,this.companyNumber=t.company_number?t.company_number:null,this.taxIdentifier=t.tax_identifier?t.tax_identifier:null,this.status=t.status,this.contacts=t.contacts?t.contacts.map(t=>new tE(t)):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new v(t.import_meta):null}}class tO extends C{fromJson(t){return new tK(t)}}class tJ{id;customerId;description;firstLine;secondLine;city;postalCode;region;countryCode;customData;status;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.customerId=t.customer_id,this.description=t.description?t.description:null,this.firstLine=t.first_line?t.first_line:null,this.secondLine=t.second_line?t.second_line:null,this.city=t.city?t.city:null,this.postalCode=t.postal_code?t.postal_code:null,this.region=t.region?t.region:null,this.countryCode=t.country_code,this.customData=t.custom_data?t.custom_data:null,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new v(t.import_meta):null}}class tQ extends C{fromJson(t){return new tJ(t)}}class tN{id;status;description;enabledForCheckout;code;mode;type;amount;currencyCode;recur;maximumRecurringIntervals;usageLimit;restrictTo;expiresAt;customData;timesUsed;createdAt;updatedAt;importMeta;discountGroupId;discountGroup;constructor(t){this.id=t.id,this.status=t.status,this.description=t.description,this.enabledForCheckout=t.enabled_for_checkout,this.co
1de=t.code?t.code:null,this.mode=t.mode,this.type=t.type,this.amount=t.amount,this.currencyCode=t.currency_code?t.currency_code:null,this.recur=t.recur,this.maximumRecurringIntervals=t.maximum_recurring_intervals?t.maximum_recurring_intervals:null,this.usageLimit=t.usage_limit?t.usage_limit:null,this.restrictTo=t.restrict_to?t.restrict_to:null,this.expiresAt=t.expires_at?t.expires_at:null,this.customData=t.custom_data?t.custom_data:null,this.timesUsed=t.times_used??null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new v(t.import_meta):null,this.discountGroupId=t.discount_group_id?t.discount_group_id:null,this.discountGroup=t.discount_group?new tG(t.discount_group):null}}class t$ extends C{fromJson(t){return new tN(t)}}class tG{id;name;status;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.name=t.name,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new v(t.import_meta):null}}class tH extends C{fromJson(t){return new tG(t)}}(c=n||(n={})).AddressCreated="address.created",c.AddressUpdated="address.updated",c.AddressImported="address.imported",c.AdjustmentCreated="adjustment.created",c.AdjustmentUpdated="adjustment.updated",c.ApiKeyCreated="api_key.created",c.ApiKeyUpdated="api_key.updated",c.ApiKeyExpiring="api_key.expiring",c.ApiKeyExpired="api_key.expired",c.ApiKeyRevoked="api_key.revoked",c.ApiKeyExposureCreated="api_key_exposure.created",c.BusinessCreated="business.created",c.BusinessImported="business.imported",c.BusinessUpdated="business.updated",c.ClientTokenCreated="client_token.created",c.ClientTokenUpdated="client_token.updated",c.ClientTokenRevoked="client_token.revoked",c.CustomerCreated="customer.created",c.CustomerUpdated="customer.updated",c.CustomerImported="customer.imported",c.DiscountCreated="discount.created",c.DiscountUpdated="discount.updated",c.DiscountImported="discount.imported",c.DiscountGroupCreated="discount_group.created",c.DiscountGroupUpdated="discount_group.updated",c.PaymentMethodDeleted="payment_method.deleted",c.PaymentMethodSaved="payment_method.saved",c.PayoutCreated="payout.created",c.PayoutPaid="payout.paid",c.PriceCreated="price.created",c.PriceUpdated="price.updated",c.PriceImported="price.imported",c.ProductCreated="product.created",c.ProductUpdated="product.updated",c.ProductImported="product.imported",c.SubscriptionActivated="subscription.activated",c.SubscriptionCanceled="subscription.canceled",c.SubscriptionImported="subscription.imported",c.SubscriptionCreated="subscription.created",c.SubscriptionPastDue="subscription.past_due",c.SubscriptionPaused="subscription.paused",c.SubscriptionResumed="subscription.resumed",c.SubscriptionTrialing="subscription.trialing",c.SubscriptionUpdated="subscription.updated",c.TransactionBilled="transaction.billed",c.TransactionCanceled="transaction.canceled",c.TransactionCompleted="transaction.completed",c.TransactionPaid="transaction.paid",c.TransactionCreated="transaction.created",c.TransactionPastDue="transaction.past_due",c.TransactionPaymentFailed="transaction.payment_failed",c.TransactionReady="transaction.ready",c.TransactionUpdated="transaction.updated",c.TransactionRevised="transaction.revised",c.ReportCreated="report.created",c.ReportUpdated="report.updated";class tV{static provider;static setProvider(t){this.provider=t}static getProvider(){return this.provider}}class tz{static logLevel;static shouldLog(t){switch(tz.logLevel){case a.verbose:return t!==a.none;case a.warn:return t===a.warn||t===a.error;case a.error:return t===a.error;default:return!1}}static log(...t){tz.shouldLog(a.verbose)&&console.log("[Paddle] [LOG]",...t)}static warn(...t){tz.shouldLog(a.warn)&&console.warn("[Paddle] [WARN]",...t)}static error(...t){tz.shouldLog(a.error)&&console.error("[Paddle] [ERROR]",...t)}static logRequest(t,e,s){tz.log("[Request]",t,e,"Transaction ID:",s["X-Transaction-ID"])}static logResponse(t,e,s,i){tz.log("[Response]",t,e,i.status.toString(),"Transaction ID:",s["X-Transaction-ID"],"Request ID:",i.headers.get("Request-Id"))}}class tX{static MAX_VALID_TIME_DIFFERENCE=5;extractHeader(t){let e=t.split(";"),s="",i="";for(let t of e){let[e,a]=t.split("=");a&&("ts"===e?s=a:"h1"===e&&(i=a))}if(s&&i)return{ts:parseInt(s),h1:i};throw Error("[Paddle] Invalid webhook signature")}
1async isValidSignature(t,e,s){let i=tV.getProvider()?.crypto;if(!i)return tz.error("Unknown runtime. Cannot validate webhook signature"),!1;let a=this.extractHeader(s),n=`${a.ts}:${t}`;return!(new Date().getTime()>new Date((a.ts+tX.MAX_VALID_TIME_DIFFERENCE)*1e3).getTime())&&await i.computeHmac(n,e)===a.h1}}class tY{eventId;notificationId;eventType;occurredAt;data;constructor(t){this.eventId=t.event_id,this.notificationId=t.notification_id??null,this.eventType=t.event_type,this.occurredAt=t.occurred_at,this.data=t.data}}class tW{externalId;importedFrom;constructor(t){this.externalId=t.external_id?t.external_id:null,this.importedFrom=t.imported_from}}class tZ{id;name;type;description;taxCategory;imageUrl;customData;status;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.name=t.name,this.type=t.type??null,this.description=t.description?t.description:null,this.taxCategory=t.tax_category,this.imageUrl=t.image_url?t.image_url:null,this.customData=t.custom_data?t.custom_data:null,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at??null,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class t0{interval;frequency;constructor(t){this.interval=t.interval,this.frequency=t.frequency}}class t4{interval;frequency;requiresPaymentMethod;constructor(t){this.interval=t.interval,this.frequency=t.frequency,this.requiresPaymentMethod=t.requires_payment_method}}class t1{amount;currencyCode;constructor(t){this.amount=t.amount,this.currencyCode=t.currency_code}}class t5{countryCodes;unitPrice;constructor(t){this.countryCodes=t.country_codes,this.unitPrice=new t1(t.unit_price)}}class t9{minimum;maximum;constructor(t){this.minimum=t.minimum,this.maximum=t.maximum}}class t2{id;productId;description;name;type;billingCycle;trialPeriod;taxMode;unitPrice;unitPriceOverrides;quantity;status;createdAt;updatedAt;customData;importMeta;constructor(t){this.id=t.id,this.productId=t.product_id,this.description=t.description,this.type=t.type?t.type:null,this.name=t.name?t.name:null,this.billingCycle=t.billing_cycle?new t0(t.billing_cycle):null,this.trialPeriod=t.trial_period?new t4(t.trial_period):null,this.taxMode=t.tax_mode,this.unitPrice=new t1(t.unit_price),this.unitPriceOverrides=t.unit_price_overrides?.map(t=>new t5(t))??[],this.quantity=new t9(t.quantity),this.status=t.status,this.createdAt=t.created_at??null,this.updatedAt=t.updated_at??null,this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class t6{enableCheckout;purchaseOrderNumber;additionalInformation;paymentTerms;constructor(t){this.enableCheckout=t.enable_checkout??null,this.purchaseOrderNumber=t.purchase_order_number?t.purchase_order_number:null,this.additionalInformation=t.additional_information?t.additional_information:null,this.paymentTerms=new t0(t.payment_terms)}}class t3{type;last4;expiryMonth;expiryYear;cardholderName;constructor(t){this.type=t.type,this.last4=t.last4,this.expiryMonth=t.expiry_month,this.expiryYear=t.expiry_year,this.cardholderName=t.cardholder_name}}class t8{type;constructor(t){this.type=t.type}}class t7{koreaLocal;constructor(t){this.koreaLocal=t.korea_local?new t8(t.korea_local):null}}class et{type;last4;constructor(t){this.type=t.type,this.last4=t.last4}}class ee{email;reference;constructor(t){this.email=t.email,this.reference=t.reference}}class es{type;card;paypal;southKoreaLocalCard;underlyingDetails;constructor(t){this.type=t.type,this.card=t.card?new t3(t.card):null,this.paypal=t.paypal?new ee(t.paypal):null,this.southKoreaLocalCard=t.south_korea_local_card?new et(t.south_korea_local_card):null,this.underlyingDetails=t.underlying_details?new t7(t.underlying_details):null}}class ei{paymentAttemptId;paymentMethodId;storedPaymentMethodId;amount;status;errorCode;methodDetails;createdAt;capturedAt;constructor(t){this.paymentAttemptId=t.payment_attempt_id,this.paymentMethodId=t.payment_method_id??null,this.storedPaymentMethodId=t.stored_payment_method_id,this.amount=t.amount,this.status=t.status,this.errorCode=t.error_code?t.error_code:null,this.methodDetails=t.method_details?new es(t.method_details):null,this.createdAt=t.created_at,this.capturedAt=t.captured_at?t.captured_at:null}}class ea{url;constructor(t){this.url=t.url?t.url:null}}class en{startsAt;endsAt;constructor(t){this.startsAt=t.starts_at,this.endsAt=t.ends_at}}class er{rate;billingPeriod;constructor(t){this.rate=t.rate,this.billingPeriod=t.billing_period?new en(t.billing_period):null}}class eo{price;quantity;proration;constructor(t){this.price=t.price?new t2(t.price):null,this.quantity=t.quantity,this.proration=t.proration?new er(t.proration):null}}class ed{subtotal;discount;tax;total;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total}}class ec{taxRate;totals;constructor(t){this.taxRate=t.tax_rate,this.totals=t.totals?new ed(t.totals):null}}class el{subtotal;discount;tax;total;credit;creditToBalance;balance;grandTotal;grandTotalTax;fee;earnings;currencyCode;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total,this.credit=t.credit,this.creditToBalance=t.credit_to_balance,this.balance=t.balance,this.grandTotal=t.grand_total,this.grandTotalTax=t.grand_total_tax,this.fee=t.fee?t.fee:null,this.earnings=t.earnings?t.earnings:null,this.currencyCode=t.currency_code}}class eu{subtotal;tax;total;grandTotal;grandTotalTax;fee;earnings;currencyCode;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.grandTotal=t.grand_total,this.grandTotalTax=t.grand_total_tax,this.fee=t.fee?t.fee:null,this.earnings=t.earnings?t.earnings:null,this.currencyCode=t.currency_code,this.retainedFee=t.retained_fee}}class eh{subtotal;discount;tax;total;credit;creditToBalance;balance;grandTotal;grandTotalTax;fee;earnings;currencyCode;exchangeRate;feeRate;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total,this.credit=t.credit,this.creditToBalance=t.credit_to_balance,this.balance=t.balance,this.grandTotal=t.grand_total,this.grandTotalTax=t.grand_total_tax,this.fee=t.fee,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.exchangeRate=t.exchange_rate,this.feeRate=t.fee_rate}}class ep{amount;currencyCode;constructor(t){this.amount=t.amount,this.currencyCode=t.currency_code}}class em{amount;original;constructor(t){this.amount=t.amount,this.original=t.original?new ep(t.original):null}}class e_{subtotal;tax;total;fee;chargebackFee;earnings;currencyCode;exchangeRate;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.chargebackFee=t.chargeback_fee?new em(t.chargeback_fee):null,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.exchangeRate=t.exchange_rate,this.retainedFee=t.retained_fee}}class ey{subtotal;discount;tax;total;constructor(t){this.subtotal=t.subtotal,this.discount=t.discount,this.tax=t.tax,this.total=t.total}}class ew{id;priceId;quantity;proration;taxRate;unitTotals;totals;product;constructor(t){this.id=t.id,this.priceId=t.price_id,this.quantity=t.quantity,this.proration=t.proration?new er(t.proration):null,this.taxRate=t.tax_rate,this.unitTotals=t.unit_totals?new ey(t.unit_totals):null,this.totals=t.totals?new ed(t.totals):null,this.product=t.product?new tZ(t.product):null}}class eg{taxRatesUsed;totals;adjustedTotals;payoutTotals;adjustedPayoutTotals;lineItems;constructor(t){this.taxRatesUsed=t.tax_rates_used.map(t=>new ec(t)),this.totals=t.totals?new el(t.totals):null,this.adjustedTotals=t.adjusted_totals?new eu(t.adjusted_totals):null,this.payoutTotals=t.payout_totals?new eh(t.payout_totals):null,this.adjustedPayoutTotals=t.adjusted_payout_totals?new e_(t.adjusted_payout_totals):null,this.lineItems=t.line_items.map(t=>new ew(t))}}class eb{id;status;customerId;addressId;businessId;customData;currencyCode;origin;subscriptionId;invoiceId;invoiceNumber;collectionMode;discountId;billingDetails;billingPeriod;items;details;payments;checkout;createdAt;updatedAt;billedAt;revisedAt;constructor(t){this.id=t.id,this.status=t.status,this.customerId=t.customer_id?t.customer_id:null,this.addressId=t.address_id?t.address_id:null,this.businessId=t.business_id?t.business_id:null,this.customData=t.custom_data?t.custom_data:null,this.currencyCode=t.currency_code,this.origin=t.origin,this.subscriptionId=t.subscription_id?t.subscription_id:null,this.invoiceId=t.invoice_id?t.invoice_id:null,this.invoiceNumber=t.invoice_number?t.invoice_number:null,this.collectionMode=t.collection_mode,this.discountId=t.discount_id?t.discount_id:null,this.billingDetails=t.billing_details?new t6(t.billing_details):null,this.billingPeriod=t.billing_period?new en(t.billing_period):null,this.items=t.items.map(t=>new eo(t)),this.details=t.details?new eg(t.details):null,this.payments=t.payments.map(t=>new ei(t)),this.checkout=t.checkout?new ea(t.checkout):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.billedAt=t.billed_at?t.billed_at:null,this.revisedAt=t.revised_at?t.revised_at:null}}class eA{startsAt;endsAt;constructor(t){this.startsAt=t.starts_at,this.endsAt=t.ends_at}}class ev{rate;billingPeriod;constructor(t){this.rate=t.rate,this.billingPeriod=t.billing_period?new eA(t.billing_period):null}}class ex{subtotal;tax;total;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total}}class ef{id;itemId;type;amount;proration;totals;constructor(t){this.id=t.id,this.itemId=t.item_id,this.type=t.type,this.amount=t.amount?t.amount:null,this.proration=t.proration?new ev(t.proration):null,this.totals=t.totals?new ex(t.totals):null}}class eI{subtotal;tax;total;fee;earnings;currencyCode;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.retainedFee=t.retained_fee}}class eT{subtotal;tax;total;fee;chargebackFee;earnings;currencyCode;retainedFee;constructor(t){this.subtotal=t.subtotal,this.tax=t.tax,this.total=t.total,this.fee=t.fee,this.chargebackFee=t.chargeback_fee?new em(t.chargeback_fee):null,this.earnings=t.earnings,this.currencyCode=t.currency_code,this.retainedFee=t.retained_fee}}class eC{id;action;type;transactionId;subscriptionId;customerId;reason;creditAppliedToBalance;currencyCode;status;items;totals;payoutTotals;createdAt;updatedAt;constructor(t){this.id=t.id,this.action=t.action,this.type=t.type,this.transactionId=t.transaction_id,this.subscriptionId=t.subscription_id?t.subscription_id:null,this.customerId=t.customer_id,this.reason=t.reason,this.creditAppliedToBalance=t.credit_applied_to_balance,this.currencyCode=t.currency_code,this.status=t.status,this.items=t.items.map(t=>new ef(t)),this.totals=new eI(t.totals),this.payoutTotals=t.payout_totals?new eT(t.payout_totals):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at}}class eR{id;name;email;marketingConsent;status;customData;locale;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.name=t.name?t.name:null,this.email=t.email,this.marketingConsent=t.marketing_consent,this.status=t.status,this.customData=t.custom_data?t.custom_data:null,this.locale=t.locale,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class eP{name;email;constructor(t){this.name=t.name?t.name:null,this.email=t.email}}class ek{id;customerId;name;companyNumber;taxIdentifier;status;contacts;createdAt;updatedAt;customData;importMeta;constructor(t){this.id=t.id,this.customerId=t.customer_id??null,this.name=t.name,this.companyNumber=t.company_number?t.company_number:null,this.taxI
1dentifier=t.tax_identifier?t.tax_identifier:null,this.status=t.status,this.contacts=t.contacts?t.contacts.map(t=>new eP(t)):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class eU{id;startsAt;endsAt;constructor(t){this.id=t.id,this.startsAt=t.starts_at,this.endsAt=t.ends_at??null}}class eD{startsAt;endsAt;constructor(t){this.startsAt=t.starts_at,this.endsAt=t.ends_at}}class eS{id;productId;description;name;type;billingCycle;trialPeriod;taxMode;unitPrice;unitPriceOverrides;quantity;status;customData;importMeta;constructor(t){this.id=t.id,this.productId=t.product_id,this.description=t.description,this.type=t.type??null,this.name=t.name?t.name:null,this.billingCycle=t.billing_cycle?new t0(t.billing_cycle):null,this.trialPeriod=t.trial_period?new t4(t.trial_period):null,this.taxMode=t.tax_mode,this.unitPrice=t.unit_price?new t1(t.unit_price):null,this.unitPriceOverrides=t.unit_price_overrides?t.unit_price_overrides.map(t=>new t5(t)):[],this.quantity=t.quantity?new t9(t.quantity):null,this.status=t.status??null,this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class eM{status;quantity;recurring;createdAt;updatedAt;previouslyBilledAt;nextBilledAt;trialDates;price;product;constructor(t){this.status=t.status,this.quantity=t.quantity,this.recurring=t.recurring,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.previouslyBilledAt=t.previously_billed_at?t.previously_billed_at:null,this.nextBilledAt=t.next_billed_at?t.next_billed_at:null,this.trialDates=t.trial_dates?new eD(t.trial_dates):null,this.price=t.price?new eS(t.price):null,this.product=t.product?new tZ(t.product):null}}class eq{action;effectiveAt;resumeAt;constructor(t){this.action=t.action,this.effectiveAt=t.effective_at,this.resumeAt=t.resume_at?t.resume_at:null}}class eB{id;status;transactionId;customerId;addressId;businessId;currencyCode;createdAt;updatedAt;startedAt;firstBilledAt;nextBilledAt;pausedAt;canceledAt;discount;collectionMode;billingDetails;currentBillingPeriod;billingCycle;scheduledChange;items;customData;importMeta;constructor(t){this.id=t.id,this.status=t.status,this.transactionId=t.transaction_id,this.customerId=t.customer_id,this.addressId=t.address_id,this.businessId=t.business_id?t.business_id:null,this.currencyCode=t.currency_code,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.startedAt=t.started_at?t.started_at:null,this.firstBilledAt=t.first_billed_at?t.first_billed_at:null,this.nextBilledAt=t.next_billed_at?t.next_billed_at:null,this.pausedAt=t.paused_at?t.paused_at:null,this.canceledAt=t.canceled_at?t.canceled_at:null,this.discount=t.discount?new eU(t.discount):null,this.collectionMode=t.collection_mode,this.billingDetails=t.billing_details?new t6(t.billing_details):null,this.currentBillingPeriod=t.current_billing_period?new eD(t.current_billing_period):null,this.billingCycle=new t0(t.billing_cycle),this.scheduledChange=t.scheduled_change?new eq(t.scheduled_change):null,this.items=t.items.map(t=>new eM(t)),this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class ej{id;status;customerId;addressId;businessId;currencyCode;createdAt;updatedAt;startedAt;firstBilledAt;nextBilledAt;pausedAt;canceledAt;discount;collectionMode;billingDetails;currentBillingPeriod;billingCycle;scheduledChange;items;customData;importMeta;constructor(t){this.id=t.id,this.status=t.status,this.customerId=t.customer_id,this.addressId=t.address_id,this.businessId=t.business_id?t.business_id:null,this.currencyCode=t.currency_code,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.startedAt=t.started_at?t.started_at:null,this.firstBilledAt=t.first_billed_at?t.first_billed_at:null,this.nextBilledAt=t.next_billed_at?t.next_billed_at:null,this.pausedAt=t.paused_at?t.paused_at:null,this.canceledAt=t.canceled_at?t.canceled_at:null,this.discount=t.discount?new eU(t.discount):null,this.collectionMode=t.collection_mode,this.billingDetails=t.billing_details?new t6(t.billing_details):null,this.currentBillingPeriod=t.current_billing_period?new eD(t.current_billing_period):null,this.billingCycle=new t0(t.billing_cycle),this.scheduledChange=t.scheduled_change?new eq(t.scheduled_change):null,this.items=t.items.map(t=>new eM(t)),this.customData=t.custom_data?t.custom_data:null,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class eL{id;customerId;description;firstLine;secondLine;city;postalCode;region;countryCode;customData;status;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.customerId=t.customer_id??null,this.description=t.description?t.description:null,this.firstLine=t.first_line?t.first_line:null,this.secondLine=t.second_line?t.second_line:null,this.city=t.city?t.city:null,this.postalCode=t.postal_code?t.postal_code:null,this.region=t.region?t.region:null,this.countryCode=t.country_code,this.customData=t.custom_data?t.custom_data:null,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new v(t.import_meta):null}}class eF{id;status;description;enabledForCheckout;code;mode;type;amount;currencyCode;recur;maximumRecurringIntervals;usageLimit;restrictTo;expiresAt;customData;timesUsed;createdAt;updatedAt;importMeta;discountGroupId;constructor(t){this.id=t.id,this.status=t.status,this.description=t.description,this.enabledForCheckout=t.enabled_for_checkout,this.co
1de=t.code?t.code:null,this.mode=t.mode?t.mode:null,this.type=t.type,this.amount=t.amount,this.currencyCode=t.currency_code?t.currency_code:null,this.recur=t.recur,this.maximumRecurringIntervals=t.maximum_recurring_intervals?t.maximum_recurring_intervals:null,this.usageLimit=t.usage_limit?t.usage_limit:null,this.restrictTo=t.restrict_to?t.restrict_to:null,this.expiresAt=t.expires_at?t.expires_at:null,this.customData=t.custom_data?t.custom_data:null,this.timesUsed=t.times_used??null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new tW(t.import_meta):null,this.discountGroupId=t.discount_group_id?t.discount_group_id:null}}class eE{id;name;status;createdAt;updatedAt;importMeta;constructor(t){this.id=t.id,this.name=t.name,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.importMeta=t.import_meta?new tW(t.import_meta):null}}class eK{id;customerId;addressId;deletionReason;type;origin;savedAt;updatedAt;constructor(t){this.id=t.id,this.customerId=t.customer_id,this.addressId=t.address_id,this.deletionReason=t.deletion_reason,this.type=t.type,this.origin=t.origin,this.savedAt=t.saved_at,this.updatedAt=t.updated_at}}class eO{id;customerId;addressId;type;origin;savedAt;updatedAt;constructor(t){this.id=t.id,this.customerId=t.customer_id,this.addressId=t.address_id,this.type=t.type,this.origin=t.origin,this.savedAt=t.saved_at,this.updatedAt=t.updated_at}}class eJ{id;remittanceReference;status;amount;currencyCode;constructor(t){this.id=t.id,this.remittanceReference=t.remittance_reference,this.status=t.status,this.amount=t.amount,this.currencyCode=t.currency_code}}class eQ{name;operator;value;constructor(t){this.name=t.name,this.operator=t.operator??null,this.value=t.value}}class eN{id;status;rows;type;filters;expiresAt;createdAt;constructor(t){this.id=t.id,this.status=t.status,this.rows=t.rows??null,this.type=t.type,this.filters=t.filters?.map(t=>new eQ(t)),this.expiresAt=t.expires_at??null,this.createdAt=t.created_at}}class e${id;name;description;key;status;permissions;expiresAt;lastUsedAt;createdAt;updatedAt;constructor(t){this.id=t.id,this.name=t.name,this.description=t.description??null,this.key=t.key,this.status=t.status,this.permissions=t.permissions,this.expiresAt=t.expires_at??null,this.lastUsedAt=t.last_used_at??null,this.createdAt=t.created_at,this.updatedAt=t.updated_at}}class eG{id;apiKeyId;riskLevel;actionTaken;source;reference;description;createdAt;constructor(t){this.id=t.id,this.apiKeyId=t.api_key_id,this.riskLevel=t.risk_level,this.actionTaken=t.action_taken,this.source=t.source,this.reference=t.reference,this.description=t.description??null,this.createdAt=t.created_at}}class eH{id;token;name;description;status;createdAt;updatedAt;revokedAt;constructor(t){this.id=t.id,this.token=t.token,this.name=t.name,this.description=t.description??null,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.revokedAt=t.revoked_at??null}}class eV extends tY{eventType=n.AddressCreated;data;constructor(t){super(t),this.data=new eL(t.data)}}class ez extends tY{eventType=n.AddressUpdated;data;constructor(t){super(t),this.data=new eL(t.data)}}class eX extends tY{eventType=n.AddressImported;data;constructor(t){super(t),this.data=new eL(t.data)}}class eY extends tY{eventType=n.AdjustmentCreated;data;constructor(t){super(t),this.data=new eC(t.data)}}class eW extends tY{eventType=n.AdjustmentUpdated;data;constructor(t){super(t),this.data=new eC(t.data)}}class eZ extends tY{eventType=n.BusinessCreated;data;constructor(t){super(t),this.data=new ek(t.data)}}class e0 extends tY{eventType=n.BusinessUpdated;data;constructor(t){super(t),this.data=new ek(t.data)}}class e4 extends tY{eventType=n.BusinessImported;data;constructor(t){super(t),this.data=new ek(t.data)}}class e1 extends tY{eventType=n.CustomerCreated;data;constructor(t){super(t),this.data=new eR(t.data)}}class e5 extends tY{eventType=n.CustomerUpdated;data;constructor(t){super(t),this.data=new eR(t.data)}}class e9 extends tY{eventType=n.CustomerImported;data;constructor(t){super(t),this.data=new eR(t.data)}}class e2 extends tY{eventType=n.DiscountCreated;data;constructor(t){super(t),this.data=new eF(t.data)}}class e6 extends tY{eventType=n.DiscountUpdated;data;constructor(t){super(t),this.data=new eF(t.data)}}class e3 extends tY{eventType=n.DiscountImported;data;constructor(t){super(t),this.data=new eF(t.data)}}class e8 extends tY{eventType=n.DiscountGroupCreated;data;constructor(t){super(t),this.data=new eE(t.data)}}class e7 extends tY{eventType=n.DiscountGroupUpdated;data;constructor(t){super(t),this.data=new eE(t.data)}}class st extends tY{data;constructor(t){super(t),this.data=function t(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(t);let s={};for(let[i,a]of Object.entries(e))s[i.toLowerCase().replace(/_([a-z])/g,(t,e)=>e.toUpperCase())]=t(a);return s}(t.data)}}class se extends tY{eventType=n.PaymentMethodDeleted;data;constructor(t){super(t),this.data=new eK(t.data)}}class ss extends tY{eventType=n.PaymentMethodSaved;data;constructor(t){super(t),this.data=new eO(t.data)}}class si extends tY{eventType=n.PayoutCreated;data;constructor(t){super(t),this.data=new eJ(t.data)}}class sa extends tY{eventType=n.PayoutPaid;data;constructor(t){super(t),this.data=new eJ(t.data)}}class sn extends tY{eventType=n.PriceCreated;data;constructor(t){super(t),this.data=new t2(t.data)}}class sr extends tY{eventType=n.PriceUpdated;data;constructor(t){super(t),this.data=new t2(t.data)}}class so extends tY{eventType=n.PriceImported;data;constructor(t){super(t),this.data=new t2(t.data)}}class sd extends tY{eventType=n.ProductCreated;data;constructor(t){super(t),this.data=new tZ(t.data)}}class sc extends tY{eventType=n.ProductUpdated;data;constructor(t){super(t),this.data=new tZ(t.data)}}class sl extends tY{eventType=n.ProductImported;data;constructor(t){super(t),this.data=new tZ(t.data)}}class su extends tY{eventType=n.SubscriptionActivated;data;constructor(t){super(t),this.data=new ej(t.data)}}class sh extends tY{eventType=n.SubscriptionCanceled;data;constructor(t){super(t),this.data=new ej(t.data)}}class sp extends tY{eventType=n.SubscriptionCreated;data;constructor(t){super(t),this.data=new eB(t.data)}}class sm extends tY{eventType=n.SubscriptionImported;data;constructor(t){super(t),this.data=new ej(t.data)}}class s_ extends tY{eventType=n.SubscriptionPastDue;data;constructor(t){super(t),this.data=new ej(t.data)}}class sy extends tY{eventType=n.SubscriptionPaused;data;constructor(t){super(t),this.data=new ej(t.data)}}class sw extends tY{eventType=n.SubscriptionResumed;data;constructor(t){super(t),this.data=new ej(t.data)}}class sg extends tY{eventType=n.SubscriptionTrialing;data;constructor(t){super(t),this.data=new ej(t.data)}}class sb extends tY{eventType=n.SubscriptionUpdated;data;constructor(t){super(t),this.data=new ej(t.data)}}class sA extends tY{eventType=n.TransactionBilled;data;constructor(t){super(t),this.data=new eb(t.data)}}class sv extends tY{eventType=n.TransactionCanceled;data;constructor(t){super(t),this.data=new eb(t.data)}}class sx extends tY{eventType=n.TransactionCreated;data;constructor(t){super(t),this.data=new eb(t.data)}}class sf extends tY{eventType=n.TransactionCompleted;data;constructor(t){super(t),this.data=new eb(t.data)}}class sI extends tY{eventType=n.TransactionPaid;data;constructor(t){super(t),this.data=new eb(t.data)}}class sT extends tY{eventType=n.TransactionPastDue;data;constructor(t){super(t),this.data=new eb(t.data)}}class sC extends tY{eventType=n.TransactionPaymentFailed;data;constructor(t){super(t),this.data=new eb(t.data)}}class sR extends tY{eventType=n.TransactionReady;data;constructor(t){super(t),this.data=new eb(t.data)}}class sP extends tY{eventType=n.TransactionUpdated;data;constructor(t){super(t),this.data=new eb(t.data)}}class sk extends tY{eventType=n.TransactionRevised;data;constructor(t){super(t),this.data=new eb(t.data)}}class sU extends tY{eventType=n.ReportCreated;data;constructor(t){super(t),this.data=new eN(t.data)}}class sD extends tY{eventType=n.ReportUpdated;data;constructor(t){super(t),this.data=new eN(t.data)}}class sS extends tY{eventType=n.ApiKeyCreated;data;constructor(t){super(t),this.data=new e$(t.data)}}class sM extends tY{eventType=n.ApiKeyExpired;data;constructor(t){super(t),this.data=new e$(t.data)}}class sq extends tY{eventType=n.ApiKeyExpiring;data;constructor(t){super(t),this.data=new e$(t.data)}}class sB extends tY{eventType=n.ApiKeyRevoked;data;constructor(t){super(t),this.data=new e$(t.data)}}class sj extends tY{eventType=n.ApiKeyUpdated;data;constructor(t){super(t),this.data=new e$(t.data)}}class sL extends tY{eventType=n.ApiKeyExposureCreated;data;constructor(t){super(t),this.data=new eG(t.data)}}class sF extends tY{eventType=n.ClientTokenCreated;data;constructor(t){super(t),this.data=new eH(t.data)}}class sE extends tY{eventType=n.ClientTokenUpdated;data;constructor(t){super(t),this.data=new eH(t.data)}}class sK extends tY{eventType=n.ClientTokenRevoked;data;constructor(t){super(t),this.data=new eH(t.data)}}class sO{async unmarshal(t,e,s){if(await new tX().isValidSignature(t,e,s)){let e=JSON.parse(t);return sO.fromJson(e)}throw Error("[Paddle] Webhook signature verification failed")}async isSignatureValid(t,e,s){return await new tX().isValidSignature(t,e,s)}static fromJson(t){switch(t.event_type){case n.AddressCreated:return new eV(t);case n.AddressUpdated:return new ez(t);case n.AddressImported:return new eX(t);case n.AdjustmentCreated:return new eY(t);case n.AdjustmentUpdated:return new eW(t);case n.ApiKeyCreated:return new sS(t);case n.ApiKeyExpired:return new sM(t);case n.ApiKeyExpiring:return new sq(t);case n.ApiKeyRevoked:return new sB(t);case n.ApiKeyUpdated:return new sj(t);case n.ApiKeyExposureCreated:return new sL(t);case n.BusinessCreated:return new eZ(t);case n.BusinessUpdated:return new e0(t);case n.BusinessImported:return new e4(t);case n.ClientTokenCreated:return new sF(t);case n.ClientTokenUpdated:return new sE(t);case n.ClientTokenRevoked:return new sK(t);case n.CustomerCreated:return new e1(t);case n.CustomerUpdated:return new e5(t);case n.CustomerImported:return new e9(t);case n.DiscountCreated:return new e2(t);case n.DiscountImported:return new e3(t);case n.DiscountUpdated:return new e6(t);case n.DiscountGroupCreated:return new e8(t);case n.DiscountGroupUpdated:return new e7(t);case n.PaymentMethodDeleted:return new se(t);case n.PaymentMethodSaved:return new ss(t);case n.PayoutCreated:return new si(t);case n.PayoutPaid:return new sa(t);case n.PriceCreated:return new sn(t);case n.PriceUpdated:return new sr(t);case n.PriceImported:return new so(t);case n.ProductCreated:return new sd(t);case n.ProductUpdated:return new sc(t);case n.ProductImported:return new sl(t);case n.SubscriptionActivated:return new su(t);case n.SubscriptionCanceled:return new sh(t);case n.SubscriptionCreated:return new sp(t);case n.SubscriptionImported:return new sm(t);case n.SubscriptionPastDue:return new s_(t);case n.SubscriptionPaused:return new sy(t);case n.SubscriptionResumed:return new sw(t);case n.SubscriptionTrialing:return new sg(t);case n.SubscriptionUpdated:return new sb(t);case n.TransactionBilled:return new sA(t);case n.TransactionCanceled:return new sv(t);case n.TransactionCompleted:return new sf(t);case n.TransactionCreated:return new sx(t);case n.TransactionPaid:return new sI(t);case n.TransactionPastDue:return new sT(t);case n.TransactionPaymentFailed:return new sC(t);case n.TransactionReady:return new sR(t);case n.TransactionUpdated:return new sP(t);case n.TransactionRevised:return new sk(t);case n.ReportCreated:return new sU(t);case n.ReportUpdated:return new sD(t);default:return tz.log(`Unhandled event: ${t.event_type}`),new st(t)}}}class sJ extends C{fromJson(t){return sO.fromJson(t)}}class sQ{email;reference;constructor(t){this.email=t.email,this.reference=t.reference}}class sN{id;customerId;addressId;type;card;paypal;southKoreaLocalCard;underlyingDetails;origin;savedAt;updatedAt;constructor(t){this.id=t.id,this.customerId=t.customer_id,this.addressId=t.address_id,this.type=t.type,this.card=t.card?new p(t.card):null,this.paypal=t.paypal?new sQ(t.paypal):null,this.southKoreaLocalCard=t.south_korea_local_card?new y(t.south_korea_local_card):null,this.underlyingDetails=t.underlying_details?new _(t.underlying_details):null,this.origin=t.origin,this.savedAt=t.saved_at,this.updatedAt=t.updated_at}}class s$ extends C{fromJson(t){return new sN(t)}}class sG{discount;total;formattedTotal;constructor(t){this.discount=new tN(t.discount),this.total=t.total,this.formattedTotal=t.formatted_total}}class sH{price;quantity;taxRate;unitTotals;formattedUnitTotals;totals;formattedTotals;product;discounts;constructor(t){this.price=new M(t.price),this.quantity=t.quantity,this.taxRate=t.tax_rate,this.unitTotals=new E(t.unit_totals),this.formattedUnitTotals=new E(t.formatted_unit_totals),this.totals=new E(t.totals),this.formattedTotals=new E(t.formatted_totals),this.product=ne
1w R(t.product),this.discounts=t.discounts.map(t=>new sG(t))}}class sV{lineItems;constructor(t){this.lineItems=t.line_items.map(t=>new sH(t))}}class sz{customerId;addressId;businessId;currencyCode;discountId;address;customerIpAddress;details;availablePaymentMethods;constructor(t){this.customerId=t.customer_id??null,this.addressId=t.address_id??null,this.businessId=t.business_id??null,this.currencyCode=t.currency_code,this.discountId=t.discount_id??null,this.address=t.address?new tu(t.address):null,this.customerIpAddress=t.customer_ip_address??null,this.details=new sV(t.details),this.availablePaymentMethods=t.available_payment_methods??[]}}class sX{name;description;group;availableVersions;constructor(t){this.name=t.name,this.description=t.description,this.group=t.group,this.availableVersions=t.available_versions}}class sY{id;description;type;destination;active;apiVersion;includeSensitiveFields;trafficSource;subscribedEvents;endpointSecretKey;constructor(t){this.id=t.id,this.description=t.description,this.type=t.type,this.destination=t.destination,this.active=t.active,this.apiVersion=t.api_version,this.includeSensitiveFields=t.include_sensitive_fields,this.trafficSource=t.traffic_source,this.subscribedEvents=t.subscribed_events.map(t=>new sX(t)),this.endpointSecretKey=t.endpoint_secret_key}}class sW{id;type;status;payload;occurredAt;deliveredAt;replayedAt;origin;lastAttemptAt;retryAt;timesAttempted;notificationSettingId;constructor(t){this.id=t.id,this.type=t.type,this.status=t.status,this.payload=sO.fromJson(t.payload),this.occurredAt=t.occurred_at,this.deliveredAt=t.delivered_at??null,this.replayedAt=t.replayed_at??null,this.origin=t.origin,this.lastAttemptAt=t.last_attempt_at??null,this.retryAt=t.retry_at??null,this.timesAttempted=t.times_attempted,this.notificationSettingId=t.notification_setting_id}}class sZ extends C{fromJson(t){return new sW(t)}}class s0{notificationId;constructor(t){this.notificationId=t.notification_id}}class s4{id;responseCode;responseContentType;responseBody;attemptedAt;constructor(t){this.id=t.id,this.responseCode=t.response_code,this.responseContentType=t.response_content_type??null,this.responseBody=t.response_body,this.attemptedAt=t.attempted_at}}class s1 extends C{fromJson(t){return new s4(t)}}class s5{name;operator;value;constructor(t){this.name=t.name,this.operator=t.operator??null,this.value=t.value}}class s9{id;status;rows;type;filters;expiresAt;createdAt;constructor(t){this.id=t.id,this.status=t.status,this.rows=t.rows??null,this.type=t.type,this.filters=t.filters?.map(t=>new s5(t)),this.expiresAt=t.expires_at??null,this.createdAt=t.created_at}}class s2{url;constructor(t){this.url=t.url}}class s6 extends C{fromJson(t){return new s9(t)}}class s3{name;label;description;group;type;events;constructor(t){this.name=t.name,this.label=t.label,this.description=t.description,this.group=t.group,this.type=t.type,this.events=t.events}}class s8{id;status;notificationSettingId;name;type;payload;lastRunAt;createdAt;updatedAt;config;constructor(t){this.id=t.id,this.status=t.status,this.notificationSettingId=t.notification_setting_id,this.name=t.name,this.type=t.type,this.payload=t.payload??null,this.lastRunAt=t.last_run_at??null,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.config=t.config?new iw(t.config):null}}class s7 extends C{fromJson(t){return new s8(t)}}class it{subscriptionId;constructor(t){this.subscriptionId=t?.subscription_id??null}}class ie{effectiveFrom;hasPastDueTransaction;constructor(t){this.effectiveFrom=t?.effective_from??null,this.hasPastDueTransaction=t?.has_past_due_transaction??null}}class is{entities;options;constructor(t){this.entities=t.entities?new it(t.entities):null,this.options=t.options?new ie(t.options):null}}class ii{priceId;quantity;constructor(t){this.priceId=t.price_id,this.quantity=t.quantity}}class ia{customerId;addressId;businessId;paymentMethodId;discountId;transactionId;items;constructor(t){this.customerId=t?.customer_id??null,this.addressId=t?.address_id??null,this.businessId=t?.business_id??null,this.paymentMethodId=t?.payment_method_id??null,this.discountId=t?.discount_id??null,this.transactionId=t?.transaction_id??null,this.items=t?.items?.map(t=>new ii(t))??null}}class ir{customerSimulatedAs;businessSimulatedAs;discountSimulatedAs;constructor(t){this.customerSimulatedAs=t?.customer_simulated_as??null,this.businessSimulatedAs=t?.business_simulated_as??null,this.discountSimulatedAs=t?.discount_simulated_as??null}}class io{entities;options;constructor(t){this.entities=t.entities?new ia(t.entities):null,this.options=t.options?new ir(t.options):null}}
1class id{subscriptionId;constructor(t){this.subscriptionId=t?.subscription_id??null}}class ic{effectiveFrom;hasPastDueTransaction;constructor(t){this.effectiveFrom=t?.effective_from??null,this.hasPastDueTransaction=t?.has_past_due_transaction??null}}class il{entities;options;constructor(t){this.entities=t.entities?new id(t.entities):null,this.options=t.options?new ic(t.options):null}}class iu{subscriptionId;constructor(t){this.subscriptionId=t?.subscription_id??null}}class ih{paymentOutcome;dunningExhaustedAction;constructor(t){this.paymentOutcome=t?.payment_outcome??null,this.dunningExhaustedAction=t?.dunning_exhausted_action??null}}class ip{entities;options;constructor(t){this.entities=t.entities?new iu(t.entities):null,this.options=t.options?new ih(t.options):null}}class im{subscriptionId;constructor(t){this.subscriptionId=t?.subscription_id??null}}class i_{paymentOutcome;dunningExhaustedAction;constructor(t){this.paymentOutcome=t?.payment_outcome??null,this.dunningExhaustedAction=t?.dunning_exhausted_action??null}}class iy{entities;options;constructor(t){this.entities=t.entities?new im(t.entities):null,this.options=t.options?new i_(t.options):null}}class iw{subscriptionCancellation;subscriptionCreation;subscriptionPause;subscriptionRenewal;subscriptionResume;constructor(t){this.subscriptionCancellation=t.subscription_cancellation?new is(t.subscription_cancellation):null,this.subscriptionCreation=t.subscription_creation?new io(t.subscription_creation):null,this.subscriptionPause=t.subscription_pause?new il(t.subscription_pause):null,this.subscriptionRenewal=t.subscription_renewal?new ip(t.subscription_renewal):null,this.subscriptionResume=t.subscription_resume?new iy(t.subscription_resume):null}}class ig{id;status;createdAt;updatedAt;type;events;constructor(t){this.id=t.id,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.type=t.type,this.events=t.events?.map(t=>new ix(t))??[]}}class ib extends C{fromJson(t){return new ig(t)}}class iA{body;constructor(t){this.body=t.body}}class iv{body;statusCode;constructor(t){this.body=t.body,this.statusCode=t.status_code}}class ix{id;status;eventType;payload;request;response;createdAt;updatedAt;constructor(t){this.id=t.id,this.status=t.status,this.eventType=t.event_type,this.payload=t.payload,this.request=t.request?new iA(t.request):null,this.response=t.response?new iv(t.response):null,this.createdAt=t.created_at,this.updatedAt=t.updated_at}}class iI extends C{fromJson(t){return new ix(t)}}class iT{count;timestamp;constructor(t){this.count=t.count,this.timestamp=t.timestamp}}class iC{endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new iT(t)),this.updatedAt=t.updated_at}}class iR{amount;timestamp;constructor(t){this.amount=t.amount,this.timestamp=t.timestamp}}class iP{currencyCode;endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.currencyCode=t.currency_code,this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new iR(t)),this.updatedAt=t.updated_at}}class ik{currencyCode;endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.currencyCode=t.currency_code,this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new iR(t)),this.updatedAt=t.updated_at}}class iU{amount;count;timestamp;constructor(t){this.amount=t.amount,this.count=t.count,this.timestamp=t.timestamp}}class iD{currencyCode;endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.currencyCode=t.currency_code,this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new iU(t)),this.updatedAt=t.updated_at}}class iS{amount;timestamp;constructor(t){this.amount=t.amount,this.timestamp=t.timestamp}}class iM{currencyCode;endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.currencyCode=t.currency_code,this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new iS(t)),this.updatedAt=t.updated_at}}class iq{count;timestamp;constructor(t){this.count=t.count,this.timestamp=t.timestamp}}class iB{endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new iq(t)),this.updatedAt=t.updated_at}}class ij{completedCount;count;rate;timestamp;constructor(t){this.completedCount=t.completed_count,this.count=t.count,this.rate=t.rate,this.timestamp=t.timestamp}}class iL{endsAt;interval;startsAt;timeseries;updatedAt;constructor(t){this.endsAt=t.ends_at,this.interval=t.interval,this.startsAt=t.starts_at,this.timeseries=t.timeseries.map(t=>new ij(t)),this.updatedAt=t.updated_at}}(r||(r={})).Day="day";class iF extends f{list(t,e){let s=new I(e),i=new T("/customers/{customer_id}/addresses",{customer_id:t}).deriveUrl();return new tQ(this.client,i+s.toQueryString())}async create(t,e){let s=new T("/customers/{customer_id}/addresses",{customer_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tJ(this.handleResponse(i))}async get(t,e){let s=new T("/customers/{customer_id}/addresses/{address_id}",{customer_id:t,address_id:e}).deriveUrl(),i=await this.client.get(s);return new tJ(this.handleResponse(i))}async update(t,e,s){let i=new T("/customers/{customer_id}/addresses/{address_id}",{customer_id:t,address_id:e}).deriveUrl(),a=await this.client.patch(i,s);
1return new tJ(this.handleResponse(a))}async archive(t,e){return await this.update(t,e,{status:"archived"})}}class iE extends f{list(t){let e=new I(t);return new ts(this.client,"/adjustments"+e.toQueryString())}async create(t){let e=await this.client.post("/adjustments",t);return new te(this.handleResponse(e))}async getCreditNotePDF(t,e){let s=new T("/adjustments/{adjustment_id}/credit-note",{adjustment_id:t}).deriveUrl(),i=new I(e),a=await this.client.get(s+i.toQueryString());return new ti(this.handleResponse(a))}}class iK extends f{list(t,e){let s=new I(e),i=new T("/customers/{customer_id}/businesses",{customer_id:t}).deriveUrl();return new tO(this.client,i+s.toQueryString())}async create(t,e){let s=new T("/customers/{customer_id}/businesses",{customer_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tK(this.handleResponse(i))}async get(t,e){let s=new T("/customers/{customer_id}/businesses/{business_id}",{customer_id:t,business_id:e}).deriveUrl(),i=await this.client.get(s);return new tK(this.handleResponse(i))}async update(t,e,s){let i=new T("/customers/{customer_id}/businesses/{business_id}",{customer_id:t,business_id:e}).deriveUrl(),a=await this.client.patch(i,s);return new tK(this.handleResponse(a))}async archive(t,e){return await this.update(t,e,{status:"archived"})}}class iO extends f{list(t){let e=new I(t);return new tS(this.client,"/customers"+e.toQueryString())}async create(t){let e=await this.client.post("/customers",t);return new tD(this.handleResponse(e))}async get(t){let e=new T("/customers/{customer_id}",{customer_id:t}).deriveUrl(),s=await this.client.get(e);return new tD(this.handleResponse(s))}async update(t,e){let s=new T("/customers/{customer_id}",{customer_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new tD(this.handleResponse(i))}async getCreditBalance(t,e){let s=new T("/customers/{customer_id}/credit-balances",{customer_id:t}).deriveUrl(),i=new I(e),a=await this.client.get(s,i);return this.handleResponse(a).map(t=>new tq(t))}async archive(t){return await this.update(t,{status:"archived"})}async generateAuthToken(t){let e=new T("/customers/{customer_id}/auth-token",{customer_id:t}).deriveUrl(),s=await this.client.post(e,void 0);return new tU(this.handleResponse(s))}}class iJ extends f{async create(t,e){let s=new T("/customers/{customer_id}/portal-sessions",{customer_id:t}).deriveUrl(),i=await this.client.post(s,{subscriptionIds:e});return new tF(this.handleResponse(i))}}class iQ extends f{list(t){let e=new I(t);return new t$(this.client,"/discounts"+e.toQueryString())}async create(t){let e=await this.client.post("/discounts",t);return new tN(this.handleResponse(e))}async get(t,e){let s=new I(e),i=new T("/discounts/{discount_id}",{discount_id:t}).deriveUrl(),a=await this.client.get(i+s.toQueryString());return new tN(this.handleResponse(a))}async update(t,e){let s=new T("/discounts/{discount_id}",{discount_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new tN(this.handleResponse(i))}async archive(t){return await this.update(t,{status:"archived"})}}class iN extends f{list(t){let e=new I(t);return new tH(this.client,"/discount-groups"+e.toQueryString())}async create(t){let e=await this.client.post("/discount-groups",t);return new tG(this.handleResponse(e))}async get(t){let e=new T("/discount-groups/{discount_group_id}",{discount_group_id:t}).deriveUrl(),s=await this.client.get(e);return new tG(this.handleResponse(s))}async update(t,e){let s=new T("/discount-groups/{discount_group_id}",{discount_group_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new tG(this.handleResponse(i))}async archive(t){return await this.update(t,{status:"archived"})}}class i$ extends f{list(t){let e=new I(t);return new q(this.client,"/prices"+e.toQueryString())}async create(t){let e=await this.client.post("/prices",t);return new M(this.handleResponse(e))}async get(t,e){let s=new I(e),i=new T("/prices/{price_id}",{price_id:t}).deriveUrl(),a=await this.client.get(i,s);return new M(this.handleResponse(a))}async update(t,e){let s=new T("/prices/{price_id}",{price_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new M(this.handleResponse(i))}async archive(t){return await this.update(t,{status:"archived"})}}class iG extends f{list(t){let e=new I(t);return new P(this.client,"/products"+e.toQueryString())}async create(t){let e=await this.client.post("/products",t);return new R(this.handleResponse(e))}async get(t,e){let s=new I(e),i=new T("/products/{product_id}",{product_id:t}).deriveUrl(),a=await this.client.get(i,s);
1return new R(this.handleResponse(a))}async update(t,e){let s=new T("/products/{product_id}",{product_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new R(this.handleResponse(i))}async archive(t){return await this.update(t,{status:"archived"})}}class iH extends f{async previewUpdate(t,e){let s=new T("/subscriptions/{subscription_id}/preview",{subscription_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new tC(this.handleResponse(i))}async update(t,e){let s=new T("/subscriptions/{subscription_id}",{subscription_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new tb(this.handleResponse(i))}list(t){let e=new I(t);return new tA(this.client,"/subscriptions"+e.toQueryString())}async get(t,e){let s=new I(e),i=new T("/subscriptions/{subscription_id}",{subscription_id:t}).deriveUrl(),a=await this.client.get(i,s);return new tb(this.handleResponse(a))}async activate(t){let e=new T("/subscriptions/{subscription_id}/activate",{subscription_id:t}).deriveUrl(),s=await this.client.post(e,void 0);return new tb(this.handleResponse(s))}async pause(t,e){let s=new T("/subscriptions/{subscription_id}/pause",{subscription_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tb(this.handleResponse(i))}async resume(t,e){let s=new T("/subscriptions/{subscription_id}/resume",{subscription_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tb(this.handleResponse(i))}async cancel(t,e){let s=new T("/subscriptions/{subscription_id}/cancel",{subscription_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tb(this.handleResponse(i))}async createOneTimeCharge(t,e){let s=new T("/subscriptions/{subscription_id}/charge",{subscription_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tb(this.handleResponse(i))}async previewOneTimeCharge(t,e){let s=new T("/subscriptions/{subscription_id}/charge/preview",{subscription_id:t}).deriveUrl(),i=await this.client.post(s,e);return new tC(this.handleResponse(i))}async getPaymentMethodChangeTransaction(t){let e=new T("/subscriptions/{subscription_id}/update-payment-method-transaction",{subscription_id:t}).deriveUrl(),s=await this.client.get(e);return new td(this.handleResponse(s))}}class iV extends f{list(t){let e=new I(t);return new tc(this.client,"/transactions"+e.toQueryString())}async create(t,e){let s=new I(e),i=await this.client.post("/transactions"+s.toQueryString(),t);return new td(this.handleResponse(i))}async update(t,e,s){let i=new I(s),a=new T("/transactions/{transaction_id}",{transaction_id:t}).deriveUrl(),n=await this.client.patch(a+i.toQueryString(),e);return new td(this.handleResponse(n))}async get(t,e){let s=new I(e),i=new T("/transactions/{transaction_id}",{transaction_id:t}).deriveUrl(),a=await this.client.get(i,s);return new td(this.handleResponse(a))}async getInvoicePDF(t,e){let s=new I(e),i=new T("/transactions/{transaction_id}/invoice",{transaction_id:t}).deriveUrl(),a=await this.client.get(i+s.toQueryString());return new tl(this.handleResponse(a))}async preview(t){let e=await this.client.post("/transactions/preview",t);return new tk(this.handleResponse(e))}async revise(t,e){let s=new T("/transactions/{transaction_id}/revise",{transaction_id:t}).deriveUrl(),i=await this.client.post(s,e);return new td(this.handleResponse(i))}}class iz extends f{list(t,e){let s=new I(e),i=new T("/customers/{customer_id}/payment-methods",{customer_id:t}).deriveUrl();return new s$(this.client,i+s.toQueryString())}async get(t,e){let s=new T("/customers/{customer_id}/payment-methods/{payment_method_id}",{customer_id:t,payment_method_id:e}).deriveUrl(),i=await this.client.get(s);return new sN(this.handleResponse(i))}async delete(t,e){let s=new T("/customers/{customer_id}/payment-methods/{payment_method_id}",{customer_id:t,payment_method_id:e}).deriveUrl(),i=await this.client.delete(s);i&&this.handleResponse(i)}}class iX extends f{async preview(t){let e=await this.client.post("/pricing-preview",t);return new sz(this.handleResponse(e))}}class iY extends f{async list(){let t=await this.client.get("/event-types");return this.handleResponse(t).map(t=>new sX(t))}}let iW="/notification-settings/{notification_setting_id}";class iZ extends f{async list(t){let e=new I(t),s=await this.client.get("/notification-settings"+e.toQueryString());return this.handleResponse(s).map(t=>new sY(t))}async create(t){let e=await this.client.post("/notification-settings",t);return new sY(this.handleResponse(e))}async get(t){let e=new T("/notification-settings/{notification_setting_id}",{notification_setting_id:t}).deriveUrl(),s=await this.client.get(e);return new sY(this.handleResponse(s))}async update(t,e){let s=new T(iW,{notification_setting_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new sY(this.handleResponse(i))}async delete(t){let e=new T(iW,{notification_setting_id:t}).deriveUrl(),s=await this.client.delete(e);s&&this.handleResponse(s)}}class i0 extends f{list(t){let e=new I(t);return new sZ(this.client,"/notifications"+e.toQueryString())}async get(t){let e=new T("/notifications/{notification_id}",{notification_id:t}).deriveUrl(),s=await this.client.get(e);return new sW(this.handleResponse(s))}async replay(t){let e=new T("/notifications/{notification_id}/replay",{notification_id:t}).deriveUrl(),s=await this.client.post(e,void 0);return new s0(this.handleResponse(s))}getLogs(t,e){let s=new I(e),i=new T("/notifications/{notification_id}/logs",{notification_id:t}).deriveUrl();return new s1(this.client,i+s.toQueryString())}}class i4 extends f{list(t){let e=new I(t);return new s6(this.client,"/reports"+e.toQueryString())}async create(t){let e=await this.client.post("/reports",t);return new s9(this.handleResponse(e))}async get(t){let e=new T("/reports/{report_id}",{report_id:t}).deriveUrl(),s=await this.client.get(e);return new s9(this.handleResponse(s))}async getReportCsv(t){let e=new T("/reports/{report_id}/download-url",{report_id:t}).deriveUrl(),s=await this.client.get(e);return new s2(this.handleResponse(s))}}class i1 extends f{async list(){let t=await this.client.get("/simulation-types");return this.handleResponse(t).map(t=>new s3(t))}}class i5 extends f{list(t){let e=new I(t);return new s7(this.client,"/simulations"+e.toQueryString())}async create(t){let e=await this.client.post("/simulations",t);return new s8(this.handleResponse(e))}async get(t){let e=new T("/simulations/{simulation_id}",{simulation_id:t}).deriveUrl(),s=await this.client.get(e);return new s8(this.handleResponse(s))}async update(t,e){let s=new T("/simulations/{simulation_id}",{simulation_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new s8(this.handleResponse(i))}}class i9 extends f{list(t,e){let s=new I(e),i=new T("/simulations/{simulation_id}/runs",{simulation_id:t}).deriveUrl();return new ib(this.client,i+s.toQueryString())}async create(t){let e=new T("/simulations/{simulation_id}/runs",{simulation_id:t}).deriveUrl(),s=await this.client.post(e,void 0);return new ig(this.handleResponse(s))}async get(t,e,s){let i=new I(s),a=new T("/simulations/{simulation_id}/runs/{simulation_run_id}",{simulation_id:t,simulation_run_id:e}).deriveUrl(),n=await this.client.get(a,i);return new ig(this.handleResponse(n))}}class i2 extends f{list(t,e,s){let i=new I(s),a=new T("/simulations/{simulation_id}/runs/{simulation_run_id}/events",{simulation_id:t,simulation_run_id:e}).deriveUrl();return new iI(this.client,a+i.toQueryString())}async get(t,e,s){let i=new T("/simulations/{simulation_id}/runs/{simulation_run_id}/events/{simulation_event_id}",{simulation_id:t,simulation_run_id:e,simulation_event_id:s}).deriveUrl(),a=await this.client.get(i);
1return new ix(this.handleResponse(a))}async replay(t,e,s){let i=new T("/simulations/{simulation_id}/runs/{simulation_run_id}/events/{simulation_event_id}/replay",{simulation_id:t,simulation_run_id:e,simulation_event_id:s}).deriveUrl(),a=await this.client.post(i,void 0);return new ix(this.handleResponse(a))}}class i6{id;token;name;description;status;createdAt;updatedAt;revokedAt;constructor(t){this.id=t.id,this.token=t.token,this.name=t.name,this.description=t.description??null,this.status=t.status,this.createdAt=t.created_at,this.updatedAt=t.updated_at,this.revokedAt=t.revoked_at??null}}class i3 extends C{fromJson(t){return new i6(t)}}class i8 extends f{list(t){let e=new I(t);return new i3(this.client,"/client-tokens"+e.toQueryString())}async create(t){let e=await this.client.post("/client-tokens",t);return new i6(this.handleResponse(e))}async get(t){let e=new T("/client-tokens/{client_token_id}",{client_token_id:t}).deriveUrl(),s=await this.client.get(e);return new i6(this.handleResponse(s))}async update(t,e){let s=new T("/client-tokens/{client_token_id}",{client_token_id:t}).deriveUrl(),i=await this.client.patch(s,e);return new i6(this.handleResponse(i))}async revoke(t){return await this.update(t,{status:"revoked"})}}class i7 extends f{async getActiveSubscribers(t){let e=new I(t),s=await this.client.get("/metrics/active-subscribers",e);return new iC(this.handleResponse(s))}async getMonthlyRecurringRevenue(t){let e=new I(t),s=await this.client.get("/metrics/monthly-recurring-revenue",e);return new iP(this.handleResponse(s))}async getMonthlyRecurringRevenueChange(t){let e=new I(t),s=await this.client.get("/metrics/monthly-recurring-revenue-change",e);return new ik(this.handleResponse(s))}async getRevenue(t){let e=new I(t),s=await this.client.get("/metrics/revenue",e);return new iD(this.handleResponse(s))}async getRefunds(t){let e=new I(t),s=await this.client.get("/metrics/refunds",e);return new iM(this.handleResponse(s))}async getChargebacks(t){let e=new I(t),s=await this.client.get("/metrics/chargebacks",e);return new iB(this.handleResponse(s))}async getCheckoutConversion(t){let e=new I(t),s=await this.client.get("/metrics/checkout-conversion",e);return new iL(this.handleResponse(s))}}let at={[i.production]:"https://api.paddle.com",[i.sandbox]:"https://sandbox-api.paddle.com"};function ae(t){return null!=t&&"object"==typeof t}function as(t){let e;if(!ae(t)||t instanceof Date||t instanceof RegExp||"boolean"==typeof t||"function"==typeof t)return t;let s=0,i=0;if(Array.isArray(t))for(e=[],i=t.length;s<i;s++)e.push(as(t[s]));else for(let s in e={},t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s.trim().replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\W]+/g,"_").replace(/^_+|_+$/g,"").toLowerCase()]=as(t[s]));return e}function ai(t){if(!t||!ae(t))return t;if(!("customData"in t))return as(t);{let{customData:e,...s}=t;return{...as(s),custom_data:e}}}class aa{apiKey;options;baseUrl;constructor(t,e){this.apiKey=t,this.options=e,this.baseUrl=this.getBaseUrl(this.options.environment),tz.logLevel=this.options.logLevel??a.error}getBaseUrl(t){return at[t??i.production]||t}getHeaders(){let t,e=tV.getProvider()?.crypto;return e?t=e.randomUUID():tz.error("Unknown runtime. Cannot generate uuid"),{Authorization:`bearer ${this.apiKey}`,"Content-Type":"application/json","user-agent":"PaddleSDK/node 3.8.0","X-Transaction-ID":t??"",...this.options.customHeaders}}async get(t,e){let s=t.includes(this.baseUrl)?t:`${this.baseUrl}${t}`;!s.includes("?")&&e&&(s+=e.toQueryString());let i=s.split("?")[0],a=this.getHeaders();tz.logRequest("GET",i,a);let n=await fetch(s,{headers:a});return tz.logResponse("GET",i,a,n),{...await n.json(),[x]:n}}async post(t,e){let s=t.split("?")[0],i=this.getHeaders();tz.logRequest("POST",s,i);let a=await fetch(`${this.baseUrl}${t}`,{method:"POST",body:JSON.stringify(ai(e)),headers:i});return tz.logResponse("POST",s,i,a),{...await a.json(),[x]:a}}async patch(t,e){let s=t.split("?")[0],i=this.getHeaders();tz.logRequest("PATCH",s,i);let a=await fetch(`${this.baseUrl}${t}`,{method:"PATCH",body:JSON.stringify(ai(e)),headers:i});return tz.logResponse("PATCH",s,i,a),{...await a.json(),[x]:a}}async delete(t){let e=t.split("?")[0],s=this.getHeaders();tz.logRequest("DELETE",e,s);let i=await fetch(`${this.baseUrl}${t}`,{method:"DELETE",headers:s});return(tz.logResponse("DELETE",e,s,i),i.ok)?i:{...await i.json(),[x]:i}}}class an extends f{list(t){let e=new I(t);return new sJ(this.client,"/events"+e.toQueryString())}}class ar{client;defaultPaddleOptions={environment:i.production,logLevel:a.error};products;prices;transactions;adjustments;customers;customerPortalSessions;addresses;businesses;discounts;discountGroups;subscriptions;paymentMethods;pricingPreview;events;webhooks;eventTypes;notificationSettings;notifications;reports;simulationTypes;simulations;simulationRuns;simulationRunEvents;clientTokens;metrics;constructor(t,e){this.client=new aa(t,e?{...this.defaultPaddleOptions,...e}:{...this.defaultPaddleOptions}),this.products=new iG(this.client),this.prices=new i$(this.client),this.transactions=new iV(this.client),this.adjustments=new iE(this.client),this.customers=new iO(this.client),this.customerPortalSessions=new iJ(this.client),this.addresses=new iF(this.client),this.businesses=new iK(this.client),this.discounts=new iQ(this.client),this.discountGroups=new iN(this.client),this.subscriptions=new iH(this.client),this.paymentMethods=new iz(this.client),this.pricingPreview=new iX(this.client),this.events=new an(this.client),this.webhooks=new sO,this.eventTypes=new iY(this.client),this.notificationSettings=new iZ(this.client),this.notifications=new i0(this.client),this.reports=new i4(this.client),this.simulationTypes=new i1(this.client),this.simulations=new i5(this.client),this.simulationRuns=new i9(this.client),this.simulationRunEvents=new i2(this.client),this.clientTokens=new i8(this.client),this.metrics=new i7(this.client)}}let ao=Array(256);for(let t=0;t<ao.length;t++)ao[t]=t.toString(16).padStart(2,"0");class ad{randomUUID(){return crypto.randomUUID()}async computeHmac(t,e){let s=new TextEncoder,i=await crypto.subtle.importKey("raw",s.encode(e),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),a=new Uint8Array(await crypto.subtle.sign("hmac",i,s.encode(t))),n=Array(a.length);for(let t=0;t<a.length;t++)void 0!==a[t]&&null!==a[t]&&(n[t]=ao[a[t]]);return n.join("")}}class ac{static initialize(){tV.setProvider({crypto:new ad})}}class al extends ar{constructor(t,e){ac.initialize(),super(t,e)}}}}]);

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.