@everymatrix/cashier-receipt-page 1.28.2 → 1.28.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function h(e,t){e.appendChild(t)}function u(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function g(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function T(e){v=e}const H=[],B=[];let _=[];const C=[],A=Promise.resolve();let w=!1;function L(e){_.push(e)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function i(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let s;function a(e,t){return s||(s=document.createElement("a")),s.href=t,e===s.href}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}const c="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function u(e,t){e.appendChild(t)}function h(e,t,n){e.insertBefore(t,n||null)}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e){return document.createElement(e)}function m(e){return document.createTextNode(e)}function d(){return m(" ")}function g(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t){t=""+t,e.data!==t&&(e.data=t)}function E(e){const t={};for(const n of e)t[n.name]=n.value;return t}let v;function T(e){v=e}const H=[],B=[];let _=[];const C=[],A=Promise.resolve();let w=!1;function L(e){_.push(e)}
2
2
  // flush() calls callbacks in this order:
3
3
  // 1. All beforeUpdate callbacks, in order: parents before children
4
4
  // 2. All bind:this callbacks, in reverse order: children before parents.
@@ -39,13 +39,13 @@ P.add(t),t())}_.length=0}while(H.length);for(;C.length;)C.pop()();w=!1,P.clear()
39
39
  */const R=new Set;function O(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];_.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),_=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),
40
40
  // TODO null out other refs, including component.$$ (but need to
41
41
  // preserve final state?)
42
- n.on_destroy=n.fragment=null,n.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),w||(w=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,a,l,c,h,u,f=[-1]){const m=v;T(o);const d=o.$$={fragment:null,ctx:[],
42
+ n.on_destroy=n.fragment=null,n.ctx=[])}function M(e,t){-1===e.$$.dirty[0]&&(H.push(e),w||(w=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,a,l,c,u,h,f=[-1]){const m=v;T(o);const d=o.$$={fragment:null,ctx:[],
43
43
  // state
44
- props:h,update:e,not_equal:c,bound:n(),
44
+ props:u,update:e,not_equal:c,bound:n(),
45
45
  // lifecycle
46
46
  on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(m?m.$$.context:[])),
47
47
  // everything else
48
- callbacks:n(),dirty:f,skip_bound:!1,root:s.target||m.$$.root};u&&u(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return d.ctx&&c(d.ctx[e],d.ctx[e]=r)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](r),g&&M(o,e)),t})):[],d.update(),g=!0,r(d.before_update),
48
+ callbacks:n(),dirty:f,skip_bound:!1,root:s.target||m.$$.root};h&&h(d.root);let g=!1;if(d.ctx=a?a(o,s.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return d.ctx&&c(d.ctx[e],d.ctx[e]=r)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](r),g&&M(o,e)),t})):[],d.update(),g=!0,r(d.before_update),
49
49
  // `false` as a special case of no DOM component
50
50
  d.fragment=!!l&&l(d.ctx),s.target){if(s.hydrate){const e=function(e){return Array.from(e.childNodes)}(s.target);
51
51
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -78,23 +78,23 @@ if(!i(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
78
78
  * @param {StartStopNotifier=} start
79
79
  */
80
80
  function G(t,n=e){let r;const i=new Set;function s(e){if(o(t,e)&&(t=e,r)){// store is ready
81
- const e=!D.length;for(const e of i)e[1](),D.push(e,t);if(e){for(let e=0;e<D.length;e+=2)D[e][0](D[e+1]);D.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return i.add(l),1===i.size&&(r=n(s)||e),o(t),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function $(t,n,o){const s=!Array.isArray(t),a=s?[t]:t,c=n.length<2;return h=t=>{let o=!1;const h=[];let u=0,p=e;const f=()=>{if(u)return;p();const r=n(s?h[0]:h,t);c?t(r):p=i(r)?r:e},m=a.map(((e,t)=>l(e,(e=>{h[t]=e,u&=~(1<<t),o&&f()}),(()=>{u|=1<<t}))));return o=!0,f(),function(){r(m),p(),
81
+ const e=!D.length;for(const e of i)e[1](),D.push(e,t);if(e){for(let e=0;e<D.length;e+=2)D[e][0](D[e+1]);D.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const l=[o,a];return i.add(l),1===i.size&&(r=n(s)||e),o(t),()=>{i.delete(l),0===i.size&&r&&(r(),r=null)}}}}function k(t,n,o){const s=!Array.isArray(t),a=s?[t]:t,c=n.length<2;return u=t=>{let o=!1;const u=[];let h=0,p=e;const f=()=>{if(h)return;p();const r=n(s?u[0]:u,t);c?t(r):p=i(r)?r:e},m=a.map(((e,t)=>l(e,(e=>{u[t]=e,h&=~(1<<t),o&&f()}),(()=>{h|=1<<t}))));return o=!0,f(),function(){r(m),p(),
82
82
  // We need to set this to false because callbacks can still happen despite having unsubscribed:
83
83
  // Callbacks might already be placed in the queue which doesn't know it should no longer
84
84
  // invoke this derived store.
85
- o=!1}},{subscribe:G(o,h).subscribe};var h}var k=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===F}(e)}
85
+ o=!1}},{subscribe:G(o,u).subscribe};var u}var $=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===F}(e)}
86
86
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
87
87
  (e)};var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function j(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Y((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function V(e,t,n){return e.concat(t).map((function(e){return j(e,n)}))}function X(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function K(e,t){try{return t in e}catch(e){return!1}}
88
88
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
89
89
  function z(e,t,n){var r={};return n.isMergeableObject(e)&&X(e).forEach((function(t){r[t]=j(e[t],n)})),X(t).forEach((function(i){(function(e,t){return K(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
90
- })(e,i)||(K(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return Y;var n=t.customMerge(e);return"function"==typeof n?n:Y}(i,n)(e[i],t[i],n):r[i]=j(t[i],n))})),r}function Y(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||V,n.isMergeableObject=n.isMergeableObject||k,
90
+ })(e,i)||(K(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return Y;var n=t.customMerge(e);return"function"==typeof n?n:Y}(i,n)(e[i],t[i],n):r[i]=j(t[i],n))})),r}function Y(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||V,n.isMergeableObject=n.isMergeableObject||$,
91
91
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
92
92
  // implementations can use it. The caller may not replace it.
93
93
  n.cloneUnlessOtherwiseSpecified=j;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):z(e,t,n):j(t,n)}Y.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Y(e,n,t)}),{})};var Z=Y,W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},W(e,t)};function Q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var q,J,ee,te=function(){return te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},te.apply(this,arguments)};function ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
94
94
  /**
95
95
  * Type Guards
96
96
  */
97
- function re(e){return e.type===J.literal}function ie(e){return e.type===J.argument}function oe(e){return e.type===J.number}function se(e){return e.type===J.date}function ae(e){return e.type===J.time}function le(e){return e.type===J.select}function ce(e){return e.type===J.plural}function he(e){return e.type===J.pound}function ue(e){return e.type===J.tag}function pe(e){return!(!e||"object"!=typeof e||e.type!==ee.number)}function fe(e){return!(!e||"object"!=typeof e||e.type!==ee.dateTime)}
97
+ function re(e){return e.type===J.literal}function ie(e){return e.type===J.argument}function oe(e){return e.type===J.number}function se(e){return e.type===J.date}function ae(e){return e.type===J.time}function le(e){return e.type===J.select}function ce(e){return e.type===J.plural}function ue(e){return e.type===J.pound}function he(e){return e.type===J.tag}function pe(e){return!(!e||"object"!=typeof e||e.type!==ee.number)}function fe(e){return!(!e||"object"!=typeof e||e.type!==ee.dateTime)}
98
98
  // @generated from regex-gen.ts
99
99
  "function"==typeof SuppressedError&&SuppressedError,function(e){
100
100
  /** Argument is unclosed (e.g. `{0`) */
@@ -289,14 +289,14 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
289
289
  var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Le[n||""]||Le[r||""]||Le["".concat(r,"-001")]||Le["001"])[0]}var Se=new RegExp("^".concat(me.source,"*")),Ie=new RegExp("".concat(me.source,"*$"));function Ne(e,t){return{start:e,end:t}}
290
290
  // #region Ponyfills
291
291
  // Consolidate these variables up top for easier toggling during debugging
292
- var Re=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,Me=!!Object.fromEntries,Ue=!!String.prototype.codePointAt,xe=!!String.prototype.trimStart,De=!!String.prototype.trimEnd,Ge=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$e=!0;try{
292
+ var Re=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,Me=!!Object.fromEntries,Ue=!!String.prototype.codePointAt,xe=!!String.prototype.trimStart,De=!!String.prototype.trimEnd,Ge=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{
293
293
  /**
294
294
  * legacy Edge or Xbox One browser
295
295
  * Unicode flag support: supported
296
296
  * Pattern_Syntax support: not supported
297
297
  * See https://github.com/formatjs/formatjs/issues/2822
298
298
  */
299
- $e="a"===(null===(we=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===we?void 0:we[0])}catch(e){$e=!1}var ke,Fe=Re?// Native
299
+ ke="a"===(null===(we=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===we?void 0:we[0])}catch(e){ke=!1}var $e,Fe=Re?// Native
300
300
  function(e,t,n){return e.startsWith(t,n)}:// For IE11
301
301
  function(e,t,n){return e.slice(n,n+t.length)===t},je=Oe?String.fromCodePoint:// IE11
302
302
  function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},Ve=
@@ -312,11 +312,11 @@ function(e){return e.replace(Ie,"")};
312
312
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
313
313
  function Ye(e,t){return new RegExp(e,t)}
314
314
  // #endregion
315
- if($e){
315
+ if(ke){
316
316
  // Native
317
- var Ze=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ke=function(e,t){var n;return Ze.lastIndex=t,null!==(n=Ze.exec(e)[1])&&void 0!==n?n:""}}else
317
+ var Ze=Ye("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var n;return Ze.lastIndex=t,null!==(n=Ze.exec(e)[1])&&void 0!==n?n:""}}else
318
318
  // IE11
319
- ke=function(e,t){for(var n=[];;){var r=Xe(e,t);if(void 0===r||qe(r)||Je(r))break;n.push(r),t+=r>=65536?2:1}return je.apply(void 0,n)};var We=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(q.UNMATCHED_CLOSING_TAG,Ne(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Qe(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:J.pound,location:Ne(s,this.clonePosition())})}}}return{val:r,err:null}},
319
+ $e=function(e,t){for(var n=[];;){var r=Xe(e,t);if(void 0===r||qe(r)||Je(r))break;n.push(r),t+=r>=65536?2:1}return je.apply(void 0,n)};var We=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(q.UNMATCHED_CLOSING_TAG,Ne(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Qe(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var s=this.clonePosition();this.bump(),r.push({type:J.pound,location:Ne(s,this.clonePosition())})}}}return{val:r,err:null}},
320
320
  /**
321
321
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
322
322
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -383,7 +383,7 @@ this.bumpSpace(),this.isEOF()?this.error(q.EXPECT_ARGUMENT_CLOSING_BRACE,Ne(n,th
383
383
  * Advance the parser until the end of the identifier, if it is currently on
384
384
  * an identifier character. Return an empty string otherwise.
385
385
  */
386
- e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ke(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ne(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
386
+ e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$e(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Ne(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
387
387
  // Parse this range:
388
388
  // {name, type, style}
389
389
  // ^---^
@@ -393,17 +393,17 @@ return this.error(q.EXPECT_ARGUMENT_TYPE,Ne(o,a));case"number":case"date":case"t
393
393
  // Parse this range:
394
394
  // {name, number, style}
395
395
  // ^-------^
396
- this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=ze(b.val)).length)return this.error(q.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ne(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var h=Ne(r,this.clonePosition());
396
+ this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(f=ze(b.val)).length)return this.error(q.EXPECT_ARGUMENT_STYLE,Ne(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ne(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var u=Ne(r,this.clonePosition());
397
397
  // Extract style or skeleton
398
398
  if(l&&Fe(null==l?void 0:l.style,"::",0)){
399
399
  // Skeleton starts with `::`.
400
- var u=Ke(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?b:{val:{type:J.number,value:n,location:h,style:b.val},err:null};if(0===u.length)return this.error(q.EXPECT_DATE_TIME_SKELETON,h);var p=u;
400
+ var h=Ke(l.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?b:{val:{type:J.number,value:n,location:u,style:b.val},err:null};if(0===h.length)return this.error(q.EXPECT_DATE_TIME_SKELETON,u);var p=h;
401
401
  // Get "best match" pattern only if locale is passed, if not, let it
402
402
  // pass as-is where `parseDateTimeSkeleton()` will throw an error
403
403
  // for unsupported patterns.
404
- this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Pe(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(u,this.locale));var f={type:ee.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ge(p):{}};return{val:{type:"date"===s?J.date:J.time,value:n,location:h,style:f},err:null}}
404
+ this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Pe(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)n+="a";for(;s-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(h,this.locale));var f={type:ee.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ge(p):{}};return{val:{type:"date"===s?J.date:J.time,value:n,location:u,style:f},err:null}}
405
405
  // Regular style or no style.
406
- return{val:{type:"number"===s?J.number:"date"===s?J.date:J.time,value:n,location:h,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
406
+ return{val:{type:"number"===s?J.number:"date"===s?J.date:J.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
407
407
  // Parse this range:
408
408
  // {name, plural, options}
409
409
  // ^---------^
@@ -442,9 +442,9 @@ e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){
442
442
  // Parse:
443
443
  // one {one apple}
444
444
  // ^--^
445
- for(var i,o=!1,s=[],a=new Set,l=r.value,c=r.location;;){if(0===l.length){var h=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
445
+ for(var i,o=!1,s=[],a=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;
446
446
  // Try parse `={number}` selector
447
- var u=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;c=Ne(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}
447
+ var h=this.tryParseDecimalInteger(q.EXPECT_PLURAL_ARGUMENT_SELECTOR,q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=Ne(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}
448
448
  // Duplicate selector clauses
449
449
  if(a.has(l))return this.error("select"===t?q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),
450
450
  // Parse:
@@ -503,7 +503,7 @@ function qe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||
503
503
  /**
504
504
  * Code point equivalent of regex `\p{Pattern_Syntax}`.
505
505
  * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt
506
- */function Je(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function et(e){e.forEach((function(e){if(delete e.location,le(e)||ce(e))for(var t in e.options)delete e.options[t].location,et(e.options[t].value);else oe(e)&&pe(e.style)||(se(e)||ae(e))&&fe(e.style)?delete e.style.location:ue(e)&&et(e.children)}))}function tt(e,t){void 0===t&&(t={}),t=te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new We(e,t).parse();if(n.err){var r=SyntaxError(q[n.err.kind]);
506
+ */function Je(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function et(e){e.forEach((function(e){if(delete e.location,le(e)||ce(e))for(var t in e.options)delete e.options[t].location,et(e.options[t].value);else oe(e)&&pe(e.style)||(se(e)||ae(e))&&fe(e.style)?delete e.style.location:he(e)&&et(e.children)}))}function tt(e,t){void 0===t&&(t={}),t=te({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new We(e,t).parse();if(n.err){var r=SyntaxError(q[n.err.kind]);
507
507
  // @ts-expect-error Assign to error object
508
508
  throw r.location=n.err.location,
509
509
  // @ts-expect-error Assign to error object
@@ -511,7 +511,7 @@ r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||et(n
511
511
 
512
512
  // Main
513
513
 
514
- function nt(e,t){var n=t&&t.cache?t.cache:ht,r=t&&t.serializer?t.serializer:at;return(t&&t.strategy?t.strategy:st)(e,{cache:n,serializer:r})}
514
+ function nt(e,t){var n=t&&t.cache?t.cache:ut,r=t&&t.serializer?t.serializer:at;return(t&&t.strategy?t.strategy:st)(e,{cache:n,serializer:r})}
515
515
 
516
516
  // Strategy
517
517
 
@@ -521,9 +521,9 @@ var at=function(){return JSON.stringify(arguments)};
521
521
 
522
522
  // Cache
523
523
 
524
- function lt(){this.cache=Object.create(null)}lt.prototype.get=function(e){return this.cache[e]},lt.prototype.set=function(e,t){this.cache[e]=t};var ct,ht={create:function(){
524
+ function lt(){this.cache=Object.create(null)}lt.prototype.get=function(e){return this.cache[e]},lt.prototype.set=function(e,t){this.cache[e]=t};var ct,ut={create:function(){
525
525
  // @ts-ignore
526
- return new lt}},ut={variadic:function(e,t){return ot(e,this,it,t.cache.create(),t.serializer)},monadic:function(e,t){return ot(e,this,rt,t.cache.create(),t.serializer)}};!function(e){
526
+ return new lt}},ht={variadic:function(e,t){return ot(e,this,it,t.cache.create(),t.serializer)},monadic:function(e,t){return ot(e,this,rt,t.cache.create(),t.serializer)}};!function(e){
527
527
  // When we have a placeholder but no value to format
528
528
  e.MISSING_VALUE="MISSING_VALUE",
529
529
  // When value supplied is invalid
@@ -535,18 +535,18 @@ function yt(e,t,n,r,i,o,
535
535
  // For debugging
536
536
  s){
537
537
  // Hot path for straight simple msg translations
538
- if(1===e.length&&re(e[0]))return[{type:pt.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var h=c[l];
538
+ if(1===e.length&&re(e[0]))return[{type:pt.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];
539
539
  // Exit early for string parts.
540
- if(re(h))a.push({type:pt.literal,value:h.value});else
540
+ if(re(u))a.push({type:pt.literal,value:u.value});else
541
541
  // TODO: should this part be literal type?
542
542
  // Replace `#` in plural rules with the actual numeric value.
543
- if(he(h))"number"==typeof o&&a.push({type:pt.literal,value:n.getNumberFormat(t).format(o)});else{var u=h.value;
543
+ if(ue(u))"number"==typeof o&&a.push({type:pt.literal,value:n.getNumberFormat(t).format(o)});else{var h=u.value;
544
544
  // Enforce that all required values are provided by the caller.
545
- if(!i||!(u in i))throw new gt(u,s);var p=i[u];if(ie(h))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?pt.literal:pt.object,value:p});else
545
+ if(!i||!(h in i))throw new gt(h,s);var p=i[h];if(ie(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?pt.literal:pt.object,value:p});else
546
546
  // Recursively format plural and select parts' option — which can be a
547
547
  // nested pattern structure. The choosing of the option to use is
548
548
  // abstracted-by and delegated-to the part helper object.
549
- if(se(h)){var f="string"==typeof h.style?r.date[h.style]:fe(h.style)?h.style.parsedOptions:void 0;a.push({type:pt.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(ae(h)){f="string"==typeof h.style?r.time[h.style]:fe(h.style)?h.style.parsedOptions:r.time.medium;a.push({type:pt.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(oe(h)){(f="string"==typeof h.style?r.number[h.style]:pe(h.style)?h.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:pt.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(ue(h)){var m=h.children,d=h.value,g=i[d];if(!bt(g))throw new dt(d,"function",s);var b=g(yt(m,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?pt.literal:pt.object,value:e}})))}if(le(h)){if(!(y=h.options[p]||h.options.other))throw new mt(h.value,p,Object.keys(h.options),s);a.push.apply(a,yt(y.value,t,n,r,i))}else if(ce(h)){var y;if(!(y=h.options["=".concat(p)])){if(!Intl.PluralRules)throw new ft('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ct.MISSING_INTL_API,s);var E=n.getPluralRules(t,{type:h.pluralType}).select(p-(h.offset||0));y=h.options[E]||h.options.other}if(!y)throw new mt(h.value,p,Object.keys(h.options),s);a.push.apply(a,yt(y.value,t,n,r,i,p-(h.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===pt.literal&&t.type===pt.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
549
+ if(se(u)){var f="string"==typeof u.style?r.date[u.style]:fe(u.style)?u.style.parsedOptions:void 0;a.push({type:pt.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(ae(u)){f="string"==typeof u.style?r.time[u.style]:fe(u.style)?u.style.parsedOptions:r.time.medium;a.push({type:pt.literal,value:n.getDateTimeFormat(t,f).format(p)})}else if(oe(u)){(f="string"==typeof u.style?r.number[u.style]:pe(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(p*=f.scale||1),a.push({type:pt.literal,value:n.getNumberFormat(t,f).format(p)})}else{if(he(u)){var m=u.children,d=u.value,g=i[d];if(!bt(g))throw new dt(d,"function",s);var b=g(yt(m,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),a.push.apply(a,b.map((function(e){return{type:"string"==typeof e?pt.literal:pt.object,value:e}})))}if(le(u)){if(!(y=u.options[p]||u.options.other))throw new mt(u.value,p,Object.keys(u.options),s);a.push.apply(a,yt(y.value,t,n,r,i))}else if(ce(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new ft('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ct.MISSING_INTL_API,s);var E=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[E]||u.options.other}if(!y)throw new mt(u.value,p,Object.keys(u.options),s);a.push.apply(a,yt(y.value,t,n,r,i,p-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===pt.literal&&t.type===pt.literal?n.value+=t.value:e.push(t),e}),[])}(a)}
550
550
  /*
551
551
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
552
552
  Copyrights licensed under the New BSD License.
@@ -562,35 +562,35 @@ this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(thi
562
562
  this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
563
563
  // Creates a new object with the specified `formats` merged with the default
564
564
  // formats.
565
- this.formats=Et(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ne([void 0],t,!1)))}),{cache:vt(o.number),strategy:ut.variadic}),getDateTimeFormat:nt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ne([void 0],t,!1)))}),{cache:vt(o.dateTime),strategy:ut.variadic}),getPluralRules:nt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ne([void 0],t,!1)))}),{cache:vt(o.pluralRules),strategy:ut.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=tt,
565
+ this.formats=Et(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:nt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,ne([void 0],t,!1)))}),{cache:vt(o.number),strategy:ht.variadic}),getDateTimeFormat:nt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,ne([void 0],t,!1)))}),{cache:vt(o.dateTime),strategy:ht.variadic}),getPluralRules:nt((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,ne([void 0],t,!1)))}),{cache:vt(o.pluralRules),strategy:ht.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=tt,
566
566
  // Default format options used as the prototype of the `formats` provided to the
567
567
  // constructor. These are used when constructing the internal Intl.NumberFormat
568
568
  // and Intl.DateTimeFormat instances.
569
- e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ht={},Bt=(e,t,n)=>n?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=n),n):n,_t=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const n=Zt(t);for(let r=0;r<n.length;r++){const i=Lt(n[r],e);if(i)return Bt(e,t,i)}};let Ct;const At=G({});function wt(e){return e in Ct}function Lt(e,t){if(!wt(e))return null;const n=function(e){return Ct[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Pt(e,...t){delete Ht[e],At.update((n=>(n[e]=Z.all([n[e]||{},...t]),n)))}$([At],(([e])=>Object.keys(e))),At.subscribe((e=>Ct=e));const St={};function It(e){return St[e]}function Nt(e){return null!=e&&Zt(e).some((e=>{var t;return null==(t=It(e))?void 0:t.size}))}function Rt(e,t){const n=Promise.all(t.map((t=>(function(e,t){St[e].delete(t),0===St[e].size&&delete St[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Pt(e,...t)))}const Ot={};function Mt(e){if(!Nt(e))return e in Ot?Ot[e]:Promise.resolve();const t=function(e){return Zt(e).map((e=>{const t=It(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ot[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(Nt(e))return Mt(e);delete Ot[e]})),Ot[e]}const Ut={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function xt(){return Ut}const Dt=G(!1);var Gt=Object.defineProperty,$t=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Kt;const zt=G(null);function Yt(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Zt(e,t=xt().fallbackLocale){const n=Yt(e);return t?[...new Set([...n,...Yt(t)])]:n}function Wt(){return null!=Kt?Kt:void 0}zt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(qt=((e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&Xt(e,n,t[n]);if(Ft)for(var n of Ft(t))Vt.call(t,n)&&Xt(e,n,t[n]);return e})({},zt),$t(qt,kt({set:e=>{if(e&&function(e){if(null==e)return;const t=Zt(e);for(let e=0;e<t.length;e++){const n=t[e];if(wt(n))return n}}(e)&&Nt(e)){const{loadingDelay:t}=xt();let n;return"undefined"!=typeof window&&null!=Wt()&&t?n=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Mt(e).then((()=>{zt.set(e)})).finally((()=>{clearTimeout(n),Dt.set(!1)}))}return zt.set(e)}})));var qt;const Jt=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var en=Object.defineProperty,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,on=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sn=(e,t)=>{for(var n in t||(t={}))nn.call(t,n)&&on(e,n,t[n]);if(tn)for(var n of tn(t))rn.call(t,n)&&on(e,n,t[n]);return e},an=(e,t)=>{var n={};for(var r in e)nn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&tn)for(var r of tn(e))t.indexOf(r)<0&&rn.call(e,r)&&(n[r]=e[r]);return n};const ln=(e,t)=>{const{formats:n}=xt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cn=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=ln("number",r)),new Intl.NumberFormat(n,i)})),hn=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=ln("date",r):0===Object.keys(i).length&&(i=ln("date","short")),new Intl.DateTimeFormat(n,i)})),un=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=ln("time",r):0===Object.keys(i).length&&(i=ln("time","short")),new Intl.DateTimeFormat(n,i)})),pn=Jt((
569
+ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ht={},Bt=(e,t,n)=>n?(t in Ht||(Ht[t]={}),e in Ht[t]||(Ht[t][e]=n),n):n,_t=(e,t)=>{if(null==t)return;if(t in Ht&&e in Ht[t])return Ht[t][e];const n=Zt(t);for(let r=0;r<n.length;r++){const i=Lt(n[r],e);if(i)return Bt(e,t,i)}};let Ct;const At=G({});function wt(e){return e in Ct}function Lt(e,t){if(!wt(e))return null;const n=function(e){return Ct[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Pt(e,...t){delete Ht[e],At.update((n=>(n[e]=Z.all([n[e]||{},...t]),n)))}k([At],(([e])=>Object.keys(e))),At.subscribe((e=>Ct=e));const St={};function It(e){return St[e]}function Nt(e){return null!=e&&Zt(e).some((e=>{var t;return null==(t=It(e))?void 0:t.size}))}function Rt(e,t){const n=Promise.all(t.map((t=>(function(e,t){St[e].delete(t),0===St[e].size&&delete St[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Pt(e,...t)))}const Ot={};function Mt(e){if(!Nt(e))return e in Ot?Ot[e]:Promise.resolve();const t=function(e){return Zt(e).map((e=>{const t=It(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ot[e]=Promise.all(t.map((([e,t])=>Rt(e,t)))).then((()=>{if(Nt(e))return Mt(e);delete Ot[e]})),Ot[e]}const Ut={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function xt(){return Ut}const Dt=G(!1);var Gt=Object.defineProperty,kt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Xt=(e,t,n)=>t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Kt;const zt=G(null);function Yt(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Zt(e,t=xt().fallbackLocale){const n=Yt(e);return t?[...new Set([...n,...Yt(t)])]:n}function Wt(){return null!=Kt?Kt:void 0}zt.subscribe((e=>{Kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Qt=(qt=((e,t)=>{for(var n in t||(t={}))jt.call(t,n)&&Xt(e,n,t[n]);if(Ft)for(var n of Ft(t))Vt.call(t,n)&&Xt(e,n,t[n]);return e})({},zt),kt(qt,$t({set:e=>{if(e&&function(e){if(null==e)return;const t=Zt(e);for(let e=0;e<t.length;e++){const n=t[e];if(wt(n))return n}}(e)&&Nt(e)){const{loadingDelay:t}=xt();let n;return"undefined"!=typeof window&&null!=Wt()&&t?n=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Mt(e).then((()=>{zt.set(e)})).finally((()=>{clearTimeout(n),Dt.set(!1)}))}return zt.set(e)}})));var qt;const Jt=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var en=Object.defineProperty,tn=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,on=(e,t,n)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sn=(e,t)=>{for(var n in t||(t={}))nn.call(t,n)&&on(e,n,t[n]);if(tn)for(var n of tn(t))rn.call(t,n)&&on(e,n,t[n]);return e},an=(e,t)=>{var n={};for(var r in e)nn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&tn)for(var r of tn(e))t.indexOf(r)<0&&rn.call(e,r)&&(n[r]=e[r]);return n};const ln=(e,t)=>{const{formats:n}=xt();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cn=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=ln("number",r)),new Intl.NumberFormat(n,i)})),un=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=ln("date",r):0===Object.keys(i).length&&(i=ln("date","short")),new Intl.DateTimeFormat(n,i)})),hn=Jt((e=>{var t=e,{locale:n,format:r}=t,i=an(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=ln("time",r):0===Object.keys(i).length&&(i=ln("time","short")),new Intl.DateTimeFormat(n,i)})),pn=Jt((
570
570
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
571
- (e,t=Wt())=>new Tt(e,t,xt().formats,{ignoreTag:xt().ignoreTag}))),fn=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Wt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=_t(e,l);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!=(o=null!=(i=null==(r=(n=xt()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return h;let u=h;try{u=pn(h,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},mn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return un(sn({locale:n},r))})(t).format(e),dn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return hn(sn({locale:n},r))})(t).format(e),gn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return cn(sn({locale:n},r))})(t).format(e),bn=(e,t=Wt())=>_t(e,t),yn=$([Qt,At],(()=>fn));function En(e,t){Pt(e,t)}$([Qt],(()=>mn)),$([Qt],(()=>dn)),$([Qt],(()=>gn)),$([Qt,At],(()=>bn));const vn={en:{deposit:{success:{title:"{amount} {currency}",subTitle:"Deposited in your account",text:"Your deposit is successful"},pending:{title:"{amount} {currency}",subTitle:"Transaction is in progress",text:"Thank you. Your deposit is being processed."},reject:{title:"Deposit Rejected",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:"{errorText}"}},withdrawal:{success:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Your withdrawal is successful"},pending:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdrawal Rejected",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:"{errorText}"}},reference:"Reference ID: {code}",close:"BACK TO MERCHANT"}},Tn={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png","Pending Approval III":"/txn-pending.png","Pending Confirmation":"/txn-pending.png","Pending Approval I":"/txn-pending.png","Pending Offline Notification":"/txn-pending.png","Pending Approval II":"/txn-pending.png"},Hn={Deposit:"deposit",Withdraw:"withdrawal"},Bn={Success:"success",Voided:"success",PendingNotification:"pending","Pending Approval III":"pending","Pending Confirmation":"pending","Pending Approval I":"pending","Pending Offline Notification":"pending","Pending Approval II":"pending",Rejected:"reject",Failed:"fail",Canceled:"cancel"},{document:_n}=c;function Cn(e,t,n){const r=e.slice();return r[32]=t[n],r[34]=n,r}
572
- // (168:5) {#if txnInfo}
573
- function An(e){let t,n,i,o,s,l,c,E,v,T,H,B,_,C,A,w,L,P,S,I,N,R,O,M,U,x=/*$_*/e[9]("close")+"",D=/*txnInfo*/e[2].referenceId&&wn(e),G=/*receiptFields*/e[3].length&&Ln(e);return{c(){t=f("div"),n=f("span"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.33279 0.00663425C7.89688 0.105453 6.49895 0.511564 5.2336 1.19749C3.96825 1.88341 2.86499 2.83313 1.9985 3.9824C0.985792 5.31809 0.356137 6.84155 0.0769857 8.63039C-0.0256619 9.28509 -0.0256619 10.7147 0.0769857 11.3694C0.505101 14.1158 1.83326 16.3704 3.9851 18.0027C5.31451 19.0117 6.84672 19.6451 8.63053 19.923C9.28522 20.0257 10.7148 20.0257 11.3695 19.923C13.803 19.5437 15.8709 18.4471 17.4232 16.7121C18.8001 15.1736 19.595 13.4737 19.923 11.3694C20.0257 10.7147 20.0257 9.28509 19.923 8.63039C19.6451 6.84655 19.0117 5.31433 18.0028 3.9849C17.1973 2.91304 16.1846 2.01398 15.0249 1.34112C13.8652 0.668249 12.5821 0.235297 11.2518 0.0679732C10.614 0.00852964 9.97311 -0.0119547 9.33279 0.00663425ZM11.3019 1.33481C14.7956 1.87685 17.641 4.45559 18.4885 7.848C18.69 8.65292 18.7288 9.00343 18.7288 9.99988C18.7288 10.6946 18.715 10.97 18.6675 11.2855C18.4018 13.0557 17.6016 14.7024 16.374 16.0052C15.1464 17.308 13.5501 18.2045 11.7988 18.5748C10.686 18.8127 9.31401 18.8127 8.20117 18.5748C4.93272 17.8788 2.33398 15.3927 1.52156 12.1868C1.31126 11.3556 1.2712 11.0101 1.2712 9.99988C1.2712 8.98966 1.31126 8.64416 1.52156 7.81295C1.91376 6.29839 2.70396 4.91631 3.81023 3.81003C4.9165 2.70374 6.29856 1.91353 7.81311 1.52133C8.0885 1.45123 8.49409 1.36986 8.7144 1.34107L9.21512 1.27347C9.46673 1.23967 10.9689 1.28349 11.3019 1.33481ZM9.5481 5.25925C8.67685 5.35439 7.88821 5.8138 7.33116 6.54987C7.12462 6.82277 7.042 7.06437 7.09332 7.25339C7.17594 7.56009 7.55398 7.71781 7.87945 7.58262C7.94079 7.55633 8.16236 7.36355 8.37016 7.15325C8.79201 6.72763 8.99981 6.59995 9.41541 6.51232C10.5533 6.27197 11.541 6.85532 11.596 7.79918C11.6086 8.02326 11.5998 8.08084 11.5259 8.24107C11.3632 8.59659 11.0177 8.88826 10.5095 9.09982C10.1439 9.24341 9.76155 9.33975 9.3716 9.38649L9.1275 9.40902L9.13876 10.5306L9.14878 11.6523L9.23265 11.8025C9.42542 12.1517 9.96745 12.2118 10.2378 11.9152C10.3793 11.7587 10.4056 11.6247 10.4256 10.9638L10.4431 10.3416L10.6635 10.2815C12.1518 9.88095 13.1433 8.66669 12.973 7.44993C12.8579 6.62248 12.3709 5.96027 11.586 5.56845C11.0778 5.31433 10.2278 5.18539 9.5481 5.25925ZM9.37285 13.0568C9.06365 13.2108 8.90092 13.4799 8.89967 13.8404C8.89717 14.6003 9.77342 15.0071 10.3405 14.5089C10.4789 14.3866 10.576 14.2244 10.6186 14.0447C10.6612 13.8649 10.6471 13.6764 10.5783 13.505C10.3755 13.0493 9.81098 12.839 9.37285 13.0568Z" fill="#111111"></path></svg>',i=d(),o=f("span"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',s=d(),l=f("div"),c=f("img"),v=d(),T=f("div"),H=f("h2"),B=m(/*title*/e[5]),_=d(),C=f("div"),A=m(/*subTitle*/e[4]),w=d(),L=f("div"),P=m(/*text*/e[6]),S=d(),D&&D.c(),I=d(),G&&G.c(),N=d(),R=f("button"),O=m(x),b(t,"class","HeaderButtonContainer"),a(c.src,E=/*statusImageUrl*/e[7])||b(c,"src",E),b(c,"class","StatusLogo"),b(H,"class","Title"),b(C,"class","SubTitle"),b(T,"class","TitleWrapper"),b(l,"class","ReceiptWrapper"),b(L,"class","Text"),b(R,"class","PrimaryButton")},m(r,a){u(r,t,a),h(t,n),h(t,i),h(t,o),u(r,s,a),u(r,l,a),h(l,c),h(l,v),h(l,T),h(T,H),h(H,B),h(T,_),h(T,C),h(C,A),u(r,w,a),u(r,L,a),h(L,P),u(r,S,a),D&&D.m(r,a),u(r,I,a),G&&G.m(r,a),u(r,N,a),u(r,R,a),h(R,O),M||(U=[g(n,"click",/*liveChat*/e[11]),g(o,"click",/*closeReceipt*/e[10]),g(R,"click",/*closeReceipt*/e[10])],M=!0)},p(e,t){/*statusImageUrl*/128&t[0]&&!a(c.src,E=/*statusImageUrl*/e[7])&&b(c,"src",E),/*title*/32&t[0]&&y(B,/*title*/e[5]),/*subTitle*/16&t[0]&&y(A,/*subTitle*/e[4]),/*text*/64&t[0]&&y(P,/*text*/e[6]),/*txnInfo*/e[2].referenceId?D?D.p(e,t):(D=wn(e),D.c(),D.m(I.parentNode,I)):D&&(D.d(1),D=null),/*receiptFields*/e[3].length?G?G.p(e,t):(G=Ln(e),G.c(),G.m(N.parentNode,N)):G&&(G.d(1),G=null),/*$_*/512&t[0]&&x!==(x=/*$_*/e[9]("close")+"")&&y(O,x)},d(e){e&&p(t),e&&p(s),e&&p(l),e&&p(w),e&&p(L),e&&p(S),D&&D.d(e),e&&p(I),G&&G.d(e),e&&p(N),e&&p(R),M=!1,r(U)}}}
574
- // (189:7) {#if txnInfo.referenceId}
575
- function wn(e){let t,n,r=/*$_*/e[9]("reference",{values:{code:/*txnInfo*/e[2].referenceId}})+"";return{c(){t=f("div"),n=m(r),b(t,"class","Reference")},m(e,r){u(e,t,r),h(t,n)},p(e,t){/*$_, txnInfo*/516&t[0]&&r!==(r=/*$_*/e[9]("reference",{values:{code:/*txnInfo*/e[2].referenceId}})+"")&&y(n,r)},d(e){e&&p(t)}}}
576
- // (192:7) {#if receiptFields.length}
577
- function Ln(e){let t,n=/*receiptFields*/e[3],r=[];for(let t=0;t<n.length;t+=1)r[t]=On(Cn(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=m("")},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);u(e,t,n)},p(e,i){if(/*openUrlInNewTab, receiptFields, qrCodeContainer, FieldTypes*/4362&i[0]){let o;for(n=/*receiptFields*/e[3],o=0;o<n.length;o+=1){const s=Cn(e,n,o);r[o]?r[o].p(s,i):(r[o]=On(s),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(r,e),e&&p(t)}}}
578
- // (209:17) {:else}
579
- function Pn(e){let t,n,r=/*field*/e[32].defaultValue+"";return{c(){t=f("span"),n=m(r),b(t,"class","Label")},m(e,r){u(e,t,r),h(t,n)},p(e,t){/*receiptFields*/8&t[0]&&r!==(r=/*field*/e[32].defaultValue+"")&&y(n,r)},d(e){e&&p(t)}}}
580
- // (203:58)
581
- function Sn(e){let t,n,r,i,o,s,a=/*field*/e[32].description+"",l=/*field*/e[32].Name+"";return{c(){t=f("span"),n=m(a),r=d(),i=f("a"),o=m(l),b(i,"href",s=/*field*/e[32].defaultValue),b(i,"target","_blank"),b(i,"rel","noopener noreferrer")},m(e,s){u(e,t,s),h(t,n),h(t,r),h(t,i),h(i,o)},p(e,t){/*receiptFields*/8&t[0]&&a!==(a=/*field*/e[32].description+"")&&y(n,a),/*receiptFields*/8&t[0]&&l!==(l=/*field*/e[32].Name+"")&&y(o,l),/*receiptFields*/8&t[0]&&s!==(s=/*field*/e[32].defaultValue)&&b(i,"href",s)},d(e){e&&p(t)}}}
582
- // (201:59)
583
- function In(e){let t,n,r;return{c(){t=f("img"),a(t.src,n=/*field*/e[32].defaultValue)||b(t,"src",n),b(t,"title",r=/*field*/e[32].description),b(t,"alt","")},m(e,n){u(e,t,n)},p(e,i){/*receiptFields*/8&i[0]&&!a(t.src,n=/*field*/e[32].defaultValue)&&b(t,"src",n),/*receiptFields*/8&i[0]&&r!==(r=/*field*/e[32].description)&&b(t,"title",r)},d(e){e&&p(t)}}}
584
- // (199:58)
585
- function Nn(e){let t,n=/*field*/e[32].defaultValue+"";return{c(){t=f("span")},m(e,r){u(e,t,r),t.innerHTML=n},p(e,r){/*receiptFields*/8&r[0]&&n!==(n=/*field*/e[32].defaultValue+"")&&(t.innerHTML=n)},d(e){e&&p(t)}}}
586
- // (195:17) {#if field.type === FieldTypes.QRCode}
587
- function Rn(e){let t,n,r,i,o,s=/*field*/e[32].defaultValue+"";function a(){/*click_handler*/
588
- return e[22](/*field*/e[32])}return{c(){t=f("div"),n=f("div"),r=m(s),b(t,"class","QRCode")},m(s,l){u(s,t,l),h(t,n),h(n,r),
589
- /*div0_binding*/e[21](n),i||(o=g(t,"click",a),i=!0)},p(t,n){e=t,/*receiptFields*/8&n[0]&&s!==(s=/*field*/e[32].defaultValue+"")&&y(r,s)},d(n){n&&p(t)
571
+ (e,t=Wt())=>new Tt(e,t,xt().formats,{ignoreTag:xt().ignoreTag}))),fn=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Wt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=_t(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=xt()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=pn(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},mn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return hn(sn({locale:n},r))})(t).format(e),dn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return un(sn({locale:n},r))})(t).format(e),gn=(e,t)=>((e={})=>{var t=e,{locale:n=Wt()}=t,r=an(t,["locale"]);return cn(sn({locale:n},r))})(t).format(e),bn=(e,t=Wt())=>_t(e,t),yn=k([Qt,At],(()=>fn));function En(e,t){Pt(e,t)}k([Qt],(()=>mn)),k([Qt],(()=>dn)),k([Qt],(()=>gn)),k([Qt,At],(()=>bn));const vn={en:{deposit:{success:{title:"{amount} {currency}",subTitle:"Deposited in your account",text:"Your deposit is successful"},pending:{title:"{amount} {currency}",subTitle:"Transaction is in progress",text:"Thank you. Your deposit is being processed."},reject:{title:"Deposit Rejected",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:"{errorText}"}},withdrawal:{success:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Your withdrawal is successful"},pending:{title:"{amount} {currency}",subTitle:"Withdrawn from your account",text:"Thank you. Your withdrawal is being processed."},reject:{title:"Withdrawal Rejected",subTitle:" ",text:"{errorText}"},fail:{title:"Error",subTitle:" ",text:"{errorText}"},cancel:{title:"You have cancelled the transaction",subTitle:" ",text:"{errorText}"}},reference:"Reference ID: {code}",close:"BACK TO MERCHANT"}},Tn={Success:"/txn-success.png",Voided:"/txn-success.png",Rejected:"/txn-failed.png",Failed:"/txn-failed.png",Canceled:"/txn-failed.png",PendingNotification:"/txn-pending.png","Pending Approval III":"/txn-pending.png","Pending Confirmation":"/txn-pending.png","Pending Approval I":"/txn-pending.png","Pending Offline Notification":"/txn-pending.png","Pending Approval II":"/txn-pending.png"},Hn={Deposit:"deposit",Withdraw:"withdrawal"},Bn={Success:"success",Voided:"success",PendingNotification:"pending","Pending Approval III":"pending","Pending Confirmation":"pending","Pending Approval I":"pending","Pending Offline Notification":"pending","Pending Approval II":"pending",Rejected:"reject",Failed:"fail",Canceled:"cancel"},{document:_n}=c;function Cn(e,t,n){const r=e.slice();return r[34]=t[n],r[36]=n,r}
572
+ // (192:5) {#if txnInfo}
573
+ function An(e){let t,n,i,o,s,l,c,E,v,T,H,B,_,C,A,w,L,P,S,I,N,R,O,M,U,x=/*$_*/e[9]("close")+"",D=/*txnInfo*/e[2].referenceId&&wn(e),G=/*receiptFields*/e[3].length&&Ln(e);return{c(){t=f("div"),n=f("span"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.33279 0.00663425C7.89688 0.105453 6.49895 0.511564 5.2336 1.19749C3.96825 1.88341 2.86499 2.83313 1.9985 3.9824C0.985792 5.31809 0.356137 6.84155 0.0769857 8.63039C-0.0256619 9.28509 -0.0256619 10.7147 0.0769857 11.3694C0.505101 14.1158 1.83326 16.3704 3.9851 18.0027C5.31451 19.0117 6.84672 19.6451 8.63053 19.923C9.28522 20.0257 10.7148 20.0257 11.3695 19.923C13.803 19.5437 15.8709 18.4471 17.4232 16.7121C18.8001 15.1736 19.595 13.4737 19.923 11.3694C20.0257 10.7147 20.0257 9.28509 19.923 8.63039C19.6451 6.84655 19.0117 5.31433 18.0028 3.9849C17.1973 2.91304 16.1846 2.01398 15.0249 1.34112C13.8652 0.668249 12.5821 0.235297 11.2518 0.0679732C10.614 0.00852964 9.97311 -0.0119547 9.33279 0.00663425ZM11.3019 1.33481C14.7956 1.87685 17.641 4.45559 18.4885 7.848C18.69 8.65292 18.7288 9.00343 18.7288 9.99988C18.7288 10.6946 18.715 10.97 18.6675 11.2855C18.4018 13.0557 17.6016 14.7024 16.374 16.0052C15.1464 17.308 13.5501 18.2045 11.7988 18.5748C10.686 18.8127 9.31401 18.8127 8.20117 18.5748C4.93272 17.8788 2.33398 15.3927 1.52156 12.1868C1.31126 11.3556 1.2712 11.0101 1.2712 9.99988C1.2712 8.98966 1.31126 8.64416 1.52156 7.81295C1.91376 6.29839 2.70396 4.91631 3.81023 3.81003C4.9165 2.70374 6.29856 1.91353 7.81311 1.52133C8.0885 1.45123 8.49409 1.36986 8.7144 1.34107L9.21512 1.27347C9.46673 1.23967 10.9689 1.28349 11.3019 1.33481ZM9.5481 5.25925C8.67685 5.35439 7.88821 5.8138 7.33116 6.54987C7.12462 6.82277 7.042 7.06437 7.09332 7.25339C7.17594 7.56009 7.55398 7.71781 7.87945 7.58262C7.94079 7.55633 8.16236 7.36355 8.37016 7.15325C8.79201 6.72763 8.99981 6.59995 9.41541 6.51232C10.5533 6.27197 11.541 6.85532 11.596 7.79918C11.6086 8.02326 11.5998 8.08084 11.5259 8.24107C11.3632 8.59659 11.0177 8.88826 10.5095 9.09982C10.1439 9.24341 9.76155 9.33975 9.3716 9.38649L9.1275 9.40902L9.13876 10.5306L9.14878 11.6523L9.23265 11.8025C9.42542 12.1517 9.96745 12.2118 10.2378 11.9152C10.3793 11.7587 10.4056 11.6247 10.4256 10.9638L10.4431 10.3416L10.6635 10.2815C12.1518 9.88095 13.1433 8.66669 12.973 7.44993C12.8579 6.62248 12.3709 5.96027 11.586 5.56845C11.0778 5.31433 10.2278 5.18539 9.5481 5.25925ZM9.37285 13.0568C9.06365 13.2108 8.90092 13.4799 8.89967 13.8404C8.89717 14.6003 9.77342 15.0071 10.3405 14.5089C10.4789 14.3866 10.576 14.2244 10.6186 14.0447C10.6612 13.8649 10.6471 13.6764 10.5783 13.505C10.3755 13.0493 9.81098 12.839 9.37285 13.0568Z" fill="#111111"></path></svg>',i=d(),o=f("span"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>',s=d(),l=f("div"),c=f("img"),v=d(),T=f("div"),H=f("h2"),B=m(/*title*/e[5]),_=d(),C=f("div"),A=m(/*subTitle*/e[4]),w=d(),L=f("div"),P=m(/*text*/e[6]),S=d(),D&&D.c(),I=d(),G&&G.c(),N=d(),R=f("button"),O=m(x),b(t,"class","HeaderButtonContainer"),a(c.src,E=/*statusImageUrl*/e[7])||b(c,"src",E),b(c,"class","StatusLogo"),b(H,"class","Title"),b(C,"class","SubTitle"),b(T,"class","TitleWrapper"),b(l,"class","ReceiptWrapper"),b(L,"class","Text"),b(R,"class","PrimaryButton")},m(r,a){h(r,t,a),u(t,n),u(t,i),u(t,o),h(r,s,a),h(r,l,a),u(l,c),u(l,v),u(l,T),u(T,H),u(H,B),u(T,_),u(T,C),u(C,A),h(r,w,a),h(r,L,a),u(L,P),h(r,S,a),D&&D.m(r,a),h(r,I,a),G&&G.m(r,a),h(r,N,a),h(r,R,a),u(R,O),M||(U=[g(n,"click",/*liveChat*/e[11]),g(o,"click",/*closeReceipt*/e[10]),g(R,"click",/*closeReceipt*/e[10])],M=!0)},p(e,t){/*statusImageUrl*/128&t[0]&&!a(c.src,E=/*statusImageUrl*/e[7])&&b(c,"src",E),/*title*/32&t[0]&&y(B,/*title*/e[5]),/*subTitle*/16&t[0]&&y(A,/*subTitle*/e[4]),/*text*/64&t[0]&&y(P,/*text*/e[6]),/*txnInfo*/e[2].referenceId?D?D.p(e,t):(D=wn(e),D.c(),D.m(I.parentNode,I)):D&&(D.d(1),D=null),/*receiptFields*/e[3].length?G?G.p(e,t):(G=Ln(e),G.c(),G.m(N.parentNode,N)):G&&(G.d(1),G=null),/*$_*/512&t[0]&&x!==(x=/*$_*/e[9]("close")+"")&&y(O,x)},d(e){e&&p(t),e&&p(s),e&&p(l),e&&p(w),e&&p(L),e&&p(S),D&&D.d(e),e&&p(I),G&&G.d(e),e&&p(N),e&&p(R),M=!1,r(U)}}}
574
+ // (213:7) {#if txnInfo.referenceId}
575
+ function wn(e){let t,n,r=/*$_*/e[9]("reference",{values:{code:/*txnInfo*/e[2].referenceId}})+"";return{c(){t=f("div"),n=m(r),b(t,"class","Reference")},m(e,r){h(e,t,r),u(t,n)},p(e,t){/*$_, txnInfo*/516&t[0]&&r!==(r=/*$_*/e[9]("reference",{values:{code:/*txnInfo*/e[2].referenceId}})+"")&&y(n,r)},d(e){e&&p(t)}}}
576
+ // (216:7) {#if receiptFields.length}
577
+ function Ln(e){let t,n=/*receiptFields*/e[3],r=[];for(let t=0;t<n.length;t+=1)r[t]=On(Cn(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=m("")},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);h(e,t,n)},p(e,i){if(/*openUrlInNewTab, receiptFields, qrCodeContainer, FieldTypes*/4362&i[0]){let o;for(n=/*receiptFields*/e[3],o=0;o<n.length;o+=1){const s=Cn(e,n,o);r[o]?r[o].p(s,i):(r[o]=On(s),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(r,e),e&&p(t)}}}
578
+ // (233:17) {:else}
579
+ function Pn(e){let t,n,r=/*field*/e[34].defaultValue+"";return{c(){t=f("span"),n=m(r),b(t,"class","Label")},m(e,r){h(e,t,r),u(t,n)},p(e,t){/*receiptFields*/8&t[0]&&r!==(r=/*field*/e[34].defaultValue+"")&&y(n,r)},d(e){e&&p(t)}}}
580
+ // (227:58)
581
+ function Sn(e){let t,n,r,i,o,s,a=/*field*/e[34].description+"",l=/*field*/e[34].Name+"";return{c(){t=f("span"),n=m(a),r=d(),i=f("a"),o=m(l),b(i,"href",s=/*field*/e[34].defaultValue),b(i,"target","_blank"),b(i,"rel","noopener noreferrer")},m(e,s){h(e,t,s),u(t,n),u(t,r),u(t,i),u(i,o)},p(e,t){/*receiptFields*/8&t[0]&&a!==(a=/*field*/e[34].description+"")&&y(n,a),/*receiptFields*/8&t[0]&&l!==(l=/*field*/e[34].Name+"")&&y(o,l),/*receiptFields*/8&t[0]&&s!==(s=/*field*/e[34].defaultValue)&&b(i,"href",s)},d(e){e&&p(t)}}}
582
+ // (225:59)
583
+ function In(e){let t,n,r;return{c(){t=f("img"),a(t.src,n=/*field*/e[34].defaultValue)||b(t,"src",n),b(t,"title",r=/*field*/e[34].description),b(t,"alt","")},m(e,n){h(e,t,n)},p(e,i){/*receiptFields*/8&i[0]&&!a(t.src,n=/*field*/e[34].defaultValue)&&b(t,"src",n),/*receiptFields*/8&i[0]&&r!==(r=/*field*/e[34].description)&&b(t,"title",r)},d(e){e&&p(t)}}}
584
+ // (223:58)
585
+ function Nn(e){let t,n=/*field*/e[34].defaultValue+"";return{c(){t=f("span")},m(e,r){h(e,t,r),t.innerHTML=n},p(e,r){/*receiptFields*/8&r[0]&&n!==(n=/*field*/e[34].defaultValue+"")&&(t.innerHTML=n)},d(e){e&&p(t)}}}
586
+ // (219:17) {#if field.type === FieldTypes.QRCode}
587
+ function Rn(e){let t,n,r,i,o,s=/*field*/e[34].defaultValue+"";function a(){/*click_handler*/
588
+ return e[22](/*field*/e[34])}return{c(){t=f("div"),n=f("div"),r=m(s),b(t,"class","QRCode")},m(s,l){h(s,t,l),u(t,n),u(n,r),
589
+ /*div0_binding*/e[21](n),i||(o=g(t,"click",a),i=!0)},p(t,n){e=t,/*receiptFields*/8&n[0]&&s!==(s=/*field*/e[34].defaultValue+"")&&y(r,s)},d(n){n&&p(t)
590
590
  /*div0_binding*/,e[21](null),i=!1,o()}}}
591
- // (193:10) {#each receiptFields as field, index}
591
+ // (217:10) {#each receiptFields as field, index}
592
592
  function On(e){let t,n;function r(e,t){/*field*/
593
- return e[32].type===/*FieldTypes*/e[1].QRCode?Rn:/*field*/e[32].type===/*FieldTypes*/e[1].Html?Nn:/*field*/e[32].type===/*FieldTypes*/e[1].Image?In:/*field*/e[32].type===/*FieldTypes*/e[1].Link?Sn:Pn}let i=r(e),o=i(e);return{c(){t=f("div"),o.c(),n=d(),b(t,"class","ReceiptField")},m(e,r){u(e,t,r),o.m(t,null),h(t,n)},p(e,s){i===(i=r(e))&&o?o.p(e,s):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n)))},d(e){e&&p(t),o.d()}}}function Mn(t){let n,r,i,o,s,l=/*txnInfo*/t[2]&&An(t);return{c(){n=f("script"),i=d(),o=f("div"),s=f("div"),l&&l.c(),this.c=e,a(n.src,r=Un)||b(n,"src",r),b(s,"class","CashierReceiptPage"),b(o,"class","CashierReceiptPageWidget")},m(e,r){h(_n.head,n),u(e,i,r),u(e,o,r),h(o,s),l&&l.m(s,null)
593
+ return e[34].type===/*FieldTypes*/e[1].QRCode?Rn:/*field*/e[34].type===/*FieldTypes*/e[1].Html?Nn:/*field*/e[34].type===/*FieldTypes*/e[1].Image?In:/*field*/e[34].type===/*FieldTypes*/e[1].Link?Sn:Pn}let i=r(e),o=i(e);return{c(){t=f("div"),o.c(),n=d(),b(t,"class","ReceiptField")},m(e,r){h(e,t,r),o.m(t,null),u(t,n)},p(e,s){i===(i=r(e))&&o?o.p(e,s):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n)))},d(e){e&&p(t),o.d()}}}function Mn(t){let n,r,i,o,s,l=/*txnInfo*/t[2]&&An(t);return{c(){n=f("script"),i=d(),o=f("div"),s=f("div"),l&&l.c(),this.c=e,a(n.src,r=Un)||b(n,"src",r),b(s,"class","CashierReceiptPage"),b(o,"class","CashierReceiptPageWidget")},m(e,r){u(_n.head,n),h(e,i,r),h(e,o,r),u(o,s),l&&l.m(s,null)
594
594
  /*div1_binding*/,t[23](o)},p(e,t){/*txnInfo*/e[2]?l?l.p(e,t):(l=An(e),l.c(),l.m(s,null)):l&&(l.d(1),l=null)},i:e,o:e,d(e){p(n),e&&p(i),e&&p(o),l&&l.d()
595
- /*div1_binding*/,t[23](null)}}}let Un="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function xn(e,t,n){let r;var i,o;i=yn,o=e=>n(9,r=e),e.$$.on_destroy.push(l(i,o));let{endpoint:s}=t,{session:a}=t,{lang:c="en"}=t,{translationurl:h}=t,{assetsurl:u}=t,{customerid:p}=t,{clientstyling:f=""}=t,{clientstylingurl:m=""}=t;var d;let g;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(d||(d={}));let b,y,E,v,T,H=[],_=[];const C=()=>{var e;e=c,Qt.set(e)};Object.keys(vn).forEach((e=>{En(e,vn[e])}));const A=()=>{const e=new URL(`${s}/v1/player/${p}/payment/GetPaymentInfo`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:a})};fetch(e,i).then((e=>e.json())).then((e=>{var t,i,o,s,a,l;n(2,g={type:e.Transaction.Type,referenceId:e.Transaction.Code,status:null===(t=e.Transaction.Status)||void 0===t?void 0:t.Status,message:null===(i=e.Transaction.Status)||void 0===i?void 0:i.Message,amount:null===(o=e.Transaction.Amounts[0])||void 0===o?void 0:o.Amount,currency:null===(s=e.Transaction.Amounts[0])||void 0===s?void 0:s.Currency}),n(3,H=e.ReceiptInfo&&e.ReceiptInfo.ReceiptFields?e.ReceiptInfo.ReceiptFields.map((e=>({type:e.Type,name:e.Name,description:e.Description,defaultValue:e.DefaultValue,useCopyButton:e.UseCopyButton,usePrintButton:e.UsePrintButton}))):[]),n(5,y=r((a=g.status,l=g.type,`${Hn[l]}.${Bn[a]}.title`),{values:{amount:g.amount,currency:g.currency}})),n(4,b=r(((e,t)=>`${Hn[t]}.${Bn[e]}.subTitle`)(g.status,g.type))),n(6,E=r(((e,t)=>`${Hn[t]}.${Bn[e]}.text`)(g.status,g.type),{values:{errorText:g.message}})),n(7,v=((e,t)=>`${e+Tn[t]}`)(u,g.status))}))},w=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)};return e.$$set=e=>{"endpoint"in e&&n(13,s=e.endpoint),"session"in e&&n(14,a=e.session),"lang"in e&&n(15,c=e.lang),"translationurl"in e&&n(16,h=e.translationurl),"assetsurl"in e&&n(17,u=e.assetsurl),"customerid"in e&&n(18,p=e.customerid),"clientstyling"in e&&n(19,f=e.clientstyling),"clientstylingurl"in e&&n(20,m=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/286720&e.$$.dirty[0]&&s&&a&&p&&A(),/*lang*/32768&e.$$.dirty[0]&&c&&C(),/*lang, translationurl*/98304&e.$$.dirty[0]&&c&&h&&(()=>{if(h)fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{En(t,e[t])}))})).catch((e=>{}))})(),/*clientstyling, customStylingContainer*/524289&e.$$.dirty[0]&&f&&T&&(()=>{let e=document.createElement("style");e.innerHTML=f,T.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048577&e.$$.dirty[0]&&m&&T&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{T.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[T,d,g,H,b,y,E,v,_,r,()=>{dispatchEvent(new CustomEvent("closeCashierReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},()=>{dispatchEvent(new CustomEvent("liveChatReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},w,s,a,c,h,u,p,f,m,function(e){B[e?"unshift":"push"]((()=>{_[_.length]=e,n(8,_)}))},e=>{w(e.description)},function(e){B[e?"unshift":"push"]((()=>{T=e,n(0,T)}))}]}class Dn extends x{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierReceiptPageWidget{height:100%}.CashierReceiptPage{border-radius:var(--emw--border-radius-large, 6px);background:var(--emw--color-background, #fff);padding:0 0 10px 0;margin:0 auto;position:relative;word-wrap:break-word}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid rgba(0, 0, 0, 0.1);display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.TitleWrapper{display:flex;position:absolute;left:var(--emw--spacing-small, 12px);bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--emw--color-gray-300, #111);font-size:var(--emw--font-size-x-large, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);color:var(--emw--color-gray-150, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);color:var(--header-text-color, #111)}.Reference{color:var(--header-sub-text-color, #666);font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-normal, 400);margin:0 var(--emw--spacing-small, 12px) 0}.PrimaryButton{color:var(--emw--color-white, #FFF);border:none;background:var(--emw--color-primary, #7EC51E);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 5px);height:36px;font-size:var(--emw--font-size-x-small, 12px);margin:var(--emw--spacing-large, 20px) var(--emw--spacing-small, 12px);width:calc(100% - var(--emw--spacing-small, 12px) * 2)}.PrimaryButton:hover{background:var(--emw--color-hover, #71B11B)}.PrimaryButton:active{background:var(--emw--color-active, #5C950F)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;display:flex;align-items:center;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px)}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},xn,Mn,o,{endpoint:13,session:14,lang:15,translationurl:16,assetsurl:17,customerid:18,clientstyling:19,clientstylingurl:20},null,[-1,-1]),e&&(e.target&&u(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","session","lang","translationurl","assetsurl","customerid","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),I()}get session(){return this.$$.ctx[14]}set session(e){this.$$set({session:e}),I()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),I()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),I()}get assetsurl(){return this.$$.ctx[17]}set assetsurl(e){this.$$set({assetsurl:e}),I()}get customerid(){return this.$$.ctx[18]}set customerid(e){this.$$set({customerid:e}),I()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}}return!customElements.get("cashier-receipt-page")&&customElements.define("cashier-receipt-page",Dn),Dn}));
595
+ /*div1_binding*/,t[23](null)}}}let Un="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js";function xn(e,t,n){let r;var i,o;i=yn,o=e=>n(9,r=e),e.$$.on_destroy.push(l(i,o));let{endpoint:s}=t,{session:a}=t,{lang:c="en"}=t,{translationurl:u}=t,{assetsurl:h}=t,{customerid:p}=t,{clientstyling:f=""}=t,{clientstylingurl:m=""}=t;var d;!function(e){e.Unknown="Unknown",e.Text="Text",e.Boolean="Boolean",e.Number="Number",e.Money="Money",e.DateTime="DateTime",e.Lookup="Lookup",e.IpAddress="IpAddress",e.Date="Date",e.Time="Time",e.LookupCollection="LookupCollection",e.Hidden="Hidden",e.Label="Label",e.Password="Password",e.Link="Link",e.Image="Image",e.Html="Html",e.QRCode="QR"}(d||(d={}));const g=new Map([[["Unknown",0],d.Unknown],[["Text",1],d.Text],[["Boolean",2],d.Boolean],[["Number",3],d.Number],[["Money",4],d.Money],[["DateTime",5],d.DateTime],[["Lookup",6],d.Lookup],[["IpAddress",7],d.IpAddress],[["Date",8],d.Date],[["Time",9],d.Time],[["LookupCollection",10],d.LookupCollection],[["Hidden",11],d.Hidden],[["Label",12],d.Label],[["Password",13],d.Password],[["Link",14],d.Link],[["Image",15],d.Image],[["Html",19],d.Html],[["QR",20],d.QRCode]].reduce(((e,[t,n])=>[...e,...Array.isArray(t)?[...t.map((e=>[e,n]))]:[[t,n]]]),[]));let b,y,E,v,T,H,_=[],C=[];const A=()=>{var e;e=c,Qt.set(e)};Object.keys(vn).forEach((e=>{En(e,vn[e])}));const w=()=>{const e=new URL(`${s}/v1/player/${p}/payment/GetPaymentInfo`),t=new Headers;t.append("accept","application/json"),t.append("Content-Type","application/json");const i={method:"POST",headers:t,body:JSON.stringify({XPaymentSessionToken:a})};fetch(e,i).then((e=>e.json())).then((e=>{var t,i,o,s,a,l;n(2,b={type:e.Transaction.Type,referenceId:e.Transaction.Code,status:null===(t=e.Transaction.Status)||void 0===t?void 0:t.Status,message:null===(i=e.Transaction.Status)||void 0===i?void 0:i.Message,amount:null===(o=e.Transaction.Amounts[0])||void 0===o?void 0:o.Amount,currency:null===(s=e.Transaction.Amounts[0])||void 0===s?void 0:s.Currency}),n(3,_=e.ReceiptInfo&&e.ReceiptInfo.ReceiptFields?e.ReceiptInfo.ReceiptFields.map((e=>({type:g.get(e.Type),name:e.Name,description:e.Description,defaultValue:e.DefaultValue,useCopyButton:e.UseCopyButton,usePrintButton:e.UsePrintButton}))):[]),n(5,E=r((a=b.status,l=b.type,`${Hn[l]}.${Bn[a]}.title`),{values:{amount:b.amount,currency:b.currency}})),n(4,y=r(((e,t)=>`${Hn[t]}.${Bn[e]}.subTitle`)(b.status,b.type))),n(6,v=r(((e,t)=>`${Hn[t]}.${Bn[e]}.text`)(b.status,b.type),{values:{errorText:b.message}})),n(7,T=((e,t)=>`${e+Tn[t]}`)(h,b.status))}))},L=e=>{e&&window.postMessage({type:"NavigateTo",path:e,target:"_blank",externalLink:!1},window.location.href)};return e.$$set=e=>{"endpoint"in e&&n(13,s=e.endpoint),"session"in e&&n(14,a=e.session),"lang"in e&&n(15,c=e.lang),"translationurl"in e&&n(16,u=e.translationurl),"assetsurl"in e&&n(17,h=e.assetsurl),"customerid"in e&&n(18,p=e.customerid),"clientstyling"in e&&n(19,f=e.clientstyling),"clientstylingurl"in e&&n(20,m=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, session, customerid*/286720&e.$$.dirty[0]&&s&&a&&p&&w(),/*lang*/32768&e.$$.dirty[0]&&c&&A(),/*lang, translationurl*/98304&e.$$.dirty[0]&&c&&u&&(()=>{if(u)fetch(u).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{En(t,e[t])}))})).catch((e=>{}))})(),/*clientstyling, customStylingContainer*/524289&e.$$.dirty[0]&&f&&H&&(()=>{let e=document.createElement("style");e.innerHTML=f,H.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1048577&e.$$.dirty[0]&&m&&H&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{H.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[H,d,b,_,y,E,v,T,C,r,()=>{dispatchEvent(new CustomEvent("closeCashierReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},()=>{dispatchEvent(new CustomEvent("liveChatReceiptPage",{bubbles:!0,cancelable:!0,composed:!0}))},L,s,a,c,u,h,p,f,m,function(e){B[e?"unshift":"push"]((()=>{C[C.length]=e,n(8,C)}))},e=>{L(e.description)},function(e){B[e?"unshift":"push"]((()=>{H=e,n(0,H)}))}]}class Dn extends x{constructor(e){super();const t=document.createElement("style");t.textContent=".CashierReceiptPageWidget{height:100%}.CashierReceiptPage{border-radius:var(--mmw--border-radius-medium-plus, 6px);background:var(--emw--color-background, #fff);padding:0 0 var(--emw--spacing-small-minus, 10px) 0;margin:0 auto;position:relative;word-wrap:break-word}.ReceiptWrapper{width:100%;height:200px;border-bottom:1px solid var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;align-items:flex-end;flex-direction:row-reverse;position:relative}.TitleWrapper{display:flex;position:absolute;left:var(--emw--spacing-small, 12px);bottom:11px;flex-direction:column;justify-content:flex-end;flex-shrink:0}.Title{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-x-large-plus, 26px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;line-height:var(--emw--font-size-x-large-plus, 26px)}.SubTitle{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-290, #666);margin-top:var(--emw--spacing-small, 12px)}.Text{padding:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);color:var(--mmw--color-grey-10, #111)}.Reference{color:var(--mmw--color-grey-290, #666);font-size:var(--emw--font-size-x-small, 12px);font-weight:var(--emw--font-weight-normal, 400);margin:0 var(--emw--spacing-small, 12px) 0}.PrimaryButton{color:var(--emw--color-white, #FFF);border:none;background:var(--emw--color-primary, #7EC51E);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:var(--emw--border-radius-medium, 5px);height:36px;font-size:var(--emw--font-size-x-small, 12px);margin:var(--emw--spacing-large, 20px) var(--emw--spacing-small, 12px);width:calc(100% - var(--emw--spacing-small, 12px) * 2)}.PrimaryButton:hover{background:var(--emw--color-hover, #71B11B)}.PrimaryButton:active{background:var(--emw--color-active, #5C950F)}.HeaderButtonContainer{position:absolute;z-index:1;right:0;display:flex;align-items:center;gap:var(--emw--spacing-small, 12px);padding:var(--emw--spacing-small, 12px)}.HeaderButtonContainer>span{cursor:pointer}.ReceiptField{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--font-size-medium, 16px);color:var(--emw--color-gray-150, #666);margin:var(--emw--spacing-small, 12px)}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},xn,Mn,o,{endpoint:13,session:14,lang:15,translationurl:16,assetsurl:17,customerid:18,clientstyling:19,clientstylingurl:20},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","session","lang","translationurl","assetsurl","customerid","clientstyling","clientstylingurl"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),I()}get session(){return this.$$.ctx[14]}set session(e){this.$$set({session:e}),I()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),I()}get translationurl(){return this.$$.ctx[16]}set translationurl(e){this.$$set({translationurl:e}),I()}get assetsurl(){return this.$$.ctx[17]}set assetsurl(e){this.$$set({assetsurl:e}),I()}get customerid(){return this.$$.ctx[18]}set customerid(e){this.$$set({customerid:e}),I()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}}return!customElements.get("cashier-receipt-page")&&customElements.define("cashier-receipt-page",Dn),Dn}));
596
596
  //# sourceMappingURL=cashier-receipt-page.js.map