@foxy.io/elements 1.13.0-beta.2 → 1.14.0-beta.10

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.
Files changed (170) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  3. package/dist/cdn/foxy-address-card.js +1 -1
  4. package/dist/cdn/foxy-address-form.js +1 -1
  5. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  6. package/dist/cdn/foxy-attribute-card.js +1 -1
  7. package/dist/cdn/foxy-attribute-form.js +1 -1
  8. package/dist/cdn/foxy-cancellation-form.js +1 -1
  9. package/dist/cdn/foxy-collection-page.js +1 -1
  10. package/dist/cdn/foxy-collection-pages.js +1 -1
  11. package/dist/cdn/foxy-custom-field-card.js +1 -1
  12. package/dist/cdn/foxy-custom-field-form.js +1 -1
  13. package/dist/cdn/foxy-customer-api.js +1 -1
  14. package/dist/cdn/foxy-customer-card.js +1 -1
  15. package/dist/cdn/foxy-customer-form.js +1 -1
  16. package/dist/cdn/foxy-customer-portal-settings.js +18 -18
  17. package/dist/cdn/foxy-customer-portal.js +1 -1
  18. package/dist/cdn/foxy-customer.js +4 -4
  19. package/dist/cdn/foxy-customers-table.js +1 -1
  20. package/dist/cdn/foxy-discount-card.js +1 -1
  21. package/dist/cdn/foxy-donation.js +1 -1
  22. package/dist/cdn/foxy-email-template-form.js +1 -0
  23. package/dist/cdn/foxy-error-entry-card.js +1 -1
  24. package/dist/cdn/foxy-form-dialog.js +1 -1
  25. package/dist/cdn/foxy-i18n.js +1 -1
  26. package/dist/cdn/foxy-items-form.js +1 -1
  27. package/dist/cdn/foxy-nucleon-element.js +1 -1
  28. package/dist/cdn/foxy-payment-card.js +1 -1
  29. package/dist/cdn/foxy-payment-method-card.js +1 -1
  30. package/dist/cdn/foxy-query-builder.js +1 -1
  31. package/dist/cdn/foxy-sign-in-form.js +1 -1
  32. package/dist/cdn/foxy-spinner.js +2 -2
  33. package/dist/cdn/foxy-subscription-card.js +1 -1
  34. package/dist/cdn/foxy-subscription-form.js +26 -9
  35. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  36. package/dist/cdn/foxy-table.js +1 -1
  37. package/dist/cdn/foxy-tax-card.js +1 -1
  38. package/dist/cdn/foxy-tax-form.js +1 -1
  39. package/dist/cdn/foxy-template-config-form.js +1 -0
  40. package/dist/cdn/foxy-template-form.js +1 -0
  41. package/dist/cdn/foxy-transaction-card.js +1 -1
  42. package/dist/cdn/foxy-transactions-table.js +1 -1
  43. package/dist/cdn/foxy-user-form.js +1 -1
  44. package/dist/cdn/foxy-users-table.js +1 -1
  45. package/dist/cdn/{shared-145cc9eb.js → shared-00070cc4.js} +1 -1
  46. package/dist/cdn/{shared-d4dad105.js → shared-00563cb0.js} +1 -1
  47. package/dist/cdn/shared-007c4e34.js +1 -0
  48. package/dist/cdn/shared-07134f93.js +14 -0
  49. package/dist/cdn/shared-0ced76a0.js +358 -0
  50. package/dist/cdn/shared-0f9809ab.js +1 -0
  51. package/dist/cdn/{shared-f4119f12.js → shared-16f72e27.js} +1 -1
  52. package/dist/cdn/shared-1761daef.js +15 -0
  53. package/dist/cdn/{shared-5fedf5e4.js → shared-200f613b.js} +2 -2
  54. package/dist/cdn/{shared-4059f633.js → shared-218ba06e.js} +1 -1
  55. package/dist/cdn/shared-31d03530.js +264 -0
  56. package/dist/cdn/{shared-e9920617.js → shared-34b2c1e2.js} +1 -1
  57. package/dist/cdn/{shared-cf248335.js → shared-44cfc617.js} +1 -1
  58. package/dist/cdn/{shared-45d647e4.js → shared-46ee137f.js} +1 -1
  59. package/dist/cdn/{shared-b0b1d248.js → shared-4ba926ca.js} +1 -1
  60. package/dist/cdn/{shared-f0199313.js → shared-593f7e2c.js} +1 -1
  61. package/dist/cdn/shared-59e44f29.js +1 -0
  62. package/dist/cdn/{shared-f47647ac.js → shared-5d94bacb.js} +1 -1
  63. package/dist/cdn/{shared-cd700eac.js → shared-60126eee.js} +1 -1
  64. package/dist/cdn/{shared-17968c53.js → shared-63eaded9.js} +3 -3
  65. package/dist/cdn/shared-6b7602c7.js +1 -0
  66. package/dist/cdn/{shared-98ee7fad.js → shared-6d45a07b.js} +1 -1
  67. package/dist/cdn/{shared-91a9e922.js → shared-7007dedb.js} +4 -4
  68. package/dist/cdn/{shared-84fa75d9.js → shared-9221e6b2.js} +1 -1
  69. package/dist/cdn/{shared-2860a3d3.js → shared-94b0ae99.js} +2 -2
  70. package/dist/cdn/shared-a3d2c48e.js +314 -0
  71. package/dist/cdn/shared-a46edf4b.js +1 -0
  72. package/dist/cdn/{shared-54702b33.js → shared-b0f0e8b5.js} +1 -1
  73. package/dist/cdn/{shared-b77179fd.js → shared-b24377bf.js} +1 -1
  74. package/dist/cdn/{shared-ed4ed7a5.js → shared-b710881a.js} +2 -2
  75. package/dist/cdn/{shared-3ae39e52.js → shared-bb824ab4.js} +3 -3
  76. package/dist/cdn/{shared-d9159fe1.js → shared-c5ae5d33.js} +1 -1
  77. package/dist/cdn/{shared-f2cf6cfb.js → shared-ca7c3b9a.js} +1 -1
  78. package/dist/cdn/shared-d01035c5.js +1 -0
  79. package/dist/cdn/{shared-67157a25.js → shared-d05c93a5.js} +1 -1
  80. package/dist/cdn/{shared-a99dea97.js → shared-da787055.js} +1 -1
  81. package/dist/cdn/{shared-036a8b21.js → shared-daf6b763.js} +1 -1
  82. package/dist/cdn/shared-df573cea.js +12 -0
  83. package/dist/cdn/{shared-e5de8675.js → shared-e7f8ffe9.js} +1 -1
  84. package/dist/cdn/{shared-54c485d2.js → shared-ec861f31.js} +21 -21
  85. package/dist/cdn/{shared-e0248713.js → shared-f0a83bd6.js} +1 -1
  86. package/dist/cdn/shared-fe8a7aa2.js +1 -0
  87. package/dist/cdn/{shared-747b0842.js → shared-ff79f3f9.js} +1 -1
  88. package/dist/cdn/translations/shared/en.json +94 -1
  89. package/dist/elements/private/Checkbox/Checkbox.d.ts +3 -1
  90. package/dist/elements/private/Checkbox/Checkbox.js +45 -12
  91. package/dist/elements/private/Checkbox/Checkbox.js.map +1 -1
  92. package/dist/elements/private/Choice/Choice.js +9 -9
  93. package/dist/elements/private/Choice/Choice.js.map +1 -1
  94. package/dist/elements/private/Group/Group.js +1 -1
  95. package/dist/elements/private/Group/Group.js.map +1 -1
  96. package/dist/elements/private/I18N/I18N.js +1 -1
  97. package/dist/elements/private/I18N/I18N.js.map +1 -1
  98. package/dist/elements/public/AddressForm/AddressForm.js +8 -4
  99. package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
  100. package/dist/elements/public/AttributeForm/AttributeForm.js +8 -4
  101. package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
  102. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +8 -4
  103. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
  104. package/dist/elements/public/CustomerForm/CustomerForm.js +8 -4
  105. package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
  106. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.d.ts +46 -0
  107. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +350 -0
  108. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -0
  109. package/dist/elements/public/EmailTemplateForm/index.d.ts +9 -0
  110. package/dist/elements/public/EmailTemplateForm/index.js +11 -0
  111. package/dist/elements/public/EmailTemplateForm/index.js.map +1 -0
  112. package/dist/elements/public/EmailTemplateForm/types.d.ts +17 -0
  113. package/dist/elements/public/EmailTemplateForm/types.js +2 -0
  114. package/dist/elements/public/EmailTemplateForm/types.js.map +1 -0
  115. package/dist/elements/public/ItemsForm/ItemsForm.js +2 -2
  116. package/dist/elements/public/ItemsForm/ItemsForm.js.map +1 -1
  117. package/dist/elements/public/NucleonElement/serveFromCache.js +1 -0
  118. package/dist/elements/public/NucleonElement/serveFromCache.js.map +1 -1
  119. package/dist/elements/public/TaxForm/TaxForm.d.ts +2 -0
  120. package/dist/elements/public/TaxForm/TaxForm.js +45 -12
  121. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
  122. package/dist/elements/public/TaxForm/index.d.ts +1 -0
  123. package/dist/elements/public/TaxForm/index.js +1 -0
  124. package/dist/elements/public/TaxForm/index.js.map +1 -1
  125. package/dist/elements/public/TemplateConfigForm/CountriesList.d.ts +23 -0
  126. package/dist/elements/public/TemplateConfigForm/CountriesList.js +138 -0
  127. package/dist/elements/public/TemplateConfigForm/CountriesList.js.map +1 -0
  128. package/dist/elements/public/TemplateConfigForm/CountryCard.d.ts +22 -0
  129. package/dist/elements/public/TemplateConfigForm/CountryCard.js +157 -0
  130. package/dist/elements/public/TemplateConfigForm/CountryCard.js.map +1 -0
  131. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +88 -0
  132. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +1336 -0
  133. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -0
  134. package/dist/elements/public/TemplateConfigForm/defaults.d.ts +2 -0
  135. package/dist/elements/public/TemplateConfigForm/defaults.js +95 -0
  136. package/dist/elements/public/TemplateConfigForm/defaults.js.map +1 -0
  137. package/dist/elements/public/TemplateConfigForm/index.d.ts +9 -0
  138. package/dist/elements/public/TemplateConfigForm/index.js +11 -0
  139. package/dist/elements/public/TemplateConfigForm/index.js.map +1 -0
  140. package/dist/elements/public/TemplateConfigForm/types.d.ts +150 -0
  141. package/dist/elements/public/TemplateConfigForm/types.js +2 -0
  142. package/dist/elements/public/TemplateConfigForm/types.js.map +1 -0
  143. package/dist/elements/public/TemplateForm/TemplateForm.d.ts +45 -0
  144. package/dist/elements/public/TemplateForm/TemplateForm.js +343 -0
  145. package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -0
  146. package/dist/elements/public/TemplateForm/index.d.ts +9 -0
  147. package/dist/elements/public/TemplateForm/index.js +11 -0
  148. package/dist/elements/public/TemplateForm/index.js.map +1 -0
  149. package/dist/elements/public/TemplateForm/types.d.ts +17 -0
  150. package/dist/elements/public/TemplateForm/types.js +2 -0
  151. package/dist/elements/public/TemplateForm/types.js.map +1 -0
  152. package/dist/elements/public/index.d.ts +3 -0
  153. package/dist/elements/public/index.defined.d.ts +3 -0
  154. package/dist/elements/public/index.defined.js +3 -0
  155. package/dist/elements/public/index.defined.js.map +1 -1
  156. package/dist/elements/public/index.js +3 -0
  157. package/dist/elements/public/index.js.map +1 -1
  158. package/dist/mixins/themeable.js +133 -16
  159. package/dist/mixins/themeable.js.map +1 -1
  160. package/package.json +2 -7
  161. package/dist/cdn/shared-296637c5.js +0 -1
  162. package/dist/cdn/shared-4a990126.js +0 -1
  163. package/dist/cdn/shared-50744508.js +0 -15
  164. package/dist/cdn/shared-b98f88c9.js +0 -369
  165. package/dist/cdn/shared-bf09e011.js +0 -572
  166. package/dist/cdn/shared-c0161e6a.js +0 -1
  167. package/dist/cdn/shared-c1e0e11f.js +0 -1
  168. package/dist/cdn/shared-dbcffd8e.js +0 -1
  169. package/dist/cdn/shared-e21a2aac.js +0 -1
  170. package/dist/cdn/shared-e55b6bb7.js +0 -1
@@ -1 +0,0 @@
1
- import{_ as t,c as e,d as n,p as i,e as r,i as s,f as o,g as a,h,j as c,k as u,l as d,n as f,o as l,q as p,s as v,r as y,u as w,v as x,w as b,x as g,y as m,z as S,C as E,D as _,E as T,G as L,H as O,I as k,J as N,K as C,S as z,L as M,M as D,N as I,O as R,P,Q as q,T as J,U as j}from"./shared-50744508.js";var U={deferEvents:!1},F=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=t(t({},U),e)}return e.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},e.prototype.schedule=function(t){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()}else this.queue.push(t)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},e.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},e}(),A=new Map,X=0,B=function(){return"x:"+X++},V=function(t,e){return A.set(t,e),t},G=function(t){return A.get(t)},H=function(t){A.delete(t)};function K(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0}function Q(t){if(K()){var e=function(){var t=K();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}function W(t,i){void 0===i&&(i={});var r=t.initialState,s=new Set,o=[],a=!1,h=e({id:i.id,send:function(e){o.push(e),function(){if(!a){for(a=!0;o.length>0;){var e=o.shift();r=t.transition(r,e,c),s.forEach((function(t){return t.next(r)}))}a=!1}}()},getSnapshot:function(){return r},subscribe:function(t,e,i){var o=n(t,e,i);return s.add(o),o.next(r),{unsubscribe:function(){s.delete(o)}}}}),c={parent:i.parent,self:h,id:i.id||"anonymous",observers:s};return r=t.start?t.start(c):r,h}var Y,Z={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Y||(Y={}));var $=function(){function e(n,i){var r=this;void 0===i&&(i=e.defaultOptions),this.machine=n,this.scheduler=new F,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Y.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(t,e){if(N(t))return r.batch(t),r.state;var n=d(C(t,e));if(r.status===Y.Stopped)return r.state;if(r.status!==Y.Running&&!r.options.deferEvents)throw new Error('Event "'+n.name+'" was sent to uninitialized service "'+r.machine.id+'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: '+JSON.stringify(n.data));return r.scheduler.schedule((function(){r.forward(n);var t=r.nextState(n);r.update(t,n)})),r._state},this.sendTo=function(e,n){var i=r.parent&&(n===z.Parent||r.parent.id===n),s=i?r.parent:M(n)?r.children.get(n)||G(n):D(n)?n:void 0;if(s)"machine"in s?s.send(t(t({},e),{name:e.name===I?""+O(r.id):e.name,origin:r.sessionId})):s.send(e.data);else if(!i)throw new Error("Unable to send event to child '"+n+"' from service '"+r.id+"'.")};var s=t(t({},e.defaultOptions),i),o=s.clock,a=s.logger,h=s.parent,c=s.id,u=void 0!==c?c:n.id;this.id=u,this.logger=a,this.clock=o,this.parent=h,this.options=s,this.scheduler=new F({deferEvents:this.options.deferEvents}),this.sessionId=B()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:i(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(t,e){var n,i;try{for(var s=r(t.actions),o=s.next();!o.done;o=s.next()){var a=o.value;this.exec(a,t,e)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.update=function(t,e){var n,i,h,c,u,d,f,l,p=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach((function(t){p.state.children[t.id]=t})),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var v=r(this.eventListeners),y=v.next();!y.done;y=v.next()){(0,y.value)(t.event)}}catch(t){n={error:t}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}try{for(var w=r(this.listeners),x=w.next();!x.done;x=w.next()){(0,x.value)(t,t.event)}}catch(t){h={error:t}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(h)throw h.error}}try{for(var b=r(this.contextListeners),g=b.next();!g.done;g=b.next()){(0,g.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(t){u={error:t}}finally{try{g&&!g.done&&(d=b.return)&&d.call(b)}finally{if(u)throw u.error}}var m=s(t.configuration||[],this.machine);if(this.state.configuration&&m){var S=t.configuration.find((function(t){return"final"===t.type&&t.parent===p.machine})),E=S&&S.doneData?o(S.doneData,t.context,e):void 0;try{for(var _=r(this.doneListeners),T=_.next();!T.done;T=_.next()){(0,T.value)(a(this.id,E))}}catch(t){f={error:t}}finally{try{T&&!T.done&&(l=_.return)&&l.call(_)}finally{if(f)throw f.error}}this.stop()}},e.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Y.Running&&t(this.state,this.state.event),this},e.prototype.subscribe=function(t,e,n){var i,r=this;if(!t)return{unsubscribe:function(){}};var s=n;return"function"==typeof t?i=t:(i=t.next.bind(t),s=t.complete.bind(t)),this.listeners.add(i),this.status===Y.Running&&i(this.state),s&&this.onDone(s),{unsubscribe:function(){i&&r.listeners.delete(i),s&&r.doneListeners.delete(s)}}},e.prototype.onEvent=function(t){return this.eventListeners.add(t),this},e.prototype.onSend=function(t){return this.sendListeners.add(t),this},e.prototype.onChange=function(t){return this.contextListeners.add(t),this},e.prototype.onStop=function(t){return this.stopListeners.add(t),this},e.prototype.onDone=function(t){return this.doneListeners.add(t),this},e.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},e.prototype.start=function(t){var e=this;if(this.status===Y.Running)return this;V(this.sessionId,this),this.initialized=!0,this.status=Y.Running;var n=void 0===t?this.initialState:i(this,(function(){return R(t)?e.machine.resolveState(t):e.machine.resolveState(P.from(t,e.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){e.update(n,h)})),this},e.prototype.stop=function(){var t,e,n,i,s,o,a,h,d,f,l=this;try{for(var p=r(this.listeners),v=p.next();!v.done;v=p.next()){var y=v.value;this.listeners.delete(y)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=p.return)&&e.call(p)}finally{if(t)throw t.error}}try{for(var w=r(this.stopListeners),x=w.next();!x.done;x=w.next()){(y=x.value)(),this.stopListeners.delete(y)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=w.return)&&i.call(w)}finally{if(n)throw n.error}}try{for(var b=r(this.contextListeners),g=b.next();!g.done;g=b.next()){y=g.value;this.contextListeners.delete(y)}}catch(t){s={error:t}}finally{try{g&&!g.done&&(o=b.return)&&o.call(b)}finally{if(s)throw s.error}}try{for(var m=r(this.doneListeners),S=m.next();!S.done;S=m.next()){y=S.value;this.doneListeners.delete(y)}}catch(t){a={error:t}}finally{try{S&&!S.done&&(h=m.return)&&h.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.state.configuration.forEach((function(t){var e,n;try{for(var i=r(t.definition.exit),s=i.next();!s.done;s=i.next()){var o=s.value;l.exec(o,l.state)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}})),this.children.forEach((function(t){c(t.stop)&&t.stop()}));try{for(var E=r(u(this.delayedEventsMap)),_=E.next();!_.done;_=E.next()){var T=_.value;this.clock.clearTimeout(this.delayedEventsMap[T])}}catch(t){d={error:t}}finally{try{_&&!_.done&&(f=E.return)&&f.call(E)}finally{if(d)throw d.error}}return this.scheduler.clear(),this.initialized=!1,this.status=Y.Stopped,H(this.sessionId),this},e.prototype.batch=function(t){var e=this;if(this.status===Y.NotStarted&&this.options.deferEvents);else if(this.status!==Y.Running)throw new Error(t.length+' event(s) were sent to uninitialized service "'+this.machine.id+'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.');this.scheduler.schedule((function(){var n,s,o=e.state,a=!1,h=[],c=function(t){var n=d(t);e.forward(n),o=i(e,(function(){return e.machine.transition(o,n)})),h.push.apply(h,q([],J(o.actions.map((function(t){return j(t,o)}))))),a=a||!!o.changed};try{for(var u=r(t),f=u.next();!f.done;f=u.next()){c(f.value)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}o.changed=a,o.actions=h,e.update(o,d(t[t.length-1]))}))},e.prototype.sender=function(t){return this.send.bind(this,t)},e.prototype.nextState=function(t){var e=this,n=d(t);if(0===n.name.indexOf(f)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(f)})))throw n.data.data;return i(this,(function(){return e.machine.transition(e.state,n)}))},e.prototype.forward=function(t){var e,n;try{for(var i=r(this.forwardTo),s=i.next();!s.done;s=i.next()){var o=s.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '"+t+"' from interpreter '"+this.id+"' to nonexistant child '"+o+"'.");a.send(t)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},e.prototype.defer=function(t){var e=this;this.delayedEventsMap[t.id]=this.clock.setTimeout((function(){t.to?e.sendTo(t._event,t.to):e.send(t._event)}),t.delay)},e.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},e.prototype.exec=function(t,e,n){void 0===n&&(n=this.machine.options.actions);var i=e.context,r=e._event,s=t.exec||l(t.type,n),a=c(s)?s:s?s.exec:t.exec;if(a)try{return a(i,r.data,{action:t,state:this.state,_event:r})}catch(t){throw this.parent&&this.parent.send({type:"xstate.error",data:t}),t}switch(t.type){case m:var h=t;if("number"==typeof h.delay)return void this.defer(h);h.to?this.sendTo(h._event,h.to):this.send(h._event);break;case g:this.cancel(t.sendId);break;case y:var u=t.activity;if(!this.state.activities[u.id||u.type])break;if(u.type===w.Invoke){var d=x(u.src),f=this.machine.options.services?this.machine.options.services[d.type]:void 0,S=u.id,E=u.data,_="autoForward"in u?u.autoForward:!!u.forward;if(!f)return;var T=E?o(E,i,r):void 0;if("string"==typeof f)return;var L=c(f)?f(i,r.data,{data:T,src:d}):f;if(!L)return;var O=void 0;b(L)&&(L=T?L.withContext(T):L,O={autoForward:_}),this.spawn(L,S,O)}else this.spawnActivity(u);break;case v:this.stopChild(t.activity.id);break;case p:var k=t.label,N=t.value;k?this.logger(k,N):this.logger(N)}},e.prototype.removeChild=function(t){this.children.delete(t),this.forwardTo.delete(t),delete this.state.children[t]},e.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),c(e.stop)&&e.stop())},e.prototype.spawn=function(e,n,i){if(S(e))return this.spawnPromise(Promise.resolve(e),n);if(c(e))return this.spawnCallback(e,n);if(E(e))return this.spawnActor(e);if(_(e))return this.spawnObservable(e,n);if(b(e))return this.spawnMachine(e,t(t({},i),{id:n}));if(T(e))return this.spawnBehavior(e,n);throw new Error('Unable to spawn entity "'+n+'" of type "'+typeof e+'".')},e.prototype.spawnMachine=function(n,i){var r=this;void 0===i&&(i={});var s=new e(n,t(t({},this.options),{parent:this,id:i.id||n.id})),o=t(t({},Z),i);o.sync&&s.onTransition((function(t){r.send(L,{state:t,id:s.id})}));var a=s;return this.children.set(s.id,a),o.autoForward&&this.forwardTo.add(s.id),s.onDone((function(t){r.removeChild(s.id),r.send(d(t,{origin:s.id}))})).start(),a},e.prototype.spawnBehavior=function(t,e){var n=W(t,{id:e,parent:this});return this.children.set(e,n),n},e.prototype.spawnPromise=function(t,e){var i,r=this,s=!1;t.then((function(t){s||(i=t,r.removeChild(e),r.send(d(a(e,t),{origin:e})))}),(function(t){if(!s){r.removeChild(e);var n=O(e,t);try{r.send(d(n,{origin:e}))}catch(t){r.devTools&&r.devTools.send(n,r.state),r.machine.strict&&r.stop()}}}));var o={id:e,send:function(){},subscribe:function(e,i,r){var s=n(e,i,r),o=!1;return t.then((function(t){o||(s.next(t),o||s.complete())}),(function(t){o||s.error(t)})),{unsubscribe:function(){return o=!0}}},stop:function(){s=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return i}};return this.children.set(e,o),o},e.prototype.spawnCallback=function(t,e){var n,i,r=this,s=!1,o=new Set,a=new Set;try{i=t((function(t){n=t,a.forEach((function(e){return e(t)})),s||r.send(d(t,{origin:e}))}),(function(t){o.add(t)}))}catch(t){this.send(O(e,t))}if(S(i))return this.spawnPromise(i,e);var h={id:e,send:function(t){return o.forEach((function(e){return e(t)}))},subscribe:function(t){return a.add(t),{unsubscribe:function(){a.delete(t)}}},stop:function(){s=!0,c(i)&&i()},toJSON:function(){return{id:e}},getSnapshot:function(){return n}};return this.children.set(e,h),h},e.prototype.spawnObservable=function(t,e){var n,i=this,r=t.subscribe((function(t){n=t,i.send(d(t,{origin:e}))}),(function(t){i.removeChild(e),i.send(d(O(e,t),{origin:e}))}),(function(){i.removeChild(e),i.send(d(a(e),{origin:e}))})),s={id:e,send:function(){},subscribe:function(e,n,i){return t.subscribe(e,n,i)},stop:function(){return r.unsubscribe()},getSnapshot:function(){return n},toJSON:function(){return{id:e}}};return this.children.set(e,s),s},e.prototype.spawnActor=function(t){return this.children.set(t.id,t),t},e.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(e){var n=e(this.state.context,t);this.spawnEffect(t.id,n)}},e.prototype.spawnEffect=function(t,e){this.children.set(t,{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})},e.prototype.attachDev=function(){var e=K();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var n="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(t(t({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},n),{features:t({jump:!1,skip:!1},n?n.features:void 0)}),this.machine),this.devTools.init(this.state)}Q(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[k]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Y.NotStarted?this.initialState:this._state},e.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:t.console.log.bind(console),devTools:!1}}("undefined"!=typeof self?self:global),e.interpret=tt,e}();function tt(t,e){return new $(t,e)}export{tt as i};
@@ -1 +0,0 @@
1
- import{c as t,g as e,a as r,b as o,d as a,r as n,i,e as s,t as l,m as c,T as u,f as p,j as d,L as f,_ as g}from"./shared-17968c53.js";function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){m(t,e,r[e])}))}return t}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,e,r){return e&&y(t.prototype,e),r&&y(t,r),t}var x=e(t((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})));function k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?k(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}var R={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},C=new(function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(this,t),this.init(e,r)}return w(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||R,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,r,o){return o&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,v({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),E=function(){function t(){b(this,t),this.observers={}}return w(t,[{key:"on",value:function(t,e){var r=this;return t.split(" ").forEach((function(t){r.observers[t]=r.observers[t]||[],r.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(this.observers[t]){var a=[].concat(this.observers[t]);a.forEach((function(t){t.apply(void 0,r)}))}if(this.observers["*"]){var n=[].concat(this.observers["*"]);n.forEach((function(e){e.apply(e,[t].concat(r))}))}}}]),t}();function N(){var t,e,r=new Promise((function(r,o){t=r,e=o}));return r.resolve=t,r.reject=e,r}function _(t){return null==t?"":""+t}function P(t,e,r){t.forEach((function(t){e[t]&&(r[t]=e[t])}))}function z(t,e,r){function o(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function a(){return!t||"string"==typeof t}for(var n="string"!=typeof e?[].concat(e):e.split(".");n.length>1;){if(a())return{};var i=o(n.shift());!t[i]&&r&&(t[i]=new r),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{}}return a()?{}:{obj:t,k:o(n.shift())}}function T(t,e,r){var o=z(t,e,Object);o.obj[o.k]=r}function M(t,e){var r=z(t,e),o=r.obj,a=r.k;if(o)return o[a]}function A(t,e,r){var o=M(t,r);return void 0!==o?o:M(e,r)}function F(t,e,r){for(var o in e)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof e[o]||e[o]instanceof String?r&&(t[o]=e[o]):F(t[o],e[o],r):t[o]=e[o]);return t}function I(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var U={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function H(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return U[t]})):t}var q="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,V=function(t){function e(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return b(this,e),r=S(this,L(e).call(this)),q&&E.call(k(r)),r.data=t||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return j(e,E),w(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,n=[t,e];return r&&"string"!=typeof r&&(n=n.concat(r)),r&&"string"==typeof r&&(n=n.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(n=t.split(".")),M(this.data,n)}},{key:"addResource",value:function(t,e,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=this.options.keySeparator;void 0===n&&(n=".");var i=[t,e];r&&(i=i.concat(n?r.split(n):r)),t.indexOf(".")>-1&&(o=e,e=(i=t.split("."))[1]),this.addNamespaces(e),T(this.data,i,o),a.silent||this.emit("added",t,e,r,o)}},{key:"addResources",value:function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)"string"!=typeof r[a]&&"[object Array]"!==Object.prototype.toString.apply(r[a])||this.addResource(t,e,a,r[a],{silent:!0});o.silent||this.emit("added",t,e,r)}},{key:"addResourceBundle",value:function(t,e,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[t,e];t.indexOf(".")>-1&&(o=r,r=e,e=(i=t.split("."))[1]),this.addNamespaces(e);var s=M(this.data,i)||{};o?F(s,r,a):s=v({},s,r),T(this.data,i,s),n.silent||this.emit("added",t,e,r)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?v({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),e}(),D={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,o,a){var n=this;return t.forEach((function(t){n.processors[t]&&(e=n.processors[t].process(e,r,o,a))})),e}},$={},B=function(t){function e(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(this,e),r=S(this,L(e).call(this)),q&&E.call(k(r)),P(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,k(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=C.create("translator"),r}return j(e,E),w(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,e);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(t,e){var r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,a=e.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var n=t.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:t,namespaces:a};var i=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),t=i.join(o)}return"string"==typeof a&&(a=[a]),{key:t,namespaces:a}}},{key:"translate",value:function(t,r,o){var a=this;if("object"!==h(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=this.extractFromKey(t[t.length-1],r),s=i.key,l=i.namespaces,c=l[l.length-1],u=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var f=this.resolve(t,r),g=f&&f.res,m=f&&f.usedKey||s,b=f&&f.exactUsedKey||s,y=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(k&&g&&S&&w.indexOf(y)<0&&("string"!=typeof x||"[object Array]"!==y)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,r):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(n){var L="[object Array]"===y,O=L?[]:{},j=L?b:m;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var C="".concat(j).concat(n).concat(R);O[R]=this.translate(C,v({},r,{joinArrays:!1,ns:l})),O[R]===C&&(O[R]=g[R])}g=O}}else if(k&&"string"==typeof x&&"[object Array]"===y)(g=g.join(x))&&(g=this.extendTranslation(g,t,r,o));else{var E=!1,N=!1,_=void 0!==r.count&&"string"!=typeof r.count,P=e.hasDefaultValue(r),z=_?this.pluralResolver.getSuffix(u,r.count):"",T=r["defaultValue".concat(z)]||r.defaultValue;!this.isValidLookup(g)&&P&&(E=!0,g=T),this.isValidLookup(g)||(N=!0,g=s);var M=P&&T!==g&&this.options.updateMissing;if(N||E||M){if(this.logger.log(M?"updateKey":"missingKey",u,c,s,M?T:g),n){var A=this.resolve(s,v({},r,{keySeparator:!1}));A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var U=0;U<I.length;U++)F.push(I[U]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(r.lng||this.language):F.push(r.lng||this.language);var H=function(t,e,o){a.options.missingKeyHandler?a.options.missingKeyHandler(t,c,e,M?o:g,M,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(t,c,e,M?o:g,M,r),a.emit("missingKey",t,c,e,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?F.forEach((function(t){a.pluralResolver.getSuffixes(t).forEach((function(e){H([t],s+e,r["defaultValue".concat(e)]||T)}))})):H(F,s,T))}g=this.extendTranslation(g,t,r,f,o),N&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),N&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(t,e,r,o,a){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(v({},r,{interpolation:v({},this.options.interpolation,r.interpolation)}));var i,s=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=t.match(this.interpolator.nestingRegexp);i=l&&l.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=v({},this.options.interpolation.defaultVariables,c)),t=this.interpolator.interpolate(t,c,r.lng||this.language,r),s){var u=t.match(this.interpolator.nestingRegexp);i<(u&&u.length)&&(r.nest=!1)}!1!==r.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return a&&a[0]===o[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(e[0])),null):n.translate.apply(n,o.concat([e]))}),r)),r.interpolation&&this.interpolator.reset()}var p=r.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=t&&d&&d.length&&!1!==r.applyPostProcessor&&(t=D.handle(d,t,e,this.options&&this.options.postProcessPassResolved?v({i18nResolved:o},r):r,this)),t}},{key:"resolve",value:function(t){var e,r,o,a,n,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!i.isValidLookup(e)){var l=i.extractFromKey(t,s),c=l.key;r=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(t){i.isValidLookup(e)||(n=t,!$["".concat(f[0],"-").concat(t)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(n)&&($["".concat(f[0],"-").concat(t)]=!0,i.logger.warn('key "'.concat(r,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(r){if(!i.isValidLookup(e)){a=r;var n,l,u=c,f=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(f,c,r,t,s);else p&&(n=i.pluralResolver.getSuffix(r,s.count)),p&&d&&f.push(u+n),d&&f.push(u+="".concat(i.options.contextSeparator).concat(s.context)),p&&f.push(u+=n);for(;l=f.pop();)i.isValidLookup(e)||(o=l,e=i.getResource(r,t,l,s))}})))}))}})),{res:e,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:n}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,o):this.resourceStore.getResource(t,e,r,o)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e===r.substring(0,e.length)&&void 0!==t[r])return!0;return!1}}]),e}();function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}var W=function(){function t(e){b(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=C.create("languageUtils")}return w(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(t){return t.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=K(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=K(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=K(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,r=this;return t?(t.forEach((function(t){if(!e){var o=r.formatLanguageCode(t);r.options.supportedLngs&&!r.isSupportedCode(o)||(e=o)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var o=r.getLanguagePartFromCode(t);if(r.isSupportedCode(o))return e=o;e=r.options.supportedLngs.find((function(t){if(0===t.indexOf(o))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,e){var r=this,o=this.getFallbackCodes(e||this.options.fallbackLng||[],t),a=[],n=function(t){t&&(r.isSupportedCode(t)?a.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):"string"==typeof t&&n(this.formatLanguageCode(t)),o.forEach((function(t){a.indexOf(t)<0&&n(r.formatLanguageCode(t))})),a}}]),t}(),X=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],J={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function Y(){var t={};return X.forEach((function(e){e.lngs.forEach((function(r){t[r]={numbers:e.nr,plurals:J[e.fc]}}))})),t}var G=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(this,t),this.languageUtils=e,this.options=r,this.logger=C.create("pluralResolver"),this.rules=Y()}return w(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){return this.getSuffixes(t).map((function(t){return e+t}))}},{key:"getSuffixes",value:function(t){var e=this,r=this.getRule(t);return r?r.numbers.map((function(r){return e.getSuffix(t,r)})):[]}},{key:"getSuffix",value:function(t,e){var r=this,o=this.getRule(t);if(o){var a=o.noAbs?o.plurals(e):o.plurals(Math.abs(e)),n=o.numbers[a];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===n?n="plural":1===n&&(n=""));var i=function(){return r.options.prepend&&n.toString()?r.options.prepend+n.toString():n.toString()};return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),t}(),Q=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b(this,t),this.logger=C.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return w(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:H,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?I(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?I(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?I(e.nestingPrefix):e.nestingPrefixEscaped||I("$t("),this.nestingSuffix=e.nestingSuffix?I(e.nestingSuffix):e.nestingSuffixEscaped||I(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,e,r,o){var a,n,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(t){return t.replace(/\$/g,"$$$$")}var u=function(t){if(t.indexOf(s.formatSeparator)<0){var a=A(e,l,t);return s.alwaysFormat?s.format(a,void 0,r):a}var n=t.split(s.formatSeparator),i=n.shift().trim(),c=n.join(s.formatSeparator).trim();return s.format(A(e,l,i),c,r,o)};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return c(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?c(s.escape(t)):c(t)}}].forEach((function(e){for(i=0;a=e.regex.exec(t);){if(void 0===(n=u(a[1].trim())))if("function"==typeof p){var r=p(t,a,o);n="string"==typeof r?r:""}else{if(d){n=a[0];continue}s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(t)),n=""}else"string"==typeof n||s.useRawValueToEscape||(n=_(n));if(t=t.replace(a[0],e.safeValue(n)),e.regex.lastIndex=0,++i>=s.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var r,o,a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=v({},n);function s(t,e){var r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;var o=t.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(o[1]);t=o[0],a=(a=this.interpolate(a,i)).replace(/'/g,'"');try{i=JSON.parse(a),e&&(i=v({},e,i))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(r).concat(a)}return delete i.defaultValue,t}for(i.applyPostProcessor=!1,delete i.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(t){return t.trim()}));r[1]=u.shift(),l=u,c=!0}if((o=e(s.call(this,r[1].trim(),i),i))&&r[0]===t&&"string"!=typeof o)return o;"string"!=typeof o&&(o=_(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce((function(t,e){return a.format(t,e,n.lng,n)}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),t}();var Z=function(t){function e(t,r,o){var a,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return b(this,e),a=S(this,L(e).call(this)),q&&E.call(k(a)),a.backend=t,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=n,a.logger=C.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,n.backend,n),a}return j(e,E),w(e,[{key:"queueLoad",value:function(t,e,r,o){var a=this,n=[],i=[],s=[],l=[];return t.forEach((function(t){var o=!0;e.forEach((function(e){var s="".concat(t,"|").concat(e);!r.reload&&a.store.hasResourceBundle(t,e)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?i.indexOf(s)<0&&i.push(s):(a.state[s]=1,o=!1,i.indexOf(s)<0&&i.push(s),n.indexOf(s)<0&&n.push(s),l.indexOf(e)<0&&l.push(e)))})),o||s.push(t)})),(n.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:o}),{toLoad:n,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(t,e,r){var o=t.split("|"),a=o[0],n=o[1];e&&this.emit("failedLoading",a,n,e),r&&this.store.addResourceBundle(a,n,r),this.state[t]=e?-1:2;var i={};this.queue.forEach((function(r){var o,s,l,c,u,p;o=r.loaded,s=n,c=z(o,[a],Object),u=c.obj,p=c.k,u[p]=u[p]||[],l&&(u[p]=u[p].concat(s)),l||u[p].push(s),function(t,e){for(var r=t.indexOf(e);-1!==r;)t.splice(r,1),r=t.indexOf(e)}(r.pending,t),e&&r.errors.push(e),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){i[t]||(i[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(e){i[t].indexOf(e)<0&&i[t].push(e)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return t.length?this.backend[r](t,e,(function(s,l){s&&l&&a<5?setTimeout((function(){o.read.call(o,t,e,r,a+1,2*n,i)}),n):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(t,e){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var n=this.queueLoad(t,e,o,a);if(!n.toLoad.length)return n.pending.length||a(),null;n.toLoad.forEach((function(t){r.loadOne(t)}))}},{key:"load",value:function(t,e,r){this.prepareLoading(t,e,{},r)}},{key:"reload",value:function(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}},{key:"loadOne",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t.split("|"),a=o[0],n=o[1];this.read(a,n,"read",void 0,void 0,(function(o,i){o&&e.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(a," failed"),o),!o&&i&&e.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(a),i),e.loaded(t,o,i)}))}},{key:"saveMissing",value:function(t,e,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,e,r,o,null,v({},n,{isUpdate:a})),t&&t[0]&&this.store.addResource(t[0],e,r,o))}}]),e}();function tt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===h(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===h(t[2])||"object"===h(t[3])){var r=t[3]||t[2];Object.keys(r).forEach((function(t){e[t]=r[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function et(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function rt(){}var ot=new(function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(b(this,e),t=S(this,L(e).call(this)),q&&E.call(k(t)),t.options=et(r),t.services={},t.logger=C,t.modules={external:[]},o&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,o),S(t,k(t));setTimeout((function(){t.init(r,o)}),0)}return t}return j(e,E),w(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(t){return t?"function"==typeof t?new t:t:null}if("function"==typeof e&&(r=e,e={}),e.whitelist&&!e.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),e.nonExplicitWhitelist&&!e.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=v({},tt(),this.options,et(e)),this.format=this.options.interpolation.format,r||(r=rt),!this.options.isClone){this.modules.logger?C.init(o(this.modules.logger),this.options):C.init(null,this.options);var a=new W(this.options);this.store=new V(this.options.resources,this.options);var n=this.services;n.logger=C,n.resourceStore=this.store,n.languageUtils=a,n.pluralResolver=new G(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new Q(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Z(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t.emit.apply(t,[e].concat(o))})),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new B(this.services,this.options),this.translator.on("*",(function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t.emit.apply(t,[e].concat(o))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var i=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);i.length>0&&"dev"!==i[0]&&(this.options.lng=i[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var c=N(),u=function(){var e=function(e,o){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),c.resolve(o),r(e,o)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt,o=r,a="string"==typeof t?t:this.language;if("function"==typeof t&&(o=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return o();var n=[],i=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){n.indexOf(t)<0&&n.push(t)}))};if(a)i(a);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(t){return i(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return i(t)})),this.services.backendConnector.load(n,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(t,e,r){var o=N();return t||(t=this.languages),e||(e=this.options.ns),r||(r=rt),this.services.backendConnector.reload(t,e,(function(t){o.resolve(),r(t)})),o}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&D.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,e){var r=this;this.isLanguageChangingTo=t;var o=N();this.emit("languageChanging",t);var a=function(t){var a="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);a&&(r.language||(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a)),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(t){!function(t,a){a?(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,o.resolve((function(){return r.t.apply(r,arguments)})),e&&e(t,(function(){return r.t.apply(r,arguments)}))}(t,a)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(t,e){var r=this,o=function t(e,o){var a;if("object"!==h(o)){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];a=r.options.overloadTranslationOptionHandler([e,o].concat(i))}else a=v({},o);return a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns,r.t(e,a)};return"string"==typeof t?o.lng=t:o.lngs=t,o.ns=e,o}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],a=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var i=function(t,r){var o=e.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===o||2===o};if(r.precheck){var s=r.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(o,t)||(!this.services.backendConnector.backend||!(!i(o,t)||a&&!i(n,t)))}},{key:"loadNamespaces",value:function(t,e){var r=this,o=N();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){r.options.ns.indexOf(t)<0&&r.options.ns.push(t)})),this.loadResources((function(t){o.resolve(),e&&e(t)})),o):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var r=N();"string"==typeof t&&(t=[t]);var o=this.options.preload||[],a=t.filter((function(t){return o.indexOf(t)<0}));return a.length?(this.options.preload=o.concat(a),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),!t)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(t,r)}},{key:"cloneInstance",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt,a=v({},this.options,r,{isClone:!0}),n=new e(a),i=["store","services","language"];return i.forEach((function(e){n[e]=t[e]})),n.services=v({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new B(n.services,n.options),n.translator.on("*",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];n.emit.apply(n,[t].concat(r))})),n.init(a,o),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}}]),e}());function at(t){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var nt=[],it=nt.forEach,st=nt.slice;function lt(t){return it.call(st.call(arguments,1),(function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])})),t}function ct(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":at(XMLHttpRequest))}var ut,pt,dt,ft=t((function(t,e){var n;if("function"==typeof fetch&&(void 0!==r&&r.fetch?n=r.fetch:"undefined"!=typeof window&&window.fetch&&(n=window.fetch)),void 0!==o&&("undefined"==typeof window||void 0===window.document)){var i=n||a;i.default&&(i=i.default),e.default=i,t.exports=e.default}})),gt=Object.freeze(Object.assign(Object.create(null),ft,{default:ft}));function ht(t){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?ut=global.fetch:"undefined"!=typeof window&&window.fetch&&(ut=window.fetch)),ct&&("undefined"!=typeof global&&global.XMLHttpRequest?pt=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(pt=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?dt=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(dt=window.ActiveXObject)),ut||!gt||pt||dt||(ut=ft||gt),"function"!=typeof ut&&(ut=void 0);var mt=function(t,e){if(e&&"object"===ht(e)){var r="";for(var o in e)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(e[o]);if(!r)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+r.slice(1)}return t},vt=function(t,e,r,o){return"function"==typeof r&&(o=r,r=void 0),o=o||function(){},ut?function(t,e,r,o){t.queryStringParams&&(e=mt(e,t.queryStringParams));var a=lt({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);r&&(a["Content-Type"]="application/json"),ut(e,lt({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:a},"function"==typeof t.requestOptions?t.requestOptions(r):t.requestOptions)).then((function(t){if(!t.ok)return o(t.statusText||"Error",{status:t.status});t.text().then((function(e){o(null,{status:t.status,data:e})})).catch(o)})).catch(o)}(t,e,r,o):ct||"function"==typeof ActiveXObject?function(t,e,r,o){r&&"object"===ht(r)&&(r=mt("",r).slice(1)),t.queryStringParams&&(e=mt(e,t.queryStringParams));try{var a;(a=pt?new pt:new dt("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",e,1),t.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!t.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var n=t.customHeaders;if(n="function"==typeof n?n():n)for(var i in n)a.setRequestHeader(i,n[i]);a.onreadystatechange=function(){a.readyState>3&&o(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(r)}catch(t){console&&console.log(t)}}(t,e,r,o):void 0};function bt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yt(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var wt=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,e,r){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},e,r||"")},request:vt,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},xt=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};bt(this,t),this.services=e,this.options=r,this.allOptions=o,this.type="backend",this.init(e,r,o)}var e,r,o;return e=t,(r=[{key:"init",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=lt(r,this.options||{},wt()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval((function(){return e.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(t,e,r){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath(t,e));var a=this.services.interpolator.interpolate(o,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(a,r,t,e)}},{key:"read",value:function(t,e,r){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath([t],[e]));var a=this.services.interpolator.interpolate(o,{lng:t,ns:e});this.loadUrl(a,r,t,e)}},{key:"loadUrl",value:function(t,e,r,o){var a=this;this.options.request(this.options,t,void 0,(function(n,i){if(i&&(i.status>=500&&i.status<600||!i.status))return e("failed loading "+t+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return e("failed loading "+t+"; status code: "+i.status,!1);if(!i&&n&&n.message&&n.message.indexOf("Failed to fetch")>-1)return e("failed loading "+t+": "+n.message,!0);if(n)return e(n,!1);var s,l;try{s="string"==typeof i.data?a.options.parse(i.data,r,o):i.data}catch(e){l="failed parsing "+t+" to json"}if(l)return e(l,!1);e(null,s)}))}},{key:"create",value:function(t,e,r,o,a){var n=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var i=this.options.parsePayload(e,r,o),s=0,l=[],c=[];t.forEach((function(r){var o=n.options.addPath;"function"==typeof n.options.addPath&&(o=n.options.addPath(r,e));var u=n.services.interpolator.interpolate(o,{lng:r,ns:e});n.options.request(n.options,u,i,(function(e,r){s+=1,l.push(e),c.push(r),s===t.length&&a&&a(l,c)}))}))}}},{key:"reload",value:function(){var t=this,e=this.services,r=e.backendConnector,o=e.languageUtils,a=e.logger,n=r.language;if(!n||"cimode"!==n.toLowerCase()){var i=[],s=function(t){o.toResolveHierarchy(t).forEach((function(t){i.indexOf(t)<0&&i.push(t)}))};s(n),this.allOptions.preload&&this.allOptions.preload.forEach((function(t){return s(t)})),i.forEach((function(e){t.allOptions.ns.forEach((function(t){r.read(e,t,"read",null,null,(function(o,n){o&&a.warn("loading namespace ".concat(t," for language ").concat(e," failed"),o),!o&&n&&a.log("loaded namespace ".concat(t," for language ").concat(e),n),r.loaded("".concat(e,"|").concat(t),o,n)}))}))}))}}}])&&yt(e.prototype,r),o&&yt(e,o),t}();xt.type="backend";var kt=function(){return n.Date.now()},St=/\s/;var Lt=/^\s+/;function Ot(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&St.test(t.charAt(e)););return e}(t)+1).replace(Lt,""):t}var jt=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,Ct=/^0o[0-7]+$/i,Et=parseInt;function Nt(t){if("number"==typeof t)return t;if(i(t))return NaN;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ot(t);var r=Rt.test(t);return r||Ct.test(t)?Et(t.slice(2),r?2:8):jt.test(t)?NaN:+t}var _t=Math.max,Pt=Math.min;function zt(t,e,r){var o,a,n,i,l,c,u=0,p=!1,d=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var r=o,n=a;return o=a=void 0,u=e,i=t.apply(n,r)}function h(t){return u=t,l=setTimeout(v,e),p?g(t):i}function m(t){var r=t-c;return void 0===c||r>=e||r<0||d&&t-u>=n}function v(){var t=kt();if(m(t))return b(t);l=setTimeout(v,function(t){var r=e-(t-c);return d?Pt(r,n-(t-u)):r}(t))}function b(t){return l=void 0,f&&o?g(t):(o=a=void 0,i)}function y(){var t=kt(),r=m(t);if(o=arguments,a=this,c=t,r){if(void 0===l)return h(c);if(d)return clearTimeout(l),l=setTimeout(v,e),g(c)}return void 0===l&&(l=setTimeout(v,e)),i}return e=Nt(e)||0,s(r)&&(p=!!r.leading,n=(d="maxWait"in r)?_t(Nt(r.maxWait)||0,e):n,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=a=l=void 0},y.flush=function(){return void 0===l?i:b(kt())},y}const Tt=Object.entries({sm:640,md:768,lg:1024,xl:1280}),Mt=t=>class extends t{constructor(){super(...arguments),this.__handleResize=zt((t=>{t.forEach((({contentRect:t,target:e})=>{Tt.forEach((([r,o])=>{t.width>=o?e.hasAttribute(r)||e.setAttribute(r,""):e.hasAttribute(r)&&e.removeAttribute(r)}))}))}),16)}connectedCallback(){super.connectedCallback();const t=new ResizeObserver(this.__handleResize);t.observe(this),this.__removeBreakpoints=()=>t.disconnect()}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.__removeBreakpoints)||void 0===t||t.call(this),this.__handleResize.cancel()}},At=new WeakMap;let Ft=Math.round(1e5*Math.random());const It=new RegExp("[a-z](-|\\.|[0-9]|[a-z])*-(-|\\.|[0-9]|[a-z])*"),Ut=(t,e)=>{const r=`${t}-${Ft+=1}`;return((t,e)=>!!e.get(t))(r,e)?Ut(t,e):r};function Ht(t,e=customElements){if(r=t,null===It.exec(r))throw new Error("tagName is invalid");var r;return Ut(t,e)}const qt=new Map,Vt=(t,e)=>qt.set(e,t),Dt=(t,e,r=customElements)=>{Vt(t,e),r.define(t,class extends e{})},$t=(t,e,r)=>{const o=customElements;if(!(t=>Object.prototype.isPrototypeOf.call(HTMLElement,t))(e))return((t,e,r)=>{const o=Ht(t,e);if(!r)throw new Error("Lazy scoped elements requires the use of tags cache");return r.set(t,o),o})(t,o,r);if(e===customElements.get(t))return Vt(t,e),t;const a=Ht(t,o);return Dt(a,e,o),a};function Bt(t,e,r){return(t=>qt.get(t))(e)||r&&r.get(t)||$t(t,e,r)}const Kt="-|\\.|[0-9]|[a-z]",Wt=new RegExp(`<\\/?([a-z](${Kt})*-(${Kt})*)`,"g"),Xt=new Map,Jt=(t,e,r,o)=>{const a=t.map((t=>{let r=t;const a=(t=>{const e=[];let r;for(;null!==(r=Wt.exec(t));)e.push(r);return e})(t);for(let t=a.length-1;t>=0;t-=1){const n=a[t],[i,s]=n,l=Bt(s,e[s],o),c=n.index+i.length-s.length,u=c+s.length,p=0===i.indexOf("</");r=r.slice(0,c)+(p?l:`${l} data-tag-name="${s}"`)+r.slice(u)}return r}));return r.set(t,a),a};let Yt=!0;const{ShadyCSS:Gt}=window;(void 0===Gt||void 0===Gt.prepareTemplateDom)&&(Yt=!1);const Qt=new WeakMap,Zt=new WeakMap,te=t=>(Zt.has(t)||Zt.set(t,new Map),Zt.get(t)),ee=(t,e,r,o)=>t.map((t=>t instanceof p?re(t,e,r,o):Array.isArray(t)?ee(t,e,r,o):t)),re=(t,e,r,o)=>new p(function(t,e,r=Xt,o){return r.get(t)||Jt(t,e,r,o)}(t.strings,e,r,o),ee(t.values,e,r,o),t.type,t.processor),oe=(t,e,r,o)=>a=>{const n=re(a,e,r,o);return(t=>e=>{const r=((t,e)=>`${t}--${e}`)(e.type,t);let o=l.get(r);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},l.set(r,o));let a=o.stringsArray.get(e.strings);if(void 0!==a)return a;const n=e.strings.join(c);if(a=o.keyString.get(n),void 0===a){const r=e.getTemplateElement();Yt&&Gt.prepareTemplateDom(r,t),a=new u(e,r),o.keyString.set(n,a)}return o.stringsArray.set(e.strings,a),a})(t)(n)},ae=(ne=t=>class extends t{static get scopedElements(){return{}}static render(t,e,r){if(!r||"object"!=typeof r||!r.scopeName)throw new Error("The `scopeName` option is required.");const{scopeName:o}=r,a=(n=this,Qt.has(n)||Qt.set(n,new Map),Qt.get(n));var n;const i=te(this),{scopedElements:s}=this;return super.render(t,e,{...r,templateFactory:oe(o,s,a,i)})}defineScopedElement(t,e){return function(t,e,r){const o=r.get(t);o?void 0===customElements.get(o)&&Dt(o,e,customElements):r.set(t,Bt(t,e,r))}(t,e,te(this.constructor))}static getScopedTagName(t){const e=this.scopedElements[t];return e?Bt(t,e,te(this)):te(this).get(t)}},t=>{if(function(t,e){let r=e;for(;r;){if(At.get(r)===t)return!0;r=Object.getPrototypeOf(r)}return!1}(ne,t))return t;const e=ne(t);return At.set(e,ne),e});var ne;let ie,se=t=>t;const le=t=>class extends t{static get styles(){const t=super.styles;return[...t?Array.isArray(t)?t:[t]:[],d(ie||(ie=se`/*! tailwindcss v2.2.4 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,::after,::before{box-sizing:border-box}html{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,::after,::before{border-color:currentColor}*{-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host{display:block}details>summary::-webkit-details-marker{display:none}details>summary{list-style:none}vaadin-select{margin-top:-4px;margin-bottom:-4px}vaadin-combo-box::part(text-field),vaadin-custom-field,vaadin-date-picker,vaadin-email-field,vaadin-integer-field,vaadin-number-field,vaadin-password-field,vaadin-text-area,vaadin-text-field{padding-top:0;padding-bottom:0}vaadin-date-picker::part(text-field){padding-top:0;padding-bottom:0}vaadin-button{margin:0}vaadin-checkbox::part(checkbox){margin:0}vaadin-checkbox::part(label){margin:.1875em var(--lumo-space-m)}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.appearance-none::-webkit-calendar-picker-indicator,.appearance-none::-webkit-inner-spin-button,.appearance-none::-webkit-list-button,.appearance-none::-webkit-outer-spin-button{opacity:0!important;width:0!important;margin:0!important;padding:0!important}input::-webkit-date-and-time-value{text-align:inherit!important}.container{width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.top-0{top:0}.top{top:var(--lumo-space-m,1rem)}.right-0{right:0}.right{right:var(--lumo-space-m,1rem)}.bottom{bottom:var(--lumo-space-m,1rem)}.left{left:var(--lumo-space-m,1rem)}.isolate{isolation:isolate}.z-50{z-index:50}.order-1{order:1}:host([sm]) .sm-order-1{order:1}.col-span-2{grid-column:span 2/span 2}.float-left{float:left}.m-auto{margin:auto}.m-xs{margin:var(--lumo-space-xs,.25rem)}.m-s{margin:var(--lumo-space-s,.5rem)}.m-m{margin:var(--lumo-space-m,1rem)}.m-l{margin:var(--lumo-space-l,1.5rem)}.m{margin:var(--lumo-space-m,1rem)}.-m-s{margin:calc(var(--lumo-space-s,.5rem) * -1)}:host([sm]) .sm-m-xl{margin:var(--lumo-space-xl,2.5rem)}.mx-auto{margin-left:auto;margin-right:auto}.mx-xs{margin-left:var(--lumo-space-xs,.25rem);margin-right:var(--lumo-space-xs,.25rem)}.mx-m{margin-left:var(--lumo-space-m,1rem);margin-right:var(--lumo-space-m,1rem)}.-mx-xs{margin-left:calc(var(--lumo-space-xs,.25rem) * -1);margin-right:calc(var(--lumo-space-xs,.25rem) * -1)}.-mx-s{margin-left:calc(var(--lumo-space-s,.5rem) * -1);margin-right:calc(var(--lumo-space-s,.5rem) * -1)}.my-xs{margin-top:var(--lumo-space-xs,.25rem);margin-bottom:var(--lumo-space-xs,.25rem)}.my-s{margin-top:var(--lumo-space-s,.5rem);margin-bottom:var(--lumo-space-s,.5rem)}.my-m{margin-top:var(--lumo-space-m,1rem);margin-bottom:var(--lumo-space-m,1rem)}.my{margin-top:var(--lumo-space-m,1rem);margin-bottom:var(--lumo-space-m,1rem)}.-my-xs{margin-top:calc(var(--lumo-space-xs,.25rem) * -1);margin-bottom:calc(var(--lumo-space-xs,.25rem) * -1)}.mt-0{margin-top:0}.mt-xs{margin-top:var(--lumo-space-xs,.25rem)}.mt-s{margin-top:var(--lumo-space-s,.5rem)}.mt-m{margin-top:var(--lumo-space-m,1rem)}.mt-xl{margin-top:var(--lumo-space-xl,2.5rem)}.-mt-xs{margin-top:calc(var(--lumo-space-xs,.25rem) * -1)}.-mt-m{margin-top:calc(var(--lumo-space-m,1rem) * -1)}.mr-auto{margin-right:auto}.mr-xs{margin-right:var(--lumo-space-xs,.25rem)}.mr-s{margin-right:var(--lumo-space-s,.5rem)}.mr-m{margin-right:var(--lumo-space-m,1rem)}.mr-l{margin-right:var(--lumo-space-l,1.5rem)}.mr-xl{margin-right:var(--lumo-space-xl,2.5rem)}.-mr-s{margin-right:calc(var(--lumo-space-s,.5rem) * -1)}.mb-xs{margin-bottom:var(--lumo-space-xs,.25rem)}.mb-s{margin-bottom:var(--lumo-space-s,.5rem)}.mb-m{margin-bottom:var(--lumo-space-m,1rem)}.mb-l{margin-bottom:var(--lumo-space-l,1.5rem)}.-mb-xs{margin-bottom:calc(var(--lumo-space-xs,.25rem) * -1)}.ml-auto{margin-left:auto}.ml-s{margin-left:var(--lumo-space-s,.5rem)}.ml-m{margin-left:var(--lumo-space-m,1rem)}:host([sm]) .sm-mt-0{margin-top:0}:host([sm]) .sm-mr-s{margin-right:var(--lumo-space-s,.5rem)}:host([sm]) .sm-mb-0{margin-bottom:0}:host([sm]) .sm-ml-s{margin-left:var(--lumo-space-s,.5rem)}:host([sm]) .sm-ml-m{margin-left:var(--lumo-space-m,1rem)}:host([md]) .md-mr-s{margin-right:var(--lumo-space-s,.5rem)}:host([md]) .md-mb-0{margin-bottom:0}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}:host([sm]) .sm-block{display:block}:host([sm]) .sm-flex{display:flex}:host([sm]) .sm-table-cell{display:table-cell}:host([md]) .md-flex{display:flex}:host([md]) .md-table-cell{display:table-cell}:host([lg]) .lg-table-cell{display:table-cell}:host([xl]) .xl-table-cell{display:table-cell}.h-auto{height:auto}.h-xxs{height:var(--lumo-size-xxs,1.5rem)}.h-xs{height:var(--lumo-size-xs,1.625rem)}.h-s{height:var(--lumo-size-s,1.875rem)}.h-m{height:var(--lumo-size-m,2.25rem)}.h-l{height:var(--lumo-size-l,2.75rem)}.h-xl{height:var(--lumo-size-xl,3.5rem)}.h-full{height:100%}:host([sm]) .sm-h-m{height:var(--lumo-size-m,2.25rem)}.min-h-0{min-height:0}.w-auto{width:auto}.w-xxs{width:var(--lumo-size-xxs,1.5rem)}.w-s{width:var(--lumo-size-s,1.875rem)}.w-m{width:var(--lumo-size-m,2.25rem)}.w-l{width:var(--lumo-size-l,2.75rem)}.w-xl{width:var(--lumo-size-xl,3.5rem)}.w-1-3{width:33.333333%}.w-2-3{width:66.666667%}.w-full{width:100%}:host([sm]) .sm-w-auto{width:auto}:host([sm]) .sm-w-l{width:var(--lumo-size-l,2.75rem)}:host([md]) .md-w-auto{width:auto}:host([md]) .md-w-1-2{width:50%}.min-w-0{min-width:0}.max-w-0{max-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.table-fixed{table-layout:fixed}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.origin-top-right{transform-origin:top right}.origin-bottom-right{transform-origin:bottom right}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-top-left{transform-origin:top left}:host([sm]) .sm-origin-center{transform-origin:center}.translate-x-0{--tw-translate-x:0}.translate-x-l{--tw-translate-x:var(--lumo-space-l, 1.5rem)}.translate-y-0{--tw-translate-y:0}.-translate-y-s{--tw-translate-y:calc(var(--lumo-space-s, 0.5rem) * -1)}.-translate-y-m{--tw-translate-y:calc(var(--lumo-space-m, 1rem) * -1)}.-translate-y-l{--tw-translate-y:calc(var(--lumo-space-l, 1.5rem) * -1)}.translate-y-full{--tw-translate-y:100%}:host([sm]) .sm-translate-x-full{--tw-translate-x:100%}:host([sm]) .sm-translate-y-0{--tw-translate-y:0}.rotate-12{--tw-rotate:12deg}.-rotate-12{--tw-rotate:-12deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}:host([sm]) .sm-scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}@media (hover:hover){.group:hover .group-hover-scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{100%,75%{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,100%{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.disabled-cursor-default:disabled{cursor:default}.select-none{user-select:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}:host([sm]) .sm-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}:host([sm]) .sm-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}:host([sm]) .sm-flex-row{flex-direction:row}:host([md]) .md-flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}:host([sm]) .sm-items-start{align-items:flex-start}:host([sm]) .sm-items-end{align-items:flex-end}:host([sm]) .sm-items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-s{gap:var(--lumo-space-s,.5rem)}.gap-m{gap:var(--lumo-space-m,1rem)}.gap-l{gap:var(--lumo-space-l,1.5rem)}.gap{gap:var(--lumo-space-m,1rem)}.space-x-xs>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-xs,.25rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-xs,.25rem) * calc(1 - var(--tw-space-x-reverse)))}.space-x-s>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-s,.5rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-s,.5rem) * calc(1 - var(--tw-space-x-reverse)))}.space-x-m>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-m,1rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-m,1rem) * calc(1 - var(--tw-space-x-reverse)))}.space-y-xs>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-xs,.25rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-xs,.25rem) * var(--tw-space-y-reverse))}.space-y-s>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-s,.5rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-s,.5rem) * var(--tw-space-y-reverse))}.space-y-m>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-m,1rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-m,1rem) * var(--tw-space-y-reverse))}.space-y-l>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-l,1.5rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-l,1.5rem) * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-transparent>:not([hidden])~:not([hidden]){border-color:transparent}.divide-contrast-10>:not([hidden])~:not([hidden]){border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-s{border-radius:var(--lumo-border-radius-s,.25em)}.rounded-full{border-radius:100%}.rounded{border-radius:var(--lumo-border-radius-m,.5em)}.rounded-t-l{border-top-left-radius:var(--lumo-border-radius-l,.75em);border-top-right-radius:var(--lumo-border-radius-l,.75em)}.rounded-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}:host([sm]) .sm-rounded-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}:host([md]) .md-border-r{border-right-width:1px}.border-dashed{border-style:dashed}.border-transparent{border-color:transparent}.border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.border-contrast-20{border-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.border-contrast-50{border-color:var(--lumo-contrast-50pct,hsla(214,45%,20%,.5))}.border-contrast{border-color:var(--lumo-contrast,#182433)}.border-primary{border-color:var(--lumo-primary-color,#1675f2)}.border-error{border-color:var(--lumo-error-color,#fe4238)}:host([md]) .md-border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}@media (hover:hover){.hover-border-contrast-30:hover{border-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.hover-border-primary-10:hover{border-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}}.focus-border-primary:focus{border-color:var(--lumo-primary-color,#1675f2)}.bg-transparent{background-color:transparent}.bg-base{background-color:var(--lumo-base-color,#fff)}.bg-tint{background-color:var(--lumo-tint,#fff)}.bg-shade-50{background-color:var(--lumo-shade-50pct,hsla(214,45%,20%,.5))}.bg-contrast-5{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.bg-contrast-10{background-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.bg-contrast-20{background-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.bg-contrast{background-color:var(--lumo-contrast,#182433)}.bg-primary-10{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.bg-primary-50{background-color:var(--lumo-primary-color-50pct,hsla(214,90%,52%,.5))}.bg-primary{background-color:var(--lumo-primary-color,#1675f2)}.bg-error-10{background-color:var(--lumo-error-color-10pct,hsla(3,100%,60%,.1))}.bg-error{background-color:var(--lumo-error-color,#fe4238)}.bg-success-10{background-color:var(--lumo-success-color-10pct,hsla(145,76%,44%,.12))}.bg-success{background-color:var(--lumo-success-color,#15c05c)}@media (hover:hover){.group:hover .group-hover-bg-contrast-5{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.group:hover .group-hover-bg-contrast-30{background-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}}@media (hover:hover){.hover-bg-contrast-5:hover{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.hover-bg-contrast-10:hover{background-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.hover-bg-primary-10:hover{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.object-cover{object-fit:cover}.p-0{padding:0}.p-xs{padding:var(--lumo-space-xs,.25rem)}.p-s{padding:var(--lumo-space-s,.5rem)}.p-m{padding:var(--lumo-space-m,1rem)}.p-l{padding:var(--lumo-space-l,1.5rem)}.p{padding:var(--lumo-space-m,1rem)}:host([sm]) .sm-p-0{padding:0}.px-xs{padding-left:var(--lumo-space-xs,.25rem);padding-right:var(--lumo-space-xs,.25rem)}.px-s{padding-left:var(--lumo-space-s,.5rem);padding-right:var(--lumo-space-s,.5rem)}.px-m{padding-left:var(--lumo-space-m,1rem);padding-right:var(--lumo-space-m,1rem)}.py-xs{padding-top:var(--lumo-space-xs,.25rem);padding-bottom:var(--lumo-space-xs,.25rem)}.py-s{padding-top:var(--lumo-space-s,.5rem);padding-bottom:var(--lumo-space-s,.5rem)}.pt-s{padding-top:var(--lumo-space-s,.5rem)}.pt-m{padding-top:var(--lumo-space-m,1rem)}.pr-m{padding-right:var(--lumo-space-m,1rem)}.pb-s{padding-bottom:var(--lumo-space-s,.5rem)}.pb-m{padding-bottom:var(--lumo-space-m,1rem)}.pl-xs{padding-left:var(--lumo-space-xs,.25rem)}.pl-s{padding-left:var(--lumo-space-s,.5rem)}.pl-m{padding-left:var(--lumo-space-m,1rem)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}:host([sm]) .sm-text-left{text-align:left}:host([sm]) .sm-text-right{text-align:right}:host([md]) .md-text-left{text-align:left}.font-lumo{font-family:var(--lumo-font-family, -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol")}.text-xxs{font-size:var(--lumo-font-size-xxs,.75rem)}.text-xs{font-size:var(--lumo-font-size-xs,.8125rem)}.text-s{font-size:var(--lumo-font-size-s,.875rem)}.text-m{font-size:var(--lumo-font-size-m,1rem)}.text-l{font-size:var(--lumo-font-size-l,1.125rem)}.text-xl{font-size:var(--lumo-font-size-xl,1.375rem)}.text-xxl{font-size:var(--lumo-font-size-xxl,1.75rem)}.text-xxxl{font-size:var(--lumo-font-size-xxxl,2.5rem)}:host([sm]) .sm-text-l{font-size:var(--lumo-font-size-l,1.125rem)}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}:host([sm]) .sm-normal-case{text-transform:none}.leading-none{line-height:1}.leading-xs{line-height:var(--lumo-line-height-xs,1.25)}.leading-s{line-height:var(--lumo-line-height-s,1.375)}.leading-m{line-height:var(--lumo-line-height-m,1.625)}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}:host([sm]) .sm-tracking-normal{letter-spacing:0}.text-transparent{color:transparent}.text-base{color:var(--lumo-base-color,#fff)}.text-tint{color:var(--lumo-tint,#fff)}.text-contrast-20{color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.text-contrast-30{color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.text-contrast{color:var(--lumo-contrast,#182433)}.text-primary{color:var(--lumo-primary-text-color,#1675f2)}.text-primary-contrast{color:var(--lumo-primary-contrast-color,#fff)}.text-error{color:var(--lumo-error-text-color,#f52318)}.text-success{color:var(--lumo-success-text-color,#00a344)}.text-header{color:var(--lumo-header-text-color,#182433)}.text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.text-disabled{color:var(--lumo-disabled-text-color,hsla(214,50%,22%,.26))}.text-secondary{color:var(--lumo-secondary-text-color,hsla(214,42%,18%,.72))}.text-tertiary{color:var(--lumo-tertiary-text-color,hsla(214,45%,20%,.5))}:host([sm]) .sm-text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}@media (hover:hover){.hover-text-primary:hover{color:var(--lumo-primary-text-color,#1675f2)}.hover-text-error:hover{color:var(--lumo-error-text-color,#f52318)}.hover-text-body:hover{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.hover-text-secondary:hover{color:var(--lumo-secondary-text-color,hsla(214,42%,18%,.72))}}.focus-text-primary:focus{color:var(--lumo-primary-text-color,#1675f2)}.focus-text-body:focus{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.disabled-text-tertiary:disabled{color:var(--lumo-tertiary-text-color,hsla(214,45%,20%,.5))}@media (hover:hover){.hover-underline:hover{text-decoration:underline}}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-100{opacity:1}:host([sm]) .sm-opacity-0{opacity:0}.focus-opacity-100:focus{opacity:1}.disabled-opacity-50:disabled{opacity:.5}*,::after,::before{--tw-shadow:0 0 #0000}.shadow-xs{--tw-shadow:var(--lumo-box-shadow-xs, 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-m{--tw-shadow:var(--lumo-box-shadow-m, 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xxl{--tw-shadow:var(--lumo-box-shadow-xxl, 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}@media (hover:hover){.group:hover .group-hover-shadow-s{--tw-shadow:var(--lumo-box-shadow-s, 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}.focus-within-shadow-outline:focus-within{--tw-shadow:0 0 0 2px var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-within-shadow-outline-success:focus-within{--tw-shadow:0 0 0 2px var(--lumo-success-color-50pct, hsla(145, 76%, 44%, 0.55));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-within-shadow-outline-error:focus-within{--tw-shadow:0 0 0 2px var(--lumo-error-color-50pct, hsla(3, 100%, 60%, 0.1));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-shadow-outline:focus{--tw-shadow:0 0 0 2px var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,::after,::before{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}.focus-within-ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-ring-inset:focus{--tw-ring-inset:inset}.ring-primary-50{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.focus-within-ring-primary-50:focus-within{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.focus-ring-primary-50:focus{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.ring-offset-4{--tw-ring-offset-width:4px}.focus-ring-offset-2:focus{--tw-ring-offset-width:2px}.ring-offset-base{--tw-ring-offset-color:var(--lumo-base-color, #fff)}.filter{--tw-blur:var(--tw-empty, );/*!*//*!*/--tw-brightness:var(--tw-empty, );/*!*//*!*/--tw-contrast:var(--tw-empty, );/*!*//*!*/--tw-grayscale:var(--tw-empty, );/*!*//*!*/--tw-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-invert:var(--tw-empty, );/*!*//*!*/--tw-saturate:var(--tw-empty, );/*!*//*!*/--tw-sepia:var(--tw-empty, );/*!*//*!*/--tw-drop-shadow:var(--tw-empty, );/*!*//*!*/filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur:blur(8px)}.grayscale{--tw-grayscale:grayscale(100%)}.backdrop-filter{--tw-backdrop-blur:var(--tw-empty, );/*!*//*!*/--tw-backdrop-brightness:var(--tw-empty, );/*!*//*!*/--tw-backdrop-contrast:var(--tw-empty, );/*!*//*!*/--tw-backdrop-grayscale:var(--tw-empty, );/*!*//*!*/--tw-backdrop-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-backdrop-invert:var(--tw-empty, );/*!*//*!*/--tw-backdrop-opacity:var(--tw-empty, );/*!*//*!*/--tw-backdrop-saturate:var(--tw-empty, );/*!*//*!*/--tw-backdrop-sepia:var(--tw-empty, );/*!*//*!*/backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.duration-100{transition-duration:.1s}.duration-150{transition-duration:150ms}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.border-radius-overflow-fix{-webkit-mask-image:-webkit-radial-gradient(white,#000)}.grid-rows-auto{grid-auto-rows:1fr}.icon-inline{--iron-icon-height:1em;--iron-icon-width:1em}.bg-blurred{backdrop-filter:blur(25px);background:var(--lumo-tint-80pct)}.max-w-modal{max-width:28rem}.w-narrow-modal{width:18rem}.snap-x-mandatory{scroll-snap-type:x mandatory}.snap-start{scroll-snap-align:start}:host([sm]) .sm-max-w-modal{max-width:28rem}:host([sm]) .sm-w-narrow-modal{width:18rem}`))]}};class ce extends(ae(Mt(le(f)))){}let ue="";try{ue="https://static.www.foxycart.com/beta/foxy-elements/0.3.0"}catch(t){}class pe extends ce{constructor(t="global"){super(),this.__lang=this._i18n.options.fallbackLng[0],this.__ns=this._i18n.options.fallbackNS[0],this.ns=t,this._whenI18nReady.then((()=>this.requestUpdate()))}static get properties(){return g(g({},super.properties),{},{lang:{type:String,noAccessor:!0},ns:{type:String,noAccessor:!0}})}get lang(){return this.__lang}set lang(t){t&&"undefined"!==t&&(this.__lang=t,this._i18n.loadLanguages(t).then((()=>{this.__lang===t&&this.requestUpdate()})))}get ns(){return this.__ns}set ns(t){this.__ns=t,this._i18n.loadNamespaces(t).then((()=>{this.__ns===t&&this.requestUpdate()}))}static __initI18N(){return this.__i18n=ot.createInstance(),this.__i18n.use(xt),this.__whenI18NReady=this.__i18n.init({ns:["global"],supportedLngs:["nl","en","es","sv","fi","fr","de","zh","no","it"],interpolation:{format:pe.__f},fallbackLng:"en",fallbackNS:"global",defaultNS:"global",detection:{order:["querystring","navigator","htmlTag","path","subdomain"],caches:[]},backend:{loadPath:`${ue}/translations/{{ns}}/{{lng}}.json`}}),this.__whenI18NReady.then((()=>this.__isI18NReady=!0)),this.__i18n}get _i18n(){var t;return null!==(t=pe.__i18n)&&void 0!==t?t:pe.__initI18N()}get _whenI18nReady(){return pe.__whenI18NReady}get _isI18nReady(){return pe.__isI18NReady}get _t(){const t=[this.__ns,this._i18n.options.fallbackNS];return this._i18n.getFixedT(this.__lang,t)}}pe.__fLowercase=t=>t.toLowerCase(),pe.__fList=t=>t.map(((t,e,r)=>{if(0===e)return t;return`${e===r.length-1?" $t(and) ":","} ${t}`})).join(""),pe.__f=(...t)=>{var e,r;const o=t[0];return(null!==(r=null===(e=t[1])||void 0===e?void 0:e.split(" "))&&void 0!==r?r:[]).reduce(((t,e)=>{switch(e){case"lowercase":return pe.__fLowercase(t);case"list":return pe.__fList(t);default:return t}}),o)},pe.__isI18NReady=!1;const de=(t,e="")=>class extends t{constructor(){super(...arguments),this.lang="",this.ns=e,this.t=(t,r)=>{const o=customElements.get("foxy-i18n");if(!o)return t;const a=[...[e,...this.ns.split(" ").reverse()].map((t=>t.trim())).filter(((t,e,r)=>r.indexOf(t)===e&&t.length>0)).reverse().map(((e,r,o)=>`${e}:${[...o.slice(r+1),t].join(".")}`)),`shared:${t}`];return o.i18next.t(a,r).toString()}}static get properties(){return g(g({},super.properties),{},{lang:{type:String},ns:{type:String}})}static get defaultNS(){return e}connectedCallback(){super.connectedCallback();const t=customElements.get("foxy-i18n");this.__untrackTranslations=null==t?void 0:t.onTranslationChange((()=>this.requestUpdate()))}updated(t){super.updated(t);const e=customElements.get("foxy-i18n");e&&(t.has("lang")&&e.i18next.loadLanguages(this.lang),t.has("ns")&&e.i18next.loadNamespaces(this.ns.split(" ")))}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.__untrackTranslations)||void 0===t||t.call(this)}};export{Mt as R,ae as S,le as T,de as a,ce as b,pe as c,zt as d,ot as i,Nt as t};
@@ -1 +0,0 @@
1
- import{c as e,a as t,b as r}from"./shared-17968c53.js";var n=e((function(e,n){e.exports=function(){function e(t,n,i){function a(s,u){if(!n[s]){if(!t[s]){var c="function"==typeof r&&r;if(!u&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var p=n[s]={exports:{}};t[s][0].call(p.exports,(function(e){return a(t[s][1][e]||e)}),p,p.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof r&&r,s=0;s<i.length;s++)a(i[s]);return a}return e}()({1:[function(e,t,r){const n=e("./utils"),i=function(){const e=n.stringToArray,t=["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],r=["Zeroth","First","Second","Third","Fourth","Fifth","Sixth","Seventh","Eighth","Ninth","Tenth","Eleventh","Twelfth","Thirteenth","Fourteenth","Fifteenth","Sixteenth","Seventeenth","Eighteenth","Nineteenth"],i=["Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety","Hundred"],a=["Thousand","Million","Billion","Trillion"];function o(e,n){var o=function(e,n,s){var u="";if(e<=19)u=(n?" and ":"")+(s?r[e]:t[e]);else if(e<100){const t=Math.floor(e/10),r=e%10;u=(n?" and ":"")+i[t-2],r>0?u+="-"+o(r,!1,s):s&&(u=u.substring(0,u.length-1)+"ieth")}else if(e<1e3){const r=Math.floor(e/100),i=e%100;u=(n?", ":"")+t[r]+" Hundred",i>0?u+=o(i,!0,s):s&&(u+="th")}else{var c=Math.floor(Math.log10(e)/3);c>a.length&&(c=a.length);const t=Math.pow(10,3*c),r=Math.floor(e/t),i=e-r*t;u=(n?", ":"")+o(r,!1,!1)+" "+a[c-1],i>0?u+=o(i,!0,s):s&&(u+="th")}return u};return o(e,!1,n)}const s={};function u(e){const t=e.split(/,\s|\sand\s|[\s\\-]/).map((e=>s[e]));let r=[0];return t.forEach((e=>{if(e<100){let t=r.pop();t>=1e3&&(r.push(t),t=0),r.push(t+e)}else r.push(r.pop()*e)})),r.reduce(((e,t)=>e+t),0)}t.forEach((function(e,t){s[e.toLowerCase()]=t})),r.forEach((function(e,t){s[e.toLowerCase()]=t})),i.forEach((function(e,t){const r=e.toLowerCase();s[r]=10*(t+2),s[r.substring(0,e.length-1)+"ieth"]=s[r]})),s.hundredth=100,a.forEach((function(e,t){const r=e.toLowerCase(),n=Math.pow(10,3*(t+1));s[r]=n,s[r+"th"]=n}));const c=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]],l={M:1e3,D:500,C:100,L:50,X:10,V:5,I:1};function p(e){for(var t=0;t<c.length;t++){const r=c[t];if(e>=r[0])return r[1]+p(e-r[0])}return""}function f(e){for(var t=0,r=1,n=e.length-1;n>=0;n--){const i=e[n],a=l[i];a<r?t-=a:(r=a,t+=a)}return t}function d(e,t){for(var r=[],n=t.charCodeAt(0);e>0;)r.unshift(String.fromCharCode((e-1)%26+n)),e=Math.floor((e-1)/26);return r.join("")}function h(e,t){for(var r=t.charCodeAt(0),n=0,i=0;i<e.length;i++)n+=(e.charCodeAt(e.length-i-1)-r+1)*Math.pow(26,i);return n}function v(e,t){if(void 0!==e)return m(e=Math.floor(e),k(t))}const g={DECIMAL:"decimal",LETTERS:"letters",ROMAN:"roman",WORDS:"words",SEQUENCE:"sequence"},y={UPPER:"upper",LOWER:"lower",TITLE:"title"};function m(t,r){let n;const i=t<0;switch(t=Math.abs(t),r.primary){case g.LETTERS:n=d(t,r.case===y.UPPER?"A":"a");break;case g.ROMAN:n=p(t),r.case===y.UPPER&&(n=n.toUpperCase());break;case g.WORDS:n=o(t,r.ordinal),r.case===y.UPPER?n=n.toUpperCase():r.case===y.LOWER&&(n=n.toLowerCase());break;case g.DECIMAL:n=""+t;var a=r.mandatoryDigits-n.length;if(a>0){var s=new Array(a+1).join("0");n=s+n}if(48!==r.zeroCode&&(n=e(n).map((e=>String.fromCodePoint(e.codePointAt(0)+r.zeroCode-48))).join("")),r.regular)for(let e=Math.floor((n.length-1)/r.groupingSeparators.position);e>0;e--){const t=n.length-e*r.groupingSeparators.position;n=n.substr(0,t)+r.groupingSeparators.character+n.substr(t)}else r.groupingSeparators.reverse().forEach((e=>{const t=n.length-e.position;n=n.substr(0,t)+e.character+n.substr(t)}));if(r.ordinal){var u={1:"st",2:"nd",3:"rd"}[n[n.length-1]];(!u||n.length>1&&"1"===n[n.length-2])&&(u="th"),n+=u}break;case g.SEQUENCE:throw{code:"D3130",value:r.token}}return i&&(n="-"+n),n}const b=[48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296];function k(t){const r={type:"integer",primary:g.DECIMAL,case:y.LOWER,ordinal:!1};let n,i;const a=t.lastIndexOf(";");switch(-1===a?n=t:(n=t.substring(0,a),i=t.substring(a+1),"o"===i[0]&&(r.ordinal=!0)),n){case"A":r.case=y.UPPER;case"a":r.primary=g.LETTERS;break;case"I":r.case=y.UPPER;case"i":r.primary=g.ROMAN;break;case"W":r.case=y.UPPER,r.primary=g.WORDS;break;case"Ww":r.case=y.TITLE,r.primary=g.WORDS;break;case"w":r.primary=g.WORDS;break;default:{let t=null,i=0,a=0,o=[],s=0;if(e(n).map((e=>e.codePointAt(0))).reverse().forEach((e=>{let r=!1;for(let n=0;n<b.length;n++){const a=b[n];if(e>=a&&e<=a+9){if(r=!0,i++,s++,null===t)t=a;else if(a!==t)throw{code:"D3131"};break}}r||(35===e?(s++,a++):o.push({position:s,character:String.fromCodePoint(e)}))})),i>0){r.primary=g.DECIMAL,r.zeroCode=t,r.mandatoryDigits=i,r.optionalDigits=a;const e=function(e){if(0===e.length)return 0;const t=e[0].character;for(let r=1;r<e.length;r++)if(e[r].character!==t)return 0;const r=e.map((e=>e.position)),n=function(e,t){return 0===t?e:n(t,e%t)},i=r.reduce(n);for(let e=1;e<=r.length;e++)if(-1===r.indexOf(e*i))return 0;return i}(o);e>0?(r.regular=!0,r.groupingSeparators={position:e,character:o[0].character}):(r.regular=!1,r.groupingSeparators=o)}else r.primary=g.SEQUENCE,r.token=n}}return r}const x={Y:"1",M:"1",D:"1",d:"1",F:"n",W:"1",w:"1",X:"1",x:"1",H:"1",h:"1",P:"n",m:"01",s:"01",f:"1",Z:"01:01",z:"01:01",C:"n",E:"n"};function w(e){var t=[];const r={type:"datetime",parts:t},n=function(r,n){if(n>r){let i=e.substring(r,n);i=i.split("]]").join("]"),t.push({type:"literal",value:i})}};for(var i=0,a=0;a<e.length;){if("["===e.charAt(a)){if("["===e.charAt(a+1)){n(i,a),t.push({type:"literal",value:"["}),i=a+=2;continue}if(n(i,a),i=a,-1===(a=e.indexOf("]",i)))throw{code:"D3135"};let r=e.substring(i+1,a);r=r.split(/\s+/).join("");var o,s={type:"marker",component:r.charAt(0)},u=r.lastIndexOf(",");if(-1!==u){const e=r.substring(u+1),t=e.indexOf("-");let n,i;const a=function(e){return void 0===e||"*"===e?void 0:parseInt(e)};-1===t?n=e:(n=e.substring(0,t),i=e.substring(t+1));const c={min:a(n),max:a(i)};s.width=c,o=r.substring(1,u)}else o=r.substring(1);if(1===o.length)s.presentation1=o;else if(o.length>1){var c=o.charAt(o.length-1);-1!=="atco".indexOf(c)?(s.presentation2=c,"o"===c&&(s.ordinal=!0),s.presentation1=o.substring(0,o.length-1)):s.presentation1=o}else s.presentation1=x[s.component];if(void 0===s.presentation1)throw{code:"D3132",value:s.component};if("n"===s.presentation1[0])s.names=y.LOWER;else if("N"===s.presentation1[0])"n"===s.presentation1[1]?s.names=y.TITLE:s.names=y.UPPER;else if(-1!=="YMDdFWwXxHhmsf".indexOf(s.component)){var l=s.presentation1;if(s.presentation2&&(l+=";"+s.presentation2),s.integerFormat=k(l),s.width&&void 0!==s.width.min&&s.integerFormat.mandatoryDigits<s.width.min&&(s.integerFormat.mandatoryDigits=s.width.min),"Y"===s.component)if(s.n=-1,s.width&&void 0!==s.width.max)s.n=s.width.max,s.integerFormat.mandatoryDigits=s.n;else{var p=s.integerFormat.mandatoryDigits+s.integerFormat.optionalDigits;p>=2&&(s.n=p)}}"Z"!==s.component&&"z"!==s.component||(s.integerFormat=k(s.presentation1)),t.push(s),i=a+1}a++}return n(i,a),r}const A=["","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],E=["January","February","March","April","May","June","July","August","September","October","November","December"],T=864e5,D=function(e){const t=Date.UTC(e.year,e.month);var r=new Date(t).getUTCDay();return 0===r&&(r=7),r>4?t+(8-r)*T:t-(r-1)*T},S=function(e,t){return{year:e,month:t,nextMonth:function(){return 11===t?S(e+1,0):S(e,t+1)},previousMonth:function(){return 0===t?S(e-1,11):S(e,t-1)},nextYear:function(){return S(e+1,t)},previousYear:function(){return S(e-1,t)}}},O=function(e,t){return(t-e)/(7*T)+1},P=(e,t)=>{let r;switch(t){case"Y":r=e.getUTCFullYear();break;case"M":r=e.getUTCMonth()+1;break;case"D":r=e.getUTCDate();break;case"d":r=(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())-Date.UTC(e.getUTCFullYear(),0))/T+1;break;case"F":r=e.getUTCDay(),0===r&&(r=7);break;case"W":{const t=S(e.getUTCFullYear(),0),n=D(t),i=Date.UTC(t.year,e.getUTCMonth(),e.getUTCDate());let a=O(n,i);if(a>52)i>=D(t.nextYear())&&(a=1);else if(a<1){const e=D(t.previousYear());a=O(e,i)}r=Math.floor(a);break}case"w":{const t=S(e.getUTCFullYear(),e.getUTCMonth()),n=D(t),i=Date.UTC(t.year,t.month,e.getUTCDate());let a=O(n,i);if(a>4)i>=D(t.nextMonth())&&(a=1);else if(a<1){const e=D(t.previousMonth());a=O(e,i)}r=Math.floor(a);break}case"X":{const t=S(e.getUTCFullYear(),0),n=D(t),i=D(t.nextYear()),a=e.getTime();r=a<n?t.year-1:a>=i?t.year+1:t.year;break}case"x":{const t=S(e.getUTCFullYear(),e.getUTCMonth()),n=D(t),i=t.nextMonth(),a=D(i),o=e.getTime();r=o<n?t.previousMonth().month+1:o>=a?i.month+1:t.month+1;break}case"H":r=e.getUTCHours();break;case"h":r=e.getUTCHours(),r%=12,0===r&&(r=12);break;case"P":r=e.getUTCHours()>=12?"pm":"am";break;case"m":r=e.getUTCMinutes();break;case"s":r=e.getUTCSeconds();break;case"f":r=e.getUTCMilliseconds();break;case"Z":case"z":break;case"C":case"E":r="ISO"}return r};let M=null;function C(e,t,r){var n=0,i=0;if(void 0!==r){const e=parseInt(r);n=Math.floor(e/100),i=e%100}var a=function(e,t){var r=P(e,t.component);if(-1!=="YMDdFWwXxHhms".indexOf(t.component))if("Y"===t.component&&-1!==t.n&&(r%=Math.pow(10,t.n)),t.names){if("M"===t.component||"x"===t.component)r=E[r-1];else{if("F"!==t.component)throw{code:"D3133",value:t.component};r=A[r]}t.names===y.UPPER?r=r.toUpperCase():t.names===y.LOWER&&(r=r.toLowerCase()),t.width&&r.length>t.width.max&&(r=r.substring(0,t.width.max))}else r=m(r,t.integerFormat);else if("f"===t.component)r=m(r,t.integerFormat);else if("Z"===t.component||"z"===t.component){const e=100*n+i;if(t.integerFormat.regular)r=m(e,t.integerFormat);else{const a=t.integerFormat.mandatoryDigits;if(1===a||2===a)r=m(n,t.integerFormat),0!==i&&(r+=":"+v(i,"00"));else{if(3!==a&&4!==a)throw{code:"D3134",value:a};r=m(e,t.integerFormat)}}e>=0&&(r="+"+r),"z"===t.component&&(r="GMT"+r),0===e&&"t"===t.presentation2&&(r="Z")}return r};let o;void 0===t?(null===M&&(M=w("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")),o=M):o=w(t);const s=new Date(e+60*(60*n+i)*1e3);let u="";return o.parts.forEach((function(e){"literal"===e.type?u+=e.value:u+=a(s,e)})),u}function j(e){var t={};if("datetime"===e.type)t.type="datetime",t.parts=e.parts.map((function(e){var t={};if("literal"===e.type)t.regex=e.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");else if("Z"===e.component||"z"===e.component){let r;Array.isArray(e.integerFormat.groupingSeparators)||(r=e.integerFormat.groupingSeparators),t.regex="","z"===e.component&&(t.regex="GMT"),t.regex+="[-+][0-9]+",r&&(t.regex+=r.character+"[0-9]+"),t.parse=function(t){"z"===e.component&&(t=t.substring(3));let n=0,i=0;return r?(n=Number.parseInt(t.substring(0,t.indexOf(r.character))),i=Number.parseInt(t.substring(t.indexOf(r.character)+1))):t.length-1<=2?n=Number.parseInt(t):(n=Number.parseInt(t.substring(0,3)),i=Number.parseInt(t.substring(3))),60*n+i}}else if(e.integerFormat)t=j(e.integerFormat);else{t.regex="[a-zA-Z]+";var r={};if("M"===e.component||"x"===e.component)E.forEach((function(t,n){e.width&&e.width.max?r[t.substring(0,e.width.max)]=n+1:r[t]=n+1}));else if("F"===e.component)A.forEach((function(t,n){n>0&&(e.width&&e.width.max?r[t.substring(0,e.width.max)]=n:r[t]=n)}));else{if("P"!==e.component)throw{code:"D3133",value:e.component};r={am:0,AM:0,pm:1,PM:1}}t.parse=function(e){return r[e]}}return t.component=e.component,t}));else{t.type="integer";const r=e.case===y.UPPER;switch(e.primary){case g.LETTERS:t.regex=r?"[A-Z]+":"[a-z]+",t.parse=function(e){return h(e,r?"A":"a")};break;case g.ROMAN:t.regex=r?"[MDCLXVI]+":"[mdclxvi]+",t.parse=function(e){return f(r?e:e.toUpperCase())};break;case g.WORDS:t.regex="(?:"+Object.keys(s).concat("and","[\\-, ]").join("|")+")+",t.parse=function(e){return u(e.toLowerCase())};break;case g.DECIMAL:t.regex="[0-9]+",e.ordinal&&(t.regex+="(?:th|st|nd|rd)"),t.parse=function(t){let r=t;return e.ordinal&&(r=t.substring(0,t.length-2)),e.regular?r=r.split(",").join(""):e.groupingSeparators.forEach((e=>{r=r.split(e.character).join("")})),48!==e.zeroCode&&(r=r.split("").map((t=>String.fromCodePoint(t.codePointAt(0)-e.zeroCode+48))).join("")),parseInt(r)};break;case g.SEQUENCE:throw{code:"D3130",value:e.token}}}return t}function U(e,t){if(void 0!==e)return j(k(t)).parse(e)}function F(e,t){const r=j(w(t)),n="^"+r.parts.map((e=>"("+e.regex+")")).join("")+"$";var i=new RegExp(n,"i").exec(e);if(null!==i){const e=161,t=130,n=84,o=72,s=23,u=47,c={};for(let e=1;e<i.length;e++){const t=r.parts[e-1];t.parse&&(c[t.component]=t.parse(i[e]))}if(0===Object.getOwnPropertyNames(c).length)return;let l=0;const p=e=>{l<<=1,l+=e?1:0},f=e=>!(~e&l||!(e&l));"YXMxWwdD".split("").forEach((e=>p(c[e])));const d=!f(e)&&f(t),h=f(n),v=!h&&f(o);l=0,"PHhmsf".split("").forEach((e=>p(c[e])));const g=!f(s)&&f(u),y=(d?"YD":h?"XxwF":v?"XWF":"YMD")+(g?"Phmsf":"Hmsf"),m=this.environment.timestamp;let b=!1,k=!1;if(y.split("").forEach((e=>{if(void 0===c[e])b?(c[e]=-1!=="MDd".indexOf(e)?1:0,k=!0):c[e]=P(m,e);else if(b=!0,k)throw{code:"D3136"}})),c.M>0?c.M-=1:c.M=0,d){const e=Date.UTC(c.Y,0),t=1e3*(c.d-1)*60*60*24,r=new Date(e+t);c.M=r.getUTCMonth(),c.D=r.getUTCDate()}if(h)throw{code:"D3136"};if(v)throw{code:"D3136"};g&&(c.H=12===c.h?0:c.h,1===c.P&&(c.H+=12));var a=Date.UTC(c.Y,c.M,c.D,c.H,c.m,c.s,c.f);return(c.Z||c.z)&&(a-=60*(c.Z||c.z)*1e3),a}}var N=new RegExp("^\\d{4}(-[01]\\d)*(-[0-3]\\d)*(T[0-2]\\d:[0-5]\\d:[0-5]\\d)*(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");function I(e,t){if(void 0!==e){if(void 0===t){if(!N.test(e))throw{stack:(new Error).stack,code:"D3110",value:e};return Date.parse(e)}return F.call(this,e,t)}}function R(e,t,r){if(void 0!==e)return C.call(this,e,t,r)}return{formatInteger:v,parseInteger:U,fromMillis:R,toMillis:I}}();t.exports=i},{"./utils":6}],2:[function(e,r,n){(function(t){(function(){var n=e("./utils");const i=(()=>{var e=n.isNumeric,r=n.isArrayOfStrings,i=n.isArrayOfNumbers,a=n.createSequence,o=n.isSequence,s=n.isFunction,u=n.isLambda,c=n.isIterable,l=n.getFunctionArity,p=n.isDeepEqual,f=n.stringToArray;function d(e){if(void 0!==e){var t=0;return e.forEach((function(e){t+=e})),t}}function h(e){return void 0===e?0:e.length}function v(e){if(void 0!==e&&0!==e.length)return Math.max.apply(Math,e)}function g(e){if(void 0!==e&&0!==e.length)return Math.min.apply(Math,e)}function y(e){if(void 0!==e&&0!==e.length){var t=0;return e.forEach((function(e){t+=e})),t/e.length}}function m(t,r=!1){if(void 0!==t){var n;if("string"==typeof t)n=t;else if(s(t))n="";else{if("number"==typeof t&&!isFinite(t))throw{code:"D3001",value:t,stack:(new Error).stack};var i=r?2:0;Array.isArray(t)&&t.outerWrapper&&(t=t[0]),n=JSON.stringify(t,(function(t,r){return null!=r&&r.toPrecision&&e(r)?Number(r.toPrecision(15)):r&&s(r)?"":r}),i)}return n}}function b(e,t,r){if(void 0!==e){var n=f(e),i=n.length;if(i+t<0&&(t=0),void 0!==r){if(r<=0)return"";var a=t>=0?t+r:i+t+r;return n.slice(t,a).join("")}return n.slice(t).join("")}}function k(e,t){if(void 0!==e){var r=e.indexOf(t);return r>-1?e.substr(0,r):e}}function x(e,t){if(void 0!==e){var r=e.indexOf(t);return r>-1?e.substr(r+t.length):e}}function w(e){if(void 0!==e)return e.toLowerCase()}function A(e){if(void 0!==e)return e.toUpperCase()}function E(e){if(void 0!==e)return f(e).length}function T(e){if(void 0!==e){var t=e.replace(/[ \t\n\r]+/gm," ");return" "===t.charAt(0)&&(t=t.substring(1))," "===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t}}function D(e,t,r){if(void 0!==e){var n;void 0!==r&&0!==r.length||(r=" ");var i=Math.abs(t)-E(e);if(i>0){var a=new Array(i+1).join(r);r.length>1&&(a=b(a,0,i)),n=t>0?e+a:a+e}else n=e;return n}}function*S(e,t){var r=e.apply(this,[t]);if(c(r)&&(r=yield*r),r&&"number"!=typeof r.start&&"number"!==r.end&&!Array.isArray(r.groups)&&!s(r.next))throw{code:"T1010",stack:(new Error).stack};return r}function*O(e,t){if(void 0!==e)return"string"==typeof t?-1!==e.indexOf(t):void 0!==(yield*S(t,e))}function*P(e,t,r){if(void 0!==e){if(r<0)throw{stack:(new Error).stack,value:r,code:"D3040",index:3};var n=a();if(void 0===r||r>0){var i=0,o=yield*S(t,e);if(void 0!==o)for(;void 0!==o&&(void 0===r||i<r);)n.push({match:o.match,index:o.start,groups:o.groups}),o=yield*S(o.next),i++}return n}}function*M(e,t,r,n){if(void 0!==e){var i,a=this;if(""===t)throw{code:"D3010",stack:(new Error).stack,value:t,index:2};if(n<0)throw{code:"D3011",stack:(new Error).stack,value:n,index:4};i="string"==typeof r?function(e){for(var t="",n=0,i=r.indexOf("$",n);-1!==i&&n<r.length;){t+=r.substring(n,i),n=i+1;var a=r.charAt(n);if("$"===a)t+="$",n++;else if("0"===a)t+=e.match,n++;else{var o;if(o=0===e.groups.length?1:Math.floor(Math.log(e.groups.length)*Math.LOG10E)+1,i=parseInt(r.substring(n,n+o),10),o>1&&i>e.groups.length&&(i=parseInt(r.substring(n,n+o-1),10)),isNaN(i))t+="$";else{if(e.groups.length>0){var s=e.groups[i-1];void 0!==s&&(t+=s)}n+=i.toString().length}}i=r.indexOf("$",n)}return t+=r.substring(n)}:r;var o="",s=0;if(void 0===n||n>0){var u=0;if("string"==typeof t){for(var l=e.indexOf(t,s);-1!==l&&(void 0===n||u<n);)o+=e.substring(s,l),o+=r,s=l+t.length,u++,l=e.indexOf(t,s);o+=e.substring(s)}else{var p=yield*S(t,e);if(void 0!==p){for(;void 0!==p&&(void 0===n||u<n);){o+=e.substring(s,p.start);var f=i.apply(a,[p]);if(c(f)&&(f=yield*f),"string"!=typeof f)throw{code:"D3012",stack:(new Error).stack,value:f};o+=f,s=p.start+p.match.length,u++,p=yield*S(p.next)}o+=e.substring(s)}else o=e}}else o=e;return o}}function C(e){if(void 0!==e)return("undefined"!=typeof window?window.btoa:function(e){return new t.Buffer.from(e,"binary").toString("base64")})(e)}function j(e){if(void 0!==e)return("undefined"!=typeof window?window.atob:function(e){return new t.Buffer(e,"base64").toString("binary")})(e)}function U(e){if(void 0!==e){var t;try{t=encodeURIComponent(e)}catch(t){throw{code:"D3140",stack:(new Error).stack,value:e,functionName:"encodeUrlComponent"}}return t}}function F(e){if(void 0!==e){var t;try{t=encodeURI(e)}catch(t){throw{code:"D3140",stack:(new Error).stack,value:e,functionName:"encodeUrl"}}return t}}function N(e){if(void 0!==e){var t;try{t=decodeURIComponent(e)}catch(t){throw{code:"D3140",stack:(new Error).stack,value:e,functionName:"decodeUrlComponent"}}return t}}function I(e){if(void 0!==e){var t;try{t=decodeURI(e)}catch(t){throw{code:"D3140",stack:(new Error).stack,value:e,functionName:"decodeUrl"}}return t}}function*R(e,t,r){if(void 0!==e){if(r<0)throw{code:"D3020",stack:(new Error).stack,value:r,index:3};var n=[];if(void 0===r||r>0)if("string"==typeof t)n=e.split(t,r);else{var i=0,a=yield*S(t,e);if(void 0!==a){for(var o=0;void 0!==a&&(void 0===r||i<r);)n.push(e.substring(o,a.start)),o=a.end,a=yield*S(a.next),i++;(void 0===r||i<r)&&n.push(e.substring(o))}else n.push(e)}return n}}function z(e,t){if(void 0!==e)return void 0===t&&(t=""),e.join(t)}function L(e,t,r){if(void 0!==e){var n={"decimal-separator":".","grouping-separator":",","exponent-separator":"e",infinity:"Infinity","minus-sign":"-",NaN:"NaN",percent:"%","per-mille":"‰","zero-digit":"0",digit:"#","pattern-separator":";"};void 0!==r&&Object.keys(r).forEach((function(e){n[e]=r[e]}));for(var i=[],a=n["zero-digit"].charCodeAt(0),o=a;o<a+10;o++)i.push(String.fromCharCode(o));var s=i.concat([n["decimal-separator"],n["exponent-separator"],n["grouping-separator"],n.digit,n["pattern-separator"]]),u=t.split(n["pattern-separator"]);if(u.length>2)throw{code:"D3080",stack:(new Error).stack};var c=function(e){var t,r,i,a,o=function(){for(var t,r=0;r<e.length;r++)if(t=e.charAt(r),-1!==s.indexOf(t)&&t!==n["exponent-separator"])return e.substring(0,r)}(),u=function(){for(var t,r=e.length-1;r>=0;r--)if(t=e.charAt(r),-1!==s.indexOf(t)&&t!==n["exponent-separator"])return e.substring(r+1)}(),c=e.substring(o.length,e.length-u.length),l=e.indexOf(n["exponent-separator"],o.length);-1===l||l>e.length-u.length?(t=c,r=void 0):(t=c.substring(0,l),r=c.substring(l+1));var p=t.indexOf(n["decimal-separator"]);return-1===p?(i=t,a=u):(i=t.substring(0,p),a=t.substring(p+1)),{prefix:o,suffix:u,activePart:c,mantissaPart:t,exponentPart:r,integerPart:i,fractionalPart:a,subpicture:e}},l=function(e){var t,r,a=e.subpicture,o=a.indexOf(n["decimal-separator"]);o!==a.lastIndexOf(n["decimal-separator"])&&(t="D3081"),a.indexOf(n.percent)!==a.lastIndexOf(n.percent)&&(t="D3082"),a.indexOf(n["per-mille"])!==a.lastIndexOf(n["per-mille"])&&(t="D3083"),-1!==a.indexOf(n.percent)&&-1!==a.indexOf(n["per-mille"])&&(t="D3084");var u=!1;for(r=0;r<e.mantissaPart.length;r++){var c=e.mantissaPart.charAt(r);if(-1!==i.indexOf(c)||c===n.digit){u=!0;break}}u||(t="D3085"),-1!==e.activePart.split("").map((function(e){return-1===s.indexOf(e)?"p":"a"})).join("").indexOf("p")&&(t="D3086"),-1!==o?a.charAt(o-1)!==n["grouping-separator"]&&a.charAt(o+1)!==n["grouping-separator"]||(t="D3087"):e.integerPart.charAt(e.integerPart.length-1)===n["grouping-separator"]&&(t="D3088"),-1!==a.indexOf(n["grouping-separator"]+n["grouping-separator"])&&(t="D3089");var l=e.integerPart.indexOf(n.digit);-1!==l&&e.integerPart.substring(0,l).split("").filter((function(e){return i.indexOf(e)>-1})).length>0&&(t="D3090"),-1!==(l=e.fractionalPart.lastIndexOf(n.digit))&&e.fractionalPart.substring(l).split("").filter((function(e){return i.indexOf(e)>-1})).length>0&&(t="D3091");var p="string"==typeof e.exponentPart;if(p&&e.exponentPart.length>0&&(-1!==a.indexOf(n.percent)||-1!==a.indexOf(n["per-mille"]))&&(t="D3092"),p&&(0===e.exponentPart.length||e.exponentPart.split("").filter((function(e){return-1===i.indexOf(e)})).length>0)&&(t="D3093"),t)throw{code:t,stack:(new Error).stack}},p=function(e){var t=function(t,r){for(var a=[],o=t.indexOf(n["grouping-separator"]);-1!==o;){var s=(r?t.substring(0,o):t.substring(o)).split("").filter((function(e){return-1!==i.indexOf(e)||e===n.digit})).length;a.push(s),o=e.integerPart.indexOf(n["grouping-separator"],o+1)}return a},r=t(e.integerPart),a=function(e){if(0===e.length)return 0;for(var t=function(e,r){return 0===r?e:t(r,e%r)},r=e.reduce(t),n=1;n<=e.length;n++)if(-1===e.indexOf(n*r))return 0;return r}(r),o=t(e.fractionalPart,!0),s=e.integerPart.split("").filter((function(e){return-1!==i.indexOf(e)})).length,u=s,c=e.fractionalPart.split(""),l=c.filter((function(e){return-1!==i.indexOf(e)})).length,p=c.filter((function(e){return-1!==i.indexOf(e)||e===n.digit})).length,f="string"==typeof e.exponentPart;0===s&&0===p&&(f?(l=1,p=1):s=1),f&&0===s&&-1!==e.integerPart.indexOf(n.digit)&&(s=1),0===s&&0===l&&(l=1);var d=0;return f&&(d=e.exponentPart.split("").filter((function(e){return-1!==i.indexOf(e)})).length),{integerPartGroupingPositions:r,regularGrouping:a,minimumIntegerPartSize:s,scalingFactor:u,prefix:e.prefix,fractionalPartGroupingPositions:o,minimumFactionalPartSize:l,maximumFactionalPartSize:p,minimumExponentSize:d,suffix:e.suffix,picture:e.subpicture}},f=u.map(c);f.forEach(l);var d,h,v,g,y=f.map(p),m=n["minus-sign"],b=n["zero-digit"],k=n["decimal-separator"],x=n["grouping-separator"];if(1===y.length&&(y.push(JSON.parse(JSON.stringify(y[0]))),y[1].prefix=m+y[1].prefix),h=-1!==(d=e>=0?y[0]:y[1]).picture.indexOf(n.percent)?100*e:-1!==d.picture.indexOf(n["per-mille"])?1e3*e:e,0===d.minimumExponentSize)v=h;else{var w=Math.pow(10,d.scalingFactor),A=Math.pow(10,d.scalingFactor-1);for(v=h,g=0;v<A;)v*=10,g-=1;for(;v>w;)v/=10,g+=1}var E=function(e,t){var r=Math.abs(e).toFixed(t);return"0"!==b&&(r=r.split("").map((function(e){return e>="0"&&e<="9"?i[e.charCodeAt(0)-48]:e})).join("")),r},T=E(H(v,d.maximumFactionalPartSize),d.maximumFactionalPartSize),D=T.indexOf(".");for(-1===D?T+=k:T=T.replace(".",k);T.charAt(0)===b;)T=T.substring(1);for(;T.charAt(T.length-1)===b;)T=T.substring(0,T.length-1);D=T.indexOf(k);var S=d.minimumIntegerPartSize-D,O=d.minimumFactionalPartSize-(T.length-D-1);if(T=(S>0?new Array(S+1).join(b):"")+T,T+=O>0?new Array(O+1).join(b):"",D=T.indexOf(k),d.regularGrouping>0)for(var P=Math.floor((D-1)/d.regularGrouping),M=1;M<=P;M++)T=[T.slice(0,D-M*d.regularGrouping),x,T.slice(D-M*d.regularGrouping)].join("");else d.integerPartGroupingPositions.forEach((function(e){T=[T.slice(0,D-e),x,T.slice(D-e)].join(""),D++}));if(D=T.indexOf(k),d.fractionalPartGroupingPositions.forEach((function(e){T=[T.slice(0,e+D+1),x,T.slice(e+D+1)].join("")})),D=T.indexOf(k),-1!==d.picture.indexOf(k)&&D!==T.length-1||(T=T.substring(0,T.length-1)),void 0!==g){var C=E(g,0);(S=d.minimumExponentSize-C.length)>0&&(C=new Array(S+1).join(b)+C),T=T+n["exponent-separator"]+(g<0?m:"")+C}return T=d.prefix+T+d.suffix}}function $(e,t){if(void 0!==e){if(e=H(e),(t=void 0===t?10:H(t))<2||t>36)throw{code:"D3100",stack:(new Error).stack,value:t};return e.toString(t)}}function q(e){var t;if(void 0!==e){if("number"==typeof e)t=e;else if("string"==typeof e&&/^-?[0-9]+(\.[0-9]+)?([Ee][-+]?[0-9]+)?$/.test(e)&&!isNaN(parseFloat(e))&&isFinite(e))t=parseFloat(e);else if(!0===e)t=1;else{if(!1!==e)throw{code:"D3030",value:e,stack:(new Error).stack,index:1};t=0}return t}}function _(e){if(void 0!==e)return Math.abs(e)}function W(e){if(void 0!==e)return Math.floor(e)}function Y(e){if(void 0!==e)return Math.ceil(e)}function H(e,t){var r;if(void 0!==e){if(t){var n=e.toString().split("e");e=+(n[0]+"e"+(n[1]?+n[1]+t:t))}var i=(r=Math.round(e))-e;return.5===Math.abs(i)&&1===Math.abs(r%2)&&(r-=1),t&&(n=r.toString().split("e"),r=+(n[0]+"e"+(n[1]?+n[1]-t:-t))),Object.is(r,-0)&&(r=0),r}}function Z(e){if(void 0!==e){if(e<0)throw{stack:(new Error).stack,code:"D3060",index:1,value:e};return Math.sqrt(e)}}function G(e,t){var r;if(void 0!==e){if(r=Math.pow(e,t),!isFinite(r))throw{stack:(new Error).stack,code:"D3061",index:1,value:e,exp:t};return r}}function B(){return Math.random()}function J(t){if(void 0!==t){var r=!1;return Array.isArray(t)?1===t.length?r=J(t[0]):t.length>1&&(r=t.filter((function(e){return J(e)})).length>0):"string"==typeof t?t.length>0&&(r=!0):e(t)?0!==t&&(r=!0):null!==t&&"object"==typeof t?Object.keys(t).length>0&&(r=!0):"boolean"==typeof t&&!0===t&&(r=!0),r}}function X(e){if(void 0!==e)return!J(e)}function Q(e,t,r,n){var i=[t],a=l(e);return a>=2&&i.push(r),a>=3&&i.push(n),i}function*V(e,t){if(void 0!==e){for(var r=a(),n=0;n<e.length;n++){var i=Q(t,e[n],n,e),o=yield*t.apply(this,i);void 0!==o&&r.push(o)}return r}}function*K(e,t){if(void 0!==e){for(var r=a(),n=0;n<e.length;n++){var i=e[n],o=Q(t,i,n,e);J(yield*t.apply(this,o))&&r.push(i)}return r}}function*ee(e,t){if(void 0!==e){for(var r,n=!1,i=0;i<e.length;i++){var a=e[i],o=!0;if(void 0!==t){var s=Q(t,a,i,e);o=J(yield*t.apply(this,s))}if(o){if(n)throw{stack:(new Error).stack,code:"D3138",index:i};r=a,n=!0}}if(!n)throw{stack:(new Error).stack,code:"D3139"};return r}}function te(){for(var e=[],t=Array.prototype.slice.call(arguments),r=Math.min.apply(Math,t.map((function(e){return Array.isArray(e)?e.length:0}))),n=0;n<r;n++){var i=t.map((e=>e[n]));e.push(i)}return e}function*re(e,t,r){if(void 0!==e){var n,i,a=l(t);if(a<2)throw{stack:(new Error).stack,code:"D3050",index:1};for(void 0===r&&e.length>0?(n=e[0],i=1):(n=r,i=0);i<e.length;){var o=[n,e[i]];a>=3&&o.push(i),a>=4&&o.push(e),n=yield*t.apply(this,o),i++}return n}}function ne(e){var t=a();if(Array.isArray(e)){var r={};e.forEach((function(e){ne(e).forEach((function(e){r[e]=!0}))})),t=ne(r)}else null===e||"object"!=typeof e||u(e)||Object.keys(e).forEach((e=>t.push(e)));return t}function ie(e,t){var r;if(Array.isArray(e)){r=a();for(var n=0;n<e.length;n++){var i=ie(e[n],t);void 0!==i&&(Array.isArray(i)?i.forEach((e=>r.push(e))):r.push(i))}}else null!==e&&"object"==typeof e&&(r=e[t]);return r}function ae(e,t){return void 0===e?t:void 0===t?e:(Array.isArray(e)||(e=a(e)),Array.isArray(t)||(t=[t]),e.concat(t))}function oe(e){return void 0!==e}function se(e){var t=a();if(Array.isArray(e))e.forEach((function(e){t=ae(t,se(e))}));else if(null===e||"object"!=typeof e||u(e))t=e;else for(var r in e){var n={};n[r]=e[r],t.push(n)}return t}function ue(e){if(void 0!==e){var t={};return e.forEach((function(e){for(var r in e)t[r]=e[r]})),t}}function ce(e){if(void 0!==e){if(e.length<=1)return e;for(var t=e.length,r=new Array(t),n=0;n<t;n++)r[t-n-1]=e[n];return r}}function*le(e,t){var r=a();for(var n in e){var i=Q(t,e[n],n,e),o=yield*t.apply(this,i);void 0!==o&&r.push(o)}return r}function pe(e){throw{code:"D3137",stack:(new Error).stack,message:e||"$error() function evaluated"}}function fe(e,t){if(!e)throw{code:"D3141",stack:(new Error).stack,message:t||"$assert() statement failed"}}function de(t){if(void 0!==t)return null===t?"null":e(t)?"number":"string"==typeof t?"string":"boolean"==typeof t?"boolean":Array.isArray(t)?"array":s(t)?"function":"object"}function*he(e,t){if(void 0!==e){if(e.length<=1)return e;var n;if(void 0===t){if(!i(e)&&!r(e))throw{stack:(new Error).stack,code:"D3070",index:1};n=function*(e,t){return e>t}}else n=t;var a=function*(e,t){var r=function*(e,t,i){0===t.length?Array.prototype.push.apply(e,i):0===i.length?Array.prototype.push.apply(e,t):(yield*n(t[0],i[0]))?(e.push(i[0]),yield*r(e,t,i.slice(1))):(e.push(t[0]),yield*r(e,t.slice(1),i))},i=[];return yield*r(i,e,t),i},o=function*(e){if(!Array.isArray(e)||e.length<=1)return e;var t=Math.floor(e.length/2),r=e.slice(0,t),n=e.slice(t);return r=yield*o(r),n=yield*o(n),yield*a(r,n)};return yield*o(e)}}function ve(e){if(void 0!==e){if(e.length<=1)return e;for(var t=new Array(e.length),r=0;r<e.length;r++){var n=Math.floor(Math.random()*(r+1));r!==n&&(t[r]=t[n]),t[n]=e[r]}return t}}function ge(e){if(void 0!==e){if(!Array.isArray(e)||e.length<=1)return e;for(var t=o(e)?a():[],r=0;r<e.length;r++){for(var n=e[r],i=!1,s=0;s<t.length;s++)if(p(n,t[s])){i=!0;break}i||t.push(n)}return t}}function*ye(e,t){var r={};for(var n in e){var i=e[n],a=Q(t,i,n,e);J(yield*t.apply(this,a))&&(r[n]=i)}return 0===Object.keys(r).length&&(r=void 0),r}return{sum:d,count:h,max:v,min:g,average:y,string:m,substring:b,substringBefore:k,substringAfter:x,lowercase:w,uppercase:A,length:E,trim:T,pad:D,match:P,contains:O,replace:M,split:R,join:z,formatNumber:L,formatBase:$,number:q,floor:W,ceil:Y,round:H,abs:_,sqrt:Z,power:G,random:B,boolean:J,not:X,map:V,zip:te,filter:K,single:ee,foldLeft:re,sift:ye,keys:ne,lookup:ie,append:ae,exists:oe,spread:se,merge:ue,reverse:ce,each:le,error:pe,assert:fe,type:de,sort:he,shuffle:ve,distinct:ge,base64encode:C,base64decode:j,encodeUrlComponent:U,encodeUrl:F,decodeUrlComponent:N,decodeUrl:I}})();r.exports=i}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utils":6}],3:[function(e,t,r){var n=e("./datetime"),i=e("./functions"),a=e("./utils"),o=e("./parser"),s=e("./signature"),u=function(){var e=a.isNumeric,t=a.isArrayOfStrings,r=a.isArrayOfNumbers,u=a.createSequence,c=a.isSequence,l=a.isFunction,p=a.isLambda,f=a.isIterable,d=a.getFunctionArity,h=a.isDeepEqual,v=ce(null);function*g(e,t,r){var n,i=r.lookup("__evaluate_entry");switch(i&&i(e,t,r),e.type){case"path":n=yield*y(e,t,r);break;case"binary":n=yield*A(e,t,r);break;case"unary":n=yield*E(e,t,r);break;case"name":n=T(e,t);break;case"string":case"number":case"value":n=D(e);break;case"wildcard":n=S(e,t);break;case"descendant":n=P(e,t);break;case"parent":n=r.lookup(e.slot.label);break;case"condition":n=yield*q(e,t,r);break;case"block":n=yield*_(e,t,r);break;case"bind":n=yield*$(e,t,r);break;case"regex":n=W(e);break;case"function":n=yield*J(e,t,r);break;case"variable":n=Y(e,t,r);break;case"lambda":n=V(e,t,r);break;case"partial":n=yield*K(e,t,r);break;case"apply":n=yield*B(e,t,r);break;case"transform":n=Z(e,t,r)}if(!r.async||null!=n&&"function"==typeof n.then||(n=Promise.resolve(n)),r.async&&"function"==typeof n.then&&e.nextFunction&&"function"==typeof n[e.nextFunction]||(n=yield n),Object.prototype.hasOwnProperty.call(e,"predicate"))for(var a=0;a<e.predicate.length;a++)n=yield*w(e.predicate[a].expr,n,r);"path"!==e.type&&Object.prototype.hasOwnProperty.call(e,"group")&&(n=yield*R(e.group,n,r));var o=r.lookup("__evaluate_exit");return o&&o(e,t,r,n),n&&c(n)&&!n.tupleStream&&(e.keepArray&&(n.keepSingleton=!0),0===n.length?n=void 0:1===n.length&&(n=n.keepSingleton?n:n[0])),n}function*y(e,t,r){var n,i;n=Array.isArray(t)&&"variable"!==e.steps[0].type?t:u(t);for(var a=!1,o=void 0,s=0;s<e.steps.length;s++){var l=e.steps[s];if(l.tuple&&(a=!0),0===s&&l.consarray?i=yield*g(l,n,r):a?o=yield*x(l,n,o,r):i=yield*b(l,n,r,s===e.steps.length-1),!a&&(void 0===i||0===i.length))break;void 0===l.focus&&(n=i)}if(a)if(e.tuple)i=o;else for(i=u(),s=0;s<o.length;s++)i.push(o[s]["@"]);return e.keepSingletonArray&&(c(i)||(i=u(i)),i.keepSingleton=!0),e.hasOwnProperty("group")&&(i=yield*R(e.group,a?o:i,r)),i}function m(e,t){var r=ce(e);for(const e in t)r.bind(e,t[e]);return r}function*b(e,t,r,n){var i;if("sort"===e.type)return i=yield*H(e,t,r),e.stages&&(i=yield*k(e.stages,i,r)),i;i=u();for(var a=0;a<t.length;a++){var o=yield*g(e,t[a],r);if(e.stages)for(var s=0;s<e.stages.length;s++)o=yield*w(e.stages[s].expr,o,r);void 0!==o&&i.push(o)}var l=u();return n&&1===i.length&&Array.isArray(i[0])&&!c(i[0])?l=i[0]:i.forEach((function(e){!Array.isArray(e)||e.cons?l.push(e):e.forEach((e=>l.push(e)))})),l}function*k(e,t,r){for(var n=t,i=0;i<e.length;i++){var a=e[i];switch(a.type){case"filter":n=yield*w(a.expr,n,r);break;case"index":for(var o=0;o<n.length;o++)n[o][a.value]=o}}return n}function*x(e,t,r,n){var i;if("sort"===e.type){if(r)i=yield*H(e,r,n);else{var a=yield*H(e,t,n);(i=u()).tupleStream=!0;for(var o=0;o<a.length;o++){var s={"@":a[o]};s[e.index]=o,i.push(s)}}return e.stages&&(i=yield*k(e.stages,i,n)),i}(i=u()).tupleStream=!0;var c=n;void 0===r&&(r=t.map((e=>({"@":e}))));for(var l=0;l<r.length;l++){c=m(n,r[l]);var p=yield*g(e,r[l]["@"],c);if(void 0!==p){Array.isArray(p)||(p=[p]);for(var f=0;f<p.length;f++)s={},Object.assign(s,r[l]),p.tupleStream?Object.assign(s,p[f]):(e.focus?(s[e.focus]=p[f],s["@"]=r[l]["@"]):s["@"]=p[f],e.index&&(s[e.index]=f),e.ancestor&&(s[e.ancestor.label]=r[l]["@"])),i.push(s)}}return e.stages&&(i=yield*k(e.stages,i,n)),i}function*w(t,n,a){var o=u();if(n&&n.tupleStream&&(o.tupleStream=!0),Array.isArray(n)||(n=u(n)),"number"===t.type){var s=Math.floor(t.value);s<0&&(s=n.length+s),void 0!==(c=n[s])&&(Array.isArray(c)?o=c:o.push(c))}else for(s=0;s<n.length;s++){var c,l=c=n[s],p=a;n.tupleStream&&(l=c["@"],p=m(a,c));var f=yield*g(t,l,p);e(f)&&(f=[f]),r(f)?f.forEach((function(e){var t=Math.floor(e);t<0&&(t=n.length+t),t===s&&o.push(c)})):i.boolean(f)&&o.push(c)}return o}function*A(e,t,r){var n,i=yield*g(e.lhs,t,r),a=yield*g(e.rhs,t,r),o=e.value;try{switch(o){case"+":case"-":case"*":case"/":case"%":n=C(i,a,o);break;case"=":case"!=":n=j(i,a,o);break;case"<":case"<=":case">":case">=":n=U(i,a,o);break;case"&":n=I(i,a);break;case"and":case"or":n=N(i,a,o);break;case"..":n=L(i,a);break;case"in":n=F(i,a)}}catch(t){throw t.position=e.position,t.token=o,t}return n}function*E(t,r,n){var a;switch(t.value){case"-":if(void 0===(a=yield*g(t.expression,r,n)))a=void 0;else{if(!e(a))throw{code:"D1002",stack:(new Error).stack,position:t.position,token:t.value,value:a};a=-a}break;case"[":a=[];for(var o=0;o<t.expressions.length;o++){var s=t.expressions[o],u=yield*g(s,r,n);void 0!==u&&("["===s.value?a.push(u):a=i.append(a,u))}t.consarray&&Object.defineProperty(a,"cons",{enumerable:!1,configurable:!1,value:!0});break;case"{":a=yield*R(t,r,n)}return a}function T(e,t,r){return i.lookup(t,e.value)}function D(e){return e.value}function S(e,t){var r=u();return null!==t&&"object"==typeof t&&Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?(n=O(n),r=i.append(r,n)):r.push(n)})),r}function O(e,t){return void 0===t&&(t=[]),Array.isArray(e)?e.forEach((function(e){O(e,t)})):t.push(e),t}function P(e,t){var r,n=u();return void 0!==t&&(M(t,n),r=1===n.length?n[0]:n),r}function M(e,t){Array.isArray(e)||t.push(e),Array.isArray(e)?e.forEach((function(e){M(e,t)})):null!==e&&"object"==typeof e&&Object.keys(e).forEach((function(r){M(e[r],t)}))}function C(t,r,n){var i;if(void 0!==t&&!e(t))throw{code:"T2001",stack:(new Error).stack,value:t};if(void 0!==r&&!e(r))throw{code:"T2002",stack:(new Error).stack,value:r};if(void 0===t||void 0===r)return i;switch(n){case"+":i=t+r;break;case"-":i=t-r;break;case"*":i=t*r;break;case"/":i=t/r;break;case"%":i=t%r}return i}function j(e,t,r){var n;if(void 0===e||void 0===t)return!1;switch(r){case"=":n=h(e,t);break;case"!=":n=!h(e,t)}return n}function U(e,t,r){var n,i=typeof e,a=typeof t;if("undefined"!==i&&"string"!==i&&"number"!==i||"undefined"!==a&&"string"!==a&&"number"!==a)throw{code:"T2010",stack:(new Error).stack,value:"string"!==i&&"number"!==i?e:t};if("undefined"!==i&&"undefined"!==a){if(i!==a)throw{code:"T2009",stack:(new Error).stack,value:e,value2:t};switch(r){case"<":n=e<t;break;case"<=":n=e<=t;break;case">":n=e>t;break;case">=":n=e>=t}return n}}function F(e,t){var r=!1;if(void 0===e||void 0===t)return!1;Array.isArray(t)||(t=[t]);for(var n=0;n<t.length;n++)if(t[n]===e){r=!0;break}return r}function N(e,t,r){var n,a=i.boolean(e),o=i.boolean(t);switch(void 0===a&&(a=!1),void 0===o&&(o=!1),r){case"and":n=a&&o;break;case"or":n=a||o}return n}function I(e,t){var r="",n="";return void 0!==e&&(r=i.string(e)),void 0!==t&&(n=i.string(t)),r.concat(n)}function*R(e,t,r){var n={},a={},o=!(!t||!t.tupleStream);Array.isArray(t)||(t=u(t));for(var s=0;s<t.length;s++)for(var c=t[s],l=o?m(r,c):r,p=0;p<e.lhs.length;p++){var f=e.lhs[p],d=yield*g(f[0],o?c["@"]:c,l);if("string"!=typeof d)throw{code:"T1003",stack:(new Error).stack,position:e.position,value:d};var h={data:c,exprIndex:p};if(a.hasOwnProperty(d)){if(a[d].exprIndex!==p)throw{code:"D1009",stack:(new Error).stack,position:e.position,value:d};a[d].data=i.append(a[d].data,c)}else a[d]=h}for(d in a){var v=(h=a[d]).data;if(l=r,o){var y=z(h.data);v=y["@"],delete y["@"],l=m(r,y)}var b=yield*g(e.lhs[h.exprIndex][1],v,l);void 0!==b&&(n[d]=b)}return n}function z(e){if(!Array.isArray(e))return e;var t={};Object.assign(t,e[0]);for(var r=1;r<e.length;r++)for(const n in e[r])t[n]=i.append(t[n],e[r][n]);return t}function L(e,t){var r;if(void 0!==e&&!Number.isInteger(e))throw{code:"T2003",stack:(new Error).stack,value:e};if(void 0!==t&&!Number.isInteger(t))throw{code:"T2004",stack:(new Error).stack,value:t};if(void 0===e||void 0===t)return r;if(e>t)return r;var n=t-e+1;if(n>1e7)throw{code:"D2014",stack:(new Error).stack,value:n};r=new Array(n);for(var i=e,a=0;i<=t;i++,a++)r[a]=i;return r.sequence=!0,r}function*$(e,t,r){var n=yield*g(e.rhs,t,r);return r.bind(e.lhs.value,n),n}function*q(e,t,r){var n,a=yield*g(e.condition,t,r);return i.boolean(a)?n=yield*g(e.then,t,r):void 0!==e.else&&(n=yield*g(e.else,t,r)),n}function*_(e,t,r){for(var n,i=ce(r),a=0;a<e.expressions.length;a++)n=yield*g(e.expressions[a],t,i);return n}function W(e){var t=new RegExp(e.value),r=function(n,i){var a;t.lastIndex=i||0;var o=t.exec(n);if(null!==o){if(a={match:o[0],start:o.index,end:o.index+o[0].length,groups:[]},o.length>1)for(var s=1;s<o.length;s++)a.groups.push(o[s]);a.next=function(){if(!(t.lastIndex>=n.length)){var i=r(n,t.lastIndex);if(i&&""===i.match)throw{code:"D1004",stack:(new Error).stack,position:e.position,value:e.value.source};return i}}}return a};return r}function Y(e,t,r){return""===e.value?t&&t.outerWrapper?t[0]:t:r.lookup(e.value)}function*H(e,t,r){var n=t,a=!!t.tupleStream,o=function*(t,n){for(var i=0,o=0;0===i&&o<e.terms.length;o++){var s=e.terms[o],u=t,c=r;a&&(u=t["@"],c=m(r,t));var l=yield*g(s.expression,u,c);u=n,c=r,a&&(u=n["@"],c=m(r,n));var p=yield*g(s.expression,u,c),f=typeof l,d=typeof p;if("undefined"!==f)if("undefined"!==d){if("string"!==f&&"number"!==f||"string"!==d&&"number"!==d)throw{code:"T2008",stack:(new Error).stack,position:e.position,value:"string"!==f&&"number"!==f?l:p};if(f!==d)throw{code:"T2007",stack:(new Error).stack,position:e.position,value:l,value2:p};l!==p&&(i=l<p?-1:1,!0===s.descending&&(i=-i))}else i=-1;else i="undefined"===d?0:1}return 1===i},s={environment:r,input:t};return yield*i.sort.apply(s,[n,o])}function Z(e,r,n){return oe((function*(r){if(void 0!==r){var i=n.lookup("clone");if(!l(i))throw{code:"T2013",stack:(new Error).stack,position:e.position};var a=yield*X(i,[r],null,n),o=yield*g(e.pattern,a,n);if(void 0!==o){Array.isArray(o)||(o=[o]);for(var s=0;s<o.length;s++){var u=o[s],c=yield*g(e.update,u,n),p=typeof c;if("undefined"!==p){if("object"!==p||null===c||Array.isArray(c))throw{code:"T2011",stack:(new Error).stack,position:e.update.position,value:c};for(var f in c)u[f]=c[f]}if(void 0!==e.delete){var d=yield*g(e.delete,u,n);if(void 0!==d){var h=d;if(Array.isArray(d)||(d=[d]),!t(d))throw{code:"T2012",stack:(new Error).stack,position:e.delete.position,value:h};for(var v=0;v<d.length;v++)"object"==typeof u&&null!==u&&delete u[d[v]]}}}}return a}}),"<(oa):o>")}var G=o("function($f, $g) { function($x){ $g($f($x)) } }");function*B(e,t,r){var n,i=yield*g(e.lhs,t,r);if("function"===e.rhs.type)n=yield*J(e.rhs,t,r,{context:i});else{var a=yield*g(e.rhs,t,r);if(!l(a))throw{code:"T2006",stack:(new Error).stack,position:e.position,value:a};if(l(i)){var o=yield*g(G,null,r);n=yield*X(o,[i,a],null,r)}else n=yield*X(a,[i],null,r)}return n}function*J(e,t,r,n){var i,a=yield*g(e.procedure,t,r);if(void 0===a&&"path"===e.procedure.type&&r.lookup(e.procedure.steps[0].value))throw{code:"T1005",stack:(new Error).stack,position:e.position,token:e.procedure.steps[0].value};var o=[];void 0!==n&&o.push(n.context);for(var s=0;s<e.arguments.length;s++){const n=yield*g(e.arguments[s],t,r);if(l(n)){const e=function*(...e){return yield*X(n,e,null,r)};e.arity=d(n),o.push(e)}else o.push(n)}var u="path"===e.procedure.type?e.procedure.steps[0].value:e.procedure.value;try{"object"==typeof a&&(a.token=u,a.position=e.position),i=yield*X(a,o,t,r)}catch(t){throw t.position||(t.position=e.position),t.token||(t.token=u),t}return i}function*X(e,t,r,n){var i;for(i=yield*Q(e,t,r,n);p(i)&&!0===i.thunk;){var a=yield*g(i.body.procedure,i.input,i.environment);"variable"===i.body.procedure.type&&(a.token=i.body.procedure.value),a.position=i.body.procedure.position;for(var o=[],s=0;s<i.body.arguments.length;s++)o.push(yield*g(i.body.arguments[s],i.input,i.environment));i=yield*Q(a,o,r,n)}return i}function*Q(e,t,r,n){var i;try{var a=t;if(e&&(a=ee(e.signature,t,r)),p(e))i=yield*te(e,a);else if(e&&!0===e._jsonata_function){var o={environment:n,input:r};i=e.implementation.apply(o,a),f(i)&&(i=yield*i)}else{if("function"!=typeof e)throw{code:"T1006",stack:(new Error).stack};i=e.apply(r,a),f(i)&&(i=yield*i)}}catch(t){throw e&&(void 0===t.token&&void 0!==e.token&&(t.token=e.token),t.position=e.position),t}return i}function V(e,t,r){var n={_jsonata_lambda:!0,input:t,environment:r,arguments:e.arguments,signature:e.signature,body:e.body};return!0===e.thunk&&(n.thunk=!0),n.apply=function*(e,r){return yield*X(n,r,t,e.environment)},n}function*K(e,t,r){for(var n,i=[],a=0;a<e.arguments.length;a++){var o=e.arguments[a];"operator"===o.type&&"?"===o.value?i.push(o):i.push(yield*g(o,t,r))}var s=yield*g(e.procedure,t,r);if(void 0===s&&"path"===e.procedure.type&&r.lookup(e.procedure.steps[0].value))throw{code:"T1007",stack:(new Error).stack,position:e.position,token:e.procedure.steps[0].value};if(p(s))n=re(s,i);else if(s&&!0===s._jsonata_function)n=ne(s.implementation,i);else{if("function"!=typeof s)throw{code:"T1008",stack:(new Error).stack,position:e.position,token:"path"===e.procedure.type?e.procedure.steps[0].value:e.procedure.value};n=ne(s,i)}return n}function ee(e,t,r){return void 0===e?t:e.validate(t,r)}function*te(e,t){var r=ce(e.environment);return e.arguments.forEach((function(e,n){r.bind(e.value,t[n])})),"function"==typeof e.body?yield*ie(e.body,r):yield*g(e.body,e.input,r)}function re(e,t){var r=ce(e.environment),n=[];return e.arguments.forEach((function(e,i){var a=t[i];a&&"operator"===a.type&&"?"===a.value?n.push(e):r.bind(e.value,a)})),{_jsonata_lambda:!0,input:e.input,environment:r,arguments:n,body:e.body}}function ne(e,t){var r=ae(e),n="function("+(r=r.map((function(e){return"$"+e.trim()}))).join(", ")+"){ _ }",i=o(n);return i.body=e,re(i,t)}function*ie(e,t){var r=ae(e).map((function(e){return t.lookup(e.trim())})),n={environment:t},i=e.apply(n,r);return f(i)&&(i=yield*i),i}function ae(e){var t=e.toString();return/\(([^)]*)\)/.exec(t)[1].split(",")}function oe(e,t){var r={_jsonata_function:!0,implementation:e};return void 0!==t&&(r.signature=s(t)),r}function*se(e,t){if(void 0!==e){var r=this.input;void 0!==t&&(r=t,Array.isArray(r)&&!c(r)&&((r=u(r)).outerWrapper=!0));try{var n=o(e,!1)}catch(e){throw pe(e),{stack:(new Error).stack,code:"D3120",value:e.message,error:e}}try{var i=yield*g(n,r,this.environment)}catch(e){throw pe(e),{stack:(new Error).stack,code:"D3121",value:e.message,error:e}}return i}}function ue(e){if(void 0!==e)return JSON.parse(i.string(e))}function ce(e){var t={};return{bind:function(e,r){t[e]=r},lookup:function(r){var n;return t.hasOwnProperty(r)?n=t[r]:e&&(n=e.lookup(r)),n},timestamp:e?e.timestamp:null,async:!!e&&e.async,global:e?e.global:{ancestry:[null]}}}v.bind("sum",oe(i.sum,"<a<n>:n>")),v.bind("count",oe(i.count,"<a:n>")),v.bind("max",oe(i.max,"<a<n>:n>")),v.bind("min",oe(i.min,"<a<n>:n>")),v.bind("average",oe(i.average,"<a<n>:n>")),v.bind("string",oe(i.string,"<x-b?:s>")),v.bind("substring",oe(i.substring,"<s-nn?:s>")),v.bind("substringBefore",oe(i.substringBefore,"<s-s:s>")),v.bind("substringAfter",oe(i.substringAfter,"<s-s:s>")),v.bind("lowercase",oe(i.lowercase,"<s-:s>")),v.bind("uppercase",oe(i.uppercase,"<s-:s>")),v.bind("length",oe(i.length,"<s-:n>")),v.bind("trim",oe(i.trim,"<s-:s>")),v.bind("pad",oe(i.pad,"<s-ns?:s>")),v.bind("match",oe(i.match,"<s-f<s:o>n?:a<o>>")),v.bind("contains",oe(i.contains,"<s-(sf):b>")),v.bind("replace",oe(i.replace,"<s-(sf)(sf)n?:s>")),v.bind("split",oe(i.split,"<s-(sf)n?:a<s>>")),v.bind("join",oe(i.join,"<a<s>s?:s>")),v.bind("formatNumber",oe(i.formatNumber,"<n-so?:s>")),v.bind("formatBase",oe(i.formatBase,"<n-n?:s>")),v.bind("formatInteger",oe(n.formatInteger,"<n-s:s>")),v.bind("parseInteger",oe(n.parseInteger,"<s-s:n>")),v.bind("number",oe(i.number,"<(nsb)-:n>")),v.bind("floor",oe(i.floor,"<n-:n>")),v.bind("ceil",oe(i.ceil,"<n-:n>")),v.bind("round",oe(i.round,"<n-n?:n>")),v.bind("abs",oe(i.abs,"<n-:n>")),v.bind("sqrt",oe(i.sqrt,"<n-:n>")),v.bind("power",oe(i.power,"<n-n:n>")),v.bind("random",oe(i.random,"<:n>")),v.bind("boolean",oe(i.boolean,"<x-:b>")),v.bind("not",oe(i.not,"<x-:b>")),v.bind("map",oe(i.map,"<af>")),v.bind("zip",oe(i.zip,"<a+>")),v.bind("filter",oe(i.filter,"<af>")),v.bind("single",oe(i.single,"<af?>")),v.bind("reduce",oe(i.foldLeft,"<afj?:j>")),v.bind("sift",oe(i.sift,"<o-f?:o>")),v.bind("keys",oe(i.keys,"<x-:a<s>>")),v.bind("lookup",oe(i.lookup,"<x-s:x>")),v.bind("append",oe(i.append,"<xx:a>")),v.bind("exists",oe(i.exists,"<x:b>")),v.bind("spread",oe(i.spread,"<x-:a<o>>")),v.bind("merge",oe(i.merge,"<a<o>:o>")),v.bind("reverse",oe(i.reverse,"<a:a>")),v.bind("each",oe(i.each,"<o-f:a>")),v.bind("error",oe(i.error,"<s?:x>")),v.bind("assert",oe(i.assert,"<bs?:x>")),v.bind("type",oe(i.type,"<x:s>")),v.bind("sort",oe(i.sort,"<af?:a>")),v.bind("shuffle",oe(i.shuffle,"<a:a>")),v.bind("distinct",oe(i.distinct,"<x:x>")),v.bind("base64encode",oe(i.base64encode,"<s-:s>")),v.bind("base64decode",oe(i.base64decode,"<s-:s>")),v.bind("encodeUrlComponent",oe(i.encodeUrlComponent,"<s-:s>")),v.bind("encodeUrl",oe(i.encodeUrl,"<s-:s>")),v.bind("decodeUrlComponent",oe(i.decodeUrlComponent,"<s-:s>")),v.bind("decodeUrl",oe(i.decodeUrl,"<s-:s>")),v.bind("eval",oe(se,"<sx?:x>")),v.bind("toMillis",oe(n.toMillis,"<s-s?:n>")),v.bind("fromMillis",oe(n.fromMillis,"<n-s?s?:s>")),v.bind("clone",oe(ue,"<(oa)-:o>"));var le={S0101:"String literal must be terminated by a matching quote",S0102:"Number out of range: {{token}}",S0103:"Unsupported escape sequence: \\{{token}}",S0104:"The escape sequence \\u must be followed by 4 hex digits",S0105:"Quoted property name must be terminated with a backquote (`)",S0106:"Comment has no closing tag",S0201:"Syntax error: {{token}}",S0202:"Expected {{value}}, got {{token}}",S0203:"Expected {{value}} before end of expression",S0204:"Unknown operator: {{token}}",S0205:"Unexpected token: {{token}}",S0206:"Unknown expression type: {{token}}",S0207:"Unexpected end of expression",S0208:"Parameter {{value}} of function definition must be a variable name (start with $)",S0209:"A predicate cannot follow a grouping expression in a step",S0210:"Each step can only have one grouping expression",S0211:"The symbol {{token}} cannot be used as a unary operator",S0212:"The left side of := must be a variable name (start with $)",S0213:"The literal value {{value}} cannot be used as a step within a path expression",S0214:"The right side of {{token}} must be a variable name (start with $)",S0215:"A context variable binding must precede any predicates on a step",S0216:"A context variable binding must precede the 'order-by' clause on a step",S0217:"The object representing the 'parent' cannot be derived from this expression",S0301:"Empty regular expressions are not allowed",S0302:"No terminating / in regular expression",S0402:"Choice groups containing parameterized types are not supported",S0401:"Type parameters can only be applied to functions and arrays",S0500:"Attempted to evaluate an expression containing syntax error(s)",T0410:"Argument {{index}} of function {{token}} does not match function signature",T0411:"Context value is not a compatible type with argument {{index}} of function {{token}}",T0412:"Argument {{index}} of function {{token}} must be an array of {{type}}",D1001:"Number out of range: {{value}}",D1002:"Cannot negate a non-numeric value: {{value}}",T1003:"Key in object structure must evaluate to a string; got: {{value}}",D1004:"Regular expression matches zero length string",T1005:"Attempted to invoke a non-function. Did you mean ${{{token}}}?",T1006:"Attempted to invoke a non-function",T1007:"Attempted to partially apply a non-function. Did you mean ${{{token}}}?",T1008:"Attempted to partially apply a non-function",D1009:"Multiple key definitions evaluate to same key: {{value}}",T1010:"The matcher function argument passed to function {{token}} does not return the correct object structure",T2001:"The left side of the {{token}} operator must evaluate to a number",T2002:"The right side of the {{token}} operator must evaluate to a number",T2003:"The left side of the range operator (..) must evaluate to an integer",T2004:"The right side of the range operator (..) must evaluate to an integer",D2005:"The left side of := must be a variable name (start with $)",T2006:"The right side of the function application operator ~> must be a function",T2007:"Type mismatch when comparing values {{value}} and {{value2}} in order-by clause",T2008:"The expressions within an order-by clause must evaluate to numeric or string values",T2009:"The values {{value}} and {{value2}} either side of operator {{token}} must be of the same data type",T2010:"The expressions either side of operator {{token}} must evaluate to numeric or string values",T2011:"The insert/update clause of the transform expression must evaluate to an object: {{value}}",T2012:"The delete clause of the transform expression must evaluate to a string or array of strings: {{value}}",T2013:"The transform expression clones the input object using the $clone() function. This has been overridden in the current scope by a non-function.",D2014:"The size of the sequence allocated by the range operator (..) must not exceed 1e6. Attempted to allocate {{value}}.",D3001:"Attempting to invoke string function on Infinity or NaN",D3010:"Second argument of replace function cannot be an empty string",D3011:"Fourth argument of replace function must evaluate to a positive number",D3012:"Attempted to replace a matched string with a non-string value",D3020:"Third argument of split function must evaluate to a positive number",D3030:"Unable to cast value to a number: {{value}}",D3040:"Third argument of match function must evaluate to a positive number",D3050:"The second argument of reduce function must be a function with at least two arguments",D3060:"The sqrt function cannot be applied to a negative number: {{value}}",D3061:"The power function has resulted in a value that cannot be represented as a JSON number: base={{value}}, exponent={{exp}}",D3070:"The single argument form of the sort function can only be applied to an array of strings or an array of numbers. Use the second argument to specify a comparison function",D3080:"The picture string must only contain a maximum of two sub-pictures",D3081:"The sub-picture must not contain more than one instance of the 'decimal-separator' character",D3082:"The sub-picture must not contain more than one instance of the 'percent' character",D3083:"The sub-picture must not contain more than one instance of the 'per-mille' character",D3084:"The sub-picture must not contain both a 'percent' and a 'per-mille' character",D3085:"The mantissa part of a sub-picture must contain at least one character that is either an 'optional digit character' or a member of the 'decimal digit family'",D3086:"The sub-picture must not contain a passive character that is preceded by an active character and that is followed by another active character",D3087:"The sub-picture must not contain a 'grouping-separator' character that appears adjacent to a 'decimal-separator' character",D3088:"The sub-picture must not contain a 'grouping-separator' at the end of the integer part",D3089:"The sub-picture must not contain two adjacent instances of the 'grouping-separator' character",D3090:"The integer part of the sub-picture must not contain a member of the 'decimal digit family' that is followed by an instance of the 'optional digit character'",D3091:"The fractional part of the sub-picture must not contain an instance of the 'optional digit character' that is followed by a member of the 'decimal digit family'",D3092:"A sub-picture that contains a 'percent' or 'per-mille' character must not contain a character treated as an 'exponent-separator'",D3093:"The exponent part of the sub-picture must comprise only of one or more characters that are members of the 'decimal digit family'",D3100:"The radix of the formatBase function must be between 2 and 36. It was given {{value}}",D3110:"The argument of the toMillis function must be an ISO 8601 formatted timestamp. Given {{value}}",D3120:"Syntax error in expression passed to function eval: {{value}}",D3121:"Dynamic error evaluating the expression passed to function eval: {{value}}",D3130:"Formatting or parsing an integer as a sequence starting with {{value}} is not supported by this implementation",D3131:"In a decimal digit pattern, all digits must be from the same decimal group",D3132:"Unknown component specifier {{value}} in date/time picture string",D3133:"The 'name' modifier can only be applied to months and days in the date/time picture string, not {{value}}",D3134:"The timezone integer format specifier cannot have more than four digits",D3135:"No matching closing bracket ']' in date/time picture string",D3136:"The date/time picture string is missing specifiers required to parse the timestamp",D3137:"{{{message}}}",D3138:"The $single() function expected exactly 1 matching result. Instead it matched more.",D3139:"The $single() function expected exactly 1 matching result. Instead it matched 0.",D3140:"Malformed URL passed to ${{{functionName}}}(): {{value}}",D3141:"{{{message}}}"};function pe(e){var t=le[e.code];if(void 0!==t){var r=t.replace(/\{\{\{([^}]+)}}}/g,(function(){return e[arguments[1]]}));r=r.replace(/\{\{([^}]+)}}/g,(function(){return JSON.stringify(e[arguments[1]])})),e.message=r}}function fe(e,t){var r,i;try{r=o(e,t&&t.recover),i=r.errors,delete r.errors}catch(e){throw pe(e),e}var a=ce(v),s=new Date;return a.bind("now",oe((function(e,t){return n.fromMillis(s.getTime(),e,t)}),"<s?s?:s>")),a.bind("millis",oe((function(){return s.getTime()}),"<:n>")),{evaluate:function(e,t,n){if(void 0!==i){var o={code:"S0500",position:0};throw pe(o),o}var l,p,f;if(void 0!==t)for(var d in l=ce(a),t)l.bind(d,t[d]);else l=a;if(l.bind("$",e),s=new Date,l.timestamp=s,Array.isArray(e)&&!c(e)&&((e=u(e)).outerWrapper=!0),"function"==typeof n){l.async=!0;var h=function(e){pe(e),n(e,null)},v=function(e){(p=f.next(e)).done?n(null,p.value):p.value.then(v).catch(h)};f=g(r,e,l),(p=f.next()).value.then(v).catch(h)}else try{for(f=g(r,e,l),p=f.next();!p.done;)p=f.next(p.value);return p.value}catch(o){throw pe(o),o}},assign:function(e,t){a.bind(e,t)},registerFunction:function(e,t,r){var n=oe(t,r);a.bind(e,n)},ast:function(){return r},errors:function(){return i}}}return fe.parser=o,fe}();t.exports=u},{"./datetime":1,"./functions":2,"./parser":4,"./signature":5,"./utils":6}],4:[function(e,t,r){var n=e("./signature");const i=(a={".":75,"[":80,"]":0,"{":70,"}":0,"(":80,")":0,",":0,"@":80,"#":80,";":80,":":80,"?":20,"+":50,"-":50,"*":60,"/":60,"%":60,"|":20,"=":40,"<":40,">":40,"^":40,"**":60,"..":20,":=":10,"!=":40,"<=":40,">=":40,"~>":40,and:30,or:25,in:40,"&":50,"!":0,"~":0},o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=function(e){var t=0,r=e.length,n=function(e,r){return{type:e,value:r,position:t}},i=function(){for(var n,i,a=t,o=0;t<r;){var s=e.charAt(t);if("/"===s&&"\\"!==e.charAt(t-1)&&0===o){if(""===(n=e.substring(a,t)))throw{code:"S0301",stack:(new Error).stack,position:t};for(t++,s=e.charAt(t),a=t;"i"===s||"m"===s;)t++,s=e.charAt(t);return i=e.substring(a,t)+"g",new RegExp(n,i)}"("!==s&&"["!==s&&"{"!==s||"\\"===e.charAt(t-1)||o++,")"!==s&&"]"!==s&&"}"!==s||"\\"===e.charAt(t-1)||o--,t++}throw{code:"S0302",stack:(new Error).stack,position:t}},s=function(u){if(t>=r)return null;for(var c=e.charAt(t);t<r&&" \t\n\r\v".indexOf(c)>-1;)t++,c=e.charAt(t);if("/"===c&&"*"===e.charAt(t+1)){var l=t;for(t+=2,c=e.charAt(t);"*"!==c||"/"!==e.charAt(t+1);)if(c=e.charAt(++t),t>=r)throw{code:"S0106",stack:(new Error).stack,position:l};return t+=2,c=e.charAt(t),s(u)}if(!0!==u&&"/"===c)return t++,n("regex",i());if("."===c&&"."===e.charAt(t+1))return t+=2,n("operator","..");if(":"===c&&"="===e.charAt(t+1))return t+=2,n("operator",":=");if("!"===c&&"="===e.charAt(t+1))return t+=2,n("operator","!=");if(">"===c&&"="===e.charAt(t+1))return t+=2,n("operator",">=");if("<"===c&&"="===e.charAt(t+1))return t+=2,n("operator","<=");if("*"===c&&"*"===e.charAt(t+1))return t+=2,n("operator","**");if("~"===c&&">"===e.charAt(t+1))return t+=2,n("operator","~>");if(Object.prototype.hasOwnProperty.call(a,c))return t++,n("operator",c);if('"'===c||"'"===c){var p=c;t++;for(var f="";t<r;){if("\\"===(c=e.charAt(t)))if(t++,c=e.charAt(t),Object.prototype.hasOwnProperty.call(o,c))f+=o[c];else{if("u"!==c)throw{code:"S0103",stack:(new Error).stack,position:t,token:c};var d=e.substr(t+1,4);if(!/^[0-9a-fA-F]+$/.test(d))throw{code:"S0104",stack:(new Error).stack,position:t};var h=parseInt(d,16);f+=String.fromCharCode(h),t+=4}else{if(c===p)return t++,n("string",f);f+=c}t++}throw{code:"S0101",stack:(new Error).stack,position:t}}var v,g=/^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/.exec(e.substring(t));if(null!==g){var y=parseFloat(g[0]);if(!isNaN(y)&&isFinite(y))return t+=g[0].length,n("number",y);throw{code:"S0102",stack:(new Error).stack,position:t,token:g[0]}}if("`"===c){t++;var m=e.indexOf("`",t);if(-1!==m)return v=e.substring(t,m),t=m+1,n("name",v);throw t=r,{code:"S0105",stack:(new Error).stack,position:t}}for(var b,k=t;;)if(b=e.charAt(k),k===r||" \t\n\r\v".indexOf(b)>-1||Object.prototype.hasOwnProperty.call(a,b)){if("$"===e.charAt(t))return v=e.substring(t+1,k),t=k,n("variable",v);switch(v=e.substring(t,k),t=k,v){case"or":case"in":case"and":return n("operator",v);case"true":return n("value",!0);case"false":return n("value",!1);case"null":return n("value",null);default:return t===r&&""===v?null:n("name",v)}}else k++};return s},function(e,t){var r,i,o={},u=[],c=function(){var e=[];"(end)"!==r.id&&e.push({type:r.type,value:r.value,position:r.position});for(var t=i();null!==t;)e.push(t),t=i();return e},l={nud:function(){var e={code:"S0211",token:this.value,position:this.position};if(t)return e.remaining=c(),e.type="error",u.push(e),e;throw e.stack=(new Error).stack,e}},p=function(e,t){var r=o[e];return t=t||0,r?t>=r.lbp&&(r.lbp=t):((r=Object.create(l)).id=r.value=e,r.lbp=t,o[e]=r),r},f=function(e){if(t){e.remaining=c(),u.push(e);var n=o["(error)"];return(r=Object.create(n)).error=e,r.type="(error)",r}throw e.stack=(new Error).stack,e},d=function(t,n){if(t&&r.id!==t){var a={code:"(end)"===r.id?"S0203":"S0202",position:r.position,token:r.value,value:t};return f(a)}var s=i(n);if(null===s)return(r=o["(end)"]).position=e.length,r;var u,c=s.value,l=s.type;switch(l){case"name":case"variable":u=o["(name)"];break;case"operator":if(!(u=o[c]))return f({code:"S0204",stack:(new Error).stack,position:s.position,token:c});break;case"string":case"number":case"value":u=o["(literal)"];break;case"regex":l="regex",u=o["(regex)"];break;default:return f({code:"S0205",stack:(new Error).stack,position:s.position,token:c})}return(r=Object.create(u)).value=c,r.type=l,r.position=s.position,r},h=function(e){var t,n=r;for(d(null,!0),t=n.nud();e<r.lbp;)n=r,d(),t=n.led(t);return t},v=function(e){p(e,0).nud=function(){return this}},g=function(e,t,r){var n=t||a[e],i=p(e,n);return i.led=r||function(e){return this.lhs=e,this.rhs=h(n),this.type="binary",this},i},y=function(e,t,r){var n=p(e,t);return n.led=r,n},m=function(e,t){var r=p(e);return r.nud=t||function(){return this.expression=h(70),this.type="unary",this},r};v("(end)"),v("(name)"),v("(literal)"),v("(regex)"),p(":"),p(";"),p(","),p(")"),p("]"),p("}"),p(".."),g("."),g("+"),g("-"),g("*"),g("/"),g("%"),g("="),g("<"),g(">"),g("!="),g("<="),g(">="),g("&"),g("and"),g("or"),g("in"),v("and"),v("or"),v("in"),m("-"),g("~>"),y("(error)",10,(function(e){return this.lhs=e,this.error=r.error,this.remaining=c(),this.type="error",this})),m("*",(function(){return this.type="wildcard",this})),m("**",(function(){return this.type="descendant",this})),m("%",(function(){return this.type="parent",this})),g("(",a["("],(function(e){if(this.procedure=e,this.type="function",this.arguments=[],")"!==r.id)for(;"operator"===r.type&&"?"===r.id?(this.type="partial",this.arguments.push(r),d("?")):this.arguments.push(h(0)),","===r.id;)d(",");if(d(")",!0),"name"===e.type&&("function"===e.value||"λ"===e.value)){if(this.arguments.forEach((function(e,t){if("variable"!==e.type)return f({code:"S0208",stack:(new Error).stack,position:e.position,token:e.value,value:t+1})})),this.type="lambda","<"===r.id){for(var t=r.position,i=1,a="<";i>0&&"{"!==r.id&&"(end)"!==r.id;){var o=d();">"===o.id?i--:"<"===o.id&&i++,a+=o.value}d(">");try{this.signature=n(a)}catch(e){return e.position=t+e.offset,f(e)}}d("{"),this.body=h(0),d("}")}return this})),m("(",(function(){for(var e=[];")"!==r.id&&(e.push(h(0)),";"===r.id);)d(";");return d(")",!0),this.type="block",this.expressions=e,this})),m("[",(function(){var e=[];if("]"!==r.id)for(;;){var t=h(0);if(".."===r.id){var n={type:"binary",value:"..",position:r.position,lhs:t};d(".."),n.rhs=h(0),t=n}if(e.push(t),","!==r.id)break;d(",")}return d("]",!0),this.expressions=e,this.type="unary",this})),g("[",a["["],(function(e){if("]"===r.id){for(var t=e;t&&"binary"===t.type&&"["===t.value;)t=t.lhs;return t.keepArray=!0,d("]"),e}return this.lhs=e,this.rhs=h(a["]"]),this.type="binary",d("]",!0),this})),g("^",a["^"],(function(e){d("(");for(var t=[];;){var n={descending:!1};if("<"===r.id?d("<"):">"===r.id&&(n.descending=!0,d(">")),n.expression=h(0),t.push(n),","!==r.id)break;d(",")}return d(")"),this.lhs=e,this.rhs=t,this.type="binary",this}));var b=function(e){var t=[];if("}"!==r.id)for(;;){var n=h(0);d(":");var i=h(0);if(t.push([n,i]),","!==r.id)break;d(",")}return d("}",!0),void 0===e?(this.lhs=t,this.type="unary"):(this.lhs=e,this.rhs=t,this.type="binary"),this};m("{",b),g("{",a["{"],b),y(":=",a[":="],(function(e){return"variable"!==e.type?f({code:"S0212",stack:(new Error).stack,position:e.position,token:e.value}):(this.lhs=e,this.rhs=h(a[":="]-1),this.type="binary",this)})),g("@",a["@"],(function(e){return this.lhs=e,this.rhs=h(a["@"]),"variable"!==this.rhs.type?f({code:"S0214",stack:(new Error).stack,position:this.rhs.position,token:"@"}):(this.type="binary",this)})),g("#",a["#"],(function(e){return this.lhs=e,this.rhs=h(a["#"]),"variable"!==this.rhs.type?f({code:"S0214",stack:(new Error).stack,position:this.rhs.position,token:"#"}):(this.type="binary",this)})),g("?",a["?"],(function(e){return this.type="condition",this.condition=e,this.then=h(0),":"===r.id&&(d(":"),this.else=h(0)),this})),m("|",(function(){return this.type="transform",this.pattern=h(0),d("|"),this.update=h(0),","===r.id&&(d(","),this.delete=h(0)),d("|"),this}));var k=function(e){var t;if("function"!==e.type||e.predicate)if("condition"===e.type)e.then=k(e.then),void 0!==e.else&&(e.else=k(e.else)),t=e;else if("block"===e.type){var r=e.expressions.length;r>0&&(e.expressions[r-1]=k(e.expressions[r-1])),t=e}else t=e;else{var n={type:"lambda",thunk:!0,arguments:[],position:e.position};n.body=e,t=n}return t},x=0,w=0,A=[],E=function(e,t){switch(e.type){case"name":case"wildcard":t.level--,0===t.level&&(void 0===e.ancestor||(A[t.index].slot.label=e.ancestor.label),e.ancestor=t,e.tuple=!0);break;case"parent":t.level++;break;case"block":e.expressions.length>0&&(e.tuple=!0,t=E(e.expressions[e.expressions.length-1],t));break;case"path":e.tuple=!0;var r=e.steps.length-1;for(t=E(e.steps[r--],t);t.level>0&&r>=0;)t=E(e.steps[r--],t);break;default:throw{code:"S0217",token:e.type,position:e.position}}return t},T=function(e,t){if(void 0!==t.seekingParent||"parent"===t.type){var r=void 0!==t.seekingParent?t.seekingParent:[];"parent"===t.type&&r.push(t.slot),void 0===e.seekingParent?e.seekingParent=r:Array.prototype.push.apply(e.seekingParent,r)}},D=function(e){var t=e.steps.length-1,r=e.steps[t],n=void 0!==r.seekingParent?r.seekingParent:[];"parent"===r.type&&n.push(r.slot);for(var i=0;i<n.length;i++){var a=n[i];for(t=e.steps.length-2;a.level>0;){if(t<0){void 0===e.seekingParent?e.seekingParent=[a]:e.seekingParent.push(a);break}for(var o=e.steps[t--];t>=0&&o.focus&&e.steps[t].focus;)o=e.steps[t--];a=E(o,a)}}},S=function(e){var r;switch(e.type){case"binary":switch(e.value){case".":var n=S(e.lhs);r="path"===n.type?n:{type:"path",steps:[n]},"parent"===n.type&&(r.seekingParent=[n.slot]);var i=S(e.rhs);"function"===i.type&&"path"===i.procedure.type&&1===i.procedure.steps.length&&"name"===i.procedure.steps[0].type&&"function"===r.steps[r.steps.length-1].type&&(r.steps[r.steps.length-1].nextFunction=i.procedure.steps[0].value),"path"===i.type?Array.prototype.push.apply(r.steps,i.steps):(void 0!==i.predicate&&(i.stages=i.predicate,delete i.predicate),r.steps.push(i)),r.steps.filter((function(e){if("number"===e.type||"value"===e.type)throw{code:"S0213",stack:(new Error).stack,position:e.position,value:e.value};return"string"===e.type})).forEach((function(e){e.type="name"})),r.steps.filter((function(e){return!0===e.keepArray})).length>0&&(r.keepSingletonArray=!0);var a=r.steps[0];"unary"===a.type&&"["===a.value&&(a.consarray=!0);var o=r.steps[r.steps.length-1];"unary"===o.type&&"["===o.value&&(o.consarray=!0),D(r);break;case"[":var s=r=S(e.lhs),c="predicate";if("path"===r.type&&(s=r.steps[r.steps.length-1],c="stages"),void 0!==s.group)throw{code:"S0209",stack:(new Error).stack,position:e.position};void 0===s[c]&&(s[c]=[]);var l=S(e.rhs);void 0!==l.seekingParent&&(l.seekingParent.forEach((e=>{1===e.level?E(s,e):e.level--})),T(s,l)),s[c].push({type:"filter",expr:l,position:e.position});break;case"{":if(void 0!==(r=S(e.lhs)).group)throw{code:"S0210",stack:(new Error).stack,position:e.position};r.group={lhs:e.rhs.map((function(e){return[S(e[0]),S(e[1])]})),position:e.position};break;case"^":"path"!==(r=S(e.lhs)).type&&(r={type:"path",steps:[r]});var p={type:"sort",position:e.position};p.terms=e.rhs.map((function(e){var t=S(e.expression);return T(p,t),{descending:e.descending,expression:t}})),r.steps.push(p),D(r);break;case":=":(r={type:"bind",value:e.value,position:e.position}).lhs=S(e.lhs),r.rhs=S(e.rhs),T(r,r.rhs);break;case"@":if(r=S(e.lhs),s=r,"path"===r.type&&(s=r.steps[r.steps.length-1]),void 0!==s.stages||void 0!==s.predicate)throw{code:"S0215",stack:(new Error).stack,position:e.position};if("sort"===s.type)throw{code:"S0216",stack:(new Error).stack,position:e.position};e.keepArray&&(s.keepArray=!0),s.focus=e.rhs.value,s.tuple=!0;break;case"#":r=S(e.lhs),s=r,"path"===r.type?s=r.steps[r.steps.length-1]:(r={type:"path",steps:[r]},void 0!==s.predicate&&(s.stages=s.predicate,delete s.predicate)),void 0===s.stages?s.index=e.rhs.value:s.stages.push({type:"index",value:e.rhs.value,position:e.position}),s.tuple=!0;break;case"~>":(r={type:"apply",value:e.value,position:e.position}).lhs=S(e.lhs),r.rhs=S(e.rhs);break;default:(r={type:e.type,value:e.value,position:e.position}).lhs=S(e.lhs),r.rhs=S(e.rhs),T(r,r.lhs),T(r,r.rhs)}break;case"unary":r={type:e.type,value:e.value,position:e.position},"["===e.value?r.expressions=e.expressions.map((function(e){var t=S(e);return T(r,t),t})):"{"===e.value?r.lhs=e.lhs.map((function(e){var t=S(e[0]);T(r,t);var n=S(e[1]);return T(r,n),[t,n]})):(r.expression=S(e.expression),"-"===e.value&&"number"===r.expression.type?(r=r.expression).value=-r.value:T(r,r.expression));break;case"function":case"partial":(r={type:e.type,name:e.name,value:e.value,position:e.position}).arguments=e.arguments.map((function(e){var t=S(e);return T(r,t),t})),r.procedure=S(e.procedure);break;case"lambda":r={type:e.type,arguments:e.arguments,signature:e.signature,position:e.position};var f=S(e.body);r.body=k(f);break;case"condition":(r={type:e.type,position:e.position}).condition=S(e.condition),T(r,r.condition),r.then=S(e.then),T(r,r.then),void 0!==e.else&&(r.else=S(e.else),T(r,r.else));break;case"transform":(r={type:e.type,position:e.position}).pattern=S(e.pattern),r.update=S(e.update),void 0!==e.delete&&(r.delete=S(e.delete));break;case"block":(r={type:e.type,position:e.position}).expressions=e.expressions.map((function(e){var t=S(e);return T(r,t),(t.consarray||"path"===t.type&&t.steps[0].consarray)&&(r.consarray=!0),t}));break;case"name":r={type:"path",steps:[e]},e.keepArray&&(r.keepSingletonArray=!0);break;case"parent":r={type:"parent",slot:{label:"!"+x++,level:1,index:w++}},A.push(r);break;case"string":case"number":case"value":case"wildcard":case"descendant":case"variable":case"regex":r=e;break;case"operator":if("and"===e.value||"or"===e.value||"in"===e.value)e.type="name",r=S(e);else{if("?"!==e.value)throw{code:"S0201",stack:(new Error).stack,position:e.position,token:e.value};r=e}break;case"error":r=e,e.lhs&&(r=S(e.lhs));break;default:var d="S0206";"(end)"===e.id&&(d="S0207");var h={code:d,position:e.position,token:e.value};if(t)return u.push(h),{type:"error",error:h};throw h.stack=(new Error).stack,h}return e.keepArray&&(r.keepArray=!0),r};i=s(e),d();var O=h(0);if("(end)"!==r.id){var P={code:"S0201",position:r.position,token:r.value};f(P)}if("parent"===(O=S(O)).type||void 0!==O.seekingParent)throw{code:"S0217",token:O.type,position:O.position};return u.length>0&&(O.errors=u),O});var a,o,s;t.exports=i},{"./signature":5}],5:[function(e,t,r){var n=e("./utils");const i=(()=>{var e={a:"arrays",b:"booleans",f:"functions",n:"numbers",o:"objects",s:"strings"};function t(t){for(var r=1,i=[],a={},o=a;r<t.length;){var s=t.charAt(r);if(":"===s)break;var u=function(){i.push(a),o=a,a={}},c=function(e,t,r,n){for(var i=1,a=t;a<e.length;)if(a++,(s=e.charAt(a))===n){if(0==--i)break}else s===r&&i++;return a};switch(s){case"s":case"n":case"b":case"l":case"o":a.regex="["+s+"m]",a.type=s,u();break;case"a":a.regex="[asnblfom]",a.type=s,a.array=!0,u();break;case"f":a.regex="f",a.type=s,u();break;case"j":a.regex="[asnblom]",a.type=s,u();break;case"x":a.regex="[asnblfom]",a.type=s,u();break;case"-":o.context=!0,o.contextRegex=new RegExp(o.regex),o.regex+="?";break;case"?":case"+":o.regex+=s;break;case"(":var l=c(t,r,"(",")"),p=t.substring(r+1,l);if(-1!==p.indexOf("<"))throw{code:"S0402",stack:(new Error).stack,value:p,offset:r};a.regex="["+p+"m]",a.type="("+p+")",r=l,u();break;case"<":if("a"!==o.type&&"f"!==o.type)throw{code:"S0401",stack:(new Error).stack,value:o.type,offset:r};var f=c(t,r,"<",">");o.subtype=t.substring(r+1,f),r=f}r++}var d="^"+i.map((function(e){return"("+e.regex+")"})).join("")+"$",h=new RegExp(d),v=function(e){var t;if(n.isFunction(e))t="f";else switch(typeof e){case"string":t="s";break;case"number":t="n";break;case"boolean":t="b";break;case"object":t=null===e?"l":Array.isArray(e)?"a":"o";break;case"undefined":default:t="m"}return t},g=function(e,t){for(var r="^",n=0,a=0;a<i.length;a++){r+=i[a].regex;var o=t.match(r);if(null===o)throw{code:"T0410",stack:(new Error).stack,value:e[n],index:n+1};n=o[0].length}throw{code:"T0410",stack:(new Error).stack,value:e[n],index:n+1}};return{definition:t,validate:function(t,r){var n="";t.forEach((function(e){n+=v(e)}));var a=h.exec(n);if(a){var o=[],s=0;return i.forEach((function(n,i){var u=t[s],c=a[i+1];if(""===c)if(n.context&&n.contextRegex){var l=v(r);if(!n.contextRegex.test(l))throw{code:"T0411",stack:(new Error).stack,value:r,index:s+1};o.push(r)}else o.push(u),s++;else c.split("").forEach((function(r){if("a"===n.type){if("m"===r)u=void 0;else{u=t[s];var i=!0;if(void 0!==n.subtype)if("a"!==r&&c!==n.subtype)i=!1;else if("a"===r&&u.length>0){var a=v(u[0]);i=a===n.subtype.charAt(0)&&0===u.filter((function(e){return v(e)!==a})).length}if(!i)throw{code:"T0412",stack:(new Error).stack,value:u,index:s+1,type:e[n.subtype]};"a"!==r&&(u=[u])}o.push(u),s++}else o.push(u),s++}))})),o}g(t,n)}}}return t})();t.exports=i},{"./utils":6}],6:[function(e,t,r){const n=(()=>{function e(e){var t=!1;if("number"==typeof e&&(t=!isNaN(e))&&!isFinite(e))throw{code:"D1001",value:e,stack:(new Error).stack};return t}function t(e){var t=!1;return Array.isArray(e)&&(t=0===e.filter((function(e){return"string"!=typeof e})).length),t}function r(t){var r=!1;return Array.isArray(t)&&(r=0===t.filter((function(t){return!e(t)})).length),r}function n(){var e=[];return e.sequence=!0,1===arguments.length&&e.push(arguments[0]),e}function i(e){return!0===e.sequence&&Array.isArray(e)}function a(e){return e&&(!0===e._jsonata_function||!0===e._jsonata_lambda)||"function"==typeof e}function o(e){return"number"==typeof e.arity?e.arity:"function"==typeof e.implementation?e.implementation.length:"number"==typeof e.length?e.length:e.arguments.length}function s(e){return e&&!0===e._jsonata_lambda}var u=("function"==typeof Symbol?Symbol:{}).iterator||"@@iterator";function c(e){return"object"==typeof e&&null!==e&&u in e&&"next"in e&&"function"==typeof e.next}function l(e,t){if(e===t)return!0;if("object"==typeof e&&"object"==typeof t&&null!==e&&null!==t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!l(e[r],t[r]))return!1;return!0}var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!==i.length)return!1;for(n=n.sort(),i=i.sort(),r=0;r<n.length;r++)if(n[r]!==i[r])return!1;for(r=0;r<n.length;r++){var a=n[r];if(!l(e[a],t[a]))return!1}return!0}return!1}function p(e){var t=[];for(let r of e)t.push(r);return t}return{isNumeric:e,isArrayOfStrings:t,isArrayOfNumbers:r,createSequence:n,isSequence:i,isFunction:a,isLambda:s,isIterable:c,getFunctionArity:o,isDeepEqual:l,stringToArray:p}})();t.exports=n},{}]},{},[3])(3)}));export{n as j};
@@ -1 +0,0 @@
1
- import{_ as r}from"./shared-17968c53.js";import{p as s}from"./shared-87ca7818.js";function t(t){var a;const n=s(t),o=null!==(a={y:"yearly",m:"monthly",w:"weekly",d:"daily"}[n.units])&&void 0!==a?a:n.units;return r(r({},n),{},{units:o})}export{t as p};
@@ -1 +0,0 @@
1
- import{L as e,_ as s,j as t,h as r}from"./shared-17968c53.js";import"./shared-45d647e4.js";import"./shared-b98f88c9.js";import"./shared-e0248713.js";import{C as o}from"./shared-f0199313.js";import{T as c}from"./shared-c1e0e11f.js";class a extends CustomEvent{constructor(e){super("change",{detail:e})}}let i,l,n=e=>e;class d extends(o(c(e))){constructor(){super(...arguments),this.checked=!1}static get properties(){return s(s({},super.properties),{},{checked:{type:Boolean}})}static get styles(){return[super.styles,t(i||(i=n`.ml-xxl{margin-left:calc(var(--lumo-space-m) + 1.125rem)}.check{height:1.125rem;width:1.125rem}`))]}render(){const e=this.checked,s="transition-colors ease-in-out duration-200",t=`${s} ${e?"bg-primary":"bg-contrast-20 group-hover-bg-contrast-30"}`,o=`${s} transform ${e?"scale-100":"scale-0"}`;return r(l||(l=n` <label class="flex group cursor-pointer"> <div class="flex-shrink-0 check rounded-s ${0} text-primary-contrast focus-within-shadow-outline"> <iron-icon icon="lumo:checkmark" class="block w-full h-full ${0}"></iron-icon> <input type="checkbox" class="sr-only" .checked="${0}" ?disabled="${0}" data-testid="input" @change="${0}"> </div> <div class="flex-1 font-lumo text-body leading-m -mt-xs ml-m"> <slot></slot> </div> </label> <div class="font-lumo ${0} ml-xxl"> <slot name="content"></slot> </div> `),t,o,e,this.disabled,(e=>{e.stopPropagation(),this.checked=!this.checked,this.dispatchEvent(new a(this.checked))}),this.disabled?"text-tertiary":"text-body")}}export{d as C};