vendor: 5,299 bytes, line 1
1function W(r,o,a,c,f,d,p){try{var v=r[d](p),g=v.value}catch(w){return void a(w)}v.done?o(g):Promise.resolve(g).then(c,f)}function or(r){return function(){var o=this,a=arguments;return new Promise(function(c,f){var d=r.apply(o,a);function p(g){W(d,c,f,p,v,"next",g)}function v(g){W(d,c,f,p,v,"throw",g)}p(void 0)})}}function ir(r,o,a){return(o=ur(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}function k(r,o){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);o&&(c=c.filter(function(f){return Object.getOwnPropertyDescriptor(r,f).enumerable})),a.push.apply(a,c)}return a}function H(r){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?k(Object(a),!0).forEach(function(c){ir(r,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):k(Object(a)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(a,c))})}return r}function Z(r,o){if(r==null)return{};var a,c,f=ar(r,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);for(c=0;c<d.length;c++)a=d[c],o.includes(a)||{}.propertyIsEnumerable.call(r,a)&&(f[a]=r[a])}return f}function ar(r,o){if(r==null)return{};var a={};for(var c in r)if({}.hasOwnProperty.call(r,c)){if(o.includes(c))continue;a[c]=r[c]}return a}function N(){N=function(){return o};var r,o={},a=Object.prototype,c=a.hasOwnProperty,f=Object.defineProperty||function(t,e,n){t[e]=n.value},d=typeof Symbol=="function"?Symbol:{},p=d.iterator||"@@iterator",v=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function w(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{w({},"")}catch{w=function(e,n,u){return e[n]=u}}function Y(t,e,n,u){var i=e&&e.prototype instanceof j?e:j,l=Object.create(i.prototype),s=new R(u||[]);return f(l,"_invoke",{value:tr(t,n,s)}),l}function T(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(u){return{type:"throw",arg:u}}}o.wrap=Y;var F="suspendedStart",er="suspendedYield",B="executing",A="completed",m={};function j(){}function D(){}function O(){}var U={};w(U,p,function(){return this});var C=Object.getPrototypeOf,I=C&&C(C(K([])));I&&I!==a&&c.call(I,p)&&(U=I);var b=O.prototype=j.prototype=Object.create(U);function M(t){["next","throw","return"].forEach(function(e){w(t,e,function(n){return this._invoke(e,n)})})}function S(t,e){function n(i,l,s,h){var y=T(t[i],t,l);if(y.type!=="throw"){var P=y.arg,L=P.value;return L&&typeof L=="object"&&c.call(L,"__await")?e.resolve(L.__await).then(function(E){n("next",E,s,h)},function(E){n("throw",E,s,h)}):e.resolve(L).then(function(E){P.value=E,s(P)},function(E){return n("throw",E,s,h)})}h(y.arg)}var u;f(this,"_invoke",{value:function(i,l){function s(){return new e(function(h,y){n(i,l,h,y)})}return u=u?u.then(s,s):s()}})}function tr(t,e,n){var u=F;return function(i,l){if(u===B)throw Error("Generator is already running");if(u===A){if(i==="throw")throw l;return{value:r,done:!0}}for(n.method=i,n.arg=l;;){var s=n.delegate;if(s){var h=z(s,n);if(h){if(h===m)continue;return h}}if(n.method==="next")n.sent=n._sent=n.arg;else if(n.method==="throw"){if(u===F)throw u=A,n.arg;n.dispatchException(n.arg)}else n.method==="return"&&n.abrupt("return",n.arg);u=B;var y=T(t,e,n);if(y.type==="normal"){if(u=n.done?A:er,y.arg===m)continue;return{value:y.arg,done:n.done}}y.type==="throw"&&(u=A,n.method="throw",n.arg=y.arg)}}}function z(t,e){var n=e.method,u=t.iterator[n];if(u===r)return e.delegate=null,n==="throw"&&t.iterator.return&&(e.method="return",e.arg=r,z(t,e),e.method==="throw")||n!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=T(u,t.iterator,e.arg);if(i.type==="throw")return e.method="throw",e.arg=i.arg,e.delegate=null,m;var l=i.arg;return l?l.done?(e[t.resultName]=l.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=r),e.delegate=null,m):l:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function nr(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(nr,this),this.reset(!0)}function K(t){if(t||t===""){var e=t[p];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var n=-1,u=function i(){for(;++n<t.length;)if(c.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=r,i.done=!0,i};return u.next=u}}throw new TypeError(typeof t+" is not iterable")}return D.prototype=O,f(b,"constructor",{value:O,configurable:!0}),f(O,"constructor",{value:D,configurable:!0}),D.displayName=w(O,g,"GeneratorFunction"),o.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===D||(e.displayName||e.name)==="GeneratorFunction")},o.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,w(t,g,"GeneratorFunction")),t.prototype=Object.create(b),t},o.awrap=function(t){return{__await:t}},M(S.prototype),w(S.prototype,v,function(){return this}),o.AsyncIterator=S,o.async=function(t,e,n,u,i){i===void 0&&(i=Prom
1ise);var l=new S(Y(t,e,n,u),i);return o.isGeneratorFunction(e)?l:l.next().then(function(s){return s.done?s.value:l.next()})},M(b),w(b,g,"Generator"),w(b,p,function(){return this}),w(b,"toString",function(){return"[object Generator]"}),o.keys=function(t){var e=Object(t),n=[];for(var u in e)n.push(u);return n.reverse(),function i(){for(;n.length;){var l=n.pop();if(l in e)return i.value=l,i.done=!1,i}return i.done=!0,i}},o.values=K,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(x),!t)for(var e in this)e.charAt(0)==="t"&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(y,P){return l.type="throw",l.arg=t,e.next=y,P&&(e.method="next",e.arg=r),!!P}for(var u=this.tryEntries.length-1;u>=0;--u){var i=this.tryEntries[u],l=i.completion;if(i.tryLoc==="root")return n("end");if(i.tryLoc<=this.prev){var s=c.call(i,"catchLoc"),h=c.call(i,"finallyLoc");if(s&&h){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var u=this.tryEntries[n];if(u.tryLoc<=this.prev&&c.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var i=u;break}}i&&(t==="break"||t==="continue")&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var l=i?i.completion:{};return l.type=t,l.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(l)},complete:function(t,e){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var u=n.completion;if(u.type==="throw"){var i=u.arg;x(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:K(t),resultName:e,nextLoc:n},this.method==="next"&&(this.arg=r),m}},o}function cr(r,o){if(typeof r!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var c=a.call(r,o);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}function ur(r){var o=cr(r,"string");return typeof o=="symbol"?o:o+""}var _={CLASSIC:"classic",V1:"v1"},rr=_.V1,lr="https://cdn.paddle.com/paddle/paddle.js",fr="https://cdn.paddle.com/paddle/v2/paddle.js",dr={url:lr},sr={url:fr};function pr(r){return document.querySelector('script[src="'.concat(r,'"]'))||void 0}function hr(r){var o=document.createElement("script");o.src=r;var a=document.head||document.body;if(!a)throw new Error("Cannot inject Paddle.js. It needs a <head> or <body> element.");return a.appendChild(o),o}var V={classic:void 0,v1:void 0},yr={classic:"PaddleClassic",v1:"PaddleBillingV1"};function vr(r){var o,a=(o=gr(r))===null||o===void 0?void 0:o.url;if(a){var c=V[r],f=yr[r];return c!==void 0?c:(V[r]=new Promise(function(d,p){if(typeof window>"u"){d(void 0);return}if(window[f]){d(window[f]);return}try{var v=pr(a);v||(v=hr(a)),v.addEventListener("load",function(){window[f]?d(window[f]):p(new Error("Paddle.js not available"))}),v.addEventListener("error",function(){p(new Error("Failed to load Paddle.js - ".concat(r)))})}catch(g){p(g);return}}),V[r])}}function gr(r){if(r===_.CLASSIC)return dr;if(r===_.V1)return sr;console.error("[Paddle] Unknown Paddle Version")}var wr=["environment","version"],mr=["environment","version"];function Or(r,o){var a=r.environment;r.version;
1var c=Z(r,wr);try{a&&o.Environment.set(a),o.Initialized?o.Update(H({},c)):o.Initialize(H({},c))}catch(f){console.warn("[Paddle] Paddle Initialization failed. Please check the inputs",f)}}function Er(r,o){var a=r.environment;r.version;var c=Z(r,mr);try{a&&o.Environment.set(a),o.Setup(H({},c))}catch(f){console.warn("[Paddle] Paddle Initialization failed. Please check the inputs",f)}}var q;(function(r){r.CHECKOUT_LOADED="checkout.loaded",r.CHECKOUT_CLOSED="checkout.closed",r.CHECKOUT_UPDATED="checkout.updated",r.CHECKOUT_COMPLETED="checkout.completed",r.CHECKOUT_ERROR="checkout.error",r.CHECKOUT_FAILED="checkout.failed",r.CHECKOUT_ITEMS_UPDATED="checkout.items.updated",r.CHECKOUT_ITEMS_REMOVED="checkout.items.removed",r.CHECKOUT_CUSTOMER_CREATED="checkout.customer.created",r.CHECKOUT_CUSTOMER_UPDATED="checkout.customer.updated",r.CHECKOUT_CUSTOMER_REMOVED="checkout.customer.removed",r.CHECKOUT_PAYMENT_SELECTED="checkout.payment.selected",r.CHECKOUT_PAYMENT_INITIATED="checkout.payment.initiated",r.CHECKOUT_PAYMENT_FAILED="checkout.payment.failed",r.CHECKOUT_PAYMENT_ERROR="checkout.payment.error",r.CHECKOUT_DISCOUNT_APPLIED="checkout.discount.applied",r.CHECKOUT_DISCOUNT_REMOVED="checkout.discount.removed",r.CHECKOUT_UPSELL_CANCELED="checkout.upsell.canceled"})(q||(q={}));var J;(function(r){r.DAY="day",r.WEEK="week",r.MONTH="month",r.YEAR="year"})(J||(J={}));var X;(function(r){r.ALIPAY="alipay",r.APPLE_PAY="apple-pay",r.CARD="card",r.GOOGLE_PAY="google-pay",r.IDEAL="ideal",r.PAYPAL="paypal",r.WECHAT_PAY="wechat-pay",r.WIRE_TRANSFER="wire-transfer",r.NONE="none"})(X||(X={}));var $;(function(r){r.AMERICAN_EXPRESS="american_express",r.DINERS_CLUB="diners_club",r.DISCOVER="discover",r.JCB="jcb",r.MADA="mada",r.MAESTRO="maestro",r.MASTER_CARD="mastercard",r.UNION_PAY="union_pay",r.VISA="visa",r.UNKNOWN="unknown"})($||($={}));var Q;(function(r){r.DRAFT="draft",r.READY="ready",r.COMPLETED="completed",r.BILLED="billed",r.canceled="canceled",r.PAST_DUE="past_due"})(Q||(Q={}));function _r(r){return G.apply(this,arguments)}function G(){return G=or(N().mark(function r(o){var a,c;return N().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return a=o?.version||rr,d.next=3,vr(a);case 3:if(c=d.sent,!c){d.next=9;break}return o&&(a===_.V1?Or(o,c):a===_.CLASSIC&&Er(o,c)),d.abrupt("return",c);case 9:return console.error("[Paddle] Error Loading Paddle"),d.abrupt("return");case 11:case"end":return d.stop()}},r)})),G.apply(this,arguments)}function br(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rr;if(r===_.V1)return window.PaddleBillingV1;if(r===_.CLASSIC)return window.PaddleClassic;console.error("[Paddle] Unknown Paddle Version")}export{q as CheckoutEventNames,$ as CheckoutEventsPaymentMethodCardTypes,X as CheckoutEventsPaymentMethodTypes,Q as CheckoutEventsStatus,J as CheckoutEventsTimePeriodInterval,br as getPaddleInstance,_r as initializePaddle};
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.