@cinerino/sdk 15.0.0-alpha.2 → 15.0.0-alpha.21

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 (40) hide show
  1. package/lib/abstract/chevre/product.js +0 -17
  2. package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
  3. package/lib/abstract/chevreAdmin/order.d.ts +3 -23
  4. package/lib/abstract/chevreAdmin/order.js +2 -6
  5. package/lib/abstract/chevreAdmin/reservation.d.ts +44 -6
  6. package/lib/abstract/chevreAdmin/reservation.js +1 -1
  7. package/lib/abstract/chevreAdmin.d.ts +0 -9
  8. package/lib/abstract/chevreAdmin.js +0 -9
  9. package/lib/abstract/chevreConsole/accountingReport.d.ts +5 -5
  10. package/lib/abstract/chevreConsole/accountingReport.js +2 -9
  11. package/lib/abstract/chevreConsole/customerType.d.ts +3 -1
  12. package/lib/abstract/chevreConsole/iam.d.ts +9 -58
  13. package/lib/abstract/chevreConsole/iam.js +16 -92
  14. package/lib/abstract/chevreConsole/offerCatalog.js +0 -32
  15. package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +0 -22
  16. package/lib/abstract/chevreConsole/offerCatalogItem.js +0 -11
  17. package/lib/abstract/chevreConsole/order/factory.d.ts +89 -1
  18. package/lib/abstract/chevreConsole/order.d.ts +0 -5
  19. package/lib/abstract/chevreConsole/order.js +0 -12
  20. package/lib/abstract/chevreConsole/person.d.ts +6 -54
  21. package/lib/abstract/chevreConsole/person.js +5 -65
  22. package/lib/abstract/chevreConsole.d.ts +0 -18
  23. package/lib/abstract/chevreConsole.js +0 -19
  24. package/lib/abstract/chevreTxn/offer.d.ts +1 -1
  25. package/lib/abstract/cloud/admin/eventSeries.d.ts +2 -3
  26. package/lib/abstract/cloud/admin/offer.d.ts +1 -1
  27. package/lib/abstract/cloud/admin/order.d.ts +4 -14
  28. package/lib/abstract/cloud/admin/order.js +15 -3
  29. package/lib/abstract/cloud/admin/reservation.d.ts +2 -1
  30. package/lib/abstract/cloud/admin/reservation.js +9 -9
  31. package/lib/abstract/cloud/search/product.js +0 -3
  32. package/lib/bundle.js +4 -4
  33. package/lib/bundle.js.map +4 -4
  34. package/package.json +2 -2
  35. package/lib/abstract/chevreAdmin/authorization.d.ts +0 -72
  36. package/lib/abstract/chevreAdmin/authorization.js +0 -23
  37. package/lib/abstract/chevreConsole/advanceBookingRequirement.d.ts +0 -19
  38. package/lib/abstract/chevreConsole/advanceBookingRequirement.js +0 -46
  39. package/lib/abstract/chevreConsole/productModel.d.ts +0 -56
  40. package/lib/abstract/chevreConsole/productModel.js +0 -44
package/lib/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ty=o(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0})});var ht=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});var ow;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.ServiceUnavailable="ServiceUnavailable",t.RateLimitExceeded="RateLimitExceeded",t.Unauthorized="Unauthorized"})(ow=An.ErrorCode||(An.ErrorCode={}))});var Et=o((UL,ry)=>{"use strict";ry.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?aw:cw);function aw(t,e){return t.__proto__=e,t}function cw(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var yt=o(wr=>{"use strict";var uw=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var dw=(function(t){uw(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);wr.WaiterError=dw});var ny=o(Rr=>{"use strict";var lw=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var fw=Et(),hw=ht(),yw=yt(),pw=(function(t){lw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Invalid or missing argument supplied: "+r),s=t.call(this,hw.ErrorCode.Argument,i)||this,s.argumentName=r,fw(s,e.prototype),s}return e})(yw.WaiterError);Rr.ArgumentError=pw});var sy=o(Mr=>{"use strict";var vw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mr,"__esModule",{value:!0});var Sw=Et(),mw=ht(),_w=yt(),Ow=(function(t){vw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Missing argument: "+r),s=t.call(this,mw.ErrorCode.Argument,i)||this,s.argumentName=r,Sw(s,e.prototype),s}return e})(_w.WaiterError);Mr.ArgumentNullError=Ow});var iy=o(Ir=>{"use strict";var Tw=Ir&&Ir.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ir,"__esModule",{value:!0});var Ew=Et(),Cw=ht(),gw=yt(),bw=(function(t){Tw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,Cw.ErrorCode.Forbidden,s)||this,Ew(n,e.prototype),n}return e})(gw.WaiterError);Ir.ForbiddenError=bw});var oy=o(qr=>{"use strict";var Pw=qr&&qr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qr,"__esModule",{value:!0});var Aw=Et(),ww=ht(),Rw=yt(),Mw=(function(t){Pw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,ww.ErrorCode.NotFound,i)||this,s.entityName=r,Aw(s,e.prototype),s}return e})(Rw.WaiterError);qr.NotFoundError=Mw});var ay=o(Nr=>{"use strict";var Iw=Nr&&Nr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Nr,"__esModule",{value:!0});var qw=Et(),Nw=ht(),jw=yt(),xw=(function(t){Iw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Rate limit exceeded."),n=t.call(this,Nw.ErrorCode.RateLimitExceeded,s)||this,qw(n,e.prototype),n}return e})(jw.WaiterError);Nr.RateLimitExceededError=xw});var cy=o(jr=>{"use strict";var Uw=jr&&jr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(jr,"__esModule",{value:!0});var Dw=Et(),Fw=ht(),Lw=yt(),kw=(function(t){Uw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Service unavailable temporarily."),n=t.call(this,Fw.ErrorCode.ServiceUnavailable,s)||this,Dw(n,e.prototype),n}return e})(Lw.WaiterError);jr.ServiceUnavailableError=kw});var uy=o(xr=>{"use strict";var Bw=xr&&xr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(xr,"__esModule",{value:!0});var $w=Et(),Gw=ht(),Kw=yt(),Hw=(function(t){Bw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,Gw.ErrorCode.Unauthorized,s)||this,$w(n,e.prototype),n}return e})(Kw.WaiterError);xr.UnauthorizedError=Hw});var dy=o(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});var Ww=ny();ct.Argument=Ww.ArgumentError;var zw=sy();ct.ArgumentNull=zw.ArgumentNullError;var Vw=iy();ct.Forbidden=Vw.ForbiddenError;var Yw=oy();ct.NotFound=Yw.NotFoundError;var Qw=ay();ct.RateLimitExceeded=Qw.RateLimitExceededError;var Zw=cy();ct.ServiceUnavailable=Zw.ServiceUnavailableError;var Jw=uy();ct.Unauthorized=Jw.UnauthorizedError;var Xw=yt();ct.Waiter=Xw.WaiterError});var fy=o(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0})});var yy=o(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0})});var vy=o(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0})});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var _y=o(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});var e0=ty();pt.client=e0;var t0=ht();pt.errorCode=t0.ErrorCode;var r0=dy();pt.errors=r0;var n0=fy();pt.passport=n0;var s0=yy();pt.project=s0;var i0=vy();pt.rule=i0;var o0=my();pt.ruleSet=o0});var Ty=o(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0})});var Cy=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.FlgMember=void 0;var Ey;(function(t){t.NonMember="0",t.Member="1"})(Ey||(wn.FlgMember=Ey={}))});var by=o(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0})});var Ay=o(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0})});var Ry=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ObjectType=void 0;var wy;(function(t){t.SeatReservation="SeatReservation"})(wy||(Rn.ObjectType=wy={}))});var My=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.ObjectType=void 0;var a0=Ry();Object.defineProperty(Mn,"ObjectType",{enumerable:!0,get:function(){return a0.ObjectType}})});var Ny=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.ServiceIdentifier=zt.ResultType=void 0;var Iy;(function(t){t.Payment="Payment"})(Iy||(zt.ResultType=Iy={}));var qy;(function(t){t.Chevre="Chevre"})(qy||(zt.ServiceIdentifier=qy={}))});var xy=o(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0})});var Dy=o(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0})});var Ly=o(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var By=o(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0})});var Gy=o($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Hy=o(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0})});var zy=o(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0})});var Yy=o(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Zy=o(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0})});var Xy=o(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0})});var tp=o(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0})});var np=o(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0})});var ip=o(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0})});var ap=o(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0})});var up=o(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0})});var lp=o(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0})});var hp=o(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0})});var pp=o(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0})});var Sp=o(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0})});var _p=o(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0})});var Tp=o(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0})});var Ep=o(qt=>{"use strict";var c0=qt&&qt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),u0=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&c0(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});u0(Tp(),qt)});var gp=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.ObjectAsTransactionSpecifyingMethod=void 0;var Cp;(function(t){t.Id="Id",t.AgentId="AgentId"})(Cp||(In.ObjectAsTransactionSpecifyingMethod=Cp={}))});var Pp=o(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0})});var wp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var Mp=o(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0})});var qp=o(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0})});var Np=o(vt=>{"use strict";var d0=vt&&vt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ic=vt&&vt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&d0(e,t,r)};Object.defineProperty(vt,"__esModule",{value:!0});Ic(wp(),vt);Ic(Mp(),vt);Ic(qp(),vt)});var xp=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.ActionStatusType=void 0;var jp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(jp||(qn.ActionStatusType=jp={}))});var Dp=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.ActionType=void 0;var Up;(function(t){t.AddAction="AddAction",t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.DeleteAction="DeleteAction",t.InformAction="InformAction",t.MoneyTransfer="MoneyTransfer",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.RegisterAction="RegisterAction",t.ReplaceAction="ReplaceAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.UnRegisterAction="UnRegisterAction",t.UpdateAction="UpdateAction",t.UseAction="UseAction"})(Up||(Nn.ActionType=Up={}))});var Lp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var Bp=o(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0})});var Gp=o($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0})});var Hp=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.AggregationType=void 0;var Kp;(function(t){t.AggregateAuthorizeEventServiceOfferAction="AggregateAuthorizeEventServiceOfferAction",t.AggregateAuthorizeOrderAction="AggregateAuthorizeOrderAction",t.AggregateAuthorizePaymentAction="AggregateAuthorizePaymentAction",t.AggregateCancelReservationAction="AggregateCancelReservationAction",t.AggregateCheckMovieTicketAction="AggregateCheckMovieTicketAction",t.AggregateEvent="AggregateEvent",t.AggregateOrder="AggregateOrder",t.AggregateOrderAction="AggregateOrderAction",t.AggregatePay="AggregatePay",t.AggregatePayMovieTicketAction="AggregatePayMovieTicketAction",t.AggregatePlaceOrder="AggregatePlaceOrder",t.AggregateReserve="AggregateReserve",t.AggregateReserveAction="AggregateReserveAction",t.AggregateTask="AggregateTask",t.AggregateUseAction="AggregateUseAction"})(Kp||(jn.AggregationType=Kp={}))});var zp=o(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0})});var Yp=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.CategorySetIdentifier=void 0;var Vp;(function(t){t.ContentRatingType="ContentRatingType",t.CurrencyType="CurrencyType",t.CustomerType="CustomerType",t.DistributorType="DistributorType",t.MembershipType="MembershipType",t.OfferCategoryType="OfferCategoryType",t.PaymentMethodType="PaymentMethodType",t.SeatingType="SeatingType",t.ServiceType="ServiceType",t.SoundFormatType="SoundFormatType",t.VideoFormatType="VideoFormatType"})(Vp||(xn.CategorySetIdentifier=Vp={}))});var qc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CertificationStatusEnumeration=void 0;var Qp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Qp||(Un.CertificationStatusEnumeration=Qp={}))});var Jp=o(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0})});var ev=o(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0})});var rv=o(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var sv=o(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0})});var ov=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.AboutIdentifier=void 0;var iv;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(iv||(Dn.AboutIdentifier=iv={}))});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var lv=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.PermissionGranteeAudienceType=Vt.DigitalDocumentPermissionType=void 0;var uv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(uv||(Vt.DigitalDocumentPermissionType=uv={}));var dv;(function(t){t.Public="public"})(dv||(Vt.PermissionGranteeAudienceType=dv={}))});var hv=o(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var pv=o(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0})});var Nc=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.CreativeWorkType=void 0;var vv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(vv||(Fn.CreativeWorkType=vv={}))});var mv=o(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0})});var Rv=o(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.Video=ce.Text=ce.Multipart=ce.Model=ce.Message=ce.Image=ce.Example=ce.Font=ce.Audio=ce.Application=void 0;var _v;(function(t){t.pdf="application/pdf",t.json="application/json"})(_v||(ce.Application=_v={}));var Ov;Ov||(ce.Audio=Ov={});var Tv;Tv||(ce.Font=Tv={});var Ev;Ev||(ce.Example=Ev={});var Cv;Cv||(ce.Image=Cv={});var gv;gv||(ce.Message=gv={});var bv;bv||(ce.Model=bv={});var Pv;Pv||(ce.Multipart=Pv={});var Av;(function(t){t.csv="text/csv"})(Av||(ce.Text=Av={}));var wv;wv||(ce.Video=wv={})});var Iv=o(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0})});var Nv=o(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0})});var xv=o(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0})});var jc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.EventStatusType=void 0;var Uv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Uv||(Ln.EventStatusType=Uv={}))});var xc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.EventType=void 0;var Dv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Dv||(kn.EventType=Dv={}))});var Lv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var Bv=o(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0})});var Gv=o($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Hv=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.ItemAvailability=void 0;var Kv;(function(t){t.Discontinued="Discontinued",t.InStock="InStock",t.InStoreOnly="InStoreOnly",t.LimitedAvailability="LimitedAvailability",t.OnlineOnly="OnlineOnly",t.OutOfStock="OutOfStock",t.PreOrder="PreOrder",t.PreSale="PreSale",t.SoldOut="SoldOut"})(Kv||(Bn.ItemAvailability=Kv={}))});var zv=o(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Uc=o(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.MerchantReturnEnumeration=Ct.ReturnFeesEnumeration=Ct.RefundTypeEnumeration=void 0;var Vv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Vv||(Ct.RefundTypeEnumeration=Vv={}));var Yv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Yv||(Ct.ReturnFeesEnumeration=Yv={}));var Qv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Qv||(Ct.MerchantReturnEnumeration=Qv={}))});var Jv=o(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0})});var eS=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.CategorySetIdentifier=void 0;var Xv;(function(t){t.MovieTicketType="MovieTicketType"})(Xv||($n.CategorySetIdentifier=Xv={}))});var rS=o(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0})});var sS=o(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0})});var oS=o(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0})});var cS=o(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0})});var dS=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OfferItemCondition=void 0;var uS;(function(t){t.NewCondition="NewCondition"})(uS||(Gn.OfferItemCondition=uS={}))});var Dc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OfferType=void 0;var lS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(lS||(Kn.OfferType=lS={}))});var Fc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.OrderType=void 0;var fS;(function(t){t.Order="Order"})(fS||(Hn.OrderType=fS={}))});var Lc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.OrderStatus=void 0;var hS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(hS||(Wn.OrderStatus=hS={}))});var pS=o(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0})});var kc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.OrganizationType=void 0;var vS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(vS||(zn.OrganizationType=vS={}))});var mS=o(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0})});var OS=o(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0})});var ES=o(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0})});var Bc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PaymentStatusType=void 0;var CS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(CS||(Vn.PaymentStatusType=CS={}))});var bS=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PermitType=void 0;var gS;(function(t){t.Permit="Permit"})(gS||(Yn.PermitType=gS={}))});var AS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});var $c=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PersonType=void 0;var wS;(function(t){t.Person="Person"})(wS||(Qn.PersonType=wS={}))});var MS=o(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0})});var qS=o(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0})});var jS=o(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0})});var US=o(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0})});var FS=o(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0})});var Gc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PlaceType=void 0;var LS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(LS||(Zn.PlaceType=LS={}))});var BS=o(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0})});var Kc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.PriceCurrency=void 0;var $S;(function(t){t.JPY="JPY"})($S||(Jn.PriceCurrency=$S={}))});var KS=o(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0})});var Hc=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.PriceSpecificationType=void 0;var HS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(HS||(Xn.PriceSpecificationType=HS={}))});var Wc=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.ProductType=void 0;var WS;(function(t){t.EventService="EventService",t.Product="Product"})(WS||(es.ProductType=WS={}))});var VS=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ProgramMembershipType=void 0;var zS;(function(t){t.ProgramMembership="ProgramMembership"})(zS||(ts.ProgramMembershipType=zS={}))});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.PropertyValueType=void 0;var ZS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(ZS||(rs.PropertyValueType=ZS={}))});var em=o(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0})});var rm=o(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0})});var sm=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.StringValue=void 0;var nm;(function(t){t.Infinity="Infinity"})(nm||(ns.StringValue=nm={}))});var om=o(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0})});var cm=o(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0})});var dm=o(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0})});var zc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.ReservationStatusType=void 0;var lm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(lm||(ss.ReservationStatusType=lm={}))});var Vc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.ReservationType=void 0;var fm;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(fm||(is.ReservationType=fm={}))});var Yc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.AssetTransactionType=void 0;var hm;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(hm||(os.AssetTransactionType=hm={}))});var Qc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.SortType=void 0;var ym;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(ym||(as.SortType=ym={}))});var Zc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TaskStatus=void 0;var pm;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(pm||(cs.TaskStatus=pm={}))});var Jc=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.TransactionStatusType=void 0;var vm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(vm||(us.TransactionStatusType=vm={}))});var Xc=o(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.TransactionType=void 0;var Sm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(Sm||(ds.TransactionType=Sm={}))});var eu=o(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.UnitCode=void 0;var mm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(mm||(ls.UnitCode=mm={}))});var Pm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RESERVED_CODE_VALUES=void 0;var fs=Yc(),_m=qc(),Nt=Nc(),hs=jc(),Om=xc(),ut=Uc(),Tm=Dc(),l0=Fc(),Yt=Lc(),tu=kc(),Ur=Bc(),f0=$c(),Qt=Gc(),h0=Kc(),Dr=Hc(),Em=Wc(),ys=zc(),Cm=Vc(),gm=Qc(),Fr=Zc(),ps=Jc(),bm=Xc(),vs=eu();Ss.RESERVED_CODE_VALUES=["AccountTitle",fs.AssetTransactionType.CancelReservation,"MoneyTransfer",fs.AssetTransactionType.Pay,fs.AssetTransactionType.Refund,fs.AssetTransactionType.Reserve,"Authorization",_m.CertificationStatusEnumeration.CertificationActive,_m.CertificationStatusEnumeration.CertificationInactive,Nt.CreativeWorkType.Certification,"Comment",Nt.CreativeWorkType.EmailMessage,Nt.CreativeWorkType.Movie,Nt.CreativeWorkType.NoteDigitalDocument,Nt.CreativeWorkType.SoftwareApplication,Nt.CreativeWorkType.WebApplication,Nt.CreativeWorkType.WebSite,"Event",hs.EventStatusType.EventCancelled,hs.EventStatusType.EventPostponed,hs.EventStatusType.EventRescheduled,hs.EventStatusType.EventScheduled,Om.EventType.ScreeningEvent,Om.EventType.ScreeningEventSeries,ut.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ut.MerchantReturnEnumeration.MerchantReturnNotPermitted,ut.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ut.MerchantReturnEnumeration.MerchantReturnUnspecified,ut.RefundTypeEnumeration.ExchangeRefund,ut.RefundTypeEnumeration.FullRefund,ut.RefundTypeEnumeration.StoreCreditRefund,ut.ReturnFeesEnumeration.FreeReturn,ut.ReturnFeesEnumeration.RestockingFees,ut.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",Tm.OfferType.AggregateOffer,Tm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",l0.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,tu.OrganizationType.Corporation,tu.OrganizationType.Organization,tu.OrganizationType.Project,"OwnershipInfo",Ur.PaymentStatusType.PaymentAutomaticallyApplied,Ur.PaymentStatusType.PaymentComplete,Ur.PaymentStatusType.PaymentDeclined,Ur.PaymentStatusType.PaymentDue,Ur.PaymentStatusType.PaymentPastDue,f0.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,h0.PriceCurrency.JPY,Dr.PriceSpecificationType.CategoryCodeChargeSpecification,Dr.PriceSpecificationType.CompoundPriceSpecification,Dr.PriceSpecificationType.MovieTicketTypeChargeSpecification,Dr.PriceSpecificationType.PriceSpecification,Dr.PriceSpecificationType.UnitPriceSpecification,Em.ProductType.EventService,Em.ProductType.Product,ys.ReservationStatusType.ReservationCancelled,ys.ReservationStatusType.ReservationConfirmed,ys.ReservationStatusType.ReservationPending,"ReservationHold",ys.ReservationStatusType.ReservationPending,"BusReservation",Cm.ReservationType.EventReservation,Cm.ReservationType.ReservationPackage,gm.SortType.Ascending,gm.SortType.Descending,Fr.TaskStatus.Aborted,Fr.TaskStatus.Executed,Fr.TaskStatus.Ready,Fr.TaskStatus.Running,Fr.TaskStatus.Expired,ps.TransactionStatusType.Canceled,ps.TransactionStatusType.Confirmed,ps.TransactionStatusType.Expired,ps.TransactionStatusType.InProgress,bm.TransactionType.PlaceOrder,bm.TransactionType.ReturnOrder,vs.UnitCode.Ann,vs.UnitCode.C62,vs.UnitCode.Day,vs.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var wm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.RoleType=void 0;var Am;(function(t){t.OrganizationRole="OrganizationRole"})(Am||(ms.RoleType=Am={}))});var Mm=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.RoleName=void 0;var Rm;(function(t){t.Customer="customer",t.POS="pos",t.EventsViewer="events.viewer",t.Owner="owner",t.User="user",t.SellerAdmin="sellerAdmin",t.TicketClerk="ticketClerk",t.InventoryManager="inventoryManager",t.Accountant="accountant",t.TicketCollector="ticketCollector",t.IAMRoleAdmin="iam.roleAdmin",t.PaymentServiceAdmin="paymentServiceAdmin",t.MemberAdmin="memberAdmin",t.SellersOwner="sellers.owner",t.SellersInventoryManager="sellers.inventoryManager",t.SellersIAMRoleAdmin="sellers.iam.roleAdmin",t.AdminInventoryManager="admin.inventoryManager"})(Rm||(_s.RoleName=Rm={}))});var qm=o(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0})});var jm=o(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0})});var Um=o(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0})});var Fm=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.PaymentServiceType=void 0;var Dm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Dm||(Os.PaymentServiceType=Dm={}))});var km=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Identifier=void 0;var Lm;(function(t){t.COA="COA",t.Chevre="Chevre"})(Lm||(Ts.Identifier=Lm={}))});var $m=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0})});var Wm=o(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0})});var Vm=o(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0})});var Qm=o(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0})});var Jm=o(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0})});var e_=o(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0})});var r_=o(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0})});var s_=o(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0})});var o_=o(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0})});var c_=o(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0})});var d_=o(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var f_=o(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0})});var y_=o(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0})});var v_=o(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0})});var m_=o(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0})});var O_=o(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0})});var E_=o(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0})});var g_=o(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0})});var P_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0})});var M_=o(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0})});var q_=o(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0})});var j_=o(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0})});var U_=o(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0})});var F_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0})});var $_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0})});var W_=o(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0})});var V_=o(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0})});var Q_=o(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0})});var J_=o(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0})});var eO=o(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0})});var rO=o(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0})});var sO=o(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var oO=o(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var cO=o(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var dO=o(uO=>{"use strict";Object.defineProperty(uO,"__esModule",{value:!0})});var fO=o(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var yO=o(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=o(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var mO=o(SO=>{"use strict";Object.defineProperty(SO,"__esModule",{value:!0})});var OO=o(_O=>{"use strict";Object.defineProperty(_O,"__esModule",{value:!0})});var EO=o(TO=>{"use strict";Object.defineProperty(TO,"__esModule",{value:!0})});var gO=o(CO=>{"use strict";Object.defineProperty(CO,"__esModule",{value:!0})});var PO=o(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var wO=o(AO=>{"use strict";Object.defineProperty(AO,"__esModule",{value:!0})});var MO=o(RO=>{"use strict";Object.defineProperty(RO,"__esModule",{value:!0})});var qO=o(IO=>{"use strict";Object.defineProperty(IO,"__esModule",{value:!0})});var jO=o(NO=>{"use strict";Object.defineProperty(NO,"__esModule",{value:!0})});var UO=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.TaskName=void 0;var xO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AccountMoneyTransfer="accountMoneyTransfer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelAccountMoneyTransfer="cancelAccountMoneyTransfer",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.CreateAccountingReport="createAccountingReport",t.DeletePerson="deletePerson",t.DeleteTransaction="deleteTransaction",t.HandleNotification="handleNotification",t.ImportEventCapacitiesFromCOA="importEventCapacitiesFromCOA",t.ImportEventsFromCOA="importEventsFromCOA",t.ImportOffersFromCOA="importOffersFromCOA",t.InvalidatePaymentUrl="invalidatePaymentUrl",t.OnAssetTransactionStatusChanged="onAssetTransactionStatusChanged",t.OnAuthorizationCreated="onAuthorizationCreated",t.OnEventChanged="onEventChanged",t.OnResourceDeleted="onResourceDeleted",t.OnResourceUpdated="onResourceUpdated",t.OnOrderPaymentCompleted="onOrderPaymentCompleted",t.Pay="pay",t.PlaceOrder="placeOrder",t.PublishPaymentUrl="publishPaymentUrl",t.Refund="refund",t.Reserve="reserve",t.ReturnOrder="returnOrder",t.ReturnPayTransaction="returnPayTransaction",t.ReturnReserveTransaction="returnReserveTransaction",t.SendEmailMessage="sendEmailMessage",t.SendOrder="sendOrder",t.SyncResourcesFromCOA="syncResourcesFromCOA",t.TriggerWebhook="triggerWebhook",t.UseReservation="useReservation",t.VoidPayment="voidPayment",t.VoidPayTransaction="voidPayTransaction",t.VoidReserveTransaction="voidReserveTransaction"})(xO||(Es.TaskName=xO={}))});var FO=o(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var kO=o(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0})});var $O=o(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0})});var KO=o(GO=>{"use strict";Object.defineProperty(GO,"__esModule",{value:!0})});var WO=o(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0})});var VO=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.Reason=void 0;var zO;(function(t){t.Customer="Customer",t.Seller="Seller"})(zO||(Cs.Reason=zO={}))});var we=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ErrorCode=void 0;var YO;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.GatewayTimeout="GatewayTimeout",t.Internal="Internal",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.RateLimitExceeded="RateLimitExceeded",t.ServiceUnavailable="ServiceUnavailable",t.Unauthorized="Unauthorized",t.Unknown="Unknown"})(YO||(gs.ErrorCode=YO={}))});var Re=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ChevreError=void 0;var ru=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};bs.ChevreError=ru});var QO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.AlreadyInUseError=void 0;var y0=we(),p0=Re(),nu=class extends p0.ChevreError{entityName;fieldNames;constructor(e,r,n){let s=n;(n===void 0||n.length===0)&&(s=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(y0.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};Ps.AlreadyInUseError=nu});var ZO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ArgumentError=void 0;var v0=we(),S0=Re(),su=class extends S0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(v0.ErrorCode.Argument,n),this.argumentName=e}};As.ArgumentError=su});var JO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.ArgumentNullError=void 0;var m0=we(),_0=Re(),iu=class extends _0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(m0.ErrorCode.ArgumentNull,n),this.argumentName=e}};ws.ArgumentNullError=iu});var XO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.ForbiddenError=void 0;var O0=we(),T0=Re(),ou=class extends T0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(O0.ErrorCode.Forbidden,r)}};Rs.ForbiddenError=ou});var eT=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.GatewayTimeoutError=void 0;var E0=we(),C0=Re(),au=class extends C0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(E0.ErrorCode.GatewayTimeout,r)}};Ms.GatewayTimeoutError=au});var tT=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.InternalError=void 0;var g0=we(),b0=Re(),cu=class extends b0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(g0.ErrorCode.Internal,r)}};Is.InternalError=cu});var rT=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.NotFoundError=void 0;var P0=we(),A0=Re(),uu=class extends A0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(P0.ErrorCode.NotFound,n),this.entityName=e}};qs.NotFoundError=uu});var nT=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.NotImplementedError=void 0;var w0=we(),R0=Re(),du=class extends R0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(w0.ErrorCode.NotImplemented,r)}};Ns.NotImplementedError=du});var sT=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.RateLimitExceededError=void 0;var M0=we(),I0=Re(),lu=class extends I0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(M0.ErrorCode.RateLimitExceeded,r)}};js.RateLimitExceededError=lu});var iT=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.ServiceUnavailableError=void 0;var q0=we(),N0=Re(),fu=class extends N0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(q0.ErrorCode.ServiceUnavailable,r)}};xs.ServiceUnavailableError=fu});var oT=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.UnauthorizedError=void 0;var j0=we(),x0=Re(),hu=class extends x0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(j0.ErrorCode.Unauthorized,r)}};Us.UnauthorizedError=hu});var aT=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.UnknownError=void 0;var U0=we(),D0=Re(),yu=class extends D0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(U0.ErrorCode.Unknown,r)}};Ds.UnknownError=yu});var cT=o(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.Unknown=J.Unauthorized=J.ServiceUnavailable=J.RateLimitExceeded=J.NotImplemented=J.NotFound=J.Internal=J.GatewayTimeout=J.Forbidden=J.Chevre=J.ArgumentNull=J.Argument=J.AlreadyInUse=void 0;var F0=QO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return F0.AlreadyInUseError}});var L0=ZO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return L0.ArgumentError}});var k0=JO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return k0.ArgumentNullError}});var B0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return B0.ChevreError}});var $0=XO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return $0.ForbiddenError}});var G0=eT();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return G0.GatewayTimeoutError}});var K0=tT();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return K0.InternalError}});var H0=rT();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return H0.NotFoundError}});var W0=nT();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return W0.NotImplementedError}});var z0=sT();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return z0.RateLimitExceededError}});var V0=iT();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return V0.ServiceUnavailableError}});var Y0=oT();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return Y0.UnauthorizedError}});var Q0=aT();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return Q0.UnknownError}})});var lT=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.RecipeCategory=void 0;var uT;(function(t){t.payCreditCard="payCreditCard",t.payMovieTicket="payMovieTicket",t.publishPaymentUrl="publishPaymentUrl",t.checkMovieTicket="checkMovieTicket",t.refundCreditCard="refundCreditCard",t.refundMovieTicket="refundMovieTicket",t.acceptCOAOffer="acceptCOAOffer",t.cancelPendingCOAReserve="cancelPendingCOAReserve",t.confirmCOAReserve="confirmCOAReserve",t.returnCOAReserve="returnCOAReserve",t.authorizeInvoice="authorizeInvoice",t.authorizeInvoice3ds="authorizeInvoice3ds",t.sendEmailMessage="sendEmailMessage"})(uT||(Zt.RecipeCategory=uT={}));var dT;(function(t){t.entryTran="entryTran",t.execTran="execTran",t.searchTrade="searchTrade",t.alterTran="alterTran",t.secureTran2="secureTran2",t.seatInfoSync="seatInfoSync",t.seatInfoSyncCancel="seatInfoSyncCancel",t.purchaseNumberAuth="purchaseNumberAuth",t.updTmpReserveSeat="updTmpReserveSeat",t.updReserve="updReserve",t.stateReserve="stateReserve",t.delReserve="delReserve",t.delTmpReserve="delTmpReserve",t.sendMultiple="sendMultiple"})(dT||(Zt.StepIdentifier=dT={}))});var AT=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.permit=O.paymentStatusType=O.paymentMethod=O.ownershipInfo=O.organizationType=O.organization=O.orderStatus=O.offerType=O.offerItemCondition=O.offerCatalog=O.notification=O.movieTicketType=O.monetaryAmount=O.merchantReturnPolicy=O.language=O.itemAvailability=O.invoice=O.identityProvider=O.iam=O.eventType=O.eventStatusType=O.entryPoint=O.encodingFormat=O.eventSeries=O.event=O.customer=O.creativeWorkType=O.creativeWork=O.clientUser=O.CertificationStatusEnumeration=O.categoryCode=O.authorization=O.aggregation=O.advanceBookingRequirement=O.additionalProperty=O.accountTitle=O.action=O.actionType=O.actionStatusType=O.errorCode=O.recipe=O.errors=O.unitPriceOffer=O.project=O.order=O.eventOffer=O.aggregateOffer=O.offer=O.cognito=O.waiter=void 0;O.unitCode=O.assetTransactionType=O.transactionStatusType=O.transactionType=O.transaction=O.assetTransaction=O.thing=O.taskStatus=O.taskName=O.sortType=O.serviceChannel=O.service=O.task=O.sellerReturnPolicy=O.seller=O.schedule=O.role=O.RESERVED_CODE_VALUES=O.reservationType=O.reservationStatusType=O.reservationPackage=O.reservation=O.report=O.quantitativeValue=O.qualitativeValue=O.propertyValue=O.product=O.programMembership=O.priceSpecificationType=O.priceSpecification=O.potentialAction=O.placeType=O.place=O.priceCurrency=O.personType=O.person=void 0;O.waiter=_y();O.cognito=Ty();var Z0=Cy(),J0=by(),X0=Ay(),eR=My(),tR=Ny(),rR=xy(),nR=Dy(),sR=Ly(),iR=By(),oR=Gy(),aR=Hy(),cR=zy(),uR=Yy(),dR=Zy(),lR=Xy(),fR=tp(),hR=np(),yR=ip(),pR=ap(),vR=up(),SR=lp(),mR=hp(),_R=pp(),OR=Sp(),TR=_p(),ER=Ep(),CR=gp(),gR=Pp(),bR=Np(),PR=xp(),AR=Dp(),wR=Lp(),RR=Bp(),MR=Gp(),IR=Hp(),qR=zp(),NR=Yp(),jR=qc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return jR.CertificationStatusEnumeration}});var xR=Jp(),UR=ev(),DR=rv(),FR=sv(),LR=ov(),kR=cv(),BR=lv(),$R=hv(),GR=pv(),KR=Nc(),HR=mv(),WR=Rv(),zR=Iv();O.entryPoint=zR;var VR=Nv(),YR=xv(),QR=jc(),ZR=xc(),JR=Lv(),XR=Bv(),eM=Gv(),tM=Hv(),rM=zv(),nM=Uc(),sM=Jv(),iM=eS();O.offer=rS();O.aggregateOffer=sS();O.eventOffer=oS();var oM=cS(),aM=dS(),cM=Dc();O.order=Fc();var uM=Lc(),dM=pS(),lM=kc(),fM=mS(),hM=OS(),yM=ES(),pM=Bc(),vM=bS(),SM=AS(),mM=$c(),_M=MS(),OM=qS(),TM=jS(),EM=US(),CM=FS(),gM=Gc(),bM=BS();O.potentialAction=bM;var PM=Kc(),AM=KS(),wM=Hc(),RM=Wc(),MM=VS();O.project=QS();var IM=JS(),qM=em(),NM=rm(),jM=sm(),xM=om(),UM=cm(),DM=dm(),FM=zc(),LM=Vc(),kM=Pm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return kM.RESERVED_CODE_VALUES}});var BM=wm(),$M=Mm(),GM=qm(),KM=jm(),HM=Um(),WM=Fm(),zM=km(),VM=$m(),YM=Qc(),QM=Km(),ZM=eu();O.unitPriceOffer=Wm();var JM=Vm(),XM=Qm(),eI=Jm(),tI=e_(),rI=r_(),nI=s_(),sI=o_(),iI=c_(),oI=d_(),aI=f_(),cI=y_(),uI=v_(),dI=m_(),lI=O_(),fI=E_(),hI=g_(),yI=P_(),pI=w_(),vI=M_(),SI=q_(),mI=j_(),_I=U_(),OI=F_(),TI=k_(),EI=$_(),CI=K_(),gI=W_(),bI=V_(),PI=Q_(),AI=J_(),wI=eO(),RI=rO(),MI=sO(),II=oO(),qI=cO(),NI=dO(),jI=fO(),xI=yO(),UI=vO(),DI=mO(),FI=OO(),LI=EO(),kI=gO(),BI=PO(),$I=wO(),GI=MO(),KI=qO(),HI=jO(),WI=UO(),zI=Zc(),VI=FO(),YI=kO(),QI=$O(),ZI=KO(),JI=Yc(),XI=Jc(),eq=WO(),tq=VO(),rq=Xc(),nq=we();O.errors=cT();O.recipe=lT();O.errorCode=nq.ErrorCode;O.actionStatusType=PR.ActionStatusType;O.actionType=AR.ActionType;var fT;(function(t){let e;(function(h){h.coaOffer=Z0,h.pay=J0})(e=t.accept||(t.accept={}));let r;(function(h){let S;(function(C){C.any=tR})(S=h.paymentMethod||(h.paymentMethod={}));let _;(function(C){C.eventService=eR})(_=h.offer||(h.offer={})),h.invoice=X0,h.ticketedObject=rR})(r=t.authorize||(t.authorize={}));let n;(function(h){h.coaReserve=nR,h.reservation=sR})(n=t.cancel||(t.cancel={}));let s;(function(h){let S;(function(_){_.movieTicket=iR})(S=h.paymentMethod||(h.paymentMethod={})),h.thing=oR})(s=t.check||(t.check={})),t.create=cR;let i;(function(h){let S;(function(C){C.pay=uR,C.reservation=dR})(S=h.confirm||(h.confirm={})),h.inform=lR;let _;(function(C){C.service=fR})(_=h.register||(h.register={}))})(i=t.interact||(t.interact={}));let u;(function(h){h.order=yR,h.pay=pR,h.refund=vR})(u=t.trade||(t.trade={}));let d;(function(h){let S;(function(C){C.invoice=SR,C.order=mR,C.reserveTransaction=_R})(S=h.returnAction||(h.returnAction={}));let _;(function(C){let w;(function(R){R.email=OR})(w=C.message||(C.message={})),C.order=TR})(_=h.send||(h.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(h){h.add=ER,h.deleteAction=CR,h.replace=gR,h.update=bR})(f=t.update||(t.update={}));let p;(function(h){let S;(function(_){_.reservation=aR})(S=h.use||(h.use={}))})(p=t.consume||(t.consume={})),t.reserve=hR})(fT||(O.action=fT={}));O.accountTitle=wR;O.additionalProperty=RR;O.advanceBookingRequirement=MR;O.aggregation=IR;O.authorization=qR;O.categoryCode=NR;O.clientUser=xR;var hT;(function(t){let e;(function(s){s.softwareApplication=UR,s.webApplication=DR,s.webSite=FR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=LR})(r=t.message||(t.message={})),t.movie=kR,t.noteDigitalDocument=BR;let n;(function(s){s.softwareApplication=$R,s.webApplication=GR})(n=t.softwareApplication||(t.softwareApplication={}))})(hT||(O.creativeWork=hT={}));O.creativeWorkType=KR.CreativeWorkType;O.customer=HR;var yT;(function(t){t.screeningEvent=VR})(yT||(O.event=yT={}));O.eventSeries=YR;O.encodingFormat=WR;O.eventStatusType=QR.EventStatusType;O.eventType=ZR.EventType;O.iam=JR;O.identityProvider=XR;O.invoice=eM;O.itemAvailability=tM.ItemAvailability;O.language=rM;O.merchantReturnPolicy=nM;O.monetaryAmount=sM;O.movieTicketType=iM;var pT;(function(t){t.event=tI,t.eventSeries=rI,t.order=iI,t.reservation=lI,t.payAction=oI,t.refundAction=dI,t.accountTitle=JM,t.categoryCode=XM,t.creativeWork=eI,t.offer=nI,t.offerCatalog=sI,t.person=aI,t.place=cI,t.product=uI,t.task=fI,t.transaction=hI})(pT||(O.notification=pT={}));O.offerCatalog=oM;O.offerItemCondition=aM;O.offerType=cM.OfferType;O.orderStatus=uM.OrderStatus;O.organization=dM;O.organizationType=lM.OrganizationType;O.ownershipInfo=fM;var vT;(function(t){let e;(function(r){r.creditCard=hM,r.movieTicket=yM})(e=t.paymentCard||(t.paymentCard={}))})(vT||(O.paymentMethod=vT={}));O.paymentStatusType=pM.PaymentStatusType;O.permit=vM;O.person=SM;O.personType=mM.PersonType;O.priceCurrency=PM.PriceCurrency;var ST;(function(t){t.entranceGate=_M,t.movieTheater=OM,t.screeningRoom=TM,t.screeningRoomSection=EM,t.seat=CM})(ST||(O.place=ST={}));O.placeType=gM.PlaceType;var mT;(function(t){t.unitPrice=AM})(mT||(O.priceSpecification=mT={}));O.priceSpecificationType=wM.PriceSpecificationType;O.programMembership=MM;O.product=RM;var _T;(function(t){t.PropertyValueType=IM.PropertyValueType,t.locationFeatureSpecification=qM})(_T||(O.propertyValue=_T={}));O.qualitativeValue=NM;O.quantitativeValue=jM;var OT;(function(t){t.accountingReport=xM})(OT||(O.report=OT={}));var TT;(function(t){t.eventReservation=UM})(TT||(O.reservation=TT={}));O.reservationPackage=DM;O.reservationStatusType=FM.ReservationStatusType;O.reservationType=LM.ReservationType;var ET;(function(t){t.RoleType=BM.RoleType,t.organizationRole=$M})(ET||(O.role=ET={}));O.schedule=GM;O.seller=KM;O.sellerReturnPolicy=HM;var CT;(function(t){t.acceptCOAOffer=yI,t.aggregateOffers=pI,t.aggregateOnSystem=vI,t.aggregateScreeningEvent=SI,t.authorizePayment=mI,t.cancelPendingReservation=_I,t.cancelReservation=OI,t.checkMovieTicket=TI,t.checkResource=EI,t.createAccountingReport=gI,t.confirmReserveTransaction=CI,t.deletePerson=bI,t.deleteTransaction=PI,t.handleNotification=AI,t.importEventCapacitiesFromCOA=wI,t.importEventsFromCOA=RI,t.importOffersFromCOA=MI,t.invalidatePaymentUrl=II,t.onAssetTransactionStatusChanged=qI,t.pay=DI,t.publishPaymentUrl=FI,t.refund=LI,t.reserve=kI,t.sendEmailMessage=BI,t.syncResourcesFromCOA=$I,t.triggerWebhook=GI,t.useReservation=KI,t.voidPayment=HI,t.onAuthorizationCreated=NI,t.onEventChanged=jI,t.onResourceDeleted=xI,t.onResourceUpdated=UI})(CT||(O.task=CT={}));var gT;(function(t){t.paymentService=WM,t.webAPI=zM})(gT||(O.service=gT={}));O.serviceChannel=VM;O.sortType=YM.SortType;O.taskName=WI.TaskName;O.taskStatus=zI.TaskStatus;O.thing=QM;var bT;(function(t){t.cancelReservation=VI,t.pay=YI,t.refund=QI,t.reserve=ZI})(bT||(O.assetTransaction=bT={}));var PT;(function(t){t.placeOrder=eq,t.returnOrder=tq})(PT||(O.transaction=PT={}));O.transactionType=rq.TransactionType;O.transactionStatusType=XI.TransactionStatusType;O.assetTransactionType=JI.AssetTransactionType;O.unitCode=ZM.UnitCode});var wT=o(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.ChevreFactory=void 0;Fs.ChevreFactory=AT()});var Q=o(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.factory=void 0;var sq=wT();Object.defineProperty(Ls,"factory",{enumerable:!0,get:function(){return sq.ChevreFactory}})});var MT=o((j2,RT)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,iq=jt*7,oq=jt*365.25;RT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return aq(t);if(r==="number"&&isFinite(t))return e.long?uq(t):cq(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function aq(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*oq;case"weeks":case"week":case"w":return r*iq;case"days":case"day":case"d":return r*jt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Jt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function cq(t){var e=Math.abs(t);return e>=jt?Math.round(t/jt)+"d":e>=er?Math.round(t/er)+"h":e>=Xt?Math.round(t/Xt)+"m":e>=Jt?Math.round(t/Jt)+"s":t+"ms"}function uq(t){var e=Math.abs(t);return e>=jt?ks(t,e,jt,"day"):e>=er?ks(t,e,er,"hour"):e>=Xt?ks(t,e,Xt,"minute"):e>=Jt?ks(t,e,Jt,"second"):t+" ms"}function ks(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var qT=o((x2,IT)=>{function dq(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=MT(),r.destroy=p,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function e(h){let S=0;for(let _=0;_<h.length;_++)S=(S<<5)-S+h.charCodeAt(_),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(h){let S,_=null,C,w;function R(...I){if(!R.enabled)return;let D=R,g=Number(new Date),M=g-(S||g);D.diff=M,D.prev=S,D.curr=g,S=g,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let U=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(K,H)=>{if(K==="%%")return"%";U++;let N=r.formatters[H];if(typeof N=="function"){let $=I[U];K=N.call(D,$),I.splice(U,1),U--}return K}),r.formatArgs.call(D,I),(D.log||r.log).apply(D,I)}return R.namespace=h,R.useColors=r.useColors(),R.color=r.selectColor(h),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>_!==null?_:(C!==r.namespaces&&(C=r.namespaces,w=r.enabled(h)),w),set:I=>{_=I}}),typeof r.init=="function"&&r.init(R),R}function n(h,S){let _=r(this.namespace+(typeof S>"u"?":":S)+h);return _.log=this.log,_}function s(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let S=(typeof h=="string"?h:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let _ of S)_[0]==="-"?r.skips.push(_.slice(1)):r.names.push(_)}function i(h,S){let _=0,C=0,w=-1,R=0;for(;_<h.length;)if(C<S.length&&(S[C]===h[_]||S[C]==="*"))S[C]==="*"?(w=C,R=_,C++):(_++,C++);else if(w!==-1)C=w+1,R++,_=R;else return!1;for(;C<S.length&&S[C]==="*";)C++;return C===S.length}function u(){let h=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),h}function d(h){for(let S of r.skips)if(i(h,S))return!1;for(let S of r.names)if(i(h,S))return!0;return!1}function f(h){return h instanceof Error?h.stack||h.message:h}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}IT.exports=dq});var tr=o((Me,Bs)=>{Me.formatArgs=fq;Me.save=hq;Me.load=yq;Me.useColors=lq;Me.storage=pq();Me.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Me.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function lq(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function fq(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Bs.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}Me.log=console.debug||console.log||(()=>{});function hq(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function yq(){let t;try{t=Me.storage.getItem("debug")||Me.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function pq(){try{return localStorage}catch{}}Bs.exports=qT()(Me);var{formatters:vq}=Bs.exports;vq.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var $s=o(Fe=>{"use strict";var Sq=Fe&&Fe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.StubTransporter=Fe.DefaultTransporter=Fe.RequestError=Fe.Transporter=void 0;var mq=Sq(tr()),NT=(0,mq.default)("cinerino-sdk:transporters"),pu=class{};Fe.Transporter=pu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};Fe.RequestError=rr;var vu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return NT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(NT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new rr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new rr(n),r.code=e.status,r.errors=[])}else return e;throw r}};Fe.DefaultTransporter=vu;var Su=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};Fe.StubTransporter=Su});var xT=o(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var q={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},jT=nr.a={classes:q,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":q.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":q.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":q.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":q.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":q.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":q.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":q.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":q.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":q.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":q.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":q.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":q.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":q.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":q.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":q.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":q.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":q.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":q.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":q.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":q.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":q.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":q.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":q.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":q.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":q.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":q.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":q.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":q.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":q.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":q.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":q.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":q.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":q.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":q.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":q.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":q.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":q.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":q.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":q.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":q.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":q.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":q.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":q.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":q.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":q.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":q.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":q.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":q.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":q.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":q.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":q.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":q.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":q.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":q.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":q.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":q.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":q.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":q.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":q.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":q.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":q.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":q.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":q.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":q.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":q.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":q.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":q.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":q.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":q.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":q.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":q.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":q.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":q.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":q.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":q.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":q.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":q.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":q.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":q.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":q.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":q.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":q.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":q.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":q.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":q.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":q.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":q.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":q.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":q.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":q.SERVER_ERROR,RAILGUN_ERROR:527}}},_q=nr.b=jT;nr.a=jT;nr.b=_q});var b=o(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var UT=xT();Gs.default=UT.b;Gs.status=UT.a});var xt=o((L2,DT)=>{"use strict";DT.exports=TypeError});var FT=o(()=>{});var Gr=o(($2,sE)=>{var Au=typeof Map=="function"&&Map.prototype,mu=Object.getOwnPropertyDescriptor&&Au?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hs=Au&&mu&&typeof mu.get=="function"?mu.get:null,LT=Au&&Map.prototype.forEach,wu=typeof Set=="function"&&Set.prototype,_u=Object.getOwnPropertyDescriptor&&wu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ws=wu&&_u&&typeof _u.get=="function"?_u.get:null,kT=wu&&Set.prototype.forEach,Oq=typeof WeakMap=="function"&&WeakMap.prototype,kr=Oq?WeakMap.prototype.has:null,Tq=typeof WeakSet=="function"&&WeakSet.prototype,Br=Tq?WeakSet.prototype.has:null,Eq=typeof WeakRef=="function"&&WeakRef.prototype,BT=Eq?WeakRef.prototype.deref:null,Cq=Boolean.prototype.valueOf,gq=Object.prototype.toString,bq=Function.prototype.toString,Pq=String.prototype.match,Ru=String.prototype.slice,gt=String.prototype.replace,Aq=String.prototype.toUpperCase,$T=String.prototype.toLowerCase,ZT=RegExp.prototype.test,GT=Array.prototype.concat,dt=Array.prototype.join,wq=Array.prototype.slice,KT=Math.floor,Eu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ou=Object.getOwnPropertySymbols,Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",$r=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,JT=Object.prototype.propertyIsEnumerable,HT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function WT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ZT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-KT(-t):KT(t);if(n!==t){var s=String(n),i=Ru.call(e,s.length+1);return gt.call(s,r,"$&_")+"."+gt.call(gt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gt.call(e,r,"$&_")}var gu=FT(),zT=gu.custom,VT=tE(zT)?zT:null,XT={__proto__:null,double:'"',single:"'"},Rq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};sE.exports=function t(e,r,n,s){var i=r||{};if(St(i,"quoteStyle")&&!St(XT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(St(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=St(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(St(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(St(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return nE(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?WT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?WT(e,p):p}var h=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof e=="object")return bu(e)?"[Array]":"[Object]";var S=zq(i,n);if(typeof s>"u")s=[];else if(rE(s,e)>=0)return"[Circular]";function _(ae,se,ie){if(se&&(s=wq.call(s),s.push(se)),ie){var ee={depth:i.depth};return St(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(ae,ee,n+1,s)}return t(ae,i,n+1,s)}if(typeof e=="function"&&!YT(e)){var C=Fq(e),w=Ks(e,_);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(w.length>0?" { "+dt.call(w,", ")+" }":"")}if(tE(e)){var R=sr?gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Cu.call(e);return typeof e=="object"&&!sr?Lr(R):R}if(Kq(e)){for(var I="<"+$T.call(String(e.nodeName)),D=e.attributes||[],g=0;g<D.length;g++)I+=" "+D[g].name+"="+eE(Mq(D[g].value),"double",i);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+$T.call(String(e.nodeName))+">",I}if(bu(e)){if(e.length===0)return"[]";var M=Ks(e,_);return S&&!Wq(M)?"["+Pu(M,S)+"]":"[ "+dt.call(M,", ")+" ]"}if(qq(e)){var U=Ks(e,_);return!("cause"in Error.prototype)&&"cause"in e&&!JT.call(e,"cause")?"{ ["+String(e)+"] "+dt.call(GT.call("[cause]: "+_(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+dt.call(U,", ")+" }"}if(typeof e=="object"&&u){if(VT&&typeof e[VT]=="function"&&gu)return gu(e,{depth:h-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Lq(e)){var k=[];return LT&&LT.call(e,function(ae,se){k.push(_(se,e,!0)+" => "+_(ae,e))}),QT("Map",Hs.call(e),k,S)}if($q(e)){var K=[];return kT&&kT.call(e,function(ae){K.push(_(ae,e))}),QT("Set",Ws.call(e),K,S)}if(kq(e))return Tu("WeakMap");if(Gq(e))return Tu("WeakSet");if(Bq(e))return Tu("WeakRef");if(jq(e))return Lr(_(Number(e)));if(Uq(e))return Lr(_(Eu.call(e)));if(xq(e))return Lr(Cq.call(e));if(Nq(e))return Lr(_(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!Iq(e)&&!YT(e)){var H=Ks(e,_),N=HT?HT(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",B=!N&&$r&&Object(e)===e&&$r in e?Ru.call(bt(e),8,-1):$?"Object":"",Y=N||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Y+(B||$?"["+dt.call(GT.call([],B||[],$||[]),": ")+"] ":"");return H.length===0?Te+"{}":S?Te+"{"+Pu(H,S)+"}":Te+"{ "+dt.call(H,", ")+" }"}return String(e)};function eE(t,e,r){var n=r.quoteStyle||e,s=XT[n];return s+t+s}function Mq(t){return gt.call(String(t),/"/g,"&quot;")}function Ut(t){return!$r||!(typeof t=="object"&&($r in t||typeof t[$r]<"u"))}function bu(t){return bt(t)==="[object Array]"&&Ut(t)}function Iq(t){return bt(t)==="[object Date]"&&Ut(t)}function YT(t){return bt(t)==="[object RegExp]"&&Ut(t)}function qq(t){return bt(t)==="[object Error]"&&Ut(t)}function Nq(t){return bt(t)==="[object String]"&&Ut(t)}function jq(t){return bt(t)==="[object Number]"&&Ut(t)}function xq(t){return bt(t)==="[object Boolean]"&&Ut(t)}function tE(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Cu)return!1;try{return Cu.call(t),!0}catch{}return!1}function Uq(t){if(!t||typeof t!="object"||!Eu)return!1;try{return Eu.call(t),!0}catch{}return!1}var Dq=Object.prototype.hasOwnProperty||function(t){return t in this};function St(t,e){return Dq.call(t,e)}function bt(t){return gq.call(t)}function Fq(t){if(t.name)return t.name;var e=Pq.call(bq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function rE(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Lq(t){if(!Hs||!t||typeof t!="object")return!1;try{Hs.call(t);try{Ws.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function kq(t){if(!kr||!t||typeof t!="object")return!1;try{kr.call(t,kr);try{Br.call(t,Br)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Bq(t){if(!BT||!t||typeof t!="object")return!1;try{return BT.call(t),!0}catch{}return!1}function $q(t){if(!Ws||!t||typeof t!="object")return!1;try{Ws.call(t);try{Hs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Gq(t){if(!Br||!t||typeof t!="object")return!1;try{Br.call(t,Br);try{kr.call(t,kr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Kq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function nE(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nE(Ru.call(t,0,e.maxStringLength),e)+n}var s=Rq[e.quoteStyle||"single"];s.lastIndex=0;var i=gt.call(gt.call(t,s,"\\$1"),/[\x00-\x1f]/g,Hq);return eE(i,"single",e)}function Hq(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Aq.call(e.toString(16))}function Lr(t){return"Object("+t+")"}function Tu(t){return t+" { ? }"}function QT(t,e,r,n){var s=n?Pu(r,n):dt.call(r,", ");return t+" ("+e+") {"+s+"}"}function Wq(t){for(var e=0;e<t.length;e++)if(rE(t[e],`
2
- `)>=0)return!1;return!0}function zq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=dt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:dt.call(Array(e+1),r)}}function Pu(t,e){if(t.length===0)return"";var r=`
3
- `+e.prev+e.base;return r+dt.call(t,","+r)+`
4
- `+e.prev}function Ks(t,e){var r=bu(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=St(t,s)?e(t[s],t):""}var i=typeof Ou=="function"?Ou(t):[],u;if(sr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)St(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&u["$"+f]instanceof Symbol||(ZT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof Ou=="function")for(var p=0;p<i.length;p++)JT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var oE=o((G2,iE)=>{"use strict";var Vq=Gr(),Yq=xt(),zs=function(t,e,r){for(var n=t,s;(s=n.next)!=null;n=s)if(s.key===e)return n.next=s.next,r||(s.next=t.next,t.next=s),s},Qq=function(t,e){if(t){var r=zs(t,e);return r&&r.value}},Zq=function(t,e,r){var n=zs(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Jq=function(t,e){return t?!!zs(t,e):!1},Xq=function(t,e){if(t)return zs(t,e,!0)};iE.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Yq("Side channel does not contain "+Vq(n))},delete:function(n){var s=Xq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Qq(e,n)},has:function(n){return Jq(e,n)},set:function(n,s){e||(e={next:void 0}),Zq(e,n,s)}};return r}});var Mu=o((K2,aE)=>{"use strict";aE.exports=Object});var uE=o((H2,cE)=>{"use strict";cE.exports=Error});var lE=o((W2,dE)=>{"use strict";dE.exports=EvalError});var hE=o((z2,fE)=>{"use strict";fE.exports=RangeError});var pE=o((V2,yE)=>{"use strict";yE.exports=ReferenceError});var SE=o((Y2,vE)=>{"use strict";vE.exports=SyntaxError});var _E=o((Q2,mE)=>{"use strict";mE.exports=URIError});var TE=o((Z2,OE)=>{"use strict";OE.exports=Math.abs});var CE=o((J2,EE)=>{"use strict";EE.exports=Math.floor});var bE=o((X2,gE)=>{"use strict";gE.exports=Math.max});var AE=o((e$,PE)=>{"use strict";PE.exports=Math.min});var RE=o((t$,wE)=>{"use strict";wE.exports=Math.pow});var IE=o((r$,ME)=>{"use strict";ME.exports=Math.round});var NE=o((n$,qE)=>{"use strict";qE.exports=Number.isNaN||function(e){return e!==e}});var xE=o((s$,jE)=>{"use strict";var eN=NE();jE.exports=function(e){return eN(e)||e===0?e:e<0?-1:1}});var DE=o((i$,UE)=>{"use strict";UE.exports=Object.getOwnPropertyDescriptor});var Iu=o((o$,FE)=>{"use strict";var Vs=DE();if(Vs)try{Vs([],"length")}catch{Vs=null}FE.exports=Vs});var kE=o((a$,LE)=>{"use strict";var Ys=Object.defineProperty||!1;if(Ys)try{Ys({},"a",{value:1})}catch{Ys=!1}LE.exports=Ys});var $E=o((c$,BE)=>{"use strict";BE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var HE=o((u$,KE)=>{"use strict";var GE=typeof Symbol<"u"&&Symbol,tN=$E();KE.exports=function(){return typeof GE!="function"||typeof Symbol!="function"||typeof GE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:tN()}});var qu=o((d$,WE)=>{"use strict";WE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Nu=o((l$,zE)=>{"use strict";var rN=Mu();zE.exports=rN.getPrototypeOf||null});var QE=o((f$,YE)=>{"use strict";var nN="Function.prototype.bind called on incompatible ",sN=Object.prototype.toString,iN=Math.max,oN="[object Function]",VE=function(e,r){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},aN=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},cN=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};YE.exports=function(e){var r=this;if(typeof r!="function"||sN.apply(r)!==oN)throw new TypeError(nN+r);for(var n=aN(arguments,1),s,i=function(){if(this instanceof s){var h=r.apply(this,VE(n,arguments));return Object(h)===h?h:this}return r.apply(e,VE(n,arguments))},u=iN(0,r.length-n.length),d=[],f=0;f<u;f++)d[f]="$"+f;if(s=Function("binder","return function ("+cN(d,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=function(){};p.prototype=r.prototype,s.prototype=new p,p.prototype=null}return s}});var Kr=o((h$,ZE)=>{"use strict";var uN=QE();ZE.exports=Function.prototype.bind||uN});var Qs=o((y$,JE)=>{"use strict";JE.exports=Function.prototype.call});var ju=o((p$,XE)=>{"use strict";XE.exports=Function.prototype.apply});var tC=o((v$,eC)=>{"use strict";eC.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var nC=o((S$,rC)=>{"use strict";var dN=Kr(),lN=ju(),fN=Qs(),hN=tC();rC.exports=hN||dN.call(fN,lN)});var xu=o((m$,sC)=>{"use strict";var yN=Kr(),pN=xt(),vN=Qs(),SN=nC();sC.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new pN("a function is required");return SN(yN,vN,e)}});var dC=o((_$,uC)=>{"use strict";var mN=xu(),iC=Iu(),aC;try{aC=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Uu=!!aC&&iC&&iC(Object.prototype,"__proto__"),cC=Object,oC=cC.getPrototypeOf;uC.exports=Uu&&typeof Uu.get=="function"?mN([Uu.get]):typeof oC=="function"?function(e){return oC(e==null?e:cC(e))}:!1});var pC=o((O$,yC)=>{"use strict";var lC=qu(),fC=Nu(),hC=dC();yC.exports=lC?function(e){return lC(e)}:fC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return fC(e)}:hC?function(e){return hC(e)}:null});var SC=o((T$,vC)=>{"use strict";var _N=Function.prototype.call,ON=Object.prototype.hasOwnProperty,TN=Kr();vC.exports=TN.call(_N,ON)});var Xs=o((E$,CC)=>{"use strict";var z,EN=Mu(),CN=uE(),gN=lE(),bN=hE(),PN=pE(),cr=SE(),ar=xt(),AN=_E(),wN=TE(),RN=CE(),MN=bE(),IN=AE(),qN=RE(),NN=IE(),jN=xE(),TC=Function,Du=function(t){try{return TC('"use strict"; return ('+t+").constructor;")()}catch{}},Hr=Iu(),xN=kE(),Fu=function(){throw new ar},UN=Hr?(function(){try{return arguments.callee,Fu}catch{try{return Hr(arguments,"callee").get}catch{return Fu}}})():Fu,ir=HE()(),Se=pC(),DN=Nu(),FN=qu(),EC=ju(),Wr=Qs(),or={},LN=typeof Uint8Array>"u"||!Se?z:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?z:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):z,"%AsyncFromSyncIteratorPrototype%":z,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%Atomics%":typeof Atomics>"u"?z:Atomics,"%BigInt%":typeof BigInt>"u"?z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":CN,"%eval%":eval,"%EvalError%":gN,"%Float16Array%":typeof Float16Array>"u"?z:Float16Array,"%Float32Array%":typeof Float32Array>"u"?z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?z:FinalizationRegistry,"%Function%":TC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):z,"%JSON%":typeof JSON=="object"?JSON:z,"%Map%":typeof Map>"u"?z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?z:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":EN,"%Object.getOwnPropertyDescriptor%":Hr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?z:Promise,"%Proxy%":typeof Proxy>"u"?z:Proxy,"%RangeError%":bN,"%ReferenceError%":PN,"%Reflect%":typeof Reflect>"u"?z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!Se?z:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):z,"%Symbol%":ir?Symbol:z,"%SyntaxError%":cr,"%ThrowTypeError%":UN,"%TypedArray%":LN,"%TypeError%":ar,"%Uint8Array%":typeof Uint8Array>"u"?z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?z:Uint32Array,"%URIError%":AN,"%WeakMap%":typeof WeakMap>"u"?z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?z:WeakSet,"%Function.prototype.call%":Wr,"%Function.prototype.apply%":EC,"%Object.defineProperty%":xN,"%Object.getPrototypeOf%":DN,"%Math.abs%":wN,"%Math.floor%":RN,"%Math.max%":MN,"%Math.min%":IN,"%Math.pow%":qN,"%Math.round%":NN,"%Math.sign%":jN,"%Reflect.getPrototypeOf%":FN};if(Se)try{null.error}catch(t){mC=Se(Se(t)),Dt["%Error.prototype%"]=mC}var mC,kN=function t(e){var r;if(e==="%AsyncFunction%")r=Du("async function () {}");else if(e==="%GeneratorFunction%")r=Du("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Du("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Se&&(r=Se(s.prototype))}return Dt[e]=r,r},_C={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zr=Kr(),Zs=SC(),BN=zr.call(Wr,Array.prototype.concat),$N=zr.call(EC,Array.prototype.splice),OC=zr.call(Wr,String.prototype.replace),Js=zr.call(Wr,String.prototype.slice),GN=zr.call(Wr,RegExp.prototype.exec),KN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,HN=/\\(\\)?/g,WN=function(e){var r=Js(e,0,1),n=Js(e,-1);if(r==="%"&&n!=="%")throw new cr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new cr("invalid intrinsic syntax, expected opening `%`");var s=[];return OC(e,KN,function(i,u,d,f){s[s.length]=d?OC(f,HN,"$1"):u||i}),s},zN=function(e,r){var n=e,s;if(Zs(_C,n)&&(s=_C[n],n="%"+s[0]+"%"),Zs(Dt,n)){var i=Dt[n];if(i===or&&(i=kN(n)),typeof i>"u"&&!r)throw new ar("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new cr("intrinsic "+e+" does not exist!")};CC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new ar("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ar('"allowMissing" argument must be a boolean');if(GN(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=WN(e),s=n.length>0?n[0]:"",i=zN("%"+s+"%",r),u=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],$N(n,BN([0,1],p)));for(var h=1,S=!0;h<n.length;h+=1){var _=n[h],C=Js(_,0,1),w=Js(_,-1);if((C==='"'||C==="'"||C==="`"||w==='"'||w==="'"||w==="`")&&C!==w)throw new cr("property names with quotes must have matching quotes");if((_==="constructor"||!S)&&(f=!0),s+="."+_,u="%"+s+"%",Zs(Dt,u))d=Dt[u];else if(d!=null){if(!(_ in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Hr&&h+1>=n.length){var R=Hr(d,_);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[_]}else S=Zs(d,_),d=d[_];S&&!f&&(Dt[u]=d)}}return d}});var Lu=o((C$,PC)=>{"use strict";var gC=Xs(),bC=xu(),VN=bC([gC("%String.prototype.indexOf%")]);PC.exports=function(e,r){var n=gC(e,!!r);return typeof n=="function"&&VN(e,".prototype.")>-1?bC([n]):n}});var ku=o((g$,wC)=>{"use strict";var YN=Xs(),Vr=Lu(),QN=Gr(),ZN=xt(),AC=YN("%Map%",!0),JN=Vr("Map.prototype.get",!0),XN=Vr("Map.prototype.set",!0),e1=Vr("Map.prototype.has",!0),t1=Vr("Map.prototype.delete",!0),r1=Vr("Map.prototype.size",!0);wC.exports=!!AC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new ZN("Side channel does not contain "+QN(n))},delete:function(n){if(e){var s=t1(e,n);return r1(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return JN(e,n)},has:function(n){return e?e1(e,n):!1},set:function(n,s){e||(e=new AC),XN(e,n,s)}};return r}});var MC=o((b$,RC)=>{"use strict";var n1=Xs(),ti=Lu(),s1=Gr(),ei=ku(),i1=xt(),ur=n1("%WeakMap%",!0),o1=ti("WeakMap.prototype.get",!0),a1=ti("WeakMap.prototype.set",!0),c1=ti("WeakMap.prototype.has",!0),u1=ti("WeakMap.prototype.delete",!0);RC.exports=ur?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new i1("Side channel does not contain "+s1(s))},delete:function(s){if(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return u1(e,s)}else if(ei&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?o1(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?c1(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),a1(e,s,i)):ei&&(r||(r=ei()),r.set(s,i))}};return n}:ei});var qC=o((P$,IC)=>{"use strict";var d1=xt(),l1=Gr(),f1=oE(),h1=ku(),y1=MC(),p1=y1||h1||f1;IC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new d1("Side channel does not contain "+l1(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,s){e||(e=p1()),e.set(n,s)}};return r}});var ri=o((A$,NC)=>{"use strict";var v1=String.prototype.replace,S1=/%20/g,Bu={RFC1738:"RFC1738",RFC3986:"RFC3986"};NC.exports={default:Bu.RFC3986,formatters:{RFC1738:function(t){return v1.call(t,S1,"+")},RFC3986:function(t){return String(t)}},RFC1738:Bu.RFC1738,RFC3986:Bu.RFC3986}});var Ku=o((w$,xC)=>{"use strict";var m1=ri(),$u=Object.prototype.hasOwnProperty,Ft=Array.isArray,lt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),_1=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Ft(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},jC=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},O1=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Ft(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!$u.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return Ft(e)&&!Ft(r)&&(s=jC(e,n)),Ft(e)&&Ft(r)?(r.forEach(function(i,u){if($u.call(e,u)){var d=e[u];d&&typeof d=="object"&&i&&typeof i=="object"?e[u]=t(d,i,n):e.push(i)}else e[u]=i}),e):Object.keys(r).reduce(function(i,u){var d=r[u];return $u.call(i,u)?i[u]=t(i[u],d,n):i[u]=d,i},s)},T1=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},E1=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Gu=1024,C1=function(e,r,n,s,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var d="",f=0;f<u.length;f+=Gu){for(var p=u.length>=Gu?u.slice(f,f+Gu):u,h=[],S=0;S<p.length;++S){var _=p.charCodeAt(S);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||i===m1.RFC1738&&(_===40||_===41)){h[h.length]=p.charAt(S);continue}if(_<128){h[h.length]=lt[_];continue}if(_<2048){h[h.length]=lt[192|_>>6]+lt[128|_&63];continue}if(_<55296||_>=57344){h[h.length]=lt[224|_>>12]+lt[128|_>>6&63]+lt[128|_&63];continue}S+=1,_=65536+((_&1023)<<10|p.charCodeAt(S)&1023),h[h.length]=lt[240|_>>18]+lt[128|_>>12&63]+lt[128|_>>6&63]+lt[128|_&63]}d+=h.join("")}return d},g1=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],u=i.obj[i.prop],d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],h=u[p];typeof h=="object"&&h!==null&&n.indexOf(h)===-1&&(r.push({obj:u,prop:p}),n.push(h))}return _1(r),e},b1=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},P1=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},A1=function(e,r){return[].concat(e,r)},w1=function(e,r){if(Ft(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};xC.exports={arrayToObject:jC,assign:T1,combine:A1,compact:g1,decode:E1,encode:C1,isBuffer:P1,isRegExp:b1,maybeMap:w1,merge:O1}});var BC=o((R$,kC)=>{"use strict";var DC=qC(),ni=Ku(),Yr=ri(),R1=Object.prototype.hasOwnProperty,FC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ft=Array.isArray,M1=Array.prototype.push,LC=function(t,e){M1.apply(t,ft(e)?e:[e])},I1=Date.prototype.toISOString,UC=Yr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ni.encode,encodeValuesOnly:!1,format:UC,formatter:Yr.formatters[UC],indices:!1,serializeDate:function(e){return I1.call(e)},skipNulls:!1,strictNullHandling:!1},q1=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Hu={},N1=function t(e,r,n,s,i,u,d,f,p,h,S,_,C,w,R,I,D,g){for(var M=e,U=g,k=0,K=!1;(U=U.get(Hu))!==void 0&&!K;){var H=U.get(e);if(k+=1,typeof H<"u"){if(H===k)throw new RangeError("Cyclic object value");K=!0}typeof U.get(Hu)>"u"&&(k=0)}if(typeof h=="function"?M=h(r,M):M instanceof Date?M=C(M):n==="comma"&&ft(M)&&(M=ni.maybeMap(M,function(De){return De instanceof Date?C(De):De})),M===null){if(u)return p&&!I?p(r,pe.encoder,D,"key",w):r;M=""}if(q1(M)||ni.isBuffer(M)){if(p){var N=I?r:p(r,pe.encoder,D,"key",w);return[R(N)+"="+R(p(M,pe.encoder,D,"value",w))]}return[R(r)+"="+R(String(M))]}var $=[];if(typeof M>"u")return $;var B;if(n==="comma"&&ft(M))I&&p&&(M=ni.maybeMap(M,p)),B=[{value:M.length>0?M.join(",")||null:void 0}];else if(ft(h))B=h;else{var Y=Object.keys(M);B=S?Y.sort(S):Y}var Te=f?r.replace(/\./g,"%2E"):r,ae=s&&ft(M)&&M.length===1?Te+"[]":Te;if(i&&ft(M)&&M.length===0)return ae+"[]";for(var se=0;se<B.length;++se){var ie=B[se],ee=typeof ie=="object"&&typeof ie.value<"u"?ie.value:M[ie];if(!(d&&ee===null)){var tt=_&&f?ie.replace(/\./g,"%2E"):ie,ot=ft(M)?typeof n=="function"?n(ae,tt):ae:ae+(_?"."+tt:"["+tt+"]");g.set(e,k);var rt=DC();rt.set(Hu,g),LC($,t(ee,ot,n,s,i,u,d,f,n==="comma"&&I&&ft(M)?null:p,h,S,_,C,w,R,I,D,rt))}}return $},j1=function(e){if(!e)return pe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||pe.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Yr.default;if(typeof e.format<"u"){if(!R1.call(Yr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Yr.formatters[n],i=pe.filter;(typeof e.filter=="function"||ft(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in FC?u=e.arrayFormat:"indices"in e?u=e.indices?"indices":"repeat":u=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};kC.exports=function(t,e){var r=t,n=j1(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ft(n.filter)&&(i=n.filter,s=i);var u=[];if(typeof r!="object"||r===null)return"";var d=FC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=DC(),h=0;h<s.length;++h){var S=s[h];n.skipNulls&&r[S]===null||LC(u,N1(r[S],S,d,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var _=u.join(n.delimiter),C=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?C+="utf8=%26%2310003%3B&":C+="utf8=%E2%9C%93&"),_.length>0?C+_:""}});var KC=o((M$,GC)=>{"use strict";var dr=Ku(),Wu=Object.prototype.hasOwnProperty,x1=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:dr.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},U1=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},$C=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},D1="utf8=%26%2310003%3B",F1="utf8=%E2%9C%93",L1=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,u=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]===F1?p="utf-8":u[f]===D1&&(p="iso-8859-1"),d=f,f=u.length);for(f=0;f<u.length;++f)if(f!==d){var h=u[f],S=h.indexOf("]="),_=S===-1?h.indexOf("="):S+1,C,w;_===-1?(C=r.decoder(h,de.decoder,p,"key"),w=r.strictNullHandling?null:""):(C=r.decoder(h.slice(0,_),de.decoder,p,"key"),w=dr.maybeMap($C(h.slice(_+1),r),function(I){return r.decoder(I,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=U1(w)),h.indexOf("[]=")>-1&&(w=x1(w)?[w]:w);var R=Wu.call(n,C);R&&r.duplicates==="combine"?n[C]=dr.combine(n[C],w):(!R||r.duplicates==="last")&&(n[C]=w)}return n},k1=function(t,e,r,n){for(var s=n?e:$C(e,r),i=t.length-1;i>=0;--i){var u,d=t[i];if(d==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{u=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(p,10);!r.parseArrays&&p===""?u={0:s}:!isNaN(h)&&d!==p&&String(h)===p&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(u=[],u[h]=s):p!=="__proto__"&&(u[p]=s)}s=u}return s},B1=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&u.exec(i),p=f?i.slice(0,f.index):i,h=[];if(p){if(!n.plainObjects&&Wu.call(Object.prototype,p)&&!n.allowPrototypes)return;h.push(p)}for(var S=0;n.depth>0&&(f=d.exec(i))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&Wu.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;h.push(f[1])}return f&&h.push("["+i.slice(f.index)+"]"),k1(h,r,n,s)}},$1=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||dr.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};GC.exports=function(t,e){var r=$1(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?L1(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var d=i[u],f=B1(d,n[d],r,typeof t=="string");s=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var zu=o((I$,HC)=>{"use strict";var G1=BC(),K1=KC(),H1=ri();HC.exports={formats:H1,parse:K1,stringify:G1}});var E=o(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Service=Lt.RESOURCE_SELECTOR_SEPARATOR=void 0;var W1=zu(),z1=$s();Lt.RESOURCE_SELECTOR_SEPARATOR=":";var Vu=class{options;constructor(e){this.options=e}async fetch(e){let{stringifyOptions:r}=e,n={headers:{},...e,method:typeof e.method=="string"?e.method:"GET"},s=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(s)||(s+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?s=`${s}/projects/${this.options.project.id}${Lt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,W1.stringify)(n.qs,r!==void 0?r:void 0);i+=u.length>0?`?${u}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new z1.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Lt.Service=Vu});var WC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.CategoryCodeService=void 0;var V1=b(),Y1=E(),Yu=class extends Y1.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[V1.status.OK]}).then(async r=>({data:await r.json()}))}};si.CategoryCodeService=Yu});var zC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.CreativeWorkService=void 0;var Q1=b(),Z1=E(),Qu=class extends Z1.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[Q1.status.OK]}).then(async r=>({data:await r.json()}))}};ii.CreativeWorkService=Qu});var VC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EmailMessageService=void 0;var J1=b(),X1=E(),Zu=class extends X1.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[J1.status.OK]}).then(async r=>({data:await r.json()}))}};oi.EmailMessageService=Zu});var QC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.EventService=void 0;var mt=b(),YC=Q(),ej=E(),Ju=class extends ej.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[mt.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[mt.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![YC.factory.eventType.ScreeningEvent].includes(n))throw new YC.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[mt.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[mt.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e,r){let{id:n,...s}=e,{useDefaultSection:i}=r;return this.fetch({uri:`/events/${encodeURIComponent(String(n))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[mt.status.OK]}).then(async u=>u.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[mt.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[mt.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[mt.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[mt.status.OK]}).then(async u=>u.json())}};ai.EventService=Ju});var ZC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.EventOfferService=void 0;var tj=b(),rj=E(),nj="/eventOffers",Xu=class extends rj.Service{async findEventOffers(e){return this.fetch({uri:nj,method:"GET",qs:e,expectedStatusCodes:[tj.status.OK]}).then(async r=>r.json())}};ci.EventOfferService=Xu});var JC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.EventSeriesService=void 0;var sj=b(),ij=E(),ed=class extends ij.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[sj.status.OK]}).then(async r=>r.json())}};ui.EventSeriesService=ed});var XC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.NoteService=void 0;var oj=b(),aj=E(),cj="/creativeWorks/noteDigitalDocument",td=class extends aj.Service{async findPublicNotes(e){return this.fetch({uri:cj,method:"GET",qs:e,expectedStatusCodes:[oj.status.OK]}).then(async r=>r.json())}};di.NoteService=td});var eg=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.PaymentProductService=void 0;var uj=b(),dj=E(),rd=class extends dj.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[uj.status.OK]}).then(async i=>i.json())}};li.PaymentProductService=rd});var tg=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.PlaceService=void 0;var lr=b(),nd=Q(),lj=E(),sd=class extends lj.Service{async searchMovieTheaters(e){return this.fetch({uri:`/places/${nd.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${nd.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${nd.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[lr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};fi.PlaceService=sd});var rg=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.HasPOSService=void 0;var fj=b(),hj=Q(),yj=E(),id=class extends yj.Service{async search(e){return this.fetch({uri:`/places/${hj.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[fj.status.OK]}).then(async r=>r.json())}};hi.HasPOSService=id});var ng=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.ProductService=void 0;var od=b(),pj=E(),ad=class extends pj.Service{async findProducts(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[od.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[od.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[od.status.OK]}).then(async r=>r.json())}};yi.ProductService=ad});var sg=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.SeatOfferService=void 0;var vj=b(),Sj=E(),mj="/seatOffers",cd=class extends Sj.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:mj,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[vj.status.OK]}).then(async u=>u.json())}};pi.SeatOfferService=cd});var ig=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.SellerService=void 0;var vi=b(),_j=E(),ud=class extends _j.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[vi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[vi.status.OK]}).then(async r=>r.json())}async searchPaymentServicesByProvider(e){let{provider:r,qs:n}=e;return this.fetch({uri:`/sellers/${r.id}/paymentServices`,method:"GET",qs:n,expectedStatusCodes:[vi.status.OK]}).then(async s=>s.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[vi.status.OK]}).then(async s=>s.json())}};Si.SellerService=ud});var og=o(Le=>{"use strict";var Oj=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Tj=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),je=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Oj(r,e,n[s]);return Tj(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var W;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let u;u=t.EventSeries||(t.EventSeries={});let d;d=t.Note||(t.Note={});let f;f=t.PaymentProduct||(t.PaymentProduct={});let p;p=t.Place||(t.Place={});let h;(function(w){let R;R=w.HasPOS||(w.HasPOS={})})(h=t.place||(t.place={}));let S;S=t.Product||(t.Product={});let _;_=t.SeatOffer||(t.SeatOffer={});let C;C=t.Seller||(t.Seller={})})(W||(Le.service=W={}));var dd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return W.CategoryCode.svc===void 0&&(W.CategoryCode.svc=(await Promise.resolve().then(()=>je(WC()))).CategoryCodeService),new W.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return W.CreativeWork.svc===void 0&&(W.CreativeWork.svc=(await Promise.resolve().then(()=>je(zC()))).CreativeWorkService),new W.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return W.EmailMessage.svc===void 0&&(W.EmailMessage.svc=(await Promise.resolve().then(()=>je(VC()))).EmailMessageService),new W.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return W.Event.svc===void 0&&(W.Event.svc=(await Promise.resolve().then(()=>je(QC()))).EventService),new W.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return W.EventOffer.svc===void 0&&(W.EventOffer.svc=(await Promise.resolve().then(()=>je(ZC()))).EventOfferService),new W.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return W.EventSeries.svc===void 0&&(W.EventSeries.svc=(await Promise.resolve().then(()=>je(JC()))).EventSeriesService),new W.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return W.Note.svc===void 0&&(W.Note.svc=(await Promise.resolve().then(()=>je(XC()))).NoteService),new W.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return W.PaymentProduct.svc===void 0&&(W.PaymentProduct.svc=(await Promise.resolve().then(()=>je(eg()))).PaymentProductService),new W.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return W.Place.svc===void 0&&(W.Place.svc=(await Promise.resolve().then(()=>je(tg()))).PlaceService),new W.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return W.place.HasPOS.svc===void 0&&(W.place.HasPOS.svc=(await Promise.resolve().then(()=>je(rg()))).HasPOSService),new W.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return W.Product.svc===void 0&&(W.Product.svc=(await Promise.resolve().then(()=>je(ng()))).ProductService),new W.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return W.SeatOffer.svc===void 0&&(W.SeatOffer.svc=(await Promise.resolve().then(()=>je(sg()))).SeatOfferService),new W.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return W.Seller.svc===void 0&&(W.Seller.svc=(await Promise.resolve().then(()=>je(ig()))).SellerService),new W.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=dd});var ag=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.OrderService=void 0;var Pt=b(),Ej=Q(),Cj=E(),ld=class extends Cj.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[Pt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${Ej.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchAcceptedOffersByConfirmationNumber(e){let{orderNumber:r,...n}=e;return this.fetch({uri:`/orders/${r}/acceptedOffersByConfirmationNumber`,method:"POST",body:n,expectedStatusCodes:[Pt.status.OK]}).then(async s=>s.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}};mi.OrderService=ld});var ug=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.ReservationService=void 0;var cg=b(),gj=E(),fd=class extends gj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[cg.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[cg.status.OK]}).then(async n=>n.json())}};_i.ReservationService=fd});var dg=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.TokenService=void 0;var bj=E(),hd=class extends bj.Service{};Oi.TokenService=hd});var lg=o(ke=>{"use strict";var Pj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Aj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yd=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Pj(r,e,n[s]);return Aj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAsset=ke.service=void 0;var nt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(nt||(ke.service=nt={}));var pd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return nt.Order.svc===void 0&&(nt.Order.svc=(await Promise.resolve().then(()=>yd(ag()))).OrderService),new nt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return nt.Reservation.svc===void 0&&(nt.Reservation.svc=(await Promise.resolve().then(()=>yd(ug()))).ReservationService),new nt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return nt.Token.svc===void 0&&(nt.Token.svc=(await Promise.resolve().then(()=>yd(dg()))).TokenService),new nt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};ke.ChevreAsset=pd});var hg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.SyncService=void 0;var fg=b(),wj=E(),vd=class extends wj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[fg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[fg.status.ACCEPTED]}).then(async r=>r.json())}};Ti.SyncService=vd});var yg=o(Be=>{"use strict";var Rj=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Mj=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ij=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Rj(r,e,n[s]);return Mj(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmic=Be.service=void 0;var Qr;(function(t){let e;e=t.Sync||(t.Sync={})})(Qr||(Be.service=Qr={}));var Sd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Qr.Sync.svc===void 0&&(Qr.Sync.svc=(await Promise.resolve().then(()=>Ij(hg()))).SyncService),new Qr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmic=Sd});var pg=o(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.AuthorizationService=void 0;var qj=b(),Nj=E(),md=class extends Nj.Service{async create(e){return this.fetch({uri:"/authorizations",method:"POST",body:e,expectedStatusCodes:[qj.status.CREATED]}).then(async r=>r.json())}};Ei.AuthorizationService=md});var vg=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.CustomerService=void 0;var jj=b(),xj=E(),_d=class extends xj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[jj.status.OK]}).then(async r=>r.json())}};Ci.CustomerService=_d});var Sg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.EventService=void 0;var Zr=b(),Uj=E(),Od=class extends Uj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[Zr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:s}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:s===!0},expectedStatusCodes:[Zr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}};gi.EventService=Od});var mg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.EventOfferService=void 0;var bi=b(),Dj=E(),Pi="/eventOffers",Td=class extends Dj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Pi,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[bi.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Pi,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[bi.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Pi,method:"GET",qs:e,expectedStatusCodes:[bi.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Pi}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[bi.status.CREATED]}).then(async n=>n.json())}};Ai.EventOfferService=Td});var Tg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.EventSeriesService=void 0;var _g=b(),Fj=E(),Og="/eventSeries",Ed=class extends Fj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:Og,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[_g.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:Og,method:"GET",qs:e,expectedStatusCodes:[_g.status.OK]}).then(async r=>r.json())}};wi.EventSeriesService=Ed});var Cg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.MeService=void 0;var Eg=b(),Lj=E(),Cd=class extends Lj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[Eg.status.OK]}).then(async r=>r.json())}async findMySellers(e){let{project:r,conditions:n}=e;return this.fetch({uri:`/members/me/projects/${String(r?.id)}/sellers`,method:"GET",qs:n,expectedStatusCodes:[Eg.status.OK]}).then(async s=>s.json())}};Ri.MeService=Cd});var gg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.MemberService=void 0;var kj=b(),Bj=Q(),$j=E(),gd=class extends $j.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Bj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[kj.status.OK]}).then(async r=>r.json())}};Mi.MemberService=gd});var Ag=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.MovieService=void 0;var bg=b(),Gj=E(),Pg="/movies",bd=class extends Gj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:Pg,method:"PUT",body:e,expectedStatusCodes:[bg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:Pg,method:"GET",qs:e,expectedStatusCodes:[bg.status.OK]}).then(async r=>r.json())}};Ii.MovieService=bd});var Rg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.MovieTheaterService=void 0;var Jr=b(),Kj=E(),wg="/movieTheaters",Pd="/entranceGates",Ad=class extends Kj.Service{async findMovieTheaters(e){return this.fetch({uri:wg,method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:wg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Jr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Pd,method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Pd,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Jr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Pd,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Jr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};qi.MovieTheaterService=Ad});var Mg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.NoteService=void 0;var wd=b(),Hj=E(),Rd="/creativeWorks/noteDigitalDocument",Md=class extends Hj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Rd,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[wd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Rd,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[wd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Rd,method:"GET",qs:e,expectedStatusCodes:[wd.status.OK]}).then(async r=>r.json())}};Ni.NoteService=Md});var Ig=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.NoteAboutOrderService=void 0;var Id=b(),Wj=E(),qd="/orderNotes",Nd=class extends Wj.Service{async upsertByIdentifier(e){await this.fetch({uri:qd,method:"PUT",body:e,expectedStatusCodes:[Id.status.NO_CONTENT]})}async search(e){return this.fetch({uri:qd,method:"GET",qs:e,expectedStatusCodes:[Id.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${qd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[Id.status.NO_CONTENT]})}};ji.NoteAboutOrderService=Nd});var qg=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.OrderService=void 0;var Xr=b(),zj=E(),jd=class extends zj.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Xr.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>({data:await r.json()}))}async findByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}`,method:"GET",expectedStatusCodes:[Xr.status.OK],qs:r}).then(async n=>n.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Xr.status.OK],qs:r}).then(async n=>n.json())}};xi.OrderService=jd});var Ng=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.PaymentMethodService=void 0;var Vj=b(),Yj=E(),Qj="/paymentMethods",xd=class extends Yj.Service{async findPaymentMethods(e){return this.fetch({uri:Qj,method:"GET",qs:e,expectedStatusCodes:[Vj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ui.PaymentMethodService=xd});var xg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ProductService=void 0;var Ud=b(),Zj=E(),jg="/products",Jj="/productHasOfferCatalog",Dd=class extends Zj.Service{async upsertByProductId(e){await this.fetch({uri:jg,method:"PUT",body:e,expectedStatusCodes:[Ud.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:jg,method:"GET",qs:e,expectedStatusCodes:[Ud.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Jj,method:"GET",qs:e,expectedStatusCodes:[Ud.status.OK]}).then(async r=>r.json())}};Di.ProductService=Dd});var Ug=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.ReservationService=void 0;var Fd=b(),Xj=E(),Ld=class extends Xj.Service{async find(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Fd.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:s}=e;await this.fetch({uri:`/reservations/${String(s?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[Fd.status.NO_CONTENT]})}async searchUseActions(e){let{object:r,...n}=e;return this.fetch({uri:`/reservations/${String(e.object?.id)}/actions/use`,method:"GET",qs:n,expectedStatusCodes:[Fd.status.OK]}).then(async s=>s.json())}};Fi.ReservationService=Ld});var Lg=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.RoomService=void 0;var Dg=b(),ex=E(),Fg="/rooms",kd=class extends ex.Service{async findRooms(e){return this.fetch({uri:Fg,method:"GET",qs:e,expectedStatusCodes:[Dg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Fg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Dg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Li.RoomService=kd});var kg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.SeatService=void 0;var Bd=b(),tx=E(),$d="/seats",Gd=class extends tx.Service{async findSeats(e){return this.fetch({uri:$d,method:"GET",qs:e,expectedStatusCodes:[Bd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:$d,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[Bd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:$d,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Bd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};ki.SeatService=Gd});var Gg=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.SeatSectionService=void 0;var Bg=b(),rx=E(),$g="/seatSections",Kd=class extends rx.Service{async findSeatSections(e){return this.fetch({uri:$g,method:"GET",qs:e,expectedStatusCodes:[Bg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:$g,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[Bg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Bi.SeatSectionService=Kd});var Kg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.SellerService=void 0;var nx=b(),sx=E(),Hd=class extends sx.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[nx.status.OK]}).then(async r=>r.json())}};$i.SellerService=Hd});var Wg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.OfferService=void 0;var Hg=b(),ix=E(),Wd=class extends ix.Service{async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Hg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{productType:n}=r;await this.fetch({uri:"/offers",method:"PUT",body:e,qs:{productType:n},expectedStatusCodes:[Hg.status.NO_CONTENT]})}};Gi.OfferService=Wd});var zg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.OfferCatalogService=void 0;var ox=b(),ax=E(),zd=class extends ax.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:u}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:u},expectedStatusCodes:[ox.status.NO_CONTENT]})}};Ki.OfferCatalogService=zd});var Yg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.OfferCatalogItemService=void 0;var Vg=b(),cx=E(),Vd=class extends cx.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Vg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i},expectedStatusCodes:[Vg.status.NO_CONTENT]})}};Hi.OfferCatalogItemService=Vd});var Qg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.CancelReservationAssetTransactionService=void 0;var ux=b(),dx=E(),Yd=class extends dx.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[ux.status.NO_CONTENT]})}};Wi.CancelReservationAssetTransactionService=Yd});var Zg=o($e=>{"use strict";var lx=$e&&$e.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fx=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oe=$e&&$e.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&lx(r,e,n[s]);return fx(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreAdmin=$e.service=void 0;var j;(function(t){let e;e=t.Authorization||(t.Authorization={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.Member||(t.Member={});let f;f=t.Movie||(t.Movie={});let p;p=t.MovieTheater||(t.MovieTheater={});let h;h=t.Note||(t.Note={});let S;S=t.NoteAboutOrder||(t.NoteAboutOrder={});let _;_=t.Order||(t.Order={});let C;C=t.PaymentMethod||(t.PaymentMethod={});let w;w=t.Product||(t.Product={});let R;R=t.Reservation||(t.Reservation={});let I;I=t.Room||(t.Room={});let D;D=t.Seat||(t.Seat={});let g;g=t.SeatSection||(t.SeatSection={});let M;M=t.Seller||(t.Seller={});let U;U=t.Offer||(t.Offer={});let k;k=t.OfferCatalog||(t.OfferCatalog={});let K;K=t.OfferCatalogItem||(t.OfferCatalogItem={});let H;(function(N){let $;$=N.CancelReservation||(N.CancelReservation={})})(H=t.assetTransaction||(t.assetTransaction={}))})(j||($e.service=j={}));var Qd=class{options;constructor(e){this.options=e}async createAuthorizationInstance(e){return j.Authorization.svc===void 0&&(j.Authorization.svc=(await Promise.resolve().then(()=>oe(pg()))).AuthorizationService),new j.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>oe(vg()))).CustomerService),new j.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return j.Event.svc===void 0&&(j.Event.svc=(await Promise.resolve().then(()=>oe(Sg()))).EventService),new j.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return j.EventOffer.svc===void 0&&(j.EventOffer.svc=(await Promise.resolve().then(()=>oe(mg()))).EventOfferService),new j.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return j.EventSeries.svc===void 0&&(j.EventSeries.svc=(await Promise.resolve().then(()=>oe(Tg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>oe(Cg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>oe(gg()))).MemberService),new j.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return j.Movie.svc===void 0&&(j.Movie.svc=(await Promise.resolve().then(()=>oe(Ag()))).MovieService),new j.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return j.MovieTheater.svc===void 0&&(j.MovieTheater.svc=(await Promise.resolve().then(()=>oe(Rg()))).MovieTheaterService),new j.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return j.Note.svc===void 0&&(j.Note.svc=(await Promise.resolve().then(()=>oe(Mg()))).NoteService),new j.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return j.NoteAboutOrder.svc===void 0&&(j.NoteAboutOrder.svc=(await Promise.resolve().then(()=>oe(Ig()))).NoteAboutOrderService),new j.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return j.Order.svc===void 0&&(j.Order.svc=(await Promise.resolve().then(()=>oe(qg()))).OrderService),new j.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return j.PaymentMethod.svc===void 0&&(j.PaymentMethod.svc=(await Promise.resolve().then(()=>oe(Ng()))).PaymentMethodService),new j.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return j.Product.svc===void 0&&(j.Product.svc=(await Promise.resolve().then(()=>oe(xg()))).ProductService),new j.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return j.Reservation.svc===void 0&&(j.Reservation.svc=(await Promise.resolve().then(()=>oe(Ug()))).ReservationService),new j.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return j.Room.svc===void 0&&(j.Room.svc=(await Promise.resolve().then(()=>oe(Lg()))).RoomService),new j.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return j.Seat.svc===void 0&&(j.Seat.svc=(await Promise.resolve().then(()=>oe(kg()))).SeatService),new j.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return j.SeatSection.svc===void 0&&(j.SeatSection.svc=(await Promise.resolve().then(()=>oe(Gg()))).SeatSectionService),new j.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return j.Seller.svc===void 0&&(j.Seller.svc=(await Promise.resolve().then(()=>oe(Kg()))).SellerService),new j.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return j.Offer.svc===void 0&&(j.Offer.svc=(await Promise.resolve().then(()=>oe(Wg()))).OfferService),new j.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return j.OfferCatalog.svc===void 0&&(j.OfferCatalog.svc=(await Promise.resolve().then(()=>oe(zg()))).OfferCatalogService),new j.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return j.OfferCatalogItem.svc===void 0&&(j.OfferCatalogItem.svc=(await Promise.resolve().then(()=>oe(Yg()))).OfferCatalogItemService),new j.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return j.assetTransaction.CancelReservation.svc===void 0&&(j.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>oe(Qg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};$e.ChevreAdmin=Qd});var Jg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AccountingReportService=void 0;var hx=b(),yx=E(),Zd=class extends yx.Service{async search(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[hx.status.OK]}).then(async r=>({data:await r.json()}))}};zi.AccountingReportService=Zd});var Xg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AccountTitleService=void 0;var Ge=b(),px=Q(),vx=E(),Jd=class extends vx.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new px.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[Ge.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[Ge.status.OK]}).then(async r=>({data:await r.json()}))}async deleteByCodeValue(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[Ge.status.NO_CONTENT]})}};Vi.AccountTitleService=Jd});var eb=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.ActionService=void 0;var Xd=b(),Sx=E(),el=class extends Sx.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Xd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Xd.status.OK],qs:{typeOf:e.typeOf}}).then(async r=>r.json())}async searchRecipes(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Xd.status.OK]}).then(async r=>r.json())}};Yi.ActionService=el});var tb=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AdditionalPropertyService=void 0;var en=b(),mx=E(),tl=class extends mx.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};Qi.AdditionalPropertyService=tl});var rb=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AdvanceBookingRequirementService=void 0;var Zi=b(),_x=E(),rl=class extends _x.Service{async create(e){return this.fetch({uri:"/advanceBookingRequirements",method:"POST",body:e,expectedStatusCodes:[Zi.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/advanceBookingRequirements",method:"GET",qs:e,expectedStatusCodes:[Zi.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/advanceBookingRequirements/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[Zi.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/advanceBookingRequirements/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Zi.status.NO_CONTENT]})}};Ji.AdvanceBookingRequirementService=rl});var sb=o(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.AggregateOfferService=void 0;var nb=b(),Ox=E(),nl=class extends Ox.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[nb.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nb.status.NO_CONTENT]})}};Xi.AggregateOfferService=nl});var ib=o(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.AggregateReservationService=void 0;var Tx=b(),Ex=E(),sl=class extends Ex.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[Tx.status.OK]}).then(async r=>r.json())}};eo.AggregateReservationService=sl});var ob=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.AggregationService=void 0;var Cx=b(),gx=E(),il=class extends gx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[Cx.status.OK]}).then(async r=>r.json())}};to.AggregationService=il});var ab=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.AuthorizationService=void 0;var bx=b(),Px=E(),ol=class extends Px.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[bx.status.OK]}).then(async r=>r.json())}};ro.AuthorizationService=ol});var cb=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CreativeWorkService=void 0;var Ax=b(),wx=E(),al=class extends wx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ax.status.NO_CONTENT]})}};no.CreativeWorkService=al});var ub=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.CategoryCodeService=void 0;var so=b(),Rx=E(),io="/categoryCodes",cl=class extends Rx.Service{async createCategoryCode(e){return this.fetch({uri:io,method:"POST",body:e,expectedStatusCodes:[so.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:io,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[so.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${io}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[so.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${io}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[so.status.NO_CONTENT]})}};oo.CategoryCodeService=cl});var db=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.CustomerService=void 0;var ul=b(),Mx=E(),dl=class extends Mx.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[ul.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[ul.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[ul.status.NO_CONTENT]})}};ao.CustomerService=dl});var lb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.CustomerTypeService=void 0;var Ix=b(),qx=E(),ll=class extends qx.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[Ix.status.OK]}).then(async r=>r.json())}};co.CustomerTypeService=ll});var fb=o(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.EmailMessageService=void 0;var tn=b(),Nx=E(),fl=class extends Nx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[tn.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/emailMessages/${e.id}`,method:"GET",expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[tn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[tn.status.NO_CONTENT]})}};uo.EmailMessageService=fl});var yb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.EventService=void 0;var rn=b(),hb=Q(),jx=E(),hl=class extends jx.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{expectsNoContent:"1",typeOf:hb.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[rn.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async findEventById(e){let{id:r,typeOf:n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[rn.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async updateEventById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e.attributes,qs:{typeOf:hb.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[rn.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[rn.status.NO_CONTENT]})}};lo.EventService=hl});var Sb=o(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.EventSeriesService=void 0;var pb=b(),vb=Q(),xx=E(),yl=class extends xx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${vb.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[pb.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${vb.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[pb.status.NO_CONTENT]})}};fo.EventSeriesService=yl});var mb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.HasMerchantReturnPolicyService=void 0;var Ux=b(),Dx=E(),pl=class extends Dx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[Ux.status.OK]}).then(async e=>e.json())}};ho.HasMerchantReturnPolicyService=pl});var _b=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IAMService=void 0;var Ie=b(),Fx=E(),vl=class extends Fx.Service{async searchUsers(e){return this.fetch({uri:"/iam/users",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async findUserById(e){return this.fetch({uri:`/iam/users/${e.id}`,method:"GET",expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async getUserProfile(e){return this.fetch({uri:`/iam/users/${e.id}/profile`,method:"GET",expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async updateUserProfile(e){let{id:r,...n}=e;await this.fetch({uri:`/iam/users/${e.id}/profile`,method:"PATCH",body:n,expectedStatusCodes:[Ie.status.NO_CONTENT]})}async projectRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async createMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[Ie.status.CREATED,Ie.status.NO_CONTENT]})}async searchProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async findMemberById(e){return this.fetch({uri:`/iam/members/${e.member.id}`,method:"GET",expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async updateMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Ie.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Ie.status.NO_CONTENT]})}async getMemberProfile(e){return this.fetch({uri:`/iam/members/${e.member.id}/profile`,method:"GET",expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async updateMemberProfile(e){await this.fetch({uri:`/iam/members/${e.member.id}/profile`,method:"PATCH",body:e.member,expectedStatusCodes:[Ie.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}};yo.IAMService=vl});var Ob=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.IdentityService=void 0;var po=b(),Lx=E(),Sl=class extends Lx.Service{async createIdentity(e){return this.fetch({uri:"/identities",method:"POST",body:e,expectedStatusCodes:[po.status.CREATED]}).then(async r=>r.json())}async projectIdentityFields(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[po.status.OK]}).then(async r=>r.json())}async updateIdentityById(e){let{id:r,...n}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[po.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[po.status.NO_CONTENT]})}};vo.IdentityService=Sl});var Tb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.IdentityProviderService=void 0;var So=b(),kx=E(),ml=class extends kx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[So.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[So.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[So.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[So.status.NO_CONTENT]})}};mo.IdentityProviderService=ml});var Eb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.IssuerService=void 0;var nn=b(),Bx=E(),_l=class extends Bx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[nn.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[nn.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[nn.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:n,expectedStatusCodes:[nn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nn.status.NO_CONTENT]})}};_o.IssuerService=_l});var gb=o(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.MeService=void 0;var Cb=b(),$x=E(),Ol=class extends $x.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[Cb.status.OK]}).then(async r=>({data:await r.json()}))}async searchMemberHasRoleOnProject(e){return this.fetch({uri:`/members/me/projects/${e.project.id}/hasRole`,method:"GET",expectedStatusCodes:[Cb.status.OK]}).then(async r=>r.json())}};Oo.MeService=Ol});var bb=o(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.MemberService=void 0;var At=b(),wt=Q(),Gx=E(),Tl=class extends Gx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};To.MemberService=Tl});var Pb=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MemberProgramService=void 0;var sn=b(),Kx=E(),El=class extends Kx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[sn.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[sn.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[sn.status.NO_CONTENT]})}async updateByIdentifier(e){let{hostingOrganization:r,hasTiers:n}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"PUT",body:{hostingOrganization:r,...Array.isArray(n)?{hasTiers:n}:void 0},expectedStatusCodes:[sn.status.NO_CONTENT]})}async deleteByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"DELETE",body:{hostingOrganization:r},expectedStatusCodes:[sn.status.NO_CONTENT]})}};Eo.MemberProgramService=El});var Ab=o(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.MerchantReturnPolicyService=void 0;var on=b(),Hx=E(),Cl=class extends Hx.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[on.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[on.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}};Co.MerchantReturnPolicyService=Cl});var wb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.MessageService=void 0;var Wx=b(),zx=E(),gl=class extends zx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Wx.status.OK]}).then(async r=>r.json())}};go.MessageService=gl});var Rb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.MovieTicketTypeService=void 0;var bo=b(),Vx=E(),Po="/movieTicketTypes",bl=class extends Vx.Service{async createMovieTicketType(e){return this.fetch({uri:Po,method:"POST",body:e,expectedStatusCodes:[bo.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:Po,method:"GET",qs:e,expectedStatusCodes:[bo.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${Po}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[bo.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${Po}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[bo.status.NO_CONTENT]})}};Ao.MovieTicketTypeService=bl});var Mb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.OrderService=void 0;var an=b(),Yx=E(),Pl=class extends Yx.Service{async createWithoutTransaction(e){return this.fetch({uri:"/orders",method:"POST",body:e,expectedStatusCodes:[an.status.CREATED]}).then(async r=>r.json())}async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[an.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[an.status.NO_CONTENT]})}async processOrder(e){let{confirmationNumber:r,orderNumber:n}=e.object;await this.fetch({uri:`/orders/${n}/processOrder`,method:"POST",body:{confirmationNumber:r},expectedStatusCodes:[an.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[an.status.OK]}).then(async r=>r.json())}};wo.OrderService=Pl});var Ib=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.OwnershipInfoService=void 0;var Qx=b(),Zx=E(),Al=class extends Zx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[Qx.status.OK]}).then(async r=>({data:await r.json()}))}};Ro.OwnershipInfoService=Al});var qb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PaymentProductService=void 0;var fr=b(),Jx=E(),wl=class extends Jx.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[fr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[fr.status.OK],qs:n}).then(async s=>s.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[fr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[fr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[fr.status.OK]}).then(async r=>r.json())}};Mo.PaymentProductService=wl});var Nb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PaymentServiceChannelService=void 0;var Io=b(),Xx=E(),Rl=class extends Xx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Io.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Io.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[Io.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Io.status.NO_CONTENT]})}};qo.PaymentServiceChannelService=Rl});var xb=o(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.PendingReservationService=void 0;var jb=b(),eU=E(),Ml=class extends eU.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[jb.status.OK]}).then(async r=>r.json())}async projectSubReservationByReservationNumber(e){let{reservationNumber:r}=e;return this.fetch({uri:`/pendingReservations/${encodeURIComponent(String(r.$eq))}/subReservation`,method:"GET",expectedStatusCodes:[jb.status.OK]}).then(async n=>n.json())}};No.PendingReservationService=Ml});var Db=o(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.PermissionService=void 0;var Ub=b(),tU=E(),Il=class extends tU.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Ub.status.OK]}).then(async e=>e.json())}async token2permissions(e){let{token:r}=e;return this.fetch({uri:"/permissions/token2permissions",method:"POST",body:{token:r},expectedStatusCodes:[Ub.status.OK]}).then(async n=>n.json())}};jo.PermissionService=Il});var Fb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.PersonService=void 0;var hr=b(),rU=E(),ql=class extends rU.Service{async getProfile(e){let r=typeof e.id=="string"?e.id:"me";return this.fetch({uri:`/people/${r}/profile`,method:"GET",expectedStatusCodes:[hr.status.OK],qs:{iss:e.iss}}).then(async n=>n.json())}async updateProfile(e){let r=typeof e.id=="string"?e.id:"me";await this.fetch({uri:`/people/${r}/profile`,method:"PATCH",body:e,expectedStatusCodes:[hr.status.NO_CONTENT],qs:{iss:e.iss}})}async searchOrders(e){let r=typeof e.id=="string"?e.id:"me";return this.fetch({uri:`/people/${r}/orders`,method:"GET",qs:e,expectedStatusCodes:[hr.status.OK]}).then(async n=>({data:await n.json()}))}async search(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[hr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){let r=typeof e.id=="string"?e.id:"me";return this.fetch({uri:`/people/${r}`,method:"GET",expectedStatusCodes:[hr.status.OK],qs:{iss:e.iss}}).then(async n=>n.json())}async deleteById(e){let r=typeof e.id=="string"?e.id:"me";await this.fetch({uri:`/people/${r}`,method:"DELETE",body:e,expectedStatusCodes:[hr.status.NO_CONTENT],qs:{iss:e.iss}})}};xo.PersonService=ql});var Lb=o(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.PlaceService=void 0;var cn=b(),un=Q(),nU=E(),Nl=class extends nU.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${un.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${un.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[cn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${un.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${un.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[cn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${un.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}};Uo.PlaceService=Nl});var kb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.HasPOSService=void 0;var Do=b(),Fo=Q(),sU=E(),jl=class extends sU.Service{async search(e){return this.fetch({uri:`/places/${Fo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Do.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${Fo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[Do.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${Fo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[Do.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${Fo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[Do.status.NO_CONTENT]})}};Lo.HasPOSService=jl});var Bb=o(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.PriceSpecificationService=void 0;var ko=b(),iU=E(),xl=class extends iU.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[ko.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[ko.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[ko.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ko.status.NO_CONTENT]})}};Bo.PriceSpecificationService=xl});var $b=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProductService=void 0;var dn=b(),oU=E(),ln="/products",Ul=class extends oU.Service{async createProduct(e){return this.fetch({uri:ln,method:"POST",body:e,expectedStatusCodes:[dn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:ln,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[dn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${ln}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[dn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${ln}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[dn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${ln}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[dn.status.NO_CONTENT]})}};$o.ProductService=Ul});var Gb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.ProductModelService=void 0;var Go=b(),aU=E(),Dl=class extends aU.Service{async create(e){return this.fetch({uri:"/productModels",method:"POST",body:e,expectedStatusCodes:[Go.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[Go.status.OK]}).then(async r=>r.json())}async updateById(e){await this.fetch({uri:`/productModels/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Go.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/productModels/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Go.status.NO_CONTENT]})}};Ko.ProductModelService=Dl});var Kb=o(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.ProjectService=void 0;var Ho=b(),cU=E(),Fl=class extends cU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Ho.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Ho.status.OK]}).then(async r=>r.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Ho.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Ho.status.NO_CONTENT]})}};Wo.ProjectService=Fl});var Hb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.ProjectMakesOfferService=void 0;var zo=b(),uU=E(),Ll=class extends uU.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[zo.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[zo.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[zo.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[zo.status.NO_CONTENT]})}};Vo.ProjectMakesOfferService=Ll});var Wb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.ReservationService=void 0;var dU=b(),lU=E(),kl=class extends lU.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[dU.status.NO_CONTENT]})}};Yo.ReservationService=kl});var zb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.OfferService=void 0;var Bl=b(),fU=E(),$l=class extends fU.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[Bl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}};Qo.OfferService=$l});var Vb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.OfferCatalogService=void 0;var Zo=b(),hU=E(),Gl=class extends hU.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Zo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Zo.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Zo.status.NO_CONTENT]})}};Jo.OfferCatalogService=Gl});var Yb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.OfferCatalogItemService=void 0;var yr=b(),yU=E(),Kl=class extends yU.Service{async create(e){return this.fetch({uri:"/offerCatalogItems",method:"POST",body:e,expectedStatusCodes:[yr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[yr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[yr.status.NO_CONTENT]})}async updateMany(e){await this.fetch({uri:"/offerCatalogItems",method:"PATCH",body:e,expectedStatusCodes:[yr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[yr.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[yr.status.OK]}).then(async s=>s.json())}};Xo.OfferCatalogItemService=Kl});var Qb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.OfferItemConditionService=void 0;var ea=b(),pU=E(),Hl=class extends pU.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[ea.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[ea.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[ea.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ea.status.NO_CONTENT]})}};ta.OfferItemConditionService=Hl});var Zb=o(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.SellerService=void 0;var _e=b(),vU=E(),Wl=class extends vU.Service{async create(e){return this.fetch({uri:"/sellers",method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/sellers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/sellers/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async createPaymentAccepted(e){let{seller:r,...n}=e;await this.fetch({uri:`/sellers/${r.id}/paymentAccepted`,method:"POST",body:n,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deletePaymentAccepted(e){await this.fetch({uri:`/sellers/${e.seller.id}/paymentAccepted/${e.codeValue}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchProvidesPaymentService(e){return this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async createProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"POST",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async updateProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async createMember(e){let r=e[0]?.member.memberOf.id;await this.fetch({uri:`/sellers/${String(r)}/members`,method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED,_e.status.NO_CONTENT]})}async searchMembers(e){return this.fetch({uri:`/sellers/${String(e.seller.id)}/members`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async updateMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}};ra.SellerService=Wl});var Jb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.SellerMakesOfferService=void 0;var zl=b(),SU=E(),Vl=class extends SU.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[zl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[zl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[zl.status.NO_CONTENT]})}};na.SellerMakesOfferService=Vl});var Xb=o(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.SellerReturnPolicyService=void 0;var fn=b(),mU=E(),Yl=class extends mU.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[fn.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[fn.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r}=e;return this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[fn.status.OK]}).then(async n=>n.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[fn.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fn.status.NO_CONTENT]})}};sa.SellerReturnPolicyService=Yl});var eP=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.TaskService=void 0;var Ql=b(),_U=E(),Zl=class extends _U.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Ql.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Ql.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Ql.status.OK]}).then(async r=>r.json())}};ia.TaskService=Zl});var tP=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TicketService=void 0;var OU=b(),TU=E(),Jl=class extends TU.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[OU.status.OK]}).then(async r=>r.json())}};oa.TicketService=Jl});var rP=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.AssetTransactionService=void 0;var EU=b(),CU=E(),Xl=class extends CU.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[EU.status.OK]}).then(async r=>({data:await r.json()}))}};aa.AssetTransactionService=Xl});var nP=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.PayAssetTransactionService=void 0;var ca=b(),pr=Q(),gU=E(),ef=class extends gU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ca.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ca.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ca.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${pr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ca.status.OK]}).then(async r=>r.json())}};ua.PayAssetTransactionService=ef});var sP=o(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.ReserveAssetTransactionService=void 0;var da=b(),bU=E(),tf=class extends bU.Service{async start(e){return this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,expectedStatusCodes:[da.status.OK]}).then(async r=>r.json())}async startWithNoResponse(e){await this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,qs:{expectsNoContent:"1"},expectedStatusCodes:[da.status.NO_CONTENT]})}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/reserve/${r}/confirm?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[da.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/reserve/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[da.status.NO_CONTENT]})}};la.ReserveAssetTransactionService=tf});var iP=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.TokenService=void 0;var PU=E(),rf=class extends PU.Service{};fa.TokenService=rf});var aP=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PlaceOrderTransactionService=void 0;var oP=b(),AU=Q(),wU=E(),nf=class extends wU.Service{typeOf=AU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[oP.status.OK]}).then(async r=>({data:await r.json()}))}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[oP.status.OK]}).then(async s=>s.json())}};ha.PlaceOrderTransactionService=nf});var cP=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.ReturnOrderTransactionService=void 0;var RU=b(),MU=Q(),IU=E(),sf=class extends IU.Service{typeOf=MU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[RU.status.OK]}).then(async r=>({data:await r.json()}))}};ya.ReturnOrderTransactionService=sf});var uP=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.TransactionNumberService=void 0;var qU=b(),NU=E(),of=class extends NU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[qU.status.CREATED]}).then(async e=>e.json())}};pa.TransactionNumberService=of});var dP=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.UserPoolService=void 0;var af=b(),jU=E(),cf=class extends jU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[af.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[af.status.OK]}).then(async r=>({data:await r.json()}))}async findClientById(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients/${e.clientId}`,method:"GET",expectedStatusCodes:[af.status.OK]}).then(async r=>r.json())}};va.UserPoolService=cf});var lP=o(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.WebSiteService=void 0;var Sa=b(),xU=E(),uf=class extends xU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[Sa.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[Sa.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[Sa.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Sa.status.NO_CONTENT]})}};ma.WebSiteService=uf});var fP=o(Ke=>{"use strict";var UU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),DU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=Ke&&Ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&UU(r,e,n[s]);return DU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevreConsole=Ke.service=void 0;var m;(function(t){let e;e=t.AccountingReport||(t.AccountingReport={});let r;r=t.AccountTitle||(t.AccountTitle={});let n;n=t.Action||(t.Action={});let s;s=t.AdditionalProperty||(t.AdditionalProperty={});let i;i=t.AdvanceBookingRequirement||(t.AdvanceBookingRequirement={});let u;u=t.AggregateOffer||(t.AggregateOffer={});let d;d=t.AggregateReservation||(t.AggregateReservation={});let f;f=t.Aggregation||(t.Aggregation={});let p;p=t.Authorization||(t.Authorization={});let h;h=t.CategoryCode||(t.CategoryCode={});let S;S=t.CreativeWork||(t.CreativeWork={});let _;_=t.Customer||(t.Customer={});let C;C=t.CustomerType||(t.CustomerType={});let w;w=t.EmailMessage||(t.EmailMessage={});let R;R=t.Event||(t.Event={});let I;I=t.EventSeries||(t.EventSeries={});let D;D=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let g;g=t.IAM||(t.IAM={});let M;M=t.Identity||(t.Identity={});let U;U=t.IdentityProvider||(t.IdentityProvider={});let k;k=t.Issuer||(t.Issuer={});let K;K=t.Me||(t.Me={});let H;H=t.Member||(t.Member={});let N;N=t.MemberProgram||(t.MemberProgram={});let $;$=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let B;B=t.Message||(t.Message={});let Y;Y=t.MovieTicketType||(t.MovieTicketType={});let Te;Te=t.Order||(t.Order={});let ae;ae=t.OwnershipInfo||(t.OwnershipInfo={});let se;se=t.PaymentProduct||(t.PaymentProduct={});let ie;ie=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let ee;ee=t.PendingReservation||(t.PendingReservation={});let tt;tt=t.Permission||(t.Permission={});let ot;ot=t.Person||(t.Person={});let rt;rt=t.Place||(t.Place={});let De;(function(x){let Ar;Ar=x.HasPOS||(x.HasPOS={})})(De=t.place||(t.place={}));let a;a=t.PriceSpecification||(t.PriceSpecification={});let c;c=t.Product||(t.Product={});let l;l=t.ProductModel||(t.ProductModel={});let y;y=t.Project||(t.Project={});let v;v=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let T;T=t.Reservation||(t.Reservation={});let P;P=t.Offer||(t.Offer={});let A;A=t.OfferCatalog||(t.OfferCatalog={});let L;L=t.OfferCatalogItem||(t.OfferCatalogItem={});let V;V=t.OfferItemCondition||(t.OfferItemCondition={});let Z;Z=t.Seller||(t.Seller={});let ue;ue=t.SellerMakesOffer||(t.SellerMakesOffer={});let Pe;Pe=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let Ee;Ee=t.Task||(t.Task={});let It;It=t.Ticket||(t.Ticket={});let ye;ye=t.AssetTransaction||(t.AssetTransaction={});let Ae;(function(x){let Ar;Ar=x.Pay||(x.Pay={});let Pn;Pn=x.Reserve||(x.Reserve={})})(Ae=t.assetTransaction||(t.assetTransaction={}));let at;at=t.Token||(t.Token={});let Pr;(function(x){let Ar;Ar=x.PlaceOrder||(x.PlaceOrder={});let Pn;Pn=x.ReturnOrder||(x.ReturnOrder={})})(Pr=t.transaction||(t.transaction={}));let nw;nw=t.TransactionNumber||(t.TransactionNumber={});let sw;sw=t.UserPool||(t.UserPool={});let iw;iw=t.WebSite||(t.WebSite={})})(m||(Ke.service=m={}));var df=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return m.AccountingReport.svc===void 0&&(m.AccountingReport.svc=(await Promise.resolve().then(()=>F(Jg()))).AccountingReportService),new m.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return m.AccountTitle.svc===void 0&&(m.AccountTitle.svc=(await Promise.resolve().then(()=>F(Xg()))).AccountTitleService),new m.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return m.Action.svc===void 0&&(m.Action.svc=(await Promise.resolve().then(()=>F(eb()))).ActionService),new m.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return m.AdditionalProperty.svc===void 0&&(m.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(tb()))).AdditionalPropertyService),new m.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdvanceBookingRequirementInstance(e){return m.AdvanceBookingRequirement.svc===void 0&&(m.AdvanceBookingRequirement.svc=(await Promise.resolve().then(()=>F(rb()))).AdvanceBookingRequirementService),new m.AdvanceBookingRequirement.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return m.AggregateOffer.svc===void 0&&(m.AggregateOffer.svc=(await Promise.resolve().then(()=>F(sb()))).AggregateOfferService),new m.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return m.AggregateReservation.svc===void 0&&(m.AggregateReservation.svc=(await Promise.resolve().then(()=>F(ib()))).AggregateReservationService),new m.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return m.Aggregation.svc===void 0&&(m.Aggregation.svc=(await Promise.resolve().then(()=>F(ob()))).AggregationService),new m.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return m.Authorization.svc===void 0&&(m.Authorization.svc=(await Promise.resolve().then(()=>F(ab()))).AuthorizationService),new m.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return m.CreativeWork.svc===void 0&&(m.CreativeWork.svc=(await Promise.resolve().then(()=>F(cb()))).CreativeWorkService),new m.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return m.CategoryCode.svc===void 0&&(m.CategoryCode.svc=(await Promise.resolve().then(()=>F(ub()))).CategoryCodeService),new m.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return m.Customer.svc===void 0&&(m.Customer.svc=(await Promise.resolve().then(()=>F(db()))).CustomerService),new m.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return m.CustomerType.svc===void 0&&(m.CustomerType.svc=(await Promise.resolve().then(()=>F(lb()))).CustomerTypeService),new m.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return m.EmailMessage.svc===void 0&&(m.EmailMessage.svc=(await Promise.resolve().then(()=>F(fb()))).EmailMessageService),new m.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return m.Event.svc===void 0&&(m.Event.svc=(await Promise.resolve().then(()=>F(yb()))).EventService),new m.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return m.EventSeries.svc===void 0&&(m.EventSeries.svc=(await Promise.resolve().then(()=>F(Sb()))).EventSeriesService),new m.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return m.HasMerchantReturnPolicy.svc===void 0&&(m.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(mb()))).HasMerchantReturnPolicyService),new m.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return m.IAM.svc===void 0&&(m.IAM.svc=(await Promise.resolve().then(()=>F(_b()))).IAMService),new m.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return m.Identity.svc===void 0&&(m.Identity.svc=(await Promise.resolve().then(()=>F(Ob()))).IdentityService),new m.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return m.IdentityProvider.svc===void 0&&(m.IdentityProvider.svc=(await Promise.resolve().then(()=>F(Tb()))).IdentityProviderService),new m.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return m.Issuer.svc===void 0&&(m.Issuer.svc=(await Promise.resolve().then(()=>F(Eb()))).IssuerService),new m.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return m.Me.svc===void 0&&(m.Me.svc=(await Promise.resolve().then(()=>F(gb()))).MeService),new m.Me.svc({...this.options})}async createMemberInstance(e){return m.Member.svc===void 0&&(m.Member.svc=(await Promise.resolve().then(()=>F(bb()))).MemberService),new m.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return m.MemberProgram.svc===void 0&&(m.MemberProgram.svc=(await Promise.resolve().then(()=>F(Pb()))).MemberProgramService),new m.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return m.MerchantReturnPolicy.svc===void 0&&(m.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(Ab()))).MerchantReturnPolicyService),new m.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return m.Message.svc===void 0&&(m.Message.svc=(await Promise.resolve().then(()=>F(wb()))).MessageService),new m.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return m.MovieTicketType.svc===void 0&&(m.MovieTicketType.svc=(await Promise.resolve().then(()=>F(Rb()))).MovieTicketTypeService),new m.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return m.Order.svc===void 0&&(m.Order.svc=(await Promise.resolve().then(()=>F(Mb()))).OrderService),new m.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return m.OwnershipInfo.svc===void 0&&(m.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(Ib()))).OwnershipInfoService),new m.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return m.PaymentProduct.svc===void 0&&(m.PaymentProduct.svc=(await Promise.resolve().then(()=>F(qb()))).PaymentProductService),new m.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return m.PaymentServiceChannel.svc===void 0&&(m.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(Nb()))).PaymentServiceChannelService),new m.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return m.PendingReservation.svc===void 0&&(m.PendingReservation.svc=(await Promise.resolve().then(()=>F(xb()))).PendingReservationService),new m.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return m.Permission.svc===void 0&&(m.Permission.svc=(await Promise.resolve().then(()=>F(Db()))).PermissionService),new m.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return m.Person.svc===void 0&&(m.Person.svc=(await Promise.resolve().then(()=>F(Fb()))).PersonService),new m.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return m.Place.svc===void 0&&(m.Place.svc=(await Promise.resolve().then(()=>F(Lb()))).PlaceService),new m.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return m.place.HasPOS.svc===void 0&&(m.place.HasPOS.svc=(await Promise.resolve().then(()=>F(kb()))).HasPOSService),new m.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return m.PriceSpecification.svc===void 0&&(m.PriceSpecification.svc=(await Promise.resolve().then(()=>F(Bb()))).PriceSpecificationService),new m.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return m.Product.svc===void 0&&(m.Product.svc=(await Promise.resolve().then(()=>F($b()))).ProductService),new m.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductModelInstance(e){return m.ProductModel.svc===void 0&&(m.ProductModel.svc=(await Promise.resolve().then(()=>F(Gb()))).ProductModelService),new m.ProductModel.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return m.Project.svc===void 0&&(m.Project.svc=(await Promise.resolve().then(()=>F(Kb()))).ProjectService),new m.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return m.ProjectMakesOffer.svc===void 0&&(m.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Hb()))).ProjectMakesOfferService),new m.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return m.Reservation.svc===void 0&&(m.Reservation.svc=(await Promise.resolve().then(()=>F(Wb()))).ReservationService),new m.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return m.Offer.svc===void 0&&(m.Offer.svc=(await Promise.resolve().then(()=>F(zb()))).OfferService),new m.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return m.OfferCatalog.svc===void 0&&(m.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Vb()))).OfferCatalogService),new m.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return m.OfferCatalogItem.svc===void 0&&(m.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(Yb()))).OfferCatalogItemService),new m.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return m.OfferItemCondition.svc===void 0&&(m.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Qb()))).OfferItemConditionService),new m.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return m.Seller.svc===void 0&&(m.Seller.svc=(await Promise.resolve().then(()=>F(Zb()))).SellerService),new m.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return m.SellerMakesOffer.svc===void 0&&(m.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(Jb()))).SellerMakesOfferService),new m.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return m.SellerReturnPolicy.svc===void 0&&(m.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Xb()))).SellerReturnPolicyService),new m.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return m.Task.svc===void 0&&(m.Task.svc=(await Promise.resolve().then(()=>F(eP()))).TaskService),new m.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return m.Ticket.svc===void 0&&(m.Ticket.svc=(await Promise.resolve().then(()=>F(tP()))).TicketService),new m.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return m.AssetTransaction.svc===void 0&&(m.AssetTransaction.svc=(await Promise.resolve().then(()=>F(rP()))).AssetTransactionService),new m.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return m.assetTransaction.Pay.svc===void 0&&(m.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>F(nP()))).PayAssetTransactionService),new m.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createReserveAssetTransactionInstance(e){return m.assetTransaction.Reserve.svc===void 0&&(m.assetTransaction.Reserve.svc=(await Promise.resolve().then(()=>F(sP()))).ReserveAssetTransactionService),new m.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return m.Token.svc===void 0&&(m.Token.svc=(await Promise.resolve().then(()=>F(iP()))).TokenService),new m.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return m.transaction.PlaceOrder.svc===void 0&&(m.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>F(aP()))).PlaceOrderTransactionService),new m.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createReturnOrderTransactionInstance(e){return m.transaction.ReturnOrder.svc===void 0&&(m.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>F(cP()))).ReturnOrderTransactionService),new m.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return m.TransactionNumber.svc===void 0&&(m.TransactionNumber.svc=(await Promise.resolve().then(()=>F(uP()))).TransactionNumberService),new m.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return m.UserPool.svc===void 0&&(m.UserPool.svc=(await Promise.resolve().then(()=>F(dP()))).UserPoolService),new m.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return m.WebSite.svc===void 0&&(m.WebSite.svc=(await Promise.resolve().then(()=>F(lP()))).WebSiteService),new m.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Ke.ChevreConsole=df});var hP=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.PaymentService=void 0;var me=b(),ve=Q(),FU=E(),LU=["awashimakisen-production","awashimakisen-test"],lf=class extends FU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async h=>h.json())}async authorizeCreditCard(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,issuedThrough:u,paymentMethod:d,creditCard:f,method:p,paymentMethodId:h,name:S,additionalProperty:_,ticketToken:C,eventIdsAsOrderedItem:w}=r,{acceptedPaymentMethodOfferIds:R}=s;if((typeof h!="string"||h==="")&&(typeof C!="string"||C===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!LU.includes(this.options.project.id)&&(!Array.isArray(w)||w.length===0))throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{amount:i,issuedThrough:u,paymentMethod:d,...f!=null?{creditCard:f}:void 0,...typeof S=="string"?{name:S}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof h=="string"?{paymentMethodId:h}:void 0,...typeof C=="string"?{ticketToken:C}:void 0,...Array.isArray(_)?{additionalProperty:_}:void 0,...Array.isArray(w)?{eventIdsAsOrderedItem:w}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:R}},qs:{async:!0,purpose:{id:n.id}}}).then(async D=>D.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:u,paymentMethod:d,movieTickets:f,name:p,additionalProperty:h,ticketToken:S}=n,{acceptedPaymentMethodOfferIds:_}=i,{checkedActionId:C}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{issuedThrough:u,paymentMethod:d,...Array.isArray(f)?{movieTickets:f}:void 0,...typeof p=="string"?{name:p}:void 0,...typeof S=="string"?{ticketToken:S}:void 0,...Array.isArray(h)?{additionalProperty:h}:void 0},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:_}},qs:{checkedActionId:C,async:!0,purpose:{id:s.id}}}).then(async w=>w.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,creditCard:u,issuedThrough:d,paymentMethod:f,method:p,ticketToken:h,eventIdsAsOrderedItem:S}=r,{acceptedPaymentMethodOfferIds:_}=s;if(typeof h!="string"||h==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(S)||S.length===0)throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:{amount:i,issuedThrough:d,paymentMethod:f,...u!=null?{creditCard:u}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof h=="string"?{ticketToken:h}:void 0,...Array.isArray(S)?{eventIdsAsOrderedItem:S}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:_}},qs:{async:!0,purpose:{id:n.id}}}).then(async C=>C.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:s}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:s},qs:{purpose:{id:s.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:s===!0}}).then(async i=>i.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async u=>u.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};_a.PaymentService=lf});var yP=o(He=>{"use strict";var kU=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),BU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$U=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&kU(r,e,n[s]);return BU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevrePay=He.service=void 0;var hn;(function(t){let e;e=t.Payment||(t.Payment={})})(hn||(He.service=hn={}));var ff=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return hn.Payment.svc===void 0&&(hn.Payment.svc=(await Promise.resolve().then(()=>$U(hP()))).PaymentService),new hn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevrePay=ff});var vP=o(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.OfferService=void 0;var hf=b(),pP=Q(),GU=E(),yf=class extends GU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${pP.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[hf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async u=>u.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${pP.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[hf.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...s}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[hf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};Oa.OfferService=yf});var SP=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.PlaceOrderTransactionService=void 0;var vr=b(),KU=Q(),HU=E(),pf=class extends HU.Service{typeOf=KU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[vr.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[vr.status.NO_CONTENT],body:e.agent})}async updateObject(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/object`,method:"PATCH",expectedStatusCodes:[vr.status.NO_CONTENT],body:e.object})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[vr.status.NO_CONTENT],body:n})}async confirm(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",expectedStatusCodes:[vr.status.OK],body:n}).then(async s=>s.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[vr.status.NO_CONTENT]})}};Ta.PlaceOrderTransactionService=pf});var mP=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.ReturnOrderTransactionService=void 0;var yn=b(),WU=Q(),zU=E(),vf=class extends zU.Service{typeOf=WU.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[yn.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[yn.status.NO_CONTENT,yn.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[yn.status.NO_CONTENT],body:e.agent})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[yn.status.NO_CONTENT]})}};Ea.ReturnOrderTransactionService=vf});var _P=o(We=>{"use strict";var VU=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),YU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Sf=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&VU(r,e,n[s]);return YU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxn=We.service=void 0;var st;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(st||(We.service=st={}));var mf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>Sf(vP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>Sf(SP()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>Sf(mP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=mf});var OP=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.OfferService=void 0;var pn=b(),vn=Q(),QU=E(),_f=class extends QU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${vn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[pn.status.ACCEPTED],body:{object:r,purpose:n,...typeof s?.id=="string"?{potentialActions:s}:void 0},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${vn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[pn.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${vn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[pn.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${vn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[pn.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:s}=e;return this.fetch({uri:`/offers/${vn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[pn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Ca.OfferService=_f});var TP=o(ze=>{"use strict";var ZU=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JU=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XU=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ZU(r,e,n[s]);return JU(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.ChevreTxc=ze.service=void 0;var Sn;(function(t){let e;e=t.Offer||(t.Offer={})})(Sn||(ze.service=Sn={}));var Of=class{options;constructor(e){this.options=e}async createOfferInstance(e){return Sn.Offer.svc===void 0&&(Sn.Offer.svc=(await Promise.resolve().then(()=>XU(OP()))).OfferService),new Sn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};ze.ChevreTxc=Of});var EP=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.CategoryCodeService=void 0;var ga=b(),eD=E(),Tf=class extends eD.Service{constructor(e){super({...e,retryableStatusCodes:[ga.status.BAD_GATEWAY,ga.status.FORBIDDEN,ga.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[ga.status.OK]}).then(async r=>({data:await r.json()}))}};ba.CategoryCodeService=Tf});var CP=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.EmailMessageService=void 0;var Pa=b(),tD=E(),Ef=class extends tD.Service{constructor(e){super({...e,retryableStatusCodes:[Pa.status.BAD_GATEWAY,Pa.status.FORBIDDEN,Pa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Pa.status.OK]}).then(async r=>({data:await r.json()}))}};Aa.EmailMessageService=Ef});var gP=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.EventService=void 0;var qe=b(),Sr=Q(),rD=E(),Cf=class extends rD.Service{constructor(e){super({...e,retryableStatusCodes:[qe.status.BAD_GATEWAY,qe.status.FORBIDDEN,qe.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==Sr.factory.eventType.ScreeningEvent)throw new Sr.factory.errors.Argument("typeOf",`typeOf must be ${Sr.factory.eventType.ScreeningEvent}`);return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[qe.status.OK]}).then(async r=>({data:await r.json()}))}async searchEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[qe.status.OK]}).then(async r=>r.json())}async projectMinimumFields(e){let{$projection:r,...n}=e;return this.fetch({uri:"/events",method:"GET",qs:{...n,$minimumProjection:!0},expectedStatusCodes:[qe.status.OK]}).then(async s=>s.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[qe.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![Sr.factory.eventType.ScreeningEvent].includes(n))throw new Sr.factory.errors.Argument("typeOf","invalid event type");let s=(await this.search({limit:1,page:1,typeOf:n,id:{$eq:String(r)}})).data.shift();if(s===void 0)throw new Sr.factory.errors.NotFound(n);return s}async findSeatOffersDeprecated(e,r){let{event:n,...s}=e,i=r?.useDefaultSection===!0;return this.fetch({uri:`/events/${encodeURIComponent(String(n.id))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[qe.status.OK]}).then(async u=>{let d=await u.json();return{data:d,...d.length>0?{sectionCode:d[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[qe.status.OK],qs:n}).then(async s=>s.json())}async searchTicketOffers4COA(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[qe.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[qe.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[qe.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[qe.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[qe.status.OK]}).then(async u=>u.json())}};wa.EventService=Cf});var PP=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.PlaceService=void 0;var mn=b(),bP=Q(),nD=E(),gf=class extends nD.Service{constructor(e){super({...e,retryableStatusCodes:[mn.status.BAD_GATEWAY,mn.status.FORBIDDEN,mn.status.UNAUTHORIZED]})}async searchMovieTheaters(e){return this.fetch({uri:`/places/${bP.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[mn.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRooms(e){return this.fetch({uri:`/places/${bP.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[mn.status.OK]}).then(async r=>({data:await r.json()}))}};Ra.PlaceService=gf});var AP=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.HasPOSService=void 0;var Ma=b(),sD=Q(),iD=E(),bf=class extends iD.Service{constructor(e){super({...e,retryableStatusCodes:[Ma.status.BAD_GATEWAY,Ma.status.FORBIDDEN,Ma.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${sD.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[Ma.status.OK]}).then(async r=>r.json())}};Ia.HasPOSService=bf});var wP=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.SellerService=void 0;var kt=b(),oD=E(),Pf=class extends oD.Service{constructor(e){super({...e,retryableStatusCodes:[kt.status.BAD_GATEWAY,kt.status.FORBIDDEN,kt.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[kt.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentServices(e){return this.fetch({uri:`/sellers/${e.id}/paymentServices`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[kt.status.OK]}).then(async r=>({data:await r.json()}))}};qa.SellerService=Pf});var MP=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.service=void 0;var aD=EP(),cD=CP(),uD=gP(),dD=PP(),lD=AP(),fD=wP(),RP;(function(t){class e extends aD.CategoryCodeService{}t.CategoryCode=e;class r extends cD.EmailMessageService{}t.EmailMessage=r;class n extends uD.EventService{}t.Event=n;class s extends dD.PlaceService{}t.Place=s;let i;(function(d){class f extends lD.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class u extends fD.SellerService{}t.Seller=u})(RP||(Na.service=RP={}))});var IP=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.CreativeWorkService=void 0;var hD=re(),yD=E(),Af=class extends yD.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,hD.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};ja.CreativeWorkService=Af});var qP=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.CustomerService=void 0;var pD=re(),vD=E(),wf=class extends vD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,pD.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};xa.CustomerService=wf});var NP=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.EventService=void 0;var mr=Q(),Ua=re(),SD=E(),Rf=class extends SD.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,Ua.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,Ua.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,Ua.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ua.loadChevreAdmin)({auth:r,endpoint:n});if(![mr.factory.eventStatusType.EventCancelled,mr.factory.eventStatusType.EventPostponed,mr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new mr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new mr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:mr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Da.EventService=Rf});var jP=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.EventOfferService=void 0;var mD=re(),_D=E(),Mf=class extends _D.Service{chevreAdminEventOffer;async createEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).createEventOfferByIdentifier(e,r)}async updateEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).updateEventOfferByIdentifier(e,r)}async findEventOffers(e){return(await this.getChevreAdminEventOffer()).findEventOffers(e)}async getChevreAdminEventOffer(){if(this.chevreAdminEventOffer===void 0){let{auth:e,endpoint:r,project:n,seller:s}=this.options,i=await(0,mD.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};Fa.EventOfferService=Mf});var xP=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.EventSeriesService=void 0;var OD=re(),TD=E(),If=class extends TD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,OD.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};La.EventSeriesService=If});var DP=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.MeService=void 0;var UP=re(),ED=E(),qf=class extends ED.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,UP.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,UP.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};ka.MeService=qf});var FP=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.NoteAboutOrderService=void 0;var Nf=re(),CD=E(),jf=class extends CD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Nf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Nf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:u,seller:d}=this.options;await(await(await(0,Nf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};Ba.NoteAboutOrderService=jf});var kP=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.OfferService=void 0;var _t=Q(),LP=re(),gD=E();function bD(t){let e={price:t.priceSpecification.price,referenceQuantity:t.priceSpecification.referenceQuantity,...typeof t.priceSpecification.accounting?.typeOf=="string"?{accounting:t.priceSpecification.accounting}:void 0};return{id:String(t.id),identifier:t.identifier,name:t.name,priceSpecification:e,...t.alternateName!==void 0&&t.alternateName!==null?{alternateName:t.alternateName}:void 0}}var xf=class extends gD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,LP.loadChevreAdmin)({auth:r,endpoint:n});if(e.limit!==void 0&&typeof e.limit!="number")throw new _t.factory.errors.Argument("limit","must be number");if(e.page!==void 0&&typeof e.page!="number")throw new _t.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new _t.factory.errors.Argument("id.$in","must be >=1 and <=10");let f=e.identifier?.$in;if(Array.isArray(f)&&(f.length>10||f.length<1))throw new _t.factory.errors.Argument("identifier.$in","must be >=1 and <=10");let p=await u.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),h={id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},...typeof e.limit=="number"?{limit:Math.min(e.limit,100)}:void 0,...typeof e.page=="number"?{page:Math.max(e.page,1)}:void 0};return(await p.search({...h,$projection:{id:1,identifier:1,alternateName:1,name:1,priceSpecification:1}})).map(bD)}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,LP.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let h=p?.typeOf;if(h!==_t.factory.product.ProductType.EventService&&h!==_t.factory.product.ProductType.Product)throw new _t.factory.errors.Argument("itemOffered.typeOf",`must be ${_t.factory.product.ProductType.EventService} or ${_t.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,r)}};$a.OfferService=xf});var BP=o(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.OfferCatalogService=void 0;var _n=Q(),PD=re(),AD=E(),Uf=class extends AD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,PD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let h=p?.typeOf;if(h!==_n.factory.product.ProductType.EventService&&h!==_n.factory.product.ProductType.Product)throw new _n.factory.errors.Argument("itemOffered.typeOf",`must be ${_n.factory.product.ProductType.EventService} or ${_n.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ga.OfferCatalogService=Uf});var GP=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.OfferCatalogItemService=void 0;var $P=re(),wD=E(),Df=class extends wD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,$P.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,$P.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ka.OfferCatalogItemService=Df});var HP=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.OrderService=void 0;var Ha=Q(),On=re(),RD=E(),KP=20,Ff=class extends RD.Service{async findByOrderNumber(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,On.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findByOrderNumber({orderNumber:String(e.orderNumber)},{})}async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,On.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Ha.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Ha.factory.errors.Argument("page","must be number");if(d<1||d>KP)throw new Ha.factory.errors.Argument("limit",`must be >=1 and <=${KP}`);if(f<1)throw new Ha.factory.errors.Argument("page","must be >=1");let p=await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),{data:h}=await p.search({...e,limit:d,page:f});return{data:h}}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,On.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;return(await(await(0,On.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).searchAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r)}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,On.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};Wa.OrderService=Ff});var WP=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.PaymentMethodService=void 0;var MD=re(),ID=E(),Lf=class extends ID.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,MD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};za.PaymentMethodService=Lf});var zP=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.ProductService=void 0;var Tn=Q(),qD=re(),ND=E(),kf=class extends ND.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,qD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==Tn.factory.product.ProductType.EventService&&f!==Tn.factory.product.ProductType.Product)throw new Tn.factory.errors.Argument("typeOf",`must be ${Tn.factory.product.ProductType.EventService} or ${Tn.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Va.ProductService=kf});var YP=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.ReservationService=void 0;var Rt=Q(),Ya=re(),jD=E(),VP=20,Bf=class extends jD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ya.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Rt.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Rt.factory.errors.Argument("page","must be number");if(d<1||d>VP)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${VP}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return await(await u.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).find({...e,limit:d,page:f,reservationStatus:{$in:[Rt.factory.reservationStatusType.ReservationCancelled,Rt.factory.reservationStatusType.ReservationConfirmed]},typeOf:Rt.factory.reservationType.EventReservation})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f}=this.options,p=await(0,Ya.loadChevreAdmin)({auth:i,endpoint:u}),h=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:h},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Ya.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;if(typeof i?.id!="string"||i.id.length===0)throw new Rt.factory.errors.ArgumentNull("seller.id");let u=await(0,Ya.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await u.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Qa.ReservationService=Bf});var QP=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.SellerService=void 0;var xD=re(),UD=E(),$f=class extends UD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,xD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Za.SellerService=$f});var ZP=o(Ve=>{"use strict";var DD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),FD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&DD(r,e,n[s]);return FD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var G;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.NoteAboutOrder||(t.NoteAboutOrder={});let f;f=t.Offer||(t.Offer={});let p;p=t.OfferCatalog||(t.OfferCatalog={});let h;h=t.OfferCatalogItem||(t.OfferCatalogItem={});let S;S=t.Order||(t.Order={});let _;_=t.PaymentMethod||(t.PaymentMethod={});let C;C=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Seller||(t.Seller={})})(G||(Ve.service=G={}));var xe=[],Gf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createCreativeWorkInstance(e){return G.CreativeWork.svc===void 0&&(G.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(IP()))).CreativeWorkService),new G.CreativeWork.svc({...this.options,...e,retryableStatusCodes:xe})}async createCustomerInstance(e){return G.Customer.svc===void 0&&(G.Customer.svc=(await Promise.resolve().then(()=>Ce(qP()))).CustomerService),new G.Customer.svc({...this.options,...e,retryableStatusCodes:xe})}async createEventInstance(e){return G.Event.svc===void 0&&(G.Event.svc=(await Promise.resolve().then(()=>Ce(NP()))).EventService),new G.Event.svc({...this.options,...e,retryableStatusCodes:xe})}async createEventOfferInstance(e){return G.EventOffer.svc===void 0&&(G.EventOffer.svc=(await Promise.resolve().then(()=>Ce(jP()))).EventOfferService),new G.EventOffer.svc({...this.options,...e,retryableStatusCodes:xe})}async createEventSeriesInstance(e){return G.EventSeries.svc===void 0&&(G.EventSeries.svc=(await Promise.resolve().then(()=>Ce(xP()))).EventSeriesService),new G.EventSeries.svc({...this.options,...e,retryableStatusCodes:xe})}async createMeInstance(){return G.Me.svc===void 0&&(G.Me.svc=(await Promise.resolve().then(()=>Ce(DP()))).MeService),new G.Me.svc({...this.options})}async createNoteInstance(e){return G.NoteAboutOrder.svc===void 0&&(G.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(FP()))).NoteAboutOrderService),new G.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:xe})}async createOfferInstance(e){return G.Offer.svc===void 0&&(G.Offer.svc=(await Promise.resolve().then(()=>Ce(kP()))).OfferService),new G.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return G.OfferCatalog.svc===void 0&&(G.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(BP()))).OfferCatalogService),new G.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:xe})}async createOfferCatalogItemInstance(e){return G.OfferCatalogItem.svc===void 0&&(G.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(GP()))).OfferCatalogItemService),new G.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:xe})}async createOrderInstance(e){return G.Order.svc===void 0&&(G.Order.svc=(await Promise.resolve().then(()=>Ce(HP()))).OrderService),new G.Order.svc({...this.options,...e,retryableStatusCodes:xe})}async createPaymentMethodInstance(e){return G.PaymentMethod.svc===void 0&&(G.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(WP()))).PaymentMethodService),new G.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:xe})}async createProductInstance(e){return G.Product.svc===void 0&&(G.Product.svc=(await Promise.resolve().then(()=>Ce(zP()))).ProductService),new G.Product.svc({...this.options,...e,retryableStatusCodes:xe})}async createReservationInstance(e){return G.Reservation.svc===void 0&&(G.Reservation.svc=(await Promise.resolve().then(()=>Ce(YP()))).ReservationService),new G.Reservation.svc({...this.options,...e,retryableStatusCodes:xe})}async createSellerInstance(e){return G.Seller.svc===void 0&&(G.Seller.svc=(await Promise.resolve().then(()=>Ce(QP()))).SellerService),new G.Seller.svc({...this.options,...e,retryableStatusCodes:xe})}};Ve.CloudAdmin=Gf});var JP=o(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.OrderService=void 0;var Bt=re(),LD=E(),Kf=class extends LD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:h,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:h,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:h,orderDateFrom:S,orderDateThrough:_,orderNumber:C}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByConfirmationNumber({confirmationNumber:p,...h!==void 0?{customer:h}:void 0,...S!==void 0?{orderDateFrom:S}:void 0,..._!==void 0?{orderDateThrough:_}:void 0,...typeof C=="string"?{orderNumber:C}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:h,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof h?.telephone=="string"?{customer:h}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:h,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:h,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:h}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:h,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:h,result:S}=e,_=await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:C}=await _.authorize({object:{customer:h.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:C}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e,{limit:h,page:S,confirmationNumber:_}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).searchAcceptedOffersByConfirmationNumber({confirmationNumber:_,orderNumber:p,...typeof h=="number"?{limit:h}:void 0,...typeof S=="number"?{page:S}:void 0})}};Ja.OrderService=Kf});var XP=o(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.DeliveryService=void 0;var kD=re(),BD=E(),Hf=class extends BD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,orderNumber:h}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:h})}};Xa.DeliveryService=Hf});var tA=o(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.ReservationService=void 0;var eA=re(),$D=E(),Wf=class extends $D.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,eA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p,instrument:h}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:h})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,eA.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:h,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:h,orderNumber:S},r)}};ec.ReservationService=Wf});var rA=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.TokenService=void 0;var GD=E(),zf=class extends GD.Service{};tc.TokenService=zf});var nA=o(Ye=>{"use strict";var KD=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),HD=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rc=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&KD(r,e,n[s]);return HD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudAsset=Ye.service=void 0;var nc=b(),Ne;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let s;s=t.Token||(t.Token={})})(Ne||(Ye.service=Ne={}));var sc=[nc.status.BAD_GATEWAY,nc.status.SERVICE_UNAVAILABLE,nc.status.FORBIDDEN,nc.status.UNAUTHORIZED],Vf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOrderInstance(e){return Ne.Order.svc===void 0&&(Ne.Order.svc=(await Promise.resolve().then(()=>rc(JP()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:sc})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>rc(XP()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:sc})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>rc(tA()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:sc})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>rc(rA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:sc})}};Ye.CloudAsset=Vf});var sA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.CreativeWorkService=void 0;var WD=b(),zD=E(),Yf=class extends zD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[WD.status.OK]}).then(async r=>r.json())}};ic.CreativeWorkService=Yf});var iA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PaymentProductService=void 0;var VD=b(),YD=E(),Qf=class extends YD.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[VD.status.OK]}).then(async i=>i.json())}};oc.PaymentProductService=Qf});var oA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.ProductService=void 0;var Zf=b(),QD=E(),Jf=class extends QD.Service{async search(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[Zf.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:s,seller:i}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[Zf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async u=>u.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[Zf.status.OK]}).then(async i=>i.json())}};ac.ProductService=Jf});var aA=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.EventOfferService=void 0;var ZD=b(),JD=E(),XD="/eventOffers",Xf=class extends JD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u}=e;return this.fetch({uri:XD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u},expectedStatusCodes:[ZD.status.OK]}).then(async d=>d.json())}};cc.EventOfferService=Xf});var uA=o(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.PlaceService=void 0;var cA=b(),eF=E(),eh=class extends eF.Service{async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[cA.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[cA.status.OK]}).then(async f=>f.json())}};uc.PlaceService=eh});var dA=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.SeatOfferService=void 0;var tF=b(),rF=E(),nF="/seatOffers",th=class extends rF.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:nF,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[tF.status.OK]}).then(async u=>u.json())}};dc.SeatOfferService=th});var lA=o(Qe=>{"use strict";var sF=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iF=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_r=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&sF(r,e,n[s]);return iF(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudSearch=Qe.service=void 0;var rh=b(),he;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.EventOffer||(t.EventOffer={});let n;n=t.PaymentProduct||(t.PaymentProduct={});let s;s=t.Place||(t.Place={});let i;i=t.Product||(t.Product={});let u;u=t.SeatOffer||(t.SeatOffer={})})(he||(Qe.service=he={}));var Or=[rh.status.BAD_GATEWAY,rh.status.FORBIDDEN,rh.status.UNAUTHORIZED],nh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>_r(sA()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Or})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>_r(iA()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:Or})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>_r(oA()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:Or})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>_r(aA()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:Or})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>_r(uA()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:Or})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>_r(dA()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Or})}};Qe.CloudSearch=nh});var yA=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PaymentService=void 0;var le=b(),ge=Q(),be=re(),oF=E(),fA=1e3,aF=5e3;async function hA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var sh=class extends oF.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:h,disableAutoRetry:S,retryableStatusCodes:_}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof h?.id=="string"?h.id:""},retryableStatusCodes:[...Array.isArray(_)?_:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:u});return w.authorizeCreditCard({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,{checkedActionId:u}=r,{auth:d,endpoint:f,project:p,seller:h,disableAutoRetry:S,retryableStatusCodes:_}=this.options,C=await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S}),{ticketToken:w}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await C.createPaymentInstance({project:p,seller:{id:typeof h?.id=="string"?h.id:""},retryableStatusCodes:[...Array.isArray(_)?_:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:w},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}},{checkedActionId:u})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:h,disableAutoRetry:S,retryableStatusCodes:_}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof h?.id=="string"?h.id:""},retryableStatusCodes:[...Array.isArray(_)?_:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:u});if(typeof R!="string"||R==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return w.publishCreditCardPaymentUrl({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),h=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),_=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},C=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(w=>({...w,typeOf:S})):[];if(C.length!==1)throw new ge.factory.errors.Argument("object.movieTickets","movieTickets length must be 1");return p.checkMovieTicketAsync({object:[{typeOf:ge.factory.service.paymentService.PaymentServiceType.MovieTicket,id:h,paymentMethod:{typeOf:S},movieTickets:C,seller:{id:String(e.object?.seller?.id),typeOf:ge.factory.organizationType.Corporation}}],purpose:_})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:h}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(h)?h:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:s.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:h}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(h)?h:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:h,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:h})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:h,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:h})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:s}=e,{giveUpInMS:i}=r;if(typeof i!="number"||i<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:h}=this.options,_=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:h})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),C=!1,w=setTimeout(()=>{C=!0},i),R,I=new ge.factory.errors.GatewayTimeout("given up");for(;R===void 0&&!C;){try{R=await _.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(w);break}catch(D){I=D}await hA(aF),console.log("retrying issueTicketThroughMovieTicket...",I?.name,C)}if(typeof R?.ticketToken=="string")return R;throw I}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,u=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>fA?r.intervalAfterIssueTicketInMS:fA,f=!1,p=n.paymentMethodId;if(i?(typeof u!="string"||u==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof u!="string"||u==="")&&(f=!0),!f)return{ticketToken:u};let h=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await hA(d),h}};lc.PaymentService=sh});var pA=o(Ze=>{"use strict";var cF=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uF=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dF=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&cF(r,e,n[s]);return uF(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudPay=Ze.service=void 0;var fc=b(),En;(function(t){let e;e=t.Payment||(t.Payment={})})(En||(Ze.service=En={}));var lF=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.status.UNAUTHORIZED],ih=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return En.Payment.svc===void 0&&(En.Payment.svc=(await Promise.resolve().then(()=>dF(yA()))).PaymentService),new En.Payment.svc({...this.options,...e,retryableStatusCodes:lF})}};Ze.CloudPay=ih});var _A=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.authorizeOfferAsync=hF;hc.voidAuthorizeOfferAsync=yF;var te=Q(),vA=2e4,SA=1e3;async function mA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function fF(t){let e;switch(t.reason){case te.factory.errorCode.Argument:e=new te.factory.errors.Argument("",t.message);break;case te.factory.errorCode.ArgumentNull:e=new te.factory.errors.ArgumentNull("",t.message);break;case te.factory.errorCode.Unauthorized:e=new te.factory.errors.Unauthorized(t.message);break;case te.factory.errorCode.Forbidden:e=new te.factory.errors.Forbidden(t.message);break;case te.factory.errorCode.NotFound:e=new te.factory.errors.NotFound("",t.message);break;case te.factory.errorCode.AlreadyInUse:e=new te.factory.errors.AlreadyInUse("",[],t.message);break;case te.factory.errorCode.RateLimitExceeded:e=new te.factory.errors.RateLimitExceeded(t.message);break;case te.factory.errorCode.GatewayTimeout:e=new te.factory.errors.GatewayTimeout(t.message);break;default:e=new te.factory.errors.Internal(t.message)}return e}function hF(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},vA);let s,i;for(;s===void 0&&i===void 0;){if(await mA(SA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(typeof u.id=="string"&&u.actionStatus===te.factory.actionStatusType.CompletedActionStatus){s={id:u.id};break}if(u.error!==void 0){i=fF(u.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});throw i}}function yF(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},vA);let s,i;for(;s===void 0&&i===void 0;){if(await mA(SA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(u.status===te.factory.taskStatus.Executed){s=u;break}}if(typeof s?.status!="string")throw i}}});var TA=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderCOAService=void 0;var OA=Q(),oh=re(),pF=E(),ah=_A(),ch=class extends pF.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:u}=r,d=typeof u?.identifier=="string"&&u.identifier.length>0?u.identifier:"",f=typeof u?.serviceOutput?.typeOf=="string"&&u.serviceOutput.typeOf.length>0?u.serviceOutput.typeOf:"",{auth:p,endpoint:h,project:S,seller:_,disableAutoRetry:C,retryableStatusCodes:w}=this.options,I=await(await(0,oh.loadChevreTxc)({auth:p,endpoint:h,disableAutoRetry:C})).createOfferInstance({project:S,seller:{id:typeof _?.id=="string"?_.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),D=await(0,ah.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:I});if(typeof D.result?.price!="number")throw new OA.factory.errors.Internal("result.price undefined");return{id:D.id,result:{price:D.result.price,responseBody:{tmpReserveNum:D.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,oh.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,ah.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:u,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:h,endpoint:S,project:_,seller:C,disableAutoRetry:w,retryableStatusCodes:R}=this.options,D=await(await(0,oh.loadChevreTxc)({auth:h,endpoint:S,disableAutoRetry:w})).createOfferInstance({project:_,seller:{id:typeof C?.id=="string"?C.id:""},retryableStatusCodes:[...Array.isArray(R)?R:[]]}),g=await(0,ah.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:u,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:D});if(typeof g.result?.price!="number")throw new OA.factory.errors.Internal("result.price undefined");return{id:g.id,result:{price:g.result.price,responseBody:{tmpReserveNum:g.result.responseBody.tmpReserveNum}}}}};yc.PlaceOrderCOAService=ch});var EA=o(Je=>{"use strict";var vF=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),SF=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mF=Je&&Je.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&vF(r,e,n[s]);return SF(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxc=Je.service=void 0;var pc=b(),Cn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(Cn||(Je.service=Cn={}));var _F=[pc.status.BAD_GATEWAY,pc.status.SERVICE_UNAVAILABLE,pc.status.FORBIDDEN,pc.status.UNAUTHORIZED],uh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return Cn.transaction.PlaceOrder.svc===void 0&&(Cn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>mF(TA()))).PlaceOrderCOAService),new Cn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:_F})}};Je.CloudTxc=uh});var CA=o(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.OfferService=void 0;var OF=Q(),dh=re(),TF=E(),lh=class extends TF.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,dh.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:u})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:h,audience:S,eventId:_,eventOfferId:C}=e;return p.issueEventServiceOfferTicket({ticketedOffer:h,audience:S,eventId:_,eventOfferId:C})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:OF.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:h}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(h)?h:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};vc.OfferService=lh});var gA=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.PlaceOrderTransactionService=void 0;var Tr=b(),Er=re(),EF=E(),fh=class extends EF.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,Er.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,Er.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,Er.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,Er.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Tr.status.CONFLICT,Tr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u}=e,{auth:d,endpoint:f,project:p,seller:h,disableAutoRetry:S,retryableStatusCodes:_}=this.options;return(await(await(0,Er.loadChevreTxn)({auth:d,endpoint:f,disableAutoRetry:S})).createPlaceOrderTransactionInstance({project:p,seller:{id:typeof h?.id=="string"?h.id:""},retryableStatusCodes:[...Array.isArray(_)?_:[],Tr.status.CONFLICT,Tr.status.TOO_MANY_REQUESTS]})).confirm({id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u,expectsMinimalResponse:!0})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,Er.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],Tr.status.CONFLICT,Tr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};Sc.PlaceOrderTransactionService=fh});var bA=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.ReturnOrderTransactionService=void 0;var hh=re(),CF=E(),yh=class extends CF.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,hh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:u,retryableStatusCodes:d}=this.options;await(await(await(0,hh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,hh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};mc.ReturnOrderTransactionService=yh});var PA=o(Xe=>{"use strict";var gF=Xe&&Xe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bF=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ph=Xe&&Xe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&gF(r,e,n[s]);return bF(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.CloudTxn=Xe.service=void 0;var _c=b(),it;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(it||(Xe.service=it={}));var vh=[_c.status.BAD_GATEWAY,_c.status.SERVICE_UNAVAILABLE,_c.status.FORBIDDEN,_c.status.UNAUTHORIZED],Sh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return it.Offer.svc===void 0&&(it.Offer.svc=(await Promise.resolve().then(()=>ph(CA()))).OfferService),new it.Offer.svc({...this.options,...e,retryableStatusCodes:vh})}async createPlaceOrderInstance(e){return it.transaction.PlaceOrder.svc===void 0&&(it.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>ph(gA()))).PlaceOrderTransactionService),new it.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:vh})}async createReturnOrderInstance(e){return it.transaction.ReturnOrder.svc===void 0&&(it.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>ph(bA()))).ReturnOrderTransactionService),new it.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:vh})}};Xe.CloudTxn=Sh});var AA=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.RuleService=void 0;var PF=b(),AF=E(),mh=class extends AF.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[PF.status.OK]}).then(async r=>r.json())}};Oc.RuleService=mh});var RA=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.RuleSetService=void 0;var wA=b(),wF=E(),_h=class extends wF.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[wA.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[wA.status.NO_CONTENT]})}};Tc.RuleSetService=_h});var IA=o(et=>{"use strict";var RF=et&&et.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),MF=et&&et.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MA=et&&et.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&RF(r,e,n[s]);return MF(r,e),r}})();Object.defineProperty(et,"__esModule",{value:!0});et.WaiterAdmin=et.service=void 0;var Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(et.service=Mt={}));var Oh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>MA(AA()))).RuleService),new Mt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Mt.RuleSet.svc===void 0&&(Mt.RuleSet.svc=(await Promise.resolve().then(()=>MA(RA()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};et.WaiterAdmin=Oh});var re=o(X=>{"use strict";var IF=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qF=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&IF(r,e,n[s]);return qF(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=xF;X.loadChevreAsset=UF;X.loadChevreAdmic=DF;X.loadChevreAdmin=FF;X.loadChevreConsole=LF;X.loadChevrePay=kF;X.loadChevreTxn=BF;X.loadChevreTxc=$F;X.loadService=GF;X.loadCloudAdmin=KF;X.loadCloudAsset=HF;X.loadCloudSearch=WF;X.loadCloudPay=zF;X.loadCloudTxc=VF;X.loadCloudTxn=YF;X.loadWaiterAdmin=QF;var NF=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return NF.factory}});var jF=Oe($s());X.transporters=jF;var Th;async function xF(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(og()))).Chevre),new Th(...t)}var Eh;async function UF(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(lg()))).ChevreAsset),new Eh(...t)}var Ch;async function DF(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(yg()))).ChevreAdmic),new Ch(...t)}var gh;async function FF(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(Zg()))).ChevreAdmin),new gh(...t)}var bh;async function LF(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(fP()))).ChevreConsole),new bh(...t)}var Ph;async function kF(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(yP()))).ChevrePay),new Ph(...t)}var Ah;async function BF(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(_P()))).ChevreTxn),new Ah(...t)}var wh;async function $F(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(TP()))).ChevreTxc),new wh(...t)}var Rh;async function GF(){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(MP()))).service),Rh}var Mh;async function KF(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(ZP()))).CloudAdmin),new Mh(...t)}var Ih;async function HF(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(nA()))).CloudAsset),new Ih(...t)}var qh;async function WF(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(lA()))).CloudSearch),new qh(...t)}var Nh;async function zF(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(pA()))).CloudPay),new Nh(...t)}var jh;async function VF(...t){return jh===void 0&&(jh=(await Promise.resolve().then(()=>Oe(EA()))).CloudTxc),new jh(...t)}var xh;async function YF(...t){return xh===void 0&&(xh=(await Promise.resolve().then(()=>Oe(PA()))).CloudTxn),new xh(...t)}var Uh;async function QF(...t){return Uh===void 0&&(Uh=(await Promise.resolve().then(()=>Oe(IA()))).WaiterAdmin),new Uh(...t)}});var qA=o($t=>{"use strict";var ZF=$t&&$t.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JF=$t&&$t.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ZF(e,t,r)};Object.defineProperty($t,"__esModule",{value:!0});JF(re(),$t)});var HA=o((N5,KA)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(t){var e={exports:{}};return t(e,e.exports),e.exports}var XF=Ht(function(t,e){t.exports=(function(){function r(y){return typeof y=="function"}var n=Array.isArray?Array.isArray:function(y){return Object.prototype.toString.call(y)==="[object Array]"},s=0,i=void 0,u=void 0,d=function(y,v){w[s]=y,w[s+1]=v,(s+=2)===2&&(u?u(R):U())},f=typeof window<"u"?window:void 0,p=f||{},h=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",_=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function C(){var y=setTimeout;return function(){return y(R,1)}}var w=new Array(1e3);function R(){for(var y=0;y<s;y+=2)(0,w[y])(w[y+1]),w[y]=void 0,w[y+1]=void 0;s=0}var I,D,g,M,U=void 0;function k(y,v){var T=this,P=new this.constructor(N);P[H]===void 0&&a(P);var A=T._state;if(A){var L=arguments[A-1];d(function(){return rt(A,P,L,T._result)})}else tt(T,P,y,v);return P}function K(y){if(y&&typeof y=="object"&&y.constructor===this)return y;var v=new this(N);return ae(v,y),v}U=S?function(){return process.nextTick(R)}:h?(D=0,g=new h(R),M=document.createTextNode(""),g.observe(M,{characterData:!0}),function(){M.data=D=++D%2}):_?((I=new MessageChannel).port1.onmessage=R,function(){return I.port2.postMessage(0)}):f===void 0?(function(){try{var y=Function("return this")().require("vertx");return(i=y.runOnLoop||y.runOnContext)!==void 0?function(){i(R)}:C()}catch{return C()}})():C();var H=Math.random().toString(36).substring(2);function N(){}var $=void 0,B=1,Y=2;function Te(y,v,T){v.constructor===y.constructor&&T===k&&v.constructor.resolve===K?(function(P,A){A._state===B?ie(P,A._result):A._state===Y?ee(P,A._result):tt(A,void 0,function(L){return ae(P,L)},function(L){return ee(P,L)})})(y,v):T===void 0?ie(y,v):r(T)?(function(P,A,L){d(function(V){var Z=!1,ue=(function(Pe,Ee,It,ye){try{Pe.call(Ee,function(Ae){Z||(Z=!0,A!==Ae?ae(V,Ae):ie(V,Ae))},function(Ae){Z||(Z=!0,ee(V,Ae))})}catch(Ae){return Ae}})(L,A);!Z&&ue&&(Z=!0,ee(V,ue))},P)})(y,v,T):ie(y,v)}function ae(y,v){if(y===v)ee(y,new TypeError("You cannot resolve a promise with itself"));else if(A=typeof(P=v),P===null||A!=="object"&&A!=="function")ie(y,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(y,L)}Te(y,v,T)}var P,A}function se(y){y._onerror&&y._onerror(y._result),ot(y)}function ie(y,v){y._state===$&&(y._result=v,y._state=B,y._subscribers.length!==0&&d(ot,y))}function ee(y,v){y._state===$&&(y._state=Y,y._result=v,d(se,y))}function tt(y,v,T,P){var A=y._subscribers,L=A.length;y._onerror=null,A[L]=v,A[L+B]=T,A[L+Y]=P,L===0&&y._state&&d(ot,y)}function ot(y){var v=y._subscribers,T=y._state;if(v.length!==0){for(var P=void 0,A=void 0,L=y._result,V=0;V<v.length;V+=3)A=v[V+T],(P=v[V])?rt(T,P,A,L):A(L);y._subscribers.length=0}}function rt(y,v,T,P){var A=r(T),L=void 0,V=void 0,Z=!0;if(A){try{L=T(P)}catch(ue){Z=!1,V=ue}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=P;v._state!==$||(A&&Z?ae(v,L):Z===!1?ee(v,V):y===B?ie(v,L):y===Y&&ee(v,L))}var De=0;function a(y){y[H]=De++,y._state=void 0,y._result=void 0,y._subscribers=[]}var c=(function(){function y(v,T){this._instanceConstructor=v,this.promise=new v(N),this.promise[H]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return y.prototype._enumerate=function(v){for(var T=0;this._state===$&&T<v.length;T++)this._eachEntry(v[T],T)},y.prototype._eachEntry=function(v,T){var P=this._instanceConstructor,A=P.resolve;if(A===K){var L=void 0,V=void 0,Z=!1;try{L=v.then}catch(Pe){Z=!0,V=Pe}if(L===k&&v._state!==$)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(P===l){var ue=new P(N);Z?ee(ue,V):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new P(function(Pe){return Pe(v)}),T)}else this._willSettleAt(A(v),T)},y.prototype._settledAt=function(v,T,P){var A=this.promise;A._state===$&&(this._remaining--,v===Y?ee(A,P):this._result[T]=P),this._remaining===0&&ie(A,this._result)},y.prototype._willSettleAt=function(v,T){var P=this;tt(v,void 0,function(A){return P._settledAt(B,T,A)},function(A){return P._settledAt(Y,T,A)})},y})(),l=(function(){function y(v){this[H]=De++,this._result=this._state=void 0,this._subscribers=[],N!==v&&(typeof v!="function"&&(function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof y?(function(T,P){try{P(function(A){ae(T,A)},function(A){ee(T,A)})}catch(A){ee(T,A)}})(this,v):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return y.prototype.catch=function(v){return this.then(null,v)},y.prototype.finally=function(v){var T=this,P=T.constructor;return r(v)?T.then(function(A){return P.resolve(v()).then(function(){return A})},function(A){return P.resolve(v()).then(function(){throw A})}):T.then(v,v)},y})();return l.prototype.then=k,l.all=function(y){return new c(this,y).promise},l.race=function(y){var v=this;return n(y)?new v(function(T,P){for(var A=y.length,L=0;L<A;L++)v.resolve(y[L]).then(T,P)}):new v(function(T,P){return P(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(y){var v=new this(N);return ee(v,y),v},l._setScheduler=function(y){u=y},l._setAsap=function(y){d=y},l._asap=d,l.polyfill=function(){var y=void 0;if(Kt!==void 0)y=Kt;else if(typeof self<"u")y=self;else try{y=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=y.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}y.Promise=l},l.Promise=l,l})()}),eL={__proto__:null,default:{}},Bh=Ht(function(t,e){var r;t.exports=(r=r||(function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&Kt!==void 0&&Kt.crypto&&(i=Kt.crypto),!i)try{i=eL}catch{}var u=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function g(){}return function(M){var U;return g.prototype=M,U=new g,g.prototype=null,U}})(),f={},p=f.lib={},h=p.Base={extend:function(g){var M=d(this);return g&&M.mixIn(g),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var M in g)g.hasOwnProperty(M)&&(this[M]=g[M]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=h.extend({init:function(g,M){g=this.words=g||[],this.sigBytes=M??4*g.length},toString:function(g){return(g||C).stringify(this)},concat:function(g){var M=this.words,U=g.words,k=this.sigBytes,K=g.sigBytes;if(this.clamp(),k%4)for(var H=0;H<K;H++)M[k+H>>>2]|=(U[H>>>2]>>>24-H%4*8&255)<<24-(k+H)%4*8;else for(var N=0;N<K;N+=4)M[k+N>>>2]=U[N>>>2];return this.sigBytes+=K,this},clamp:function(){var g=this.words,M=this.sigBytes;g[M>>>2]&=4294967295<<32-M%4*8,g.length=n.ceil(M/4)},clone:function(){var g=h.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var M=[],U=0;U<g;U+=4)M.push(u());return new S.init(M,g)}}),_=f.enc={},C=_.Hex={stringify:function(g){for(var M=g.words,U=g.sigBytes,k=[],K=0;K<U;K++){var H=M[K>>>2]>>>24-K%4*8&255;k.push((H>>>4).toString(16)),k.push((15&H).toString(16))}return k.join("")},parse:function(g){for(var M=g.length,U=[],k=0;k<M;k+=2)U[k>>>3]|=parseInt(g.substr(k,2),16)<<24-k%8*4;return new S.init(U,M/2)}},w=_.Latin1={stringify:function(g){for(var M=g.words,U=g.sigBytes,k=[],K=0;K<U;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(g){for(var M=g.length,U=[],k=0;k<M;k++)U[k>>>2]|=(255&g.charCodeAt(k))<<24-k%4*8;return new S.init(U,M)}},R=_.Utf8={stringify:function(g){try{return decodeURIComponent(escape(w.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return w.parse(unescape(encodeURIComponent(g)))}},I=p.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=R.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var M,U=this._data,k=U.words,K=U.sigBytes,H=this.blockSize,N=K/(4*H),$=(N=g?n.ceil(N):n.max((0|N)-this._minBufferSize,0))*H,B=n.min(4*$,K);if($){for(var Y=0;Y<$;Y+=H)this._doProcessBlock(k,Y);M=k.splice(0,$),U.sigBytes-=B}return new S.init(M,B)},clone:function(){var g=h.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});p.Hasher=I.extend({cfg:h.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){I.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){return g&&this._append(g),this._doFinalize()},blockSize:16,_createHelper:function(g){return function(M,U){return new g.init(U).finalize(M)}},_createHmacHelper:function(g){return function(M,U){return new D.HMAC.init(g,U).finalize(M)}}});var D=f.algo={};return f})(Math),r)}),FA=Ht(function(t,e){var r;t.exports=(r=Bh,(function(n){var s=r,i=s.lib,u=i.WordArray,d=i.Hasher,f=s.algo,p=[],h=[];(function(){function C(D){for(var g=n.sqrt(D),M=2;M<=g;M++)if(!(D%M))return!1;return!0}function w(D){return 4294967296*(D-(0|D))|0}for(var R=2,I=0;I<64;)C(R)&&(I<8&&(p[I]=w(n.pow(R,.5))),h[I]=w(n.pow(R,1/3)),I++),R++})();var S=[],_=f.SHA256=d.extend({_doReset:function(){this._hash=new u.init(p.slice(0))},_doProcessBlock:function(C,w){for(var R=this._hash.words,I=R[0],D=R[1],g=R[2],M=R[3],U=R[4],k=R[5],K=R[6],H=R[7],N=0;N<64;N++){if(N<16)S[N]=0|C[w+N];else{var $=S[N-15],B=S[N-2];S[N]=(($<<25|$>>>7)^($<<14|$>>>18)^$>>>3)+S[N-7]+((B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10)+S[N-16]}var Y=I&D^I&g^D&g,Te=H+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&k^~U&K)+h[N]+S[N];H=K,K=k,k=U,U=M+Te|0,M=g,g=D,D=I,I=Te+(((I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22))+Y)|0}R[0]=R[0]+I|0,R[1]=R[1]+D|0,R[2]=R[2]+g|0,R[3]=R[3]+M|0,R[4]=R[4]+U|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+H|0},_doFinalize:function(){var C=this._data,w=C.words,R=8*this._nDataBytes,I=8*C.sigBytes;return w[I>>>5]|=128<<24-I%32,w[14+(I+64>>>9<<4)]=n.floor(R/4294967296),w[15+(I+64>>>9<<4)]=R,C.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var C=d.clone.call(this);return C._hash=this._hash.clone(),C}});s.SHA256=d._createHelper(_),s.HmacSHA256=d._createHmacHelper(_)})(Math),r.SHA256)}),tL=Ht(function(t,e){var r,n;t.exports=(n=(r=Bh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,u=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<u;p+=3)for(var h=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<u;S++)f.push(d.charAt(h>>>6*(3-S)&63));var _=d.charAt(64);if(_)for(;f.length%4;)f.push(_);return f.join("")},parse:function(s){var i=s.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var h=s.indexOf(p);h!==-1&&(i=h)}return(function(S,_,C){for(var w=[],R=0,I=0;I<_;I++)if(I%4){var D=C[S.charCodeAt(I-1)]<<I%4*2,g=C[S.charCodeAt(I)]>>>6-I%4*2;w[R>>>2]|=(D|g)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),NA=Ht(function(t,e){t.exports=Bh.enc.Hex}),LA=Ht(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,y,v,T){for(var P=32767&c,A=c>>15;--T>=0;){var L=32767&this[a],V=this[a++]>>15,Z=A*L+V*P;v=((L=P*L+((32767&Z)<<15)+l[y]+(1073741823&v))>>>30)+(Z>>>15)+A*V+(v>>>30),l[y++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,c,l,y,v,T){for(;--T>=0;){var P=c*this[a++]+l[y]+v;v=Math.floor(P/67108864),l[y++]=67108863&P}return v},r=26):(n.prototype.am=function(a,c,l,y,v,T){for(var P=16383&c,A=c>>14;--T>=0;){var L=16383&this[a],V=this[a++]>>14,Z=A*L+V*P;v=((L=P*L+((16383&Z)<<14)+l[y]+v)>>28)+(Z>>14)+A*V,l[y++]=268435455&L}return v},r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52;var u,d,f=new Array;for(u=48,d=0;d<=9;++d)f[u++]=d;for(u=97,d=10;d<36;++d)f[u++]=d;for(u=65,d=10;d<36;++d)f[u++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function h(a,c){var l=f[a.charCodeAt(c)];return l??-1}function S(a){var c=s();return c.fromInt(a),c}function _(a){var c,l=1;return(c=a>>>16)!=0&&(a=c,l+=16),(c=a>>8)!=0&&(a=c,l+=8),(c=a>>4)!=0&&(a=c,l+=4),(c=a>>2)!=0&&(a=c,l+=2),(c=a>>1)!=0&&(a=c,l+=1),l}function C(a){this.m=a}function w(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function R(a,c){return a&c}function I(a,c){return a|c}function D(a,c){return a^c}function g(a,c){return a&~c}function M(a){if(a==0)return-1;var c=0;return(65535&a)==0&&(a>>=16,c+=16),(255&a)==0&&(a>>=8,c+=8),(15&a)==0&&(a>>=4,c+=4),(3&a)==0&&(a>>=2,c+=2),(1&a)==0&&++c,c}function U(a){for(var c=0;a!=0;)a&=a-1,++c;return c}function k(){}function K(a){return a}function H(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}C.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},C.prototype.revert=function(a){return a},C.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},C.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},C.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},w.prototype.convert=function(a){var c=s();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),a.s<0&&c.compareTo(n.ZERO)>0&&this.m.subTo(c,c),c},w.prototype.revert=function(a){var c=s();return a.copyTo(c),this.reduce(c),c},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var c=0;c<this.m.t;++c){var l=32767&a[c],y=l*this.mpl+((l*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=c+this.m.t]+=this.m.am(0,y,a,c,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},w.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},n.prototype.copyTo=function(a){for(var c=this.t-1;c>=0;--c)a[c]=this[c];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,c){var l;if(c==16)l=4;else if(c==8)l=3;else if(c==256)l=8;else if(c==2)l=1;else if(c==32)l=5;else{if(c!=4)return void this.fromRadix(a,c);l=2}this.t=0,this.s=0;for(var y=a.length,v=!1,T=0;--y>=0;){var P=l==8?255&a[y]:h(a,y);P<0?a.charAt(y)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=P:T+l>this.DB?(this[this.t-1]|=(P&(1<<this.DB-T)-1)<<T,this[this.t++]=P>>this.DB-T):this[this.t-1]|=P<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,y=a%this.DB,v=this.DB-y,T=(1<<v)-1,P=Math.floor(a/this.DB),A=this.s<<y&this.DM;for(l=this.t-1;l>=0;--l)c[l+P+1]=this[l]>>v|A,A=(this[l]&T)<<y;for(l=P-1;l>=0;--l)c[l]=0;c[P]=A,c.t=this.t+P+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var y=a%this.DB,v=this.DB-y,T=(1<<y)-1;c[0]=this[l]>>y;for(var P=l+1;P<this.t;++P)c[P-l-1]|=(this[P]&T)<<v,c[P-l]=this[P]>>y;y>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,y=0,v=Math.min(a.t,this.t);l<v;)y+=this[l]-a[l],c[l++]=y&this.DM,y>>=this.DB;if(a.t<this.t){for(y-=a.s;l<this.t;)y+=this[l],c[l++]=y&this.DM,y>>=this.DB;y+=this.s}else{for(y+=this.s;l<a.t;)y-=a[l],c[l++]=y&this.DM,y>>=this.DB;y-=a.s}c.s=y<0?-1:0,y<-1?c[l++]=this.DV+y:y>0&&(c[l++]=y),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),y=a.abs(),v=l.t;for(c.t=v+y.t;--v>=0;)c[v]=0;for(v=0;v<y.t;++v)c[v+l.t]=l.am(0,y[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var y=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,y,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var y=a.abs();if(!(y.t<=0)){var v=this.abs();if(v.t<y.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),P=this.s,A=a.s,L=this.DB-_(y[y.t-1]);L>0?(y.lShiftTo(L,T),v.lShiftTo(L,l)):(y.copyTo(T),v.copyTo(l));var V=T.t,Z=T[V-1];if(Z!=0){var ue=Z*(1<<this.F1)+(V>1?T[V-2]>>this.F2:0),Pe=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Ae=ye-V,at=c??s();for(T.dlShiftTo(Ae,at),l.compareTo(at)>=0&&(l[l.t++]=1,l.subTo(at,l)),n.ONE.dlShiftTo(V,at),at.subTo(T,T);T.t<V;)T[T.t++]=0;for(;--Ae>=0;){var Pr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Pe+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,Pr,l,Ae,0,V))<Pr)for(T.dlShiftTo(Ae,at),l.subTo(at,l);l[ye]<--Pr;)l.subTo(at,l)}c!=null&&(l.drShiftTo(V,c),P!=A&&n.ZERO.subTo(c,c)),l.t=V,l.clamp(),L>0&&l.rShiftTo(L,l),P<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var c=3&a;return(c=(c=(c=(c=c*(2-(15&a)*c)&15)*(2-(255&a)*c)&255)*(2-((65535&a)*c&65535))&65535)*(2-a*c%this.DV)%this.DV)>0?this.DV-c:-c},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,c){if(a>4294967295||a<1)return n.ONE;var l=s(),y=s(),v=c.convert(this),T=_(a)-1;for(v.copyTo(l);--T>=0;)if(c.sqrTo(l,y),(a&1<<T)>0)c.mulTo(y,v,l);else{var P=l;l=y,y=P}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,y=(1<<c)-1,v=!1,T="",P=this.t,A=this.DB-P*this.DB%c;if(P-- >0)for(A<this.DB&&(l=this[P]>>A)>0&&(v=!0,T=p(l));P>=0;)A<c?(l=(this[P]&(1<<A)-1)<<c-A,l|=this[--P]>>(A+=this.DB-c)):(l=this[P]>>(A-=c)&y,A<=0&&(A+=this.DB,--P)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var c=s();return this.abs().divRemTo(a,null,c),this.s<0&&c.compareTo(n.ZERO)>0&&a.subTo(c,c),c},n.prototype.modPowInt=function(a,c){var l;return l=a<256||c.isEven()?new C(c):new w(c),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l)},k.prototype.sqrTo=function(a,c){a.squareTo(c)},H.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var c=s();return a.copyTo(c),this.reduce(c),c},H.prototype.revert=function(a){return a},H.prototype.reduce=function(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)},H.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},H.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)};var N,$,B,Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Te=(1<<26)/Y[Y.length-1];function ae(){var a;a=new Date().getTime(),$[B++]^=255&a,$[B++]^=a>>8&255,$[B++]^=a>>16&255,$[B++]^=a>>24&255,B>=De&&(B-=De)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var c=this.chunkSize(a),l=Math.pow(a,c),y=S(l),v=s(),T=s(),P="";for(this.divRemTo(y,v,T);v.signum()>0;)P=(l+T.intValue()).toString(a).substr(1)+P,v.divRemTo(y,v,T);return T.intValue().toString(a)+P},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),y=Math.pow(c,l),v=!1,T=0,P=0,A=0;A<a.length;++A){var L=h(a,A);L<0?a.charAt(A)=="-"&&this.signum()==0&&(v=!0):(P=c*P+L,++T>=l&&(this.dMultiply(y),this.dAddOffset(P,0),T=0,P=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(P,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var y=new Array,v=7&a;y.length=1+(a>>3),c.nextBytes(y),v>0?y[0]&=(1<<v)-1:y[0]=0,this.fromString(y,256)}},n.prototype.bitwiseTo=function(a,c,l){var y,v,T=Math.min(a.t,this.t);for(y=0;y<T;++y)l[y]=c(this[y],a[y]);if(a.t<this.t){for(v=a.s&this.DM,y=T;y<this.t;++y)l[y]=c(this[y],v);l.t=this.t}else{for(v=this.s&this.DM,y=T;y<a.t;++y)l[y]=c(v,a[y]);l.t=a.t}l.s=c(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,c){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,c,l),l},n.prototype.addTo=function(a,c){for(var l=0,y=0,v=Math.min(a.t,this.t);l<v;)y+=this[l]+a[l],c[l++]=y&this.DM,y>>=this.DB;if(a.t<this.t){for(y+=a.s;l<this.t;)y+=this[l],c[l++]=y&this.DM,y>>=this.DB;y+=this.s}else{for(y+=this.s;l<a.t;)y+=a[l],c[l++]=y&this.DM,y>>=this.DB;y+=a.s}c.s=y<0?-1:0,y>0?c[l++]=y:y<-1&&(c[l++]=this.DV+y),c.t=l,c.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,c){if(a!=0){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}},n.prototype.multiplyLowerTo=function(a,c,l){var y,v=Math.min(this.t+a.t,c);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(y=l.t-this.t;v<y;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(y=Math.min(a.t,c);v<y;++v)this.am(0,a[v],l,v,0,c-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,c,l){--c;var y=l.t=this.t+a.t-c;for(l.s=0;--y>=0;)l[y]=0;for(y=Math.max(c-this.t,0);y<a.t;++y)l[this.t+y-c]=this.am(c-y,a[y],l,0,0,this.t+y-c);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var c=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(c==0)l=this[0]%a;else for(var y=this.t-1;y>=0;--y)l=(c*l+this[y])%a;return l},n.prototype.millerRabin=function(a){var c=this.subtract(n.ONE),l=c.getLowestSetBit();if(l<=0)return!1;var y=c.shiftRight(l);(a=a+1>>1)>Y.length&&(a=Y.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Y[Math.floor(Math.random()*Y.length)]);var P=v.modPow(y,this);if(P.compareTo(n.ONE)!=0&&P.compareTo(c)!=0){for(var A=1;A++<l&&P.compareTo(c)!=0;)if((P=P.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(P.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,y=this.DB-a*this.DB%8,v=0;if(a-- >0)for(y<this.DB&&(l=this[a]>>y)!=(this.s&this.DM)>>y&&(c[v++]=l|this.s<<this.DB-y);a>=0;)y<8?(l=(this[a]&(1<<y)-1)<<8-y,l|=this[--a]>>(y+=this.DB-8)):(l=this[a]>>(y-=8)&255,y<=0&&(y+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,I,c),c},n.prototype.xor=function(a){var c=s();return this.bitwiseTo(a,D,c),c},n.prototype.andNot=function(a){var c=s();return this.bitwiseTo(a,g,c),c},n.prototype.not=function(){for(var a=s(),c=0;c<this.t;++c)a[c]=this.DM&~this[c];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var c=s();return a<0?this.rShiftTo(-a,c):this.lShiftTo(a,c),c},n.prototype.shiftRight=function(a){var c=s();return a<0?this.lShiftTo(-a,c):this.rShiftTo(a,c),c},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,c=this.s&this.DM,l=0;l<this.t;++l)a+=U(this[l]^c);return a},n.prototype.testBit=function(a){var c=Math.floor(a/this.DB);return c>=this.t?this.s!=0:(this[c]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,I)},n.prototype.clearBit=function(a){return this.changeBit(a,g)},n.prototype.flipBit=function(a){return this.changeBit(a,D)},n.prototype.add=function(a){var c=s();return this.addTo(a,c),c},n.prototype.subtract=function(a){var c=s();return this.subTo(a,c),c},n.prototype.multiply=function(a){var c=s();return this.multiplyTo(a,c),c},n.prototype.divide=function(a){var c=s();return this.divRemTo(a,c,null),c},n.prototype.remainder=function(a){var c=s();return this.divRemTo(a,null,c),c},n.prototype.divideAndRemainder=function(a){var c=s(),l=s();return this.divRemTo(a,c,l),new Array(c,l)},n.prototype.modPow=function(a,c){var l,y,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,y=v<8?new C(c):c.isEven()?new H(c):new w(c);var P=new Array,A=3,L=l-1,V=(1<<l)-1;if(P[1]=y.convert(this),l>1){var Z=s();for(y.sqrTo(P[1],Z);A<=V;)P[A]=s(),y.mulTo(Z,P[A-2],P[A]),A+=2}var ue,Pe,Ee=a.t-1,It=!0,ye=s();for(v=_(a[Ee])-1;Ee>=0;){for(v>=L?ue=a[Ee]>>v-L&V:(ue=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(ue|=a[Ee-1]>>this.DB+v-L)),A=l;(1&ue)==0;)ue>>=1,--A;if((v-=A)<0&&(v+=this.DB,--Ee),It)P[ue].copyTo(T),It=!1;else{for(;A>1;)y.sqrTo(T,ye),y.sqrTo(ye,T),A-=2;A>0?y.sqrTo(T,ye):(Pe=T,T=ye,ye=Pe),y.mulTo(ye,P[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)y.sqrTo(T,ye),Pe=T,T=ye,ye=Pe,--v<0&&(v=this.DB-1,--Ee)}return y.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),y=this.clone(),v=S(1),T=S(0),P=S(0),A=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;y.isEven();)y.rShiftTo(1,y),c?(P.isEven()&&A.isEven()||(P.addTo(this,P),A.subTo(a,A)),P.rShiftTo(1,P)):A.isEven()||A.subTo(a,A),A.rShiftTo(1,A);l.compareTo(y)>=0?(l.subTo(y,l),c&&v.subTo(P,v),T.subTo(A,T)):(y.subTo(l,y),c&&P.subTo(v,P),A.subTo(T,A))}return y.compareTo(n.ONE)!=0?n.ZERO:A.compareTo(a)>=0?A.subtract(a):A.signum()<0?(A.addTo(a,A),A.signum()<0?A.add(a):A):A},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var y=c;c=l,l=y}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=Y[Y.length-1]){for(c=0;c<Y.length;++c)if(l[0]==Y[c])return!0;return!1}if(l.isEven())return!1;for(c=1;c<Y.length;){for(var y=Y[c],v=c+1;v<Y.length&&y<Te;)y*=Y[v++];for(y=l.modInt(y);c<v;)if(y%Y[c++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=H,$==null){var se;if($=new Array,B=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)$[B++]=ie[se]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(se=0;se<ee.length;++se)$[B++]=255&ee.charCodeAt(se)}}for(;B<De;)se=Math.floor(65536*Math.random()),$[B++]=se>>>8,$[B++]=255&se;B=0,ae()}function tt(){if(N==null){for(ae(),(N=new rt).init($),B=0;B<$.length;++B)$[B]=0;B=0}return N.next()}function ot(){}function rt(){this.i=0,this.j=0,this.S=new Array}ot.prototype.nextBytes=function(a){var c;for(c=0;c<a.length;++c)a[c]=tt()},rt.prototype.init=function(a){var c,l,y;for(c=0;c<256;++c)this.S[c]=c;for(l=0,c=0;c<256;++c)y=this.S[c],this.S[c]=this.S[l=l+this.S[c]+a[c%a.length]&255],this.S[l]=y;this.i=0,this.j=0},rt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var De=256;t.exports={default:n,BigInteger:n,SecureRandom:ot}}).call(Kt)}),jA={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},xA={sha256:FA};function kA(t,e){if(this.n=null,this.e=0,!(t!=null&&e!=null&&t.length>0&&e.length>0))throw new Error("Invalid key data");this.n=new LA.BigInteger(t,16),this.e=parseInt(e,16)}kA.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new LA.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var u in jA){var d=jA[u],f=d.length;if(i.substring(0,f)===d)return{alg:u,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!xA.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=xA[n.alg](t).toString();return n.hash===s};for(UA=[],Ue=[],BA=typeof Uint8Array<"u"?Uint8Array:Array,Dh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=0;Gt<64;++Gt)UA[Gt]=Dh[Gt],Ue[Dh.charCodeAt(Gt)]=Gt;var UA,Ue,BA,Dh,Gt;Ue[45]=62,Ue[95]=63;var $A=function(t){var e,r,n=(function(p){var h=p.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=h),[S,S===h?0:4-S%4]})(t),s=n[0],i=n[1],u=new BA((function(p,h,S){return 3*(h+S)/4-S})(0,s,i)),d=0,f=i>0?s-4:s;for(r=0;r<f;r+=4)e=Ue[t.charCodeAt(r)]<<18|Ue[t.charCodeAt(r+1)]<<12|Ue[t.charCodeAt(r+2)]<<6|Ue[t.charCodeAt(r+3)],u[d++]=e>>16&255,u[d++]=e>>8&255,u[d++]=255&e;return i===2&&(e=Ue[t.charCodeAt(r)]<<2|Ue[t.charCodeAt(r+1)]>>4,u[d++]=255&e),i===1&&(e=Ue[t.charCodeAt(r)]<<10|Ue[t.charCodeAt(r+1)]<<4|Ue[t.charCodeAt(r+2)]>>2,u[d++]=e>>8&255,u[d++]=255&e),u};function GA(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function DA(t){return t=GA(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})($A(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Fh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var s=e[n].toString(16);r+=s.length===2?s:"0"+s}return r})($A(GA(t)))}var rL=Ht(function(t){var e,r;e=Kt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function nL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],u=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return u},get:function(h){return d[h.toLowerCase()]},has:function(h){return h.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(h,S,_){i.push(S=S.toLowerCase()),u.push([S,_]),d[S]=d[S]?d[S]+","+_:_}),r(f())},s.onerror=n,s.withCredentials=e.credentials=="include",e.headers)s.setRequestHeader(p,e.headers[p]);s.send(e.body||null)})}function sL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Lh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Lh.prototype=Error.prototype,ne.prototype=Error.prototype;var iL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();XF.polyfill();var kh="RS256",Ec=function(t){return typeof t=="number"},oL=function(){return new Date};function gn(t){var e=t||{};if(this.jwksCache=e.jwksCache||new iL,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=e.leeway===0?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock=typeof e.__clock=="function"?e.__clock:oL,this.leeway<0||this.leeway>300)throw new Lh("The leeway should be positive and lower than five minutes.");if(kh!==this.expectedAlg)throw new Lh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+kh+'".')}gn.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ne("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ne("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Fh(n.encoded.signature),u=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,h=n.payload.iss,S=n.payload.exp,_=n.payload.nbf,C=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,I=n.payload.nonce,D=this.__clock(),g=this;if(g.expectedAlg!==u)return r(new ne('Signature algorithm of "'+u+'" is not supported. Expected the ID token to be signed with "'+kh+'".'),null);this.getRsaVerifier(h,d,function(M,U){if(M)return r(M,null);if(!U.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!h||typeof h!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(g.issuer!==h)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+g.issuer+'", found "'+h+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(g.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&g.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+g.audience+'" but found "'+f+'"'),null);if(e){if(!I||typeof I!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(I!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+I+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==g.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+g.audience+'", found "'+w+'"'),null)}if(!S||!Ec(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!C||!Ec(C))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+g.leeway,K=new Date(0);if(K.setUTCSeconds(k),D>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+D+'" is after expiration time "'+K+'"'),null);if(_&&Ec(_)){var H=_-g.leeway,N=new Date(0);if(N.setUTCSeconds(H),D<N)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+D+'" is before the not before time "'+N+'"'),null)}if(g.maxAge){if(!R||!Ec(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var $=R+g.maxAge+g.leeway,B=new Date(0);if(B.setUTCSeconds($),D>B)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+D+'" is after last auth time at "'+B+'"'),null)}return r(null,n.payload)})},gn.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(u={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||rL(u.iss,".well-known","jwks.json"),(fetch=="undefined"?nL:fetch)(d).then(sL).then(function(f){var p,h,S,_=null;for(p=0;p<f.keys.length&&_===null;p++)(h=f.keys[p]).kid===u.kid&&(_=h);if(!_)throw new Error('Could not find a public key for Key ID (kid) "'+u.kid+'"');return{modulus:Fh((S=_).n),exp:Fh(S.e)}}).catch(function(f){throw f}));var u,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new kA(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},gn.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ne("Cannot decode a malformed JWT");try{e=JSON.parse(DA(n[0])),r=JSON.parse(DA(n[1]))}catch{return new ne("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},gn.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ne('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=FA(t),u=NA.stringify(i),d=u.substring(0,u.length/2),f=NA.parse(d),p=tL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(h){return s[h]})!==r?new ne("Invalid access_token"):null))},KA.exports=gn});var bn=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.AuthorizeError=void 0;var $h=class extends Error{error;errorDescription;state};Cc.AuthorizeError=$h});var WA=o(Cr=>{"use strict";var aL=Cr&&Cr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.PopupHandler=void 0;var cL=aL(tr()),Gh=(0,cL.default)("cinerino-sdk:auth:popupHandler"),Kh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(Gh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}Gh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){Gh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Cr.PopupHandler=Kh});var zA=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.PopupAuthenticationHandler=void 0;var uL=bn(),dL=WA(),Hh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.location.hash}catch(i){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new dL.PopupHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new uL.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};gc.PopupAuthenticationHandler=Hh});var zh=o(gr=>{"use strict";var lL=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});gr.IframeHandler=void 0;var fL=lL(tr()),hL=(0,fL.default)("cinerino-sdk:auth:iframeHandler"),Wh=class{url;callback;timeout;timeoutCallback;eventListenerType;iframe;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.iframe=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(hL("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};gr.IframeHandler=Wh});var VA=o(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.SilentAuthenticationHandler=void 0;var yL=bn(),pL=zh(),Vh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new pL.IframeHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new yL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};bc.SilentAuthenticationHandler=Vh});var YA=o(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.SilentLogoutHandler=void 0;var vL=bn(),SL=zh(),Yh=class t{logoutUrl;timeout;handler;constructor(e){this.logoutUrl=e.logoutUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new SL.IframeHandler({url:this.logoutUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new vL.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Pc.SilentLogoutHandler=Yh});var QA=o(()=>{});var ZA=o(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.LoginTicket=void 0;var Qh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};Ac.LoginTicket=Qh});var JA=o(Ot=>{"use strict";var mL=Ot&&Ot.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.OAuth2client=Ot.MAX_RETRY_NUM=void 0;var _L=QA(),OL=mL(tr()),wc=b(),TL=$s(),EL=ZA(),Wt=(0,OL.default)("cinerino-sdk:auth:oAuth2client"),CL=1e3;Ot.MAX_RETRY_NUM=2;async function gL(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Zh=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,_L.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),u={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Wt("response:",d.status),d.status!==wc.status.OK)if(d.status===wc.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Wt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,s){let i=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let u,d=0;for(;u===void 0;)try{d+=1,d>Ot.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,u=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await gL(CL*d);continue}}throw f}return u}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new TL.DefaultTransporter(n),i;return typeof this.events.preFetch=="function"?i=(await this.events.preFetch({url:e,options:r})).options:i=r,s.fetch(e,i)}async refreshToken(e){Wt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(n),i={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Wt("response:",u.status),u.status!==wc.status.OK)if(u.status===wc.status.BAD_REQUEST){let d=await u.json();throw new Error(d.error)}else{let d=await u.text();throw new Error(d)}else{let d,f=await u.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:h,expires_in:S,token_type:_}=f;d={access_token:p,id_token:h,token_type:_,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let s,i;try{s=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{i=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(i.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(i)}`);if(i.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(i)}`);if(isNaN(i.iat))throw new Error("iat field using invalid format");if(isNaN(i.exp))throw new Error("exp field using invalid format");if(r!==void 0){let u=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(u)>-1:d=u===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new EL.LoginTicket({envelope:s,payload:i})}};Ot.OAuth2client=Zh});var tw=o(br=>{"use strict";var ew=br&&br.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(br,"__esModule",{value:!0});br.ImplicitGrantClient=void 0;var bL=ew(tr()),XA=ew(HA()),Jh=zu(),PL=bn(),AL=zA(),wL=VA(),RL=YA(),ML=JA(),Rc=(0,bL.default)("cinerino-sdk:auth:implicitGrantClient"),Xh=class t extends ML.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Rc("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await wL.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(s)}async signIn(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await AL.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await RL.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Rc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Rc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Jh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new PL.AuthorizeError(n.error_description);throw s.error=n.error,s.errorDescription=n.error_description,s.state=n.state,s}if(!Object.prototype.hasOwnProperty.call(n,"access_token")&&!Object.prototype.hasOwnProperty.call(n,"id_token")&&!Object.prototype.hasOwnProperty.call(n,"refresh_token"))throw new Error("invalid hash");if(typeof n.id_token=="string"){let s=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s)}if(typeof n.id_token=="string"){let i=new XA.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,s)=>{new XA.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(Rc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Jh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Jh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};br.ImplicitGrantClient=Xh});var rw=o(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.transporters=fe.factory=fe.loadService=fe.loadCloudTxn=fe.loadCloudTxc=fe.loadCloudSearch=fe.loadCloudPay=fe.loadCloudAsset=fe.loadCloudAdmin=void 0;fe.createAuthInstance=qL;var Tt=qA();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Tt.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Tt.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Tt.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Tt.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Tt.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Tt.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Tt.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Tt.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Tt.transporters}});var IL=tw();function qL(t){return new IL.ImplicitGrantClient(t)}});var W5=window.cinerino=rw();})();
1
+ "use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hh=o(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0})});var ft=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var BA;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.ServiceUnavailable="ServiceUnavailable",t.RateLimitExceeded="RateLimitExceeded",t.Unauthorized="Unauthorized"})(BA=bn.ErrorCode||(bn.ErrorCode={}))});var Tt=o((uF,Vh)=>{"use strict";Vh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?$A:GA);function $A(t,e){return t.__proto__=e,t}function GA(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var ht=o(br=>{"use strict";var KA=br&&br.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(br,"__esModule",{value:!0});var WA=(function(t){KA(e,t);function e(r,n){var s=t.call(this,n)||this;return s.name="WaiterError",s.reason=r,s}return e})(Error);br.WaiterError=WA});var zh=o(Pr=>{"use strict";var HA=Pr&&Pr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Pr,"__esModule",{value:!0});var VA=Tt(),zA=ft(),YA=ht(),QA=(function(t){HA(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Invalid or missing argument supplied: "+r),s=t.call(this,zA.ErrorCode.Argument,i)||this,s.argumentName=r,VA(s,e.prototype),s}return e})(YA.WaiterError);Pr.ArgumentError=QA});var Yh=o(Ar=>{"use strict";var ZA=Ar&&Ar.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ar,"__esModule",{value:!0});var JA=Tt(),XA=ft(),ew=ht(),tw=(function(t){ZA(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Missing argument: "+r),s=t.call(this,XA.ErrorCode.Argument,i)||this,s.argumentName=r,JA(s,e.prototype),s}return e})(ew.WaiterError);Ar.ArgumentNullError=tw});var Qh=o(wr=>{"use strict";var rw=wr&&wr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(wr,"__esModule",{value:!0});var nw=Tt(),sw=ft(),iw=ht(),ow=(function(t){rw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,sw.ErrorCode.Forbidden,s)||this,nw(n,e.prototype),n}return e})(iw.WaiterError);wr.ForbiddenError=ow});var Zh=o(Rr=>{"use strict";var aw=Rr&&Rr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Rr,"__esModule",{value:!0});var cw=Tt(),uw=ft(),dw=ht(),lw=(function(t){aw(e,t);function e(r,n){var s=this,i=n;return(n===void 0||n.length===0)&&(i="Not Found: "+r),s=t.call(this,uw.ErrorCode.NotFound,i)||this,s.entityName=r,cw(s,e.prototype),s}return e})(dw.WaiterError);Rr.NotFoundError=lw});var Jh=o(Mr=>{"use strict";var fw=Mr&&Mr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Mr,"__esModule",{value:!0});var hw=Tt(),yw=ft(),pw=ht(),vw=(function(t){fw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Rate limit exceeded."),n=t.call(this,yw.ErrorCode.RateLimitExceeded,s)||this,hw(n,e.prototype),n}return e})(pw.WaiterError);Mr.RateLimitExceededError=vw});var Xh=o(Ir=>{"use strict";var Sw=Ir&&Ir.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(Ir,"__esModule",{value:!0});var mw=Tt(),_w=ft(),Ow=ht(),Tw=(function(t){Sw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Service unavailable temporarily."),n=t.call(this,_w.ErrorCode.ServiceUnavailable,s)||this,mw(n,e.prototype),n}return e})(Ow.WaiterError);Ir.ServiceUnavailableError=Tw});var ey=o(qr=>{"use strict";var Ew=qr&&qr.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})();Object.defineProperty(qr,"__esModule",{value:!0});var Cw=Tt(),gw=ft(),bw=ht(),Pw=(function(t){Ew(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,gw.ErrorCode.Unauthorized,s)||this,Cw(n,e.prototype),n}return e})(bw.WaiterError);qr.UnauthorizedError=Pw});var ty=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Aw=zh();at.Argument=Aw.ArgumentError;var ww=Yh();at.ArgumentNull=ww.ArgumentNullError;var Rw=Qh();at.Forbidden=Rw.ForbiddenError;var Mw=Zh();at.NotFound=Mw.NotFoundError;var Iw=Jh();at.RateLimitExceeded=Iw.RateLimitExceededError;var qw=Xh();at.ServiceUnavailable=qw.ServiceUnavailableError;var Nw=ey();at.Unauthorized=Nw.UnauthorizedError;var jw=ht();at.Waiter=jw.WaiterError});var ny=o(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0})});var iy=o(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0})});var ay=o(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0})});var uy=o(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0})});var dy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var xw=Hh();yt.client=xw;var Uw=ft();yt.errorCode=Uw.ErrorCode;var Dw=ty();yt.errors=Dw;var Lw=ny();yt.passport=Lw;var Fw=iy();yt.project=Fw;var kw=ay();yt.rule=kw;var Bw=uy();yt.ruleSet=Bw});var fy=o(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0})});var yy=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.FlgMember=void 0;var hy;(function(t){t.NonMember="0",t.Member="1"})(hy||(Pn.FlgMember=hy={}))});var vy=o(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0})});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var Oy=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ObjectType=void 0;var _y;(function(t){t.SeatReservation="SeatReservation"})(_y||(An.ObjectType=_y={}))});var Ty=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ObjectType=void 0;var $w=Oy();Object.defineProperty(wn,"ObjectType",{enumerable:!0,get:function(){return $w.ObjectType}})});var gy=o(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ServiceIdentifier=Ht.ResultType=void 0;var Ey;(function(t){t.Payment="Payment"})(Ey||(Ht.ResultType=Ey={}));var Cy;(function(t){t.Chevre="Chevre"})(Cy||(Ht.ServiceIdentifier=Cy={}))});var Py=o(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0})});var wy=o(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0})});var My=o(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0})});var qy=o(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0})});var jy=o(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0})});var Uy=o(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0})});var Ly=o(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var ky=o(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var $y=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0})});var Hy=o(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0})});var zy=o(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=o(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Jy=o(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0})});var ep=o(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var rp=o(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0})});var sp=o(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0})});var op=o(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0})});var cp=o(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0})});var dp=o(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0})});var lp=o(It=>{"use strict";var Gw=It&&It.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Kw=It&&It.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gw(e,t,r)};Object.defineProperty(It,"__esModule",{value:!0});Kw(dp(),It)});var hp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ObjectAsTransactionSpecifyingMethod=void 0;var fp;(function(t){t.Id="Id",t.AgentId="AgentId"})(fp||(Rn.ObjectAsTransactionSpecifyingMethod=fp={}))});var pp=o(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0})});var Sp=o(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0})});var _p=o(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0})});var Tp=o(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0})});var Ep=o(pt=>{"use strict";var Ww=pt&&pt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ww(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});bc(Sp(),pt);bc(_p(),pt);bc(Tp(),pt)});var gp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.ActionStatusType=void 0;var Cp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Cp||(Mn.ActionStatusType=Cp={}))});var Pp=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.ActionType=void 0;var bp;(function(t){t.AddAction="AddAction",t.AcceptAction="AcceptAction",t.AuthorizeAction="AuthorizeAction",t.CancelAction="CancelAction",t.CheckAction="CheckAction",t.ConfirmAction="ConfirmAction",t.CreateAction="CreateAction",t.DeleteAction="DeleteAction",t.InformAction="InformAction",t.OrderAction="OrderAction",t.PayAction="PayAction",t.RefundAction="RefundAction",t.ReplaceAction="ReplaceAction",t.ReserveAction="ReserveAction",t.ReturnAction="ReturnAction",t.SendAction="SendAction",t.UpdateAction="UpdateAction",t.UseAction="UseAction"})(bp||(In.ActionType=bp={}))});var wp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var Mp=o(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0})});var qp=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.AggregationType=void 0;var Ip;(function(t){t.AggregateAuthorizeEventServiceOfferAction="AggregateAuthorizeEventServiceOfferAction",t.AggregateAuthorizeOrderAction="AggregateAuthorizeOrderAction",t.AggregateAuthorizePaymentAction="AggregateAuthorizePaymentAction",t.AggregateCancelReservationAction="AggregateCancelReservationAction",t.AggregateCheckMovieTicketAction="AggregateCheckMovieTicketAction",t.AggregateEvent="AggregateEvent",t.AggregateOrder="AggregateOrder",t.AggregateOrderAction="AggregateOrderAction",t.AggregatePay="AggregatePay",t.AggregatePayMovieTicketAction="AggregatePayMovieTicketAction",t.AggregatePlaceOrder="AggregatePlaceOrder",t.AggregateReserve="AggregateReserve",t.AggregateReserveAction="AggregateReserveAction",t.AggregateTask="AggregateTask",t.AggregateUseAction="AggregateUseAction"})(Ip||(qn.AggregationType=Ip={}))});var jp=o(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0})});var Up=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.CategorySetIdentifier=void 0;var xp;(function(t){t.ContentRatingType="ContentRatingType",t.CurrencyType="CurrencyType",t.CustomerType="CustomerType",t.DistributorType="DistributorType",t.MembershipType="MembershipType",t.OfferCategoryType="OfferCategoryType",t.PaymentMethodType="PaymentMethodType",t.SeatingType="SeatingType",t.ServiceType="ServiceType",t.SoundFormatType="SoundFormatType",t.VideoFormatType="VideoFormatType"})(xp||(Nn.CategorySetIdentifier=xp={}))});var Pc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CertificationStatusEnumeration=void 0;var Dp;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})(Dp||(jn.CertificationStatusEnumeration=Dp={}))});var Fp=o(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0})});var Bp=o(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0})});var Gp=o($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0})});var Wp=o(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0})});var Vp=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.AboutIdentifier=void 0;var Hp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Hp||(xn.AboutIdentifier=Hp={}))});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Jp=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.PermissionGranteeAudienceType=Vt.DigitalDocumentPermissionType=void 0;var Qp;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(Qp||(Vt.DigitalDocumentPermissionType=Qp={}));var Zp;(function(t){t.Public="public"})(Zp||(Vt.PermissionGranteeAudienceType=Zp={}))});var ev=o(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0})});var rv=o(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var Ac=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.CreativeWorkType=void 0;var nv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(nv||(Un.CreativeWorkType=nv={}))});var iv=o(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var vv=o(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.Video=ae.Text=ae.Multipart=ae.Model=ae.Message=ae.Image=ae.Example=ae.Font=ae.Audio=ae.Application=void 0;var ov;(function(t){t.pdf="application/pdf",t.json="application/json"})(ov||(ae.Application=ov={}));var av;av||(ae.Audio=av={});var cv;cv||(ae.Font=cv={});var uv;uv||(ae.Example=uv={});var dv;dv||(ae.Image=dv={});var lv;lv||(ae.Message=lv={});var fv;fv||(ae.Model=fv={});var hv;hv||(ae.Multipart=hv={});var yv;(function(t){t.csv="text/csv"})(yv||(ae.Text=yv={}));var pv;pv||(ae.Video=pv={})});var mv=o(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0})});var Ov=o(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0})});var Ev=o(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0})});var wc=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.EventStatusType=void 0;var Cv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Cv||(Dn.EventStatusType=Cv={}))});var Rc=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.EventType=void 0;var gv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(gv||(Ln.EventType=gv={}))});var Pv=o(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var wv=o(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0})});var Mv=o(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0})});var qv=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ItemAvailability=void 0;var Iv;(function(t){t.Discontinued="Discontinued",t.InStock="InStock",t.InStoreOnly="InStoreOnly",t.LimitedAvailability="LimitedAvailability",t.OnlineOnly="OnlineOnly",t.OutOfStock="OutOfStock",t.PreOrder="PreOrder",t.PreSale="PreSale",t.SoldOut="SoldOut"})(Iv||(Fn.ItemAvailability=Iv={}))});var jv=o(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Mc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var xv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(xv||(Et.RefundTypeEnumeration=xv={}));var Uv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Uv||(Et.ReturnFeesEnumeration=Uv={}));var Dv;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})(Dv||(Et.MerchantReturnEnumeration=Dv={}))});var Fv=o(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Bv=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.CategorySetIdentifier=void 0;var kv;(function(t){t.MovieTicketType="MovieTicketType"})(kv||(kn.CategorySetIdentifier=kv={}))});var Gv=o($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Wv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Vv=o(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0})});var Yv=o(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Zv=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OfferItemCondition=void 0;var Qv;(function(t){t.NewCondition="NewCondition"})(Qv||(Bn.OfferItemCondition=Qv={}))});var Ic=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OfferType=void 0;var Jv;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(Jv||($n.OfferType=Jv={}))});var qc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrderType=void 0;var Xv;(function(t){t.Order="Order"})(Xv||(Gn.OrderType=Xv={}))});var Nc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrderStatus=void 0;var eS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(eS||(Kn.OrderStatus=eS={}))});var rS=o(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0})});var jc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.OrganizationType=void 0;var nS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(nS||(Wn.OrganizationType=nS={}))});var iS=o(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0})});var aS=o(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0})});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var xc=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PaymentStatusType=void 0;var dS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(dS||(Hn.PaymentStatusType=dS={}))});var fS=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PermitType=void 0;var lS;(function(t){t.Permit="Permit"})(lS||(Vn.PermitType=lS={}))});var yS=o(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0})});var Uc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PersonType=void 0;var pS;(function(t){t.Person="Person"})(pS||(zn.PersonType=pS={}))});var SS=o(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0})});var _S=o(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0})});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});var CS=o(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0})});var bS=o(gS=>{"use strict";Object.defineProperty(gS,"__esModule",{value:!0})});var Dc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PlaceType=void 0;var PS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(PS||(Yn.PlaceType=PS={}))});var wS=o(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0})});var Lc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PriceCurrency=void 0;var RS;(function(t){t.JPY="JPY"})(RS||(Qn.PriceCurrency=RS={}))});var IS=o(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0})});var Fc=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.PriceSpecificationType=void 0;var qS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(qS||(Zn.PriceSpecificationType=qS={}))});var kc=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ProductType=void 0;var NS;(function(t){t.EventService="EventService",t.Product="Product"})(NS||(Jn.ProductType=NS={}))});var xS=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ProgramMembershipType=void 0;var jS;(function(t){t.ProgramMembership="ProgramMembership"})(jS||(Xn.ProgramMembershipType=jS={}))});var DS=o(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0})});var FS=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.PropertyValueType=void 0;var LS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(LS||(es.PropertyValueType=LS={}))});var BS=o(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0})});var GS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var WS=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.StringValue=void 0;var KS;(function(t){t.Infinity="Infinity"})(KS||(ts.StringValue=KS={}))});var VS=o(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0})});var YS=o(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0})});var Bc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReservationStatusType=void 0;var QS;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(QS||(rs.ReservationStatusType=QS={}))});var $c=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.ReservationType=void 0;var ZS;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(ZS||(ns.ReservationType=ZS={}))});var Gc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.AssetTransactionType=void 0;var JS;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(JS||(ss.AssetTransactionType=JS={}))});var Kc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.SortType=void 0;var XS;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(XS||(is.SortType=XS={}))});var Wc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TaskStatus=void 0;var em;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(em||(os.TaskStatus=em={}))});var Hc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TransactionStatusType=void 0;var tm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(tm||(as.TransactionStatusType=tm={}))});var Vc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.TransactionType=void 0;var rm;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(rm||(cs.TransactionType=rm={}))});var zc=o(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.UnitCode=void 0;var nm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(nm||(us.UnitCode=nm={}))});var lm=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RESERVED_CODE_VALUES=void 0;var ds=Gc(),sm=Pc(),qt=Ac(),ls=wc(),im=Rc(),ct=Mc(),om=Ic(),Hw=qc(),zt=Nc(),Yc=jc(),Nr=xc(),Vw=Uc(),Yt=Dc(),zw=Lc(),jr=Fc(),am=kc(),fs=Bc(),cm=$c(),um=Kc(),xr=Wc(),hs=Hc(),dm=Vc(),ys=zc();ps.RESERVED_CODE_VALUES=["AccountTitle",ds.AssetTransactionType.CancelReservation,"MoneyTransfer",ds.AssetTransactionType.Pay,ds.AssetTransactionType.Refund,ds.AssetTransactionType.Reserve,"Authorization",sm.CertificationStatusEnumeration.CertificationActive,sm.CertificationStatusEnumeration.CertificationInactive,qt.CreativeWorkType.Certification,"Comment",qt.CreativeWorkType.EmailMessage,qt.CreativeWorkType.Movie,qt.CreativeWorkType.NoteDigitalDocument,qt.CreativeWorkType.SoftwareApplication,qt.CreativeWorkType.WebApplication,qt.CreativeWorkType.WebSite,"Event",ls.EventStatusType.EventCancelled,ls.EventStatusType.EventPostponed,ls.EventStatusType.EventRescheduled,ls.EventStatusType.EventScheduled,im.EventType.ScreeningEvent,im.EventType.ScreeningEventSeries,ct.MerchantReturnEnumeration.MerchantReturnFiniteReturnWindow,ct.MerchantReturnEnumeration.MerchantReturnNotPermitted,ct.MerchantReturnEnumeration.MerchantReturnUnlimitedWindow,ct.MerchantReturnEnumeration.MerchantReturnUnspecified,ct.RefundTypeEnumeration.ExchangeRefund,ct.RefundTypeEnumeration.FullRefund,ct.RefundTypeEnumeration.StoreCreditRefund,ct.ReturnFeesEnumeration.FreeReturn,ct.ReturnFeesEnumeration.RestockingFees,ct.ReturnFeesEnumeration.ReturnFeesCustomerResponsibility,"MonetaryAmount",om.OfferType.AggregateOffer,om.OfferType.Offer,"OfferCatalog","OfferCatalogItem",Hw.OrderType.Order,zt.OrderStatus.OrderCancelled,zt.OrderStatus.OrderDelivered,zt.OrderStatus.OrderInTransit,zt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",zt.OrderStatus.OrderProcessing,zt.OrderStatus.OrderReturned,Yc.OrganizationType.Corporation,Yc.OrganizationType.Organization,Yc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,Vw.PersonType.Person,Yt.PlaceType.AggregatePlace,Yt.PlaceType.MovieTheater,Yt.PlaceType.Place,Yt.PlaceType.ScreeningRoom,Yt.PlaceType.ScreeningRoomSection,Yt.PlaceType.Seat,zw.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,am.ProductType.EventService,am.ProductType.Product,fs.ReservationStatusType.ReservationCancelled,fs.ReservationStatusType.ReservationConfirmed,fs.ReservationStatusType.ReservationPending,"ReservationHold",fs.ReservationStatusType.ReservationPending,"BusReservation",cm.ReservationType.EventReservation,cm.ReservationType.ReservationPackage,um.SortType.Ascending,um.SortType.Descending,xr.TaskStatus.Aborted,xr.TaskStatus.Executed,xr.TaskStatus.Ready,xr.TaskStatus.Running,xr.TaskStatus.Expired,hs.TransactionStatusType.Canceled,hs.TransactionStatusType.Confirmed,hs.TransactionStatusType.Expired,hs.TransactionStatusType.InProgress,dm.TransactionType.PlaceOrder,dm.TransactionType.ReturnOrder,ys.UnitCode.Ann,ys.UnitCode.C62,ys.UnitCode.Day,ys.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var hm=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RoleType=void 0;var fm;(function(t){t.OrganizationRole="OrganizationRole"})(fm||(vs.RoleType=fm={}))});var pm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.RoleName=void 0;var ym;(function(t){t.Customer="customer",t.POS="pos",t.EventsViewer="events.viewer",t.Owner="owner",t.User="user",t.SellerAdmin="sellerAdmin",t.TicketClerk="ticketClerk",t.InventoryManager="inventoryManager",t.Accountant="accountant",t.TicketCollector="ticketCollector",t.IAMRoleAdmin="iam.roleAdmin",t.PaymentServiceAdmin="paymentServiceAdmin",t.MemberAdmin="memberAdmin",t.SellersOwner="sellers.owner",t.SellersInventoryManager="sellers.inventoryManager",t.SellersIAMRoleAdmin="sellers.iam.roleAdmin",t.AdminInventoryManager="admin.inventoryManager"})(ym||(Ss.RoleName=ym={}))});var Sm=o(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0})});var _m=o(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0})});var Tm=o(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0})});var Cm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.PaymentServiceType=void 0;var Em;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Em||(ms.PaymentServiceType=Em={}))});var bm=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.Identifier=void 0;var gm;(function(t){t.COA="COA",t.Chevre="Chevre"})(gm||(_s.Identifier=gm={}))});var Am=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Rm=o(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0})});var Im=o(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0})});var Nm=o(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0})});var xm=o(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0})});var Dm=o(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0})});var Fm=o(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0})});var Bm=o(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0})});var Gm=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var Wm=o(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0})});var Vm=o(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0})});var Ym=o(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0})});var Zm=o(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0})});var Xm=o(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0})});var t_=o(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0})});var n_=o(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0})});var i_=o(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0})});var a_=o(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0})});var u_=o(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0})});var l_=o(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0})});var h_=o(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0})});var p_=o(y_=>{"use strict";Object.defineProperty(y_,"__esModule",{value:!0})});var S_=o(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0})});var __=o(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0})});var T_=o(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0})});var C_=o(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0})});var b_=o(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0})});var A_=o(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0})});var R_=o(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0})});var I_=o(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0})});var N_=o(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0})});var x_=o(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0})});var D_=o(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0})});var F_=o(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0})});var B_=o(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0})});var G_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var W_=o(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0})});var V_=o(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0})});var Y_=o(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0})});var Z_=o(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0})});var X_=o(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0})});var tO=o(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0})});var nO=o(rO=>{"use strict";Object.defineProperty(rO,"__esModule",{value:!0})});var iO=o(sO=>{"use strict";Object.defineProperty(sO,"__esModule",{value:!0})});var aO=o(oO=>{"use strict";Object.defineProperty(oO,"__esModule",{value:!0})});var uO=o(cO=>{"use strict";Object.defineProperty(cO,"__esModule",{value:!0})});var lO=o(dO=>{"use strict";Object.defineProperty(dO,"__esModule",{value:!0})});var hO=o(fO=>{"use strict";Object.defineProperty(fO,"__esModule",{value:!0})});var pO=o(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0})});var SO=o(vO=>{"use strict";Object.defineProperty(vO,"__esModule",{value:!0})});var _O=o(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0})});var TO=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.TaskName=void 0;var OO;(function(t){t.AcceptCOAOffer="acceptCOAOffer",t.AccountMoneyTransfer="accountMoneyTransfer",t.AggregateOffers="aggregateOffers",t.AggregateOnSystem="aggregateOnSystem",t.AggregateScreeningEvent="aggregateScreeningEvent",t.AuthorizePayment="authorizePayment",t.CancelAccountMoneyTransfer="cancelAccountMoneyTransfer",t.CancelReservation="cancelReservation",t.CancelPendingReservation="cancelPendingReservation",t.CheckMovieTicket="checkMovieTicket",t.CheckResource="checkResource",t.ConfirmPayTransaction="confirmPayTransaction",t.ConfirmReserveTransaction="confirmReserveTransaction",t.CreateAccountingReport="createAccountingReport",t.DeletePerson="deletePerson",t.DeleteTransaction="deleteTransaction",t.HandleNotification="handleNotification",t.ImportEventCapacitiesFromCOA="importEventCapacitiesFromCOA",t.ImportEventsFromCOA="importEventsFromCOA",t.ImportOffersFromCOA="importOffersFromCOA",t.InvalidatePaymentUrl="invalidatePaymentUrl",t.OnAssetTransactionStatusChanged="onAssetTransactionStatusChanged",t.OnAuthorizationCreated="onAuthorizationCreated",t.OnEventChanged="onEventChanged",t.OnResourceDeleted="onResourceDeleted",t.OnResourceUpdated="onResourceUpdated",t.OnOrderPaymentCompleted="onOrderPaymentCompleted",t.Pay="pay",t.PlaceOrder="placeOrder",t.PublishPaymentUrl="publishPaymentUrl",t.Refund="refund",t.Reserve="reserve",t.ReturnOrder="returnOrder",t.ReturnPayTransaction="returnPayTransaction",t.ReturnReserveTransaction="returnReserveTransaction",t.SendEmailMessage="sendEmailMessage",t.SendOrder="sendOrder",t.SyncResourcesFromCOA="syncResourcesFromCOA",t.TriggerWebhook="triggerWebhook",t.UseReservation="useReservation",t.VoidPayment="voidPayment",t.VoidPayTransaction="voidPayTransaction",t.VoidReserveTransaction="voidReserveTransaction"})(OO||(Os.TaskName=OO={}))});var CO=o(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0})});var bO=o(gO=>{"use strict";Object.defineProperty(gO,"__esModule",{value:!0})});var AO=o(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var RO=o(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0})});var IO=o(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0})});var NO=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Reason=void 0;var qO;(function(t){t.Customer="Customer",t.Seller="Seller"})(qO||(Ts.Reason=qO={}))});var we=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.ErrorCode=void 0;var jO;(function(t){t.AlreadyInUse="AlreadyInUse",t.Argument="Argument",t.ArgumentNull="ArgumentNull",t.Forbidden="Forbidden",t.GatewayTimeout="GatewayTimeout",t.Internal="Internal",t.NotFound="NotFound",t.NotImplemented="NotImplemented",t.RateLimitExceeded="RateLimitExceeded",t.ServiceUnavailable="ServiceUnavailable",t.Unauthorized="Unauthorized",t.Unknown="Unknown"})(jO||(Es.ErrorCode=jO={}))});var Re=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ChevreError=void 0;var Qc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Cs.ChevreError=Qc});var xO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.AlreadyInUseError=void 0;var Yw=we(),Qw=Re(),Zc=class extends Qw.ChevreError{entityName;fieldNames;constructor(e,r,n){let s=n;(n===void 0||n.length===0)&&(s=`The specified '${e}' value is already in use for: ${r.join(", ")}.`),super(Yw.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};gs.AlreadyInUseError=Zc});var UO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ArgumentError=void 0;var Zw=we(),Jw=Re(),Jc=class extends Jw.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(Zw.ErrorCode.Argument,n),this.argumentName=e}};bs.ArgumentError=Jc});var DO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ArgumentNullError=void 0;var Xw=we(),e0=Re(),Xc=class extends e0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(Xw.ErrorCode.ArgumentNull,n),this.argumentName=e}};Ps.ArgumentNullError=Xc});var LO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ForbiddenError=void 0;var t0=we(),r0=Re(),eu=class extends r0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(t0.ErrorCode.Forbidden,r)}};As.ForbiddenError=eu});var FO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.GatewayTimeoutError=void 0;var n0=we(),s0=Re(),tu=class extends s0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(n0.ErrorCode.GatewayTimeout,r)}};ws.GatewayTimeoutError=tu});var kO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.InternalError=void 0;var i0=we(),o0=Re(),ru=class extends o0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(i0.ErrorCode.Internal,r)}};Rs.InternalError=ru});var BO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.NotFoundError=void 0;var a0=we(),c0=Re(),nu=class extends c0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(a0.ErrorCode.NotFound,n),this.entityName=e}};Ms.NotFoundError=nu});var $O=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.NotImplementedError=void 0;var u0=we(),d0=Re(),su=class extends d0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(u0.ErrorCode.NotImplemented,r)}};Is.NotImplementedError=su});var GO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.RateLimitExceededError=void 0;var l0=we(),f0=Re(),iu=class extends f0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(l0.ErrorCode.RateLimitExceeded,r)}};qs.RateLimitExceededError=iu});var KO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.ServiceUnavailableError=void 0;var h0=we(),y0=Re(),ou=class extends y0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(h0.ErrorCode.ServiceUnavailable,r)}};Ns.ServiceUnavailableError=ou});var WO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.UnauthorizedError=void 0;var p0=we(),v0=Re(),au=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(p0.ErrorCode.Unauthorized,r)}};js.UnauthorizedError=au});var HO=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.UnknownError=void 0;var S0=we(),m0=Re(),cu=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(S0.ErrorCode.Unknown,r)}};xs.UnknownError=cu});var VO=o(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.Unknown=J.Unauthorized=J.ServiceUnavailable=J.RateLimitExceeded=J.NotImplemented=J.NotFound=J.Internal=J.GatewayTimeout=J.Forbidden=J.Chevre=J.ArgumentNull=J.Argument=J.AlreadyInUse=void 0;var _0=xO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return _0.AlreadyInUseError}});var O0=UO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return O0.ArgumentError}});var T0=DO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return T0.ArgumentNullError}});var E0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return E0.ChevreError}});var C0=LO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return C0.ForbiddenError}});var g0=FO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return g0.GatewayTimeoutError}});var b0=kO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return b0.InternalError}});var P0=BO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return P0.NotFoundError}});var A0=$O();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return A0.NotImplementedError}});var w0=GO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return w0.RateLimitExceededError}});var R0=KO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return R0.ServiceUnavailableError}});var M0=WO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return M0.UnauthorizedError}});var I0=HO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return I0.UnknownError}})});var QO=o(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.StepIdentifier=Qt.RecipeCategory=void 0;var zO;(function(t){t.payCreditCard="payCreditCard",t.payMovieTicket="payMovieTicket",t.publishPaymentUrl="publishPaymentUrl",t.checkMovieTicket="checkMovieTicket",t.refundCreditCard="refundCreditCard",t.refundMovieTicket="refundMovieTicket",t.acceptCOAOffer="acceptCOAOffer",t.cancelPendingCOAReserve="cancelPendingCOAReserve",t.confirmCOAReserve="confirmCOAReserve",t.returnCOAReserve="returnCOAReserve",t.authorizeInvoice="authorizeInvoice",t.authorizeInvoice3ds="authorizeInvoice3ds",t.sendEmailMessage="sendEmailMessage"})(zO||(Qt.RecipeCategory=zO={}));var YO;(function(t){t.entryTran="entryTran",t.execTran="execTran",t.searchTrade="searchTrade",t.alterTran="alterTran",t.secureTran2="secureTran2",t.seatInfoSync="seatInfoSync",t.seatInfoSyncCancel="seatInfoSyncCancel",t.purchaseNumberAuth="purchaseNumberAuth",t.updTmpReserveSeat="updTmpReserveSeat",t.updReserve="updReserve",t.stateReserve="stateReserve",t.delReserve="delReserve",t.delTmpReserve="delTmpReserve",t.sendMultiple="sendMultiple"})(YO||(Qt.StepIdentifier=YO={}))});var fT=o(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.person=O.permit=O.paymentStatusType=O.paymentMethod=O.ownershipInfo=O.organizationType=O.organization=O.orderStatus=O.offerType=O.offerItemCondition=O.offerCatalog=O.notification=O.movieTicketType=O.monetaryAmount=O.merchantReturnPolicy=O.language=O.itemAvailability=O.invoice=O.identityProvider=O.iam=O.eventType=O.eventStatusType=O.entryPoint=O.encodingFormat=O.event=O.customer=O.creativeWorkType=O.creativeWork=O.clientUser=O.CertificationStatusEnumeration=O.categoryCode=O.authorization=O.aggregation=O.additionalProperty=O.accountTitle=O.action=O.actionType=O.actionStatusType=O.errorCode=O.recipe=O.errors=O.unitPriceOffer=O.project=O.order=O.eventOffer=O.aggregateOffer=O.offer=O.eventSeries=O.cognito=O.waiter=void 0;O.unitCode=O.assetTransactionType=O.transactionStatusType=O.transactionType=O.transaction=O.assetTransaction=O.thing=O.taskStatus=O.taskName=O.sortType=O.serviceChannel=O.service=O.task=O.sellerReturnPolicy=O.seller=O.schedule=O.role=O.RESERVED_CODE_VALUES=O.reservationType=O.reservationStatusType=O.reservation=O.report=O.quantitativeValue=O.qualitativeValue=O.propertyValue=O.product=O.programMembership=O.priceSpecificationType=O.priceSpecification=O.potentialAction=O.placeType=O.place=O.priceCurrency=O.personType=void 0;O.waiter=dy();O.cognito=fy();var q0=yy(),N0=vy(),j0=my(),x0=Ty(),U0=gy(),D0=Py(),L0=wy(),F0=My(),k0=qy(),B0=jy(),$0=Uy(),G0=Ly(),K0=ky(),W0=$y(),H0=Ky(),V0=Hy(),z0=zy(),Y0=Qy(),Q0=Jy(),Z0=ep(),J0=rp(),X0=sp(),eR=op(),tR=cp(),rR=lp(),nR=hp(),sR=pp(),iR=Ep(),oR=gp(),aR=Pp(),cR=wp(),uR=Mp(),dR=qp(),lR=jp(),fR=Up(),hR=Pc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return hR.CertificationStatusEnumeration}});var yR=Fp(),pR=Bp(),vR=Gp(),SR=Wp(),mR=Vp(),_R=Yp(),OR=Jp(),TR=ev(),ER=rv(),CR=Ac(),gR=iv(),bR=vv(),PR=mv();O.entryPoint=PR;var AR=Ov();O.eventSeries=Ev();var wR=wc(),RR=Rc(),MR=Pv(),IR=wv(),qR=Mv(),NR=qv(),jR=jv(),xR=Mc(),UR=Fv(),DR=Bv();O.offer=Gv();O.aggregateOffer=Wv();O.eventOffer=Vv();var LR=Yv(),FR=Zv(),kR=Ic();O.order=qc();var BR=Nc(),$R=rS(),GR=jc(),KR=iS(),WR=aS(),HR=uS(),VR=xc(),zR=fS(),YR=yS(),QR=Uc(),ZR=SS(),JR=_S(),XR=TS(),eM=CS(),tM=bS(),rM=Dc(),nM=wS();O.potentialAction=nM;var sM=Lc(),iM=IS(),oM=Fc(),aM=kc(),cM=xS();O.project=DS();var uM=FS(),dM=BS(),lM=GS(),fM=WS(),hM=VS(),yM=YS(),pM=Bc(),vM=$c(),SM=lm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return SM.RESERVED_CODE_VALUES}});var mM=hm(),_M=pm(),OM=Sm(),TM=_m(),EM=Tm(),CM=Cm(),gM=bm(),bM=Am(),PM=Kc(),AM=Rm(),wM=zc();O.unitPriceOffer=Im();var RM=Nm(),MM=xm(),IM=Dm(),qM=Fm(),NM=Bm(),jM=Gm(),xM=Wm(),UM=Vm(),DM=Ym(),LM=Zm(),FM=Xm(),kM=t_(),BM=n_(),$M=i_(),GM=a_(),KM=u_(),WM=l_(),HM=h_(),VM=p_(),zM=S_(),YM=__(),QM=T_(),ZM=C_(),JM=b_(),XM=A_(),eI=R_(),tI=I_(),rI=N_(),nI=x_(),sI=D_(),iI=F_(),oI=B_(),aI=G_(),cI=W_(),uI=V_(),dI=Y_(),lI=Z_(),fI=X_(),hI=tO(),yI=nO(),pI=iO(),vI=aO(),SI=uO(),mI=lO(),_I=hO(),OI=pO(),TI=SO(),EI=_O(),CI=TO(),gI=Wc(),bI=CO(),PI=bO(),AI=AO(),wI=RO(),RI=Gc(),MI=Hc(),II=IO(),qI=NO(),NI=Vc(),jI=we();O.errors=VO();O.recipe=QO();O.errorCode=jI.ErrorCode;O.actionStatusType=oR.ActionStatusType;O.actionType=aR.ActionType;var ZO;(function(t){let e;(function(y){y.coaOffer=q0,y.pay=N0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=U0})(S=y.paymentMethod||(y.paymentMethod={}));let m;(function(g){g.eventService=x0})(m=y.offer||(y.offer={})),y.invoice=j0,y.ticketedObject=D0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=L0,y.reservation=F0})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(m){m.movieTicket=k0})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=B0})(s=t.check||(t.check={})),t.create=G0;let i;(function(y){let S;(function(m){m.pay=K0,m.reservation=W0})(S=y.confirm||(y.confirm={})),y.inform=H0})(i=t.interact||(t.interact={}));let u;(function(y){y.order=z0,y.pay=Y0,y.refund=Q0})(u=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=Z0,g.order=J0,g.reserveTransaction=X0})(S=y.returnAction||(y.returnAction={}));let m;(function(g){let w;(function(R){R.email=eR})(w=g.message||(g.message={})),g.order=tR})(m=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=rR,y.deleteAction=nR,y.replace=sR,y.update=iR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(m){m.reservation=$0})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=V0})(ZO||(O.action=ZO={}));O.accountTitle=cR;O.additionalProperty=uR;O.aggregation=dR;O.authorization=lR;O.categoryCode=fR;O.clientUser=yR;var JO;(function(t){let e;(function(s){s.softwareApplication=pR,s.webApplication=vR,s.webSite=SR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=mR})(r=t.message||(t.message={})),t.movie=_R,t.noteDigitalDocument=OR;let n;(function(s){s.softwareApplication=TR,s.webApplication=ER})(n=t.softwareApplication||(t.softwareApplication={}))})(JO||(O.creativeWork=JO={}));O.creativeWorkType=CR.CreativeWorkType;O.customer=gR;var XO;(function(t){t.screeningEvent=AR})(XO||(O.event=XO={}));O.encodingFormat=bR;O.eventStatusType=wR.EventStatusType;O.eventType=RR.EventType;O.iam=MR;O.identityProvider=IR;O.invoice=qR;O.itemAvailability=NR.ItemAvailability;O.language=jR;O.merchantReturnPolicy=xR;O.monetaryAmount=UR;O.movieTicketType=DR;var eT;(function(t){t.event=qM,t.eventSeries=NM,t.order=UM,t.reservation=$M,t.payAction=DM,t.refundAction=BM,t.accountTitle=RM,t.categoryCode=MM,t.creativeWork=IM,t.offer=jM,t.offerCatalog=xM,t.person=LM,t.place=FM,t.product=kM,t.task=GM,t.transaction=KM})(eT||(O.notification=eT={}));O.offerCatalog=LR;O.offerItemCondition=FR;O.offerType=kR.OfferType;O.orderStatus=BR.OrderStatus;O.organization=$R;O.organizationType=GR.OrganizationType;O.ownershipInfo=KR;var tT;(function(t){let e;(function(r){r.creditCard=WR,r.movieTicket=HR})(e=t.paymentCard||(t.paymentCard={}))})(tT||(O.paymentMethod=tT={}));O.paymentStatusType=VR.PaymentStatusType;O.permit=zR;O.person=YR;O.personType=QR.PersonType;O.priceCurrency=sM.PriceCurrency;var rT;(function(t){t.entranceGate=ZR,t.movieTheater=JR,t.screeningRoom=XR,t.screeningRoomSection=eM,t.seat=tM})(rT||(O.place=rT={}));O.placeType=rM.PlaceType;var nT;(function(t){t.unitPrice=iM})(nT||(O.priceSpecification=nT={}));O.priceSpecificationType=oM.PriceSpecificationType;O.programMembership=cM;O.product=aM;var sT;(function(t){t.PropertyValueType=uM.PropertyValueType,t.locationFeatureSpecification=dM})(sT||(O.propertyValue=sT={}));O.qualitativeValue=lM;O.quantitativeValue=fM;var iT;(function(t){t.accountingReport=hM})(iT||(O.report=iT={}));var oT;(function(t){t.eventReservation=yM})(oT||(O.reservation=oT={}));O.reservationStatusType=pM.ReservationStatusType;O.reservationType=vM.ReservationType;var aT;(function(t){t.RoleType=mM.RoleType,t.organizationRole=_M})(aT||(O.role=aT={}));O.schedule=OM;O.seller=TM;O.sellerReturnPolicy=EM;var cT;(function(t){t.acceptCOAOffer=WM,t.aggregateOffers=HM,t.aggregateOnSystem=VM,t.aggregateScreeningEvent=zM,t.authorizePayment=YM,t.cancelPendingReservation=QM,t.cancelReservation=ZM,t.checkMovieTicket=JM,t.checkResource=XM,t.createAccountingReport=tI,t.confirmReserveTransaction=eI,t.deletePerson=rI,t.deleteTransaction=nI,t.handleNotification=sI,t.importEventCapacitiesFromCOA=iI,t.importEventsFromCOA=oI,t.importOffersFromCOA=aI,t.invalidatePaymentUrl=cI,t.onAssetTransactionStatusChanged=uI,t.pay=yI,t.publishPaymentUrl=pI,t.refund=vI,t.reserve=SI,t.sendEmailMessage=mI,t.syncResourcesFromCOA=_I,t.triggerWebhook=OI,t.useReservation=TI,t.voidPayment=EI,t.onAuthorizationCreated=dI,t.onEventChanged=lI,t.onResourceDeleted=fI,t.onResourceUpdated=hI})(cT||(O.task=cT={}));var uT;(function(t){t.paymentService=CM,t.webAPI=gM})(uT||(O.service=uT={}));O.serviceChannel=bM;O.sortType=PM.SortType;O.taskName=CI.TaskName;O.taskStatus=gI.TaskStatus;O.thing=AM;var dT;(function(t){t.cancelReservation=bI,t.pay=PI,t.refund=AI,t.reserve=wI})(dT||(O.assetTransaction=dT={}));var lT;(function(t){t.placeOrder=II,t.returnOrder=qI})(lT||(O.transaction=lT={}));O.transactionType=NI.TransactionType;O.transactionStatusType=MI.TransactionStatusType;O.assetTransactionType=RI.AssetTransactionType;O.unitCode=wM.UnitCode});var hT=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.ChevreFactory=void 0;Us.ChevreFactory=fT()});var Q=o(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.factory=void 0;var xI=hT();Object.defineProperty(Ds,"factory",{enumerable:!0,get:function(){return xI.ChevreFactory}})});var pT=o((s2,yT)=>{var Zt=1e3,Jt=Zt*60,Xt=Jt*60,Nt=Xt*24,UI=Nt*7,DI=Nt*365.25;yT.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return LI(t);if(r==="number"&&isFinite(t))return e.long?kI(t):FI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function LI(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*DI;case"weeks":case"week":case"w":return r*UI;case"days":case"day":case"d":return r*Nt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Xt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Jt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Zt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function FI(t){var e=Math.abs(t);return e>=Nt?Math.round(t/Nt)+"d":e>=Xt?Math.round(t/Xt)+"h":e>=Jt?Math.round(t/Jt)+"m":e>=Zt?Math.round(t/Zt)+"s":t+"ms"}function kI(t){var e=Math.abs(t);return e>=Nt?Ls(t,e,Nt,"day"):e>=Xt?Ls(t,e,Xt,"hour"):e>=Jt?Ls(t,e,Jt,"minute"):e>=Zt?Ls(t,e,Zt,"second"):t+" ms"}function Ls(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var ST=o((i2,vT)=>{function BI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=u,r.enable=s,r.enabled=d,r.humanize=pT(),r.destroy=p,Object.keys(t).forEach(y=>{r[y]=t[y]}),r.names=[],r.skips=[],r.formatters={};function e(y){let S=0;for(let m=0;m<y.length;m++)S=(S<<5)-S+y.charCodeAt(m),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=e;function r(y){let S,m=null,g,w;function R(...I){if(!R.enabled)return;let D=R,C=Number(new Date),M=C-(S||C);D.diff=M,D.prev=S,D.curr=C,S=C,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let U=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(K,j)=>{if(K==="%%")return"%";U++;let B=r.formatters[j];if(typeof B=="function"){let W=I[U];K=B.call(D,W),I.splice(U,1),U--}return K}),r.formatArgs.call(D,I),(D.log||r.log).apply(D,I)}return R.namespace=y,R.useColors=r.useColors(),R.color=r.selectColor(y),R.extend=n,R.destroy=r.destroy,Object.defineProperty(R,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==r.namespaces&&(g=r.namespaces,w=r.enabled(y)),w),set:I=>{m=I}}),typeof r.init=="function"&&r.init(R),R}function n(y,S){let m=r(this.namespace+(typeof S>"u"?":":S)+y);return m.log=this.log,m}function s(y){r.save(y),r.namespaces=y,r.names=[],r.skips=[];let S=(typeof y=="string"?y:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of S)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}function i(y,S){let m=0,g=0,w=-1,R=0;for(;m<y.length;)if(g<S.length&&(S[g]===y[m]||S[g]==="*"))S[g]==="*"?(w=g,R=m,g++):(m++,g++);else if(w!==-1)g=w+1,R++,m=R;else return!1;for(;g<S.length&&S[g]==="*";)g++;return g===S.length}function u(){let y=[...r.names,...r.skips.map(S=>"-"+S)].join(",");return r.enable(""),y}function d(y){for(let S of r.skips)if(i(y,S))return!1;for(let S of r.names)if(i(y,S))return!0;return!1}function f(y){return y instanceof Error?y.stack||y.message:y}function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}vT.exports=BI});var er=o((Me,Fs)=>{Me.formatArgs=GI;Me.save=KI;Me.load=WI;Me.useColors=$I;Me.storage=HI();Me.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Me.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function $I(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function GI(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Fs.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}Me.log=console.debug||console.log||(()=>{});function KI(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function WI(){let t;try{t=Me.storage.getItem("debug")||Me.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function HI(){try{return localStorage}catch{}}Fs.exports=ST()(Me);var{formatters:VI}=Fs.exports;VI.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ks=o(De=>{"use strict";var zI=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.StubTransporter=De.DefaultTransporter=De.RequestError=De.Transporter=void 0;var YI=zI(er()),mT=(0,YI.default)("cinerino-sdk:transporters"),uu=class{};De.Transporter=uu;var tr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=tr;var du=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return mT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new tr("An unexpected error occurred");if(mT("request processed",e.status),this.expectedStatusCodes.indexOf(e.status)<0){let n;try{n=await e.clone().json()}catch{n=await e.clone().text()}typeof n=="object"&&n.error!==void 0?(r=new tr(n.error.message),r.code=e.status,r.errors=n.error.errors):(r=new tr(n),r.code=e.status,r.errors=[])}else return e;throw r}};De.DefaultTransporter=du;var lu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=lu});var OT=o(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});var q={"1xx":"Informational","1xx_NAME":"INFORMATIONAL","1xx_MESSAGE":"Indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.",INFORMATIONAL:"1xx","2xx":"Successful","2xx_NAME":"SUCCESSFUL","2xx_MESSAGE":"Indicates that the client's request was successfully received, understood, and accepted.",SUCCESSFUL:"2xx","3xx":"Redirection","3xx_NAME":"REDIRECTION","3xx_MESSAGE":"Indicates that further action needs to be taken by the user agent in order to fulfill the request.",REDIRECTION:"3xx","4xx":"Client Error","4xx_NAME":"CLIENT_ERROR","4xx_MESSAGE":"Indicates that the client seems to have erred.",CLIENT_ERROR:"4xx","5xx":"Server Error","5xx_NAME":"SERVER_ERROR","5xx_MESSAGE":"Indicates that the server is aware that it has erred or is incapable of performing the requested method.",SERVER_ERROR:"5xx"},_T=rr.a={classes:q,100:"Continue","100_NAME":"CONTINUE","100_MESSAGE":"The server has received the request headers and the client should proceed to send the request body.","100_CLASS":q.INFORMATIONAL,CONTINUE:100,101:"Switching Protocols","101_NAME":"SWITCHING_PROTOCOLS","101_MESSAGE":"The requester has asked the server to switch protocols and the server has agreed to do so.","101_CLASS":q.INFORMATIONAL,SWITCHING_PROTOCOLS:101,102:"Processing","102_NAME":"PROCESSING","102_MESSAGE":"A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.","102_CLASS":q.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":q.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":q.SUCCESSFUL,OK:200,201:"Created","201_NAME":"CREATED","201_MESSAGE":"The request has been fulfilled, resulting in the creation of a new resource.","201_CLASS":q.SUCCESSFUL,CREATED:201,202:"Accepted","202_NAME":"ACCEPTED","202_MESSAGE":"The request has been accepted for processing, but the processing has not been completed.","202_CLASS":q.SUCCESSFUL,ACCEPTED:202,203:"Non-Authoritative Information","203_NAME":"NON_AUTHORITATIVE_INFORMATION","203_MESSAGE":"The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.","203_CLASS":q.SUCCESSFUL,NON_AUTHORITATIVE_INFORMATION:203,204:"No Content","204_NAME":"NO_CONTENT","204_MESSAGE":"The server successfully processed the request and is not returning any content.","204_CLASS":q.SUCCESSFUL,NO_CONTENT:204,205:"Reset Content","205_NAME":"RESET_CONTENT","205_MESSAGE":"The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.","205_CLASS":q.SUCCESSFUL,RESET_CONTENT:205,206:"Partial Content","206_NAME":"PARTIAL_CONTENT","206_MESSAGE":"The server is delivering only part of the resource (byte serving) due to a range header sent by the client.","206_CLASS":q.SUCCESSFUL,PARTIAL_CONTENT:206,207:"Multi Status","207_NAME":"MULTI_STATUS","207_MESSAGE":"The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.","207_CLASS":q.SUCCESSFUL,MULTI_STATUS:207,208:"Already Reported","208_NAME":"ALREADY_REPORTED","208_MESSAGE":"The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.","208_CLASS":q.SUCCESSFUL,ALREADY_REPORTED:208,226:"IM Used","226_NAME":"IM_USED","226_MESSAGE":"The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.","226_CLASS":q.SUCCESSFUL,IM_USED:226,300:"Multiple Choices","300_NAME":"MULTIPLE_CHOICES","300_MESSAGE":"Indicates multiple options for the resource from which the client may choose.","300_CLASS":q.REDIRECTION,MULTIPLE_CHOICES:300,301:"Moved Permanently","301_NAME":"MOVED_PERMANENTLY","301_MESSAGE":"This and all future requests should be directed to the given URI.","301_CLASS":q.REDIRECTION,MOVED_PERMANENTLY:301,302:"Found","302_NAME":"FOUND","302_MESSAGE":'This is an example of industry practice contradicting the standard. The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302 with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish between the two behaviours.',"302_CLASS":q.REDIRECTION,FOUND:302,303:"See Other","303_NAME":"SEE_OTHER","303_MESSAGE":"The response to the request can be found under another URI using the GET method.","303_CLASS":q.REDIRECTION,SEE_OTHER:303,304:"Not Modified","304_NAME":"NOT_MODIFIED","304_MESSAGE":"Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.","304_CLASS":q.REDIRECTION,NOT_MODIFIED:304,305:"Use Proxy","305_NAME":"USE_PROXY","305_MESSAGE":"The requested resource is available only through a proxy, the address for which is provided in the response.","305_CLASS":q.REDIRECTION,USE_PROXY:305,306:"Switch Proxy","306_NAME":"SWITCH_PROXY","306_MESSAGE":'No longer used. Originally meant "Subsequent requests should use the specified proxy.',"306_CLASS":q.REDIRECTION,SWITCH_PROXY:306,307:"Temporary Redirect","307_NAME":"TEMPORARY_REDIRECT","307_MESSAGE":"In this case, the request should be repeated with another URI; however, future requests should still use the original URI.","307_CLASS":q.REDIRECTION,TEMPORARY_REDIRECT:307,308:"Permanent Redirect","308_NAME":"PERMANENT_REDIRECT","308_MESSAGE":"The request and all future requests should be repeated using another URI.","308_CLASS":q.REDIRECTION,PERMANENT_REDIRECT:308,400:"Bad Request","400_NAME":"BAD_REQUEST","400_MESSAGE":"The server cannot or will not process the request due to an apparent client error.","400_CLASS":q.CLIENT_ERROR,BAD_REQUEST:400,401:"Unauthorized","401_NAME":"UNAUTHORIZED","401_MESSAGE":"Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.","401_CLASS":q.CLIENT_ERROR,UNAUTHORIZED:401,402:"Payment Required","402_NAME":"PAYMENT_REQUIRED","402_MESSAGE":"Reserved for future use. The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, as proposed for example by GNU Taler, but that has not yet happened, and this code is not usually used.","402_CLASS":q.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":q.CLIENT_ERROR,FORBIDDEN:403,404:"Not Found","404_NAME":"NOT_FOUND","404_MESSAGE":"The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.","404_CLASS":q.CLIENT_ERROR,NOT_FOUND:404,405:"Method Not Allowed","405_NAME":"METHOD_NOT_ALLOWED","405_MESSAGE":"A request method is not supported for the requested resource.","405_CLASS":q.CLIENT_ERROR,METHOD_NOT_ALLOWED:405,406:"Not Acceptable","406_NAME":"NOT_ACCEPTABLE","406_MESSAGE":"The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.","406_CLASS":q.CLIENT_ERROR,NOT_ACCEPTABLE:406,407:"Proxy Authentication Required","407_NAME":"PROXY_AUTHENTICATION_REQUIRED","407_MESSAGE":"The client must first authenticate itself with the proxy.","407_CLASS":q.CLIENT_ERROR,PROXY_AUTHENTICATION_REQUIRED:407,408:"Request Time-out","408_NAME":"REQUEST_TIMEOUT","408_MESSAGE":"The server timed out waiting for the request.","408_CLASS":q.CLIENT_ERROR,REQUEST_TIMEOUT:408,409:"Conflict","409_NAME":"CONFLICT","409_MESSAGE":"Indicates that the request could not be processed because of conflict in the request, such as an edit conflict between multiple simultaneous updates.","409_CLASS":q.CLIENT_ERROR,CONFLICT:409,410:"Gone","410_NAME":"GONE","410_MESSAGE":"Indicates that the resource requested is no longer available and will not be available again.","410_CLASS":q.CLIENT_ERROR,GONE:410,411:"Length Required","411_NAME":"LENGTH_REQUIRED","411_MESSAGE":"The request did not specify the length of its content, which is required by the requested resource.","411_CLASS":q.CLIENT_ERROR,LENGTH_REQUIRED:411,412:"Precondition Failed","412_NAME":"PRECONDITION_FAILED","412_MESSAGE":"The server does not meet one of the preconditions that the requester put on the request.","412_CLASS":q.CLIENT_ERROR,PRECONDITION_FAILED:412,413:"Request Entity Too Large","413_NAME":"REQUEST_ENTITY_TOO_LARGE","413_MESSAGE":'The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".',"413_CLASS":q.CLIENT_ERROR,REQUEST_ENTITY_TOO_LARGE:413,414:"Request-URI Too Large","414_NAME":"REQUEST_URI_TOO_LONG","414_MESSAGE":"The URI provided was too long for the server to process.","414_CLASS":q.CLIENT_ERROR,REQUEST_URI_TOO_LONG:414,415:"Unsupported Media Type","415_NAME":"UNSUPPORTED_MEDIA_TYPE","415_MESSAGE":"The request entity has a media type which the server or resource does not support.","415_CLASS":q.CLIENT_ERROR,UNSUPPORTED_MEDIA_TYPE:415,416:"Requested Range not Satisfiable","416_NAME":"REQUESTED_RANGE_NOT_SATISFIABLE","416_MESSAGE":"The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.","416_CLASS":q.CLIENT_ERROR,REQUESTED_RANGE_NOT_SATISFIABLE:416,417:"Expectation Failed","417_NAME":"EXPECTATION_FAILED","417_MESSAGE":"The server cannot meet the requirements of the Expect request-header field.","417_CLASS":q.CLIENT_ERROR,EXPECTATION_FAILED:417,418:"I'm a teapot","418_NAME":"IM_A_TEAPOT","418_MESSAGE":`Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.`,"418_CLASS":q.CLIENT_ERROR,IM_A_TEAPOT:418,421:"Misdirected Request","421_NAME":"MISDIRECTED_REQUEST","421_MESSAGE":"The request was directed at a server that is not able to produce a response.","421_CLASS":q.CLIENT_ERROR,MISDIRECTED_REQUEST:421,422:"Unprocessable Entity","422_NAME":"UNPROCESSABLE_ENTITY","422_MESSAGE":"The request was well-formed but was unable to be followed due to semantic errors.","422_CLASS":q.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":q.CLIENT_ERROR,LOCKED:423,424:"Failed Dependency","424_NAME":"FAILED_DEPENDENCY","424_MESSAGE":"The request failed because it depended on another request and that request failed.","424_CLASS":q.CLIENT_ERROR,FAILED_DEPENDENCY:424,425:"Too Early","425_NAME":"TOO_EARLY","425_MESSAGE":"The server is unwilling to risk processing a request that might be replayed.","425_CLASS":q.CLIENT_ERROR,TOO_EARLY:425,426:"Upgrade Required","426_NAME":"UPGRADE_REQUIRED","426_MESSAGE":"The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.","426_CLASS":q.CLIENT_ERROR,UPGRADE_REQUIRED:426,428:"Precondition Required","428_NAME":"PRECONDITION_REQUIRED","428_MESSAGE":"The origin server requires the request to be conditional.","428_CLASS":q.CLIENT_ERROR,PRECONDITION_REQUIRED:428,429:"Too Many Requests","429_NAME":"TOO_MANY_REQUESTS","429_MESSAGE":"The user has sent too many requests in a given amount of time.","429_CLASS":q.CLIENT_ERROR,TOO_MANY_REQUESTS:429,431:"Request Header Fields Too Large","431_NAME":"REQUEST_HEADER_FIELDS_TOO_LARGE","431_MESSAGE":"The server is unwilling to process the request because either an individual header field, or all the header fields collectively, are too large.","431_CLASS":q.CLIENT_ERROR,REQUEST_HEADER_FIELDS_TOO_LARGE:431,451:"Unavailable For Legal Reasons","451_NAME":"UNAVAILABLE_FOR_LEGAL_REASONS","451_MESSAGE":"A server operator has received a legal demand to deny access to a resource or to a set of resources that includes the requested resource.","451_CLASS":q.CLIENT_ERROR,UNAVAILABLE_FOR_LEGAL_REASONS:451,500:"Internal Server Error","500_NAME":"INTERNAL_SERVER_ERROR","500_MESSAGE":"A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.","500_CLASS":q.SERVER_ERROR,INTERNAL_SERVER_ERROR:500,501:"Not Implemented","501_NAME":"NOT_IMPLEMENTED","501_MESSAGE":"The server either does not recognize the request method, or it lacks the ability to fulfil the request. Usually this implies future availability.","501_CLASS":q.SERVER_ERROR,NOT_IMPLEMENTED:501,502:"Bad Gateway","502_NAME":"BAD_GATEWAY","502_MESSAGE":"The server was acting as a gateway or proxy and received an invalid response from the upstream server.","502_CLASS":q.SERVER_ERROR,BAD_GATEWAY:502,503:"Service Unavailable","503_NAME":"SERVICE_UNAVAILABLE","503_MESSAGE":"The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state.","503_CLASS":q.SERVER_ERROR,SERVICE_UNAVAILABLE:503,504:"Gateway Time-out","504_NAME":"GATEWAY_TIMEOUT","504_MESSAGE":"The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.","504_CLASS":q.SERVER_ERROR,GATEWAY_TIMEOUT:504,505:"HTTP Version not Supported","505_NAME":"HTTP_VERSION_NOT_SUPPORTED","505_MESSAGE":"The server does not support the HTTP protocol version used in the request.","505_CLASS":q.SERVER_ERROR,HTTP_VERSION_NOT_SUPPORTED:505,506:"Variant Also Negotiates","506_NAME":"VARIANT_ALSO_NEGOTIATES","506_MESSAGE":"Transparent content negotiation for the request results in a circular reference.","506_CLASS":q.SERVER_ERROR,VARIANT_ALSO_NEGOTIATES:506,507:"Insufficient Storage","507_NAME":"INSUFFICIENT_STORAGE","507_MESSAGE":"The server is unable to store the representation needed to complete the request.","507_CLASS":q.SERVER_ERROR,INSUFFICIENT_STORAGE:507,508:"Loop Detected","508_NAME":"LOOP_DETECTED","508_MESSAGE":"The server detected an infinite loop while processing the request.","508_CLASS":q.SERVER_ERROR,LOOP_DETECTED:508,510:"Not Extended","510_NAME":"NOT_EXTENDED","510_MESSAGE":"Further extensions to the request are required for the server to fulfil it.","510_CLASS":q.SERVER_ERROR,NOT_EXTENDED:510,511:"Network Authentication Required","511_NAME":"NETWORK_AUTHENTICATION_REQUIRED","511_MESSAGE":"The client needs to authenticate to gain network access. Intended for use by intercepting proxies used to control access to the network.","511_CLASS":q.SERVER_ERROR,NETWORK_AUTHENTICATION_REQUIRED:511,extra:{unofficial:{103:"Checkpoint","103_NAME":"CHECKPOINT","103_MESSAGE":"Used in the resumable requests proposal to resume aborted PUT or POST requests.","103_CLASS":q.INFORMATIONAL,CHECKPOINT:103,419:"Page Expired","419_NAME":"PAGE_EXPIRED","419_MESSAGE":"Used by the Laravel Framework when a CSRF Token is missing or expired.","419_CLASS":q.CLIENT_ERROR,PAGE_EXPIRED:419,218:"This is fine","218_NAME":"THIS_IS_FINE","218_MESSAGE":"Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled. When ProxyErrorOverride is enabled in Apache, response bodies that contain a status code of 4xx or 5xx are automatically discarded by Apache in favor of a generic response or a custom response specified by the ErrorDocument directive.","218_CLASS":q.SUCCESSFUL,THIS_IS_FINE:218,420:"Enhance Your Calm","420_NAME":"ENHANCE_YOUR_CALM","420_MESSAGE":"Returned by version 1 of the Twitter Search and Trends API when the client is being rate limited; versions 1.1 and later use the 429 Too Many Requests response code instead.","420_CLASS":q.CLIENT_ERROR,ENHANCE_YOUR_CALM:420,450:"Blocked by Windows Parental Controls","450_NAME":"BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS","450_MESSAGE":"The Microsoft extension code indicated when Windows Parental Controls are turned on and are blocking access to the requested webpage.","450_CLASS":q.CLIENT_ERROR,BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS:450,498:"Invalid Token","498_NAME":"INVALID_TOKEN","498_MESSAGE":"Returned by ArcGIS for Server. Code 498 indicates an expired or otherwise invalid token.","498_CLASS":q.CLIENT_ERROR,INVALID_TOKEN:498,499:"Token Required","499_NAME":"TOKEN_REQUIRED","499_MESSAGE":"Returned by ArcGIS for Server. Code 499 indicates that a token is required but was not submitted.","499_CLASS":q.CLIENT_ERROR,TOKEN_REQUIRED:499,509:"Bandwidth Limit Exceeded","509_NAME":"BANDWIDTH_LIMIT_EXCEEDED","509_MESSAGE":"The server has exceeded the bandwidth specified by the server administrator.","509_CLASS":q.SERVER_ERROR,BANDWIDTH_LIMIT_EXCEEDED:509,530:"Site is frozen","530_NAME":"SITE_IS_FROZEN","530_MESSAGE":"Used by the Pantheon web platform to indicate a site that has been frozen due to inactivity.","530_CLASS":q.SERVER_ERROR,SITE_IS_FROZEN:530,598:"Network read timeout error","598_NAME":"NETWORK_READ_TIMEOUT_ERROR","598_MESSAGE":"Used by some HTTP proxies to signal a network read timeout behind the proxy to a client in front of the proxy.","598_CLASS":q.SERVER_ERROR,NETWORK_READ_TIMEOUT_ERROR:598},iis:{440:"Login Time-out","440_NAME":"LOGIN_TIME_OUT","440_MESSAGE":"The client's session has expired and must log in again.","440_CLASS":q.CLIENT_ERROR,LOGIN_TIME_OUT:440,449:"Retry With","449_NAME":"RETRY_WITH","449_MESSAGE":"The server cannot honour the request because the user has not provided the required information.","449_CLASS":q.CLIENT_ERROR,RETRY_WITH:449,451:"Redirect","451_NAME":"REDIRECT","451_MESSAGE":"Used in Exchange ActiveSync when either a more efficient server is available or the server cannot access the users' mailbox.","451_CLASS":q.CLIENT_ERROR,REDIRECT:451},nginx:{444:"No Response","444_NAME":"NO_RESPONSE","444_MESSAGE":"Used internally to instruct the server to return no information to the client and close the connection immediately.","444_CLASS":q.CLIENT_ERROR,NO_RESPONSE:444,494:"Request header too large","494_NAME":"REQUEST_HEADER_TOO_LARGE","494_MESSAGE":"Client sent too large request or too long header line.","494_CLASS":q.CLIENT_ERROR,REQUEST_HEADER_TOO_LARGE:494,495:"SSL Certificate Error","495_NAME":"SSL_CERTIFICATE_ERROR","495_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.","495_CLASS":q.CLIENT_ERROR,SSL_CERTIFICATE_ERROR:495,496:"SSL Certificate Required","496_NAME":"SSL_CERTIFICATE_REQUIRED","496_MESSAGE":"An expansion of the 400 Bad Request response code, used when a client certificate is required but not provided.","496_CLASS":q.CLIENT_ERROR,SSL_CERTIFICATE_REQUIRED:496,497:"HTTP Request Sent to HTTPS Port","497_NAME":"HTTP_REQUEST_SENT_TO_HTTPS_PORT","497_MESSAGE":"An expansion of the 400 Bad Request response code, used when the client has made a HTTP request to a port listening for HTTPS requests.","497_CLASS":q.CLIENT_ERROR,HTTP_REQUEST_SENT_TO_HTTPS_PORT:497,499:"Client Closed Request","499_NAME":"CLIENT_CLOSED_REQUEST","499_MESSAGE":"Used when the client has closed the request before the server could send a response.","499_CLASS":q.CLIENT_ERROR,CLIENT_CLOSED_REQUEST:499},cloudflare:{520:"Unknown Error","520_NAME":"UNKNOWN_ERROR","520_MESSAGE":'The 520 error is used as a "catch-all response for when the origin server returns something unexpected", listing connection resets, large headers, and empty or invalid responses as common triggers.',"520_CLASS":q.SERVER_ERROR,UNKNOWN_ERROR:520,521:"Web Server Is Down","521_NAME":"WEB_SERVER_IS_DOWN","521_MESSAGE":"The origin server has refused the connection from Cloudflare.","521_CLASS":q.SERVER_ERROR,WEB_SERVER_IS_DOWN:521,522:"Connection Timed Out","522_NAME":"CONNECTION_TIMED_OUT","522_MESSAGE":"Cloudflare could not negotiate a TCP handshake with the origin server.","522_CLASS":q.SERVER_ERROR,CONNECTION_TIMED_OUT:522,523:"Origin Is Unreachable","523_NAME":"ORIGIN_IS_UNREACHABLE","523_MESSAGE":"Cloudflare could not reach the origin server.","523_CLASS":q.SERVER_ERROR,ORIGIN_IS_UNREACHABLE:523,524:"A Timeout Occurred","524_NAME":"A_TIMEOUT_OCCURRED","524_MESSAGE":"Cloudflare was able to complete a TCP connection to the origin server, but did not receive a timely HTTP response.","524_CLASS":q.SERVER_ERROR,A_TIMEOUT_OCCURRED:524,525:"SSL Handshake Failed","525_NAME":"SSL_HANDSHAKE_FAILED","525_MESSAGE":"Cloudflare could not negotiate a SSL/TLS handshake with the origin server.","525_CLASS":q.SERVER_ERROR,SSL_HANDSHAKE_FAILED:525,526:"Invalid SSL Certificate","526_NAME":"INVALID_SSL_CERTIFICATE","526_MESSAGE":"Cloudflare could not validate the SSL/TLS certificate that the origin server presented.","526_CLASS":q.SERVER_ERROR,INVALID_SSL_CERTIFICATE:526,527:"Railgun Error","527_NAME":"RAILGUN_ERROR","527_MESSAGE":"Error 527 indicates that the request timed out or failed after the WAN connection had been established.","527_CLASS":q.SERVER_ERROR,RAILGUN_ERROR:527}}},QI=rr.b=_T;rr.a=_T;rr.b=QI});var b=o(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var TT=OT();Bs.default=TT.b;Bs.status=TT.a});var jt=o((u2,ET)=>{"use strict";ET.exports=TypeError});var CT=o(()=>{});var kr=o((f2,GT)=>{var Tu=typeof Map=="function"&&Map.prototype,fu=Object.getOwnPropertyDescriptor&&Tu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gs=Tu&&fu&&typeof fu.get=="function"?fu.get:null,gT=Tu&&Map.prototype.forEach,Eu=typeof Set=="function"&&Set.prototype,hu=Object.getOwnPropertyDescriptor&&Eu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ks=Eu&&hu&&typeof hu.get=="function"?hu.get:null,bT=Eu&&Set.prototype.forEach,ZI=typeof WeakMap=="function"&&WeakMap.prototype,Dr=ZI?WeakMap.prototype.has:null,JI=typeof WeakSet=="function"&&WeakSet.prototype,Lr=JI?WeakSet.prototype.has:null,XI=typeof WeakRef=="function"&&WeakRef.prototype,PT=XI?WeakRef.prototype.deref:null,eq=Boolean.prototype.valueOf,tq=Object.prototype.toString,rq=Function.prototype.toString,nq=String.prototype.match,Cu=String.prototype.slice,Ct=String.prototype.replace,sq=String.prototype.toUpperCase,AT=String.prototype.toLowerCase,UT=RegExp.prototype.test,wT=Array.prototype.concat,ut=Array.prototype.join,iq=Array.prototype.slice,RT=Math.floor,vu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yu=Object.getOwnPropertySymbols,Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,nr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===nr||!0)?Symbol.toStringTag:null,DT=Object.prototype.propertyIsEnumerable,MT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function IT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||UT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-RT(-t):RT(t);if(n!==t){var s=String(n),i=Cu.call(e,s.length+1);return Ct.call(s,r,"$&_")+"."+Ct.call(Ct.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ct.call(e,r,"$&_")}var mu=CT(),qT=mu.custom,NT=kT(qT)?qT:null,LT={__proto__:null,double:'"',single:"'"},oq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};GT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(LT,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=vt(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return $T(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?IT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?IT(e,p):p}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return _u(e)?"[Array]":"[Object]";var S=gq(i,n);if(typeof s>"u")s=[];else if(BT(s,e)>=0)return"[Circular]";function m(oe,se,ie){if(se&&(s=iq.call(s),s.push(se)),ie){var ee={depth:i.depth};return vt(i,"quoteStyle")&&(ee.quoteStyle=i.quoteStyle),t(oe,ee,n+1,s)}return t(oe,i,n+1,s)}if(typeof e=="function"&&!jT(e)){var g=pq(e),w=$s(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(kT(e)){var R=nr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Su.call(e);return typeof e=="object"&&!nr?Ur(R):R}if(Tq(e)){for(var I="<"+AT.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)I+=" "+D[C].name+"="+FT(aq(D[C].value),"double",i);return I+=">",e.childNodes&&e.childNodes.length&&(I+="..."),I+="</"+AT.call(String(e.nodeName))+">",I}if(_u(e)){if(e.length===0)return"[]";var M=$s(e,m);return S&&!Cq(M)?"["+Ou(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(uq(e)){var U=$s(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!DT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(wT.call("[cause]: "+m(e.cause),U),", ")+" }":U.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(U,", ")+" }"}if(typeof e=="object"&&u){if(NT&&typeof e[NT]=="function"&&mu)return mu(e,{depth:y-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(vq(e)){var k=[];return gT&&gT.call(e,function(oe,se){k.push(m(se,e,!0)+" => "+m(oe,e))}),xT("Map",Gs.call(e),k,S)}if(_q(e)){var K=[];return bT&&bT.call(e,function(oe){K.push(m(oe,e))}),xT("Set",Ks.call(e),K,S)}if(Sq(e))return pu("WeakMap");if(Oq(e))return pu("WeakSet");if(mq(e))return pu("WeakRef");if(lq(e))return Ur(m(Number(e)));if(hq(e))return Ur(m(vu.call(e)));if(fq(e))return Ur(eq.call(e));if(dq(e))return Ur(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!cq(e)&&!jT(e)){var j=$s(e,m),B=MT?MT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!B&&Fr&&Object(e)===e&&Fr in e?Cu.call(gt(e),8,-1):W?"Object":"",Y=B||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Y+($||W?"["+ut.call(wT.call([],$||[],W||[]),": ")+"] ":"");return j.length===0?Te+"{}":S?Te+"{"+Ou(j,S)+"}":Te+"{ "+ut.call(j,", ")+" }"}return String(e)};function FT(t,e,r){var n=r.quoteStyle||e,s=LT[n];return s+t+s}function aq(t){return Ct.call(String(t),/"/g,"&quot;")}function xt(t){return!Fr||!(typeof t=="object"&&(Fr in t||typeof t[Fr]<"u"))}function _u(t){return gt(t)==="[object Array]"&&xt(t)}function cq(t){return gt(t)==="[object Date]"&&xt(t)}function jT(t){return gt(t)==="[object RegExp]"&&xt(t)}function uq(t){return gt(t)==="[object Error]"&&xt(t)}function dq(t){return gt(t)==="[object String]"&&xt(t)}function lq(t){return gt(t)==="[object Number]"&&xt(t)}function fq(t){return gt(t)==="[object Boolean]"&&xt(t)}function kT(t){if(nr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Su)return!1;try{return Su.call(t),!0}catch{}return!1}function hq(t){if(!t||typeof t!="object"||!vu)return!1;try{return vu.call(t),!0}catch{}return!1}var yq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return yq.call(t,e)}function gt(t){return tq.call(t)}function pq(t){if(t.name)return t.name;var e=nq.call(rq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function BT(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function vq(t){if(!Gs||!t||typeof t!="object")return!1;try{Gs.call(t);try{Ks.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Sq(t){if(!Dr||!t||typeof t!="object")return!1;try{Dr.call(t,Dr);try{Lr.call(t,Lr)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function mq(t){if(!PT||!t||typeof t!="object")return!1;try{return PT.call(t),!0}catch{}return!1}function _q(t){if(!Ks||!t||typeof t!="object")return!1;try{Ks.call(t);try{Gs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Oq(t){if(!Lr||!t||typeof t!="object")return!1;try{Lr.call(t,Lr);try{Dr.call(t,Dr)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Tq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function $T(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return $T(Cu.call(t,0,e.maxStringLength),e)+n}var s=oq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,Eq);return FT(i,"single",e)}function Eq(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+sq.call(e.toString(16))}function Ur(t){return"Object("+t+")"}function pu(t){return t+" { ? }"}function xT(t,e,r,n){var s=n?Ou(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function Cq(t){for(var e=0;e<t.length;e++)if(BT(t[e],`
2
+ `)>=0)return!1;return!0}function gq(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ut.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ut.call(Array(e+1),r)}}function Ou(t,e){if(t.length===0)return"";var r=`
3
+ `+e.prev+e.base;return r+ut.call(t,","+r)+`
4
+ `+e.prev}function $s(t,e){var r=_u(t),n=[];if(r){n.length=t.length;for(var s=0;s<t.length;s++)n[s]=vt(t,s)?e(t[s],t):""}var i=typeof yu=="function"?yu(t):[],u;if(nr){u={};for(var d=0;d<i.length;d++)u["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||nr&&u["$"+f]instanceof Symbol||(UT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof yu=="function")for(var p=0;p<i.length;p++)DT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var WT=o((h2,KT)=>{"use strict";var bq=kr(),Pq=jt(),Ws=function(t,e,r){for(var n=t,s;(s=n.next)!=null;n=s)if(s.key===e)return n.next=s.next,r||(s.next=t.next,t.next=s),s},Aq=function(t,e){if(t){var r=Ws(t,e);return r&&r.value}},wq=function(t,e,r){var n=Ws(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Rq=function(t,e){return t?!!Ws(t,e):!1},Mq=function(t,e){if(t)return Ws(t,e,!0)};KT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Pq("Side channel does not contain "+bq(n))},delete:function(n){var s=Mq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Aq(e,n)},has:function(n){return Rq(e,n)},set:function(n,s){e||(e={next:void 0}),wq(e,n,s)}};return r}});var gu=o((y2,HT)=>{"use strict";HT.exports=Object});var zT=o((p2,VT)=>{"use strict";VT.exports=Error});var QT=o((v2,YT)=>{"use strict";YT.exports=EvalError});var JT=o((S2,ZT)=>{"use strict";ZT.exports=RangeError});var eE=o((m2,XT)=>{"use strict";XT.exports=ReferenceError});var rE=o((_2,tE)=>{"use strict";tE.exports=SyntaxError});var sE=o((O2,nE)=>{"use strict";nE.exports=URIError});var oE=o((T2,iE)=>{"use strict";iE.exports=Math.abs});var cE=o((E2,aE)=>{"use strict";aE.exports=Math.floor});var dE=o((C2,uE)=>{"use strict";uE.exports=Math.max});var fE=o((g2,lE)=>{"use strict";lE.exports=Math.min});var yE=o((b2,hE)=>{"use strict";hE.exports=Math.pow});var vE=o((P2,pE)=>{"use strict";pE.exports=Math.round});var mE=o((A2,SE)=>{"use strict";SE.exports=Number.isNaN||function(e){return e!==e}});var OE=o((w2,_E)=>{"use strict";var Iq=mE();_E.exports=function(e){return Iq(e)||e===0?e:e<0?-1:1}});var EE=o((R2,TE)=>{"use strict";TE.exports=Object.getOwnPropertyDescriptor});var bu=o((M2,CE)=>{"use strict";var Hs=EE();if(Hs)try{Hs([],"length")}catch{Hs=null}CE.exports=Hs});var bE=o((I2,gE)=>{"use strict";var Vs=Object.defineProperty||!1;if(Vs)try{Vs({},"a",{value:1})}catch{Vs=!1}gE.exports=Vs});var AE=o((q2,PE)=>{"use strict";PE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(e,r);if(d.value!==s||d.enumerable!==!0)return!1}return!0}});var ME=o((N2,RE)=>{"use strict";var wE=typeof Symbol<"u"&&Symbol,qq=AE();RE.exports=function(){return typeof wE!="function"||typeof Symbol!="function"||typeof wE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qq()}});var Pu=o((j2,IE)=>{"use strict";IE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Au=o((x2,qE)=>{"use strict";var Nq=gu();qE.exports=Nq.getPrototypeOf||null});var xE=o((U2,jE)=>{"use strict";var jq="Function.prototype.bind called on incompatible ",xq=Object.prototype.toString,Uq=Math.max,Dq="[object Function]",NE=function(e,r){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},Lq=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},Fq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};jE.exports=function(e){var r=this;if(typeof r!="function"||xq.apply(r)!==Dq)throw new TypeError(jq+r);for(var n=Lq(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,NE(n,arguments));return Object(y)===y?y:this}return r.apply(e,NE(n,arguments))},u=Uq(0,r.length-n.length),d=[],f=0;f<u;f++)d[f]="$"+f;if(s=Function("binder","return function ("+Fq(d,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var p=function(){};p.prototype=r.prototype,s.prototype=new p,p.prototype=null}return s}});var Br=o((D2,UE)=>{"use strict";var kq=xE();UE.exports=Function.prototype.bind||kq});var zs=o((L2,DE)=>{"use strict";DE.exports=Function.prototype.call});var wu=o((F2,LE)=>{"use strict";LE.exports=Function.prototype.apply});var kE=o((k2,FE)=>{"use strict";FE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var $E=o((B2,BE)=>{"use strict";var Bq=Br(),$q=wu(),Gq=zs(),Kq=kE();BE.exports=Kq||Bq.call(Gq,$q)});var Ru=o(($2,GE)=>{"use strict";var Wq=Br(),Hq=jt(),Vq=zs(),zq=$E();GE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Hq("a function is required");return zq(Wq,Vq,e)}});var YE=o((G2,zE)=>{"use strict";var Yq=Ru(),KE=bu(),HE;try{HE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Mu=!!HE&&KE&&KE(Object.prototype,"__proto__"),VE=Object,WE=VE.getPrototypeOf;zE.exports=Mu&&typeof Mu.get=="function"?Yq([Mu.get]):typeof WE=="function"?function(e){return WE(e==null?e:VE(e))}:!1});var eC=o((K2,XE)=>{"use strict";var QE=Pu(),ZE=Au(),JE=YE();XE.exports=QE?function(e){return QE(e)}:ZE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return ZE(e)}:JE?function(e){return JE(e)}:null});var rC=o((W2,tC)=>{"use strict";var Qq=Function.prototype.call,Zq=Object.prototype.hasOwnProperty,Jq=Br();tC.exports=Jq.call(Qq,Zq)});var Zs=o((H2,cC)=>{"use strict";var V,Xq=gu(),eN=zT(),tN=QT(),rN=JT(),nN=eE(),ar=rE(),or=jt(),sN=sE(),iN=oE(),oN=cE(),aN=dE(),cN=fE(),uN=yE(),dN=vE(),lN=OE(),oC=Function,Iu=function(t){try{return oC('"use strict"; return ('+t+").constructor;")()}catch{}},$r=bu(),fN=bE(),qu=function(){throw new or},hN=$r?(function(){try{return arguments.callee,qu}catch{try{return $r(arguments,"callee").get}catch{return qu}}})():qu,sr=ME()(),Se=eC(),yN=Au(),pN=Pu(),aC=wu(),Gr=zs(),ir={},vN=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Ut={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":sr&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":ir,"%AsyncGenerator%":ir,"%AsyncGeneratorFunction%":ir,"%AsyncIteratorPrototype%":ir,"%Atomics%":typeof Atomics>"u"?V:Atomics,"%BigInt%":typeof BigInt>"u"?V:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?V:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?V:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?V:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":eN,"%eval%":eval,"%EvalError%":tN,"%Float16Array%":typeof Float16Array>"u"?V:Float16Array,"%Float32Array%":typeof Float32Array>"u"?V:Float32Array,"%Float64Array%":typeof Float64Array>"u"?V:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?V:FinalizationRegistry,"%Function%":oC,"%GeneratorFunction%":ir,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sr&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!sr||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Xq,"%Object.getOwnPropertyDescriptor%":$r,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":rN,"%ReferenceError%":nN,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!sr||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sr&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":sr?Symbol:V,"%SyntaxError%":ar,"%ThrowTypeError%":hN,"%TypedArray%":vN,"%TypeError%":or,"%Uint8Array%":typeof Uint8Array>"u"?V:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?V:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?V:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?V:Uint32Array,"%URIError%":sN,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":Gr,"%Function.prototype.apply%":aC,"%Object.defineProperty%":fN,"%Object.getPrototypeOf%":yN,"%Math.abs%":iN,"%Math.floor%":oN,"%Math.max%":aN,"%Math.min%":cN,"%Math.pow%":uN,"%Math.round%":dN,"%Math.sign%":lN,"%Reflect.getPrototypeOf%":pN};if(Se)try{null.error}catch(t){nC=Se(Se(t)),Ut["%Error.prototype%"]=nC}var nC,SN=function t(e){var r;if(e==="%AsyncFunction%")r=Iu("async function () {}");else if(e==="%GeneratorFunction%")r=Iu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Iu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Se&&(r=Se(s.prototype))}return Ut[e]=r,r},sC={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Kr=Br(),Ys=rC(),mN=Kr.call(Gr,Array.prototype.concat),_N=Kr.call(aC,Array.prototype.splice),iC=Kr.call(Gr,String.prototype.replace),Qs=Kr.call(Gr,String.prototype.slice),ON=Kr.call(Gr,RegExp.prototype.exec),TN=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,EN=/\\(\\)?/g,CN=function(e){var r=Qs(e,0,1),n=Qs(e,-1);if(r==="%"&&n!=="%")throw new ar("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ar("invalid intrinsic syntax, expected opening `%`");var s=[];return iC(e,TN,function(i,u,d,f){s[s.length]=d?iC(f,EN,"$1"):u||i}),s},gN=function(e,r){var n=e,s;if(Ys(sC,n)&&(s=sC[n],n="%"+s[0]+"%"),Ys(Ut,n)){var i=Ut[n];if(i===ir&&(i=SN(n)),typeof i>"u"&&!r)throw new or("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new ar("intrinsic "+e+" does not exist!")};cC.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new or("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new or('"allowMissing" argument must be a boolean');if(ON(/^%?[^%]*%?$/,e)===null)throw new ar("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=CN(e),s=n.length>0?n[0]:"",i=gN("%"+s+"%",r),u=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],_N(n,mN([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var m=n[y],g=Qs(m,0,1),w=Qs(m,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new ar("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,u="%"+s+"%",Ys(Ut,u))d=Ut[u];else if(d!=null){if(!(m in d)){if(!r)throw new or("base intrinsic for "+e+" exists, but the property is not available.");return}if($r&&y+1>=n.length){var R=$r(d,m);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[m]}else S=Ys(d,m),d=d[m];S&&!f&&(Ut[u]=d)}}return d}});var Nu=o((V2,lC)=>{"use strict";var uC=Zs(),dC=Ru(),bN=dC([uC("%String.prototype.indexOf%")]);lC.exports=function(e,r){var n=uC(e,!!r);return typeof n=="function"&&bN(e,".prototype.")>-1?dC([n]):n}});var ju=o((z2,hC)=>{"use strict";var PN=Zs(),Wr=Nu(),AN=kr(),wN=jt(),fC=PN("%Map%",!0),RN=Wr("Map.prototype.get",!0),MN=Wr("Map.prototype.set",!0),IN=Wr("Map.prototype.has",!0),qN=Wr("Map.prototype.delete",!0),NN=Wr("Map.prototype.size",!0);hC.exports=!!fC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new wN("Side channel does not contain "+AN(n))},delete:function(n){if(e){var s=qN(e,n);return NN(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return RN(e,n)},has:function(n){return e?IN(e,n):!1},set:function(n,s){e||(e=new fC),MN(e,n,s)}};return r}});var pC=o((Y2,yC)=>{"use strict";var jN=Zs(),Xs=Nu(),xN=kr(),Js=ju(),UN=jt(),cr=jN("%WeakMap%",!0),DN=Xs("WeakMap.prototype.get",!0),LN=Xs("WeakMap.prototype.set",!0),FN=Xs("WeakMap.prototype.has",!0),kN=Xs("WeakMap.prototype.delete",!0);yC.exports=cr?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new UN("Side channel does not contain "+xN(s))},delete:function(s){if(cr&&s&&(typeof s=="object"||typeof s=="function")){if(e)return kN(e,s)}else if(Js&&r)return r.delete(s);return!1},get:function(s){return cr&&s&&(typeof s=="object"||typeof s=="function")&&e?DN(e,s):r&&r.get(s)},has:function(s){return cr&&s&&(typeof s=="object"||typeof s=="function")&&e?FN(e,s):!!r&&r.has(s)},set:function(s,i){cr&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new cr),LN(e,s,i)):Js&&(r||(r=Js()),r.set(s,i))}};return n}:Js});var SC=o((Q2,vC)=>{"use strict";var BN=jt(),$N=kr(),GN=WT(),KN=ju(),WN=pC(),HN=WN||KN||GN;vC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new BN("Side channel does not contain "+$N(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,s){e||(e=HN()),e.set(n,s)}};return r}});var ei=o((Z2,mC)=>{"use strict";var VN=String.prototype.replace,zN=/%20/g,xu={RFC1738:"RFC1738",RFC3986:"RFC3986"};mC.exports={default:xu.RFC3986,formatters:{RFC1738:function(t){return VN.call(t,zN,"+")},RFC3986:function(t){return String(t)}},RFC1738:xu.RFC1738,RFC3986:xu.RFC3986}});var Lu=o((J2,OC)=>{"use strict";var YN=ei(),Uu=Object.prototype.hasOwnProperty,Dt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),QN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Dt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},_C=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},ZN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Dt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Uu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return Dt(e)&&!Dt(r)&&(s=_C(e,n)),Dt(e)&&Dt(r)?(r.forEach(function(i,u){if(Uu.call(e,u)){var d=e[u];d&&typeof d=="object"&&i&&typeof i=="object"?e[u]=t(d,i,n):e.push(i)}else e[u]=i}),e):Object.keys(r).reduce(function(i,u){var d=r[u];return Uu.call(i,u)?i[u]=t(i[u],d,n):i[u]=d,i},s)},JN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},XN=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Du=1024,e1=function(e,r,n,s,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<u.length;f+=Du){for(var p=u.length>=Du?u.slice(f,f+Du):u,y=[],S=0;S<p.length;++S){var m=p.charCodeAt(S);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===YN.RFC1738&&(m===40||m===41)){y[y.length]=p.charAt(S);continue}if(m<128){y[y.length]=dt[m];continue}if(m<2048){y[y.length]=dt[192|m>>6]+dt[128|m&63];continue}if(m<55296||m>=57344){y[y.length]=dt[224|m>>12]+dt[128|m>>6&63]+dt[128|m&63];continue}S+=1,m=65536+((m&1023)<<10|p.charCodeAt(S)&1023),y[y.length]=dt[240|m>>18]+dt[128|m>>12&63]+dt[128|m>>6&63]+dt[128|m&63]}d+=y.join("")}return d},t1=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],u=i.obj[i.prop],d=Object.keys(u),f=0;f<d.length;++f){var p=d[f],y=u[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:u,prop:p}),n.push(y))}return QN(r),e},r1=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},n1=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},s1=function(e,r){return[].concat(e,r)},i1=function(e,r){if(Dt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};OC.exports={arrayToObject:_C,assign:JN,combine:s1,compact:t1,decode:XN,encode:e1,isBuffer:n1,isRegExp:r1,maybeMap:i1,merge:ZN}});var PC=o((X2,bC)=>{"use strict";var EC=SC(),ti=Lu(),Hr=ei(),o1=Object.prototype.hasOwnProperty,CC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,a1=Array.prototype.push,gC=function(t,e){a1.apply(t,lt(e)?e:[e])},c1=Date.prototype.toISOString,TC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ti.encode,encodeValuesOnly:!1,format:TC,formatter:Hr.formatters[TC],indices:!1,serializeDate:function(e){return c1.call(e)},skipNulls:!1,strictNullHandling:!1},u1=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Fu={},d1=function t(e,r,n,s,i,u,d,f,p,y,S,m,g,w,R,I,D,C){for(var M=e,U=C,k=0,K=!1;(U=U.get(Fu))!==void 0&&!K;){var j=U.get(e);if(k+=1,typeof j<"u"){if(j===k)throw new RangeError("Cyclic object value");K=!0}typeof U.get(Fu)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&&lt(M)&&(M=ti.maybeMap(M,function(Ue){return Ue instanceof Date?g(Ue):Ue})),M===null){if(u)return p&&!I?p(r,pe.encoder,D,"key",w):r;M=""}if(u1(M)||ti.isBuffer(M)){if(p){var B=I?r:p(r,pe.encoder,D,"key",w);return[R(B)+"="+R(p(M,pe.encoder,D,"value",w))]}return[R(r)+"="+R(String(M))]}var W=[];if(typeof M>"u")return W;var $;if(n==="comma"&&lt(M))I&&p&&(M=ti.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Y=Object.keys(M);$=S?Y.sort(S):Y}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&&lt(M)&&M.length===1?Te+"[]":Te;if(i&&lt(M)&&M.length===0)return oe+"[]";for(var se=0;se<$.length;++se){var ie=$[se],ee=typeof ie=="object"&&typeof ie.value<"u"?ie.value:M[ie];if(!(d&&ee===null)){var et=m&&f?ie.replace(/\./g,"%2E"):ie,it=lt(M)?typeof n=="function"?n(oe,et):oe:oe+(m?"."+et:"["+et+"]");C.set(e,k);var tt=EC();tt.set(Fu,C),gC(W,t(ee,it,n,s,i,u,d,f,n==="comma"&&I&&lt(M)?null:p,y,S,m,g,w,R,I,D,tt))}}return W},l1=function(e){if(!e)return pe;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||pe.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hr.default;if(typeof e.format<"u"){if(!o1.call(Hr.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=Hr.formatters[n],i=pe.filter;(typeof e.filter=="function"||lt(e.filter))&&(i=e.filter);var u;if(e.arrayFormat in CC?u=e.arrayFormat:"indices"in e?u=e.indices?"indices":"repeat":u=pe.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:pe.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:pe.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:pe.allowEmptyArrays,arrayFormat:u,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:pe.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?pe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:pe.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:pe.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:pe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:pe.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:pe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:pe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:pe.strictNullHandling}};bC.exports=function(t,e){var r=t,n=l1(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var u=[];if(typeof r!="object"||r===null)return"";var d=CC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=EC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||gC(u,d1(r[S],S,d,f,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,p))}var m=u.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),m.length>0?g+m:""}});var RC=o((e3,wC)=>{"use strict";var ur=Lu(),ku=Object.prototype.hasOwnProperty,f1=Array.isArray,de={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ur.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},h1=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},AC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},y1="utf8=%26%2310003%3B",p1="utf8=%E2%9C%93",v1=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,u=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<u.length;++f)u[f].indexOf("utf8=")===0&&(u[f]===p1?p="utf-8":u[f]===y1&&(p="iso-8859-1"),d=f,f=u.length);for(f=0;f<u.length;++f)if(f!==d){var y=u[f],S=y.indexOf("]="),m=S===-1?y.indexOf("="):S+1,g,w;m===-1?(g=r.decoder(y,de.decoder,p,"key"),w=r.strictNullHandling?null:""):(g=r.decoder(y.slice(0,m),de.decoder,p,"key"),w=ur.maybeMap(AC(y.slice(m+1),r),function(I){return r.decoder(I,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=h1(w)),y.indexOf("[]=")>-1&&(w=f1(w)?[w]:w);var R=ku.call(n,g);R&&r.duplicates==="combine"?n[g]=ur.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},S1=function(t,e,r,n){for(var s=n?e:AC(e,r),i=t.length-1;i>=0;--i){var u,d=t[i];if(d==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{u=r.plainObjects?Object.create(null):{};var f=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,y=parseInt(p,10);!r.parseArrays&&p===""?u={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(u=[],u[y]=s):p!=="__proto__"&&(u[p]=s)}s=u}return s},m1=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&u.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&ku.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var S=0;n.depth>0&&(f=d.exec(i))!==null&&S<n.depth;){if(S+=1,!n.plainObjects&&ku.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),S1(y,r,n,s)}},_1=function(e){if(!e)return de;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?de.charset:e.charset,n=typeof e.duplicates>"u"?de.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var s=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:de.allowDots:!!e.allowDots;return{allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:de.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:de.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:de.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:de.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:de.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:de.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:de.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:de.decoder,delimiter:typeof e.delimiter=="string"||ur.isRegExp(e.delimiter)?e.delimiter:de.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:de.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:de.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:de.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:de.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:de.strictNullHandling}};wC.exports=function(t,e){var r=_1(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?v1(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var d=i[u],f=m1(d,n[d],r,typeof t=="string");s=ur.merge(s,f,r)}return r.allowSparse===!0?s:ur.compact(s)}});var Bu=o((t3,MC)=>{"use strict";var O1=PC(),T1=RC(),E1=ei();MC.exports={formats:E1,parse:T1,stringify:O1}});var E=o(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Service=Lt.RESOURCE_SELECTOR_SEPARATOR=void 0;var C1=Bu(),g1=ks();Lt.RESOURCE_SELECTOR_SEPARATOR=":";var $u=class{options;constructor(e){this.options=e}async fetch(e){let{stringifyOptions:r}=e,n={headers:{},...e,method:typeof e.method=="string"?e.method:"GET"},s=this.options.endpoint;typeof this.options.defaultPath=="string"&&this.options.defaultPath.length>0&&(new RegExp(`${this.options.defaultPath}$`).test(s)||(s+=this.options.defaultPath)),typeof this.options.project?.id=="string"&&this.options.project.id.length>0&&(typeof this.options.seller?.id=="string"&&this.options.seller.id.length>0?s=`${s}/projects/${this.options.project.id}${Lt.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,u=(0,C1.stringify)(n.qs,r!==void 0?r:void 0);i+=u.length>0?`?${u}`:"";let d={Accept:"application/json","Content-Type":"application/json",...n.headers},f={method:n.method,headers:d,body:JSON.stringify(n.body),...n.form instanceof URLSearchParams?{body:n.form}:void 0},p=this.options.disableAutoRetry===!0?[]:[...Array.isArray(this.options.retryableStatusCodes)?this.options.retryableStatusCodes:[],...Array.isArray(n.retryableStatusCodes)?n.retryableStatusCodes:[]];return this.options.auth!==void 0?this.options.auth.fetch(i,f,n.expectedStatusCodes,p):(this.options.transporter!==void 0?this.options.transporter:new g1.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Lt.Service=$u});var IC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.CategoryCodeService=void 0;var b1=b(),P1=E(),Gu=class extends P1.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[b1.status.OK]}).then(async r=>({data:await r.json()}))}};ri.CategoryCodeService=Gu});var qC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.CreativeWorkService=void 0;var A1=b(),w1=E(),Ku=class extends w1.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[A1.status.OK]}).then(async r=>({data:await r.json()}))}};ni.CreativeWorkService=Ku});var NC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EmailMessageService=void 0;var R1=b(),M1=E(),Wu=class extends M1.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[R1.status.OK]}).then(async r=>({data:await r.json()}))}};si.EmailMessageService=Wu});var xC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventService=void 0;var St=b(),jC=Q(),I1=E(),Hu=class extends I1.Service{async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[St.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![jC.factory.eventType.ScreeningEvent].includes(n))throw new jC.factory.errors.Argument("typeOf","invalid event type");return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[St.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async searchTicketOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/ticket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async findSeatOffersDeprecated(e,r){let{id:n,...s}=e,{useDefaultSection:i}=r;return this.fetch({uri:`/events/${encodeURIComponent(String(n))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}async searchOfferAppliesToMovieTicket(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offers/appliesToMovieTicket`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[St.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[St.status.OK]}).then(async u=>u.json())}};ii.EventService=Hu});var UC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EventOfferService=void 0;var q1=b(),N1=E(),j1="/eventOffers",Vu=class extends N1.Service{async findEventOffers(e){return this.fetch({uri:j1,method:"GET",qs:e,expectedStatusCodes:[q1.status.OK]}).then(async r=>r.json())}};oi.EventOfferService=Vu});var DC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.EventSeriesService=void 0;var x1=b(),U1=E(),zu=class extends U1.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[x1.status.OK]}).then(async r=>r.json())}};ai.EventSeriesService=zu});var LC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.NoteService=void 0;var D1=b(),L1=E(),F1="/creativeWorks/noteDigitalDocument",Yu=class extends L1.Service{async findPublicNotes(e){return this.fetch({uri:F1,method:"GET",qs:e,expectedStatusCodes:[D1.status.OK]}).then(async r=>r.json())}};ci.NoteService=Yu});var FC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PaymentProductService=void 0;var k1=b(),B1=E(),Qu=class extends B1.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[k1.status.OK]}).then(async i=>i.json())}};ui.PaymentProductService=Qu});var kC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.PlaceService=void 0;var dr=b(),Zu=Q(),$1=E(),Ju=class extends $1.Service{async searchMovieTheaters(e){return this.fetch({uri:`/places/${Zu.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async findMovieTheaters(e){return this.fetch({uri:"/movieTheaters",method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>r.json())}async searchScreeningRooms(e){return this.fetch({uri:`/places/${Zu.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRoomSections(e){return this.fetch({uri:`/places/${Zu.factory.placeType.ScreeningRoomSection}`,method:"GET",qs:e,expectedStatusCodes:[dr.status.OK]}).then(async r=>({data:await r.json()}))}async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[dr.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[dr.status.OK]}).then(async f=>f.json())}};di.PlaceService=Ju});var BC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.HasPOSService=void 0;var G1=b(),K1=Q(),W1=E(),Xu=class extends W1.Service{async search(e){return this.fetch({uri:`/places/${K1.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[G1.status.OK]}).then(async r=>r.json())}};li.HasPOSService=Xu});var $C=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.ProductService=void 0;var ed=b(),H1=E(),td=class extends H1.Service{async findProducts(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[ed.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{id:r,...n}=e;return this.fetch({uri:`/products/${encodeURIComponent(String(r))}/offers`,method:"GET",qs:n,expectedStatusCodes:[ed.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[ed.status.OK]}).then(async r=>r.json())}};fi.ProductService=td});var GC=o(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.SeatOfferService=void 0;var V1=b(),z1=E(),Y1="/seatOffers",rd=class extends z1.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:Y1,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[V1.status.OK]}).then(async u=>u.json())}};hi.SeatOfferService=rd});var KC=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.SellerService=void 0;var yi=b(),Q1=E(),nd=class extends Q1.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[yi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[yi.status.OK]}).then(async r=>r.json())}async searchPaymentServicesByProvider(e){let{provider:r,qs:n}=e;return this.fetch({uri:`/sellers/${r.id}/paymentServices`,method:"GET",qs:n,expectedStatusCodes:[yi.status.OK]}).then(async s=>s.json())}async searchPaymentAccepted(e){let{id:r,qs:n}=e;return this.fetch({uri:`/sellers/${r}/paymentAccepted`,method:"GET",qs:n,expectedStatusCodes:[yi.status.OK]}).then(async s=>s.json())}};pi.SellerService=nd});var WC=o(Le=>{"use strict";var Z1=Le&&Le.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),J1=Le&&Le.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ne=Le&&Le.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&Z1(r,e,n[s]);return J1(r,e),r}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.Chevre=Le.service=void 0;var H;(function(t){let e;e=t.CategoryCode||(t.CategoryCode={});let r;r=t.CreativeWork||(t.CreativeWork={});let n;n=t.EmailMessage||(t.EmailMessage={});let s;s=t.Event||(t.Event={});let i;i=t.EventOffer||(t.EventOffer={});let u;u=t.EventSeries||(t.EventSeries={});let d;d=t.Note||(t.Note={});let f;f=t.PaymentProduct||(t.PaymentProduct={});let p;p=t.Place||(t.Place={});let y;(function(w){let R;R=w.HasPOS||(w.HasPOS={})})(y=t.place||(t.place={}));let S;S=t.Product||(t.Product={});let m;m=t.SeatOffer||(t.SeatOffer={});let g;g=t.Seller||(t.Seller={})})(H||(Le.service=H={}));var sd=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return H.CategoryCode.svc===void 0&&(H.CategoryCode.svc=(await Promise.resolve().then(()=>Ne(IC()))).CategoryCodeService),new H.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return H.CreativeWork.svc===void 0&&(H.CreativeWork.svc=(await Promise.resolve().then(()=>Ne(qC()))).CreativeWorkService),new H.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return H.EmailMessage.svc===void 0&&(H.EmailMessage.svc=(await Promise.resolve().then(()=>Ne(NC()))).EmailMessageService),new H.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return H.Event.svc===void 0&&(H.Event.svc=(await Promise.resolve().then(()=>Ne(xC()))).EventService),new H.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return H.EventOffer.svc===void 0&&(H.EventOffer.svc=(await Promise.resolve().then(()=>Ne(UC()))).EventOfferService),new H.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return H.EventSeries.svc===void 0&&(H.EventSeries.svc=(await Promise.resolve().then(()=>Ne(DC()))).EventSeriesService),new H.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return H.Note.svc===void 0&&(H.Note.svc=(await Promise.resolve().then(()=>Ne(LC()))).NoteService),new H.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return H.PaymentProduct.svc===void 0&&(H.PaymentProduct.svc=(await Promise.resolve().then(()=>Ne(FC()))).PaymentProductService),new H.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return H.Place.svc===void 0&&(H.Place.svc=(await Promise.resolve().then(()=>Ne(kC()))).PlaceService),new H.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return H.place.HasPOS.svc===void 0&&(H.place.HasPOS.svc=(await Promise.resolve().then(()=>Ne(BC()))).HasPOSService),new H.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return H.Product.svc===void 0&&(H.Product.svc=(await Promise.resolve().then(()=>Ne($C()))).ProductService),new H.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatOfferInstance(e){return H.SeatOffer.svc===void 0&&(H.SeatOffer.svc=(await Promise.resolve().then(()=>Ne(GC()))).SeatOfferService),new H.SeatOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return H.Seller.svc===void 0&&(H.Seller.svc=(await Promise.resolve().then(()=>Ne(KC()))).SellerService),new H.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=sd});var HC=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.OrderService=void 0;var bt=b(),X1=Q(),ej=E(),id=class extends ej.Service{async createIfNotExist(e){let{confirmationNumber:r,orderNumber:n}=e;await this.fetch({uri:`/orders/${e.orderNumber}`,method:"PUT",body:{confirmationNumber:r,orderNumber:n},expectedStatusCodes:[bt.status.NO_CONTENT]})}async findByConfirmationNumber(e){return this.fetch({uri:"/orders/findByConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByEventAndConfirmationNumber(e){return this.fetch({uri:"/orders/findByEventAndConfirmationNumber",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findByOrderInquiryKey4sskts(e){return this.fetch({uri:"/orders/findByOrderInquiryKey",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async findOneByOrderNumberAndSomething(e){return this.fetch({uri:"/orders/findOneByOrderNumberAndSomething",method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}async deliverOrder(e){await this.fetch({uri:`/orders/${e.orderNumber}/${X1.factory.orderStatus.OrderDelivered}`,method:"PUT",body:{confirmationNumber:e.confirmationNumber},expectedStatusCodes:[bt.status.NO_CONTENT]})}async searchAcceptedOffersByConfirmationNumber(e){let{orderNumber:r,...n}=e;return this.fetch({uri:`/orders/${r}/acceptedOffersByConfirmationNumber`,method:"POST",body:n,expectedStatusCodes:[bt.status.OK]}).then(async s=>s.json())}async authorize(e){return this.fetch({uri:`/orders/${String(e.object?.orderNumber)}/authorize`,method:"POST",body:e,expectedStatusCodes:[bt.status.OK]}).then(async r=>r.json())}};vi.OrderService=id});var zC=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.ReservationService=void 0;var VC=b(),tj=E(),od=class extends tj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[VC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[VC.status.OK]}).then(async n=>n.json())}};Si.ReservationService=od});var YC=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.TokenService=void 0;var rj=E(),ad=class extends rj.Service{};mi.TokenService=ad});var QC=o(Fe=>{"use strict";var nj=Fe&&Fe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),sj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cd=Fe&&Fe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&nj(r,e,n[s]);return sj(r,e),r}})();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ChevreAsset=Fe.service=void 0;var rt;(function(t){let e;e=t.Order||(t.Order={});let r;r=t.Reservation||(t.Reservation={});let n;n=t.Token||(t.Token={})})(rt||(Fe.service=rt={}));var ud=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>cd(HC()))).OrderService),new rt.Order.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReservationInstance(e){return rt.Reservation.svc===void 0&&(rt.Reservation.svc=(await Promise.resolve().then(()=>cd(zC()))).ReservationService),new rt.Reservation.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createTokenInstance(e){return rt.Token.svc===void 0&&(rt.Token.svc=(await Promise.resolve().then(()=>cd(YC()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=ud});var JC=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.SyncService=void 0;var ZC=b(),ij=E(),dd=class extends ij.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[ZC.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[ZC.status.ACCEPTED]}).then(async r=>r.json())}};_i.SyncService=dd});var XC=o(ke=>{"use strict";var oj=ke&&ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),aj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cj=ke&&ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&oj(r,e,n[s]);return aj(r,e),r}})();Object.defineProperty(ke,"__esModule",{value:!0});ke.ChevreAdmic=ke.service=void 0;var Vr;(function(t){let e;e=t.Sync||(t.Sync={})})(Vr||(ke.service=Vr={}));var ld=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Vr.Sync.svc===void 0&&(Vr.Sync.svc=(await Promise.resolve().then(()=>cj(JC()))).SyncService),new Vr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=ld});var eg=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.CustomerService=void 0;var uj=b(),dj=E(),fd=class extends dj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[uj.status.OK]}).then(async r=>r.json())}};Oi.CustomerService=fd});var tg=o(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.EventService=void 0;var zr=b(),lj=E(),hd=class extends lj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:u,disableOverwriteMakesOffer:d===!0,useExtensibleOffer:f===!0},expectedStatusCodes:[zr.status.NO_CONTENT]})}async updateEventsByIdentifier(e,r){let{typeOf:n,disableOverwriteMakesOffer:s}=r;await this.fetch({uri:"/events",method:"PUT",body:e,qs:{typeOf:n,updateBy:"identifier",disableOverwriteMakesOffer:s===!0},expectedStatusCodes:[zr.status.NO_CONTENT]})}async updateEventsSellerMakesOfferByIdentifier(e){await this.fetch({uri:"/eventSellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[zr.status.NO_CONTENT]})}async updatePartially(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.attributes,expectedStatusCodes:[zr.status.NO_CONTENT]})}async findEvents(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[zr.status.OK]}).then(async r=>r.json())}};Ti.EventService=hd});var rg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.EventOfferService=void 0;var Ei=b(),fj=E(),Ci="/eventOffers",yd=class extends fj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ci,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ei.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ci,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ei.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Ci,method:"GET",qs:e,expectedStatusCodes:[Ei.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Ci}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Ei.status.CREATED]}).then(async n=>n.json())}};gi.EventOfferService=yd});var ig=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.EventSeriesService=void 0;var ng=b(),hj=E(),sg="/eventSeries",pd=class extends hj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:u}=r;await this.fetch({uri:sg,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:u===!0},expectedStatusCodes:[ng.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:sg,method:"GET",qs:e,expectedStatusCodes:[ng.status.OK]}).then(async r=>r.json())}};bi.EventSeriesService=pd});var ag=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MeService=void 0;var og=b(),yj=E(),vd=class extends yj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[og.status.OK]}).then(async r=>r.json())}async findMySellers(e){let{project:r,conditions:n}=e;return this.fetch({uri:`/members/me/projects/${String(r?.id)}/sellers`,method:"GET",qs:n,expectedStatusCodes:[og.status.OK]}).then(async s=>s.json())}};Pi.MeService=vd});var cg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MemberService=void 0;var pj=b(),vj=Q(),Sj=E(),Sd=class extends Sj.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${vj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[pj.status.OK]}).then(async r=>r.json())}};Ai.MemberService=Sd});var lg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MovieService=void 0;var ug=b(),mj=E(),dg="/movies",md=class extends mj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:dg,method:"PUT",body:e,expectedStatusCodes:[ug.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:dg,method:"GET",qs:e,expectedStatusCodes:[ug.status.OK]}).then(async r=>r.json())}};wi.MovieService=md});var hg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.MovieTheaterService=void 0;var Yr=b(),_j=E(),fg="/movieTheaters",_d="/entranceGates",Od=class extends _j.Service{async findMovieTheaters(e){return this.fetch({uri:fg,method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async upsertMovieTheatersByBranchCode(e,r){let{sellerId:n}=r;await this.fetch({uri:fg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:_d,method:"GET",qs:e,expectedStatusCodes:[Yr.status.OK]}).then(async r=>r.json())}async upsertEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:_d,method:"PUT",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteEntranceGatesByIdentifier(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:_d,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ri.MovieTheaterService=Od});var yg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.NoteService=void 0;var Td=b(),Oj=E(),Ed="/creativeWorks/noteDigitalDocument",Cd=class extends Oj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:Ed,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[Td.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:Ed,method:"GET",qs:e,expectedStatusCodes:[Td.status.OK]}).then(async r=>r.json())}};Mi.NoteService=Cd});var pg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.NoteAboutOrderService=void 0;var gd=b(),Tj=E(),bd="/orderNotes",Pd=class extends Tj.Service{async upsertByIdentifier(e){await this.fetch({uri:bd,method:"PUT",body:e,expectedStatusCodes:[gd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:bd,method:"GET",qs:e,expectedStatusCodes:[gd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${bd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}};Ii.NoteAboutOrderService=Pd});var vg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.OrderService=void 0;var Qr=b(),Ej=E(),Ad=class extends Ej.Service{async updateChangeableAttributes(e){let{orderNumber:r,...n}=e;await this.fetch({uri:`/orders/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Qr.status.NO_CONTENT]})}async findOrders(e){return this.fetch({uri:"/orders",method:"GET",qs:e,expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async findByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}`,method:"GET",expectedStatusCodes:[Qr.status.OK],qs:r}).then(async n=>n.json())}async findReturner(e){return this.fetch({uri:`/orders/${e.orderNumber}/returner`,method:"GET",expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.json())}async searchAcceptedOffersByOrderNumber(e,r){return this.fetch({uri:`/orders/${e.orderNumber}/acceptedOffers`,method:"GET",expectedStatusCodes:[Qr.status.OK],qs:r}).then(async n=>n.json())}};qi.OrderService=Ad});var Sg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.PaymentMethodService=void 0;var Cj=b(),gj=E(),bj="/paymentMethods",wd=class extends gj.Service{async findPaymentMethods(e){return this.fetch({uri:bj,method:"GET",qs:e,expectedStatusCodes:[Cj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};Ni.PaymentMethodService=wd});var _g=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.ProductService=void 0;var Rd=b(),Pj=E(),mg="/products",Aj="/productHasOfferCatalog",Md=class extends Pj.Service{async upsertByProductId(e){await this.fetch({uri:mg,method:"PUT",body:e,expectedStatusCodes:[Rd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:mg,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Aj,method:"GET",qs:e,expectedStatusCodes:[Rd.status.OK]}).then(async r=>r.json())}};ji.ProductService=Md});var Og=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.ReservationService=void 0;var Id=b(),wj=E(),qd=class extends wj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[Id.status.OK]}).then(async r=>r.json())}async useByTicket(e){let{instrument:r,location:n,object:s}=e;await this.fetch({uri:`/reservations/${String(s?.id)}/actions/use`,method:"POST",body:{instrument:r,location:n},expectedStatusCodes:[Id.status.NO_CONTENT]})}async searchUseActions(e){let{object:r,...n}=e;return this.fetch({uri:`/reservations/${String(e.object?.id)}/actions/use`,method:"GET",qs:n,expectedStatusCodes:[Id.status.OK]}).then(async s=>s.json())}};xi.ReservationService=qd});var Cg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.RoomService=void 0;var Tg=b(),Rj=E(),Eg="/rooms",Nd=class extends Rj.Service{async findRooms(e){return this.fetch({uri:Eg,method:"GET",qs:e,expectedStatusCodes:[Tg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Eg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Tg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.RoomService=Nd});var gg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SeatService=void 0;var jd=b(),Mj=E(),xd="/seats",Ud=class extends Mj.Service{async findSeats(e){return this.fetch({uri:xd,method:"GET",qs:e,expectedStatusCodes:[jd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:xd,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u}=r;await this.fetch({uri:xd,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:u,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[jd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Di.SeatService=Ud});var Ag=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.SeatSectionService=void 0;var bg=b(),Ij=E(),Pg="/seatSections",Dd=class extends Ij.Service{async findSeatSections(e){return this.fetch({uri:Pg,method:"GET",qs:e,expectedStatusCodes:[bg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Pg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[bg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Li.SeatSectionService=Dd});var wg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.SellerService=void 0;var qj=b(),Nj=E(),Ld=class extends Nj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[qj.status.OK]}).then(async r=>r.json())}};Fi.SellerService=Ld});var Mg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferService=void 0;var Rg=b(),jj=E(),Fd=class extends jj.Service{async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[Rg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{productType:n}=r;await this.fetch({uri:"/offers",method:"PUT",body:e,qs:{productType:n},expectedStatusCodes:[Rg.status.NO_CONTENT]})}};ki.OfferService=Fd});var Ig=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.OfferCatalogService=void 0;var xj=b(),Uj=E(),kd=class extends Uj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:u}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:u},expectedStatusCodes:[xj.status.NO_CONTENT]})}};Bi.OfferCatalogService=kd});var Ng=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.OfferCatalogItemService=void 0;var qg=b(),Dj=E(),Bd=class extends Dj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[qg.status.OK]}).then(async r=>r.json())}async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i}=r;await this.fetch({uri:"/offerCatalogItems",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i},expectedStatusCodes:[qg.status.NO_CONTENT]})}};$i.OfferCatalogItemService=Bd});var jg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.CancelReservationAssetTransactionService=void 0;var Lj=b(),Fj=E(),$d=class extends Fj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[Lj.status.NO_CONTENT]})}};Gi.CancelReservationAssetTransactionService=$d});var xg=o(Be=>{"use strict";var kj=Be&&Be.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bj=Be&&Be.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ce=Be&&Be.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&kj(r,e,n[s]);return Bj(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var N;(function(t){let e;e=t.Customer||(t.Customer={});let r;r=t.Event||(t.Event={});let n;n=t.EventOffer||(t.EventOffer={});let s;s=t.EventSeries||(t.EventSeries={});let i;i=t.Me||(t.Me={});let u;u=t.Member||(t.Member={});let d;d=t.Movie||(t.Movie={});let f;f=t.MovieTheater||(t.MovieTheater={});let p;p=t.Note||(t.Note={});let y;y=t.NoteAboutOrder||(t.NoteAboutOrder={});let S;S=t.Order||(t.Order={});let m;m=t.PaymentMethod||(t.PaymentMethod={});let g;g=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Room||(t.Room={});let I;I=t.Seat||(t.Seat={});let D;D=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let U;U=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(j){let B;B=j.CancelReservation||(j.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(N||(Be.service=N={}));var Gd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return N.Customer.svc===void 0&&(N.Customer.svc=(await Promise.resolve().then(()=>ce(eg()))).CustomerService),new N.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return N.Event.svc===void 0&&(N.Event.svc=(await Promise.resolve().then(()=>ce(tg()))).EventService),new N.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventOfferInstance(e){return N.EventOffer.svc===void 0&&(N.EventOffer.svc=(await Promise.resolve().then(()=>ce(rg()))).EventOfferService),new N.EventOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return N.EventSeries.svc===void 0&&(N.EventSeries.svc=(await Promise.resolve().then(()=>ce(ig()))).EventSeriesService),new N.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return N.Me.svc===void 0&&(N.Me.svc=(await Promise.resolve().then(()=>ce(ag()))).MeService),new N.Me.svc({...this.options})}async createMemberInstance(e){return N.Member.svc===void 0&&(N.Member.svc=(await Promise.resolve().then(()=>ce(cg()))).MemberService),new N.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieInstance(e){return N.Movie.svc===void 0&&(N.Movie.svc=(await Promise.resolve().then(()=>ce(lg()))).MovieService),new N.Movie.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTheaterInstance(e){return N.MovieTheater.svc===void 0&&(N.MovieTheater.svc=(await Promise.resolve().then(()=>ce(hg()))).MovieTheaterService),new N.MovieTheater.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteInstance(e){return N.Note.svc===void 0&&(N.Note.svc=(await Promise.resolve().then(()=>ce(yg()))).NoteService),new N.Note.svc({...this.options,...e,retryableStatusCodes:[]})}async createNoteAboutOrderInstance(e){return N.NoteAboutOrder.svc===void 0&&(N.NoteAboutOrder.svc=(await Promise.resolve().then(()=>ce(pg()))).NoteAboutOrderService),new N.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return N.Order.svc===void 0&&(N.Order.svc=(await Promise.resolve().then(()=>ce(vg()))).OrderService),new N.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentMethodInstance(e){return N.PaymentMethod.svc===void 0&&(N.PaymentMethod.svc=(await Promise.resolve().then(()=>ce(Sg()))).PaymentMethodService),new N.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return N.Product.svc===void 0&&(N.Product.svc=(await Promise.resolve().then(()=>ce(_g()))).ProductService),new N.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return N.Reservation.svc===void 0&&(N.Reservation.svc=(await Promise.resolve().then(()=>ce(Og()))).ReservationService),new N.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createRoomInstance(e){return N.Room.svc===void 0&&(N.Room.svc=(await Promise.resolve().then(()=>ce(Cg()))).RoomService),new N.Room.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatInstance(e){return N.Seat.svc===void 0&&(N.Seat.svc=(await Promise.resolve().then(()=>ce(gg()))).SeatService),new N.Seat.svc({...this.options,...e,retryableStatusCodes:[]})}async createSeatSectionInstance(e){return N.SeatSection.svc===void 0&&(N.SeatSection.svc=(await Promise.resolve().then(()=>ce(Ag()))).SeatSectionService),new N.SeatSection.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return N.Seller.svc===void 0&&(N.Seller.svc=(await Promise.resolve().then(()=>ce(wg()))).SellerService),new N.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return N.Offer.svc===void 0&&(N.Offer.svc=(await Promise.resolve().then(()=>ce(Mg()))).OfferService),new N.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return N.OfferCatalog.svc===void 0&&(N.OfferCatalog.svc=(await Promise.resolve().then(()=>ce(Ig()))).OfferCatalogService),new N.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return N.OfferCatalogItem.svc===void 0&&(N.OfferCatalogItem.svc=(await Promise.resolve().then(()=>ce(Ng()))).OfferCatalogItemService),new N.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createCancelReservationAssetTransactionInstance(e){return N.assetTransaction.CancelReservation.svc===void 0&&(N.assetTransaction.CancelReservation.svc=(await Promise.resolve().then(()=>ce(jg()))).CancelReservationAssetTransactionService),new N.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Gd});var Ug=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.AccountingReportService=void 0;var $j=b(),Gj=E(),Kd=class extends Gj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[$j.status.OK]}).then(async r=>r.json())}};Ki.AccountingReportService=Kd});var Dg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.AccountTitleService=void 0;var $e=b(),Kj=Q(),Wj=E(),Wd=class extends Wj.Service{async createAccounTitleCategory(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleCategories(e){return this.fetch({uri:"/accountTitles/accountTitleCategory",method:"GET",qs:e,expectedStatusCodes:[$e.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async deleteAccounTitleCategory(e){await this.fetch({uri:`/accountTitles/accountTitleCategory/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async createAccounTitleSet(e){if(e.inCodeSet===void 0)throw new Kj.factory.errors.ArgumentNull("inCodeSet");return this.fetch({uri:"/accountTitles/accountTitleSet",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async searchAccountTitleSets(e){return this.fetch({uri:"/accountTitles/accountTitleSet",method:"GET",qs:e,expectedStatusCodes:[$e.status.OK]}).then(async r=>({data:await r.json()}))}async updateAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async deleteAccounTitleSet(e){await this.fetch({uri:`/accountTitles/accountTitleSet/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async create(e){return this.fetch({uri:"/accountTitles",method:"POST",body:e,expectedStatusCodes:[$e.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"PUT",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}async search(e){return this.fetch({uri:"/accountTitles",method:"GET",qs:e,expectedStatusCodes:[$e.status.OK]}).then(async r=>({data:await r.json()}))}async deleteByCodeValue(e){await this.fetch({uri:`/accountTitles/${encodeURIComponent(String(e.codeValue))}`,method:"DELETE",body:e,expectedStatusCodes:[$e.status.NO_CONTENT]})}};Wi.AccountTitleService=Wd});var Lg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.ActionService=void 0;var Hd=b(),Hj=E(),Vd=class extends Hj.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Hd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Hd.status.OK],qs:{typeOf:e.typeOf}}).then(async r=>r.json())}async searchRecipes(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.recipeFor.id))}/recipe`,method:"GET",expectedStatusCodes:[Hd.status.OK]}).then(async r=>r.json())}};Hi.ActionService=Vd});var Fg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AdditionalPropertyService=void 0;var Zr=b(),Vj=E(),zd=class extends Vj.Service{async create(e){return this.fetch({uri:"/additionalProperties",method:"POST",body:e,expectedStatusCodes:[Zr.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/additionalProperties",method:"GET",qs:e,expectedStatusCodes:[Zr.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Zr.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Zr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/additionalProperties/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Zr.status.NO_CONTENT]})}};Vi.AdditionalPropertyService=zd});var Bg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AggregateOfferService=void 0;var kg=b(),zj=E(),Yd=class extends zj.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[kg.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[kg.status.NO_CONTENT]})}};zi.AggregateOfferService=Yd});var $g=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregateReservationService=void 0;var Yj=b(),Qj=E(),Qd=class extends Qj.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[Yj.status.OK]}).then(async r=>r.json())}};Yi.AggregateReservationService=Qd});var Gg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AggregationService=void 0;var Zj=b(),Jj=E(),Zd=class extends Jj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[Zj.status.OK]}).then(async r=>r.json())}};Qi.AggregationService=Zd});var Kg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.AuthorizationService=void 0;var Xj=b(),ex=E(),Jd=class extends ex.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[Xj.status.OK]}).then(async r=>r.json())}};Zi.AuthorizationService=Jd});var Wg=o(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.CreativeWorkService=void 0;var tx=b(),rx=E(),Xd=class extends rx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tx.status.NO_CONTENT]})}};Ji.CreativeWorkService=Xd});var Hg=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CategoryCodeService=void 0;var Xi=b(),nx=E(),eo="/categoryCodes",el=class extends nx.Service{async createCategoryCode(e){return this.fetch({uri:eo,method:"POST",body:e,expectedStatusCodes:[Xi.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:eo,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Xi.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${eo}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Xi.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${eo}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xi.status.NO_CONTENT]})}};to.CategoryCodeService=el});var Vg=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerService=void 0;var tl=b(),sx=E(),rl=class extends sx.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[tl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[tl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[tl.status.NO_CONTENT]})}};ro.CustomerService=rl});var zg=o(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.CustomerTypeService=void 0;var ix=b(),ox=E(),nl=class extends ox.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[ix.status.OK]}).then(async r=>r.json())}};no.CustomerTypeService=nl});var Yg=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EmailMessageService=void 0;var Jr=b(),ax=E(),sl=class extends ax.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[Jr.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/emailMessages/${e.id}`,method:"GET",expectedStatusCodes:[Jr.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Jr.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[Jr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[Jr.status.NO_CONTENT]})}};so.EmailMessageService=sl});var Zg=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EventService=void 0;var Xr=b(),Qg=Q(),cx=E(),il=class extends cx.Service{async validateAddEventsParams(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{expectsNoContent:"1",typeOf:Qg.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async findEventById(e){let{id:r,typeOf:n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[Xr.status.OK],qs:{typeOf:n}}).then(async s=>s.json())}async updateEventById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e.attributes,qs:{typeOf:Qg.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Xr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Xr.status.NO_CONTENT]})}};io.EventService=il});var eb=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var Jg=b(),Xg=Q(),ux=E(),ol=class extends ux.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${Xg.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[Jg.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${Xg.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Jg.status.NO_CONTENT]})}};oo.EventSeriesService=ol});var tb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var dx=b(),lx=E(),al=class extends lx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[dx.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=al});var rb=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var Pt=b(),fx=E(),cl=class extends fx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[Pt.status.CREATED,Pt.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[Pt.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[Pt.status.OK]}).then(async e=>e.json())}};co.IAMService=cl});var nb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=b(),hx=E(),ul=class extends hx.Service{async createIdentity(e){return this.fetch({uri:"/identities",method:"POST",body:e,expectedStatusCodes:[uo.status.CREATED]}).then(async r=>r.json())}async projectIdentityFields(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[uo.status.OK]}).then(async r=>r.json())}async updateIdentityById(e){let{id:r,...n}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[uo.status.NO_CONTENT]})}async deleteIdentityById(e){let{id:r}=e;await this.fetch({uri:`/identities/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[uo.status.NO_CONTENT]})}};lo.IdentityService=ul});var sb=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=b(),yx=E(),dl=class extends yx.Service{async create(e){return this.fetch({uri:"/identityProviders",method:"POST",body:e,expectedStatusCodes:[fo.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/identityProviders",method:"GET",qs:e,expectedStatusCodes:[fo.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[fo.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/identityProviders/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[fo.status.NO_CONTENT]})}};ho.IdentityProviderService=dl});var ib=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var en=b(),px=E(),ll=class extends px.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[en.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:n,expectedStatusCodes:[en.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[en.status.NO_CONTENT]})}};yo.IssuerService=ll});var ab=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var ob=b(),vx=E(),fl=class extends vx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[ob.status.OK]}).then(async r=>({data:await r.json()}))}async searchMemberHasRoleOnProject(e){return this.fetch({uri:`/members/me/projects/${e.project.id}/hasRole`,method:"GET",expectedStatusCodes:[ob.status.OK]}).then(async r=>r.json())}};po.MeService=fl});var cb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var At=b(),wt=Q(),Sx=E(),hl=class extends Sx.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}};vo.MemberService=hl});var ub=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberProgramService=void 0;var tn=b(),mx=E(),yl=class extends mx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}async updateByIdentifier(e){let{hostingOrganization:r,hasTiers:n}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"PUT",body:{hostingOrganization:r,...Array.isArray(n)?{hasTiers:n}:void 0},expectedStatusCodes:[tn.status.NO_CONTENT]})}async deleteByIdentifier(e){let{hostingOrganization:r}=e;await this.fetch({uri:`/memberPrograms/${encodeURIComponent(String(e.identifier))}`,method:"DELETE",body:{hostingOrganization:r},expectedStatusCodes:[tn.status.NO_CONTENT]})}};So.MemberProgramService=yl});var db=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MerchantReturnPolicyService=void 0;var rn=b(),_x=E(),pl=class extends _x.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[rn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[rn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[rn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}};mo.MerchantReturnPolicyService=pl});var lb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MessageService=void 0;var Ox=b(),Tx=E(),vl=class extends Tx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Ox.status.OK]}).then(async r=>r.json())}};_o.MessageService=vl});var fb=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MovieTicketTypeService=void 0;var Oo=b(),Ex=E(),To="/movieTicketTypes",Sl=class extends Ex.Service{async createMovieTicketType(e){return this.fetch({uri:To,method:"POST",body:e,expectedStatusCodes:[Oo.status.CREATED]}).then(async r=>r.json())}async findMovieTicketTypes(e){return this.fetch({uri:To,method:"GET",qs:e,expectedStatusCodes:[Oo.status.OK]}).then(async r=>r.json())}async updateMovieTicketType(e){await this.fetch({uri:`${To}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Oo.status.NO_CONTENT]})}async deleteMovieTicketTypeById(e){await this.fetch({uri:`${To}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Oo.status.NO_CONTENT]})}};Eo.MovieTicketTypeService=Sl});var hb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var Co=b(),Cx=E(),ml=class extends Cx.Service{async confirmPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/confirmPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[Co.status.NO_CONTENT]})}async voidPayTransaction(e){await this.fetch({uri:`/orders/${e.purpose.orderNumber}/voidPayTransaction`,method:"PUT",body:e,expectedStatusCodes:[Co.status.NO_CONTENT]})}async processOrder(e){let{confirmationNumber:r,orderNumber:n}=e.object;await this.fetch({uri:`/orders/${n}/processOrder`,method:"POST",body:{confirmationNumber:r},expectedStatusCodes:[Co.status.NO_CONTENT]})}async searchActionsByOrderNumber(e){return this.fetch({uri:`/orders/${e.orderNumber}/actions`,method:"GET",qs:e,expectedStatusCodes:[Co.status.OK]}).then(async r=>r.json())}};go.OrderService=ml});var yb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OwnershipInfoService=void 0;var gx=b(),bx=E(),_l=class extends bx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[gx.status.OK]}).then(async r=>({data:await r.json()}))}};bo.OwnershipInfoService=_l});var pb=o(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.PaymentProductService=void 0;var lr=b(),Px=E(),Ol=class extends Px.Service{async createPaymentService(e){return this.fetch({uri:"/paymentServices",method:"POST",body:e,expectedStatusCodes:[lr.status.CREATED]}).then(async r=>r.json())}async findPaymentServiceById(e){let{id:r,...n}=e;return this.fetch({uri:`/paymentServices/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[lr.status.OK],qs:n}).then(async s=>s.json())}async updatePaymentService(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[lr.status.NO_CONTENT]})}async deletePaymentServiceById(e){await this.fetch({uri:`/paymentServices/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[lr.status.NO_CONTENT]})}async searchAvailableChannels(e){return this.fetch({uri:"/paymentServices/availableChannels",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}async searchPotentialActions(e){return this.fetch({uri:"/paymentServices/potentialActions",method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>r.json())}};Po.PaymentProductService=Ol});var vb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Ao=b(),Ax=E(),Tl=class extends Ax.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Ao.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Ao.status.OK]}).then(async r=>r.json())}async updateById(e){let{id:r,...n}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[Ao.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Ao.status.NO_CONTENT]})}};wo.PaymentServiceChannelService=Tl});var mb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var Sb=b(),wx=E(),El=class extends wx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Sb.status.OK]}).then(async r=>r.json())}async projectSubReservationByReservationNumber(e){let{reservationNumber:r}=e;return this.fetch({uri:`/pendingReservations/${encodeURIComponent(String(r.$eq))}/subReservation`,method:"GET",expectedStatusCodes:[Sb.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=El});var Ob=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var _b=b(),Rx=E(),Cl=class extends Rx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[_b.status.OK]}).then(async e=>e.json())}async token2permissions(e){let{token:r}=e;return this.fetch({uri:"/permissions/token2permissions",method:"POST",body:{token:r},expectedStatusCodes:[_b.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=Cl});var Eb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var Tb=b(),Mx=E(),gl=class extends Mx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Tb.status.OK]}).then(async r=>r.json())}async findPersonById(e){let{id:r,iss:n}=e;return this.fetch({uri:`/people/${r}`,method:"GET",expectedStatusCodes:[Tb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};Io.PersonService=gl});var Cb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var nn=b(),sn=Q(),Ix=E(),bl=class extends Ix.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${sn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[nn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[nn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${sn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[nn.status.NO_CONTENT]})}};qo.PlaceService=bl});var gb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.HasPOSService=void 0;var No=b(),jo=Q(),qx=E(),Pl=class extends qx.Service{async search(e){return this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[No.status.OK]}).then(async r=>r.json())}async createByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"POST",body:e,expectedStatusCodes:[No.status.NO_CONTENT]})}async updateByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"PUT",body:e,expectedStatusCodes:[No.status.NO_CONTENT]})}async deleteByBranchCode(e){await this.fetch({uri:`/places/${jo.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS/${e.branchCode}`,method:"DELETE",expectedStatusCodes:[No.status.NO_CONTENT]})}};xo.HasPOSService=Pl});var bb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),Nx=E(),Al=class extends Nx.Service{async create(e){return this.fetch({uri:"/priceSpecifications",method:"POST",body:e,expectedStatusCodes:[Uo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/priceSpecifications",method:"GET",qs:e,expectedStatusCodes:[Uo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Uo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/priceSpecifications/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Uo.status.NO_CONTENT]})}};Do.PriceSpecificationService=Al});var Pb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProductService=void 0;var on=b(),jx=E(),an="/products",wl=class extends jx.Service{async createProduct(e){return this.fetch({uri:an,method:"POST",body:e,expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:an,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[on.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${an}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[on.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${an}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[on.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${an}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[on.status.NO_CONTENT]})}};Lo.ProductService=wl});var Ab=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Fo=b(),xx=E(),Rl=class extends xx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async create(e){return this.fetch({uri:"/projects",method:"POST",body:e,expectedStatusCodes:[Fo.status.CREATED]}).then(async r=>r.json())}async findSettingsById(e){return this.fetch({uri:`/projects/${e.id}/settings`,method:"GET",expectedStatusCodes:[Fo.status.OK]}).then(async r=>r.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/projects/${r}`,method:"PATCH",body:n,expectedStatusCodes:[Fo.status.NO_CONTENT]})}async cleanUpDatabase(e){await this.fetch({uri:`/projects/${e.id}/cleanUpDatabase`,method:"POST",expectedStatusCodes:[Fo.status.NO_CONTENT]})}};ko.ProjectService=Rl});var wb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ProjectMakesOfferService=void 0;var Bo=b(),Ux=E(),Ml=class extends Ux.Service{async search(e){return this.fetch({uri:"/makesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Bo.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/makesOffer",method:"POST",body:e,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async updateOne(e,r){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"PUT",body:r,expectedStatusCodes:[Bo.status.NO_CONTENT]})}async deleteOne(e){await this.fetch({uri:`/makesOffer/${e.availableAtOrFrom.id}`,method:"DELETE",expectedStatusCodes:[Bo.status.NO_CONTENT]})}};$o.ProjectMakesOfferService=Ml});var Rb=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ReservationService=void 0;var Dx=b(),Lx=E(),Il=class extends Lx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Dx.status.NO_CONTENT]})}};Go.ReservationService=Il});var Mb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var ql=b(),Fx=E(),Nl=class extends Fx.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[ql.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[ql.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[ql.status.NO_CONTENT]})}};Ko.OfferService=Nl});var Ib=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogService=void 0;var Wo=b(),kx=E(),jl=class extends kx.Service{async search(e){return this.fetch({uri:"/offerCatalogs",method:"GET",qs:e,expectedStatusCodes:[Wo.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wo.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogs/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[Wo.status.OK]}).then(async s=>s.json())}async sync2aggregateOffers(){await this.fetch({uri:"/offerCatalogs/sync2aggregateOffers",method:"POST",expectedStatusCodes:[Wo.status.NO_CONTENT]})}};Ho.OfferCatalogService=jl});var qb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var cn=b(),Bx=E(),xl=class extends Bx.Service{async create(e){return this.fetch({uri:"/offerCatalogItems",method:"POST",body:e,expectedStatusCodes:[cn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[cn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[cn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[cn.status.NO_CONTENT]})}async searchItemListElement(e){let{id:r,...n}=e;return this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(r))}/itemListElement`,method:"GET",qs:n,expectedStatusCodes:[cn.status.OK]}).then(async s=>s.json())}};Vo.OfferCatalogItemService=xl});var Nb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),$x=E(),Ul=class extends $x.Service{async create(e){return this.fetch({uri:"/offerItemConditions",method:"POST",body:e,expectedStatusCodes:[zo.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offerItemConditions",method:"GET",qs:e,expectedStatusCodes:[zo.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[zo.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/offerItemConditions/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[zo.status.NO_CONTENT]})}};Yo.OfferItemConditionService=Ul});var jb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),Gx=E(),Dl=class extends Gx.Service{async create(e){return this.fetch({uri:"/sellers",method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async update(e){await this.fetch({uri:`/sellers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/sellers/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>r.json())}async createPaymentAccepted(e){let{seller:r,...n}=e;await this.fetch({uri:`/sellers/${r.id}/paymentAccepted`,method:"POST",body:n,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deletePaymentAccepted(e){await this.fetch({uri:`/sellers/${e.seller.id}/paymentAccepted/${e.codeValue}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async searchProvidesPaymentService(e){return this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async createProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService`,method:"POST",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async updateProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteProvidesPaymentService(e){await this.fetch({uri:`/sellers/${e.provider?.id}/providesPaymentService/${e.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}async createMember(e){let r=e[0]?.member.memberOf.id;await this.fetch({uri:`/sellers/${String(r)}/members`,method:"POST",body:e,expectedStatusCodes:[_e.status.CREATED,_e.status.NO_CONTENT]})}async searchMembers(e){return this.fetch({uri:`/sellers/${String(e.seller.id)}/members`,method:"GET",qs:e.qs,expectedStatusCodes:[_e.status.OK]}).then(async r=>({data:await r.json()}))}async updateMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[_e.status.NO_CONTENT]})}async deleteMember(e){await this.fetch({uri:`/sellers/${e.member.memberOf.id}/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[_e.status.NO_CONTENT]})}};Qo.SellerService=Dl});var xb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Ll=b(),Kx=E(),Fl=class extends Kx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Ll.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Ll.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=Fl});var Ub=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var un=b(),Wx=E(),kl=class extends Wx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[un.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[un.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r}=e;return this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[un.status.OK]}).then(async n=>n.json())}async update(e){let{id:r,...n}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"PUT",body:n,expectedStatusCodes:[un.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[un.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=kl});var Db=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TaskService=void 0;var Bl=b(),Hx=E(),$l=class extends Hx.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Bl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Bl.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Bl.status.OK]}).then(async r=>r.json())}};Xo.TaskService=$l});var Lb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TicketService=void 0;var Vx=b(),zx=E(),Gl=class extends zx.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[Vx.status.OK]}).then(async r=>r.json())}};ea.TicketService=Gl});var Fb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.AssetTransactionService=void 0;var Yx=b(),Qx=E(),Kl=class extends Qx.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[Yx.status.OK]}).then(async r=>({data:await r.json()}))}};ta.AssetTransactionService=Kl});var kb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PayAssetTransactionService=void 0;var ra=b(),fr=Q(),Zx=E(),Wl=class extends Zx.Service{async check(e){return this.fetch({uri:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/check`,method:"POST",expectedStatusCodes:[ra.status.CREATED],body:e}).then(async r=>r.json())}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${fr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ra.status.OK]}).then(async r=>r.json())}};na.PayAssetTransactionService=Wl});var Bb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.ReserveAssetTransactionService=void 0;var sa=b(),Jx=E(),Hl=class extends Jx.Service{async start(e){return this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,expectedStatusCodes:[sa.status.OK]}).then(async r=>r.json())}async startWithNoResponse(e){await this.fetch({uri:"/assetTransactions/reserve/start",method:"POST",body:e,qs:{expectsNoContent:"1"},expectedStatusCodes:[sa.status.NO_CONTENT]})}async confirm(e){let{transactionNumber:r,id:n,...s}=e;await this.fetch({uri:typeof r=="string"?`/assetTransactions/reserve/${r}/confirm?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(n))}/confirm`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT],body:s})}async cancel(e){await this.fetch({uri:typeof e.transactionNumber=="string"?`/assetTransactions/reserve/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/reserve/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[sa.status.NO_CONTENT]})}};ia.ReserveAssetTransactionService=Hl});var $b=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var Xx=E(),Vl=class extends Xx.Service{};oa.TokenService=Vl});var Kb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var Gb=b(),eU=Q(),tU=E(),zl=class extends tU.Service{typeOf=eU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Gb.status.OK]}).then(async r=>({data:await r.json()}))}async searchActionsByTransactionId(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/actions`,method:"GET",qs:n,expectedStatusCodes:[Gb.status.OK]}).then(async s=>s.json())}};aa.PlaceOrderTransactionService=zl});var Wb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.ReturnOrderTransactionService=void 0;var rU=b(),nU=Q(),sU=E(),Yl=class extends sU.Service{typeOf=nU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[rU.status.OK]}).then(async r=>({data:await r.json()}))}};ca.ReturnOrderTransactionService=Yl});var Hb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.TransactionNumberService=void 0;var iU=b(),oU=E(),Ql=class extends oU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[iU.status.CREATED]}).then(async e=>e.json())}};ua.TransactionNumberService=Ql});var Vb=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.UserPoolService=void 0;var Zl=b(),aU=E(),Jl=class extends aU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[Zl.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[Zl.status.OK]}).then(async r=>({data:await r.json()}))}async findClientById(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients/${e.clientId}`,method:"GET",expectedStatusCodes:[Zl.status.OK]}).then(async r=>r.json())}};da.UserPoolService=Jl});var zb=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.WebSiteService=void 0;var la=b(),cU=E(),Xl=class extends cU.Service{async create(e){return this.fetch({uri:"/webSites",method:"POST",body:e,expectedStatusCodes:[la.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/webSites",method:"GET",qs:e,expectedStatusCodes:[la.status.OK]}).then(async r=>r.json())}async certifyById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}/certified`,method:"PUT",expectedStatusCodes:[la.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/webSites/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[la.status.NO_CONTENT]})}};fa.WebSiteService=Xl});var Yb=o(Ge=>{"use strict";var uU=Ge&&Ge.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),dU=Ge&&Ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=Ge&&Ge.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&uU(r,e,n[s]);return dU(r,e),r}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.ChevreConsole=Ge.service=void 0;var _;(function(t){let e;e=t.AccountingReport||(t.AccountingReport={});let r;r=t.AccountTitle||(t.AccountTitle={});let n;n=t.Action||(t.Action={});let s;s=t.AdditionalProperty||(t.AdditionalProperty={});let i;i=t.AggregateOffer||(t.AggregateOffer={});let u;u=t.AggregateReservation||(t.AggregateReservation={});let d;d=t.Aggregation||(t.Aggregation={});let f;f=t.Authorization||(t.Authorization={});let p;p=t.CategoryCode||(t.CategoryCode={});let y;y=t.CreativeWork||(t.CreativeWork={});let S;S=t.Customer||(t.Customer={});let m;m=t.CustomerType||(t.CustomerType={});let g;g=t.EmailMessage||(t.EmailMessage={});let w;w=t.Event||(t.Event={});let R;R=t.EventSeries||(t.EventSeries={});let I;I=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let D;D=t.IAM||(t.IAM={});let C;C=t.Identity||(t.Identity={});let M;M=t.IdentityProvider||(t.IdentityProvider={});let U;U=t.Issuer||(t.Issuer={});let k;k=t.Me||(t.Me={});let K;K=t.Member||(t.Member={});let j;j=t.MemberProgram||(t.MemberProgram={});let B;B=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let W;W=t.Message||(t.Message={});let $;$=t.MovieTicketType||(t.MovieTicketType={});let Y;Y=t.Order||(t.Order={});let Te;Te=t.OwnershipInfo||(t.OwnershipInfo={});let oe;oe=t.PaymentProduct||(t.PaymentProduct={});let se;se=t.PaymentServiceChannel||(t.PaymentServiceChannel={});let ie;ie=t.PendingReservation||(t.PendingReservation={});let ee;ee=t.Permission||(t.Permission={});let et;et=t.Person||(t.Person={});let it;it=t.Place||(t.Place={});let tt;(function(x){let gr;gr=x.HasPOS||(x.HasPOS={})})(tt=t.place||(t.place={}));let Ue;Ue=t.PriceSpecification||(t.PriceSpecification={});let a;a=t.Product||(t.Product={});let c;c=t.Project||(t.Project={});let l;l=t.ProjectMakesOffer||(t.ProjectMakesOffer={});let h;h=t.Reservation||(t.Reservation={});let v;v=t.Offer||(t.Offer={});let T;T=t.OfferCatalog||(t.OfferCatalog={});let P;P=t.OfferCatalogItem||(t.OfferCatalogItem={});let A;A=t.OfferItemCondition||(t.OfferItemCondition={});let L;L=t.Seller||(t.Seller={});let z;z=t.SellerMakesOffer||(t.SellerMakesOffer={});let Z;Z=t.SellerReturnPolicy||(t.SellerReturnPolicy={});let ue;ue=t.Task||(t.Task={});let Pe;Pe=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let Mt;(function(x){let gr;gr=x.Pay||(x.Pay={});let gn;gn=x.Reserve||(x.Reserve={})})(Mt=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Ae;(function(x){let gr;gr=x.PlaceOrder||(x.PlaceOrder={});let gn;gn=x.ReturnOrder||(x.ReturnOrder={})})(Ae=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let Cr;Cr=t.UserPool||(t.UserPool={});let kA;kA=t.WebSite||(t.WebSite={})})(_||(Ge.service=_={}));var ef=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Ug()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(Dg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F(Lg()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Fg()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Bg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F($g()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(Gg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Kg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(Wg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(Hg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(Vg()))).CustomerService),new _.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return _.CustomerType.svc===void 0&&(_.CustomerType.svc=(await Promise.resolve().then(()=>F(zg()))).CustomerTypeService),new _.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return _.EmailMessage.svc===void 0&&(_.EmailMessage.svc=(await Promise.resolve().then(()=>F(Yg()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(Zg()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(eb()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(tb()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(rb()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(nb()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(sb()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(ib()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(ab()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(cb()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(ub()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(db()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(lb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(fb()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(hb()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(yb()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(pb()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(vb()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(mb()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(Ob()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(Eb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(Cb()))).PlaceService),new _.Place.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasPOSInstance(e){return _.place.HasPOS.svc===void 0&&(_.place.HasPOS.svc=(await Promise.resolve().then(()=>F(gb()))).HasPOSService),new _.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return _.PriceSpecification.svc===void 0&&(_.PriceSpecification.svc=(await Promise.resolve().then(()=>F(bb()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(Pb()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(Ab()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(wb()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(Rb()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(Mb()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Ib()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(qb()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Nb()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(jb()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(xb()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Ub()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(Db()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F(Lb()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Fb()))).AssetTransactionService),new _.AssetTransaction.svc({...this.options,...e,retryableStatusCodes:[]})}async createPayAssetTransactionInstance(e){return _.assetTransaction.Pay.svc===void 0&&(_.assetTransaction.Pay.svc=(await Promise.resolve().then(()=>F(kb()))).PayAssetTransactionService),new _.assetTransaction.Pay.svc({...this.options,...e,retryableStatusCodes:[]})}async createReserveAssetTransactionInstance(e){return _.assetTransaction.Reserve.svc===void 0&&(_.assetTransaction.Reserve.svc=(await Promise.resolve().then(()=>F(Bb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F($b()))).TokenService),new _.Token.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceOrderTransactionInstance(e){return _.transaction.PlaceOrder.svc===void 0&&(_.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>F(Kb()))).PlaceOrderTransactionService),new _.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createReturnOrderTransactionInstance(e){return _.transaction.ReturnOrder.svc===void 0&&(_.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>F(Wb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Hb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(Vb()))).UserPoolService),new _.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return _.WebSite.svc===void 0&&(_.WebSite.svc=(await Promise.resolve().then(()=>F(zb()))).WebSiteService),new _.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};Ge.ChevreConsole=ef});var Qb=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PaymentService=void 0;var me=b(),ve=Q(),lU=E(),fU=["awashimakisen-production","awashimakisen-test"],tf=class extends lU.Service{async checkMovieTicket(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:r,purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async checkMovieTicketAsync(e){let{object:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:r,purpose:n},qs:{async:!0,purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeAnyPayment(e){let{object:r,purpose:n}=e,{amount:s,issuedThrough:i,paymentMethod:u,name:d,additionalProperty:f,ticketToken:p}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{object:{amount:s,issuedThrough:i,paymentMethod:u,...typeof d=="string"?{name:d}:void 0,...typeof p=="string"?{ticketToken:p}:void 0,...Array.isArray(f)?{additionalProperty:f}:void 0},purpose:n},qs:{purpose:{id:n.id}}}).then(async y=>y.json())}async authorizeCreditCard(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,issuedThrough:u,paymentMethod:d,creditCard:f,method:p,paymentMethodId:y,name:S,additionalProperty:m,ticketToken:g,eventIdsAsOrderedItem:w}=r,{acceptedPaymentMethodOfferIds:R}=s;if((typeof y!="string"||y==="")&&(typeof g!="string"||g===""))throw new ve.factory.errors.ArgumentNull("object.paymentMethodId or object.ticketToken");if(!fU.includes(this.options.project.id)&&(!Array.isArray(w)||w.length===0))throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{amount:i,issuedThrough:u,paymentMethod:d,...f!=null?{creditCard:f}:void 0,...typeof S=="string"?{name:S}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof y=="string"?{paymentMethodId:y}:void 0,...typeof g=="string"?{ticketToken:g}:void 0,...Array.isArray(m)?{additionalProperty:m}:void 0,...Array.isArray(w)?{eventIdsAsOrderedItem:w}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:R}},qs:{async:!0,purpose:{id:n.id}}}).then(async D=>D.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:u,paymentMethod:d,movieTickets:f,name:p,additionalProperty:y,ticketToken:S}=n,{acceptedPaymentMethodOfferIds:m}=i,{checkedActionId:g}=r;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/authorize`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED,me.status.CREATED],body:{object:{issuedThrough:u,paymentMethod:d,...Array.isArray(f)?{movieTickets:f}:void 0,...typeof p=="string"?{name:p}:void 0,...typeof S=="string"?{ticketToken:S}:void 0,...Array.isArray(y)?{additionalProperty:y}:void 0},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:m}},qs:{checkedActionId:g,async:!0,purpose:{id:s.id}}}).then(async w=>w.json())}async publishCreditCardPaymentUrl(e){let{object:r,purpose:n,instrumentOptions:s}=e,{amount:i,creditCard:u,issuedThrough:d,paymentMethod:f,method:p,ticketToken:y,eventIdsAsOrderedItem:S}=r,{acceptedPaymentMethodOfferIds:m}=s;if(typeof y!="string"||y==="")throw new ve.factory.errors.ArgumentNull("object.ticketToken");if(!Array.isArray(S)||S.length===0)throw new ve.factory.errors.ArgumentNull("object.eventIdsAsOrderedItem");return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl`,method:"POST",expectedStatusCodes:[me.status.ACCEPTED],body:{object:{amount:i,issuedThrough:d,paymentMethod:f,...u!=null?{creditCard:u}:void 0,...typeof p=="string"?{method:p}:void 0,...typeof y=="string"?{ticketToken:y}:void 0,...Array.isArray(S)?{eventIdsAsOrderedItem:S}:void 0},purpose:n,instrumentOptions:{acceptedPaymentMethodOfferIds:m}},qs:{async:!0,purpose:{id:n.id}}}).then(async g=>g.json())}async voidAnyPayment(e){let{id:r,purpose:n}=e;await this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:n},qs:{purpose:{id:n.id}}})}async voidTransaction(e){let{id:r,object:n,purpose:s}=e;await this.fetch({uri:`/payment/${n.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[me.status.NO_CONTENT],body:{purpose:s},qs:{purpose:{id:s.id}}})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e;return this.fetch({uri:`/payment/${n.typeOf}/authorize/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n,minimize:s}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id},minimize:s===!0}}).then(async i=>i.json())}async searchYkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/ykknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async searchMkknInfoByCheckMovieTicketAction(e){let{id:r,purpose:n,limit:s,page:i}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/check/${r}/result/mkknInfo`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:n,limit:s,page:i}}).then(async u=>u.json())}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/publishPaymentUrl/${r.id}`,method:"GET",expectedStatusCodes:[me.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async issueTicketThroughFaceToFace(e){let{purpose:r}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.FaceToFace}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r},qs:{purpose:{id:r.id}}}).then(async n=>n.json())}async issueTicketThroughCreditCard(e){let{purpose:r,ticketedPermit:n,ticketedInvoice:s}=e,i=typeof n?.issuedThrough.id=="string"?ve.factory.permit.PermitType.Permit:"Invoice";return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.CreditCard}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedPermit:n,ticketedInvoice:s},qs:{purpose:{id:r.id},serviceOutputType:i}}).then(async u=>u.json())}async issueTicketThroughMovieTicket(e){let{purpose:r,ticketedInvoice:n}=e;return this.fetch({uri:`/payment/${ve.factory.service.paymentService.PaymentServiceType.MovieTicket}/tickets`,method:"POST",expectedStatusCodes:[me.status.CREATED],body:{purpose:r,ticketedInvoice:n},qs:{purpose:{id:r.id}}}).then(async s=>s.json())}};ha.PaymentService=tf});var Zb=o(Ke=>{"use strict";var hU=Ke&&Ke.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),pU=Ke&&Ke.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&hU(r,e,n[s]);return yU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var dn;(function(t){let e;e=t.Payment||(t.Payment={})})(dn||(Ke.service=dn={}));var rf=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return dn.Payment.svc===void 0&&(dn.Payment.svc=(await Promise.resolve().then(()=>pU(Qb()))).PaymentService),new dn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=rf});var Xb=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.OfferService=void 0;var nf=b(),Jb=Q(),vU=E(),sf=class extends vU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${Jb.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[nf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async u=>u.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${Jb.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[nf.status.CREATED],body:e,qs:{purpose:{id:e.purpose.id},...r?.expectsMinimalResponse===!0?{expectsMinimalResponse:"1"}:void 0,...r?.noOfferSpecified===!0?{noOfferSpecified:"1"}:void 0}}).then(async n=>n.json())}async voidAuthorization(e){let{id:r,object:n,...s}=e;await this.fetch({uri:`/offers/${n.itemOffered.typeOf}/authorize/${r}/void`,method:"PUT",expectedStatusCodes:[nf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};ya.OfferService=sf});var eP=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PlaceOrderTransactionService=void 0;var hr=b(),SU=Q(),mU=E(),of=class extends mU.Service{typeOf=SU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[hr.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[hr.status.NO_CONTENT],body:e.agent})}async updateObject(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/object`,method:"PATCH",expectedStatusCodes:[hr.status.NO_CONTENT],body:e.object})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[hr.status.NO_CONTENT],body:n})}async confirm(e){let{id:r,...n}=e;return this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",expectedStatusCodes:[hr.status.OK],body:n}).then(async s=>s.json())}async cancel(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/cancel`,method:"PUT",expectedStatusCodes:[hr.status.NO_CONTENT]})}};pa.PlaceOrderTransactionService=of});var tP=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var ln=b(),_U=Q(),OU=E(),af=class extends OU.Service{typeOf=_U.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[ln.status.OK]}).then(async r=>r.json())}async verifyReturnPolicy(e){await this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,qs:{justVerify:!0},expectedStatusCodes:[ln.status.NO_CONTENT,ln.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[ln.status.NO_CONTENT],body:e.agent})}async confirm(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/confirm`,method:"PUT",body:n,expectedStatusCodes:[ln.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=af});var rP=o(We=>{"use strict";var TU=We&&We.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),EU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),cf=We&&We.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&TU(r,e,n[s]);return EU(r,e),r}})();Object.defineProperty(We,"__esModule",{value:!0});We.ChevreTxn=We.service=void 0;var nt;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(nt||(We.service=nt={}));var uf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>cf(Xb()))).OfferService),new nt.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createPlaceOrderTransactionInstance(e){return nt.transaction.PlaceOrder.svc===void 0&&(nt.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>cf(eP()))).PlaceOrderTransactionService),new nt.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}async createReturnOrderTransactionInstance(e){return nt.transaction.ReturnOrder.svc===void 0&&(nt.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>cf(tP()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=uf});var nP=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var fn=b(),hn=Q(),CU=E(),df=class extends CU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[fn.status.ACCEPTED],body:{object:r,purpose:n,...typeof s?.id=="string"?{potentialActions:s}:void 0},qs:{purpose:{id:n.id}}}).then(async i=>i.json())}async findAcceptAction(e){let{sameAs:r,purpose:n}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[fn.status.OK],qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async authorizeEventServiceByCOA(e){let{acceptAction:r,purpose:n}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[fn.status.CREATED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async voidAuthorizationByCOA(e){let{id:r,purpose:n}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[fn.status.ACCEPTED],body:{purpose:n},qs:{purpose:{id:n.id}}}).then(async s=>s.json())}async findVoidTask(e){let{taskId:r,actionId:n,purpose:s}=e;return this.fetch({uri:`/offers/${hn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[fn.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Sa.OfferService=df});var sP=o(He=>{"use strict";var gU=He&&He.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PU=He&&He.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&gU(r,e,n[s]);return bU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxc=He.service=void 0;var yn;(function(t){let e;e=t.Offer||(t.Offer={})})(yn||(He.service=yn={}));var lf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return yn.Offer.svc===void 0&&(yn.Offer.svc=(await Promise.resolve().then(()=>PU(nP()))).OfferService),new yn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=lf});var iP=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),AU=E(),ff=class extends AU.Service{constructor(e){super({...e,retryableStatusCodes:[ma.status.BAD_GATEWAY,ma.status.FORBIDDEN,ma.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[ma.status.OK]}).then(async r=>({data:await r.json()}))}};_a.CategoryCodeService=ff});var oP=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),wU=E(),hf=class extends wU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[Oa.status.OK]}).then(async r=>({data:await r.json()}))}};Ta.EmailMessageService=hf});var aP=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EventService=void 0;var Ie=b(),yr=Q(),RU=E(),yf=class extends RU.Service{constructor(e){super({...e,retryableStatusCodes:[Ie.status.BAD_GATEWAY,Ie.status.FORBIDDEN,Ie.status.UNAUTHORIZED]})}async search(e){if(e?.typeOf!==yr.factory.eventType.ScreeningEvent)throw new yr.factory.errors.Argument("typeOf",`typeOf must be ${yr.factory.eventType.ScreeningEvent}`);return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>({data:await r.json()}))}async searchEventSeries(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async projectMinimumFields(e){let{$projection:r,...n}=e;return this.fetch({uri:"/events",method:"GET",qs:{...n,$minimumProjection:!0},expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchAggregations(e){return this.fetch({uri:"/events/aggregations",method:"GET",qs:e,expectedStatusCodes:[Ie.status.OK]}).then(async r=>r.json())}async findById(e){let{id:r,typeOf:n}=e;if(![yr.factory.eventType.ScreeningEvent].includes(n))throw new yr.factory.errors.Argument("typeOf","invalid event type");let s=(await this.search({limit:1,page:1,typeOf:n,id:{$eq:String(r)}})).data.shift();if(s===void 0)throw new yr.factory.errors.NotFound(n);return s}async findSeatOffersDeprecated(e,r){let{event:n,...s}=e,i=r?.useDefaultSection===!0;return this.fetch({uri:`/events/${encodeURIComponent(String(n.id))}/seats`,method:"GET",qs:{...s,useDefaultSection:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>{let d=await u.json();return{data:d,...d.length>0?{sectionCode:d[0].containedInPlace?.branchCode}:void 0}})}async searchTicketOffers(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchTicketOffers4COA(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/ticket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferAppliesToMovieTicket(e){let{event:r,...n}=e;return this.fetch({uri:`/events/${e.event.id}/offers/appliesToMovieTicket`,method:"GET",expectedStatusCodes:[Ie.status.OK],qs:n}).then(async s=>s.json())}async searchOfferCatalogItems(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItems`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogItemAvailabilities(e){let{id:r,...n}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/offerCatalogItemAvailabilities`,method:"GET",qs:n,expectedStatusCodes:[Ie.status.OK]}).then(async s=>s.json())}async searchOfferCatalogs(e){let{id:r,limit:n,page:s,typeOf:i}=e;return this.fetch({uri:`/events/${encodeURIComponent(String(r))}/hasOfferCatalog`,method:"GET",qs:{limit:n,page:s,typeOf:i},expectedStatusCodes:[Ie.status.OK]}).then(async u=>u.json())}};Ea.EventService=yf});var uP=o(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.PlaceService=void 0;var pn=b(),cP=Q(),MU=E(),pf=class extends MU.Service{constructor(e){super({...e,retryableStatusCodes:[pn.status.BAD_GATEWAY,pn.status.FORBIDDEN,pn.status.UNAUTHORIZED]})}async searchMovieTheaters(e){return this.fetch({uri:`/places/${cP.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[pn.status.OK]}).then(async r=>({data:await r.json()}))}async searchScreeningRooms(e){return this.fetch({uri:`/places/${cP.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[pn.status.OK]}).then(async r=>({data:await r.json()}))}};Ca.PlaceService=pf});var dP=o(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.HasPOSService=void 0;var ga=b(),IU=Q(),qU=E(),vf=class extends qU.Service{constructor(e){super({...e,retryableStatusCodes:[ga.status.BAD_GATEWAY,ga.status.FORBIDDEN,ga.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${IU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ga.status.OK]}).then(async r=>r.json())}};ba.HasPOSService=vf});var lP=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.SellerService=void 0;var Ft=b(),NU=E(),Sf=class extends NU.Service{constructor(e){super({...e,retryableStatusCodes:[Ft.status.BAD_GATEWAY,Ft.status.FORBIDDEN,Ft.status.UNAUTHORIZED]})}async fetch(e){return super.fetch(e)}async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[Ft.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Ft.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentServices(e){return this.fetch({uri:`/sellers/${e.id}/paymentServices`,method:"GET",qs:e.qs,expectedStatusCodes:[Ft.status.OK]}).then(async r=>({data:await r.json()}))}async searchPaymentAccepted(e){return this.fetch({uri:`/sellers/${e.id}/paymentAccepted`,method:"GET",qs:e.qs,expectedStatusCodes:[Ft.status.OK]}).then(async r=>({data:await r.json()}))}};Pa.SellerService=Sf});var hP=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.service=void 0;var jU=iP(),xU=oP(),UU=aP(),DU=uP(),LU=dP(),FU=lP(),fP;(function(t){class e extends jU.CategoryCodeService{}t.CategoryCode=e;class r extends xU.EmailMessageService{}t.EmailMessage=r;class n extends UU.EventService{}t.Event=n;class s extends DU.PlaceService{}t.Place=s;let i;(function(d){class f extends LU.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class u extends FU.SellerService{}t.Seller=u})(fP||(Aa.service=fP={}))});var yP=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.CreativeWorkService=void 0;var kU=re(),BU=E(),mf=class extends BU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,kU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};wa.CreativeWorkService=mf});var pP=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CustomerService=void 0;var $U=re(),GU=E(),_f=class extends GU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,$U.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};Ra.CustomerService=_f});var vP=o(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.EventService=void 0;var pr=Q(),Ma=re(),KU=E(),Of=class extends KU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d}=this.options;await(await(await(0,Ma.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u}=this.options;return(await(await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:u})).createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEvents(e)}async updateEventStatus(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ma.loadChevreAdmin)({auth:r,endpoint:n});if(![pr.factory.eventStatusType.EventCancelled,pr.factory.eventStatusType.EventPostponed,pr.factory.eventStatusType.EventScheduled].includes(e.eventStatus))throw new pr.factory.errors.Argument("eventStatus","invalid eventStatus");let d=e.onUpdated?.sendEmailMessage;if(Array.isArray(d)&&d.length>50)throw new pr.factory.errors.Argument("onUpdated.sendEmailMessage","must be <=50");await(await u.createEventInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updatePartially({id:String(e.id),attributes:{typeOf:pr.factory.eventType.ScreeningEvent,eventStatus:e.eventStatus,onUpdated:e.onUpdated}})}};Ia.EventService=Of});var SP=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventOfferService=void 0;var WU=re(),HU=E(),Tf=class extends HU.Service{chevreAdminEventOffer;async createEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).createEventOfferByIdentifier(e,r)}async updateEventOfferByIdentifier(e,r){await(await this.getChevreAdminEventOffer()).updateEventOfferByIdentifier(e,r)}async findEventOffers(e){return(await this.getChevreAdminEventOffer()).findEventOffers(e)}async getChevreAdminEventOffer(){if(this.chevreAdminEventOffer===void 0){let{auth:e,endpoint:r,project:n,seller:s}=this.options,i=await(0,WU.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};qa.EventOfferService=Tf});var mP=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventSeriesService=void 0;var VU=re(),zU=E(),Ef=class extends zU.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,VU.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};Na.EventSeriesService=Ef});var OP=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.MeService=void 0;var _P=re(),YU=E(),Cf=class extends YU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,_P.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,_P.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};ja.MeService=Cf});var TP=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.NoteAboutOrderService=void 0;var gf=re(),QU=E(),bf=class extends QU.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,gf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByIdentifier(e)}async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,gf.loadChevreAdmin)({auth:r,endpoint:n})).createNoteAboutOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search({...e,inclusion:["about","id","identifier","text","typeOf"],exclusion:[]})}async updateById(e,r){let{text:n}=r,{auth:s,endpoint:i,project:u,seller:d}=this.options;await(await(await(0,gf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};xa.NoteAboutOrderService=bf});var CP=o(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.OfferService=void 0;var mt=Q(),EP=re(),ZU=E();function JU(t){let e={price:t.priceSpecification.price,referenceQuantity:t.priceSpecification.referenceQuantity,...typeof t.priceSpecification.accounting?.typeOf=="string"?{accounting:t.priceSpecification.accounting}:void 0};return{id:String(t.id),identifier:t.identifier,name:t.name,priceSpecification:e,...t.alternateName!==void 0&&t.alternateName!==null?{alternateName:t.alternateName}:void 0}}var Pf=class extends ZU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,EP.loadChevreAdmin)({auth:r,endpoint:n});if(e.limit!==void 0&&typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(e.page!==void 0&&typeof e.page!="number")throw new mt.factory.errors.Argument("page","must be number");let d=e.id?.$in;if(Array.isArray(d)&&(d.length>10||d.length<1))throw new mt.factory.errors.Argument("id.$in","must be >=1 and <=10");let f=e.identifier?.$in;if(Array.isArray(f)&&(f.length>10||f.length<1))throw new mt.factory.errors.Argument("identifier.$in","must be >=1 and <=10");let p=await u.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),y={id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},...typeof e.limit=="number"?{limit:Math.min(e.limit,100)}:void 0,...typeof e.page=="number"?{page:Math.max(e.page,1)}:void 0};return(await p.search({...y,$projection:{id:1,identifier:1,alternateName:1,name:1,priceSpecification:1}})).map(JU)}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,EP.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==mt.factory.product.ProductType.EventService&&y!==mt.factory.product.ProductType.Product)throw new mt.factory.errors.Argument("itemOffered.typeOf",`must be ${mt.factory.product.ProductType.EventService} or ${mt.factory.product.ProductType.Product}`)}),await(await d.createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,r)}};Ua.OfferService=Pf});var gP=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.OfferCatalogService=void 0;var vn=Q(),XU=re(),eD=E(),Af=class extends eD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options,d=await(0,XU.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==vn.factory.product.ProductType.EventService&&y!==vn.factory.product.ProductType.Product)throw new vn.factory.errors.Argument("itemOffered.typeOf",`must be ${vn.factory.product.ProductType.EventService} or ${vn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Da.OfferCatalogService=Af});var PP=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.OfferCatalogItemService=void 0;var bP=re(),tD=E(),wf=class extends tD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,bP.loadChevreAdmin)({auth:r,endpoint:n})).createOfferCatalogItemInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}}),f=e.identifier?.$in,p={id:1,identifier:1,name:1};return d.search({$projection:p,...Array.isArray(f)?{identifier:{$in:f}}:void 0})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;await(await(await(0,bP.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};La.OfferCatalogItemService=wf});var wP=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OrderService=void 0;var Fa=Q(),Sn=re(),rD=E(),AP=20,Rf=class extends rD.Service{async findByOrderNumber(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findByOrderNumber({orderNumber:String(e.orderNumber)},{})}async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Fa.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Fa.factory.errors.Argument("page","must be number");if(d<1||d>AP)throw new Fa.factory.errors.Argument("limit",`must be >=1 and <=${AP}`);if(f<1)throw new Fa.factory.errors.Argument("page","must be >=1");return(await u.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReturner({orderNumber:String(e.orderNumber)})}async searchAcceptedOffersByOrderNumber(e,r){let{auth:n,endpoint:s,project:i,seller:u}=this.options;return(await(await(0,Sn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""}})).searchAcceptedOffersByOrderNumber({orderNumber:String(e.orderNumber)},r)}async updateChangeableAttributes(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Sn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};ka.OrderService=Rf});var RP=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.PaymentMethodService=void 0;var nD=re(),sD=E(),Mf=class extends sD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,nD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ba.PaymentMethodService=Mf});var MP=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.ProductService=void 0;var mn=Q(),iD=re(),oD=E(),If=class extends oD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,iD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==mn.factory.product.ProductType.EventService&&f!==mn.factory.product.ProductType.Product)throw new mn.factory.errors.Argument("typeOf",`must be ${mn.factory.product.ProductType.EventService} or ${mn.factory.product.ProductType.Product}`)}),await(await u.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};$a.ProductService=If});var qP=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.ReservationService=void 0;var _n=Q(),Ga=re(),aD=E(),IP=20,qf=class extends aD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,u=await(0,Ga.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new _n.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new _n.factory.errors.Argument("page","must be number");if(d<1||d>IP)throw new _n.factory.errors.Argument("limit",`must be >=1 and <=${IP}`);if(f<1)throw new _n.factory.errors.Argument("page","must be >=1");return await(await u.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findReservations({...e,limit:d,page:f})}async useByTicket(e){let{instrument:r,location:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f}=this.options,p=await(0,Ga.loadChevreAdmin)({auth:i,endpoint:u}),y=String(s?.id),S=n?.identifier;await(await p.createReservationInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""}})).useByTicket({object:{id:y},instrument:r,...typeof S=="string"?{location:{identifier:S}}:void 0})}async searchUseActions(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,Ga.loadChevreAdmin)({auth:r,endpoint:n})).createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).searchUseActions({object:{id:String(e.object.id)}})}async cancel(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;if(typeof i?.id!="string"||i.id.length===0)throw new _n.factory.errors.ArgumentNull("seller.id");let u=await(0,Ga.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await u.createCancelReservationAssetTransactionInstance({project:s,seller:{id:i.id}})).startAndConfirm({transactionNumber:"",object:{reservation:{id:d}},...typeof e.agent?.name=="string"?{agent:{name:e.agent.name}}:void 0})}};Ka.ReservationService=qf});var NP=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.SellerService=void 0;var cD=re(),uD=E(),Nf=class extends uD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,cD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};Wa.SellerService=Nf});var jP=o(Ve=>{"use strict";var dD=Ve&&Ve.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lD=Ve&&Ve.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ce=Ve&&Ve.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&dD(r,e,n[s]);return lD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var G;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.Customer||(t.Customer={});let n;n=t.Event||(t.Event={});let s;s=t.EventOffer||(t.EventOffer={});let i;i=t.EventSeries||(t.EventSeries={});let u;u=t.Me||(t.Me={});let d;d=t.NoteAboutOrder||(t.NoteAboutOrder={});let f;f=t.Offer||(t.Offer={});let p;p=t.OfferCatalog||(t.OfferCatalog={});let y;y=t.OfferCatalogItem||(t.OfferCatalogItem={});let S;S=t.Order||(t.Order={});let m;m=t.PaymentMethod||(t.PaymentMethod={});let g;g=t.Product||(t.Product={});let w;w=t.Reservation||(t.Reservation={});let R;R=t.Seller||(t.Seller={})})(G||(Ve.service=G={}));var je=[],jf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createCreativeWorkInstance(e){return G.CreativeWork.svc===void 0&&(G.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(yP()))).CreativeWorkService),new G.CreativeWork.svc({...this.options,...e,retryableStatusCodes:je})}async createCustomerInstance(e){return G.Customer.svc===void 0&&(G.Customer.svc=(await Promise.resolve().then(()=>Ce(pP()))).CustomerService),new G.Customer.svc({...this.options,...e,retryableStatusCodes:je})}async createEventInstance(e){return G.Event.svc===void 0&&(G.Event.svc=(await Promise.resolve().then(()=>Ce(vP()))).EventService),new G.Event.svc({...this.options,...e,retryableStatusCodes:je})}async createEventOfferInstance(e){return G.EventOffer.svc===void 0&&(G.EventOffer.svc=(await Promise.resolve().then(()=>Ce(SP()))).EventOfferService),new G.EventOffer.svc({...this.options,...e,retryableStatusCodes:je})}async createEventSeriesInstance(e){return G.EventSeries.svc===void 0&&(G.EventSeries.svc=(await Promise.resolve().then(()=>Ce(mP()))).EventSeriesService),new G.EventSeries.svc({...this.options,...e,retryableStatusCodes:je})}async createMeInstance(){return G.Me.svc===void 0&&(G.Me.svc=(await Promise.resolve().then(()=>Ce(OP()))).MeService),new G.Me.svc({...this.options})}async createNoteInstance(e){return G.NoteAboutOrder.svc===void 0&&(G.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(TP()))).NoteAboutOrderService),new G.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:je})}async createOfferInstance(e){return G.Offer.svc===void 0&&(G.Offer.svc=(await Promise.resolve().then(()=>Ce(CP()))).OfferService),new G.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return G.OfferCatalog.svc===void 0&&(G.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(gP()))).OfferCatalogService),new G.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:je})}async createOfferCatalogItemInstance(e){return G.OfferCatalogItem.svc===void 0&&(G.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(PP()))).OfferCatalogItemService),new G.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:je})}async createOrderInstance(e){return G.Order.svc===void 0&&(G.Order.svc=(await Promise.resolve().then(()=>Ce(wP()))).OrderService),new G.Order.svc({...this.options,...e,retryableStatusCodes:je})}async createPaymentMethodInstance(e){return G.PaymentMethod.svc===void 0&&(G.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(RP()))).PaymentMethodService),new G.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:je})}async createProductInstance(e){return G.Product.svc===void 0&&(G.Product.svc=(await Promise.resolve().then(()=>Ce(MP()))).ProductService),new G.Product.svc({...this.options,...e,retryableStatusCodes:je})}async createReservationInstance(e){return G.Reservation.svc===void 0&&(G.Reservation.svc=(await Promise.resolve().then(()=>Ce(qP()))).ReservationService),new G.Reservation.svc({...this.options,...e,retryableStatusCodes:je})}async createSellerInstance(e){return G.Seller.svc===void 0&&(G.Seller.svc=(await Promise.resolve().then(()=>Ce(NP()))).SellerService),new G.Seller.svc({...this.options,...e,retryableStatusCodes:je})}};Ve.CloudAdmin=jf});var xP=o(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.OrderService=void 0;var kt=re(),fD=E(),xf=class extends fD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p}=e,{confirmationNumber:y,orderNumber:S}=p;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).createIfNotExist({confirmationNumber:y,orderNumber:S})}async findByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,orderDateFrom:S,orderDateThrough:m,orderNumber:g}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByConfirmationNumber({confirmationNumber:p,...y!==void 0?{customer:y}:void 0,...S!==void 0?{orderDateFrom:S}:void 0,...m!==void 0?{orderDateThrough:m}:void 0,...typeof g=="string"?{orderNumber:g}:void 0})}async findByEventAndConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,customer:y,event:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByEventAndConfirmationNumber({confirmationNumber:p,event:S,...typeof y?.telephone=="string"?{customer:y}:void 0})}async findByOrderInquiryKey4sskts(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,telephone:y,theaterCode:S}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByOrderInquiryKey4sskts({confirmationNumber:p,telephone:y,theaterCode:S})}async findOneByOrderNumberAndSomething(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{customer:p,orderNumber:y}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findOneByOrderNumberAndSomething({orderNumber:y,...typeof p?.telephone=="string"?{customer:p}:void 0})}async authorize(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e.object,{object:y,result:S}=e,m=await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{code:g}=await m.authorize({object:{customer:y.customer,orderNumber:p},...S?.expiresInSeconds!==void 0?{result:S}:void 0});return{code:g}}async searchAcceptedOffersByConfirmationNumber(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,kt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{orderNumber:p}=e,{limit:y,page:S,confirmationNumber:m}=e;return(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).searchAcceptedOffersByConfirmationNumber({confirmationNumber:m,orderNumber:p,...typeof y=="number"?{limit:y}:void 0,...typeof S=="number"?{page:S}:void 0})}};Ha.OrderService=xf});var UP=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.DeliveryService=void 0;var hD=re(),yD=E(),Uf=class extends yD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,hD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{confirmationNumber:p,orderNumber:y}=e.object;await(await f.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).deliverOrder({confirmationNumber:p,orderNumber:y})}};Va.DeliveryService=Uf});var LP=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.ReservationService=void 0;var DP=re(),pD=E(),Df=class extends pD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,f=await(0,DP.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:u}),{object:p,instrument:y}=e;return(await f.createReservationInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).findByCode({object:p,instrument:y})}async searchByOrder(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,DP.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};za.ReservationService=Df});var FP=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.TokenService=void 0;var vD=E(),Lf=class extends vD.Service{};Ya.TokenService=Lf});var kP=o(ze=>{"use strict";var SD=ze&&ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qa=ze&&ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&SD(r,e,n[s]);return mD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var Za=b(),qe;(function(t){let e;e=t.Delivery||(t.Delivery={});let r;r=t.Order||(t.Order={});let n;n=t.Reservation||(t.Reservation={});let s;s=t.Token||(t.Token={})})(qe||(ze.service=qe={}));var Ja=[Za.status.BAD_GATEWAY,Za.status.SERVICE_UNAVAILABLE,Za.status.FORBIDDEN,Za.status.UNAUTHORIZED],Ff=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOrderInstance(e){return qe.Order.svc===void 0&&(qe.Order.svc=(await Promise.resolve().then(()=>Qa(xP()))).OrderService),new qe.Order.svc({...this.options,...e,retryableStatusCodes:Ja})}async createDeliveryInstance(e){return qe.Delivery.svc===void 0&&(qe.Delivery.svc=(await Promise.resolve().then(()=>Qa(UP()))).DeliveryService),new qe.Delivery.svc({...this.options,...e,retryableStatusCodes:Ja})}async createReservationInstance(e){return qe.Reservation.svc===void 0&&(qe.Reservation.svc=(await Promise.resolve().then(()=>Qa(LP()))).ReservationService),new qe.Reservation.svc({...this.options,...e,retryableStatusCodes:Ja})}async createTokenInstance(e){return qe.Token.svc===void 0&&(qe.Token.svc=(await Promise.resolve().then(()=>Qa(FP()))).TokenService),new qe.Token.svc({...this.options,...e,retryableStatusCodes:Ja})}};ze.CloudAsset=Ff});var BP=o(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.CreativeWorkService=void 0;var _D=b(),OD=E(),kf=class extends OD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[_D.status.OK]}).then(async r=>r.json())}};Xa.CreativeWorkService=kf});var $P=o(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.PaymentProductService=void 0;var TD=b(),ED=E(),Bf=class extends ED.Service{async findPaymentServices(e){let{limit:r,page:n,typeOf:s}=e;return this.fetch({uri:"/paymentServices",method:"GET",qs:{limit:r,page:n,typeOf:s},expectedStatusCodes:[TD.status.OK]}).then(async i=>i.json())}};ec.PaymentProductService=Bf});var GP=o(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.ProductService=void 0;var $f=b(),CD=E(),Gf=class extends CD.Service{async search(e){let{typeOf:r,limit:n,page:s}=e;return this.fetch({uri:"/products",method:"GET",qs:{typeOf:r,limit:n,page:s},expectedStatusCodes:[$f.status.OK]}).then(async i=>i.json())}async searchOffers(e){let{limit:r,page:n,itemOffered:s,seller:i}=e;return this.fetch({uri:`/products/${e.itemOffered.id}/offers`,method:"GET",expectedStatusCodes:[$f.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async u=>u.json())}async searchProductModels(e){let{category:r,limit:n,page:s}=e;return this.fetch({uri:"/productModels",method:"GET",qs:{category:r,limit:n,page:s},expectedStatusCodes:[$f.status.OK]}).then(async i=>i.json())}};tc.ProductService=Gf});var KP=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.EventOfferService=void 0;var gD=b(),bD=E(),PD="/eventOffers",Kf=class extends bD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u}=e;return this.fetch({uri:PD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:u},expectedStatusCodes:[gD.status.OK]}).then(async d=>d.json())}};rc.EventOfferService=Kf});var HP=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.PlaceService=void 0;var WP=b(),AD=E(),Wf=class extends AD.Service{async findSectionsByRoom(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i}=e;return this.fetch({uri:"/seatSections",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i},expectedStatusCodes:[WP.status.OK]}).then(async u=>u.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:u,seatingType:d},expectedStatusCodes:[WP.status.OK]}).then(async f=>f.json())}};nc.PlaceService=Wf});var VP=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.SeatOfferService=void 0;var wD=b(),RD=E(),MD="/seatOffers",Hf=class extends RD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:MD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[wD.status.OK]}).then(async u=>u.json())}};sc.SeatOfferService=Hf});var zP=o(Ye=>{"use strict";var ID=Ye&&Ye.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qD=Ye&&Ye.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vr=Ye&&Ye.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ID(r,e,n[s]);return qD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var Vf=b(),he;(function(t){let e;e=t.CreativeWork||(t.CreativeWork={});let r;r=t.EventOffer||(t.EventOffer={});let n;n=t.PaymentProduct||(t.PaymentProduct={});let s;s=t.Place||(t.Place={});let i;i=t.Product||(t.Product={});let u;u=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[Vf.status.BAD_GATEWAY,Vf.status.FORBIDDEN,Vf.status.UNAUTHORIZED],zf=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(BP()))).CreativeWorkService),new he.CreativeWork.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPaymentProductInstance(e){return he.PaymentProduct.svc===void 0&&(he.PaymentProduct.svc=(await Promise.resolve().then(()=>vr($P()))).PaymentProductService),new he.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:Sr})}async createProductInstance(e){return he.Product.svc===void 0&&(he.Product.svc=(await Promise.resolve().then(()=>vr(GP()))).ProductService),new he.Product.svc({...this.options,...e,retryableStatusCodes:Sr})}async createEventOfferInstance(e){return he.EventOffer.svc===void 0&&(he.EventOffer.svc=(await Promise.resolve().then(()=>vr(KP()))).EventOfferService),new he.EventOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}async createPlaceInstance(e){return he.Place.svc===void 0&&(he.Place.svc=(await Promise.resolve().then(()=>vr(HP()))).PlaceService),new he.Place.svc({...this.options,...e,retryableStatusCodes:Sr})}async createSeatOfferInstance(e){return he.SeatOffer.svc===void 0&&(he.SeatOffer.svc=(await Promise.resolve().then(()=>vr(VP()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=zf});var ZP=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.PaymentService=void 0;var le=b(),ge=Q(),be=re(),ND=E(),YP=1e3,jD=5e3;async function QP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var Yf=class extends ND.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeAnyPayment(e)}async authorizeCreditCardAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!0,intervalAfterIssueTicketInMS:u});return w.authorizeCreditCard({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async authorizeMovieTicketAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,{checkedActionId:u}=r,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,g=await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S}),{ticketToken:w}=await this.issueTicketThroughMovieTicketUntilSuccess(e,r);return(await g.createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).authorizeMovieTicket({object:{...n,ticketToken:w},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}},{checkedActionId:u})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,u=r?.intervalAfterIssueTicketInMS,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options,w=await(await(0,be.loadChevrePay)({auth:d,endpoint:f,disableAutoRetry:S})).createPaymentInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),{ticketToken:R}=await this.issueTicketThroughCreditCardIfNotExists({object:n,purpose:s},{checkPaymentMethodId:!1,intervalAfterIssueTicketInMS:u});if(typeof R!="string"||R==="")throw new ge.factory.errors.ArgumentNull("object.ticketToken");return w.publishCreditCardPaymentUrl({object:{...n,ticketToken:R},purpose:s,instrumentOptions:{acceptedPaymentMethodOfferIds:Array.isArray(i)?i:[]}})}async checkMovieTicketAsync(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]}),y=String(e.object?.id),S=String(e.object?.paymentMethod?.typeOf),m=typeof e.purpose?.id=="string"?{id:e.purpose.id,typeOf:e.purpose.typeOf}:{id:"",typeOf:ge.factory.transactionType.PlaceOrder},g=Array.isArray(e.object?.movieTickets)?e.object.movieTickets.map(w=>({...w,typeOf:S})):[];if(g.length!==1)throw new ge.factory.errors.Argument("object.movieTickets","movieTickets length must be 1");return p.checkMovieTicketAsync({object:[{typeOf:ge.factory.service.paymentService.PaymentServiceType.MovieTicket,id:y,paymentMethod:{typeOf:S},movieTickets:g,seller:{id:String(e.object?.seller?.id),typeOf:ge.factory.organizationType.Corporation}}],purpose:m})}async voidAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).voidAnyPayment({id:String(e.id),purpose:e.purpose})}async voidTransaction(e){let{id:r,object:n,...s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],le.status.CONFLICT,le.status.GATEWAY_TIMEOUT,le.status.TOO_MANY_REQUESTS]})).voidTransaction({id:String(r),object:{typeOf:n.typeOf},purpose:s.purpose})}async findAuthorizeAction(e){let{sameAs:r,object:n,purpose:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:u,disableAutoRetry:p})).createPaymentInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).findAuthorizeAction({sameAs:{id:String(r.id)},object:{typeOf:n.typeOf},purpose:s})}async findAcceptPayAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findAcceptPayAction({sameAs:{id:String(r.id)},purpose:n})}async findCheckMovieTicketAction(e){let{sameAs:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).findCheckMovieTicketAction({sameAs:{id:String(r.id)},purpose:n,minimize:!0})}async searchMkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchMkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async searchYkknInfoByCheckMovieTicketAction(e){let{limit:r,page:n,id:s,purpose:i}=e;if(typeof r!="number")throw new ge.factory.errors.Argument("limit","limit must be number");if(typeof n!="number")throw new ge.factory.errors.Argument("page","page must be number");if(r<1||r>20)throw new ge.factory.errors.Argument("limit","limit must be >=1 and <=20");if(n<1)throw new ge.factory.errors.Argument("page","page must be >=1");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[...Array.isArray(S)?S:[]]})).searchYkknInfoByCheckMovieTicketAction({limit:r,page:n,id:s,purpose:i})}async issueTicketThroughFaceToFace(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughFaceToFace(e)}async issueTicketThroughCreditCard(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:u})).createPaymentInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[],le.status.CONFLICT,le.status.TOO_MANY_REQUESTS]})).issueTicketThroughCreditCard(e)}async issueTicketThroughMovieTicketUntilSuccess(e,r){let{object:n,purpose:s}=e,{giveUpInMS:i}=r;if(typeof i!="number"||i<=0)throw new ge.factory.errors.Argument("giveUpInMS","must be number > 0");let{auth:u,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,m=await(await(0,be.loadChevrePay)({auth:u,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,w=setTimeout(()=>{g=!0},i),R,I=new ge.factory.errors.GatewayTimeout("given up");for(;R===void 0&&!g;){try{R=await m.issueTicketThroughMovieTicket({ticketedInvoice:{issuedThrough:{id:n.issuedThrough?.id}},purpose:s}),clearTimeout(w);break}catch(D){I=D}await QP(jD),console.log("retrying issueTicketThroughMovieTicket...",I?.name,g)}if(typeof R?.ticketToken=="string")return R;throw I}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,u=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>YP?r.intervalAfterIssueTicketInMS:YP,f=!1,p=n.paymentMethodId;if(i?(typeof u!="string"||u==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof u!="string"||u==="")&&(f=!0),!f)return{ticketToken:u};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await QP(d),y}};ic.PaymentService=Yf});var JP=o(Qe=>{"use strict";var xD=Qe&&Qe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UD=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),DD=Qe&&Qe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&xD(r,e,n[s]);return UD(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var oc=b(),On;(function(t){let e;e=t.Payment||(t.Payment={})})(On||(Qe.service=On={}));var LD=[oc.status.BAD_GATEWAY,oc.status.SERVICE_UNAVAILABLE,oc.status.FORBIDDEN,oc.status.UNAUTHORIZED],Qf=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPaymentInstance(e){return On.Payment.svc===void 0&&(On.Payment.svc=(await Promise.resolve().then(()=>DD(ZP()))).PaymentService),new On.Payment.svc({...this.options,...e,retryableStatusCodes:LD})}};Qe.CloudPay=Qf});var rA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.authorizeOfferAsync=kD;ac.voidAuthorizeOfferAsync=BD;var te=Q(),XP=2e4,eA=1e3;async function tA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function FD(t){let e;switch(t.reason){case te.factory.errorCode.Argument:e=new te.factory.errors.Argument("",t.message);break;case te.factory.errorCode.ArgumentNull:e=new te.factory.errors.ArgumentNull("",t.message);break;case te.factory.errorCode.Unauthorized:e=new te.factory.errors.Unauthorized(t.message);break;case te.factory.errorCode.Forbidden:e=new te.factory.errors.Forbidden(t.message);break;case te.factory.errorCode.NotFound:e=new te.factory.errors.NotFound("",t.message);break;case te.factory.errorCode.AlreadyInUse:e=new te.factory.errors.AlreadyInUse("",[],t.message);break;case te.factory.errorCode.RateLimitExceeded:e=new te.factory.errors.RateLimitExceeded(t.message);break;case te.factory.errorCode.GatewayTimeout:e=new te.factory.errors.GatewayTimeout(t.message);break;default:e=new te.factory.errors.Internal(t.message)}return e}function kD(t){return async e=>{let r=await e.offerService.acceptOffer({object:{event:{id:t.event.id},acceptedOffer:t.acceptedOffer,...t.appliesToSurfrock!==void 0?{appliesToSurfrock:t.appliesToSurfrock}:void 0},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},XP);let s,i;for(;s===void 0&&i===void 0;){if(await tA(eA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(typeof u.id=="string"&&u.actionStatus===te.factory.actionStatusType.CompletedActionStatus){s={id:u.id};break}if(u.error!==void 0){i=FD(u.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});throw i}}function BD(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},XP);let s,i;for(;s===void 0&&i===void 0;){if(await tA(eA),n){i=new te.factory.errors.GatewayTimeout("action given up");break}let u=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:te.factory.transactionType.PlaceOrder}});if(u.status===te.factory.taskStatus.Executed){s=u;break}}if(typeof s?.status!="string")throw i}}});var sA=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PlaceOrderCOAService=void 0;var nA=Q(),Zf=re(),$D=E(),Jf=rA(),Xf=class extends $D.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:u}=r,d=typeof u?.identifier=="string"&&u.identifier.length>0?u.identifier:"",f=typeof u?.serviceOutput?.typeOf=="string"&&u.serviceOutput.typeOf.length>0?u.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:m,disableAutoRetry:g,retryableStatusCodes:w}=this.options,I=await(await(0,Zf.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof m?.id=="string"?m.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),D=await(0,Jf.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:I});if(typeof D.result?.price!="number")throw new nA.factory.errors.Internal("result.price undefined");return{id:D.id,result:{price:D.result.price,responseBody:{tmpReserveNum:D.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,Zf.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,Jf.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:u,appliesToSurfrock:d}=n,f=typeof d?.identifier=="string"&&d.identifier.length>0?d.identifier:"",p=typeof d?.serviceOutput?.typeOf=="string"&&d.serviceOutput.typeOf.length>0?d.serviceOutput.typeOf:"",{auth:y,endpoint:S,project:m,seller:g,disableAutoRetry:w,retryableStatusCodes:R}=this.options,D=await(await(0,Zf.loadChevreTxc)({auth:y,endpoint:S,disableAutoRetry:w})).createOfferInstance({project:m,seller:{id:typeof g?.id=="string"?g.id:""},retryableStatusCodes:[...Array.isArray(R)?R:[]]}),C=await(0,Jf.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:u,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:D});if(typeof C.result?.price!="number")throw new nA.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};cc.PlaceOrderCOAService=Xf});var iA=o(Ze=>{"use strict";var GD=Ze&&Ze.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),KD=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WD=Ze&&Ze.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&GD(r,e,n[s]);return KD(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var uc=b(),Tn;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(Tn||(Ze.service=Tn={}));var HD=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],eh=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createPlaceOrderInstance(e){return Tn.transaction.PlaceOrder.svc===void 0&&(Tn.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>WD(sA()))).PlaceOrderCOAService),new Tn.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:HD})}};Ze.CloudTxc=eh});var oA=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.OfferService=void 0;var VD=Q(),th=re(),zD=E(),rh=class extends zD.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:u,retryableStatusCodes:d}=this.options,p=await(await(0,th.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:u})).createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]}),{ticketedOffer:y,audience:S,eventId:m,eventOfferId:g}=e;return p.issueEventServiceOfferTicket({ticketedOffer:y,audience:S,eventId:m,eventOfferId:g})}async authorizeEventService(e,r){let{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,th.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:VD.factory.transactionType.PlaceOrder},instrument:Array.isArray(e.instrument)?e.instrument:[]},r)}async voidAuthorization(e){let{id:r,purpose:n,object:s}=e,{auth:i,endpoint:u,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,th.loadChevreTxn)({auth:i,endpoint:u,disableAutoRetry:p})).createOfferInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[]]})).voidAuthorization({id:r,object:{itemOffered:{typeOf:s.itemOffered.typeOf}},purpose:n})}};dc.OfferService=rh});var aA=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderTransactionService=void 0;var mr=b(),_r=re(),YD=E(),nh=class extends YD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).start({agent:r,object:n,seller:{id:e.seller.id}})}async setProfile(e){let{id:r,agent:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).setProfile({id:r,agent:n})}async changeExpiringDate(e){let{id:r,expires:n}=e,{auth:s,endpoint:i,project:u,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]})).changeExpiringDate({id:r,expires:n})}async confirm4tttsPOS(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({expectsReservationIds:!0,id:r})}async confirmWithMiminalResponse(e){let{id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u}=e,{auth:d,endpoint:f,project:p,seller:y,disableAutoRetry:S,retryableStatusCodes:m}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:d,endpoint:f,disableAutoRetry:S})).createPlaceOrderTransactionInstance({project:p,seller:{id:typeof y?.id=="string"?y.id:""},retryableStatusCodes:[...Array.isArray(m)?m:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,potentialActions:n,result:s,sendEmailMessage:i,email:u,expectsMinimalResponse:!0})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:u,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};lc.PlaceOrderTransactionService=nh});var cA=o(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.ReturnOrderTransactionService=void 0;var sh=re(),QD=E(),ih=class extends QD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,sh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).start({agent:r,object:n})}async verifyReturnPolicy(e){let{object:r}=e,{auth:n,endpoint:s,project:i,seller:u,retryableStatusCodes:d}=this.options;await(await(await(0,sh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof u?.id=="string"?u.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:u,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,sh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:u,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};fc.ReturnOrderTransactionService=ih});var uA=o(Je=>{"use strict";var ZD=Je&&Je.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JD=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),oh=Je&&Je.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&ZD(r,e,n[s]);return JD(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var hc=b(),st;(function(t){let e;e=t.Offer||(t.Offer={});let r;(function(n){let s;s=n.PlaceOrder||(n.PlaceOrder={});let i;i=n.ReturnOrder||(n.ReturnOrder={})})(r=t.transaction||(t.transaction={}))})(st||(Je.service=st={}));var ah=[hc.status.BAD_GATEWAY,hc.status.SERVICE_UNAVAILABLE,hc.status.FORBIDDEN,hc.status.UNAUTHORIZED],ch=class{options;constructor(e){if(new RegExp("cloud|cinerino|dot|appspot").test(e.endpoint))throw new Error("endpoint discontinued");this.options=e}async createOfferInstance(e){return st.Offer.svc===void 0&&(st.Offer.svc=(await Promise.resolve().then(()=>oh(oA()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:ah})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>oh(aA()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:ah})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>oh(cA()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:ah})}};Je.CloudTxn=ch});var dA=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.RuleService=void 0;var XD=b(),eL=E(),uh=class extends eL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[XD.status.OK]}).then(async r=>r.json())}};yc.RuleService=uh});var fA=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.RuleSetService=void 0;var lA=b(),tL=E(),dh=class extends tL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[lA.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[lA.status.NO_CONTENT]})}};pc.RuleSetService=dh});var yA=o(Xe=>{"use strict";var rL=Xe&&Xe.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hA=Xe&&Xe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&rL(r,e,n[s]);return nL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Rt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Rt||(Xe.service=Rt={}));var lh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Rt.Rule.svc===void 0&&(Rt.Rule.svc=(await Promise.resolve().then(()=>hA(dA()))).RuleService),new Rt.Rule.svc({...this.options,...e,retryableStatusCodes:[]})}async createRuleSetInstance(e){return Rt.RuleSet.svc===void 0&&(Rt.RuleSet.svc=(await Promise.resolve().then(()=>hA(fA()))).RuleSetService),new Rt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=lh});var re=o(X=>{"use strict";var sL=X&&X.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),iL=X&&X.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Oe=X&&X.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&sL(r,e,n[s]);return iL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=cL;X.loadChevreAsset=uL;X.loadChevreAdmic=dL;X.loadChevreAdmin=lL;X.loadChevreConsole=fL;X.loadChevrePay=hL;X.loadChevreTxn=yL;X.loadChevreTxc=pL;X.loadService=vL;X.loadCloudAdmin=SL;X.loadCloudAsset=mL;X.loadCloudSearch=_L;X.loadCloudPay=OL;X.loadCloudTxc=TL;X.loadCloudTxn=EL;X.loadWaiterAdmin=CL;var oL=Q();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return oL.factory}});var aL=Oe(ks());X.transporters=aL;var fh;async function cL(...t){return fh===void 0&&(fh=(await Promise.resolve().then(()=>Oe(WC()))).Chevre),new fh(...t)}var hh;async function uL(...t){return hh===void 0&&(hh=(await Promise.resolve().then(()=>Oe(QC()))).ChevreAsset),new hh(...t)}var yh;async function dL(...t){return yh===void 0&&(yh=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAdmic),new yh(...t)}var ph;async function lL(...t){return ph===void 0&&(ph=(await Promise.resolve().then(()=>Oe(xg()))).ChevreAdmin),new ph(...t)}var vh;async function fL(...t){return vh===void 0&&(vh=(await Promise.resolve().then(()=>Oe(Yb()))).ChevreConsole),new vh(...t)}var Sh;async function hL(...t){return Sh===void 0&&(Sh=(await Promise.resolve().then(()=>Oe(Zb()))).ChevrePay),new Sh(...t)}var mh;async function yL(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(rP()))).ChevreTxn),new mh(...t)}var _h;async function pL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(sP()))).ChevreTxc),new _h(...t)}var Oh;async function vL(){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(hP()))).service),Oh}var Th;async function SL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(jP()))).CloudAdmin),new Th(...t)}var Eh;async function mL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(kP()))).CloudAsset),new Eh(...t)}var Ch;async function _L(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(zP()))).CloudSearch),new Ch(...t)}var gh;async function OL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(JP()))).CloudPay),new gh(...t)}var bh;async function TL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(iA()))).CloudTxc),new bh(...t)}var Ph;async function EL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(uA()))).CloudTxn),new Ph(...t)}var Ah;async function CL(...t){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(yA()))).WaiterAdmin),new Ah(...t)}});var pA=o(Bt=>{"use strict";var gL=Bt&&Bt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),bL=Bt&&Bt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gL(e,t,r)};Object.defineProperty(Bt,"__esModule",{value:!0});bL(re(),Bt)});var wA=o((e5,AA)=>{var Gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kt(t){var e={exports:{}};return t(e,e.exports),e.exports}var PL=Kt(function(t,e){t.exports=(function(){function r(h){return typeof h=="function"}var n=Array.isArray?Array.isArray:function(h){return Object.prototype.toString.call(h)==="[object Array]"},s=0,i=void 0,u=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(u?u(R):U())},f=typeof window<"u"?window:void 0,p=f||{},y=p.MutationObserver||p.WebKitMutationObserver,S=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",m=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function g(){var h=setTimeout;return function(){return h(R,1)}}var w=new Array(1e3);function R(){for(var h=0;h<s;h+=2)(0,w[h])(w[h+1]),w[h]=void 0,w[h+1]=void 0;s=0}var I,D,C,M,U=void 0;function k(h,v){var T=this,P=new this.constructor(B);P[j]===void 0&&a(P);var A=T._state;if(A){var L=arguments[A-1];d(function(){return tt(A,P,L,T._result)})}else et(T,P,h,v);return P}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(B);return oe(v,h),v}U=S?function(){return process.nextTick(R)}:y?(D=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=D=++D%2}):m?((I=new MessageChannel).port1.onmessage=R,function(){return I.port2.postMessage(0)}):f===void 0?(function(){try{var h=Function("return this")().require("vertx");return(i=h.runOnLoop||h.runOnContext)!==void 0?function(){i(R)}:g()}catch{return g()}})():g();var j=Math.random().toString(36).substring(2);function B(){}var W=void 0,$=1,Y=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(P,A){A._state===$?ie(P,A._result):A._state===Y?ee(P,A._result):et(A,void 0,function(L){return oe(P,L)},function(L){return ee(P,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(P,A,L){d(function(z){var Z=!1,ue=(function(Pe,Ee,Mt,ye){try{Pe.call(Ee,function(Ae){Z||(Z=!0,A!==Ae?oe(z,Ae):ie(z,Ae))},function(Ae){Z||(Z=!0,ee(z,Ae))})}catch(Ae){return Ae}})(L,A);!Z&&ue&&(Z=!0,ee(z,ue))},P)})(h,v,T):ie(h,v)}function oe(h,v){if(h===v)ee(h,new TypeError("You cannot resolve a promise with itself"));else if(A=typeof(P=v),P===null||A!=="object"&&A!=="function")ie(h,v);else{var T=void 0;try{T=v.then}catch(L){return void ee(h,L)}Te(h,v,T)}var P,A}function se(h){h._onerror&&h._onerror(h._result),it(h)}function ie(h,v){h._state===W&&(h._result=v,h._state=$,h._subscribers.length!==0&&d(it,h))}function ee(h,v){h._state===W&&(h._state=Y,h._result=v,d(se,h))}function et(h,v,T,P){var A=h._subscribers,L=A.length;h._onerror=null,A[L]=v,A[L+$]=T,A[L+Y]=P,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var P=void 0,A=void 0,L=h._result,z=0;z<v.length;z+=3)A=v[z+T],(P=v[z])?tt(T,P,A,L):A(L);h._subscribers.length=0}}function tt(h,v,T,P){var A=r(T),L=void 0,z=void 0,Z=!0;if(A){try{L=T(P)}catch(ue){Z=!1,z=ue}if(v===L)return void ee(v,new TypeError("A promises callback cannot return that same promise."))}else L=P;v._state!==W||(A&&Z?oe(v,L):Z===!1?ee(v,z):h===$?ie(v,L):h===Y&&ee(v,L))}var Ue=0;function a(h){h[j]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var c=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(B),this.promise[j]||a(this.promise),n(T)?(this.length=T.length,this._remaining=T.length,this._result=new Array(this.length),this.length===0?ie(this.promise,this._result):(this.length=this.length||0,this._enumerate(T),this._remaining===0&&ie(this.promise,this._result))):ee(this.promise,new Error("Array Methods must be provided an Array"))}return h.prototype._enumerate=function(v){for(var T=0;this._state===W&&T<v.length;T++)this._eachEntry(v[T],T)},h.prototype._eachEntry=function(v,T){var P=this._instanceConstructor,A=P.resolve;if(A===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Pe){Z=!0,z=Pe}if(L===k&&v._state!==W)this._settledAt(v._state,T,v._result);else if(typeof L!="function")this._remaining--,this._result[T]=v;else if(P===l){var ue=new P(B);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new P(function(Pe){return Pe(v)}),T)}else this._willSettleAt(A(v),T)},h.prototype._settledAt=function(v,T,P){var A=this.promise;A._state===W&&(this._remaining--,v===Y?ee(A,P):this._result[T]=P),this._remaining===0&&ie(A,this._result)},h.prototype._willSettleAt=function(v,T){var P=this;et(v,void 0,function(A){return P._settledAt($,T,A)},function(A){return P._settledAt(Y,T,A)})},h})(),l=(function(){function h(v){this[j]=Ue++,this._result=this._state=void 0,this._subscribers=[],B!==v&&(typeof v!="function"&&(function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof h?(function(T,P){try{P(function(A){oe(T,A)},function(A){ee(T,A)})}catch(A){ee(T,A)}})(this,v):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return h.prototype.catch=function(v){return this.then(null,v)},h.prototype.finally=function(v){var T=this,P=T.constructor;return r(v)?T.then(function(A){return P.resolve(v()).then(function(){return A})},function(A){return P.resolve(v()).then(function(){throw A})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new c(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,P){for(var A=h.length,L=0;L<A;L++)v.resolve(h[L]).then(T,P)}):new v(function(T,P){return P(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(B);return ee(v,h),v},l._setScheduler=function(h){u=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Gt!==void 0)h=Gt;else if(typeof self<"u")h=self;else try{h=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var v=h.Promise;if(v){var T=null;try{T=Object.prototype.toString.call(v.resolve())}catch{}if(T==="[object Promise]"&&!v.cast)return}h.Promise=l},l.Promise=l,l})()}),AL={__proto__:null,default:{}},qh=Kt(function(t,e){var r;t.exports=(r=r||(function(n,s){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&Gt!==void 0&&Gt.crypto&&(i=Gt.crypto),!i)try{i=AL}catch{}var u=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function C(){}return function(M){var U;return C.prototype=M,U=new C,C.prototype=null,U}})(),f={},p=f.lib={},y=p.Base={extend:function(C){var M=d(this);return C&&M.mixIn(C),M.hasOwnProperty("init")&&this.init!==M.init||(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var M in C)C.hasOwnProperty(M)&&(this[M]=C[M]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},S=p.WordArray=y.extend({init:function(C,M){C=this.words=C||[],this.sigBytes=M??4*C.length},toString:function(C){return(C||g).stringify(this)},concat:function(C){var M=this.words,U=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var j=0;j<K;j++)M[k+j>>>2]|=(U[j>>>2]>>>24-j%4*8&255)<<24-(k+j)%4*8;else for(var B=0;B<K;B+=4)M[k+B>>>2]=U[B>>>2];return this.sigBytes+=K,this},clamp:function(){var C=this.words,M=this.sigBytes;C[M>>>2]&=4294967295<<32-M%4*8,C.length=n.ceil(M/4)},clone:function(){var C=y.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var M=[],U=0;U<C;U+=4)M.push(u());return new S.init(M,C)}}),m=f.enc={},g=m.Hex={stringify:function(C){for(var M=C.words,U=C.sigBytes,k=[],K=0;K<U;K++){var j=M[K>>>2]>>>24-K%4*8&255;k.push((j>>>4).toString(16)),k.push((15&j).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,U=[],k=0;k<M;k+=2)U[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(U,M/2)}},w=m.Latin1={stringify:function(C){for(var M=C.words,U=C.sigBytes,k=[],K=0;K<U;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,U=[],k=0;k<M;k++)U[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(U,M)}},R=m.Utf8={stringify:function(C){try{return decodeURIComponent(escape(w.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return w.parse(unescape(encodeURIComponent(C)))}},I=p.BufferedBlockAlgorithm=y.extend({reset:function(){this._data=new S.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=R.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var M,U=this._data,k=U.words,K=U.sigBytes,j=this.blockSize,B=K/(4*j),W=(B=C?n.ceil(B):n.max((0|B)-this._minBufferSize,0))*j,$=n.min(4*W,K);if(W){for(var Y=0;Y<W;Y+=j)this._doProcessBlock(k,Y);M=k.splice(0,W),U.sigBytes-=$}return new S.init(M,$)},clone:function(){var C=y.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});p.Hasher=I.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){I.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(M,U){return new C.init(U).finalize(M)}},_createHmacHelper:function(C){return function(M,U){return new D.HMAC.init(C,U).finalize(M)}}});var D=f.algo={};return f})(Math),r)}),TA=Kt(function(t,e){var r;t.exports=(r=qh,(function(n){var s=r,i=s.lib,u=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function g(D){for(var C=n.sqrt(D),M=2;M<=C;M++)if(!(D%M))return!1;return!0}function w(D){return 4294967296*(D-(0|D))|0}for(var R=2,I=0;I<64;)g(R)&&(I<8&&(p[I]=w(n.pow(R,.5))),y[I]=w(n.pow(R,1/3)),I++),R++})();var S=[],m=f.SHA256=d.extend({_doReset:function(){this._hash=new u.init(p.slice(0))},_doProcessBlock:function(g,w){for(var R=this._hash.words,I=R[0],D=R[1],C=R[2],M=R[3],U=R[4],k=R[5],K=R[6],j=R[7],B=0;B<64;B++){if(B<16)S[B]=0|g[w+B];else{var W=S[B-15],$=S[B-2];S[B]=((W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3)+S[B-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[B-16]}var Y=I&D^I&C^D&C,Te=j+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&k^~U&K)+y[B]+S[B];j=K,K=k,k=U,U=M+Te|0,M=C,C=D,D=I,I=Te+(((I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22))+Y)|0}R[0]=R[0]+I|0,R[1]=R[1]+D|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+U|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+j|0},_doFinalize:function(){var g=this._data,w=g.words,R=8*this._nDataBytes,I=8*g.sigBytes;return w[I>>>5]|=128<<24-I%32,w[14+(I+64>>>9<<4)]=n.floor(R/4294967296),w[15+(I+64>>>9<<4)]=R,g.sigBytes=4*w.length,this._process(),this._hash},clone:function(){var g=d.clone.call(this);return g._hash=this._hash.clone(),g}});s.SHA256=d._createHelper(m),s.HmacSHA256=d._createHmacHelper(m)})(Math),r.SHA256)}),wL=Kt(function(t,e){var r,n;t.exports=(n=(r=qh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,u=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<u;p+=3)for(var y=(i[p>>>2]>>>24-p%4*8&255)<<16|(i[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|i[p+2>>>2]>>>24-(p+2)%4*8&255,S=0;S<4&&p+.75*S<u;S++)f.push(d.charAt(y>>>6*(3-S)&63));var m=d.charAt(64);if(m)for(;f.length%4;)f.push(m);return f.join("")},parse:function(s){var i=s.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<u.length;f++)d[u.charCodeAt(f)]=f}var p=u.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,m,g){for(var w=[],R=0,I=0;I<m;I++)if(I%4){var D=g[S.charCodeAt(I-1)]<<I%4*2,C=g[S.charCodeAt(I)]>>>6-I%4*2;w[R>>>2]|=(D|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),vA=Kt(function(t,e){t.exports=qh.enc.Hex}),EA=Kt(function(t,e){(function(){var r;function n(a,c,l){a!=null&&(typeof a=="number"?this.fromNumber(a,c,l):this.fromString(a,c==null&&typeof a!="string"?256:c))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,c,l,h,v,T){for(var P=32767&c,A=c>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=A*L+z*P;v=((L=P*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+A*z+(v>>>30),l[h++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,c,l,h,v,T){for(;--T>=0;){var P=c*this[a++]+l[h]+v;v=Math.floor(P/67108864),l[h++]=67108863&P}return v},r=26):(n.prototype.am=function(a,c,l,h,v,T){for(var P=16383&c,A=c>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=A*L+z*P;v=((L=P*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+A*z,l[h++]=268435455&L}return v},r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52;var u,d,f=new Array;for(u=48,d=0;d<=9;++d)f[u++]=d;for(u=97,d=10;d<36;++d)f[u++]=d;for(u=65,d=10;d<36;++d)f[u++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,c){var l=f[a.charCodeAt(c)];return l??-1}function S(a){var c=s();return c.fromInt(a),c}function m(a){var c,l=1;return(c=a>>>16)!=0&&(a=c,l+=16),(c=a>>8)!=0&&(a=c,l+=8),(c=a>>4)!=0&&(a=c,l+=4),(c=a>>2)!=0&&(a=c,l+=2),(c=a>>1)!=0&&(a=c,l+=1),l}function g(a){this.m=a}function w(a){this.m=a,this.mp=a.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<a.DB-15)-1,this.mt2=2*a.t}function R(a,c){return a&c}function I(a,c){return a|c}function D(a,c){return a^c}function C(a,c){return a&~c}function M(a){if(a==0)return-1;var c=0;return(65535&a)==0&&(a>>=16,c+=16),(255&a)==0&&(a>>=8,c+=8),(15&a)==0&&(a>>=4,c+=4),(3&a)==0&&(a>>=2,c+=2),(1&a)==0&&++c,c}function U(a){for(var c=0;a!=0;)a&=a-1,++c;return c}function k(){}function K(a){return a}function j(a){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*a.t,this.r2),this.mu=this.r2.divide(a),this.m=a}g.prototype.convert=function(a){return a.s<0||a.compareTo(this.m)>=0?a.mod(this.m):a},g.prototype.revert=function(a){return a},g.prototype.reduce=function(a){a.divRemTo(this.m,null,a)},g.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},g.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},w.prototype.convert=function(a){var c=s();return a.abs().dlShiftTo(this.m.t,c),c.divRemTo(this.m,null,c),a.s<0&&c.compareTo(n.ZERO)>0&&this.m.subTo(c,c),c},w.prototype.revert=function(a){var c=s();return a.copyTo(c),this.reduce(c),c},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var c=0;c<this.m.t;++c){var l=32767&a[c],h=l*this.mpl+((l*this.mph+(a[c]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=c+this.m.t]+=this.m.am(0,h,a,c,0,this.m.t);a[l]>=a.DV;)a[l]-=a.DV,a[++l]++}a.clamp(),a.drShiftTo(this.m.t,a),a.compareTo(this.m)>=0&&a.subTo(this.m,a)},w.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},w.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)},n.prototype.copyTo=function(a){for(var c=this.t-1;c>=0;--c)a[c]=this[c];a.t=this.t,a.s=this.s},n.prototype.fromInt=function(a){this.t=1,this.s=a<0?-1:0,a>0?this[0]=a:a<-1?this[0]=a+this.DV:this.t=0},n.prototype.fromString=function(a,c){var l;if(c==16)l=4;else if(c==8)l=3;else if(c==256)l=8;else if(c==2)l=1;else if(c==32)l=5;else{if(c!=4)return void this.fromRadix(a,c);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var P=l==8?255&a[h]:y(a,h);P<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=P:T+l>this.DB?(this[this.t-1]|=(P&(1<<this.DB-T)-1)<<T,this[this.t++]=P>>this.DB-T):this[this.t-1]|=P<<T,(T+=l)>=this.DB&&(T-=this.DB))}l==8&&(128&a[0])!=0&&(this.s=-1,T>0&&(this[this.t-1]|=(1<<this.DB-T)-1<<T)),this.clamp(),v&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var a=this.s&this.DM;this.t>0&&this[this.t-1]==a;)--this.t},n.prototype.dlShiftTo=function(a,c){var l;for(l=this.t-1;l>=0;--l)c[l+a]=this[l];for(l=a-1;l>=0;--l)c[l]=0;c.t=this.t+a,c.s=this.s},n.prototype.drShiftTo=function(a,c){for(var l=a;l<this.t;++l)c[l-a]=this[l];c.t=Math.max(this.t-a,0),c.s=this.s},n.prototype.lShiftTo=function(a,c){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,P=Math.floor(a/this.DB),A=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)c[l+P+1]=this[l]>>v|A,A=(this[l]&T)<<h;for(l=P-1;l>=0;--l)c[l]=0;c[P]=A,c.t=this.t+P+1,c.s=this.s,c.clamp()},n.prototype.rShiftTo=function(a,c){c.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)c.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;c[0]=this[l]>>h;for(var P=l+1;P<this.t;++P)c[P-l-1]|=(this[P]&T)<<v,c[P-l]=this[P]>>h;h>0&&(c[this.t-l-1]|=(this.s&T)<<v),c.t=this.t-l,c.clamp()}},n.prototype.subTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],c[l++]=h&this.DM,h>>=this.DB;h-=a.s}c.s=h<0?-1:0,h<-1?c[l++]=this.DV+h:h>0&&(c[l++]=h),c.t=l,c.clamp()},n.prototype.multiplyTo=function(a,c){var l=this.abs(),h=a.abs(),v=l.t;for(c.t=v+h.t;--v>=0;)c[v]=0;for(v=0;v<h.t;++v)c[v+l.t]=l.am(0,h[v],c,v,0,l.t);c.s=0,c.clamp(),this.s!=a.s&&n.ZERO.subTo(c,c)},n.prototype.squareTo=function(a){for(var c=this.abs(),l=a.t=2*c.t;--l>=0;)a[l]=0;for(l=0;l<c.t-1;++l){var h=c.am(l,c[l],a,2*l,0,1);(a[l+c.t]+=c.am(l+1,2*c[l],a,2*l+1,h,c.t-l-1))>=c.DV&&(a[l+c.t]-=c.DV,a[l+c.t+1]=1)}a.t>0&&(a[a.t-1]+=c.am(l,c[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,c,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return c?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),P=this.s,A=a.s,L=this.DB-m(h[h.t-1]);L>0?(h.lShiftTo(L,T),v.lShiftTo(L,l)):(h.copyTo(T),v.copyTo(l));var z=T.t,Z=T[z-1];if(Z!=0){var ue=Z*(1<<this.F1)+(z>1?T[z-2]>>this.F2:0),Pe=this.FV/ue,Ee=(1<<this.F1)/ue,Mt=1<<this.F2,ye=l.t,Ae=ye-z,ot=c??s();for(T.dlShiftTo(Ae,ot),l.compareTo(ot)>=0&&(l[l.t++]=1,l.subTo(ot,l)),n.ONE.dlShiftTo(z,ot),ot.subTo(T,T);T.t<z;)T[T.t++]=0;for(;--Ae>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Pe+(l[ye-1]+Mt)*Ee);if((l[ye]+=T.am(0,Cr,l,Ae,0,z))<Cr)for(T.dlShiftTo(Ae,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}c!=null&&(l.drShiftTo(z,c),P!=A&&n.ZERO.subTo(c,c)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),P<0&&n.ZERO.subTo(l,l)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var a=this[0];if((1&a)==0)return 0;var c=3&a;return(c=(c=(c=(c=c*(2-(15&a)*c)&15)*(2-(255&a)*c)&255)*(2-((65535&a)*c&65535))&65535)*(2-a*c%this.DV)%this.DV)>0?this.DV-c:-c},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,c){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=c.convert(this),T=m(a)-1;for(v.copyTo(l);--T>=0;)if(c.sqrTo(l,h),(a&1<<T)>0)c.mulTo(h,v,l);else{var P=l;l=h,h=P}return c.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var c;if(a==16)c=4;else if(a==8)c=3;else if(a==2)c=1;else if(a==32)c=5;else{if(a!=4)return this.toRadix(a);c=2}var l,h=(1<<c)-1,v=!1,T="",P=this.t,A=this.DB-P*this.DB%c;if(P-- >0)for(A<this.DB&&(l=this[P]>>A)>0&&(v=!0,T=p(l));P>=0;)A<c?(l=(this[P]&(1<<A)-1)<<c-A,l|=this[--P]>>(A+=this.DB-c)):(l=this[P]>>(A-=c)&h,A<=0&&(A+=this.DB,--P)),l>0&&(v=!0),v&&(T+=p(l));return v?T:"0"},n.prototype.negate=function(){var a=s();return n.ZERO.subTo(this,a),a},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(a){var c=this.s-a.s;if(c!=0)return c;var l=this.t;if((c=l-a.t)!=0)return this.s<0?-c:c;for(;--l>=0;)if((c=this[l]-a[l])!=0)return c;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(a){var c=s();return this.abs().divRemTo(a,null,c),this.s<0&&c.compareTo(n.ZERO)>0&&a.subTo(c,c),c},n.prototype.modPowInt=function(a,c){var l;return l=a<256||c.isEven()?new g(c):new w(c),this.exp(a,l)},n.ZERO=S(0),n.ONE=S(1),k.prototype.convert=K,k.prototype.revert=K,k.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l)},k.prototype.sqrTo=function(a,c){a.squareTo(c)},j.prototype.convert=function(a){if(a.s<0||a.t>2*this.m.t)return a.mod(this.m);if(a.compareTo(this.m)<0)return a;var c=s();return a.copyTo(c),this.reduce(c),c},j.prototype.revert=function(a){return a},j.prototype.reduce=function(a){for(a.drShiftTo(this.m.t-1,this.r2),a.t>this.m.t+1&&(a.t=this.m.t+1,a.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);a.compareTo(this.r2)<0;)a.dAddOffset(1,this.m.t+1);for(a.subTo(this.r2,a);a.compareTo(this.m)>=0;)a.subTo(this.m,a)},j.prototype.mulTo=function(a,c,l){a.multiplyTo(c,l),this.reduce(l)},j.prototype.sqrTo=function(a,c){a.squareTo(c),this.reduce(c)};var B,W,$,Y=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Te=(1<<26)/Y[Y.length-1];function oe(){var a;a=new Date().getTime(),W[$++]^=255&a,W[$++]^=a>>8&255,W[$++]^=a>>16&255,W[$++]^=a>>24&255,$>=Ue&&($-=Ue)}if(n.prototype.chunkSize=function(a){return Math.floor(Math.LN2*this.DB/Math.log(a))},n.prototype.toRadix=function(a){if(a==null&&(a=10),this.signum()==0||a<2||a>36)return"0";var c=this.chunkSize(a),l=Math.pow(a,c),h=S(l),v=s(),T=s(),P="";for(this.divRemTo(h,v,T);v.signum()>0;)P=(l+T.intValue()).toString(a).substr(1)+P,v.divRemTo(h,v,T);return T.intValue().toString(a)+P},n.prototype.fromRadix=function(a,c){this.fromInt(0),c==null&&(c=10);for(var l=this.chunkSize(c),h=Math.pow(c,l),v=!1,T=0,P=0,A=0;A<a.length;++A){var L=y(a,A);L<0?a.charAt(A)=="-"&&this.signum()==0&&(v=!0):(P=c*P+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(P,0),T=0,P=0))}T>0&&(this.dMultiply(Math.pow(c,T)),this.dAddOffset(P,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,c,l){if(typeof c=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(c);)this.dAddOffset(2,0),this.bitLength()>a&&this.subTo(n.ONE.shiftLeft(a-1),this);else{var h=new Array,v=7&a;h.length=1+(a>>3),c.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,c,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=c(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=c(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=c(v,a[h]);l.t=a.t}l.s=c(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,c){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,c,l),l},n.prototype.addTo=function(a,c){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],c[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],c[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],c[l++]=h&this.DM,h>>=this.DB;h+=a.s}c.s=h<0?-1:0,h>0?c[l++]=h:h<-1&&(c[l++]=this.DV+h),c.t=l,c.clamp()},n.prototype.dMultiply=function(a){this[this.t]=this.am(0,a-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(a,c){if(a!=0){for(;this.t<=c;)this[this.t++]=0;for(this[c]+=a;this[c]>=this.DV;)this[c]-=this.DV,++c>=this.t&&(this[this.t++]=0),++this[c]}},n.prototype.multiplyLowerTo=function(a,c,l){var h,v=Math.min(this.t+a.t,c);for(l.s=0,l.t=v;v>0;)l[--v]=0;for(h=l.t-this.t;v<h;++v)l[v+this.t]=this.am(0,a[v],l,v,0,this.t);for(h=Math.min(a.t,c);v<h;++v)this.am(0,a[v],l,v,0,c-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,c,l){--c;var h=l.t=this.t+a.t-c;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(c-this.t,0);h<a.t;++h)l[this.t+h-c]=this.am(c-h,a[h],l,0,0,this.t+h-c);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var c=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(c==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(c*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var c=this.subtract(n.ONE),l=c.getLowestSetBit();if(l<=0)return!1;var h=c.shiftRight(l);(a=a+1>>1)>Y.length&&(a=Y.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Y[Math.floor(Math.random()*Y.length)]);var P=v.modPow(h,this);if(P.compareTo(n.ONE)!=0&&P.compareTo(c)!=0){for(var A=1;A++<l&&P.compareTo(c)!=0;)if((P=P.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(P.compareTo(c)!=0)return!1}}return!0},n.prototype.clone=function(){var a=s();return this.copyTo(a),a},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var a=this.t,c=new Array;c[0]=this.s;var l,h=this.DB-a*this.DB%8,v=0;if(a-- >0)for(h<this.DB&&(l=this[a]>>h)!=(this.s&this.DM)>>h&&(c[v++]=l|this.s<<this.DB-h);a>=0;)h<8?(l=(this[a]&(1<<h)-1)<<8-h,l|=this[--a]>>(h+=this.DB-8)):(l=this[a]>>(h-=8)&255,h<=0&&(h+=this.DB,--a)),(128&l)!=0&&(l|=-256),v==0&&(128&this.s)!=(128&l)&&++v,(v>0||l!=this.s)&&(c[v++]=l);return c},n.prototype.equals=function(a){return this.compareTo(a)==0},n.prototype.min=function(a){return this.compareTo(a)<0?this:a},n.prototype.max=function(a){return this.compareTo(a)>0?this:a},n.prototype.and=function(a){var c=s();return this.bitwiseTo(a,R,c),c},n.prototype.or=function(a){var c=s();return this.bitwiseTo(a,I,c),c},n.prototype.xor=function(a){var c=s();return this.bitwiseTo(a,D,c),c},n.prototype.andNot=function(a){var c=s();return this.bitwiseTo(a,C,c),c},n.prototype.not=function(){for(var a=s(),c=0;c<this.t;++c)a[c]=this.DM&~this[c];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var c=s();return a<0?this.rShiftTo(-a,c):this.lShiftTo(a,c),c},n.prototype.shiftRight=function(a){var c=s();return a<0?this.lShiftTo(-a,c):this.rShiftTo(a,c),c},n.prototype.getLowestSetBit=function(){for(var a=0;a<this.t;++a)if(this[a]!=0)return a*this.DB+M(this[a]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var a=0,c=this.s&this.DM,l=0;l<this.t;++l)a+=U(this[l]^c);return a},n.prototype.testBit=function(a){var c=Math.floor(a/this.DB);return c>=this.t?this.s!=0:(this[c]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,I)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,D)},n.prototype.add=function(a){var c=s();return this.addTo(a,c),c},n.prototype.subtract=function(a){var c=s();return this.subTo(a,c),c},n.prototype.multiply=function(a){var c=s();return this.multiplyTo(a,c),c},n.prototype.divide=function(a){var c=s();return this.divRemTo(a,c,null),c},n.prototype.remainder=function(a){var c=s();return this.divRemTo(a,null,c),c},n.prototype.divideAndRemainder=function(a){var c=s(),l=s();return this.divRemTo(a,c,l),new Array(c,l)},n.prototype.modPow=function(a,c){var l,h,v=a.bitLength(),T=S(1);if(v<=0)return T;l=v<18?1:v<48?3:v<144?4:v<768?5:6,h=v<8?new g(c):c.isEven()?new j(c):new w(c);var P=new Array,A=3,L=l-1,z=(1<<l)-1;if(P[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(P[1],Z);A<=z;)P[A]=s(),h.mulTo(Z,P[A-2],P[A]),A+=2}var ue,Pe,Ee=a.t-1,Mt=!0,ye=s();for(v=m(a[Ee])-1;Ee>=0;){for(v>=L?ue=a[Ee]>>v-L&z:(ue=(a[Ee]&(1<<v+1)-1)<<L-v,Ee>0&&(ue|=a[Ee-1]>>this.DB+v-L)),A=l;(1&ue)==0;)ue>>=1,--A;if((v-=A)<0&&(v+=this.DB,--Ee),Mt)P[ue].copyTo(T),Mt=!1;else{for(;A>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),A-=2;A>0?h.sqrTo(T,ye):(Pe=T,T=ye,ye=Pe),h.mulTo(ye,P[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Pe=T,T=ye,ye=Pe,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var c=a.isEven();if(this.isEven()&&c||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),P=S(0),A=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),c?(v.isEven()&&T.isEven()||(v.addTo(this,v),T.subTo(a,T)),v.rShiftTo(1,v)):T.isEven()||T.subTo(a,T),T.rShiftTo(1,T);for(;h.isEven();)h.rShiftTo(1,h),c?(P.isEven()&&A.isEven()||(P.addTo(this,P),A.subTo(a,A)),P.rShiftTo(1,P)):A.isEven()||A.subTo(a,A),A.rShiftTo(1,A);l.compareTo(h)>=0?(l.subTo(h,l),c&&v.subTo(P,v),T.subTo(A,T)):(h.subTo(l,h),c&&P.subTo(v,P),A.subTo(T,A))}return h.compareTo(n.ONE)!=0?n.ZERO:A.compareTo(a)>=0?A.subtract(a):A.signum()<0?(A.addTo(a,A),A.signum()<0?A.add(a):A):A},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var c=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(c.compareTo(l)<0){var h=c;c=l,l=h}var v=c.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return c;for(v<T&&(T=v),T>0&&(c.rShiftTo(T,c),l.rShiftTo(T,l));c.signum()>0;)(v=c.getLowestSetBit())>0&&c.rShiftTo(v,c),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),c.compareTo(l)>=0?(c.subTo(l,c),c.rShiftTo(1,c)):(l.subTo(c,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var c,l=this.abs();if(l.t==1&&l[0]<=Y[Y.length-1]){for(c=0;c<Y.length;++c)if(l[0]==Y[c])return!0;return!1}if(l.isEven())return!1;for(c=1;c<Y.length;){for(var h=Y[c],v=c+1;v<Y.length&&h<Te;)h*=Y[v++];for(h=l.modInt(h);c<v;)if(h%Y[c++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=j,W==null){var se;if(W=new Array,$=0,typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ie=new Uint8Array(32);for(window.crypto.getRandomValues(ie),se=0;se<32;++se)W[$++]=ie[se]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ee=window.crypto.random(32);for(se=0;se<ee.length;++se)W[$++]=255&ee.charCodeAt(se)}}for(;$<Ue;)se=Math.floor(65536*Math.random()),W[$++]=se>>>8,W[$++]=255&se;$=0,oe()}function et(){if(B==null){for(oe(),(B=new tt).init(W),$=0;$<W.length;++$)W[$]=0;$=0}return B.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var c;for(c=0;c<a.length;++c)a[c]=et()},tt.prototype.init=function(a){var c,l,h;for(c=0;c<256;++c)this.S[c]=c;for(l=0,c=0;c<256;++c)h=this.S[c],this.S[c]=this.S[l=l+this.S[c]+a[c%a.length]&255],this.S[l]=h;this.i=0,this.j=0},tt.prototype.next=function(){var a;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,a=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=a,this.S[a+this.S[this.i]&255]};var Ue=256;t.exports={default:n,BigInteger:n,SecureRandom:it}}).call(Gt)}),SA={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},mA={sha256:TA};function CA(t,e){if(this.n=null,this.e=0,!(t!=null&&e!=null&&t.length>0&&e.length>0))throw new Error("Invalid key data");this.n=new EA.BigInteger(t,16),this.e=parseInt(e,16)}CA.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new EA.BigInteger(e,16);if(r.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var n=(function(i){for(var u in SA){var d=SA[u],f=d.length;if(i.substring(0,f)===d)return{alg:u,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!mA.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=mA[n.alg](t).toString();return n.hash===s};for(_A=[],xe=[],gA=typeof Uint8Array<"u"?Uint8Array:Array,wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)_A[$t]=wh[$t],xe[wh.charCodeAt($t)]=$t;var _A,xe,gA,wh,$t;xe[45]=62,xe[95]=63;var bA=function(t){var e,r,n=(function(p){var y=p.length;if(y%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return S===-1&&(S=y),[S,S===y?0:4-S%4]})(t),s=n[0],i=n[1],u=new gA((function(p,y,S){return 3*(y+S)/4-S})(0,s,i)),d=0,f=i>0?s-4:s;for(r=0;r<f;r+=4)e=xe[t.charCodeAt(r)]<<18|xe[t.charCodeAt(r+1)]<<12|xe[t.charCodeAt(r+2)]<<6|xe[t.charCodeAt(r+3)],u[d++]=e>>16&255,u[d++]=e>>8&255,u[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,u[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,u[d++]=e>>8&255,u[d++]=255&e),u};function PA(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function OA(t){return t=PA(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(bA(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Rh(t){return(function(e){for(var r="",n=0;n<e.length;n++){var s=e[n].toString(16);r+=s.length===2?s:"0"+s}return r})(bA(PA(t)))}var RL=Kt(function(t){var e,r;e=Gt,r=function(){return function(){return(function(n){var s=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0]=n[0].match(/^file:\/\/\//)?n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0].replace(/^([^/:]+):\/*/,"$1://");for(var u=0;u<n.length;u++){var d=n[u];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(u>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,u<n.length-1?"":"/"),s.push(d))}var f=s.join("/"),p=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return p.shift()+(p.length>0?"?":"")+p.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=r():e.urljoin=r()});function ML(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],u=[],d={},f=function(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:f,headers:{keys:function(){return i},entries:function(){return u},get:function(y){return d[y.toLowerCase()]},has:function(y){return y.toLowerCase()in d}}}};for(var p in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(y,S,m){i.push(S=S.toLowerCase()),u.push([S,m]),d[S]=d[S]?d[S]+","+m:m}),r(f())},s.onerror=n,s.withCredentials=e.credentials=="include",e.headers)s.setRequestHeader(p,e.headers[p]);s.send(e.body||null)})}function IL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Mh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Mh.prototype=Error.prototype,ne.prototype=Error.prototype;var qL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();PL.polyfill();var Ih="RS256",vc=function(t){return typeof t=="number"},NL=function(){return new Date};function En(t){var e=t||{};if(this.jwksCache=e.jwksCache||new qL,this.expectedAlg=e.expectedAlg||"RS256",this.issuer=e.issuer,this.audience=e.audience,this.leeway=e.leeway===0?0:e.leeway||60,this.jwksURI=e.jwksURI,this.maxAge=e.maxAge,this.__clock=typeof e.__clock=="function"?e.__clock:NL,this.leeway<0||this.leeway>300)throw new Mh("The leeway should be positive and lower than five minutes.");if(Ih!==this.expectedAlg)throw new Mh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Ih+'".')}En.prototype.verify=function(t,e,r){if(!r&&e&&typeof e=="function"&&(r=e,e=void 0),!t)return r(new ne("ID token is required but missing"),null);var n=this.decode(t);if(n instanceof Error)return r(new ne("ID token could not be decoded"),null);var s=n.encoded.header+"."+n.encoded.payload,i=Rh(n.encoded.signature),u=n.header.alg,d=n.header.kid,f=n.payload.aud,p=n.payload.sub,y=n.payload.iss,S=n.payload.exp,m=n.payload.nbf,g=n.payload.iat,w=n.payload.azp,R=n.payload.auth_time,I=n.payload.nonce,D=this.__clock(),C=this;if(C.expectedAlg!==u)return r(new ne('Signature algorithm of "'+u+'" is not supported. Expected the ID token to be signed with "'+Ih+'".'),null);this.getRsaVerifier(y,d,function(M,U){if(M)return r(M,null);if(!U.verify(s,i))return r(new ne("Invalid ID token signature."),null);if(!y||typeof y!="string")return r(new ne("Issuer (iss) claim must be a string present in the ID token"),null);if(C.issuer!==y)return r(new ne('Issuer (iss) claim mismatch in the ID token, expected "'+C.issuer+'", found "'+y+'"'),null);if(!p||typeof p!="string")return r(new ne("Subject (sub) claim must be a string present in the ID token"),null);if(!f||typeof f!="string"&&!Array.isArray(f))return r(new ne("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(f)&&!f.includes(C.audience))return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but was not one of "'+f.join(", ")+'"'),null);if(typeof f=="string"&&C.audience!==f)return r(new ne('Audience (aud) claim mismatch in the ID token; expected "'+C.audience+'" but found "'+f+'"'),null);if(e){if(!I||typeof I!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(I!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+I+'"'),null)}if(Array.isArray(f)&&f.length>1){if(!w||typeof w!="string")return r(new ne("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(w!==C.audience)return r(new ne('Authorized Party (azp) claim mismatch in the ID token; expected "'+C.audience+'", found "'+w+'"'),null)}if(!S||!vc(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!vc(g))return r(new ne("Issued At (iat) claim must be a number present in the ID token"),null);var k=S+C.leeway,K=new Date(0);if(K.setUTCSeconds(k),D>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+D+'" is after expiration time "'+K+'"'),null);if(m&&vc(m)){var j=m-C.leeway,B=new Date(0);if(B.setUTCSeconds(j),D<B)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+D+'" is before the not before time "'+B+'"'),null)}if(C.maxAge){if(!R||!vc(R))return r(new ne("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var W=R+C.maxAge+C.leeway,$=new Date(0);if($.setUTCSeconds(W),D>$)return r(new ne('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+D+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},En.prototype.getRsaVerifier=function(t,e,r){var n=this,s=t+e;Promise.resolve(this.jwksCache.has(s)).then(function(i){return i?n.jwksCache.get(s):(d=(u={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||RL(u.iss,".well-known","jwks.json"),(fetch=="undefined"?ML:fetch)(d).then(IL).then(function(f){var p,y,S,m=null;for(p=0;p<f.keys.length&&m===null;p++)(y=f.keys[p]).kid===u.kid&&(m=y);if(!m)throw new Error('Could not find a public key for Key ID (kid) "'+u.kid+'"');return{modulus:Rh((S=m).n),exp:Rh(S.e)}}).catch(function(f){throw f}));var u,d}).then(function(i){if(!i||!i.modulus||!i.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(n.jwksCache.set(s,i)).then(function(){r&&r(null,new CA(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},En.prototype.decode=function(t){var e,r,n=t.split(".");if(n.length!==3)return new ne("Cannot decode a malformed JWT");try{e=JSON.parse(OA(n[0])),r=JSON.parse(OA(n[1]))}catch{return new ne("Token header or payload is not valid JSON")}return{header:e,payload:r,encoded:{header:n[0],payload:n[1],signature:n[2]}}},En.prototype.validateAccessToken=function(t,e,r,n){if(this.expectedAlg!==e)return n(new ne('Signature algorithm of "'+e+'" is not supported. Expected "'+this.expectedAlg+'"'));var s,i=TA(t),u=vA.stringify(i),d=u.substring(0,u.length/2),f=vA.parse(d),p=wL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},AA.exports=En});var Cn=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.AuthorizeError=void 0;var Nh=class extends Error{error;errorDescription;state};Sc.AuthorizeError=Nh});var RA=o(Or=>{"use strict";var jL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var xL=jL(er()),jh=(0,xL.default)("cinerino-sdk:auth:popupHandler"),xh=class{url;callback;timeout;timeoutCallback;eventListenerType;popupWindow;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.popupWindow=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(jh("opening popup...",this.eventListenerType),this.popupWindow=window.open(this.url,"authorizeWindow"),this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.popupWindow;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}jh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){jh("PopupHandler.eventListener...event:",e);let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),this.popupWindow.close()},0)}};Or.PopupHandler=xh});var MA=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.PopupAuthenticationHandler=void 0;var UL=Cn(),DL=RA(),Uh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.location.hash}catch(i){console.error("PopupAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new DL.PopupHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new UL.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};mc.PopupAuthenticationHandler=Uh});var Lh=o(Tr=>{"use strict";var LL=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var FL=LL(er()),kL=(0,FL.default)("cinerino-sdk:auth:iframeHandler"),Dh=class{url;callback;timeout;timeoutCallback;eventListenerType;iframe;timeoutHandle;destroyTimeout;proxyEventListener;eventValidator;eventSourceObject;constructor(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.timeoutCallback=e.timeoutCallback!==void 0?e.timeoutCallback:null,this.eventListenerType=e.eventListenerType!==void 0?e.eventListenerType:"message",this.iframe=null,this.timeoutHandle=null,this.destroyTimeout=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator!==void 0?e.eventValidator:{isValid:()=>!0},typeof this.callback!="function")throw new Error("options.callback must be a function")}init(){switch(kL("opening iframe...",this.eventListenerType),this.iframe=window.document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.url,this.proxyEventListener=e=>{this.eventListener(e)},this.eventListenerType){case"message":this.eventSourceObject=window;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error(`Unsupported event listener type: ${this.eventListenerType}`)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.appendChild(this.iframe),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){let r={event:e,sourceObject:this.eventSourceObject};this.destroy(),this.callback(r)}timeoutHandler(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()}destroy(){clearTimeout(this.timeoutHandle),this.destroyTimeout=setTimeout(()=>{this.eventSourceObject.removeEventListener(this.eventListenerType,this.proxyEventListener,!1),window.document.body.removeChild(this.iframe)},0)}};Tr.IframeHandler=Dh});var IA=o(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.SilentAuthenticationHandler=void 0;var BL=Cn(),$L=Lh(),Fh=class t{authenticationUrl;timeout;handler;constructor(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_EVENT_VALIDATOR(){return{}}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentAuthenticationHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}async login(e){return new Promise((r,n)=>{this.handler=new $L.IframeHandler({url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new BL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};_c.SilentAuthenticationHandler=Fh});var qA=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.SilentLogoutHandler=void 0;var GL=Cn(),KL=Lh(),kh=class t{logoutUrl;timeout;handler;constructor(e){this.logoutUrl=e.logoutUrl,this.timeout=e.timeout!==void 0?e.timeout:60*1e3,this.handler=null}static GET_CALLBACK_HANDLER(e,r){return n=>{let s;try{r?typeof n.event.data=="object"&&n.event.data.hash?s=n.event.data.hash:s=n.event.data:s=n.sourceObject.contentWindow.location.hash}catch(i){console.error("SilentLogoutHandler.GET_CALLBACK_HANDLER:",i)}e(s)}}static CREATE(e){return new t(e)}static GET_EVENT_VALIDATOR(){return{}}async logout(e){return new Promise((r,n)=>{this.handler=new KL.IframeHandler({url:this.logoutUrl,eventListenerType:e?"message":"load",callback:t.GET_CALLBACK_HANDLER(r,e),timeout:this.timeout,eventValidator:t.GET_EVENT_VALIDATOR(),timeoutCallback:()=>{let s=new GL.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Oc.SilentLogoutHandler=kh});var NA=o(()=>{});var jA=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.LoginTicket=void 0;var Bh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};Tc.LoginTicket=Bh});var xA=o(_t=>{"use strict";var WL=_t&&_t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_t,"__esModule",{value:!0});_t.OAuth2client=_t.MAX_RETRY_NUM=void 0;var HL=NA(),VL=WL(er()),Ec=b(),zL=ks(),YL=jA(),Wt=(0,VL.default)("cinerino-sdk:auth:oAuth2client"),QL=1e3;_t.MAX_RETRY_NUM=2;async function ZL(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var $h=class t{static OAUTH2_AUTH_BASE_URI="/oauth2/authorize";static OAUTH2_TOKEN_URI="/oauth2/token";static OAUTH2_LOGOUT_URI="/logout";credentials;options;events;constructor(e){this.options=e,this.credentials={},this.events={}}static BASE64URLENCODE(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static SHA256(e){return(0,HL.createHash)("sha256").update(e).digest()}generateAuthUrl(e){let r={response_type:"code",client_id:this.options.clientId,redirect_uri:this.options.redirectUri,scope:e.scopes.join(" ")};typeof e.state=="string"&&e.state.length>0&&(r.state=e.state),e.codeVerifier!==void 0&&(r.code_challenge_method="S256",r.code_challenge=t.BASE64URLENCODE(t.SHA256(e.codeVerifier)));let n=new URLSearchParams(r);return`${`https://${this.options.domain}${t.OAUTH2_AUTH_BASE_URI}`}?${n.toString()}`}generateLogoutUrl(){let e={client_id:this.options.clientId,logout_uri:this.options.logoutUri};return`${`https://${this.options.domain}${t.OAUTH2_LOGOUT_URI}`}?${new URLSearchParams(e).toString()}`}async getToken(e,r){let n={code:e,client_id:this.options.clientId,redirect_uri:this.options.redirectUri,grant_type:"authorization_code",...typeof r=="string"&&{code_verifier:r}},s=`${this.options.clientId}:${this.options.clientSecret}`,i=btoa(s),u={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",u),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,u).then(async d=>{if(Wt("response:",d.status),d.status!==Ec.status.OK)if(d.status===Ec.status.BAD_REQUEST){let f=await d.json();throw new Error(f.error)}else{let f=await d.text();throw new Error(f)}else{let f=await d.json();return f&&f.expires_in&&(f.expiry_date=new Date().getTime()+f.expires_in*1e3,delete f.expires_in),f}})}setCredentials(e){this.credentials=e}async refreshAccessToken(){if(this.credentials.refresh_token===void 0)throw new Error("No refresh token is set.");return this.refreshToken(this.credentials.refresh_token).then(async e=>(Wt("setting credentials...",e),this.credentials={...e,refresh_token:this.credentials.refresh_token},typeof this.events.onTokenRefreshed=="function"&&await this.events.onTokenRefreshed(this.credentials),this.credentials))}async getAccessToken(){let e=this.credentials.expiry_date,r=e!==void 0?e<=new Date().getTime():!1;if(this.credentials.access_token===void 0&&this.credentials.refresh_token===void 0)throw new Error("No access or refresh token is set.");return(this.credentials.access_token===void 0||r)&&typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),this.credentials.access_token}async fetch(e,r,n,s){let i=!0;r.headers=r.headers===void 0||r.headers===null?{}:r.headers;let u,d=0;for(;u===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,u=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Wt("retry? numberOfTry:",d,"statusCode: ",p,"retry: ",i,"retryableStatusCodes: ",s),i&&typeof p=="number"&&s.includes(p)){typeof this.credentials.refresh_token=="string"&&this.credentials.refresh_token.length>0&&await this.refreshAccessToken(),await ZL(QL*d);continue}}throw f}return u}verifyIdToken(e){if(this.credentials.id_token===void 0)throw new Error("The verifyIdToken method requires an ID Token");return this.verifySignedJwt(this.credentials.id_token,e.audience)}onTokenRefreshed(e){this.events.onTokenRefreshed=e}preFetch(e){this.events.preFetch=e}async makeFetch(e,r,n){let s=new zL.DefaultTransporter(n),i;return typeof this.events.preFetch=="function"?i=(await this.events.preFetch({url:e,options:r})).options:i=r,s.fetch(e,i)}async refreshToken(e){Wt("refreshing access token...",this.credentials,e);let r={client_id:this.options.clientId,refresh_token:e,grant_type:"refresh_token"},n=`${this.options.clientId}:${this.options.clientSecret}`,s=btoa(n),i={body:new URLSearchParams(r).toString(),method:"POST",headers:{Authorization:`Basic ${s}`,"Content-Type":"application/x-www-form-urlencoded"}};return Wt("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async u=>{if(Wt("response:",u.status),u.status!==Ec.status.OK)if(u.status===Ec.status.BAD_REQUEST){let d=await u.json();throw new Error(d.error)}else{let d=await u.text();throw new Error(d)}else{let d,f=await u.json();if(f!==void 0&&typeof f.expires_in=="number"){let{access_token:p,id_token:y,expires_in:S,token_type:m}=f;d={access_token:p,id_token:y,token_type:m,expiry_date:new Date().getTime()+S*1e3}}else throw console.error("unexpected refreshToken response:",f),new Error("unexpected refreshToken response.");return d}})}verifySignedJwt(e,r){let n=e.split(".");if(n.length!==3)throw new Error(`Wrong number of segments in token: ${e}`);let s,i;try{s=JSON.parse(Buffer.from(n[0],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token envelope: ${n[0]}`)}try{i=JSON.parse(Buffer.from(n[1],"base64").toString("utf8"))}catch{throw new Error(`Can't parse token payload: ${n[0]}`)}if(i.iat===void 0)throw new Error(`No issue time in token: ${JSON.stringify(i)}`);if(i.exp===void 0)throw new Error(`No expiration time in token: ${JSON.stringify(i)}`);if(isNaN(i.iat))throw new Error("iat field using invalid format");if(isNaN(i.exp))throw new Error("exp field using invalid format");if(r!==void 0){let u=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(u)>-1:d=u===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new YL.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=$h});var LA=o(Er=>{"use strict";var DA=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var JL=DA(er()),UA=DA(wA()),Gh=Bu(),XL=Cn(),eF=MA(),tF=IA(),rF=qA(),nF=xA(),Cc=(0,JL.default)("cinerino-sdk:auth:implicitGrantClient"),Kh=class t extends nF.OAuth2client{static AUTHORIZE_URL="/authorize";static LOGOUT_URL="/logout";options;credentials;constructor(e){super(e),this.options=e,this.options.responseMode="fragment",this.options.responseType="token",this.options.nonce=null,Cc("options:",this.options),this.credentials={}}static BUILD_PASRSE_HASH_RESPONS(e,r,n){return{accessToken:e.access_token,idToken:e.id_token,idTokenPayload:n,refreshToken:e.refresh_token,state:e.state,expiresIn:e.expires_in?parseInt(e.expires_in,10):void 0,tokenType:e.token_type}}async isSignedIn(){return this.refreshToken().then(e=>e).catch(()=>null)}async getAccessToken(){return this.credentials.accessToken===void 0&&typeof this.credentials.refreshToken=="string"&&this.credentials.refreshToken.length>0&&await this.refreshAccessToken(),this.credentials.accessToken}async refreshAccessToken(){if(this.credentials.refreshToken===void 0)throw new Error("not authorized yet");return this.refreshToken()}async refreshToken(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"none",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await tF.SilentAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!1);return this.onLogin(s)}async signIn(){let r={clientId:this.options.clientId,responseType:this.options.responseType,responseMode:this.options.responseMode,prompt:"",redirectUri:this.options.redirectUri,scope:this.options.scope,state:this.options.state,nonce:this.options.nonce},s=await eF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await rF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Cc("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Cc("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Gh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new XL.AuthorizeError(n.error_description);throw s.error=n.error,s.errorDescription=n.error_description,s.state=n.state,s}if(!Object.prototype.hasOwnProperty.call(n,"access_token")&&!Object.prototype.hasOwnProperty.call(n,"id_token")&&!Object.prototype.hasOwnProperty.call(n,"refresh_token"))throw new Error("invalid hash");if(typeof n.id_token=="string"){let s=await this.validateToken(n.id_token,this.options.nonce);return t.BUILD_PASRSE_HASH_RESPONS(n,"",s)}if(typeof n.id_token=="string"){let i=new UA.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).decode(n.id_token);return t.BUILD_PASRSE_HASH_RESPONS(n,"",i.payload)}else return t.BUILD_PASRSE_HASH_RESPONS(n,"",null)}async validateToken(e,r){return new Promise((n,s)=>{new UA.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(u,d)=>{if(Cc("id_token verified",u,d),u!==null){s(u);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Gh.stringify)({client_id:e.clientId,response_type:e.responseType,redirect_uri:e.redirectUri,response_mode:e.responseMode,scope:e.scope,state:e.state,nonce:e.nonce,prompt:e.prompt});return`https://${this.options.domain}${t.AUTHORIZE_URL}?${r}`}buildLogoutUrl(e){let r=(0,Gh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=Kh});var FA=o(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.transporters=fe.factory=fe.loadService=fe.loadCloudTxn=fe.loadCloudTxc=fe.loadCloudSearch=fe.loadCloudPay=fe.loadCloudAsset=fe.loadCloudAdmin=void 0;fe.createAuthInstance=iF;var Ot=pA();Object.defineProperty(fe,"factory",{enumerable:!0,get:function(){return Ot.factory}});Object.defineProperty(fe,"loadCloudAdmin",{enumerable:!0,get:function(){return Ot.loadCloudAdmin}});Object.defineProperty(fe,"loadCloudAsset",{enumerable:!0,get:function(){return Ot.loadCloudAsset}});Object.defineProperty(fe,"loadCloudPay",{enumerable:!0,get:function(){return Ot.loadCloudPay}});Object.defineProperty(fe,"loadCloudSearch",{enumerable:!0,get:function(){return Ot.loadCloudSearch}});Object.defineProperty(fe,"loadCloudTxc",{enumerable:!0,get:function(){return Ot.loadCloudTxc}});Object.defineProperty(fe,"loadCloudTxn",{enumerable:!0,get:function(){return Ot.loadCloudTxn}});Object.defineProperty(fe,"loadService",{enumerable:!0,get:function(){return Ot.loadService}});Object.defineProperty(fe,"transporters",{enumerable:!0,get:function(){return Ot.transporters}});var sF=LA();function iF(t){return new sF.ImplicitGrantClient(t)}});var h5=window.cinerino=FA();})();
5
5
  /* istanbul ignore else -- @preserve */
6
6
  //# sourceMappingURL=bundle.js.map