@cinerino/sdk 16.3.0-alpha.12 → 16.3.0-alpha.13
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.
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
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 Jh=o(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0})});var ft=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var HP;(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"})(HP=Cn.ErrorCode||(Cn.ErrorCode={}))});var Tt=o((vF,Xh)=>{"use strict";Xh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?VP:zP);function VP(t,e){return t.__proto__=e,t}function zP(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 YP=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 QP=(function(t){YP(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=QP});var ey=o(Ar=>{"use strict";var ZP=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 JP=Tt(),XP=ft(),ew=ht(),tw=(function(t){ZP(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,XP.ErrorCode.Argument,i)||this,s.argumentName=r,JP(s,e.prototype),s}return e})(ew.WaiterError);Ar.ArgumentError=tw});var ty=o(Pr=>{"use strict";var rw=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 nw=Tt(),sw=ft(),iw=ht(),ow=(function(t){rw(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,sw.ErrorCode.Argument,i)||this,s.argumentName=r,nw(s,e.prototype),s}return e})(iw.WaiterError);Pr.ArgumentNullError=ow});var ry=o(wr=>{"use strict";var aw=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 cw=Tt(),uw=ft(),dw=ht(),lw=(function(t){aw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,uw.ErrorCode.Forbidden,s)||this,cw(n,e.prototype),n}return e})(dw.WaiterError);wr.ForbiddenError=lw});var ny=o(Rr=>{"use strict";var fw=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 hw=Tt(),yw=ft(),pw=ht(),vw=(function(t){fw(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,yw.ErrorCode.NotFound,i)||this,s.entityName=r,hw(s,e.prototype),s}return e})(pw.WaiterError);Rr.NotFoundError=vw});var sy=o(Mr=>{"use strict";var Sw=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 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="Rate limit exceeded."),n=t.call(this,_w.ErrorCode.RateLimitExceeded,s)||this,mw(n,e.prototype),n}return e})(Ow.WaiterError);Mr.RateLimitExceededError=Tw});var iy=o(Ir=>{"use strict";var Ew=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 Cw=Tt(),gw=ft(),bw=ht(),Aw=(function(t){Ew(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,gw.ErrorCode.ServiceUnavailable,s)||this,Cw(n,e.prototype),n}return e})(bw.WaiterError);Ir.ServiceUnavailableError=Aw});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 ww=Tt(),Rw=ft(),Mw=ht(),Iw=(function(t){Pw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Unauthorized."),n=t.call(this,Rw.ErrorCode.Unauthorized,s)||this,ww(n,e.prototype),n}return e})(Mw.WaiterError);qr.UnauthorizedError=Iw});var ay=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var qw=ey();at.Argument=qw.ArgumentError;var Nw=ty();at.ArgumentNull=Nw.ArgumentNullError;var jw=ry();at.Forbidden=jw.ForbiddenError;var xw=ny();at.NotFound=xw.NotFoundError;var Uw=sy();at.RateLimitExceeded=Uw.RateLimitExceededError;var Dw=iy();at.ServiceUnavailable=Dw.ServiceUnavailableError;var Lw=oy();at.Unauthorized=Lw.UnauthorizedError;var Fw=ht();at.Waiter=Fw.WaiterError});var uy=o(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0})});var ly=o(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0})});var hy=o(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var py=o(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0})});var vy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var kw=Jh();yt.client=kw;var Bw=ft();yt.errorCode=Bw.ErrorCode;var Gw=ay();yt.errors=Gw;var $w=uy();yt.passport=$w;var Kw=ly();yt.project=Kw;var Ww=hy();yt.rule=Ww;var Hw=py();yt.ruleSet=Hw});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var Oy=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.FlgMember=void 0;var _y;(function(t){t.NonMember="0",t.Member="1"})(_y||(gn.FlgMember=_y={}))});var Ey=o(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0})});var gy=o(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0})});var Ay=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ObjectType=void 0;var by;(function(t){t.SeatReservation="SeatReservation"})(by||(bn.ObjectType=by={}))});var Py=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ObjectType=void 0;var Vw=Ay();Object.defineProperty(An,"ObjectType",{enumerable:!0,get:function(){return Vw.ObjectType}})});var My=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ServiceIdentifier=Vt.ResultType=void 0;var wy;(function(t){t.Payment="Payment"})(wy||(Vt.ResultType=wy={}));var Ry;(function(t){t.Chevre="Chevre"})(Ry||(Vt.ServiceIdentifier=Ry={}))});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 Gy=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o($y=>{"use strict";Object.defineProperty($y,"__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 fp=o(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0})});var yp=o(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0})});var vp=o(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0})});var Sp=o(qt=>{"use strict";var zw=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]})),Yw=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zw(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});Yw(vp(),qt)});var _p=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ObjectAsTransactionSpecifyingMethod=void 0;var mp;(function(t){t.Id="Id",t.AgentId="AgentId"})(mp||(Pn.ObjectAsTransactionSpecifyingMethod=mp={}))});var Tp=o(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0})});var Cp=o(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0})});var bp=o(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0})});var Pp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var wp=o(pt=>{"use strict";var Qw=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]})),wc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qw(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});wc(Cp(),pt);wc(bp(),pt);wc(Pp(),pt)});var Mp=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ActionStatusType=void 0;var Rp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Rp||(wn.ActionStatusType=Rp={}))});var qp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ActionType=void 0;var Ip;(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"})(Ip||(Rn.ActionType=Ip={}))});var jp=o(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0})});var Up=o(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0})});var Lp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.AggregationType=void 0;var Dp;(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"})(Dp||(Mn.AggregationType=Dp={}))});var kp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var Gp=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.CategorySetIdentifier=void 0;var Bp;(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"})(Bp||(In.CategorySetIdentifier=Bp={}))});var Rc=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CertificationStatusEnumeration=void 0;var $p;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})($p||(qn.CertificationStatusEnumeration=$p={}))});var Wp=o(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0})});var Vp=o(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0})});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.AboutIdentifier=void 0;var Jp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Jp||(Nn.AboutIdentifier=Jp={}))});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var sv=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.PermissionGranteeAudienceType=zt.DigitalDocumentPermissionType=void 0;var rv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(rv||(zt.DigitalDocumentPermissionType=rv={}));var nv;(function(t){t.Public="public"})(nv||(zt.PermissionGranteeAudienceType=nv={}))});var ov=o(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var Mc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CreativeWorkType=void 0;var uv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(uv||(jn.CreativeWorkType=uv={}))});var lv=o(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var Ev=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 fv;(function(t){t.pdf="application/pdf",t.json="application/json"})(fv||(ae.Application=fv={}));var hv;hv||(ae.Audio=hv={});var yv;yv||(ae.Font=yv={});var pv;pv||(ae.Example=pv={});var vv;vv||(ae.Image=vv={});var Sv;Sv||(ae.Message=Sv={});var mv;mv||(ae.Model=mv={});var _v;_v||(ae.Multipart=_v={});var Ov;(function(t){t.csv="text/csv"})(Ov||(ae.Text=Ov={}));var Tv;Tv||(ae.Video=Tv={})});var gv=o(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var Av=o(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Ic=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.EventStatusType=void 0;var Rv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Rv||(xn.EventStatusType=Rv={}))});var qc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.EventType=void 0;var Mv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Mv||(Un.EventType=Mv={}))});var qv=o(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var jv=o(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Uv=o(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Lv=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ItemAvailability=void 0;var Dv;(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"})(Dv||(Dn.ItemAvailability=Dv={}))});var kv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var Nc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var Bv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Bv||(Et.RefundTypeEnumeration=Bv={}));var Gv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Gv||(Et.ReturnFeesEnumeration=Gv={}));var $v;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})($v||(Et.MerchantReturnEnumeration=$v={}))});var Wv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Vv=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.CategorySetIdentifier=void 0;var Hv;(function(t){t.MovieTicketType="MovieTicketType"})(Hv||(Ln.CategorySetIdentifier=Hv={}))});var Yv=o(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Zv=o(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var Xv=o(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var tS=o(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0})});var nS=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OfferItemCondition=void 0;var rS;(function(t){t.NewCondition="NewCondition"})(rS||(Fn.OfferItemCondition=rS={}))});var jc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OfferType=void 0;var sS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(sS||(kn.OfferType=sS={}))});var oS=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OrderType=void 0;var iS;(function(t){t.Order="Order"})(iS||(Bn.OrderType=iS={}))});var xc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrderType=void 0;var Zw=oS();Object.defineProperty(Gn,"OrderType",{enumerable:!0,get:function(){return Zw.OrderType}})});var Uc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OrderStatus=void 0;var aS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(aS||($n.OrderStatus=aS={}))});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var Dc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrganizationType=void 0;var dS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(dS||(Kn.OrganizationType=dS={}))});var fS=o(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0})});var yS=o(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0})});var vS=o(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0})});var Lc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PaymentStatusType=void 0;var SS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(SS||(Wn.PaymentStatusType=SS={}))});var _S=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PermitType=void 0;var mS;(function(t){t.Permit="Permit"})(mS||(Hn.PermitType=mS={}))});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});var Fc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PersonType=void 0;var ES;(function(t){t.Person="Person"})(ES||(Vn.PersonType=ES={}))});var gS=o(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0})});var AS=o(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0})});var wS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});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 kc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PlaceType=void 0;var NS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(NS||(zn.PlaceType=NS={}))});var xS=o(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0})});var Bc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PriceCurrency=void 0;var US;(function(t){t.JPY="JPY"})(US||(Yn.PriceCurrency=US={}))});var LS=o(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0})});var Gc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PriceSpecificationType=void 0;var FS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(FS||(Qn.PriceSpecificationType=FS={}))});var $c=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ProductType=void 0;var kS;(function(t){t.EventService="EventService",t.Product="Product"})(kS||(Zn.ProductType=kS={}))});var GS=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ProgramMembershipType=void 0;var BS;(function(t){t.ProgramMembership="ProgramMembership"})(BS||(Jn.ProgramMembershipType=BS={}))});var KS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var HS=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.PropertyValueType=void 0;var WS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(WS||(Xn.PropertyValueType=WS={}))});var zS=o(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0})});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.StringValue=void 0;var ZS;(function(t){t.Infinity="Infinity"})(ZS||(es.StringValue=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 Kc=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ReservationStatusType=void 0;var nm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(nm||(ts.ReservationStatusType=nm={}))});var Wc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReservationType=void 0;var sm;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(sm||(rs.ReservationType=sm={}))});var Hc=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.AssetTransactionType=void 0;var im;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(im||(ns.AssetTransactionType=im={}))});var Vc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.SortType=void 0;var om;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(om||(ss.SortType=om={}))});var zc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.TaskStatus=void 0;var am;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(am||(is.TaskStatus=am={}))});var Yc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TransactionStatusType=void 0;var cm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(cm||(os.TransactionStatusType=cm={}))});var Qc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TransactionType=void 0;var um;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(um||(as.TransactionType=um={}))});var Zc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.UnitCode=void 0;var dm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(dm||(cs.UnitCode=dm={}))});var mm=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.RESERVED_CODE_VALUES=void 0;var us=Hc(),lm=Rc(),Nt=Mc(),ds=Ic(),fm=qc(),ct=Nc(),hm=jc(),Jw=xc(),Yt=Uc(),Jc=Dc(),Nr=Lc(),Xw=Fc(),Qt=kc(),e0=Bc(),jr=Gc(),ym=$c(),ls=Kc(),pm=Wc(),vm=Vc(),xr=zc(),fs=Yc(),Sm=Qc(),hs=Zc();ys.RESERVED_CODE_VALUES=["AccountTitle",us.AssetTransactionType.CancelReservation,"MoneyTransfer",us.AssetTransactionType.Pay,us.AssetTransactionType.Refund,us.AssetTransactionType.Reserve,"Authorization",lm.CertificationStatusEnumeration.CertificationActive,lm.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",ds.EventStatusType.EventCancelled,ds.EventStatusType.EventPostponed,ds.EventStatusType.EventRescheduled,ds.EventStatusType.EventScheduled,fm.EventType.ScreeningEvent,fm.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",hm.OfferType.AggregateOffer,hm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",Jw.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,Jc.OrganizationType.Corporation,Jc.OrganizationType.Organization,Jc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,Xw.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,e0.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,ym.ProductType.EventService,ym.ProductType.Product,ls.ReservationStatusType.ReservationCancelled,ls.ReservationStatusType.ReservationConfirmed,ls.ReservationStatusType.ReservationPending,"ReservationHold",ls.ReservationStatusType.ReservationPending,"BusReservation",pm.ReservationType.EventReservation,pm.ReservationType.ReservationPackage,vm.SortType.Ascending,vm.SortType.Descending,xr.TaskStatus.Aborted,xr.TaskStatus.Executed,xr.TaskStatus.Ready,xr.TaskStatus.Running,xr.TaskStatus.Expired,fs.TransactionStatusType.Canceled,fs.TransactionStatusType.Confirmed,fs.TransactionStatusType.Expired,fs.TransactionStatusType.InProgress,Sm.TransactionType.PlaceOrder,Sm.TransactionType.ReturnOrder,hs.UnitCode.Ann,hs.UnitCode.C62,hs.UnitCode.Day,hs.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var Om=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RoleType=void 0;var _m;(function(t){t.OrganizationRole="OrganizationRole"})(_m||(ps.RoleType=_m={}))});var Em=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RoleName=void 0;var Tm;(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"})(Tm||(vs.RoleName=Tm={}))});var gm=o(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0})});var Am=o(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0})});var wm=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Mm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.PaymentServiceType=void 0;var Rm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Rm||(Ss.PaymentServiceType=Rm={}))});var qm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.Identifier=void 0;var Im;(function(t){t.COA="COA",t.Chevre="Chevre"})(Im||(ms.Identifier=Im={}))});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 Lm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var Gm=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var Hm=o(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0})});var zm=o(Vm=>{"use strict";Object.defineProperty(Vm,"__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 A_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(P_=>{"use strict";Object.defineProperty(P_,"__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 L_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var G_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var H_=o(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var z_=o(V_=>{"use strict";Object.defineProperty(V_,"__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 AO=o(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.TaskName=void 0;var bO;(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.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"})(bO||(_s.TaskName=bO={}))});var wO=o(PO=>{"use strict";Object.defineProperty(PO,"__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(xO=>{"use strict";Object.defineProperty(xO,"__esModule",{value:!0})});var LO=o(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.Reason=void 0;var DO;(function(t){t.Customer="Customer",t.Seller="Seller"})(DO||(Os.Reason=DO={}))});var we=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ErrorCode=void 0;var FO;(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"})(FO||(Ts.ErrorCode=FO={}))});var Re=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.ChevreError=void 0;var Xc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Es.ChevreError=Xc});var kO=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.AlreadyInUseError=void 0;var t0=we(),r0=Re(),eu=class extends r0.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(t0.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};Cs.AlreadyInUseError=eu});var BO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ArgumentError=void 0;var n0=we(),s0=Re(),tu=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(n0.ErrorCode.Argument,n),this.argumentName=e}};gs.ArgumentError=tu});var GO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ArgumentNullError=void 0;var i0=we(),o0=Re(),ru=class extends o0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(i0.ErrorCode.ArgumentNull,n),this.argumentName=e}};bs.ArgumentNullError=ru});var $O=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ForbiddenError=void 0;var a0=we(),c0=Re(),nu=class extends c0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(a0.ErrorCode.Forbidden,r)}};As.ForbiddenError=nu});var KO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GatewayTimeoutError=void 0;var u0=we(),d0=Re(),su=class extends d0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(u0.ErrorCode.GatewayTimeout,r)}};Ps.GatewayTimeoutError=su});var WO=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.InternalError=void 0;var l0=we(),f0=Re(),iu=class extends f0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(l0.ErrorCode.Internal,r)}};ws.InternalError=iu});var HO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.NotFoundError=void 0;var h0=we(),y0=Re(),ou=class extends y0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(h0.ErrorCode.NotFound,n),this.entityName=e}};Rs.NotFoundError=ou});var VO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.NotImplementedError=void 0;var p0=we(),v0=Re(),au=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(p0.ErrorCode.NotImplemented,r)}};Ms.NotImplementedError=au});var zO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.RateLimitExceededError=void 0;var S0=we(),m0=Re(),cu=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(S0.ErrorCode.RateLimitExceeded,r)}};Is.RateLimitExceededError=cu});var YO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ServiceUnavailableError=void 0;var _0=we(),O0=Re(),uu=class extends O0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(_0.ErrorCode.ServiceUnavailable,r)}};qs.ServiceUnavailableError=uu});var QO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.UnauthorizedError=void 0;var T0=we(),E0=Re(),du=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(T0.ErrorCode.Unauthorized,r)}};Ns.UnauthorizedError=du});var ZO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.UnknownError=void 0;var C0=we(),g0=Re(),lu=class extends g0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(C0.ErrorCode.Unknown,r)}};js.UnknownError=lu});var JO=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 b0=kO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return b0.AlreadyInUseError}});var A0=BO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return A0.ArgumentError}});var P0=GO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return P0.ArgumentNullError}});var w0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return w0.ChevreError}});var R0=$O();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return R0.ForbiddenError}});var M0=KO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return M0.GatewayTimeoutError}});var I0=WO();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return I0.InternalError}});var q0=HO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return q0.NotFoundError}});var N0=VO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return N0.NotImplementedError}});var j0=zO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return j0.RateLimitExceededError}});var x0=YO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return x0.ServiceUnavailableError}});var U0=QO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return U0.UnauthorizedError}});var D0=ZO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return D0.UnknownError}})});var tT=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.RecipeCategory=void 0;var XO;(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"})(XO||(Zt.RecipeCategory=XO={}));var eT;(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"})(eT||(Zt.StepIdentifier=eT={}))});var ST=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=vy();O.cognito=my();var L0=Oy(),F0=Ey(),k0=gy(),B0=Py(),G0=My(),$0=qy(),K0=jy(),W0=Uy(),H0=Ly(),V0=ky(),z0=Gy(),Y0=Ky(),Q0=Hy(),Z0=zy(),J0=Qy(),X0=Jy(),eR=ep(),tR=rp(),rR=sp(),nR=op(),sR=cp(),iR=dp(),oR=fp(),aR=yp(),cR=Sp(),uR=_p(),dR=Tp(),lR=wp(),fR=Mp(),hR=qp(),yR=jp(),pR=Up(),vR=Lp(),SR=kp(),mR=Gp(),_R=Rc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return _R.CertificationStatusEnumeration}});var OR=Wp(),TR=Vp(),ER=Yp(),CR=Zp(),gR=Xp(),bR=tv(),AR=sv(),PR=ov(),wR=cv(),RR=Mc(),MR=lv(),IR=Ev(),qR=gv();O.entryPoint=qR;var NR=Av();O.eventSeries=wv();var jR=Ic(),xR=qc(),UR=qv(),DR=jv(),LR=Uv(),FR=Lv(),kR=kv(),BR=Nc(),GR=Wv(),$R=Vv();O.offer=Yv();O.aggregateOffer=Zv();O.eventOffer=Xv();var KR=tS(),WR=nS(),HR=jc();O.order=xc();var VR=Uc(),zR=uS(),YR=Dc(),QR=fS(),ZR=yS(),JR=vS(),XR=Lc(),eM=_S(),tM=TS(),rM=Fc(),nM=gS(),sM=AS(),iM=wS(),oM=MS(),aM=qS(),cM=kc(),uM=xS();O.potentialAction=uM;var dM=Bc(),lM=LS(),fM=Gc(),hM=$c(),yM=GS();O.project=KS();var pM=HS(),vM=zS(),SM=QS(),mM=JS(),_M=em(),OM=rm(),TM=Kc(),EM=Wc(),CM=mm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return CM.RESERVED_CODE_VALUES}});var gM=Om(),bM=Em(),AM=gm(),PM=Am(),wM=wm(),RM=Mm(),MM=qm(),IM=jm(),qM=Vc(),NM=Um(),jM=Zc();O.unitPriceOffer=Lm();var xM=km(),UM=Gm(),DM=Km(),LM=Hm(),FM=zm(),kM=Qm(),BM=Jm(),GM=e_(),$M=r_(),KM=s_(),WM=o_(),HM=c_(),VM=d_(),zM=f_(),YM=y_(),QM=v_(),ZM=m_(),JM=O_(),XM=E_(),eI=g_(),tI=A_(),rI=w_(),nI=M_(),sI=q_(),iI=j_(),oI=U_(),aI=L_(),cI=k_(),uI=G_(),dI=K_(),lI=H_(),fI=z_(),hI=Q_(),yI=J_(),pI=eO(),vI=rO(),SI=sO(),mI=oO(),_I=cO(),OI=dO(),TI=fO(),EI=yO(),CI=vO(),gI=mO(),bI=OO(),AI=EO(),PI=gO(),wI=AO(),RI=zc(),MI=wO(),II=MO(),qI=qO(),NI=jO(),jI=Hc(),xI=Yc(),UI=UO(),DI=LO(),LI=Qc(),FI=we();O.errors=JO();O.recipe=tT();O.errorCode=FI.ErrorCode;O.actionStatusType=fR.ActionStatusType;O.actionType=hR.ActionType;var rT;(function(t){let e;(function(y){y.coaOffer=L0,y.pay=F0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=G0})(S=y.paymentMethod||(y.paymentMethod={}));let m;(function(g){g.eventService=B0})(m=y.offer||(y.offer={})),y.invoice=k0,y.ticketedObject=$0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=K0,y.reservation=W0})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(m){m.movieTicket=H0})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=V0})(s=t.check||(t.check={})),t.create=Y0;let i;(function(y){let S;(function(m){m.pay=Q0,m.reservation=Z0})(S=y.confirm||(y.confirm={})),y.inform=J0})(i=t.interact||(t.interact={}));let c;(function(y){y.order=eR,y.pay=tR,y.refund=rR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=nR,g.order=sR,g.reserveTransaction=iR})(S=y.returnAction||(y.returnAction={}));let m;(function(g){let w;(function(R){R.email=oR})(w=g.message||(g.message={})),g.order=aR})(m=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=cR,y.deleteAction=uR,y.replace=dR,y.update=lR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(m){m.reservation=z0})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=X0})(rT||(O.action=rT={}));O.accountTitle=yR;O.additionalProperty=pR;O.aggregation=vR;O.authorization=SR;O.categoryCode=mR;O.clientUser=OR;var nT;(function(t){let e;(function(s){s.softwareApplication=TR,s.webApplication=ER,s.webSite=CR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=gR})(r=t.message||(t.message={})),t.movie=bR,t.noteDigitalDocument=AR;let n;(function(s){s.softwareApplication=PR,s.webApplication=wR})(n=t.softwareApplication||(t.softwareApplication={}))})(nT||(O.creativeWork=nT={}));O.creativeWorkType=RR.CreativeWorkType;O.customer=MR;var sT;(function(t){t.screeningEvent=NR})(sT||(O.event=sT={}));O.encodingFormat=IR;O.eventStatusType=jR.EventStatusType;O.eventType=xR.EventType;O.iam=UR;O.identityProvider=DR;O.invoice=LR;O.itemAvailability=FR.ItemAvailability;O.language=kR;O.merchantReturnPolicy=BR;O.monetaryAmount=GR;O.movieTicketType=$R;var iT;(function(t){t.event=LM,t.eventSeries=FM,t.order=GM,t.reservation=zM,t.payAction=$M,t.refundAction=VM,t.accountTitle=xM,t.categoryCode=UM,t.creativeWork=DM,t.offer=kM,t.offerCatalog=BM,t.person=KM,t.place=WM,t.product=HM,t.task=YM,t.transaction=QM})(iT||(O.notification=iT={}));O.offerCatalog=KR;O.offerItemCondition=WR;O.offerType=HR.OfferType;O.orderStatus=VR.OrderStatus;O.organization=zR;O.organizationType=YR.OrganizationType;O.ownershipInfo=QR;var oT;(function(t){let e;(function(r){r.creditCard=ZR,r.movieTicket=JR})(e=t.paymentCard||(t.paymentCard={}))})(oT||(O.paymentMethod=oT={}));O.paymentStatusType=XR.PaymentStatusType;O.permit=eM;O.person=tM;O.personType=rM.PersonType;O.priceCurrency=dM.PriceCurrency;var aT;(function(t){t.entranceGate=nM,t.movieTheater=sM,t.screeningRoom=iM,t.screeningRoomSection=oM,t.seat=aM})(aT||(O.place=aT={}));O.placeType=cM.PlaceType;var cT;(function(t){t.unitPrice=lM})(cT||(O.priceSpecification=cT={}));O.priceSpecificationType=fM.PriceSpecificationType;O.programMembership=yM;O.product=hM;var uT;(function(t){t.PropertyValueType=pM.PropertyValueType,t.locationFeatureSpecification=vM})(uT||(O.propertyValue=uT={}));O.qualitativeValue=SM;O.quantitativeValue=mM;var dT;(function(t){t.accountingReport=_M})(dT||(O.report=dT={}));var lT;(function(t){t.eventReservation=OM})(lT||(O.reservation=lT={}));O.reservationStatusType=TM.ReservationStatusType;O.reservationType=EM.ReservationType;var fT;(function(t){t.RoleType=gM.RoleType,t.organizationRole=bM})(fT||(O.role=fT={}));O.schedule=AM;O.seller=PM;O.sellerReturnPolicy=wM;var hT;(function(t){t.acceptCOAOffer=ZM,t.aggregateOffers=JM,t.aggregateOnSystem=XM,t.aggregateScreeningEvent=eI,t.authorizePayment=tI,t.cancelPendingReservation=rI,t.cancelReservation=nI,t.checkMovieTicket=sI,t.checkResource=iI,t.createAccountingReport=aI,t.confirmReserveTransaction=oI,t.deleteTransaction=cI,t.handleNotification=uI,t.importEventCapacitiesFromCOA=dI,t.importEventsFromCOA=lI,t.importOffersFromCOA=fI,t.invalidatePaymentUrl=hI,t.onAssetTransactionStatusChanged=yI,t.pay=_I,t.publishPaymentUrl=OI,t.refund=TI,t.reserve=EI,t.sendEmailMessage=CI,t.syncResourcesFromCOA=gI,t.triggerWebhook=bI,t.useReservation=AI,t.voidPayment=PI,t.onAuthorizationCreated=pI,t.onEventChanged=vI,t.onResourceDeleted=SI,t.onResourceUpdated=mI})(hT||(O.task=hT={}));var yT;(function(t){t.paymentService=RM,t.webAPI=MM})(yT||(O.service=yT={}));O.serviceChannel=IM;O.sortType=qM.SortType;O.taskName=wI.TaskName;O.taskStatus=RI.TaskStatus;O.thing=NM;var pT;(function(t){t.cancelReservation=MI,t.pay=II,t.refund=qI,t.reserve=NI})(pT||(O.assetTransaction=pT={}));var vT;(function(t){t.placeOrder=UI,t.returnOrder=DI})(vT||(O.transaction=vT={}));O.transactionType=LI.TransactionType;O.transactionStatusType=xI.TransactionStatusType;O.assetTransactionType=jI.AssetTransactionType;O.unitCode=jM.UnitCode});var mT=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.ChevreFactory=void 0;xs.ChevreFactory=ST()});var Y=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.factory=void 0;var kI=mT();Object.defineProperty(Us,"factory",{enumerable:!0,get:function(){return kI.ChevreFactory}})});var OT=o((l2,_T)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,BI=jt*7,GI=jt*365.25;_T.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return $I(t);if(r==="number"&&isFinite(t))return e.long?WI(t):KI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function $I(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*GI;case"weeks":case"week":case"w":return r*BI;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 KI(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 WI(t){var e=Math.abs(t);return e>=jt?Ds(t,e,jt,"day"):e>=er?Ds(t,e,er,"hour"):e>=Xt?Ds(t,e,Xt,"minute"):e>=Jt?Ds(t,e,Jt,"second"):t+" ms"}function Ds(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var ET=o((f2,TT)=>{function HI(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=s,r.enabled=d,r.humanize=OT(),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(...q){if(!R.enabled)return;let N=R,C=Number(new Date),M=C-(S||C);N.diff=M,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,x)=>{if(K==="%%")return"%";D++;let G=r.formatters[x];if(typeof G=="function"){let W=q[D];K=G.call(N,W),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}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:q=>{m=q}}),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 c(){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}TT.exports=HI});var tr=o((Me,Ls)=>{Me.formatArgs=zI;Me.save=YI;Me.load=QI;Me.useColors=VI;Me.storage=ZI();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 VI(){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 zI(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ls.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 YI(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function QI(){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 ZI(){try{return localStorage}catch{}}Ls.exports=ET()(Me);var{formatters:JI}=Ls.exports;JI.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Fs=o(De=>{"use strict";var XI=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 eq=XI(tr()),CT=(0,eq.default)("cinerino-sdk:transporters"),fu=class{};De.Transporter=fu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=rr;var hu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return CT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(CT("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}};De.DefaultTransporter=hu;var yu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=yu});var bT=o(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var I={"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"},gT=nr.a={classes:I,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":I.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":I.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":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.SERVER_ERROR,RAILGUN_ERROR:527}}},tq=nr.b=gT;nr.a=gT;nr.b=tq});var b=o(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var AT=bT();ks.default=AT.b;ks.status=AT.a});var xt=o((v2,PT)=>{"use strict";PT.exports=TypeError});var wT=o(()=>{});var kr=o((_2,zT)=>{var gu=typeof Map=="function"&&Map.prototype,pu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gs=gu&&pu&&typeof pu.get=="function"?pu.get:null,RT=gu&&Map.prototype.forEach,bu=typeof Set=="function"&&Set.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$s=bu&&vu&&typeof vu.get=="function"?vu.get:null,MT=bu&&Set.prototype.forEach,rq=typeof WeakMap=="function"&&WeakMap.prototype,Dr=rq?WeakMap.prototype.has:null,nq=typeof WeakSet=="function"&&WeakSet.prototype,Lr=nq?WeakSet.prototype.has:null,sq=typeof WeakRef=="function"&&WeakRef.prototype,IT=sq?WeakRef.prototype.deref:null,iq=Boolean.prototype.valueOf,oq=Object.prototype.toString,aq=Function.prototype.toString,cq=String.prototype.match,Au=String.prototype.slice,Ct=String.prototype.replace,uq=String.prototype.toUpperCase,qT=String.prototype.toLowerCase,BT=RegExp.prototype.test,NT=Array.prototype.concat,ut=Array.prototype.join,dq=Array.prototype.slice,jT=Math.floor,_u=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Su=Object.getOwnPropertySymbols,Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,GT=Object.prototype.propertyIsEnumerable,xT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function UT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||BT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-jT(-t):jT(t);if(n!==t){var s=String(n),i=Au.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 Tu=wT(),DT=Tu.custom,LT=WT(DT)?DT:null,$T={__proto__:null,double:'"',single:"'"},lq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};zT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt($T,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 c=vt(i,"customInspect")?i.customInspect:!0;if(typeof c!="boolean"&&c!=="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 VT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?UT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?UT(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 Eu(e)?"[Array]":"[Object]";var S=Rq(i,n);if(typeof s>"u")s=[];else if(HT(s,e)>=0)return"[Circular]";function m(oe,se,ie){if(se&&(s=dq.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"&&!FT(e)){var g=Oq(e),w=Bs(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if(WT(e)){var R=sr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ou.call(e);return typeof e=="object"&&!sr?Ur(R):R}if(Aq(e)){for(var q="<"+qT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+KT(fq(N[C].value),"double",i);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+qT.call(String(e.nodeName))+">",q}if(Eu(e)){if(e.length===0)return"[]";var M=Bs(e,m);return S&&!wq(M)?"["+Cu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(yq(e)){var D=Bs(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!GT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(NT.call("[cause]: "+m(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(D,", ")+" }"}if(typeof e=="object"&&c){if(LT&&typeof e[LT]=="function"&&Tu)return Tu(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Tq(e)){var k=[];return RT&&RT.call(e,function(oe,se){k.push(m(se,e,!0)+" => "+m(oe,e))}),kT("Map",Gs.call(e),k,S)}if(gq(e)){var K=[];return MT&&MT.call(e,function(oe){K.push(m(oe,e))}),kT("Set",$s.call(e),K,S)}if(Eq(e))return mu("WeakMap");if(bq(e))return mu("WeakSet");if(Cq(e))return mu("WeakRef");if(vq(e))return Ur(m(Number(e)));if(mq(e))return Ur(m(_u.call(e)));if(Sq(e))return Ur(iq.call(e));if(pq(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(!hq(e)&&!FT(e)){var x=Bs(e,m),G=xT?xT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!G&&Fr&&Object(e)===e&&Fr in e?Au.call(gt(e),8,-1):W?"Object":"",Q=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Q+($||W?"["+ut.call(NT.call([],$||[],W||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+Cu(x,S)+"}":Te+"{ "+ut.call(x,", ")+" }"}return String(e)};function KT(t,e,r){var n=r.quoteStyle||e,s=$T[n];return s+t+s}function fq(t){return Ct.call(String(t),/"/g,""")}function Ut(t){return!Fr||!(typeof t=="object"&&(Fr in t||typeof t[Fr]<"u"))}function Eu(t){return gt(t)==="[object Array]"&&Ut(t)}function hq(t){return gt(t)==="[object Date]"&&Ut(t)}function FT(t){return gt(t)==="[object RegExp]"&&Ut(t)}function yq(t){return gt(t)==="[object Error]"&&Ut(t)}function pq(t){return gt(t)==="[object String]"&&Ut(t)}function vq(t){return gt(t)==="[object Number]"&&Ut(t)}function Sq(t){return gt(t)==="[object Boolean]"&&Ut(t)}function WT(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}function mq(t){if(!t||typeof t!="object"||!_u)return!1;try{return _u.call(t),!0}catch{}return!1}var _q=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return _q.call(t,e)}function gt(t){return oq.call(t)}function Oq(t){if(t.name)return t.name;var e=cq.call(aq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function HT(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 Tq(t){if(!Gs||!t||typeof t!="object")return!1;try{Gs.call(t);try{$s.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Eq(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 Cq(t){if(!IT||!t||typeof t!="object")return!1;try{return IT.call(t),!0}catch{}return!1}function gq(t){if(!$s||!t||typeof t!="object")return!1;try{$s.call(t);try{Gs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function bq(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 Aq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function VT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return VT(Au.call(t,0,e.maxStringLength),e)+n}var s=lq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,Pq);return KT(i,"single",e)}function Pq(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":"")+uq.call(e.toString(16))}function Ur(t){return"Object("+t+")"}function mu(t){return t+" { ? }"}function kT(t,e,r,n){var s=n?Cu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function wq(t){for(var e=0;e<t.length;e++)if(HT(t[e],`
|
|
2
|
-
`)>=0)return!1;return!0}function
|
|
1
|
+
"use strict";(()=>{var o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jh=o(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0})});var ft=o(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var KP;(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"})(KP=Cn.ErrorCode||(Cn.ErrorCode={}))});var Tt=o((hF,Xh)=>{"use strict";Xh.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?WP:HP);function WP(t,e){return t.__proto__=e,t}function HP(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 VP=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 zP=(function(t){VP(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=zP});var ey=o(Ar=>{"use strict";var YP=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 QP=Tt(),ZP=ft(),JP=ht(),XP=(function(t){YP(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,ZP.ErrorCode.Argument,i)||this,s.argumentName=r,QP(s,e.prototype),s}return e})(JP.WaiterError);Ar.ArgumentError=XP});var ty=o(Pr=>{"use strict";var ew=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 tw=Tt(),rw=ft(),nw=ht(),sw=(function(t){ew(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,rw.ErrorCode.Argument,i)||this,s.argumentName=r,tw(s,e.prototype),s}return e})(nw.WaiterError);Pr.ArgumentNullError=sw});var ry=o(wr=>{"use strict";var iw=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 ow=Tt(),aw=ft(),cw=ht(),uw=(function(t){iw(e,t);function e(r){var n=this,s=r;return(r===void 0||r.length===0)&&(s="Forbidden"),n=t.call(this,aw.ErrorCode.Forbidden,s)||this,ow(n,e.prototype),n}return e})(cw.WaiterError);wr.ForbiddenError=uw});var ny=o(Rr=>{"use strict";var dw=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 lw=Tt(),fw=ft(),hw=ht(),yw=(function(t){dw(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,fw.ErrorCode.NotFound,i)||this,s.entityName=r,lw(s,e.prototype),s}return e})(hw.WaiterError);Rr.NotFoundError=yw});var sy=o(Mr=>{"use strict";var pw=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 vw=Tt(),Sw=ft(),mw=ht(),_w=(function(t){pw(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,Sw.ErrorCode.RateLimitExceeded,s)||this,vw(n,e.prototype),n}return e})(mw.WaiterError);Mr.RateLimitExceededError=_w});var iy=o(Ir=>{"use strict";var Ow=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 Tw=Tt(),Ew=ft(),Cw=ht(),gw=(function(t){Ow(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,Ew.ErrorCode.ServiceUnavailable,s)||this,Tw(n,e.prototype),n}return e})(Cw.WaiterError);Ir.ServiceUnavailableError=gw});var oy=o(qr=>{"use strict";var bw=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=Tt(),Pw=ft(),ww=ht(),Rw=(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,Pw.ErrorCode.Unauthorized,s)||this,Aw(n,e.prototype),n}return e})(ww.WaiterError);qr.UnauthorizedError=Rw});var ay=o(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});var Mw=ey();at.Argument=Mw.ArgumentError;var Iw=ty();at.ArgumentNull=Iw.ArgumentNullError;var qw=ry();at.Forbidden=qw.ForbiddenError;var Nw=ny();at.NotFound=Nw.NotFoundError;var jw=sy();at.RateLimitExceeded=jw.RateLimitExceededError;var xw=iy();at.ServiceUnavailable=xw.ServiceUnavailableError;var Uw=oy();at.Unauthorized=Uw.UnauthorizedError;var Dw=ht();at.Waiter=Dw.WaiterError});var uy=o(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0})});var ly=o(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0})});var hy=o(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var py=o(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0})});var vy=o(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Lw=Jh();yt.client=Lw;var Fw=ft();yt.errorCode=Fw.ErrorCode;var kw=ay();yt.errors=kw;var Bw=uy();yt.passport=Bw;var Gw=ly();yt.project=Gw;var $w=hy();yt.rule=$w;var Kw=py();yt.ruleSet=Kw});var my=o(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var Oy=o(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.FlgMember=void 0;var _y;(function(t){t.NonMember="0",t.Member="1"})(_y||(gn.FlgMember=_y={}))});var Ey=o(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0})});var gy=o(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0})});var Ay=o(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.ObjectType=void 0;var by;(function(t){t.SeatReservation="SeatReservation"})(by||(bn.ObjectType=by={}))});var Py=o(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.ObjectType=void 0;var Ww=Ay();Object.defineProperty(An,"ObjectType",{enumerable:!0,get:function(){return Ww.ObjectType}})});var My=o(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.ServiceIdentifier=Vt.ResultType=void 0;var wy;(function(t){t.Payment="Payment"})(wy||(Vt.ResultType=wy={}));var Ry;(function(t){t.Chevre="Chevre"})(Ry||(Vt.ServiceIdentifier=Ry={}))});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 Gy=o(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0})});var Ky=o($y=>{"use strict";Object.defineProperty($y,"__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 fp=o(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0})});var yp=o(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0})});var vp=o(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0})});var Sp=o(qt=>{"use strict";var Hw=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]})),Vw=qt&&qt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Hw(e,t,r)};Object.defineProperty(qt,"__esModule",{value:!0});Vw(vp(),qt)});var _p=o(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ObjectAsTransactionSpecifyingMethod=void 0;var mp;(function(t){t.Id="Id"})(mp||(Pn.ObjectAsTransactionSpecifyingMethod=mp={}))});var Tp=o(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0})});var Cp=o(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0})});var bp=o(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0})});var Pp=o(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0})});var wp=o(pt=>{"use strict";var zw=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]})),wc=pt&&pt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zw(e,t,r)};Object.defineProperty(pt,"__esModule",{value:!0});wc(Cp(),pt);wc(bp(),pt);wc(Pp(),pt)});var Mp=o(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.ActionStatusType=void 0;var Rp;(function(t){t.ActiveActionStatus="ActiveActionStatus",t.CompletedActionStatus="CompletedActionStatus",t.FailedActionStatus="FailedActionStatus",t.PotentialActionStatus="PotentialActionStatus",t.CanceledActionStatus="CanceledActionStatus"})(Rp||(wn.ActionStatusType=Rp={}))});var qp=o(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ActionType=void 0;var Ip;(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"})(Ip||(Rn.ActionType=Ip={}))});var jp=o(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0})});var Up=o(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0})});var Lp=o(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.AggregationType=void 0;var Dp;(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"})(Dp||(Mn.AggregationType=Dp={}))});var kp=o(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0})});var Gp=o(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.CategorySetIdentifier=void 0;var Bp;(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"})(Bp||(In.CategorySetIdentifier=Bp={}))});var Rc=o(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.CertificationStatusEnumeration=void 0;var $p;(function(t){t.CertificationActive="CertificationActive",t.CertificationInactive="CertificationInactive"})($p||(qn.CertificationStatusEnumeration=$p={}))});var Wp=o(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0})});var Vp=o(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0})});var Yp=o(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0})});var Zp=o(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0})});var Xp=o(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.AboutIdentifier=void 0;var Jp;(function(t){t.OnOrderSent="OnOrderSent",t.OnOrderRefunded="OnOrderRefunded",t.OnOrderReturned="OnOrderReturned",t.OnEventStatusChanged="OnEventStatusChanged"})(Jp||(Nn.AboutIdentifier=Jp={}))});var tv=o(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0})});var sv=o(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.PermissionGranteeAudienceType=zt.DigitalDocumentPermissionType=void 0;var rv;(function(t){t.ReadPermission="ReadPermission",t.WritePermission="WritePermission"})(rv||(zt.DigitalDocumentPermissionType=rv={}));var nv;(function(t){t.Public="public"})(nv||(zt.PermissionGranteeAudienceType=nv={}))});var ov=o(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0})});var cv=o(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0})});var Mc=o(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.CreativeWorkType=void 0;var uv;(function(t){t.Certification="Certification",t.EmailMessage="EmailMessage",t.Movie="Movie",t.NoteDigitalDocument="NoteDigitalDocument",t.SoftwareApplication="SoftwareApplication",t.WebApplication="WebApplication",t.WebSite="WebSite"})(uv||(jn.CreativeWorkType=uv={}))});var lv=o(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0})});var Ev=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 fv;(function(t){t.pdf="application/pdf",t.json="application/json"})(fv||(ae.Application=fv={}));var hv;hv||(ae.Audio=hv={});var yv;yv||(ae.Font=yv={});var pv;pv||(ae.Example=pv={});var vv;vv||(ae.Image=vv={});var Sv;Sv||(ae.Message=Sv={});var mv;mv||(ae.Model=mv={});var _v;_v||(ae.Multipart=_v={});var Ov;(function(t){t.csv="text/csv"})(Ov||(ae.Text=Ov={}));var Tv;Tv||(ae.Video=Tv={})});var gv=o(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var Av=o(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var wv=o(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0})});var Ic=o(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.EventStatusType=void 0;var Rv;(function(t){t.EventCancelled="EventCancelled",t.EventPostponed="EventPostponed",t.EventRescheduled="EventRescheduled",t.EventScheduled="EventScheduled"})(Rv||(xn.EventStatusType=Rv={}))});var qc=o(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.EventType=void 0;var Mv;(function(t){t.ScreeningEvent="ScreeningEvent",t.ScreeningEventSeries="ScreeningEventSeries"})(Mv||(Un.EventType=Mv={}))});var qv=o(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var jv=o(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0})});var Uv=o(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Lv=o(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ItemAvailability=void 0;var Dv;(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"})(Dv||(Dn.ItemAvailability=Dv={}))});var kv=o(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var Nc=o(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.MerchantReturnEnumeration=Et.ReturnFeesEnumeration=Et.RefundTypeEnumeration=void 0;var Bv;(function(t){t.ExchangeRefund="ExchangeRefund",t.FullRefund="FullRefund",t.StoreCreditRefund="StoreCreditRefund"})(Bv||(Et.RefundTypeEnumeration=Bv={}));var Gv;(function(t){t.FreeReturn="FreeReturn",t.RestockingFees="RestockingFees",t.ReturnFeesCustomerResponsibility="ReturnFeesCustomerResponsibility"})(Gv||(Et.ReturnFeesEnumeration=Gv={}));var $v;(function(t){t.MerchantReturnFiniteReturnWindow="MerchantReturnFiniteReturnWindow",t.MerchantReturnNotPermitted="MerchantReturnNotPermitted",t.MerchantReturnUnlimitedWindow="MerchantReturnUnlimitedWindow",t.MerchantReturnUnspecified="MerchantReturnUnspecified"})($v||(Et.MerchantReturnEnumeration=$v={}))});var Wv=o(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Vv=o(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.CategorySetIdentifier=void 0;var Hv;(function(t){t.MovieTicketType="MovieTicketType"})(Hv||(Ln.CategorySetIdentifier=Hv={}))});var Yv=o(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0})});var Zv=o(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var Xv=o(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0})});var tS=o(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0})});var nS=o(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.OfferItemCondition=void 0;var rS;(function(t){t.NewCondition="NewCondition"})(rS||(Fn.OfferItemCondition=rS={}))});var jc=o(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.OfferType=void 0;var sS;(function(t){t.Offer="Offer",t.AggregateOffer="AggregateOffer"})(sS||(kn.OfferType=sS={}))});var oS=o(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.OrderType=void 0;var iS;(function(t){t.Order="Order"})(iS||(Bn.OrderType=iS={}))});var xc=o(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.OrderType=void 0;var Yw=oS();Object.defineProperty(Gn,"OrderType",{enumerable:!0,get:function(){return Yw.OrderType}})});var Uc=o($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.OrderStatus=void 0;var aS;(function(t){t.OrderCancelled="OrderCancelled",t.OrderDelivered="OrderDelivered",t.OrderInTransit="OrderInTransit",t.OrderPaymentDue="OrderPaymentDue",t.OrderProcessing="OrderProcessing",t.OrderReturned="OrderReturned"})(aS||($n.OrderStatus=aS={}))});var uS=o(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0})});var Dc=o(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.OrganizationType=void 0;var dS;(function(t){t.Corporation="Corporation",t.Organization="Organization",t.Project="Project"})(dS||(Kn.OrganizationType=dS={}))});var fS=o(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0})});var yS=o(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0})});var vS=o(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0})});var Lc=o(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.PaymentStatusType=void 0;var SS;(function(t){t.PaymentAutomaticallyApplied="PaymentAutomaticallyApplied",t.PaymentComplete="PaymentComplete",t.PaymentDeclined="PaymentDeclined",t.PaymentDue="PaymentDue",t.PaymentPastDue="PaymentPastDue"})(SS||(Wn.PaymentStatusType=SS={}))});var _S=o(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.PermitType=void 0;var mS;(function(t){t.Permit="Permit"})(mS||(Hn.PermitType=mS={}))});var TS=o(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0})});var Fc=o(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PersonType=void 0;var ES;(function(t){t.Person="Person"})(ES||(Vn.PersonType=ES={}))});var gS=o(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0})});var AS=o(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0})});var wS=o(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0})});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 kc=o(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.PlaceType=void 0;var NS;(function(t){t.AggregatePlace="AggregatePlace",t.EntranceGate="EntranceGate",t.MovieTheater="MovieTheater",t.Place="Place",t.ScreeningRoom="ScreeningRoom",t.ScreeningRoomSection="ScreeningRoomSection",t.Seat="Seat"})(NS||(zn.PlaceType=NS={}))});var xS=o(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0})});var Bc=o(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.PriceCurrency=void 0;var US;(function(t){t.JPY="JPY"})(US||(Yn.PriceCurrency=US={}))});var LS=o(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0})});var Gc=o(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.PriceSpecificationType=void 0;var FS;(function(t){t.PriceSpecification="PriceSpecification",t.CategoryCodeChargeSpecification="CategoryCodeChargeSpecification",t.CompoundPriceSpecification="CompoundPriceSpecification",t.MovieTicketTypeChargeSpecification="MovieTicketTypeChargeSpecification",t.UnitPriceSpecification="UnitPriceSpecification"})(FS||(Qn.PriceSpecificationType=FS={}))});var $c=o(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ProductType=void 0;var kS;(function(t){t.EventService="EventService",t.Product="Product"})(kS||(Zn.ProductType=kS={}))});var GS=o(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ProgramMembershipType=void 0;var BS;(function(t){t.ProgramMembership="ProgramMembership"})(BS||(Jn.ProgramMembershipType=BS={}))});var KS=o($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0})});var HS=o(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.PropertyValueType=void 0;var WS;(function(t){t.LocationFeatureSpecification="LocationFeatureSpecification"})(WS||(Xn.PropertyValueType=WS={}))});var zS=o(VS=>{"use strict";Object.defineProperty(VS,"__esModule",{value:!0})});var QS=o(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0})});var JS=o(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.StringValue=void 0;var ZS;(function(t){t.Infinity="Infinity"})(ZS||(es.StringValue=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 Kc=o(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.ReservationStatusType=void 0;var nm;(function(t){t.ReservationCancelled="ReservationCancelled",t.ReservationConfirmed="ReservationConfirmed",t.ReservationPending="ReservationPending"})(nm||(ts.ReservationStatusType=nm={}))});var Wc=o(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.ReservationType=void 0;var sm;(function(t){t.EventReservation="EventReservation",t.ReservationPackage="ReservationPackage"})(sm||(rs.ReservationType=sm={}))});var Hc=o(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.AssetTransactionType=void 0;var im;(function(t){t.Reserve="Reserve",t.CancelReservation="CancelReservation",t.Pay="Pay",t.Refund="Refund",t.COAReserveTransaction="COAReserveTransaction"})(im||(ns.AssetTransactionType=im={}))});var Vc=o(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.SortType=void 0;var om;(function(t){t[t.Ascending=1]="Ascending",t[t.Descending=-1]="Descending"})(om||(ss.SortType=om={}))});var zc=o(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.TaskStatus=void 0;var am;(function(t){t.Ready="Ready",t.Running="Running",t.Executed="Executed",t.Aborted="Aborted",t.Expired="Expired"})(am||(is.TaskStatus=am={}))});var Yc=o(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.TransactionStatusType=void 0;var cm;(function(t){t.InProgress="InProgress",t.Canceled="Canceled",t.Confirmed="Confirmed",t.Expired="Expired"})(cm||(os.TransactionStatusType=cm={}))});var Qc=o(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TransactionType=void 0;var um;(function(t){t.PlaceOrder="PlaceOrder",t.ReturnOrder="ReturnOrder"})(um||(as.TransactionType=um={}))});var Zc=o(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.UnitCode=void 0;var dm;(function(t){t.Ann="ANN",t.C62="C62",t.Day="DAY",t.Sec="SEC"})(dm||(cs.UnitCode=dm={}))});var mm=o(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.RESERVED_CODE_VALUES=void 0;var us=Hc(),lm=Rc(),Nt=Mc(),ds=Ic(),fm=qc(),ct=Nc(),hm=jc(),Qw=xc(),Yt=Uc(),Jc=Dc(),Nr=Lc(),Zw=Fc(),Qt=kc(),Jw=Bc(),jr=Gc(),ym=$c(),ls=Kc(),pm=Wc(),vm=Vc(),xr=zc(),fs=Yc(),Sm=Qc(),hs=Zc();ys.RESERVED_CODE_VALUES=["AccountTitle",us.AssetTransactionType.CancelReservation,"MoneyTransfer",us.AssetTransactionType.Pay,us.AssetTransactionType.Refund,us.AssetTransactionType.Reserve,"Authorization",lm.CertificationStatusEnumeration.CertificationActive,lm.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",ds.EventStatusType.EventCancelled,ds.EventStatusType.EventPostponed,ds.EventStatusType.EventRescheduled,ds.EventStatusType.EventScheduled,fm.EventType.ScreeningEvent,fm.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",hm.OfferType.AggregateOffer,hm.OfferType.Offer,"OfferCatalog","OfferCatalogItem",Qw.OrderType.Order,Yt.OrderStatus.OrderCancelled,Yt.OrderStatus.OrderDelivered,Yt.OrderStatus.OrderInTransit,Yt.OrderStatus.OrderPaymentDue,"OrderPickupAvailable","OrderProblem",Yt.OrderStatus.OrderProcessing,Yt.OrderStatus.OrderReturned,Jc.OrganizationType.Corporation,Jc.OrganizationType.Organization,Jc.OrganizationType.Project,"OwnershipInfo",Nr.PaymentStatusType.PaymentAutomaticallyApplied,Nr.PaymentStatusType.PaymentComplete,Nr.PaymentStatusType.PaymentDeclined,Nr.PaymentStatusType.PaymentDue,Nr.PaymentStatusType.PaymentPastDue,Zw.PersonType.Person,Qt.PlaceType.AggregatePlace,Qt.PlaceType.MovieTheater,Qt.PlaceType.Place,Qt.PlaceType.ScreeningRoom,Qt.PlaceType.ScreeningRoomSection,Qt.PlaceType.Seat,Jw.PriceCurrency.JPY,jr.PriceSpecificationType.CategoryCodeChargeSpecification,jr.PriceSpecificationType.CompoundPriceSpecification,jr.PriceSpecificationType.MovieTicketTypeChargeSpecification,jr.PriceSpecificationType.PriceSpecification,jr.PriceSpecificationType.UnitPriceSpecification,ym.ProductType.EventService,ym.ProductType.Product,ls.ReservationStatusType.ReservationCancelled,ls.ReservationStatusType.ReservationConfirmed,ls.ReservationStatusType.ReservationPending,"ReservationHold",ls.ReservationStatusType.ReservationPending,"BusReservation",pm.ReservationType.EventReservation,pm.ReservationType.ReservationPackage,vm.SortType.Ascending,vm.SortType.Descending,xr.TaskStatus.Aborted,xr.TaskStatus.Executed,xr.TaskStatus.Ready,xr.TaskStatus.Running,xr.TaskStatus.Expired,fs.TransactionStatusType.Canceled,fs.TransactionStatusType.Confirmed,fs.TransactionStatusType.Expired,fs.TransactionStatusType.InProgress,Sm.TransactionType.PlaceOrder,Sm.TransactionType.ReturnOrder,hs.UnitCode.Ann,hs.UnitCode.C62,hs.UnitCode.Day,hs.UnitCode.Sec,"Deposit","Transfer","Withdraw","MemberProgram","MemberProgramTier","Enduser","POS","TVM","Member","Fan"]});var Om=o(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.RoleType=void 0;var _m;(function(t){t.OrganizationRole="OrganizationRole"})(_m||(ps.RoleType=_m={}))});var Em=o(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.RoleName=void 0;var Tm;(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"})(Tm||(vs.RoleName=Tm={}))});var gm=o(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0})});var Am=o(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0})});var wm=o(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0})});var Mm=o(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.PaymentServiceType=void 0;var Rm;(function(t){t.CreditCard="CreditCard",t.FaceToFace="FaceToFace",t.MovieTicket="MovieTicket"})(Rm||(Ss.PaymentServiceType=Rm={}))});var qm=o(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.Identifier=void 0;var Im;(function(t){t.COA="COA",t.Chevre="Chevre"})(Im||(ms.Identifier=Im={}))});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 Lm=o(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0})});var km=o(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0})});var Gm=o(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0})});var Km=o($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0})});var Hm=o(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0})});var zm=o(Vm=>{"use strict";Object.defineProperty(Vm,"__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 A_=o(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0})});var w_=o(P_=>{"use strict";Object.defineProperty(P_,"__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 L_=o(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0})});var k_=o(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0})});var G_=o(B_=>{"use strict";Object.defineProperty(B_,"__esModule",{value:!0})});var K_=o($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0})});var H_=o(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0})});var z_=o(V_=>{"use strict";Object.defineProperty(V_,"__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(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.TaskName=void 0;var CO;(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.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"})(CO||(_s.TaskName=CO={}))});var AO=o(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var wO=o(PO=>{"use strict";Object.defineProperty(PO,"__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(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.Reason=void 0;var xO;(function(t){t.Customer="Customer",t.Seller="Seller"})(xO||(Os.Reason=xO={}))});var we=o(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.ErrorCode=void 0;var DO;(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"})(DO||(Ts.ErrorCode=DO={}))});var Re=o(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.ChevreError=void 0;var Xc=class extends Error{reason;constructor(e,r){super(r),this.name="ChevreError",this.reason=e}};Es.ChevreError=Xc});var LO=o(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.AlreadyInUseError=void 0;var Xw=we(),e0=Re(),eu=class extends e0.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(Xw.ErrorCode.AlreadyInUse,s),this.entityName=e,this.fieldNames=r}};Cs.AlreadyInUseError=eu});var FO=o(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.ArgumentError=void 0;var t0=we(),r0=Re(),tu=class extends r0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Invalid or missing argument supplied: ${e}.`),super(t0.ErrorCode.Argument,n),this.argumentName=e}};gs.ArgumentError=tu});var kO=o(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.ArgumentNullError=void 0;var n0=we(),s0=Re(),ru=class extends s0.ChevreError{argumentName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Missing argument: ${e}.`),super(n0.ErrorCode.ArgumentNull,n),this.argumentName=e}};bs.ArgumentNullError=ru});var BO=o(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ForbiddenError=void 0;var i0=we(),o0=Re(),nu=class extends o0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Forbidden."),super(i0.ErrorCode.Forbidden,r)}};As.ForbiddenError=nu});var GO=o(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.GatewayTimeoutError=void 0;var a0=we(),c0=Re(),su=class extends c0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Gateway Timeout"),super(a0.ErrorCode.GatewayTimeout,r)}};Ps.GatewayTimeoutError=su});var $O=o(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.InternalError=void 0;var u0=we(),d0=Re(),iu=class extends d0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Internal server error."),super(u0.ErrorCode.Internal,r)}};ws.InternalError=iu});var KO=o(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.NotFoundError=void 0;var l0=we(),f0=Re(),ou=class extends f0.ChevreError{entityName;constructor(e,r){let n=r;(r===void 0||r.length===0)&&(n=`Not Found: ${e}.`),super(l0.ErrorCode.NotFound,n),this.entityName=e}};Rs.NotFoundError=ou});var WO=o(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.NotImplementedError=void 0;var h0=we(),y0=Re(),au=class extends y0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Method is not yet implemented."),super(h0.ErrorCode.NotImplemented,r)}};Ms.NotImplementedError=au});var HO=o(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.RateLimitExceededError=void 0;var p0=we(),v0=Re(),cu=class extends v0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Rate limit exceeded."),super(p0.ErrorCode.RateLimitExceeded,r)}};Is.RateLimitExceededError=cu});var VO=o(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.ServiceUnavailableError=void 0;var S0=we(),m0=Re(),uu=class extends m0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Service unavailable temporarily."),super(S0.ErrorCode.ServiceUnavailable,r)}};qs.ServiceUnavailableError=uu});var zO=o(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.UnauthorizedError=void 0;var _0=we(),O0=Re(),du=class extends O0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unauthorized."),super(_0.ErrorCode.Unauthorized,r)}};Ns.UnauthorizedError=du});var YO=o(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.UnknownError=void 0;var T0=we(),E0=Re(),lu=class extends E0.ChevreError{constructor(e){let r=e;(e===void 0||e.length===0)&&(r="Unknown server error."),super(T0.ErrorCode.Unknown,r)}};js.UnknownError=lu});var QO=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 C0=LO();Object.defineProperty(J,"AlreadyInUse",{enumerable:!0,get:function(){return C0.AlreadyInUseError}});var g0=FO();Object.defineProperty(J,"Argument",{enumerable:!0,get:function(){return g0.ArgumentError}});var b0=kO();Object.defineProperty(J,"ArgumentNull",{enumerable:!0,get:function(){return b0.ArgumentNullError}});var A0=Re();Object.defineProperty(J,"Chevre",{enumerable:!0,get:function(){return A0.ChevreError}});var P0=BO();Object.defineProperty(J,"Forbidden",{enumerable:!0,get:function(){return P0.ForbiddenError}});var w0=GO();Object.defineProperty(J,"GatewayTimeout",{enumerable:!0,get:function(){return w0.GatewayTimeoutError}});var R0=$O();Object.defineProperty(J,"Internal",{enumerable:!0,get:function(){return R0.InternalError}});var M0=KO();Object.defineProperty(J,"NotFound",{enumerable:!0,get:function(){return M0.NotFoundError}});var I0=WO();Object.defineProperty(J,"NotImplemented",{enumerable:!0,get:function(){return I0.NotImplementedError}});var q0=HO();Object.defineProperty(J,"RateLimitExceeded",{enumerable:!0,get:function(){return q0.RateLimitExceededError}});var N0=VO();Object.defineProperty(J,"ServiceUnavailable",{enumerable:!0,get:function(){return N0.ServiceUnavailableError}});var j0=zO();Object.defineProperty(J,"Unauthorized",{enumerable:!0,get:function(){return j0.UnauthorizedError}});var x0=YO();Object.defineProperty(J,"Unknown",{enumerable:!0,get:function(){return x0.UnknownError}})});var XO=o(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.StepIdentifier=Zt.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||(Zt.RecipeCategory=ZO={}));var JO;(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"})(JO||(Zt.StepIdentifier=JO={}))});var pT=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=vy();O.cognito=my();var U0=Oy(),D0=Ey(),L0=gy(),F0=Py(),k0=My(),B0=qy(),G0=jy(),$0=Uy(),K0=Ly(),W0=ky(),H0=Gy(),V0=Ky(),z0=Hy(),Y0=zy(),Q0=Qy(),Z0=Jy(),J0=ep(),X0=rp(),eR=sp(),tR=op(),rR=cp(),nR=dp(),sR=fp(),iR=yp(),oR=Sp(),aR=_p(),cR=Tp(),uR=wp(),dR=Mp(),lR=qp(),fR=jp(),hR=Up(),yR=Lp(),pR=kp(),vR=Gp(),SR=Rc();Object.defineProperty(O,"CertificationStatusEnumeration",{enumerable:!0,get:function(){return SR.CertificationStatusEnumeration}});var mR=Wp(),_R=Vp(),OR=Yp(),TR=Zp(),ER=Xp(),CR=tv(),gR=sv(),bR=ov(),AR=cv(),PR=Mc(),wR=lv(),RR=Ev(),MR=gv();O.entryPoint=MR;var IR=Av();O.eventSeries=wv();var qR=Ic(),NR=qc(),jR=qv(),xR=jv(),UR=Uv(),DR=Lv(),LR=kv(),FR=Nc(),kR=Wv(),BR=Vv();O.offer=Yv();O.aggregateOffer=Zv();O.eventOffer=Xv();var GR=tS(),$R=nS(),KR=jc();O.order=xc();var WR=Uc(),HR=uS(),VR=Dc(),zR=fS(),YR=yS(),QR=vS(),ZR=Lc(),JR=_S(),XR=TS(),eM=Fc(),tM=gS(),rM=AS(),nM=wS(),sM=MS(),iM=qS(),oM=kc(),aM=xS();O.potentialAction=aM;var cM=Bc(),uM=LS(),dM=Gc(),lM=$c(),fM=GS();O.project=KS();var hM=HS(),yM=zS(),pM=QS(),vM=JS(),SM=em(),mM=rm(),_M=Kc(),OM=Wc(),TM=mm();Object.defineProperty(O,"RESERVED_CODE_VALUES",{enumerable:!0,get:function(){return TM.RESERVED_CODE_VALUES}});var EM=Om(),CM=Em(),gM=gm(),bM=Am(),AM=wm(),PM=Mm(),wM=qm(),RM=jm(),MM=Vc(),IM=Um(),qM=Zc();O.unitPriceOffer=Lm();var NM=km(),jM=Gm(),xM=Km(),UM=Hm(),DM=zm(),LM=Qm(),FM=Jm(),kM=e_(),BM=r_(),GM=s_(),$M=o_(),KM=c_(),WM=d_(),HM=f_(),VM=y_(),zM=v_(),YM=m_(),QM=O_(),ZM=E_(),JM=g_(),XM=A_(),eI=w_(),tI=M_(),rI=q_(),nI=j_(),sI=U_(),iI=L_(),oI=k_(),aI=G_(),cI=K_(),uI=H_(),dI=z_(),lI=Q_(),fI=J_(),hI=eO(),yI=rO(),pI=sO(),vI=oO(),SI=cO(),mI=dO(),_I=fO(),OI=yO(),TI=vO(),EI=mO(),CI=OO(),gI=EO(),bI=gO(),AI=zc(),PI=AO(),wI=wO(),RI=MO(),MI=qO(),II=Hc(),qI=Yc(),NI=jO(),jI=UO(),xI=Qc(),UI=we();O.errors=QO();O.recipe=XO();O.errorCode=UI.ErrorCode;O.actionStatusType=dR.ActionStatusType;O.actionType=lR.ActionType;var eT;(function(t){let e;(function(y){y.coaOffer=U0,y.pay=D0})(e=t.accept||(t.accept={}));let r;(function(y){let S;(function(g){g.any=k0})(S=y.paymentMethod||(y.paymentMethod={}));let m;(function(g){g.eventService=F0})(m=y.offer||(y.offer={})),y.invoice=L0,y.ticketedObject=B0})(r=t.authorize||(t.authorize={}));let n;(function(y){y.coaReserve=G0,y.reservation=$0})(n=t.cancel||(t.cancel={}));let s;(function(y){let S;(function(m){m.movieTicket=K0})(S=y.paymentMethod||(y.paymentMethod={})),y.thing=W0})(s=t.check||(t.check={})),t.create=V0;let i;(function(y){let S;(function(m){m.pay=z0,m.reservation=Y0})(S=y.confirm||(y.confirm={})),y.inform=Q0})(i=t.interact||(t.interact={}));let c;(function(y){y.order=J0,y.pay=X0,y.refund=eR})(c=t.trade||(t.trade={}));let d;(function(y){let S;(function(g){g.invoice=tR,g.order=rR,g.reserveTransaction=nR})(S=y.returnAction||(y.returnAction={}));let m;(function(g){let w;(function(R){R.email=sR})(w=g.message||(g.message={})),g.order=iR})(m=y.send||(y.send={}))})(d=t.transfer||(t.transfer={}));let f;(function(y){y.add=oR,y.deleteAction=aR,y.replace=cR,y.update=uR})(f=t.update||(t.update={}));let p;(function(y){let S;(function(m){m.reservation=H0})(S=y.use||(y.use={}))})(p=t.consume||(t.consume={})),t.reserve=Z0})(eT||(O.action=eT={}));O.accountTitle=fR;O.additionalProperty=hR;O.aggregation=yR;O.authorization=pR;O.categoryCode=vR;O.clientUser=mR;var tT;(function(t){let e;(function(s){s.softwareApplication=_R,s.webApplication=OR,s.webSite=TR})(e=t.certification||(t.certification={}));let r;(function(s){s.email=ER})(r=t.message||(t.message={})),t.movie=CR,t.noteDigitalDocument=gR;let n;(function(s){s.softwareApplication=bR,s.webApplication=AR})(n=t.softwareApplication||(t.softwareApplication={}))})(tT||(O.creativeWork=tT={}));O.creativeWorkType=PR.CreativeWorkType;O.customer=wR;var rT;(function(t){t.screeningEvent=IR})(rT||(O.event=rT={}));O.encodingFormat=RR;O.eventStatusType=qR.EventStatusType;O.eventType=NR.EventType;O.iam=jR;O.identityProvider=xR;O.invoice=UR;O.itemAvailability=DR.ItemAvailability;O.language=LR;O.merchantReturnPolicy=FR;O.monetaryAmount=kR;O.movieTicketType=BR;var nT;(function(t){t.event=UM,t.eventSeries=DM,t.order=kM,t.reservation=HM,t.payAction=BM,t.refundAction=WM,t.accountTitle=NM,t.categoryCode=jM,t.creativeWork=xM,t.offer=LM,t.offerCatalog=FM,t.person=GM,t.place=$M,t.product=KM,t.task=VM})(nT||(O.notification=nT={}));O.offerCatalog=GR;O.offerItemCondition=$R;O.offerType=KR.OfferType;O.orderStatus=WR.OrderStatus;O.organization=HR;O.organizationType=VR.OrganizationType;O.ownershipInfo=zR;var sT;(function(t){let e;(function(r){r.creditCard=YR,r.movieTicket=QR})(e=t.paymentCard||(t.paymentCard={}))})(sT||(O.paymentMethod=sT={}));O.paymentStatusType=ZR.PaymentStatusType;O.permit=JR;O.person=XR;O.personType=eM.PersonType;O.priceCurrency=cM.PriceCurrency;var iT;(function(t){t.entranceGate=tM,t.movieTheater=rM,t.screeningRoom=nM,t.screeningRoomSection=sM,t.seat=iM})(iT||(O.place=iT={}));O.placeType=oM.PlaceType;var oT;(function(t){t.unitPrice=uM})(oT||(O.priceSpecification=oT={}));O.priceSpecificationType=dM.PriceSpecificationType;O.programMembership=fM;O.product=lM;var aT;(function(t){t.PropertyValueType=hM.PropertyValueType,t.locationFeatureSpecification=yM})(aT||(O.propertyValue=aT={}));O.qualitativeValue=pM;O.quantitativeValue=vM;var cT;(function(t){t.accountingReport=SM})(cT||(O.report=cT={}));var uT;(function(t){t.eventReservation=mM})(uT||(O.reservation=uT={}));O.reservationStatusType=_M.ReservationStatusType;O.reservationType=OM.ReservationType;var dT;(function(t){t.RoleType=EM.RoleType,t.organizationRole=CM})(dT||(O.role=dT={}));O.schedule=gM;O.seller=bM;O.sellerReturnPolicy=AM;var lT;(function(t){t.acceptCOAOffer=zM,t.aggregateOffers=YM,t.aggregateOnSystem=QM,t.aggregateScreeningEvent=ZM,t.authorizePayment=JM,t.cancelPendingReservation=XM,t.cancelReservation=eI,t.checkMovieTicket=tI,t.checkResource=rI,t.createAccountingReport=sI,t.confirmReserveTransaction=nI,t.deleteTransaction=iI,t.handleNotification=oI,t.importEventCapacitiesFromCOA=aI,t.importEventsFromCOA=cI,t.importOffersFromCOA=uI,t.invalidatePaymentUrl=dI,t.onAssetTransactionStatusChanged=lI,t.pay=vI,t.publishPaymentUrl=SI,t.refund=mI,t.reserve=_I,t.sendEmailMessage=OI,t.syncResourcesFromCOA=TI,t.triggerWebhook=EI,t.useReservation=CI,t.voidPayment=gI,t.onAuthorizationCreated=fI,t.onEventChanged=hI,t.onResourceDeleted=yI,t.onResourceUpdated=pI})(lT||(O.task=lT={}));var fT;(function(t){t.paymentService=PM,t.webAPI=wM})(fT||(O.service=fT={}));O.serviceChannel=RM;O.sortType=MM.SortType;O.taskName=bI.TaskName;O.taskStatus=AI.TaskStatus;O.thing=IM;var hT;(function(t){t.cancelReservation=PI,t.pay=wI,t.refund=RI,t.reserve=MI})(hT||(O.assetTransaction=hT={}));var yT;(function(t){t.placeOrder=NI,t.returnOrder=jI})(yT||(O.transaction=yT={}));O.transactionType=xI.TransactionType;O.transactionStatusType=qI.TransactionStatusType;O.assetTransactionType=II.AssetTransactionType;O.unitCode=qM.UnitCode});var vT=o(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.ChevreFactory=void 0;xs.ChevreFactory=pT()});var Y=o(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.factory=void 0;var DI=vT();Object.defineProperty(Us,"factory",{enumerable:!0,get:function(){return DI.ChevreFactory}})});var mT=o((a2,ST)=>{var Jt=1e3,Xt=Jt*60,er=Xt*60,jt=er*24,LI=jt*7,FI=jt*365.25;ST.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return kI(t);if(r==="number"&&isFinite(t))return e.long?GI(t):BI(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function kI(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*FI;case"weeks":case"week":case"w":return r*LI;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 BI(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 GI(t){var e=Math.abs(t);return e>=jt?Ds(t,e,jt,"day"):e>=er?Ds(t,e,er,"hour"):e>=Xt?Ds(t,e,Xt,"minute"):e>=Jt?Ds(t,e,Jt,"second"):t+" ms"}function Ds(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}});var OT=o((c2,_T)=>{function $I(t){r.debug=r,r.default=r,r.coerce=f,r.disable=c,r.enable=s,r.enabled=d,r.humanize=mT(),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(...q){if(!R.enabled)return;let N=R,C=Number(new Date),M=C-(S||C);N.diff=M,N.prev=S,N.curr=C,S=C,q[0]=r.coerce(q[0]),typeof q[0]!="string"&&q.unshift("%O");let D=0;q[0]=q[0].replace(/%([a-zA-Z%])/g,(K,x)=>{if(K==="%%")return"%";D++;let G=r.formatters[x];if(typeof G=="function"){let W=q[D];K=G.call(N,W),q.splice(D,1),D--}return K}),r.formatArgs.call(N,q),(N.log||r.log).apply(N,q)}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:q=>{m=q}}),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 c(){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}_T.exports=$I});var tr=o((Me,Ls)=>{Me.formatArgs=WI;Me.save=HI;Me.load=VI;Me.useColors=KI;Me.storage=zI();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 KI(){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 WI(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Ls.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 HI(t){try{t?Me.storage.setItem("debug",t):Me.storage.removeItem("debug")}catch{}}function VI(){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 zI(){try{return localStorage}catch{}}Ls.exports=OT()(Me);var{formatters:YI}=Ls.exports;YI.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Fs=o(De=>{"use strict";var QI=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 ZI=QI(tr()),TT=(0,ZI.default)("cinerino-sdk:transporters"),fu=class{};De.Transporter=fu;var rr=class extends Error{code;errors;constructor(e){super(e),this.name="ChevreRequestError"}};De.RequestError=rr;var hu=class t{expectedStatusCodes;constructor(e){this.expectedStatusCodes=e}static CONFIGURE(e){return e}async fetch(e,r){let n=t.CONFIGURE(r);return TT("fetching...",e,n),fetch(e,n).then(async s=>this.wrapCallback(s))}async wrapCallback(e){let r=new rr("An unexpected error occurred");if(TT("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}};De.DefaultTransporter=hu;var yu=class{body;constructor(e){this.body=e}async fetch(e,r){return new Response(this.body,r)}};De.StubTransporter=yu});var CT=o(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var I={"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"},ET=nr.a={classes:I,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":I.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":I.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":I.INFORMATIONAL,PROCESSING:102,103:"Early Hints","103_NAME":"EARLY_HINTS","103_MESSAGE":"Used to return some response headers before final HTTP message.","103_CLASS":I.INFORMATIONAL,EARLY_HINTS:103,200:"OK","200_NAME":"OK","200_MESSAGE":"Standard response for successful HTTP requests.","200_CLASS":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.CLIENT_ERROR,PAYMENT_REQUIRED:402,403:"Forbidden","403_NAME":"FORBIDDEN","403_MESSAGE":"The request was valid, but the server is refusing action.","403_CLASS":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.CLIENT_ERROR,UNPROCESSABLE_ENTITY:422,423:"Locked","423_NAME":"LOCKED","423_MESSAGE":"The resource that is being accessed is locked.","423_CLASS":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.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":I.SERVER_ERROR,RAILGUN_ERROR:527}}},JI=nr.b=ET;nr.a=ET;nr.b=JI});var b=o(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var gT=CT();ks.default=gT.b;ks.status=gT.a});var xt=o((f2,bT)=>{"use strict";bT.exports=TypeError});var AT=o(()=>{});var kr=o((p2,HT)=>{var gu=typeof Map=="function"&&Map.prototype,pu=Object.getOwnPropertyDescriptor&&gu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gs=gu&&pu&&typeof pu.get=="function"?pu.get:null,PT=gu&&Map.prototype.forEach,bu=typeof Set=="function"&&Set.prototype,vu=Object.getOwnPropertyDescriptor&&bu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$s=bu&&vu&&typeof vu.get=="function"?vu.get:null,wT=bu&&Set.prototype.forEach,XI=typeof WeakMap=="function"&&WeakMap.prototype,Dr=XI?WeakMap.prototype.has:null,eq=typeof WeakSet=="function"&&WeakSet.prototype,Lr=eq?WeakSet.prototype.has:null,tq=typeof WeakRef=="function"&&WeakRef.prototype,RT=tq?WeakRef.prototype.deref:null,rq=Boolean.prototype.valueOf,nq=Object.prototype.toString,sq=Function.prototype.toString,iq=String.prototype.match,Au=String.prototype.slice,Ct=String.prototype.replace,oq=String.prototype.toUpperCase,MT=String.prototype.toLowerCase,FT=RegExp.prototype.test,IT=Array.prototype.concat,ut=Array.prototype.join,aq=Array.prototype.slice,qT=Math.floor,_u=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Su=Object.getOwnPropertySymbols,Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sr||!0)?Symbol.toStringTag:null,kT=Object.prototype.propertyIsEnumerable,NT=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jT(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||FT.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-qT(-t):qT(t);if(n!==t){var s=String(n),i=Au.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 Tu=AT(),xT=Tu.custom,UT=$T(xT)?xT:null,BT={__proto__:null,double:'"',single:"'"},cq={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};HT.exports=function t(e,r,n,s){var i=r||{};if(vt(i,"quoteStyle")&&!vt(BT,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 c=vt(i,"customInspect")?i.customInspect:!0;if(typeof c!="boolean"&&c!=="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 WT(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var f=String(e);return d?jT(e,f):f}if(typeof e=="bigint"){var p=String(e)+"n";return d?jT(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 Eu(e)?"[Array]":"[Object]";var S=Aq(i,n);if(typeof s>"u")s=[];else if(KT(s,e)>=0)return"[Circular]";function m(oe,se,ie){if(se&&(s=aq.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"&&!DT(e)){var g=Sq(e),w=Bs(e,m);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(w.length>0?" { "+ut.call(w,", ")+" }":"")}if($T(e)){var R=sr?Ct.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ou.call(e);return typeof e=="object"&&!sr?Ur(R):R}if(Cq(e)){for(var q="<"+MT.call(String(e.nodeName)),N=e.attributes||[],C=0;C<N.length;C++)q+=" "+N[C].name+"="+GT(uq(N[C].value),"double",i);return q+=">",e.childNodes&&e.childNodes.length&&(q+="..."),q+="</"+MT.call(String(e.nodeName))+">",q}if(Eu(e)){if(e.length===0)return"[]";var M=Bs(e,m);return S&&!bq(M)?"["+Cu(M,S)+"]":"[ "+ut.call(M,", ")+" ]"}if(lq(e)){var D=Bs(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!kT.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(IT.call("[cause]: "+m(e.cause),D),", ")+" }":D.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(D,", ")+" }"}if(typeof e=="object"&&c){if(UT&&typeof e[UT]=="function"&&Tu)return Tu(e,{depth:y-n});if(c!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(mq(e)){var k=[];return PT&&PT.call(e,function(oe,se){k.push(m(se,e,!0)+" => "+m(oe,e))}),LT("Map",Gs.call(e),k,S)}if(Tq(e)){var K=[];return wT&&wT.call(e,function(oe){K.push(m(oe,e))}),LT("Set",$s.call(e),K,S)}if(_q(e))return mu("WeakMap");if(Eq(e))return mu("WeakSet");if(Oq(e))return mu("WeakRef");if(hq(e))return Ur(m(Number(e)));if(pq(e))return Ur(m(_u.call(e)));if(yq(e))return Ur(rq.call(e));if(fq(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(!dq(e)&&!DT(e)){var x=Bs(e,m),G=NT?NT(e)===Object.prototype:e instanceof Object||e.constructor===Object,W=e instanceof Object?"":"null prototype",$=!G&&Fr&&Object(e)===e&&Fr in e?Au.call(gt(e),8,-1):W?"Object":"",Q=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Te=Q+($||W?"["+ut.call(IT.call([],$||[],W||[]),": ")+"] ":"");return x.length===0?Te+"{}":S?Te+"{"+Cu(x,S)+"}":Te+"{ "+ut.call(x,", ")+" }"}return String(e)};function GT(t,e,r){var n=r.quoteStyle||e,s=BT[n];return s+t+s}function uq(t){return Ct.call(String(t),/"/g,""")}function Ut(t){return!Fr||!(typeof t=="object"&&(Fr in t||typeof t[Fr]<"u"))}function Eu(t){return gt(t)==="[object Array]"&&Ut(t)}function dq(t){return gt(t)==="[object Date]"&&Ut(t)}function DT(t){return gt(t)==="[object RegExp]"&&Ut(t)}function lq(t){return gt(t)==="[object Error]"&&Ut(t)}function fq(t){return gt(t)==="[object String]"&&Ut(t)}function hq(t){return gt(t)==="[object Number]"&&Ut(t)}function yq(t){return gt(t)==="[object Boolean]"&&Ut(t)}function $T(t){if(sr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ou)return!1;try{return Ou.call(t),!0}catch{}return!1}function pq(t){if(!t||typeof t!="object"||!_u)return!1;try{return _u.call(t),!0}catch{}return!1}var vq=Object.prototype.hasOwnProperty||function(t){return t in this};function vt(t,e){return vq.call(t,e)}function gt(t){return nq.call(t)}function Sq(t){if(t.name)return t.name;var e=iq.call(sq.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function KT(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 mq(t){if(!Gs||!t||typeof t!="object")return!1;try{Gs.call(t);try{$s.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function _q(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 Oq(t){if(!RT||!t||typeof t!="object")return!1;try{return RT.call(t),!0}catch{}return!1}function Tq(t){if(!$s||!t||typeof t!="object")return!1;try{$s.call(t);try{Gs.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Eq(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 Cq(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function WT(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return WT(Au.call(t,0,e.maxStringLength),e)+n}var s=cq[e.quoteStyle||"single"];s.lastIndex=0;var i=Ct.call(Ct.call(t,s,"\\$1"),/[\x00-\x1f]/g,gq);return GT(i,"single",e)}function gq(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":"")+oq.call(e.toString(16))}function Ur(t){return"Object("+t+")"}function mu(t){return t+" { ? }"}function LT(t,e,r,n){var s=n?Cu(r,n):ut.call(r,", ");return t+" ("+e+") {"+s+"}"}function bq(t){for(var e=0;e<t.length;e++)if(KT(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Aq(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 Cu(t,e){if(t.length===0)return"";var r=`
|
|
3
3
|
`+e.prev+e.base;return r+ut.call(t,","+r)+`
|
|
4
|
-
`+e.prev}function Bs(t,e){var r=Eu(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 Su=="function"?Su(t):[],c;if(sr){c={};for(var d=0;d<i.length;d++)c["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&c["$"+f]instanceof Symbol||(BT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof Su=="function")for(var p=0;p<i.length;p++)GT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var QT=o((O2,YT)=>{"use strict";var Mq=kr(),Iq=xt(),Ks=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=Ks(t,e);return r&&r.value}},Nq=function(t,e,r){var n=Ks(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},jq=function(t,e){return t?!!Ks(t,e):!1},xq=function(t,e){if(t)return Ks(t,e,!0)};YT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new Iq("Side channel does not contain "+Mq(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}),Nq(e,n,s)}};return r}});var Pu=o((T2,ZT)=>{"use strict";ZT.exports=Object});var XT=o((E2,JT)=>{"use strict";JT.exports=Error});var tE=o((C2,eE)=>{"use strict";eE.exports=EvalError});var nE=o((g2,rE)=>{"use strict";rE.exports=RangeError});var iE=o((b2,sE)=>{"use strict";sE.exports=ReferenceError});var aE=o((A2,oE)=>{"use strict";oE.exports=SyntaxError});var uE=o((P2,cE)=>{"use strict";cE.exports=URIError});var lE=o((w2,dE)=>{"use strict";dE.exports=Math.abs});var hE=o((R2,fE)=>{"use strict";fE.exports=Math.floor});var pE=o((M2,yE)=>{"use strict";yE.exports=Math.max});var SE=o((I2,vE)=>{"use strict";vE.exports=Math.min});var _E=o((q2,mE)=>{"use strict";mE.exports=Math.pow});var TE=o((N2,OE)=>{"use strict";OE.exports=Math.round});var CE=o((j2,EE)=>{"use strict";EE.exports=Number.isNaN||function(e){return e!==e}});var bE=o((x2,gE)=>{"use strict";var Uq=CE();gE.exports=function(e){return Uq(e)||e===0?e:e<0?-1:1}});var PE=o((U2,AE)=>{"use strict";AE.exports=Object.getOwnPropertyDescriptor});var wu=o((D2,wE)=>{"use strict";var Ws=PE();if(Ws)try{Ws([],"length")}catch{Ws=null}wE.exports=Ws});var ME=o((L2,RE)=>{"use strict";var Hs=Object.defineProperty||!1;if(Hs)try{Hs({},"a",{value:1})}catch{Hs=!1}RE.exports=Hs});var qE=o((F2,IE)=>{"use strict";IE.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 c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[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 xE=o((k2,jE)=>{"use strict";var NE=typeof Symbol<"u"&&Symbol,Dq=qE();jE.exports=function(){return typeof NE!="function"||typeof Symbol!="function"||typeof NE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Dq()}});var Ru=o((B2,UE)=>{"use strict";UE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Mu=o((G2,DE)=>{"use strict";var Lq=Pu();DE.exports=Lq.getPrototypeOf||null});var kE=o(($2,FE)=>{"use strict";var Fq="Function.prototype.bind called on incompatible ",kq=Object.prototype.toString,Bq=Math.max,Gq="[object Function]",LE=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},$q=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},Kq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};FE.exports=function(e){var r=this;if(typeof r!="function"||kq.apply(r)!==Gq)throw new TypeError(Fq+r);for(var n=$q(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,LE(n,arguments));return Object(y)===y?y:this}return r.apply(e,LE(n,arguments))},c=Bq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(s=Function("binder","return function ("+Kq(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((K2,BE)=>{"use strict";var Wq=kE();BE.exports=Function.prototype.bind||Wq});var Vs=o((W2,GE)=>{"use strict";GE.exports=Function.prototype.call});var Iu=o((H2,$E)=>{"use strict";$E.exports=Function.prototype.apply});var WE=o((V2,KE)=>{"use strict";KE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var VE=o((z2,HE)=>{"use strict";var Hq=Br(),Vq=Iu(),zq=Vs(),Yq=WE();HE.exports=Yq||Hq.call(zq,Vq)});var qu=o((Y2,zE)=>{"use strict";var Qq=Br(),Zq=xt(),Jq=Vs(),Xq=VE();zE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new Zq("a function is required");return Xq(Qq,Jq,e)}});var eC=o((Q2,XE)=>{"use strict";var e1=qu(),YE=wu(),ZE;try{ZE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Nu=!!ZE&&YE&&YE(Object.prototype,"__proto__"),JE=Object,QE=JE.getPrototypeOf;XE.exports=Nu&&typeof Nu.get=="function"?e1([Nu.get]):typeof QE=="function"?function(e){return QE(e==null?e:JE(e))}:!1});var iC=o((Z2,sC)=>{"use strict";var tC=Ru(),rC=Mu(),nC=eC();sC.exports=tC?function(e){return tC(e)}:rC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return rC(e)}:nC?function(e){return nC(e)}:null});var aC=o((J2,oC)=>{"use strict";var t1=Function.prototype.call,r1=Object.prototype.hasOwnProperty,n1=Br();oC.exports=n1.call(t1,r1)});var Qs=o((X2,hC)=>{"use strict";var V,s1=Pu(),i1=XT(),o1=tE(),a1=nE(),c1=iE(),cr=aE(),ar=xt(),u1=uE(),d1=lE(),l1=hE(),f1=pE(),h1=SE(),y1=_E(),p1=TE(),v1=bE(),lC=Function,ju=function(t){try{return lC('"use strict"; return ('+t+").constructor;")()}catch{}},Gr=wu(),S1=ME(),xu=function(){throw new ar},m1=Gr?(function(){try{return arguments.callee,xu}catch{try{return Gr(arguments,"callee").get}catch{return xu}}})():xu,ir=xE()(),Se=iC(),_1=Mu(),O1=Ru(),fC=Iu(),$r=Vs(),or={},T1=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%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%":i1,"%eval%":eval,"%EvalError%":o1,"%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%":lC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s1,"%Object.getOwnPropertyDescriptor%":Gr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":a1,"%ReferenceError%":c1,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":ir?Symbol:V,"%SyntaxError%":cr,"%ThrowTypeError%":m1,"%TypedArray%":T1,"%TypeError%":ar,"%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%":u1,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":$r,"%Function.prototype.apply%":fC,"%Object.defineProperty%":S1,"%Object.getPrototypeOf%":_1,"%Math.abs%":d1,"%Math.floor%":l1,"%Math.max%":f1,"%Math.min%":h1,"%Math.pow%":y1,"%Math.round%":p1,"%Math.sign%":v1,"%Reflect.getPrototypeOf%":O1};if(Se)try{null.error}catch(t){cC=Se(Se(t)),Dt["%Error.prototype%"]=cC}var cC,E1=function t(e){var r;if(e==="%AsyncFunction%")r=ju("async function () {}");else if(e==="%GeneratorFunction%")r=ju("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ju("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},uC={__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(),zs=aC(),C1=Kr.call($r,Array.prototype.concat),g1=Kr.call(fC,Array.prototype.splice),dC=Kr.call($r,String.prototype.replace),Ys=Kr.call($r,String.prototype.slice),b1=Kr.call($r,RegExp.prototype.exec),A1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P1=/\\(\\)?/g,w1=function(e){var r=Ys(e,0,1),n=Ys(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 dC(e,A1,function(i,c,d,f){s[s.length]=d?dC(f,P1,"$1"):c||i}),s},R1=function(e,r){var n=e,s;if(zs(uC,n)&&(s=uC[n],n="%"+s[0]+"%"),zs(Dt,n)){var i=Dt[n];if(i===or&&(i=E1(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!")};hC.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(b1(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=w1(e),s=n.length>0?n[0]:"",i=R1("%"+s+"%",r),c=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],g1(n,C1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var m=n[y],g=Ys(m,0,1),w=Ys(m,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new cr("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,c="%"+s+"%",zs(Dt,c))d=Dt[c];else if(d!=null){if(!(m in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Gr&&y+1>=n.length){var R=Gr(d,m);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[m]}else S=zs(d,m),d=d[m];S&&!f&&(Dt[c]=d)}}return d}});var Uu=o((e3,vC)=>{"use strict";var yC=Qs(),pC=qu(),M1=pC([yC("%String.prototype.indexOf%")]);vC.exports=function(e,r){var n=yC(e,!!r);return typeof n=="function"&&M1(e,".prototype.")>-1?pC([n]):n}});var Du=o((t3,mC)=>{"use strict";var I1=Qs(),Wr=Uu(),q1=kr(),N1=xt(),SC=I1("%Map%",!0),j1=Wr("Map.prototype.get",!0),x1=Wr("Map.prototype.set",!0),U1=Wr("Map.prototype.has",!0),D1=Wr("Map.prototype.delete",!0),L1=Wr("Map.prototype.size",!0);mC.exports=!!SC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new N1("Side channel does not contain "+q1(n))},delete:function(n){if(e){var s=D1(e,n);return L1(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return j1(e,n)},has:function(n){return e?U1(e,n):!1},set:function(n,s){e||(e=new SC),x1(e,n,s)}};return r}});var OC=o((r3,_C)=>{"use strict";var F1=Qs(),Js=Uu(),k1=kr(),Zs=Du(),B1=xt(),ur=F1("%WeakMap%",!0),G1=Js("WeakMap.prototype.get",!0),$1=Js("WeakMap.prototype.set",!0),K1=Js("WeakMap.prototype.has",!0),W1=Js("WeakMap.prototype.delete",!0);_C.exports=ur?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new B1("Side channel does not contain "+k1(s))},delete:function(s){if(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return W1(e,s)}else if(Zs&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?G1(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?K1(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),$1(e,s,i)):Zs&&(r||(r=Zs()),r.set(s,i))}};return n}:Zs});var EC=o((n3,TC)=>{"use strict";var H1=xt(),V1=kr(),z1=QT(),Y1=Du(),Q1=OC(),Z1=Q1||Y1||z1;TC.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new H1("Side channel does not contain "+V1(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=Z1()),e.set(n,s)}};return r}});var Xs=o((s3,CC)=>{"use strict";var J1=String.prototype.replace,X1=/%20/g,Lu={RFC1738:"RFC1738",RFC3986:"RFC3986"};CC.exports={default:Lu.RFC3986,formatters:{RFC1738:function(t){return J1.call(t,X1,"+")},RFC3986:function(t){return String(t)}},RFC1738:Lu.RFC1738,RFC3986:Lu.RFC3986}});var Bu=o((i3,bC)=>{"use strict";var eN=Xs(),Fu=Object.prototype.hasOwnProperty,Lt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),tN=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},gC=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},rN=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Fu.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 Lt(e)&&!Lt(r)&&(s=gC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(i,c){if(Fu.call(e,c)){var d=e[c];d&&typeof d=="object"&&i&&typeof i=="object"?e[c]=t(d,i,n):e.push(i)}else e[c]=i}),e):Object.keys(r).reduce(function(i,c){var d=r[c];return Fu.call(i,c)?i[c]=t(i[c],d,n):i[c]=d,i},s)},nN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},sN=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}},ku=1024,iN=function(e,r,n,s,i){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=ku){for(var p=c.length>=ku?c.slice(f,f+ku):c,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===eN.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},oN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],c=i.obj[i.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return tN(r),e},aN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},cN=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},uN=function(e,r){return[].concat(e,r)},dN=function(e,r){if(Lt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};bC.exports={arrayToObject:gC,assign:nN,combine:uN,compact:oN,decode:sN,encode:iN,isBuffer:cN,isRegExp:aN,maybeMap:dN,merge:rN}});var IC=o((o3,MC)=>{"use strict";var PC=EC(),ei=Bu(),Hr=Xs(),lN=Object.prototype.hasOwnProperty,wC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,fN=Array.prototype.push,RC=function(t,e){fN.apply(t,lt(e)?e:[e])},hN=Date.prototype.toISOString,AC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ei.encode,encodeValuesOnly:!1,format:AC,formatter:Hr.formatters[AC],indices:!1,serializeDate:function(e){return hN.call(e)},skipNulls:!1,strictNullHandling:!1},yN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Gu={},pN=function t(e,r,n,s,i,c,d,f,p,y,S,m,g,w,R,q,N,C){for(var M=e,D=C,k=0,K=!1;(D=D.get(Gu))!==void 0&&!K;){var x=D.get(e);if(k+=1,typeof x<"u"){if(x===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get(Gu)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&<(M)&&(M=ei.maybeMap(M,function(Ue){return Ue instanceof Date?g(Ue):Ue})),M===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",w):r;M=""}if(yN(M)||ei.isBuffer(M)){if(p){var G=q?r:p(r,pe.encoder,N,"key",w);return[R(G)+"="+R(p(M,pe.encoder,N,"value",w))]}return[R(r)+"="+R(String(M))]}var W=[];if(typeof M>"u")return W;var $;if(n==="comma"&<(M))q&&p&&(M=ei.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Q=Object.keys(M);$=S?Q.sort(S):Q}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&<(M)&&M.length===1?Te+"[]":Te;if(i&<(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=PC();tt.set(Gu,C),RC(W,t(ee,it,n,s,i,c,d,f,n==="comma"&&q&<(M)?null:p,y,S,m,g,w,R,q,N,tt))}}return W},vN=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(!lN.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 c;if(e.arrayFormat in wC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=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:c,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}};MC.exports=function(t,e){var r=t,n=vN(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var c=[];if(typeof r!="object"||r===null)return"";var d=wC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=PC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||RC(c,pN(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=c.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 jC=o((a3,NC)=>{"use strict";var dr=Bu(),$u=Object.prototype.hasOwnProperty,SN=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},mN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},qC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},_N="utf8=%26%2310003%3B",ON="utf8=%E2%9C%93",TN=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,c=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===ON?p="utf-8":c[f]===_N&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[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=dr.maybeMap(qC(y.slice(m+1),r),function(q){return r.decoder(q,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=mN(w)),y.indexOf("[]=")>-1&&(w=SN(w)?[w]:w);var R=$u.call(n,g);R&&r.duplicates==="combine"?n[g]=dr.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},EN=function(t,e,r,n){for(var s=n?e:qC(e,r),i=t.length-1;i>=0;--i){var c,d=t[i];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{c=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===""?c={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=s):p!=="__proto__"&&(c[p]=s)}s=c}return s},CN=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&$u.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&&$u.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),EN(y,r,n,s)}},gN=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}};NC.exports=function(t,e){var r=gN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?TN(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),c=0;c<i.length;++c){var d=i[c],f=CN(d,n[d],r,typeof t=="string");s=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var Ku=o((c3,xC)=>{"use strict";var bN=IC(),AN=jC(),PN=Xs();xC.exports={formats:PN,parse:AN,stringify:bN}});var E=o(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Service=Ft.RESOURCE_SELECTOR_SEPARATOR=void 0;var wN=Ku(),RN=Fs();Ft.RESOURCE_SELECTOR_SEPARATOR=":";var Wu=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}${Ft.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,c=(0,wN.stringify)(n.qs,r!==void 0?r:void 0);i+=c.length>0?`?${c}`:"";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 RN.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Ft.Service=Wu});var UC=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.CategoryCodeService=void 0;var MN=b(),IN=E(),Hu=class extends IN.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[MN.status.OK]}).then(async r=>({data:await r.json()}))}};ti.CategoryCodeService=Hu});var DC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.CreativeWorkService=void 0;var qN=b(),NN=E(),Vu=class extends NN.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[qN.status.OK]}).then(async r=>({data:await r.json()}))}};ri.CreativeWorkService=Vu});var LC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.EmailMessageService=void 0;var jN=b(),xN=E(),zu=class extends xN.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[jN.status.OK]}).then(async r=>({data:await r.json()}))}};ni.EmailMessageService=zu});var kC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EventService=void 0;var St=b(),FC=Y(),UN=E(),Yu=class extends UN.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(![FC.factory.eventType.ScreeningEvent].includes(n))throw new FC.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 c=>c.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 c=>c.json())}};si.EventService=Yu});var BC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventOfferService=void 0;var DN=b(),LN=E(),FN="/eventOffers",Qu=class extends LN.Service{async findEventOffers(e){return this.fetch({uri:FN,method:"GET",qs:e,expectedStatusCodes:[DN.status.OK]}).then(async r=>r.json())}};ii.EventOfferService=Qu});var GC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EventSeriesService=void 0;var kN=b(),BN=E(),Zu=class extends BN.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[kN.status.OK]}).then(async r=>r.json())}};oi.EventSeriesService=Zu});var $C=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.NoteService=void 0;var GN=b(),$N=E(),KN="/creativeWorks/noteDigitalDocument",Ju=class extends $N.Service{async findPublicNotes(e){return this.fetch({uri:KN,method:"GET",qs:e,expectedStatusCodes:[GN.status.OK]}).then(async r=>r.json())}};ai.NoteService=Ju});var KC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PaymentProductService=void 0;var WN=b(),HN=E(),Xu=class extends HN.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:[WN.status.OK]}).then(async i=>i.json())}};ci.PaymentProductService=Xu});var WC=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PlaceService=void 0;var lr=b(),ed=Y(),VN=E(),td=class extends VN.Service{async searchMovieTheatersLegacy(e){return this.fetch({uri:`/places/${ed.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>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/${ed.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/${ed.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 c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};ui.PlaceService=td});var HC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.HasPOSService=void 0;var zN=b(),YN=Y(),QN=E(),rd=class extends QN.Service{async search(e){return this.fetch({uri:`/places/${YN.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[zN.status.OK]}).then(async r=>r.json())}};di.HasPOSService=rd});var VC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.ProductService=void 0;var nd=b(),ZN=E(),sd=class extends ZN.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:[nd.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:[nd.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[nd.status.OK]}).then(async r=>r.json())}};li.ProductService=sd});var zC=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.SeatOfferService=void 0;var JN=b(),XN=E(),ej="/seatOffers",id=class extends XN.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:ej,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[JN.status.OK]}).then(async c=>c.json())}};fi.SeatOfferService=id});var YC=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SellerService=void 0;var hi=b(),tj=E(),od=class extends tj.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[hi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[hi.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:[hi.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:[hi.status.OK]}).then(async s=>s.json())}};yi.SellerService=od});var QC=o(Le=>{"use strict";var rj=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]})),nj=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"&&rj(r,e,n[s]);return nj(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 c;c=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 ad=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return H.CategoryCode.svc===void 0&&(H.CategoryCode.svc=(await Promise.resolve().then(()=>je(UC()))).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(()=>je(DC()))).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(()=>je(LC()))).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(()=>je(kC()))).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(()=>je(BC()))).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(()=>je(GC()))).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(()=>je($C()))).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(()=>je(KC()))).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(()=>je(WC()))).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(()=>je(HC()))).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(()=>je(VC()))).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(()=>je(zC()))).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(()=>je(YC()))).SellerService),new H.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=ad});var ZC=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.OrderService=void 0;var bt=b(),sj=Y(),ij=E(),cd=class extends ij.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}/${sj.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())}};pi.OrderService=cd});var XC=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.ReservationService=void 0;var JC=b(),oj=E(),ud=class extends oj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[JC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[JC.status.OK]}).then(async n=>n.json())}};vi.ReservationService=ud});var eg=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.TokenService=void 0;var aj=E(),dd=class extends aj.Service{};Si.TokenService=dd});var tg=o(Fe=>{"use strict";var cj=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]})),uj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ld=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"&&cj(r,e,n[s]);return uj(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 fd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>ld(ZC()))).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(()=>ld(XC()))).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(()=>ld(eg()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=fd});var ng=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.SyncService=void 0;var rg=b(),dj=E(),hd=class extends dj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[rg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[rg.status.ACCEPTED]}).then(async r=>r.json())}};mi.SyncService=hd});var sg=o(ke=>{"use strict";var lj=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]})),fj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hj=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"&&lj(r,e,n[s]);return fj(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 yd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Vr.Sync.svc===void 0&&(Vr.Sync.svc=(await Promise.resolve().then(()=>hj(ng()))).SyncService),new Vr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=yd});var ig=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.CustomerService=void 0;var yj=b(),pj=E(),pd=class extends pj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[yj.status.OK]}).then(async r=>r.json())}};_i.CustomerService=pd});var og=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.EventService=void 0;var zr=b(),vj=E(),vd=class extends vj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,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())}};Oi.EventService=vd});var ag=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.EventOfferService=void 0;var Ti=b(),Sj=E(),Ei="/eventOffers",Sd=class extends Sj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ei,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ti.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ei,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ti.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Ei,method:"GET",qs:e,expectedStatusCodes:[Ti.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Ei}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Ti.status.CREATED]}).then(async n=>n.json())}};Ci.EventOfferService=Sd});var dg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.EventSeriesService=void 0;var cg=b(),mj=E(),ug="/eventSeries",md=class extends mj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:c}=r;await this.fetch({uri:ug,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:c===!0},expectedStatusCodes:[cg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:ug,method:"GET",qs:e,expectedStatusCodes:[cg.status.OK]}).then(async r=>r.json())}};gi.EventSeriesService=md});var fg=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.MeService=void 0;var lg=b(),_j=E(),_d=class extends _j.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[lg.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:[lg.status.OK]}).then(async s=>s.json())}};bi.MeService=_d});var hg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MemberService=void 0;var Oj=b(),Tj=Y(),Ej=E(),Od=class extends Ej.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${Tj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Oj.status.OK]}).then(async r=>r.json())}};Ai.MemberService=Od});var vg=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MovieService=void 0;var yg=b(),Cj=E(),pg="/movies",Td=class extends Cj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:pg,method:"PUT",body:e,expectedStatusCodes:[yg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:pg,method:"GET",qs:e,expectedStatusCodes:[yg.status.OK]}).then(async r=>r.json())}};Pi.MovieService=Td});var mg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MovieTheaterService=void 0;var Yr=b(),gj=E(),Sg="/movieTheaters",Ed="/entranceGates",Cd=class extends gj.Service{async findMovieTheaters(e){return this.fetch({uri:Sg,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:Sg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Ed,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:Ed,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:Ed,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};wi.MovieTheaterService=Cd});var _g=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.NoteService=void 0;var gd=b(),bj=E(),bd="/creativeWorks/noteDigitalDocument",Ad=class extends bj.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:bd,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:bd,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:bd,method:"GET",qs:e,expectedStatusCodes:[gd.status.OK]}).then(async r=>r.json())}};Ri.NoteService=Ad});var Og=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.NoteAboutOrderService=void 0;var Pd=b(),Aj=E(),wd="/orderNotes",Rd=class extends Aj.Service{async upsertByIdentifier(e){await this.fetch({uri:wd,method:"PUT",body:e,expectedStatusCodes:[Pd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:wd,method:"GET",qs:e,expectedStatusCodes:[Pd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${wd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[Pd.status.NO_CONTENT]})}};Mi.NoteAboutOrderService=Rd});var Tg=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.OrderService=void 0;var Qr=b(),Pj=E(),Md=class extends Pj.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 findOrderAcceptedOffers(e){return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1"},expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.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())}};Ii.OrderService=Md});var Eg=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.PaymentMethodService=void 0;var wj=b(),Rj=E(),Mj="/paymentMethods",Id=class extends Rj.Service{async findPaymentMethods(e){return this.fetch({uri:Mj,method:"GET",qs:e,expectedStatusCodes:[wj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};qi.PaymentMethodService=Id});var gg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ProductService=void 0;var qd=b(),Ij=E(),Cg="/products",qj="/productHasOfferCatalog",Nd=class extends Ij.Service{async upsertByProductId(e){await this.fetch({uri:Cg,method:"PUT",body:e,expectedStatusCodes:[qd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Cg,method:"GET",qs:e,expectedStatusCodes:[qd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:qj,method:"GET",qs:e,expectedStatusCodes:[qd.status.OK]}).then(async r=>r.json())}};Ni.ProductService=Nd});var bg=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.ReservationService=void 0;var jd=b(),Nj=E(),xd=class extends Nj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[jd.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:[jd.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:[jd.status.OK]}).then(async s=>s.json())}};ji.ReservationService=xd});var wg=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.RoomService=void 0;var Ag=b(),jj=E(),Pg="/rooms",Ud=class extends jj.Service{async findRooms(e){return this.fetch({uri:Pg,method:"GET",qs:e,expectedStatusCodes:[Ag.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:Pg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[Ag.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};xi.RoomService=Ud});var Rg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.SeatService=void 0;var Dd=b(),xj=E(),Ld="/seats",Fd=class extends xj.Service{async findSeats(e){return this.fetch({uri:Ld,method:"GET",qs:e,expectedStatusCodes:[Dd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ld,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c},expectedStatusCodes:[Dd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ld,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Dd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.SeatService=Fd});var qg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SeatSectionService=void 0;var Mg=b(),Uj=E(),Ig="/seatSections",kd=class extends Uj.Service{async findSeatSections(e){return this.fetch({uri:Ig,method:"GET",qs:e,expectedStatusCodes:[Mg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Ig,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[Mg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Di.SeatSectionService=kd});var Ng=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.SellerService=void 0;var Dj=b(),Lj=E(),Bd=class extends Lj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[Dj.status.OK]}).then(async r=>r.json())}};Li.SellerService=Bd});var xg=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.OfferService=void 0;var jg=b(),Fj=E(),Gd=class extends Fj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[jg.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:[jg.status.NO_CONTENT]})}};Fi.OfferService=Gd});var Ug=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferCatalogService=void 0;var kj=b(),Bj=E(),$d=class extends Bj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:c},expectedStatusCodes:[kj.status.NO_CONTENT]})}};ki.OfferCatalogService=$d});var Lg=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.OfferCatalogItemService=void 0;var Dg=b(),Gj=E(),Kd=class extends Gj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Dg.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:[Dg.status.NO_CONTENT]})}};Bi.OfferCatalogItemService=Kd});var Fg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.CancelReservationAssetTransactionService=void 0;var $j=b(),Kj=E(),Wd=class extends Kj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[$j.status.NO_CONTENT]})}};Gi.CancelReservationAssetTransactionService=Wd});var kg=o(Be=>{"use strict";var Wj=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]})),Hj=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"&&Wj(r,e,n[s]);return Hj(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var j;(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 c;c=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 q;q=t.Seat||(t.Seat={});let N;N=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let D;D=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(x){let G;G=x.CancelReservation||(x.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(j||(Be.service=j={}));var Hd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ce(ig()))).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(()=>ce(og()))).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(()=>ce(ag()))).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(()=>ce(dg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ce(fg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ce(hg()))).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(()=>ce(vg()))).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(()=>ce(mg()))).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(()=>ce(_g()))).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(()=>ce(Og()))).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(()=>ce(Tg()))).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(()=>ce(Eg()))).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(()=>ce(gg()))).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(()=>ce(bg()))).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(()=>ce(wg()))).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(()=>ce(Rg()))).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(()=>ce(qg()))).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(()=>ce(Ng()))).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(()=>ce(xg()))).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(()=>ce(Ug()))).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(()=>ce(Lg()))).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(()=>ce(Fg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Hd});var Bg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.AccountingReportService=void 0;var Vj=b(),zj=E(),Vd=class extends zj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Vj.status.OK]}).then(async r=>r.json())}};$i.AccountingReportService=Vd});var Gg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.AccountTitleService=void 0;var Ge=b(),Yj=Y(),Qj=E(),zd=class extends Qj.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 Yj.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]})}};Ki.AccountTitleService=zd});var $g=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.ActionService=void 0;var Yd=b(),Zj=E(),Qd=class extends Zj.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Yd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Yd.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:[Yd.status.OK]}).then(async r=>r.json())}};Wi.ActionService=Qd});var Kg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AdditionalPropertyService=void 0;var Zr=b(),Jj=E(),Zd=class extends Jj.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]})}};Hi.AdditionalPropertyService=Zd});var Hg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AggregateOfferService=void 0;var Wg=b(),Xj=E(),Jd=class extends Xj.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[Wg.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Wg.status.NO_CONTENT]})}};Vi.AggregateOfferService=Jd});var Vg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AggregateReservationService=void 0;var ex=b(),tx=E(),Xd=class extends tx.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[ex.status.OK]}).then(async r=>r.json())}};zi.AggregateReservationService=Xd});var zg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregationService=void 0;var rx=b(),nx=E(),el=class extends nx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[rx.status.OK]}).then(async r=>r.json())}};Yi.AggregationService=el});var Yg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AuthorizationService=void 0;var sx=b(),ix=E(),tl=class extends ix.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[sx.status.OK]}).then(async r=>r.json())}};Qi.AuthorizationService=tl});var Qg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.CreativeWorkService=void 0;var ox=b(),ax=E(),rl=class extends ax.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[ox.status.NO_CONTENT]})}};Zi.CreativeWorkService=rl});var Zg=o(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.CategoryCodeService=void 0;var Ji=b(),cx=E(),Xi="/categoryCodes",nl=class extends cx.Service{async createCategoryCode(e){return this.fetch({uri:Xi,method:"POST",body:e,expectedStatusCodes:[Ji.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:Xi,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Ji.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${Xi}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Ji.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${Xi}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ji.status.NO_CONTENT]})}};eo.CategoryCodeService=nl});var Jg=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CustomerService=void 0;var sl=b(),ux=E(),il=class extends ux.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[sl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[sl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[sl.status.NO_CONTENT]})}};to.CustomerService=il});var Xg=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerTypeService=void 0;var dx=b(),lx=E(),ol=class extends lx.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[dx.status.OK]}).then(async r=>r.json())}};ro.CustomerTypeService=ol});var eb=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EmailMessageService=void 0;var no=b(),fx=E(),al=class extends fx.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[no.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[no.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[no.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[no.status.NO_CONTENT]})}};so.EmailMessageService=al});var rb=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EventService=void 0;var Jr=b(),tb=Y(),hx=E(),cl=class extends hx.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:tb.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Jr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Jr.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:[Jr.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:tb.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Jr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Jr.status.NO_CONTENT]})}};io.EventService=cl});var ib=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var nb=b(),sb=Y(),yx=E(),ul=class extends yx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${sb.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[nb.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${sb.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nb.status.NO_CONTENT]})}};oo.EventSeriesService=ul});var ob=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var px=b(),vx=E(),dl=class extends vx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[px.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=dl});var ab=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var At=b(),Sx=E(),ll=class extends Sx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[At.status.CREATED,At.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[At.status.OK]}).then(async e=>e.json())}};co.IAMService=ll});var cb=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=b(),mx=E(),fl=class extends mx.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[uo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[uo.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).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=fl});var ub=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=b(),_x=E(),hl=class extends _x.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=hl});var db=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var Xr=b(),Ox=E(),yl=class extends Ox.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Xr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Xr.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:[Xr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xr.status.NO_CONTENT]})}};yo.IssuerService=yl});var fb=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var lb=b(),Tx=E(),pl=class extends Tx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[lb.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:[lb.status.OK]}).then(async r=>r.json())}};po.MeService=pl});var hb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var Pt=b(),wt=Y(),Ex=E(),vl=class extends Ex.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.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:[Pt.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.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:[Pt.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}};vo.MemberService=vl});var yb=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberProgramService=void 0;var en=b(),Cx=E(),Sl=class extends Cx.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[en.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:[en.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:[en.status.NO_CONTENT]})}};So.MemberProgramService=Sl});var pb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MerchantReturnPolicyService=void 0;var tn=b(),gx=E(),ml=class extends gx.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[tn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tn.status.NO_CONTENT]})}};mo.MerchantReturnPolicyService=ml});var vb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MessageService=void 0;var bx=b(),Ax=E(),_l=class extends Ax.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[bx.status.OK]}).then(async r=>r.json())}};_o.MessageService=_l});var Sb=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MovieTicketTypeService=void 0;var Oo=b(),Px=E(),To="/movieTicketTypes",Ol=class extends Px.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=Ol});var mb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var Co=b(),wx=E(),Tl=class extends wx.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=Tl});var _b=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OwnershipInfoService=void 0;var Rx=b(),Mx=E(),El=class extends Mx.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[Rx.status.OK]}).then(async r=>({data:await r.json()}))}};bo.OwnershipInfoService=El});var Ob=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentProductService=void 0;var fr=b(),Ix=E(),Cl=class extends Ix.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())}};Ao.PaymentProductService=Cl});var Tb=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Po=b(),qx=E(),gl=class extends qx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Po.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Po.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:[Po.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Po.status.NO_CONTENT]})}};wo.PaymentServiceChannelService=gl});var Cb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var Eb=b(),Nx=E(),bl=class extends Nx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Eb.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:[Eb.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=bl});var bb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var gb=b(),jx=E(),Al=class extends jx.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[gb.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:[gb.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=Al});var Pb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var Ab=b(),xx=E(),Pl=class extends xx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[Ab.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:[Ab.status.OK],qs:{iss:n}}).then(async s=>s.json())}};Io.PersonService=Pl});var wb=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var rn=b(),nn=Y(),Ux=E(),wl=class extends Ux.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${nn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[rn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[rn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}};qo.PlaceService=wl});var Rb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.HasPOSService=void 0;var No=b(),jo=Y(),Dx=E(),Rl=class extends Dx.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=Rl});var Mb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),Lx=E(),Ml=class extends Lx.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=Ml});var Ib=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProductService=void 0;var sn=b(),Fx=E(),on="/products",Il=class extends Fx.Service{async createProduct(e){return this.fetch({uri:on,method:"POST",body:e,expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:on,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${on}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[sn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${on}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[sn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${on}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[sn.status.NO_CONTENT]})}};Lo.ProductService=Il});var qb=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Fo=b(),kx=E(),ql=class extends kx.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=ql});var Nb=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ProjectMakesOfferService=void 0;var Bo=b(),Bx=E(),Nl=class extends Bx.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]})}};Go.ProjectMakesOfferService=Nl});var jb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ReservationService=void 0;var Gx=b(),$x=E(),jl=class extends $x.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Gx.status.NO_CONTENT]})}};$o.ReservationService=jl});var xb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var xl=b(),Kx=E(),Ul=class extends Kx.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[xl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[xl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[xl.status.NO_CONTENT]})}};Ko.OfferService=Ul});var Ub=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogService=void 0;var Wo=b(),Wx=E(),Dl=class extends Wx.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=Dl});var Db=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var Ll=b(),Hx=E(),Fl=class extends Hx.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ll.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:[Ll.status.OK]}).then(async s=>s.json())}};Vo.OfferCatalogItemService=Fl});var Lb=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),Vx=E(),kl=class extends Vx.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=kl});var Fb=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),zx=E(),Bl=class extends zx.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=Bl});var kb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Gl=b(),Yx=E(),$l=class extends Yx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Gl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=$l});var Bb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var an=b(),Qx=E(),Kl=class extends Qx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[an.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[an.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:[an.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:[an.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[an.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=Kl});var Gb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TaskService=void 0;var Wl=b(),Zx=E(),Hl=class extends Zx.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Wl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Wl.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Wl.status.OK]}).then(async r=>r.json())}};Xo.TaskService=Hl});var $b=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TicketService=void 0;var Jx=b(),Xx=E(),Vl=class extends Xx.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[Jx.status.OK]}).then(async r=>r.json())}};ea.TicketService=Vl});var Kb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.AssetTransactionService=void 0;var eU=b(),tU=E(),zl=class extends tU.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[eU.status.OK]}).then(async r=>({data:await r.json()}))}};ta.AssetTransactionService=zl});var Wb=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PayAssetTransactionService=void 0;var ra=b(),hr=Y(),rU=E(),Yl=class extends rU.Service{async check(e){return this.fetch({uri:`/assetTransactions/${hr.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/${hr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${hr.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/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ra.status.OK]}).then(async r=>r.json())}};na.PayAssetTransactionService=Yl});var Hb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.ReserveAssetTransactionService=void 0;var sa=b(),nU=E(),Ql=class extends nU.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=Ql});var Vb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var sU=E(),Zl=class extends sU.Service{};oa.TokenService=Zl});var Yb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var zb=b(),iU=Y(),oU=E(),Jl=class extends oU.Service{typeOf=iU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[zb.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:[zb.status.OK]}).then(async s=>s.json())}};aa.PlaceOrderTransactionService=Jl});var Qb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.ReturnOrderTransactionService=void 0;var aU=b(),cU=Y(),uU=E(),Xl=class extends uU.Service{typeOf=cU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[aU.status.OK]}).then(async r=>({data:await r.json()}))}};ca.ReturnOrderTransactionService=Xl});var Zb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.TransactionNumberService=void 0;var dU=b(),lU=E(),ef=class extends lU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[dU.status.CREATED]}).then(async e=>e.json())}};ua.TransactionNumberService=ef});var Jb=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.UserPoolService=void 0;var tf=b(),fU=E(),rf=class extends fU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[tf.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[tf.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:[tf.status.OK]}).then(async r=>r.json())}};da.UserPoolService=rf});var Xb=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.WebSiteService=void 0;var la=b(),hU=E(),nf=class extends hU.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=nf});var eA=o($e=>{"use strict";var yU=$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]})),pU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=$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"&&yU(r,e,n[s]);return pU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreConsole=$e.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 c;c=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 q;q=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let N;N=t.IAM||(t.IAM={});let C;C=t.Identity||(t.Identity={});let M;M=t.IdentityProvider||(t.IdentityProvider={});let D;D=t.Issuer||(t.Issuer={});let k;k=t.Me||(t.Me={});let K;K=t.Member||(t.Member={});let x;x=t.MemberProgram||(t.MemberProgram={});let G;G=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let W;W=t.Message||(t.Message={});let $;$=t.MovieTicketType||(t.MovieTicketType={});let Q;Q=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(U){let gr;gr=U.HasPOS||(U.HasPOS={})})(tt=t.place||(t.place={}));let Ue;Ue=t.PriceSpecification||(t.PriceSpecification={});let a;a=t.Product||(t.Product={});let u;u=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 A;A=t.OfferCatalogItem||(t.OfferCatalogItem={});let P;P=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 Ae;Ae=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let It;(function(U){let gr;gr=U.Pay||(U.Pay={});let En;En=U.Reserve||(U.Reserve={})})(It=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Pe;(function(U){let gr;gr=U.PlaceOrder||(U.PlaceOrder={});let En;En=U.ReturnOrder||(U.ReturnOrder={})})(Pe=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let Cr;Cr=t.UserPool||(t.UserPool={});let WP;WP=t.WebSite||(t.WebSite={})})(_||($e.service=_={}));var sf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Bg()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(Gg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F($g()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Kg()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Hg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Vg()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(zg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Yg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(Qg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(Zg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(Jg()))).CustomerService),new _.Customer.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerTypeInstance(e){return _.CustomerType.svc===void 0&&(_.CustomerType.svc=(await Promise.resolve().then(()=>F(Xg()))).CustomerTypeService),new _.CustomerType.svc({...this.options,...e,retryableStatusCodes:[]})}async createEmailMessageInstance(e){return _.EmailMessage.svc===void 0&&(_.EmailMessage.svc=(await Promise.resolve().then(()=>F(eb()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(rb()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(ib()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(ob()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(ab()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(cb()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(ub()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(db()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(fb()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(hb()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(yb()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(pb()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(vb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(Sb()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(mb()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(_b()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(Ob()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(Tb()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(Cb()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(bb()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(Pb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(wb()))).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(Rb()))).HasPOSService),new _.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return _.PriceSpecification.svc===void 0&&(_.PriceSpecification.svc=(await Promise.resolve().then(()=>F(Mb()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(Ib()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(qb()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Nb()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(jb()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(xb()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(Ub()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(Db()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Lb()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(Fb()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(kb()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Bb()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(Gb()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F($b()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Kb()))).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(Wb()))).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(Hb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F(Vb()))).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(Yb()))).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(Qb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Zb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(Jb()))).UserPoolService),new _.UserPool.svc({...this.options,...e,retryableStatusCodes:[]})}async createWebSiteInstance(e){return _.WebSite.svc===void 0&&(_.WebSite.svc=(await Promise.resolve().then(()=>F(Xb()))).WebSiteService),new _.WebSite.svc({...this.options,...e,retryableStatusCodes:[]})}};$e.ChevreConsole=sf});var tA=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PaymentService=void 0;var me=b(),ve=Y(),vU=E(),SU=["awashimakisen-production","awashimakisen-test"],of=class extends vU.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:c,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:c,...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:c,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(!SU.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:c,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 N=>N.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:c,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:c,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:c,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,...c!=null?{creditCard:c}: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 c=>c.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 c=>c.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 c=>c.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=of});var rA=o(Ke=>{"use strict";var mU=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]})),_U=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),OU=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"&&mU(r,e,n[s]);return _U(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var cn;(function(t){let e;e=t.Payment||(t.Payment={})})(cn||(Ke.service=cn={}));var af=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return cn.Payment.svc===void 0&&(cn.Payment.svc=(await Promise.resolve().then(()=>OU(tA()))).PaymentService),new cn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=af});var sA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.OfferService=void 0;var cf=b(),nA=Y(),TU=E(),uf=class extends TU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${nA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[cf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${nA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[cf.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:[cf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};ya.OfferService=uf});var iA=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PlaceOrderTransactionService=void 0;var un=b(),EU=Y(),CU=E(),df=class extends CU.Service{typeOf=EU.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[un.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[un.status.NO_CONTENT],body:e.agent})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[un.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:[un.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:[un.status.NO_CONTENT]})}};pa.PlaceOrderTransactionService=df});var oA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var dn=b(),gU=Y(),bU=E(),lf=class extends bU.Service{typeOf=gU.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[dn.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:[dn.status.NO_CONTENT,dn.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[dn.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:[dn.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=lf});var aA=o(We=>{"use strict";var AU=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]})),PU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ff=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"&&AU(r,e,n[s]);return PU(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 hf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>ff(sA()))).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(()=>ff(iA()))).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(()=>ff(oA()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=hf});var cA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var ln=b(),fn=Y(),wU=E(),yf=class extends wU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${fn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[ln.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Sa.OfferService=yf});var uA=o(He=>{"use strict";var RU=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]})),MU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),IU=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"&&RU(r,e,n[s]);return MU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxc=He.service=void 0;var hn;(function(t){let e;e=t.Offer||(t.Offer={})})(hn||(He.service=hn={}));var pf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return hn.Offer.svc===void 0&&(hn.Offer.svc=(await Promise.resolve().then(()=>IU(cA()))).OfferService),new hn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=pf});var dA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),qU=E(),vf=class extends qU.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=vf});var lA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),NU=E(),Sf=class extends NU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Oa.status.OK]}).then(async e=>({data:await e.json()}))}};Ta.EmailMessageService=Sf});var fA=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EventService=void 0;var Ie=b(),yr=Y(),jU=E(),mf=class extends jU.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 c=>{let d=await c.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 c=>c.json())}};Ea.EventService=mf});var hA=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.PlaceService=void 0;var Ca=b(),xU=Y(),UU=E(),_f=class extends UU.Service{constructor(e){super({...e,retryableStatusCodes:[Ca.status.BAD_GATEWAY,Ca.status.FORBIDDEN,Ca.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${xU.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ca.status.OK]}).then(async r=>({data:await r.json()}))}};ga.PlaceService=_f});var yA=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.HasPOSService=void 0;var ba=b(),DU=Y(),LU=E(),Of=class extends LU.Service{constructor(e){super({...e,retryableStatusCodes:[ba.status.BAD_GATEWAY,ba.status.FORBIDDEN,ba.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${DU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ba.status.OK]}).then(async r=>r.json())}};Aa.HasPOSService=Of});var pA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.SellerService=void 0;var kt=b(),FU=E(),Tf=class extends FU.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()}))}};Pa.SellerService=Tf});var SA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.service=void 0;var kU=dA(),BU=lA(),GU=fA(),$U=hA(),KU=yA(),WU=pA(),vA;(function(t){class e extends kU.CategoryCodeService{}t.CategoryCode=e;class r extends BU.EmailMessageService{}t.EmailMessage=r;class n extends GU.EventService{}t.Event=n;class s extends $U.PlaceService{}t.Place=s;let i;(function(d){class f extends KU.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class c extends WU.SellerService{}t.Seller=c})(vA||(wa.service=vA={}))});var mA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CreativeWorkService=void 0;var HU=te(),VU=E(),Ef=class extends VU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,HU.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};Ra.CreativeWorkService=Ef});var _A=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CustomerService=void 0;var zU=te(),YU=E(),Cf=class extends YU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,zU.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};Ma.CustomerService=Cf});var OA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventService=void 0;var pr=Y(),Ia=te(),QU=E(),gf=class extends QU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c}=this.options;return(await(await(0,Ia.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).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,c=await(0,Ia.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 c.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}})}};qa.EventService=gf});var TA=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventOfferService=void 0;var ZU=te(),JU=E(),bf=class extends JU.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,ZU.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};Na.EventOfferService=bf});var EA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventSeriesService=void 0;var XU=te(),eD=E(),Af=class extends eD.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,XU.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};ja.EventSeriesService=Af});var gA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MeService=void 0;var CA=te(),tD=E(),Pf=class extends tD.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,CA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,CA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};xa.MeService=Pf});var PA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.MovieTheaterService=void 0;var Ua=Y(),bA=te(),rD=E(),AA=20,wf=class extends rD.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,bA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Ua.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Ua.factory.errors.Argument("page","must be number");if(d<1||d>AA)throw new Ua.factory.errors.Argument("limit",`must be >=1 and <=${AA}`);if(f<1)throw new Ua.factory.errors.Argument("page","must be >=1");return(await c.createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,bA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEntranceGates(e)}};Da.MovieTheaterService=wf});var wA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.NoteAboutOrderService=void 0;var Rf=te(),nD=E(),Mf=class extends nD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Rf.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,Rf.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:c,seller:d}=this.options;await(await(await(0,Rf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};La.NoteAboutOrderService=Mf});var MA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferService=void 0;var mt=Y(),RA=te(),sD=E(),If=class extends sD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,RA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(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");return(await c.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findUnitPriceOffers({id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},limit:Math.min(e.limit,100),page:Math.max(e.page,1)})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,RA.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 c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};Fa.OfferService=If});var IA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogService=void 0;var yn=Y(),iD=te(),oD=E(),qf=class extends oD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,iD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==yn.factory.product.ProductType.EventService&&y!==yn.factory.product.ProductType.Product)throw new yn.factory.errors.Argument("itemOffered.typeOf",`must be ${yn.factory.product.ProductType.EventService} or ${yn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogService=qf});var NA=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OfferCatalogItemService=void 0;var qA=te(),aD=E(),Nf=class extends aD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,qA.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:c}=this.options;await(await(await(0,qA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ba.OfferCatalogItemService=Nf});var jA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.OrderService=void 0;var Rt=Y(),pn=te(),cD=E(),Ga=20,jf=class extends cD.Service{async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,pn.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>Ga)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${Ga}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,pn.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>Ga)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${Ga}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,pn.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:c}=this.options;return(await(await(0,pn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof c?.id=="string"?c.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,pn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};$a.OrderService=jf});var xA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.PaymentMethodService=void 0;var uD=te(),dD=E(),xf=class extends dD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,uD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ka.PaymentMethodService=xf});var UA=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ProductService=void 0;var vn=Y(),lD=te(),fD=E(),Uf=class extends fD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,lD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==vn.factory.product.ProductType.EventService&&f!==vn.factory.product.ProductType.Product)throw new vn.factory.errors.Argument("typeOf",`must be ${vn.factory.product.ProductType.EventService} or ${vn.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Wa.ProductService=Uf});var LA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.ReservationService=void 0;var Sn=Y(),Ha=te(),hD=E(),DA=20,Df=class extends hD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,Ha.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Sn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Sn.factory.errors.Argument("page","must be number");if(d<1||d>DA)throw new Sn.factory.errors.Argument("limit",`must be >=1 and <=${DA}`);if(f<1)throw new Sn.factory.errors.Argument("page","must be >=1");return await(await c.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:c,project:d,seller:f}=this.options,p=await(0,Ha.loadChevreAdmin)({auth:i,endpoint:c}),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,Ha.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 Sn.factory.errors.ArgumentNull("seller.id");let c=await(0,Ha.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await c.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})}};Va.ReservationService=Df});var FA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.SellerService=void 0;var yD=te(),pD=E(),Lf=class extends pD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,yD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};za.SellerService=Lf});var kA=o(Ve=>{"use strict";var vD=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]})),SD=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"&&vD(r,e,n[s]);return SD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var B;(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 c;c=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let m;m=t.Order||(t.Order={});let g;g=t.PaymentMethod||(t.PaymentMethod={});let w;w=t.Product||(t.Product={});let R;R=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(Ve.service=B={}));var qe=[],Ff=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 B.CreativeWork.svc===void 0&&(B.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(mA()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qe})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(_A()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(OA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(TA()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(EA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:qe})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(gA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(PA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:qe})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(wA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(MA()))).OfferService),new B.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return B.OfferCatalog.svc===void 0&&(B.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(IA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(NA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:qe})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(jA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:qe})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(xA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:qe})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce(UA()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:qe})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce(LA()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:qe})}async createSellerInstance(e){return B.Seller.svc===void 0&&(B.Seller.svc=(await Promise.resolve().then(()=>Ce(FA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};Ve.CloudAdmin=Ff});var BA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.OrderService=void 0;var Bt=te(),mD=E(),kf=class extends mD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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})}};Ya.OrderService=kf});var GA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.DeliveryService=void 0;var _D=te(),OD=E(),Bf=class extends OD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,_D.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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})}};Qa.DeliveryService=Bf});var KA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.ReservationService=void 0;var $A=te(),TD=E(),Gf=class extends TD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,$A.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,$A.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Za.ReservationService=Gf});var WA=o(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.TokenService=void 0;var ED=E(),$f=class extends ED.Service{};Ja.TokenService=$f});var HA=o(ze=>{"use strict";var CD=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]})),gD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xa=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"&&CD(r,e,n[s]);return gD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var ec=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||(ze.service=Ne={}));var tc=[ec.status.BAD_GATEWAY,ec.status.SERVICE_UNAVAILABLE,ec.status.FORBIDDEN,ec.status.UNAUTHORIZED],Kf=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(()=>Xa(BA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:tc})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>Xa(GA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:tc})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>Xa(KA()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:tc})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>Xa(WA()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:tc})}};ze.CloudAsset=Kf});var VA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.CreativeWorkService=void 0;var bD=b(),AD=E(),Wf=class extends AD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[bD.status.OK]}).then(async r=>r.json())}};rc.CreativeWorkService=Wf});var zA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.PaymentProductService=void 0;var PD=b(),wD=E(),Hf=class extends wD.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:[PD.status.OK]}).then(async i=>i.json())}};nc.PaymentProductService=Hf});var YA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.ProductService=void 0;var Vf=b(),RD=E(),zf=class extends RD.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:[Vf.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:[Vf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async c=>c.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:[Vf.status.OK]}).then(async i=>i.json())}};sc.ProductService=zf});var QA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventOfferService=void 0;var MD=b(),ID=E(),qD="/eventOffers",Yf=class extends ID.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c}=e;return this.fetch({uri:qD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c},expectedStatusCodes:[MD.status.OK]}).then(async d=>d.json())}};ic.EventOfferService=Yf});var ZA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PlaceService=void 0;var Qf=b(),ND=Y(),jD=E(),Zf=class extends jD.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${ND.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Qf.status.OK]}).then(async r=>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:[Qf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[Qf.status.OK]}).then(async f=>f.json())}};oc.PlaceService=Zf});var JA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.SeatOfferService=void 0;var xD=b(),UD=E(),DD="/seatOffers",Jf=class extends UD.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:DD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[xD.status.OK]}).then(async c=>c.json())}};ac.SeatOfferService=Jf});var XA=o(Ye=>{"use strict";var LD=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]})),FD=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"&&LD(r,e,n[s]);return FD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var Xf=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 c;c=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[Xf.status.BAD_GATEWAY,Xf.status.FORBIDDEN,Xf.status.UNAUTHORIZED],eh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(VA()))).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(zA()))).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(YA()))).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(QA()))).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(ZA()))).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(JA()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=eh});var rP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PaymentService=void 0;var le=b(),ge=Y(),be=te(),kD=E(),eP=1e3,BD=5e3;async function tP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var th=class extends kD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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,c=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:c});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:c}=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:c})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,c=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:c});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:c,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,m=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,w=setTimeout(()=>{g=!0},i),R,q=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(N){q=N}await tP(BD),console.log("retrying issueTicketThroughMovieTicket...",q?.name,g)}if(typeof R?.ticketToken=="string")return R;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>eP?r.intervalAfterIssueTicketInMS:eP,f=!1,p=n.paymentMethodId;if(i?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await tP(d),y}};cc.PaymentService=th});var nP=o(Qe=>{"use strict";var GD=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]})),$D=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),KD=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"&&GD(r,e,n[s]);return $D(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var uc=b(),mn;(function(t){let e;e=t.Payment||(t.Payment={})})(mn||(Qe.service=mn={}));var WD=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],rh=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 mn.Payment.svc===void 0&&(mn.Payment.svc=(await Promise.resolve().then(()=>KD(rP()))).PaymentService),new mn.Payment.svc({...this.options,...e,retryableStatusCodes:WD})}};Qe.CloudPay=rh});var aP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.authorizeOfferAsync=VD;dc.voidAuthorizeOfferAsync=zD;var re=Y(),sP=2e4,iP=1e3;async function oP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function HD(t){let e;switch(t.reason){case re.factory.errorCode.Argument:e=new re.factory.errors.Argument("",t.message);break;case re.factory.errorCode.ArgumentNull:e=new re.factory.errors.ArgumentNull("",t.message);break;case re.factory.errorCode.Unauthorized:e=new re.factory.errors.Unauthorized(t.message);break;case re.factory.errorCode.Forbidden:e=new re.factory.errors.Forbidden(t.message);break;case re.factory.errorCode.NotFound:e=new re.factory.errors.NotFound("",t.message);break;case re.factory.errorCode.AlreadyInUse:e=new re.factory.errors.AlreadyInUse("",[],t.message);break;case re.factory.errorCode.RateLimitExceeded:e=new re.factory.errors.RateLimitExceeded(t.message);break;case re.factory.errorCode.GatewayTimeout:e=new re.factory.errors.GatewayTimeout(t.message);break;default:e=new re.factory.errors.Internal(t.message)}return e}function VD(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:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},sP);let s,i;for(;s===void 0&&i===void 0;){if(await oP(iP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(typeof c.id=="string"&&c.actionStatus===re.factory.actionStatusType.CompletedActionStatus){s={id:c.id};break}if(c.error!==void 0){i=HD(c.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw i}}function zD(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},sP);let s,i;for(;s===void 0&&i===void 0;){if(await oP(iP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(c.status===re.factory.taskStatus.Executed){s=c;break}}if(typeof s?.status!="string")throw i}}});var uP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderCOAService=void 0;var cP=Y(),nh=te(),YD=E(),sh=aP(),ih=class extends YD.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:m,disableAutoRetry:g,retryableStatusCodes:w}=this.options,q=await(await(0,nh.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof m?.id=="string"?m.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),N=await(0,sh.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new cP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,nh.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,sh.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:c,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,N=await(await(0,nh.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,sh.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new cP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};lc.PlaceOrderCOAService=ih});var dP=o(Ze=>{"use strict";var QD=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]})),ZD=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JD=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"&&QD(r,e,n[s]);return ZD(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var fc=b(),_n;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(_n||(Ze.service=_n={}));var XD=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.status.UNAUTHORIZED],oh=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 _n.transaction.PlaceOrder.svc===void 0&&(_n.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>JD(uP()))).PlaceOrderCOAService),new _n.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:XD})}};Ze.CloudTxc=oh});var lP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.OfferService=void 0;var eL=Y(),ah=te(),tL=E(),ch=class extends tL.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,ah.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,ah.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:eL.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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,ah.loadChevreTxn)({auth:i,endpoint:c,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})}};hc.OfferService=ch});var fP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderTransactionService=void 0;var mr=b(),_r=te(),rL=E(),uh=class extends rL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.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,sendEmailMessage:n,email:s}=e,{auth:i,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:i,endpoint:c,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:s})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};yc.PlaceOrderTransactionService=uh});var hP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ReturnOrderTransactionService=void 0;var dh=te(),nL=E(),lh=class extends nL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,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:c,retryableStatusCodes:d}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};pc.ReturnOrderTransactionService=lh});var yP=o(Je=>{"use strict";var sL=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]})),iL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fh=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"&&sL(r,e,n[s]);return iL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var vc=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 hh=[vc.status.BAD_GATEWAY,vc.status.SERVICE_UNAVAILABLE,vc.status.FORBIDDEN,vc.status.UNAUTHORIZED],yh=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(()=>fh(lP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:hh})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>fh(fP()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:hh})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>fh(hP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:hh})}};Je.CloudTxn=yh});var pP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleService=void 0;var oL=b(),aL=E(),ph=class extends aL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[oL.status.OK]}).then(async r=>r.json())}};Sc.RuleService=ph});var SP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleSetService=void 0;var vP=b(),cL=E(),vh=class extends cL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[vP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[vP.status.NO_CONTENT]})}};mc.RuleSetService=vh});var _P=o(Xe=>{"use strict";var uL=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]})),dL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mP=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"&&uL(r,e,n[s]);return dL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(Xe.service=Mt={}));var Sh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>mP(pP()))).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(()=>mP(SP()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=Sh});var te=o(X=>{"use strict";var lL=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]})),fL=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"&&lL(r,e,n[s]);return fL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=pL;X.loadChevreAsset=vL;X.loadChevreAdmic=SL;X.loadChevreAdmin=mL;X.loadChevreConsole=_L;X.loadChevrePay=OL;X.loadChevreTxn=TL;X.loadChevreTxc=EL;X.loadService=CL;X.loadCloudAdmin=gL;X.loadCloudAsset=bL;X.loadCloudSearch=AL;X.loadCloudPay=PL;X.loadCloudTxc=wL;X.loadCloudTxn=RL;X.loadWaiterAdmin=ML;var hL=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return hL.factory}});var yL=Oe(Fs());X.transporters=yL;var mh;async function pL(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(QC()))).Chevre),new mh(...t)}var _h;async function vL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(tg()))).ChevreAsset),new _h(...t)}var Oh;async function SL(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(sg()))).ChevreAdmic),new Oh(...t)}var Th;async function mL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(kg()))).ChevreAdmin),new Th(...t)}var Eh;async function _L(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(eA()))).ChevreConsole),new Eh(...t)}var Ch;async function OL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(rA()))).ChevrePay),new Ch(...t)}var gh;async function TL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(aA()))).ChevreTxn),new gh(...t)}var bh;async function EL(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(uA()))).ChevreTxc),new bh(...t)}var Ah;async function CL(){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(SA()))).service),Ah}var Ph;async function gL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(kA()))).CloudAdmin),new Ph(...t)}var wh;async function bL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(HA()))).CloudAsset),new wh(...t)}var Rh;async function AL(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(XA()))).CloudSearch),new Rh(...t)}var Mh;async function PL(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(nP()))).CloudPay),new Mh(...t)}var Ih;async function wL(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(dP()))).CloudTxc),new Ih(...t)}var qh;async function RL(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(yP()))).CloudTxn),new qh(...t)}var Nh;async function ML(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(_P()))).WaiterAdmin),new Nh(...t)}});var OP=o(Gt=>{"use strict";var IL=Gt&&Gt.__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]})),qL=Gt&&Gt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&IL(e,t,r)};Object.defineProperty(Gt,"__esModule",{value:!0});qL(te(),Gt)});var NP=o((c5,qP)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(t){var e={exports:{}};return t(e,e.exports),e.exports}var NL=Wt(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,c=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(c?c(R):D())},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 q,N,C,M,D=void 0;function k(h,v){var T=this,A=new this.constructor(G);A[x]===void 0&&a(A);var P=T._state;if(P){var L=arguments[P-1];d(function(){return tt(P,A,L,T._result)})}else et(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(G);return oe(v,h),v}D=S?function(){return process.nextTick(R)}:y?(N=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=N=++N%2}):m?((q=new MessageChannel).port1.onmessage=R,function(){return q.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 x=Math.random().toString(36).substring(2);function G(){}var W=void 0,$=1,Q=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===$?ie(A,P._result):P._state===Q?ee(A,P._result):et(P,void 0,function(L){return oe(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(A,P,L){d(function(z){var Z=!1,ue=(function(Ae,Ee,It,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?oe(z,Pe):ie(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(L,P);!Z&&ue&&(Z=!0,ee(z,ue))},A)})(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(P=typeof(A=v),A===null||P!=="object"&&P!=="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 A,P}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=Q,h._result=v,d(se,h))}function et(h,v,T,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+$]=T,P[L+Q]=A,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,L=h._result,z=0;z<v.length;z+=3)P=v[z+T],(A=v[z])?tt(T,A,P,L):P(L);h._subscribers.length=0}}function tt(h,v,T,A){var P=r(T),L=void 0,z=void 0,Z=!0;if(P){try{L=T(A)}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=A;v._state!==W||(P&&Z?oe(v,L):Z===!1?ee(v,z):h===$?ie(v,L):h===Q&&ee(v,L))}var Ue=0;function a(h){h[x]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(G),this.promise[x]||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 A=this._instanceConstructor,P=A.resolve;if(P===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Ae){Z=!0,z=Ae}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(A===l){var ue=new A(G);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new A(function(Ae){return Ae(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===W&&(this._remaining--,v===Q?ee(P,A):this._result[T]=A),this._remaining===0&&ie(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;et(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(Q,T,P)})},h})(),l=(function(){function h(v){this[x]=Ue++,this._result=this._state=void 0,this._subscribers=[],G!==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,A){try{A(function(P){oe(T,P)},function(P){ee(T,P)})}catch(P){ee(T,P)}})(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,A=T.constructor;return r(v)?T.then(function(P){return A.resolve(v()).then(function(){return P})},function(P){return A.resolve(v()).then(function(){throw P})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new u(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,L=0;L<P;L++)v.resolve(h[L]).then(T,A)}):new v(function(T,A){return A(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(G);return ee(v,h),v},l._setScheduler=function(h){c=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Kt!==void 0)h=Kt;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})()}),jL={__proto__:null,default:{}},Lh=Wt(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=jL}catch{}var c=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 D;return C.prototype=M,D=new C,C.prototype=null,D}})(),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,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)M[k+x>>>2]|=(D[x>>>2]>>>24-x%4*8&255)<<24-(k+x)%4*8;else for(var G=0;G<K;G+=4)M[k+G>>>2]=D[G>>>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=[],D=0;D<C;D+=4)M.push(c());return new S.init(M,C)}}),m=f.enc={},g=m.Hex={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var x=M[K>>>2]>>>24-K%4*8&255;k.push((x>>>4).toString(16)),k.push((15&x).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,M/2)}},w=m.Latin1={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,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)))}},q=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,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,G=K/(4*x),W=(G=C?n.ceil(G):n.max((0|G)-this._minBufferSize,0))*x,$=n.min(4*W,K);if(W){for(var Q=0;Q<W;Q+=x)this._doProcessBlock(k,Q);M=k.splice(0,W),D.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=q.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){q.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,D){return new C.init(D).finalize(M)}},_createHmacHelper:function(C){return function(M,D){return new N.HMAC.init(C,D).finalize(M)}}});var N=f.algo={};return f})(Math),r)}),AP=Wt(function(t,e){var r;t.exports=(r=Lh,(function(n){var s=r,i=s.lib,c=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function g(N){for(var C=n.sqrt(N),M=2;M<=C;M++)if(!(N%M))return!1;return!0}function w(N){return 4294967296*(N-(0|N))|0}for(var R=2,q=0;q<64;)g(R)&&(q<8&&(p[q]=w(n.pow(R,.5))),y[q]=w(n.pow(R,1/3)),q++),R++})();var S=[],m=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(g,w){for(var R=this._hash.words,q=R[0],N=R[1],C=R[2],M=R[3],D=R[4],k=R[5],K=R[6],x=R[7],G=0;G<64;G++){if(G<16)S[G]=0|g[w+G];else{var W=S[G-15],$=S[G-2];S[G]=((W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3)+S[G-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[G-16]}var Q=q&N^q&C^N&C,Te=x+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[G]+S[G];x=K,K=k,k=D,D=M+Te|0,M=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+Q)|0}R[0]=R[0]+q|0,R[1]=R[1]+N|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+D|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+x|0},_doFinalize:function(){var g=this._data,w=g.words,R=8*this._nDataBytes,q=8*g.sigBytes;return w[q>>>5]|=128<<24-q%32,w[14+(q+64>>>9<<4)]=n.floor(R/4294967296),w[15+(q+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)}),xL=Wt(function(t,e){var r,n;t.exports=(n=(r=Lh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,c=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<c;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<c;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,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,m,g){for(var w=[],R=0,q=0;q<m;q++)if(q%4){var N=g[S.charCodeAt(q-1)]<<q%4*2,C=g[S.charCodeAt(q)]>>>6-q%4*2;w[R>>>2]|=(N|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),TP=Wt(function(t,e){t.exports=Lh.enc.Hex}),PP=Wt(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=P*L+z*A;v=((L=A*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*z+(v>>>30),l[h++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=P*L+z*A;v=((L=A*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*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 c,d,f=new Array;for(c=48,d=0;d<=9;++d)f[c++]=d;for(c=97,d=10;d<36;++d)f[c++]=d;for(c=65,d=10;d<36;++d)f[c++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,u){var l=f[a.charCodeAt(u)];return l??-1}function S(a){var u=s();return u.fromInt(a),u}function m(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,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,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function C(a,u){return a&~u}function M(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function k(){}function K(a){return a}function x(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,u,l){a.multiplyTo(u,l),this.reduce(l)},g.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},w.prototype.convert=function(a){var u=s();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},w.prototype.revert=function(a){var u=s();return a.copyTo(u),this.reduce(u),u},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,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,u,l){a.multiplyTo(u,l),this.reduce(l)},w.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];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,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<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,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),A=this.s,P=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),Ae=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Pe=ye-z,ot=u??s();for(T.dlShiftTo(Pe,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(;--Pe>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,Cr,l,Pe,0,z))<Cr)for(T.dlShiftTo(Pe,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}u!=null&&(l.drShiftTo(z,u),A!=P&&n.ZERO.subTo(u,u)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),A<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 u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=u.convert(this),T=m(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&h,P<=0&&(P+=this.DB,--A)),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 u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;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 u=s();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new g(u):new w(u),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,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},x.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 u=s();return a.copyTo(u),this.reduce(u),u},x.prototype.revert=function(a){return a},x.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)},x.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},x.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)};var G,W,$,Q=[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)/Q[Q.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 u=this.chunkSize(a),l=Math.pow(a,u),h=S(l),v=s(),T=s(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=u*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(u);)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),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.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,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);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,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>Q.length&&(a=Q.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Q[Math.floor(Math.random()*Q.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=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,u=new Array;u[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&&(u[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)&&(u[v++]=l);return u},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 u=s();return this.bitwiseTo(a,R,u),u},n.prototype.or=function(a){var u=s();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=s();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=s();return this.bitwiseTo(a,C,u),u},n.prototype.not=function(){for(var a=s(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=s();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=s();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},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,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var u=s();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=s();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=s();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=s();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=s();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=s(),l=s();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){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(u):u.isEven()?new x(u):new w(u);var A=new Array,P=3,L=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(A[1],Z);P<=z;)A[P]=s(),h.mulTo(Z,A[P-2],A[P]),P+=2}var ue,Ae,Ee=a.t-1,It=!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)),P=l;(1&ue)==0;)ue>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),It)A[ue].copyTo(T),It=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Ae=T,T=ye,ye=Ae),h.mulTo(ye,A[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Ae=T,T=ye,ye=Ae,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var u=a.isEven();if(this.isEven()&&u||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),u?(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),u?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),u&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),u&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var u=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(u.compareTo(l)<0){var h=u;u=l,l=h}var v=u.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return u;for(v<T&&(T=v),T>0&&(u.rShiftTo(T,u),l.rShiftTo(T,l));u.signum()>0;)(v=u.getLowestSetBit())>0&&u.rShiftTo(v,u),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),u.compareTo(l)>=0?(u.subTo(l,u),u.rShiftTo(1,u)):(l.subTo(u,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var u,l=this.abs();if(l.t==1&&l[0]<=Q[Q.length-1]){for(u=0;u<Q.length;++u)if(l[0]==Q[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<Q.length;){for(var h=Q[u],v=u+1;v<Q.length&&h<Te;)h*=Q[v++];for(h=l.modInt(h);u<v;)if(h%Q[u++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=x,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(G==null){for(oe(),(G=new tt).init(W),$=0;$<W.length;++$)W[$]=0;$=0}return G.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=et()},tt.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%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(Kt)}),EP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},CP={sha256:AP};function wP(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 PP.BigInteger(t,16),this.e=parseInt(e,16)}wP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new PP.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 c in EP){var d=EP[c],f=d.length;if(i.substring(0,f)===d)return{alg:c,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!CP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=CP[n.alg](t).toString();return n.hash===s};for(gP=[],xe=[],RP=typeof Uint8Array<"u"?Uint8Array:Array,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)gP[$t]=jh[$t],xe[jh.charCodeAt($t)]=$t;var gP,xe,RP,jh,$t;xe[45]=62,xe[95]=63;var MP=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],c=new RP((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)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,c[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function IP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function bP(t){return t=IP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(MP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function xh(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})(MP(IP(t)))}var UL=Wt(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 c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<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 DL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],c=[],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 c},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()),c.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 LL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Uh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Uh.prototype=Error.prototype,ne.prototype=Error.prototype;var FL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();NL.polyfill();var Dh="RS256",_c=function(t){return typeof t=="number"},kL=function(){return new Date};function On(t){var e=t||{};if(this.jwksCache=e.jwksCache||new FL,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:kL,this.leeway<0||this.leeway>300)throw new Uh("The leeway should be positive and lower than five minutes.");if(Dh!==this.expectedAlg)throw new Uh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Dh+'".')}On.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=xh(n.encoded.signature),c=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,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==c)return r(new ne('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Dh+'".'),null);this.getRsaVerifier(y,d,function(M,D){if(M)return r(M,null);if(!D.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(!q||typeof q!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),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||!_c(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!_c(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),N>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(m&&_c(m)){var x=m-C.leeway,G=new Date(0);if(G.setUTCSeconds(x),N<G)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+G+'"'),null)}if(C.maxAge){if(!R||!_c(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),N>$)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 "'+N+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},On.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=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||UL(c.iss,".well-known","jwks.json"),(fetch=="undefined"?DL:fetch)(d).then(LL).then(function(f){var p,y,S,m=null;for(p=0;p<f.keys.length&&m===null;p++)(y=f.keys[p]).kid===c.kid&&(m=y);if(!m)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:xh((S=m).n),exp:xh(S.e)}}).catch(function(f){throw f}));var c,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 wP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},On.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(bP(n[0])),r=JSON.parse(bP(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]}}},On.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=AP(t),c=TP.stringify(i),d=c.substring(0,c.length/2),f=TP.parse(d),p=xL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},qP.exports=On});var Tn=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AuthorizeError=void 0;var Fh=class extends Error{error;errorDescription;state};Oc.AuthorizeError=Fh});var jP=o(Or=>{"use strict";var BL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var GL=BL(tr()),kh=(0,GL.default)("cinerino-sdk:auth:popupHandler"),Bh=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(kh("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}`)}kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){kh("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=Bh});var xP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PopupAuthenticationHandler=void 0;var $L=Tn(),KL=jP(),Gh=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 KL.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 $L.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};Tc.PopupAuthenticationHandler=Gh});var Kh=o(Tr=>{"use strict";var WL=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var HL=WL(tr()),VL=(0,HL.default)("cinerino-sdk:auth:iframeHandler"),$h=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(VL("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=$h});var UP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentAuthenticationHandler=void 0;var zL=Tn(),YL=Kh(),Wh=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 YL.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 zL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Ec.SilentAuthenticationHandler=Wh});var DP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentLogoutHandler=void 0;var QL=Tn(),ZL=Kh(),Hh=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 ZL.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 QL.AuthorizeError("Timeout during logout");s.error="timeout",s.errorDescription="Timeout during logout",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Cc.SilentLogoutHandler=Hh});var LP=o(()=>{});var FP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.LoginTicket=void 0;var Vh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};gc.LoginTicket=Vh});var kP=o(_t=>{"use strict";var JL=_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 XL=LP(),eF=JL(tr()),bc=b(),tF=Fs(),rF=FP(),Ht=(0,eF.default)("cinerino-sdk:auth:oAuth2client"),nF=1e3;_t.MAX_RETRY_NUM=2;async function sF(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,XL.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),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Ht("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Ht("response:",d.status),d.status!==bc.status.OK)if(d.status===bc.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=>(Ht("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 c,d=0;for(;c===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Ht("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 sF(nF*d);continue}}throw f}return c}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 tF.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){Ht("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 Ht("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async c=>{if(Ht("response:",c.status),c.status!==bc.status.OK)if(c.status===bc.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.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 c=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new rF.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=zh});var $P=o(Er=>{"use strict";var GP=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var iF=GP(tr()),BP=GP(NP()),Yh=Ku(),oF=Tn(),aF=xP(),cF=UP(),uF=DP(),dF=kP(),Ac=(0,iF.default)("cinerino-sdk:auth:implicitGrantClient"),Qh=class t extends dF.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,Ac("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 cF.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 aF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await uF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Ac("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Ac("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Yh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new oF.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 BP.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 BP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Ac("id_token verified",c,d),c!==null){s(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Yh.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,Yh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=Qh});var KP=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=fF;var Ot=OP();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 lF=$P();function fF(t){return new lF.ImplicitGrantClient(t)}});var T5=window.cinerino=KP();})();
|
|
4
|
+
`+e.prev}function Bs(t,e){var r=Eu(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 Su=="function"?Su(t):[],c;if(sr){c={};for(var d=0;d<i.length;d++)c["$"+i[d]]=i[d]}for(var f in t)vt(t,f)&&(r&&String(Number(f))===f&&f<t.length||sr&&c["$"+f]instanceof Symbol||(FT.call(/[^\w$]/,f)?n.push(e(f,t)+": "+e(t[f],t)):n.push(f+": "+e(t[f],t))));if(typeof Su=="function")for(var p=0;p<i.length;p++)kT.call(t,i[p])&&n.push("["+e(i[p])+"]: "+e(t[i[p]],t));return n}});var zT=o((v2,VT)=>{"use strict";var Pq=kr(),wq=xt(),Ks=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},Rq=function(t,e){if(t){var r=Ks(t,e);return r&&r.value}},Mq=function(t,e,r){var n=Ks(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Iq=function(t,e){return t?!!Ks(t,e):!1},qq=function(t,e){if(t)return Ks(t,e,!0)};VT.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new wq("Side channel does not contain "+Pq(n))},delete:function(n){var s=qq(e,n);return s&&e&&!e.next&&(e=void 0),!!s},get:function(n){return Rq(e,n)},has:function(n){return Iq(e,n)},set:function(n,s){e||(e={next:void 0}),Mq(e,n,s)}};return r}});var Pu=o((S2,YT)=>{"use strict";YT.exports=Object});var ZT=o((m2,QT)=>{"use strict";QT.exports=Error});var XT=o((_2,JT)=>{"use strict";JT.exports=EvalError});var tE=o((O2,eE)=>{"use strict";eE.exports=RangeError});var nE=o((T2,rE)=>{"use strict";rE.exports=ReferenceError});var iE=o((E2,sE)=>{"use strict";sE.exports=SyntaxError});var aE=o((C2,oE)=>{"use strict";oE.exports=URIError});var uE=o((g2,cE)=>{"use strict";cE.exports=Math.abs});var lE=o((b2,dE)=>{"use strict";dE.exports=Math.floor});var hE=o((A2,fE)=>{"use strict";fE.exports=Math.max});var pE=o((P2,yE)=>{"use strict";yE.exports=Math.min});var SE=o((w2,vE)=>{"use strict";vE.exports=Math.pow});var _E=o((R2,mE)=>{"use strict";mE.exports=Math.round});var TE=o((M2,OE)=>{"use strict";OE.exports=Number.isNaN||function(e){return e!==e}});var CE=o((I2,EE)=>{"use strict";var Nq=TE();EE.exports=function(e){return Nq(e)||e===0?e:e<0?-1:1}});var bE=o((q2,gE)=>{"use strict";gE.exports=Object.getOwnPropertyDescriptor});var wu=o((N2,AE)=>{"use strict";var Ws=bE();if(Ws)try{Ws([],"length")}catch{Ws=null}AE.exports=Ws});var wE=o((j2,PE)=>{"use strict";var Hs=Object.defineProperty||!1;if(Hs)try{Hs({},"a",{value:1})}catch{Hs=!1}PE.exports=Hs});var ME=o((x2,RE)=>{"use strict";RE.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 c=Object.getOwnPropertySymbols(e);if(c.length!==1||c[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 NE=o((U2,qE)=>{"use strict";var IE=typeof Symbol<"u"&&Symbol,jq=ME();qE.exports=function(){return typeof IE!="function"||typeof Symbol!="function"||typeof IE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jq()}});var Ru=o((D2,jE)=>{"use strict";jE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Mu=o((L2,xE)=>{"use strict";var xq=Pu();xE.exports=xq.getPrototypeOf||null});var LE=o((F2,DE)=>{"use strict";var Uq="Function.prototype.bind called on incompatible ",Dq=Object.prototype.toString,Lq=Math.max,Fq="[object Function]",UE=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},kq=function(e,r){for(var n=[],s=r||0,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},Bq=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};DE.exports=function(e){var r=this;if(typeof r!="function"||Dq.apply(r)!==Fq)throw new TypeError(Uq+r);for(var n=kq(arguments,1),s,i=function(){if(this instanceof s){var y=r.apply(this,UE(n,arguments));return Object(y)===y?y:this}return r.apply(e,UE(n,arguments))},c=Lq(0,r.length-n.length),d=[],f=0;f<c;f++)d[f]="$"+f;if(s=Function("binder","return function ("+Bq(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((k2,FE)=>{"use strict";var Gq=LE();FE.exports=Function.prototype.bind||Gq});var Vs=o((B2,kE)=>{"use strict";kE.exports=Function.prototype.call});var Iu=o((G2,BE)=>{"use strict";BE.exports=Function.prototype.apply});var $E=o(($2,GE)=>{"use strict";GE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var WE=o((K2,KE)=>{"use strict";var $q=Br(),Kq=Iu(),Wq=Vs(),Hq=$E();KE.exports=Hq||$q.call(Wq,Kq)});var qu=o((W2,HE)=>{"use strict";var Vq=Br(),zq=xt(),Yq=Vs(),Qq=WE();HE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new zq("a function is required");return Qq(Vq,Yq,e)}});var JE=o((H2,ZE)=>{"use strict";var Zq=qu(),VE=wu(),YE;try{YE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var Nu=!!YE&&VE&&VE(Object.prototype,"__proto__"),QE=Object,zE=QE.getPrototypeOf;ZE.exports=Nu&&typeof Nu.get=="function"?Zq([Nu.get]):typeof zE=="function"?function(e){return zE(e==null?e:QE(e))}:!1});var nC=o((V2,rC)=>{"use strict";var XE=Ru(),eC=Mu(),tC=JE();rC.exports=XE?function(e){return XE(e)}:eC?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return eC(e)}:tC?function(e){return tC(e)}:null});var iC=o((z2,sC)=>{"use strict";var Jq=Function.prototype.call,Xq=Object.prototype.hasOwnProperty,e1=Br();sC.exports=e1.call(Jq,Xq)});var Qs=o((Y2,lC)=>{"use strict";var V,t1=Pu(),r1=ZT(),n1=XT(),s1=tE(),i1=nE(),cr=iE(),ar=xt(),o1=aE(),a1=uE(),c1=lE(),u1=hE(),d1=pE(),l1=SE(),f1=_E(),h1=CE(),uC=Function,ju=function(t){try{return uC('"use strict"; return ('+t+").constructor;")()}catch{}},Gr=wu(),y1=wE(),xu=function(){throw new ar},p1=Gr?(function(){try{return arguments.callee,xu}catch{try{return Gr(arguments,"callee").get}catch{return xu}}})():xu,ir=NE()(),Se=nC(),v1=Mu(),S1=Ru(),dC=Iu(),$r=Vs(),or={},m1=typeof Uint8Array>"u"||!Se?V:Se(Uint8Array),Dt={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?V:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?V:ArrayBuffer,"%ArrayIteratorPrototype%":ir&&Se?Se([][Symbol.iterator]()):V,"%AsyncFromSyncIteratorPrototype%":V,"%AsyncFunction%":or,"%AsyncGenerator%":or,"%AsyncGeneratorFunction%":or,"%AsyncIteratorPrototype%":or,"%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%":r1,"%eval%":eval,"%EvalError%":n1,"%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%":uC,"%GeneratorFunction%":or,"%Int8Array%":typeof Int8Array>"u"?V:Int8Array,"%Int16Array%":typeof Int16Array>"u"?V:Int16Array,"%Int32Array%":typeof Int32Array>"u"?V:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ir&&Se?Se(Se([][Symbol.iterator]())):V,"%JSON%":typeof JSON=="object"?JSON:V,"%Map%":typeof Map>"u"?V:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ir||!Se?V:Se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t1,"%Object.getOwnPropertyDescriptor%":Gr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?V:Promise,"%Proxy%":typeof Proxy>"u"?V:Proxy,"%RangeError%":s1,"%ReferenceError%":i1,"%Reflect%":typeof Reflect>"u"?V:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?V:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ir||!Se?V:Se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?V:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ir&&Se?Se(""[Symbol.iterator]()):V,"%Symbol%":ir?Symbol:V,"%SyntaxError%":cr,"%ThrowTypeError%":p1,"%TypedArray%":m1,"%TypeError%":ar,"%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%":o1,"%WeakMap%":typeof WeakMap>"u"?V:WeakMap,"%WeakRef%":typeof WeakRef>"u"?V:WeakRef,"%WeakSet%":typeof WeakSet>"u"?V:WeakSet,"%Function.prototype.call%":$r,"%Function.prototype.apply%":dC,"%Object.defineProperty%":y1,"%Object.getPrototypeOf%":v1,"%Math.abs%":a1,"%Math.floor%":c1,"%Math.max%":u1,"%Math.min%":d1,"%Math.pow%":l1,"%Math.round%":f1,"%Math.sign%":h1,"%Reflect.getPrototypeOf%":S1};if(Se)try{null.error}catch(t){oC=Se(Se(t)),Dt["%Error.prototype%"]=oC}var oC,_1=function t(e){var r;if(e==="%AsyncFunction%")r=ju("async function () {}");else if(e==="%GeneratorFunction%")r=ju("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ju("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},aC={__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(),zs=iC(),O1=Kr.call($r,Array.prototype.concat),T1=Kr.call(dC,Array.prototype.splice),cC=Kr.call($r,String.prototype.replace),Ys=Kr.call($r,String.prototype.slice),E1=Kr.call($r,RegExp.prototype.exec),C1=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,g1=/\\(\\)?/g,b1=function(e){var r=Ys(e,0,1),n=Ys(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 cC(e,C1,function(i,c,d,f){s[s.length]=d?cC(f,g1,"$1"):c||i}),s},A1=function(e,r){var n=e,s;if(zs(aC,n)&&(s=aC[n],n="%"+s[0]+"%"),zs(Dt,n)){var i=Dt[n];if(i===or&&(i=_1(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!")};lC.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(E1(/^%?[^%]*%?$/,e)===null)throw new cr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=b1(e),s=n.length>0?n[0]:"",i=A1("%"+s+"%",r),c=i.name,d=i.value,f=!1,p=i.alias;p&&(s=p[0],T1(n,O1([0,1],p)));for(var y=1,S=!0;y<n.length;y+=1){var m=n[y],g=Ys(m,0,1),w=Ys(m,-1);if((g==='"'||g==="'"||g==="`"||w==='"'||w==="'"||w==="`")&&g!==w)throw new cr("property names with quotes must have matching quotes");if((m==="constructor"||!S)&&(f=!0),s+="."+m,c="%"+s+"%",zs(Dt,c))d=Dt[c];else if(d!=null){if(!(m in d)){if(!r)throw new ar("base intrinsic for "+e+" exists, but the property is not available.");return}if(Gr&&y+1>=n.length){var R=Gr(d,m);S=!!R,S&&"get"in R&&!("originalValue"in R.get)?d=R.get:d=d[m]}else S=zs(d,m),d=d[m];S&&!f&&(Dt[c]=d)}}return d}});var Uu=o((Q2,yC)=>{"use strict";var fC=Qs(),hC=qu(),P1=hC([fC("%String.prototype.indexOf%")]);yC.exports=function(e,r){var n=fC(e,!!r);return typeof n=="function"&&P1(e,".prototype.")>-1?hC([n]):n}});var Du=o((Z2,vC)=>{"use strict";var w1=Qs(),Wr=Uu(),R1=kr(),M1=xt(),pC=w1("%Map%",!0),I1=Wr("Map.prototype.get",!0),q1=Wr("Map.prototype.set",!0),N1=Wr("Map.prototype.has",!0),j1=Wr("Map.prototype.delete",!0),x1=Wr("Map.prototype.size",!0);vC.exports=!!pC&&function(){var e,r={assert:function(n){if(!r.has(n))throw new M1("Side channel does not contain "+R1(n))},delete:function(n){if(e){var s=j1(e,n);return x1(e)===0&&(e=void 0),s}return!1},get:function(n){if(e)return I1(e,n)},has:function(n){return e?N1(e,n):!1},set:function(n,s){e||(e=new pC),q1(e,n,s)}};return r}});var mC=o((J2,SC)=>{"use strict";var U1=Qs(),Js=Uu(),D1=kr(),Zs=Du(),L1=xt(),ur=U1("%WeakMap%",!0),F1=Js("WeakMap.prototype.get",!0),k1=Js("WeakMap.prototype.set",!0),B1=Js("WeakMap.prototype.has",!0),G1=Js("WeakMap.prototype.delete",!0);SC.exports=ur?function(){var e,r,n={assert:function(s){if(!n.has(s))throw new L1("Side channel does not contain "+D1(s))},delete:function(s){if(ur&&s&&(typeof s=="object"||typeof s=="function")){if(e)return G1(e,s)}else if(Zs&&r)return r.delete(s);return!1},get:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?F1(e,s):r&&r.get(s)},has:function(s){return ur&&s&&(typeof s=="object"||typeof s=="function")&&e?B1(e,s):!!r&&r.has(s)},set:function(s,i){ur&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new ur),k1(e,s,i)):Zs&&(r||(r=Zs()),r.set(s,i))}};return n}:Zs});var OC=o((X2,_C)=>{"use strict";var $1=xt(),K1=kr(),W1=zT(),H1=Du(),V1=mC(),z1=V1||H1||W1;_C.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new $1("Side channel does not contain "+K1(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=z1()),e.set(n,s)}};return r}});var Xs=o((e3,TC)=>{"use strict";var Y1=String.prototype.replace,Q1=/%20/g,Lu={RFC1738:"RFC1738",RFC3986:"RFC3986"};TC.exports={default:Lu.RFC3986,formatters:{RFC1738:function(t){return Y1.call(t,Q1,"+")},RFC3986:function(t){return String(t)}},RFC1738:Lu.RFC1738,RFC3986:Lu.RFC3986}});var Bu=o((t3,CC)=>{"use strict";var Z1=Xs(),Fu=Object.prototype.hasOwnProperty,Lt=Array.isArray,dt=(function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t})(),J1=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Lt(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},EC=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},X1=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Lt(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Fu.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 Lt(e)&&!Lt(r)&&(s=EC(e,n)),Lt(e)&&Lt(r)?(r.forEach(function(i,c){if(Fu.call(e,c)){var d=e[c];d&&typeof d=="object"&&i&&typeof i=="object"?e[c]=t(d,i,n):e.push(i)}else e[c]=i}),e):Object.keys(r).reduce(function(i,c){var d=r[c];return Fu.call(i,c)?i[c]=t(i[c],d,n):i[c]=d,i},s)},eN=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},tN=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}},ku=1024,rN=function(e,r,n,s,i){if(e.length===0)return e;var c=e;if(typeof e=="symbol"?c=Symbol.prototype.toString.call(e):typeof e!="string"&&(c=String(e)),n==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var d="",f=0;f<c.length;f+=ku){for(var p=c.length>=ku?c.slice(f,f+ku):c,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===Z1.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},nN=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],c=i.obj[i.prop],d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],y=c[p];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(r.push({obj:c,prop:p}),n.push(y))}return J1(r),e},sN=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},iN=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},oN=function(e,r){return[].concat(e,r)},aN=function(e,r){if(Lt(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)};CC.exports={arrayToObject:EC,assign:eN,combine:oN,compact:nN,decode:tN,encode:rN,isBuffer:iN,isRegExp:sN,maybeMap:aN,merge:X1}});var RC=o((r3,wC)=>{"use strict";var bC=OC(),ei=Bu(),Hr=Xs(),cN=Object.prototype.hasOwnProperty,AC={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},lt=Array.isArray,uN=Array.prototype.push,PC=function(t,e){uN.apply(t,lt(e)?e:[e])},dN=Date.prototype.toISOString,gC=Hr.default,pe={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ei.encode,encodeValuesOnly:!1,format:gC,formatter:Hr.formatters[gC],indices:!1,serializeDate:function(e){return dN.call(e)},skipNulls:!1,strictNullHandling:!1},lN=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Gu={},fN=function t(e,r,n,s,i,c,d,f,p,y,S,m,g,w,R,q,N,C){for(var M=e,D=C,k=0,K=!1;(D=D.get(Gu))!==void 0&&!K;){var x=D.get(e);if(k+=1,typeof x<"u"){if(x===k)throw new RangeError("Cyclic object value");K=!0}typeof D.get(Gu)>"u"&&(k=0)}if(typeof y=="function"?M=y(r,M):M instanceof Date?M=g(M):n==="comma"&<(M)&&(M=ei.maybeMap(M,function(Ue){return Ue instanceof Date?g(Ue):Ue})),M===null){if(c)return p&&!q?p(r,pe.encoder,N,"key",w):r;M=""}if(lN(M)||ei.isBuffer(M)){if(p){var G=q?r:p(r,pe.encoder,N,"key",w);return[R(G)+"="+R(p(M,pe.encoder,N,"value",w))]}return[R(r)+"="+R(String(M))]}var W=[];if(typeof M>"u")return W;var $;if(n==="comma"&<(M))q&&p&&(M=ei.maybeMap(M,p)),$=[{value:M.length>0?M.join(",")||null:void 0}];else if(lt(y))$=y;else{var Q=Object.keys(M);$=S?Q.sort(S):Q}var Te=f?r.replace(/\./g,"%2E"):r,oe=s&<(M)&&M.length===1?Te+"[]":Te;if(i&<(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=bC();tt.set(Gu,C),PC(W,t(ee,it,n,s,i,c,d,f,n==="comma"&&q&<(M)?null:p,y,S,m,g,w,R,q,N,tt))}}return W},hN=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(!cN.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 c;if(e.arrayFormat in AC?c=e.arrayFormat:"indices"in e?c=e.indices?"indices":"repeat":c=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:c,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}};wC.exports=function(t,e){var r=t,n=hN(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):lt(n.filter)&&(i=n.filter,s=i);var c=[];if(typeof r!="object"||r===null)return"";var d=AC[n.arrayFormat],f=d==="comma"&&n.commaRoundTrip;s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var p=bC(),y=0;y<s.length;++y){var S=s[y];n.skipNulls&&r[S]===null||PC(c,fN(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=c.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 qC=o((n3,IC)=>{"use strict";var dr=Bu(),$u=Object.prototype.hasOwnProperty,yN=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},pN=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},MC=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},vN="utf8=%26%2310003%3B",SN="utf8=%E2%9C%93",mN=function(e,r){var n={__proto__:null},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,c=s.split(r.delimiter,i),d=-1,f,p=r.charset;if(r.charsetSentinel)for(f=0;f<c.length;++f)c[f].indexOf("utf8=")===0&&(c[f]===SN?p="utf-8":c[f]===vN&&(p="iso-8859-1"),d=f,f=c.length);for(f=0;f<c.length;++f)if(f!==d){var y=c[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=dr.maybeMap(MC(y.slice(m+1),r),function(q){return r.decoder(q,de.decoder,p,"value")})),w&&r.interpretNumericEntities&&p==="iso-8859-1"&&(w=pN(w)),y.indexOf("[]=")>-1&&(w=yN(w)?[w]:w);var R=$u.call(n,g);R&&r.duplicates==="combine"?n[g]=dr.combine(n[g],w):(!R||r.duplicates==="last")&&(n[g]=w)}return n},_N=function(t,e,r,n){for(var s=n?e:MC(e,r),i=t.length-1;i>=0;--i){var c,d=t[i];if(d==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&s===""?[]:[].concat(s);else{c=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===""?c={0:s}:!isNaN(y)&&d!==p&&String(y)===p&&y>=0&&r.parseArrays&&y<=r.arrayLimit?(c=[],c[y]=s):p!=="__proto__"&&(c[p]=s)}s=c}return s},ON=function(e,r,n,s){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,c=/(\[[^[\]]*])/,d=/(\[[^[\]]*])/g,f=n.depth>0&&c.exec(i),p=f?i.slice(0,f.index):i,y=[];if(p){if(!n.plainObjects&&$u.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&&$u.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(f[1])}return f&&y.push("["+i.slice(f.index)+"]"),_N(y,r,n,s)}},TN=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}};IC.exports=function(t,e){var r=TN(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?mN(t,r):t,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),c=0;c<i.length;++c){var d=i[c],f=ON(d,n[d],r,typeof t=="string");s=dr.merge(s,f,r)}return r.allowSparse===!0?s:dr.compact(s)}});var Ku=o((s3,NC)=>{"use strict";var EN=RC(),CN=qC(),gN=Xs();NC.exports={formats:gN,parse:CN,stringify:EN}});var E=o(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Service=Ft.RESOURCE_SELECTOR_SEPARATOR=void 0;var bN=Ku(),AN=Fs();Ft.RESOURCE_SELECTOR_SEPARATOR=":";var Wu=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}${Ft.RESOURCE_SELECTOR_SEPARATOR}${this.options.seller.id}`:s=`${s}/projects/${this.options.project.id}`);let i=`${s}${n.uri}`,c=(0,bN.stringify)(n.qs,r!==void 0?r:void 0);i+=c.length>0?`?${c}`:"";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 AN.DefaultTransporter(n.expectedStatusCodes)).fetch(i,f)}};Ft.Service=Wu});var jC=o(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.CategoryCodeService=void 0;var PN=b(),wN=E(),Hu=class extends wN.Service{async search(e){return this.fetch({uri:"/categoryCodes",method:"GET",qs:e,expectedStatusCodes:[PN.status.OK]}).then(async r=>({data:await r.json()}))}};ti.CategoryCodeService=Hu});var xC=o(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.CreativeWorkService=void 0;var RN=b(),MN=E(),Vu=class extends MN.Service{async searchMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[RN.status.OK]}).then(async r=>({data:await r.json()}))}};ri.CreativeWorkService=Vu});var UC=o(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.EmailMessageService=void 0;var IN=b(),qN=E(),zu=class extends qN.Service{async search(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[IN.status.OK]}).then(async r=>({data:await r.json()}))}};ni.EmailMessageService=zu});var LC=o(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.EventService=void 0;var St=b(),DC=Y(),NN=E(),Yu=class extends NN.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(![DC.factory.eventType.ScreeningEvent].includes(n))throw new DC.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 c=>c.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 c=>c.json())}};si.EventService=Yu});var FC=o(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.EventOfferService=void 0;var jN=b(),xN=E(),UN="/eventOffers",Qu=class extends xN.Service{async findEventOffers(e){return this.fetch({uri:UN,method:"GET",qs:e,expectedStatusCodes:[jN.status.OK]}).then(async r=>r.json())}};ii.EventOfferService=Qu});var kC=o(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.EventSeriesService=void 0;var DN=b(),LN=E(),Zu=class extends LN.Service{async projectFields(e){return this.fetch({uri:"/eventSeries",method:"GET",qs:e,expectedStatusCodes:[DN.status.OK]}).then(async r=>r.json())}};oi.EventSeriesService=Zu});var BC=o(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.NoteService=void 0;var FN=b(),kN=E(),BN="/creativeWorks/noteDigitalDocument",Ju=class extends kN.Service{async findPublicNotes(e){return this.fetch({uri:BN,method:"GET",qs:e,expectedStatusCodes:[FN.status.OK]}).then(async r=>r.json())}};ai.NoteService=Ju});var GC=o(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.PaymentProductService=void 0;var GN=b(),$N=E(),Xu=class extends $N.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:[GN.status.OK]}).then(async i=>i.json())}};ci.PaymentProductService=Xu});var $C=o(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.PlaceService=void 0;var lr=b(),ed=Y(),KN=E(),td=class extends KN.Service{async searchMovieTheatersLegacy(e){return this.fetch({uri:`/places/${ed.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[lr.status.OK]}).then(async r=>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/${ed.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/${ed.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 c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[lr.status.OK]}).then(async f=>f.json())}};ui.PlaceService=td});var KC=o(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.HasPOSService=void 0;var WN=b(),HN=Y(),VN=E(),rd=class extends VN.Service{async search(e){return this.fetch({uri:`/places/${HN.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[WN.status.OK]}).then(async r=>r.json())}};di.HasPOSService=rd});var WC=o(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.ProductService=void 0;var nd=b(),zN=E(),sd=class extends zN.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:[nd.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:[nd.status.OK]}).then(async s=>s.json())}async searchProductModels(e){return this.fetch({uri:"/productModels",method:"GET",qs:e,expectedStatusCodes:[nd.status.OK]}).then(async r=>r.json())}};li.ProductService=sd});var HC=o(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.SeatOfferService=void 0;var YN=b(),QN=E(),ZN="/seatOffers",id=class extends QN.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:ZN,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[YN.status.OK]}).then(async c=>c.json())}};fi.SeatOfferService=id});var VC=o(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.SellerService=void 0;var hi=b(),JN=E(),od=class extends JN.Service{async findById(e){return this.fetch({uri:`/sellers/${e.id}`,method:"GET",expectedStatusCodes:[hi.status.OK]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[hi.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:[hi.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:[hi.status.OK]}).then(async s=>s.json())}};yi.SellerService=od});var zC=o(Le=>{"use strict";var XN=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]})),ej=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"&&XN(r,e,n[s]);return ej(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 c;c=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 ad=class{options;constructor(e){this.options=e}async createCategoryCodeInstance(e){return H.CategoryCode.svc===void 0&&(H.CategoryCode.svc=(await Promise.resolve().then(()=>je(jC()))).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(()=>je(xC()))).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(()=>je(UC()))).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(()=>je(LC()))).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(()=>je(FC()))).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(()=>je(kC()))).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(()=>je(BC()))).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(()=>je(GC()))).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(()=>je($C()))).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(()=>je(KC()))).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(()=>je(WC()))).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(()=>je(HC()))).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(()=>je(VC()))).SellerService),new H.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}};Le.Chevre=ad});var YC=o(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.OrderService=void 0;var bt=b(),tj=Y(),rj=E(),cd=class extends rj.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}/${tj.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())}};pi.OrderService=cd});var ZC=o(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.ReservationService=void 0;var QC=b(),nj=E(),ud=class extends nj.Service{async findByCode(e){return this.fetch({uri:"/reservations/findByCode",method:"POST",body:e,expectedStatusCodes:[QC.status.OK]}).then(async r=>r.json())}async searchByOrder(e,r){return this.fetch({uri:"/reservations/searchByOrder",method:"POST",body:e,qs:r,expectedStatusCodes:[QC.status.OK]}).then(async n=>n.json())}};vi.ReservationService=ud});var JC=o(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.TokenService=void 0;var sj=E(),dd=class extends sj.Service{};Si.TokenService=dd});var XC=o(Fe=>{"use strict";var ij=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]})),oj=Fe&&Fe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ld=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"&&ij(r,e,n[s]);return oj(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 fd=class{options;constructor(e){this.options=e}async createOrderInstance(e){return rt.Order.svc===void 0&&(rt.Order.svc=(await Promise.resolve().then(()=>ld(YC()))).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(()=>ld(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(()=>ld(JC()))).TokenService),new rt.Token.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Fe.ChevreAsset=fd});var tg=o(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.SyncService=void 0;var eg=b(),aj=E(),hd=class extends aj.Service{async syncEventSeries(e){return this.fetch({uri:"/tasks/syncEventSeries",method:"POST",body:e,qs:{},expectedStatusCodes:[eg.status.ACCEPTED]}).then(async r=>r.json())}async syncEvents(e){return this.fetch({uri:"/tasks/syncEvents",method:"POST",body:e,qs:{},expectedStatusCodes:[eg.status.ACCEPTED]}).then(async r=>r.json())}};mi.SyncService=hd});var rg=o(ke=>{"use strict";var cj=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]})),uj=ke&&ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dj=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"&&cj(r,e,n[s]);return uj(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 yd=class{options;constructor(e){this.options=e}async createSyncInstance(e){return Vr.Sync.svc===void 0&&(Vr.Sync.svc=(await Promise.resolve().then(()=>dj(tg()))).SyncService),new Vr.Sync.svc({...this.options,...e,retryableStatusCodes:[]})}};ke.ChevreAdmic=yd});var ng=o(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.CustomerService=void 0;var lj=b(),fj=E(),pd=class extends fj.Service{async search(e){return this.fetch({uri:"/customers",method:"GET",qs:e,expectedStatusCodes:[lj.status.OK]}).then(async r=>r.json())}};_i.CustomerService=pd});var sg=o(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.EventService=void 0;var zr=b(),hj=E(),vd=class extends hj.Service{async createIfNotExistByIdentifier(e,r){let{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,disableOverwriteMakesOffer:d,useExtensibleOffer:f}=r;await this.fetch({uri:"/events",method:"POST",body:e,qs:{superEventId:n,locationBranchCode:s,hasTicketedSeat:i,typeOf:c,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())}};Oi.EventService=vd});var ig=o(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.EventOfferService=void 0;var Ti=b(),yj=E(),Ei="/eventOffers",Sd=class extends yj.Service{async createEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ei,method:"POST",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ti.status.NO_CONTENT]})}async updateEventOfferByIdentifier(e,r){let{itemOfferedId:n}=r;await this.fetch({uri:Ei,method:"PUT",body:e,qs:{itemOfferedId:n},expectedStatusCodes:[Ti.status.NO_CONTENT]})}async findEventOffers(e){return this.fetch({uri:Ei,method:"GET",qs:e,expectedStatusCodes:[Ti.status.OK]}).then(async r=>r.json())}async issueEventOfferToken(e){let{id:r}=e;return this.fetch({uri:`${Ei}/${encodeURIComponent(String(r))}/tokens`,method:"POST",expectedStatusCodes:[Ti.status.CREATED]}).then(async n=>n.json())}};Ci.EventOfferService=Sd});var cg=o(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.EventSeriesService=void 0;var og=b(),pj=E(),ag="/eventSeries",md=class extends pj.Service{async addEventSeriesByVersion(e,r){let{locationId:n,offerType:s,upsert:i,useSync:c}=r;await this.fetch({uri:ag,method:"POST",body:e,qs:{locationId:n,offerType:s,upsert:i===!0,useSync:c===!0},expectedStatusCodes:[og.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEventSeries(e){return this.fetch({uri:ag,method:"GET",qs:e,expectedStatusCodes:[og.status.OK]}).then(async r=>r.json())}};gi.EventSeriesService=md});var dg=o(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.MeService=void 0;var ug=b(),vj=E(),_d=class extends vj.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[ug.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:[ug.status.OK]}).then(async s=>s.json())}};bi.MeService=_d});var lg=o(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.MemberService=void 0;var Sj=b(),mj=Y(),_j=E(),Od=class extends _j.Service{async searchSoftwareApplications(e){return this.fetch({uri:`/members/${mj.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Sj.status.OK]}).then(async r=>r.json())}};Ai.MemberService=Od});var yg=o(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.MovieService=void 0;var fg=b(),Oj=E(),hg="/movies",Td=class extends Oj.Service{async upsertMoviesByIdentifier(e){await this.fetch({uri:hg,method:"PUT",body:e,expectedStatusCodes:[fg.status.NO_CONTENT]})}async findMovies(e){return this.fetch({uri:hg,method:"GET",qs:e,expectedStatusCodes:[fg.status.OK]}).then(async r=>r.json())}};Pi.MovieService=Td});var vg=o(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.MovieTheaterService=void 0;var Yr=b(),Tj=E(),pg="/movieTheaters",Ed="/entranceGates",Cd=class extends Tj.Service{async findMovieTheaters(e){return this.fetch({uri:pg,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:pg,method:"POST",body:e,qs:{sellerId:n},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async findEntranceGates(e){return this.fetch({uri:Ed,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:Ed,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:Ed,method:"DELETE",qs:{movieTheaterId:n,identifiers:e.map(({identifier:s})=>s)},expectedStatusCodes:[Yr.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};wi.MovieTheaterService=Cd});var Sg=o(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.NoteService=void 0;var gd=b(),Ej=E(),bd="/creativeWorks/noteDigitalDocument",Ad=class extends Ej.Service{async createNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:bd,method:"POST",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}async updateNotesByIdentifier(e,r){let{aboutTypeOf:n}=r;await this.fetch({uri:bd,method:"PUT",body:e,qs:{aboutTypeOf:n},expectedStatusCodes:[gd.status.NO_CONTENT]})}async findNotes(e){return this.fetch({uri:bd,method:"GET",qs:e,expectedStatusCodes:[gd.status.OK]}).then(async r=>r.json())}};Ri.NoteService=Ad});var mg=o(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.NoteAboutOrderService=void 0;var Pd=b(),Cj=E(),wd="/orderNotes",Rd=class extends Cj.Service{async upsertByIdentifier(e){await this.fetch({uri:wd,method:"PUT",body:e,expectedStatusCodes:[Pd.status.NO_CONTENT]})}async search(e){return this.fetch({uri:wd,method:"GET",qs:e,expectedStatusCodes:[Pd.status.OK]}).then(async r=>r.json())}async updateById(e,r){let{text:n}=r;await this.fetch({uri:`${wd}/${String(e)}`,method:"PUT",body:{text:n},expectedStatusCodes:[Pd.status.NO_CONTENT]})}};Mi.NoteAboutOrderService=Rd});var _g=o(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.OrderService=void 0;var Qr=b(),gj=E(),Md=class extends gj.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 findOrderAcceptedOffers(e){return this.fetch({uri:"/orders",method:"GET",qs:{...e,$unwindAcceptedOffers:"1"},expectedStatusCodes:[Qr.status.OK]}).then(async r=>r.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())}};Ii.OrderService=Md});var Og=o(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.PaymentMethodService=void 0;var bj=b(),Aj=E(),Pj="/paymentMethods",Id=class extends Aj.Service{async findPaymentMethods(e){return this.fetch({uri:Pj,method:"GET",qs:e,expectedStatusCodes:[bj.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}};qi.PaymentMethodService=Id});var Eg=o(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ProductService=void 0;var qd=b(),wj=E(),Tg="/products",Rj="/productHasOfferCatalog",Nd=class extends wj.Service{async upsertByProductId(e){await this.fetch({uri:Tg,method:"PUT",body:e,expectedStatusCodes:[qd.status.NO_CONTENT]})}async findProducts(e){return this.fetch({uri:Tg,method:"GET",qs:e,expectedStatusCodes:[qd.status.OK]}).then(async r=>r.json())}async findProductHasOfferCatalog(e){return this.fetch({uri:Rj,method:"GET",qs:e,expectedStatusCodes:[qd.status.OK]}).then(async r=>r.json())}};Ni.ProductService=Nd});var Cg=o(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.ReservationService=void 0;var jd=b(),Mj=E(),xd=class extends Mj.Service{async findReservations(e){return this.fetch({uri:"/reservations",method:"GET",qs:e,expectedStatusCodes:[jd.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:[jd.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:[jd.status.OK]}).then(async s=>s.json())}};ji.ReservationService=xd});var Ag=o(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.RoomService=void 0;var gg=b(),Ij=E(),bg="/rooms",Ud=class extends Ij.Service{async findRooms(e){return this.fetch({uri:bg,method:"GET",qs:e,expectedStatusCodes:[gg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertRoomsByBranchCode(e,r){let{movieTheaterId:n}=r;await this.fetch({uri:bg,method:"POST",body:e,qs:{movieTheaterId:n},expectedStatusCodes:[gg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};xi.RoomService=Ud});var Pg=o(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.SeatService=void 0;var Dd=b(),qj=E(),Ld="/seats",Fd=class extends qj.Service{async findSeats(e){return this.fetch({uri:Ld,method:"GET",qs:e,expectedStatusCodes:[Dd.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ld,method:"PUT",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c},expectedStatusCodes:[Dd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}async deleteSeatsByBranchCode(e,r){let{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c}=r;await this.fetch({uri:Ld,method:"DELETE",body:e,qs:{movieTheaterId:n,movieTheaterCode:s,roomCode:i,sectionCode:c,branchCodes:e.map(({branchCode:d})=>d)},expectedStatusCodes:[Dd.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Ui.SeatService=Fd});var Mg=o(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.SeatSectionService=void 0;var wg=b(),Nj=E(),Rg="/seatSections",kd=class extends Nj.Service{async findSeatSections(e){return this.fetch({uri:Rg,method:"GET",qs:e,expectedStatusCodes:[wg.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).then(async r=>r.json())}async upsertSeatSectionsByBranchCode(e,r){let{movieTheaterId:n,roomCode:s}=r;await this.fetch({uri:Rg,method:"POST",body:e,qs:{movieTheaterId:n,roomCode:s},expectedStatusCodes:[wg.status.NO_CONTENT],stringifyOptions:{arrayFormat:"repeat"}})}};Di.SeatSectionService=kd});var Ig=o(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.SellerService=void 0;var jj=b(),xj=E(),Bd=class extends xj.Service{async search(e){return this.fetch({uri:"/sellers",method:"GET",qs:e,expectedStatusCodes:[jj.status.OK]}).then(async r=>r.json())}};Li.SellerService=Bd});var Ng=o(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.OfferService=void 0;var qg=b(),Uj=E(),Gd=class extends Uj.Service{async findUnitPriceOffers(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[qg.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:[qg.status.NO_CONTENT]})}};Fi.OfferService=Gd});var jg=o(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.OfferCatalogService=void 0;var Dj=b(),Lj=E(),$d=class extends Lj.Service{async upsertByIdentifier(e,r){let{update:n,upsert:s,productType:i,itemListElementType:c}=r;await this.fetch({uri:"/offerCatalogs",method:"PUT",body:e,qs:{update:n===!0,upsert:s===!0,productType:i,itemListElementType:c},expectedStatusCodes:[Dj.status.NO_CONTENT]})}};ki.OfferCatalogService=$d});var Ug=o(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.OfferCatalogItemService=void 0;var xg=b(),Fj=E(),Kd=class extends Fj.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[xg.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:[xg.status.NO_CONTENT]})}};Bi.OfferCatalogItemService=Kd});var Dg=o(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.CancelReservationAssetTransactionService=void 0;var kj=b(),Bj=E(),Wd=class extends Bj.Service{async startAndConfirm(e){await this.fetch({uri:"/assetTransactions/cancelReservation/confirm",method:"POST",body:e,expectedStatusCodes:[kj.status.NO_CONTENT]})}};Gi.CancelReservationAssetTransactionService=Wd});var Lg=o(Be=>{"use strict";var Gj=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]})),$j=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"&&Gj(r,e,n[s]);return $j(r,e),r}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.ChevreAdmin=Be.service=void 0;var j;(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 c;c=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 q;q=t.Seat||(t.Seat={});let N;N=t.SeatSection||(t.SeatSection={});let C;C=t.Seller||(t.Seller={});let M;M=t.Offer||(t.Offer={});let D;D=t.OfferCatalog||(t.OfferCatalog={});let k;k=t.OfferCatalogItem||(t.OfferCatalogItem={});let K;(function(x){let G;G=x.CancelReservation||(x.CancelReservation={})})(K=t.assetTransaction||(t.assetTransaction={}))})(j||(Be.service=j={}));var Hd=class{options;constructor(e){this.options=e}async createCustomerInstance(e){return j.Customer.svc===void 0&&(j.Customer.svc=(await Promise.resolve().then(()=>ce(ng()))).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(()=>ce(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(()=>ce(ig()))).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(()=>ce(cg()))).EventSeriesService),new j.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return j.Me.svc===void 0&&(j.Me.svc=(await Promise.resolve().then(()=>ce(dg()))).MeService),new j.Me.svc({...this.options})}async createMemberInstance(e){return j.Member.svc===void 0&&(j.Member.svc=(await Promise.resolve().then(()=>ce(lg()))).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(()=>ce(yg()))).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(()=>ce(vg()))).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(()=>ce(Sg()))).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(()=>ce(mg()))).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(()=>ce(_g()))).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(()=>ce(Og()))).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(()=>ce(Eg()))).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(()=>ce(Cg()))).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(()=>ce(Ag()))).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(()=>ce(Pg()))).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(()=>ce(Mg()))).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(()=>ce(Ig()))).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(()=>ce(Ng()))).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(()=>ce(jg()))).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(()=>ce(Ug()))).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(()=>ce(Dg()))).CancelReservationAssetTransactionService),new j.assetTransaction.CancelReservation.svc({...this.options,...e,retryableStatusCodes:[]})}};Be.ChevreAdmin=Hd});var Fg=o($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.AccountingReportService=void 0;var Kj=b(),Wj=E(),Vd=class extends Wj.Service{async findAccountingReports(e){return this.fetch({uri:"/accountingReports",method:"GET",qs:e,expectedStatusCodes:[Kj.status.OK]}).then(async r=>r.json())}};$i.AccountingReportService=Vd});var kg=o(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.AccountTitleService=void 0;var Ge=b(),Hj=Y(),Vj=E(),zd=class extends Vj.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 Hj.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]})}};Ki.AccountTitleService=zd});var Bg=o(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.ActionService=void 0;var Yd=b(),zj=E(),Qd=class extends zj.Service{async search(e){return this.fetch({uri:"/actions",method:"GET",qs:e,expectedStatusCodes:[Yd.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/actions/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Yd.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:[Yd.status.OK]}).then(async r=>r.json())}};Wi.ActionService=Qd});var Gg=o(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.AdditionalPropertyService=void 0;var Zr=b(),Yj=E(),Zd=class extends Yj.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]})}};Hi.AdditionalPropertyService=Zd});var Kg=o(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.AggregateOfferService=void 0;var $g=b(),Qj=E(),Jd=class extends Qj.Service{async search(e){return this.fetch({uri:"/aggregateOffers",method:"GET",qs:e,expectedStatusCodes:[$g.status.OK]}).then(async r=>({data:await r.json()}))}async deleteById(e){await this.fetch({uri:`/aggregateOffers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[$g.status.NO_CONTENT]})}};Vi.AggregateOfferService=Jd});var Wg=o(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.AggregateReservationService=void 0;var Zj=b(),Jj=E(),Xd=class extends Jj.Service{async search(e){return this.fetch({uri:"/aggregateReservations",method:"GET",qs:e,expectedStatusCodes:[Zj.status.OK]}).then(async r=>r.json())}};zi.AggregateReservationService=Xd});var Hg=o(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.AggregationService=void 0;var Xj=b(),ex=E(),el=class extends ex.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async search(e){return this.fetch({uri:"/aggregations",method:"GET",qs:e,expectedStatusCodes:[Xj.status.OK]}).then(async r=>r.json())}};Yi.AggregationService=el});var Vg=o(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AuthorizationService=void 0;var tx=b(),rx=E(),tl=class extends rx.Service{async search(e){return this.fetch({uri:"/authorizations",method:"GET",qs:e,expectedStatusCodes:[tx.status.OK]}).then(async r=>r.json())}};Qi.AuthorizationService=tl});var zg=o(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.CreativeWorkService=void 0;var nx=b(),sx=E(),rl=class extends sx.Service{async deleteMovie(e){await this.fetch({uri:`/creativeWorks/movie/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[nx.status.NO_CONTENT]})}};Zi.CreativeWorkService=rl});var Yg=o(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.CategoryCodeService=void 0;var Ji=b(),ix=E(),Xi="/categoryCodes",nl=class extends ix.Service{async createCategoryCode(e){return this.fetch({uri:Xi,method:"POST",body:e,expectedStatusCodes:[Ji.status.CREATED]}).then(async r=>r.json())}async findCategoryCodes(e){return this.fetch({uri:Xi,method:"GET",qs:{...e,excludeMovieTicketType:!0},expectedStatusCodes:[Ji.status.OK]}).then(async r=>r.json())}async updateCategoryCode(e){await this.fetch({uri:`${Xi}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[Ji.status.NO_CONTENT]})}async deleteCategoryCodeById(e){await this.fetch({uri:`${Xi}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ji.status.NO_CONTENT]})}};eo.CategoryCodeService=nl});var Qg=o(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.CustomerService=void 0;var sl=b(),ox=E(),il=class extends ox.Service{async create(e){return this.fetch({uri:"/customers",method:"POST",body:e,expectedStatusCodes:[sl.status.CREATED]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/customers/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[sl.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/customers/${e.id}`,method:"DELETE",expectedStatusCodes:[sl.status.NO_CONTENT]})}};to.CustomerService=il});var Zg=o(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.CustomerTypeService=void 0;var ax=b(),cx=E(),ol=class extends cx.Service{async search(e){return this.fetch({uri:"/customerTypes",method:"GET",qs:e,expectedStatusCodes:[ax.status.OK]}).then(async r=>r.json())}};ro.CustomerTypeService=ol});var Jg=o(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.EmailMessageService=void 0;var no=b(),ux=E(),al=class extends ux.Service{async create(e){return this.fetch({uri:"/emailMessages",method:"POST",body:e,expectedStatusCodes:[no.status.CREATED]}).then(async r=>r.json())}async findEmailMessages(e){return this.fetch({uri:"/emailMessages",method:"GET",qs:e,expectedStatusCodes:[no.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"PUT",body:e.attributes,expectedStatusCodes:[no.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/emailMessages/${e.id}`,method:"DELETE",expectedStatusCodes:[no.status.NO_CONTENT]})}};so.EmailMessageService=al});var eb=o(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.EventService=void 0;var Jr=b(),Xg=Y(),dx=E(),cl=class extends dx.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:Xg.factory.eventType.ScreeningEvent,superEventId:n,locationBranchCode:s,hasTicketedSeat:i,onlyValidate:!0},expectedStatusCodes:[Jr.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/events",method:"GET",qs:e,expectedStatusCodes:[Jr.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:[Jr.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:Xg.factory.eventType.ScreeningEvent,disableOverwriteMakesOffer:e.options?.disableOverwriteMakesOffer===!0},expectedStatusCodes:[Jr.status.NO_CONTENT]})}async updateEventSellerMakesOfferById(e){await this.fetch({uri:`/events/${encodeURIComponent(String(e.id))}/sellerMakesOffer`,method:"PUT",body:e.attributes,expectedStatusCodes:[Jr.status.NO_CONTENT]})}};io.EventService=cl});var nb=o(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.EventSeriesService=void 0;var tb=b(),rb=Y(),lx=E(),ul=class extends lx.Service{async aggregateMaxVersion(e){return this.fetch({uri:`/events/${rb.factory.eventType.ScreeningEventSeries}/aggregateScreeningEventMaxVersion`,method:"GET",qs:e,expectedStatusCodes:[tb.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/events/${rb.factory.eventType.ScreeningEventSeries}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tb.status.NO_CONTENT]})}};oo.EventSeriesService=ul});var sb=o(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.HasMerchantReturnPolicyService=void 0;var fx=b(),hx=E(),dl=class extends hx.Service{async search(){return this.fetch({uri:"/hasMerchantReturnPolicy",method:"GET",expectedStatusCodes:[fx.status.OK]}).then(async e=>e.json())}};ao.HasMerchantReturnPolicyService=dl});var ib=o(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.IAMService=void 0;var At=b(),yx=E(),ll=class extends yx.Service{async findRoles(e){return this.fetch({uri:"/iam/roles",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async addProjectMember(e){await this.fetch({uri:"/iam/members",method:"POST",body:e,expectedStatusCodes:[At.status.CREATED,At.status.NO_CONTENT]})}async findProjectMembers(e){return this.fetch({uri:"/iam/members",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>r.json())}async updateProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"PUT",body:e,expectedStatusCodes:[At.status.NO_CONTENT]})}async deleteProjectMember(e){await this.fetch({uri:`/iam/members/${e.member.id}`,method:"DELETE",expectedStatusCodes:[At.status.NO_CONTENT]})}async searchCustomerMembers(e){return this.fetch({uri:"/iam/customerMembers",method:"GET",qs:e,expectedStatusCodes:[At.status.OK]}).then(async r=>({data:await r.json()}))}async findMeAsProjectMember(){return this.fetch({uri:"/iam/members/me",method:"GET",expectedStatusCodes:[At.status.OK]}).then(async e=>e.json())}};co.IAMService=ll});var ob=o(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.IdentityService=void 0;var uo=b(),px=E(),fl=class extends px.Service{async addIdentity(e,r){return this.fetch({uri:"/identities",method:"POST",body:e,qs:r,expectedStatusCodes:[uo.status.CREATED]}).then(async n=>n.json())}async findIdentities(e){return this.fetch({uri:"/identities",method:"GET",qs:e,expectedStatusCodes:[uo.status.OK],stringifyOptions:{arrayFormat:"repeat"}}).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=fl});var ab=o(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.IdentityProviderService=void 0;var fo=b(),vx=E(),hl=class extends vx.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=hl});var cb=o(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.IssuerService=void 0;var Xr=b(),Sx=E(),yl=class extends Sx.Service{async create(e){return this.fetch({uri:"/issuers",method:"POST",body:e,expectedStatusCodes:[Xr.status.CREATED]}).then(async r=>r.json())}async projectPublicFields(e){return this.fetch({uri:"/issuers",method:"GET",qs:e,expectedStatusCodes:[Xr.status.OK]}).then(async r=>r.json())}async findById(e){return this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[Xr.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:[Xr.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/issuers/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Xr.status.NO_CONTENT]})}};yo.IssuerService=yl});var db=o(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.MeService=void 0;var ub=b(),mx=E(),pl=class extends mx.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async findMyProjects(e){return this.fetch({uri:"/members/me/projects",method:"GET",qs:e,expectedStatusCodes:[ub.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:[ub.status.OK]}).then(async r=>r.json())}};po.MeService=pl});var lb=o(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.MemberService=void 0;var Pt=b(),wt=Y(),_x=E(),vl=class extends _x.Service{async createWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchWebApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.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:[Pt.status.NO_CONTENT]})}async deleteWebApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.WebApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}async createSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"POST",body:e,expectedStatusCodes:[Pt.status.NO_CONTENT]})}async searchSoftwareApplications(e){return this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}`,method:"GET",qs:e,expectedStatusCodes:[Pt.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:[Pt.status.NO_CONTENT]})}async deleteSoftwareApplication(e){await this.fetch({uri:`/members/${wt.factory.creativeWorkType.SoftwareApplication}/${e.member.id}`,method:"DELETE",expectedStatusCodes:[Pt.status.NO_CONTENT]})}};vo.MemberService=vl});var fb=o(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.MemberProgramService=void 0;var en=b(),Ox=E(),Sl=class extends Ox.Service{async projectMemberPrograms(e){return this.fetch({uri:"/memberPrograms",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async projectMemberProgramTiers(e){return this.fetch({uri:"/memberProgramTiers",method:"GET",qs:e,expectedStatusCodes:[en.status.OK]}).then(async r=>r.json())}async create(e){await this.fetch({uri:"/memberPrograms",method:"POST",body:e,expectedStatusCodes:[en.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:[en.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:[en.status.NO_CONTENT]})}};So.MemberProgramService=Sl});var hb=o(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.MerchantReturnPolicyService=void 0;var tn=b(),Tx=E(),ml=class extends Tx.Service{async create(e){return this.fetch({uri:"/merchantReturnPolicies",method:"POST",body:e,expectedStatusCodes:[tn.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/merchantReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[tn.status.OK]}).then(async r=>({data:await r.json()}))}async findById(e){return this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"GET",expectedStatusCodes:[tn.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[tn.status.NO_CONTENT]})}async deleteById(e){await this.fetch({uri:`/merchantReturnPolicies/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[tn.status.NO_CONTENT]})}};mo.MerchantReturnPolicyService=ml});var yb=o(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.MessageService=void 0;var Ex=b(),Cx=E(),_l=class extends Cx.Service{async search(e){return this.fetch({uri:"/messages",method:"GET",qs:e,expectedStatusCodes:[Ex.status.OK]}).then(async r=>r.json())}};_o.MessageService=_l});var pb=o(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.MovieTicketTypeService=void 0;var Oo=b(),gx=E(),To="/movieTicketTypes",Ol=class extends gx.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=Ol});var vb=o(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.OrderService=void 0;var Co=b(),bx=E(),Tl=class extends bx.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=Tl});var Sb=o(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.OwnershipInfoService=void 0;var Ax=b(),Px=E(),El=class extends Px.Service{async search(e){return this.fetch({uri:"/ownershipInfos",method:"GET",qs:e,expectedStatusCodes:[Ax.status.OK]}).then(async r=>({data:await r.json()}))}};bo.OwnershipInfoService=El});var mb=o(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.PaymentProductService=void 0;var fr=b(),wx=E(),Cl=class extends wx.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())}};Ao.PaymentProductService=Cl});var _b=o(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.PaymentServiceChannelService=void 0;var Po=b(),Rx=E(),gl=class extends Rx.Service{async create(e){return this.fetch({uri:"/paymentServiceChannels",method:"POST",body:e,expectedStatusCodes:[Po.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/paymentServiceChannels",method:"GET",qs:e,expectedStatusCodes:[Po.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:[Po.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/paymentServiceChannels/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[Po.status.NO_CONTENT]})}};wo.PaymentServiceChannelService=gl});var Tb=o(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.PendingReservationService=void 0;var Ob=b(),Mx=E(),bl=class extends Mx.Service{async find(e){return this.fetch({uri:"/pendingReservations",method:"GET",qs:e,expectedStatusCodes:[Ob.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:[Ob.status.OK]}).then(async n=>n.json())}};Ro.PendingReservationService=bl});var Cb=o(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.PermissionService=void 0;var Eb=b(),Ix=E(),Al=class extends Ix.Service{async findMyPermissions(){return this.fetch({uri:"/permissions",method:"GET",expectedStatusCodes:[Eb.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:[Eb.status.OK]}).then(async n=>n.json())}};Mo.PermissionService=Al});var bb=o(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.PersonService=void 0;var gb=b(),qx=E(),Pl=class extends qx.Service{async findPeople(e){return this.fetch({uri:"/people",method:"GET",qs:e,expectedStatusCodes:[gb.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:[gb.status.OK],qs:{iss:n}}).then(async s=>s.json())}};Io.PersonService=Pl});var Ab=o(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.PlaceService=void 0;var rn=b(),nn=Y(),Nx=E(),wl=class extends Nx.Service{async deleteMovieTheater(e){await this.fetch({uri:`/places/${nn.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[rn.status.NO_CONTENT]})}async findRoomSeatCount(e){let{branchCode:r,movieTheaterCode:n}=e;return this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n},expectedStatusCodes:[rn.status.OK]}).then(async s=>s.json())}async deleteRoomByBranchCode(e,r){let{movieTheaterCode:n}=r;await this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoom}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n},body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}async findSectionSeatCount(e){let{branchCode:r,movieTheaterCode:n,roomCode:s}=e;return this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(r))}/seatCount`,method:"GET",qs:{movieTheaterCode:n,roomCode:s},expectedStatusCodes:[rn.status.OK]}).then(async i=>i.json())}async deleteSectionByBranchCode(e,r){let{movieTheaterCode:n,roomCode:s}=r;await this.fetch({uri:`/places/${nn.factory.placeType.ScreeningRoomSection}/${encodeURIComponent(String(e.branchCode))}`,method:"DELETE",qs:{movieTheaterCode:n,roomCode:s},body:e,expectedStatusCodes:[rn.status.NO_CONTENT]})}};qo.PlaceService=wl});var Pb=o(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.HasPOSService=void 0;var No=b(),jo=Y(),jx=E(),Rl=class extends jx.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=Rl});var wb=o(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.PriceSpecificationService=void 0;var Uo=b(),xx=E(),Ml=class extends xx.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=Ml});var Rb=o(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.ProductService=void 0;var sn=b(),Ux=E(),on="/products",Il=class extends Ux.Service{async createProduct(e){return this.fetch({uri:on,method:"POST",body:e,expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async createIfNotExist(e){return this.fetch({uri:on,method:"POST",body:e,qs:{createIfNotExist:!0},expectedStatusCodes:[sn.status.CREATED]}).then(async r=>r.json())}async findProductById(e){let{id:r,...n}=e;return this.fetch({uri:`${on}/${encodeURIComponent(String(r))}`,method:"GET",expectedStatusCodes:[sn.status.OK],qs:n}).then(async s=>s.json())}async updateProduct(e){await this.fetch({uri:`${on}/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[sn.status.NO_CONTENT]})}async deleteProductById(e){await this.fetch({uri:`${on}/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[sn.status.NO_CONTENT]})}};Lo.ProductService=Il});var Mb=o(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.ProjectService=void 0;var Fo=b(),Dx=E(),ql=class extends Dx.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=ql});var Ib=o(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.ProjectMakesOfferService=void 0;var Bo=b(),Lx=E(),Nl=class extends Lx.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]})}};Go.ProjectMakesOfferService=Nl});var qb=o($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.ReservationService=void 0;var Fx=b(),kx=E(),jl=class extends kx.Service{async update(e){await this.fetch({uri:`/reservations/${encodeURIComponent(String(e.id))}`,method:"PATCH",body:e.update,expectedStatusCodes:[Fx.status.NO_CONTENT]})}};$o.ReservationService=jl});var Nb=o(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.OfferService=void 0;var xl=b(),Bx=E(),Ul=class extends Bx.Service{async create(e){return this.fetch({uri:"/offers",method:"POST",body:e,expectedStatusCodes:[xl.status.CREATED]}).then(async r=>r.json())}async search(e){return this.fetch({uri:"/offers",method:"GET",qs:e,expectedStatusCodes:[xl.status.OK]}).then(async r=>r.json())}async update(e){await this.fetch({uri:`/offers/${encodeURIComponent(String(e.id))}`,method:"PUT",body:e,expectedStatusCodes:[xl.status.NO_CONTENT]})}};Ko.OfferService=Ul});var jb=o(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.OfferCatalogService=void 0;var Wo=b(),Gx=E(),Dl=class extends Gx.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=Dl});var xb=o(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.OfferCatalogItemService=void 0;var Ll=b(),$x=E(),Fl=class extends $x.Service{async search(e){return this.fetch({uri:"/offerCatalogItems",method:"GET",qs:e,expectedStatusCodes:[Ll.status.OK]}).then(async r=>r.json())}async deleteById(e){await this.fetch({uri:`/offerCatalogItems/${encodeURIComponent(String(e.id))}`,method:"DELETE",expectedStatusCodes:[Ll.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:[Ll.status.OK]}).then(async s=>s.json())}};Vo.OfferCatalogItemService=Fl});var Ub=o(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.OfferItemConditionService=void 0;var zo=b(),Kx=E(),kl=class extends Kx.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=kl});var Db=o(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.SellerService=void 0;var _e=b(),Wx=E(),Bl=class extends Wx.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=Bl});var Lb=o(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.SellerMakesOfferService=void 0;var Gl=b(),Hx=E(),$l=class extends Hx.Service{async findOffers(e){return this.fetch({uri:"/sellerMakesOffer",method:"GET",qs:e.qs,expectedStatusCodes:[Gl.status.OK]}).then(async r=>r.json())}async createOffersIfNotExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"PUT",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}async deleteOffersIfExists(e){await this.fetch({uri:"/sellerMakesOffer",method:"DELETE",body:e,expectedStatusCodes:[Gl.status.NO_CONTENT]})}};Zo.SellerMakesOfferService=$l});var Fb=o(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.SellerReturnPolicyService=void 0;var an=b(),Vx=E(),Kl=class extends Vx.Service{async create(e){return this.fetch({uri:"/sellerReturnPolicies",method:"POST",body:e,expectedStatusCodes:[an.status.CREATED]}).then(async r=>r.json())}async projectFields(e){return this.fetch({uri:"/sellerReturnPolicies",method:"GET",qs:e,expectedStatusCodes:[an.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:[an.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:[an.status.NO_CONTENT]})}async deleteById(e){let{id:r}=e;await this.fetch({uri:`/sellerReturnPolicies/${encodeURIComponent(String(r))}`,method:"DELETE",expectedStatusCodes:[an.status.NO_CONTENT]})}};Jo.SellerReturnPolicyService=Kl});var kb=o(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TaskService=void 0;var Wl=b(),zx=E(),Hl=class extends zx.Service{async create(e){return this.fetch({uri:`/tasks/${e.name}`,method:"POST",body:e,expectedStatusCodes:[Wl.status.CREATED]}).then(async r=>r.json())}async retryForciblyIfAborted(e){await this.fetch({uri:`/tasks/${e.id}/retryForciblyIfAborted`,method:"PUT",body:e,expectedStatusCodes:[Wl.status.NO_CONTENT]})}async projectFields(e){return this.fetch({uri:"/tasks",method:"GET",qs:e,expectedStatusCodes:[Wl.status.OK]}).then(async r=>r.json())}};Xo.TaskService=Hl});var Bb=o(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.TicketService=void 0;var Yx=b(),Qx=E(),Vl=class extends Qx.Service{async search(e){return this.fetch({uri:"/tickets",method:"GET",qs:e,expectedStatusCodes:[Yx.status.OK]}).then(async r=>r.json())}};ea.TicketService=Vl});var Gb=o(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.AssetTransactionService=void 0;var Zx=b(),Jx=E(),zl=class extends Jx.Service{async search(e){return this.fetch({uri:"/assetTransactions",method:"GET",qs:e,expectedStatusCodes:[Zx.status.OK]}).then(async r=>({data:await r.json()}))}};ta.AssetTransactionService=zl});var $b=o(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.PayAssetTransactionService=void 0;var ra=b(),hr=Y(),Xx=E(),Yl=class extends Xx.Service{async check(e){return this.fetch({uri:`/assetTransactions/${hr.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/${hr.factory.assetTransactionType.Pay}/${r}/confirm?transactionNumber=1`:`/assetTransactions/${hr.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/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/cancel?transactionNumber=1`:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${encodeURIComponent(String(e.id))}/cancel`,method:"PUT",expectedStatusCodes:[ra.status.NO_CONTENT]})}async searchGMOTrade(e){return this.fetch({uri:`/assetTransactions/${hr.factory.assetTransactionType.Pay}/${e.transactionNumber}/searchTradeResult`,method:"GET",expectedStatusCodes:[ra.status.OK]}).then(async r=>r.json())}};na.PayAssetTransactionService=Yl});var Kb=o(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.ReserveAssetTransactionService=void 0;var sa=b(),eU=E(),Ql=class extends eU.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=Ql});var Wb=o(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.TokenService=void 0;var tU=E(),Zl=class extends tU.Service{};oa.TokenService=Zl});var Vb=o(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.PlaceOrderTransactionService=void 0;var Hb=b(),rU=Y(),nU=E(),Jl=class extends nU.Service{typeOf=rU.factory.transactionType.PlaceOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[Hb.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:[Hb.status.OK]}).then(async s=>s.json())}};aa.PlaceOrderTransactionService=Jl});var zb=o(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.ReturnOrderTransactionService=void 0;var sU=b(),iU=Y(),oU=E(),Xl=class extends oU.Service{typeOf=iU.factory.transactionType.ReturnOrder;async search(e){return this.fetch({uri:`/transactions/${this.typeOf}`,method:"GET",qs:e,expectedStatusCodes:[sU.status.OK]}).then(async r=>({data:await r.json()}))}};ca.ReturnOrderTransactionService=Xl});var Yb=o(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.TransactionNumberService=void 0;var aU=b(),cU=E(),ef=class extends cU.Service{async publish(){return this.fetch({uri:"/transactionNumbers",method:"POST",expectedStatusCodes:[aU.status.CREATED]}).then(async e=>e.json())}};ua.TransactionNumberService=ef});var Qb=o(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.UserPoolService=void 0;var tf=b(),uU=E(),rf=class extends uU.Service{async findById(e){return this.fetch({uri:`/userPools/${e.userPoolId}`,method:"GET",expectedStatusCodes:[tf.status.OK]}).then(async r=>r.json())}async searchClients(e){return this.fetch({uri:`/userPools/${e.userPoolId}/clients`,method:"GET",qs:e,expectedStatusCodes:[tf.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:[tf.status.OK]}).then(async r=>r.json())}};da.UserPoolService=rf});var Zb=o(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.WebSiteService=void 0;var la=b(),dU=E(),nf=class extends dU.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=nf});var Jb=o($e=>{"use strict";var lU=$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]})),fU=$e&&$e.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F=$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"&&lU(r,e,n[s]);return fU(r,e),r}})();Object.defineProperty($e,"__esModule",{value:!0});$e.ChevreConsole=$e.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 c;c=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 q;q=t.HasMerchantReturnPolicy||(t.HasMerchantReturnPolicy={});let N;N=t.IAM||(t.IAM={});let C;C=t.Identity||(t.Identity={});let M;M=t.IdentityProvider||(t.IdentityProvider={});let D;D=t.Issuer||(t.Issuer={});let k;k=t.Me||(t.Me={});let K;K=t.Member||(t.Member={});let x;x=t.MemberProgram||(t.MemberProgram={});let G;G=t.MerchantReturnPolicy||(t.MerchantReturnPolicy={});let W;W=t.Message||(t.Message={});let $;$=t.MovieTicketType||(t.MovieTicketType={});let Q;Q=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(U){let gr;gr=U.HasPOS||(U.HasPOS={})})(tt=t.place||(t.place={}));let Ue;Ue=t.PriceSpecification||(t.PriceSpecification={});let a;a=t.Product||(t.Product={});let u;u=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 A;A=t.OfferCatalogItem||(t.OfferCatalogItem={});let P;P=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 Ae;Ae=t.Ticket||(t.Ticket={});let Ee;Ee=t.AssetTransaction||(t.AssetTransaction={});let It;(function(U){let gr;gr=U.Pay||(U.Pay={});let En;En=U.Reserve||(U.Reserve={})})(It=t.assetTransaction||(t.assetTransaction={}));let ye;ye=t.Token||(t.Token={});let Pe;(function(U){let gr;gr=U.PlaceOrder||(U.PlaceOrder={});let En;En=U.ReturnOrder||(U.ReturnOrder={})})(Pe=t.transaction||(t.transaction={}));let ot;ot=t.TransactionNumber||(t.TransactionNumber={});let Cr;Cr=t.UserPool||(t.UserPool={});let $P;$P=t.WebSite||(t.WebSite={})})(_||($e.service=_={}));var sf=class{options;constructor(e){this.options=e}async createAccountingReportInstance(e){return _.AccountingReport.svc===void 0&&(_.AccountingReport.svc=(await Promise.resolve().then(()=>F(Fg()))).AccountingReportService),new _.AccountingReport.svc({...this.options,...e,retryableStatusCodes:[]})}async createAccountTitleInstance(e){return _.AccountTitle.svc===void 0&&(_.AccountTitle.svc=(await Promise.resolve().then(()=>F(kg()))).AccountTitleService),new _.AccountTitle.svc({...this.options,...e,retryableStatusCodes:[]})}async createActionInstance(e){return _.Action.svc===void 0&&(_.Action.svc=(await Promise.resolve().then(()=>F(Bg()))).ActionService),new _.Action.svc({...this.options,...e,retryableStatusCodes:[]})}async createAdditionalPropertyInstance(e){return _.AdditionalProperty.svc===void 0&&(_.AdditionalProperty.svc=(await Promise.resolve().then(()=>F(Gg()))).AdditionalPropertyService),new _.AdditionalProperty.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateOfferInstance(e){return _.AggregateOffer.svc===void 0&&(_.AggregateOffer.svc=(await Promise.resolve().then(()=>F(Kg()))).AggregateOfferService),new _.AggregateOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregateReservationInstance(e){return _.AggregateReservation.svc===void 0&&(_.AggregateReservation.svc=(await Promise.resolve().then(()=>F(Wg()))).AggregateReservationService),new _.AggregateReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createAggregationInstance(){return _.Aggregation.svc===void 0&&(_.Aggregation.svc=(await Promise.resolve().then(()=>F(Hg()))).AggregationService),new _.Aggregation.svc({...this.options})}async createAuthorizationInstance(e){return _.Authorization.svc===void 0&&(_.Authorization.svc=(await Promise.resolve().then(()=>F(Vg()))).AuthorizationService),new _.Authorization.svc({...this.options,...e,retryableStatusCodes:[]})}async createCreativeWorkInstance(e){return _.CreativeWork.svc===void 0&&(_.CreativeWork.svc=(await Promise.resolve().then(()=>F(zg()))).CreativeWorkService),new _.CreativeWork.svc({...this.options,...e,retryableStatusCodes:[]})}async createCategoryCodeInstance(e){return _.CategoryCode.svc===void 0&&(_.CategoryCode.svc=(await Promise.resolve().then(()=>F(Yg()))).CategoryCodeService),new _.CategoryCode.svc({...this.options,...e,retryableStatusCodes:[]})}async createCustomerInstance(e){return _.Customer.svc===void 0&&(_.Customer.svc=(await Promise.resolve().then(()=>F(Qg()))).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(Jg()))).EmailMessageService),new _.EmailMessage.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventInstance(e){return _.Event.svc===void 0&&(_.Event.svc=(await Promise.resolve().then(()=>F(eb()))).EventService),new _.Event.svc({...this.options,...e,retryableStatusCodes:[]})}async createEventSeriesInstance(e){return _.EventSeries.svc===void 0&&(_.EventSeries.svc=(await Promise.resolve().then(()=>F(nb()))).EventSeriesService),new _.EventSeries.svc({...this.options,...e,retryableStatusCodes:[]})}async createHasMerchantReturnPolicyInstance(e){return _.HasMerchantReturnPolicy.svc===void 0&&(_.HasMerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(sb()))).HasMerchantReturnPolicyService),new _.HasMerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createIAMInstance(e){return _.IAM.svc===void 0&&(_.IAM.svc=(await Promise.resolve().then(()=>F(ib()))).IAMService),new _.IAM.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityInstance(e){return _.Identity.svc===void 0&&(_.Identity.svc=(await Promise.resolve().then(()=>F(ob()))).IdentityService),new _.Identity.svc({...this.options,...e,retryableStatusCodes:[]})}async createIdentityProviderInstance(e){return _.IdentityProvider.svc===void 0&&(_.IdentityProvider.svc=(await Promise.resolve().then(()=>F(ab()))).IdentityProviderService),new _.IdentityProvider.svc({...this.options,...e,retryableStatusCodes:[]})}async createIssuerInstance(e){return _.Issuer.svc===void 0&&(_.Issuer.svc=(await Promise.resolve().then(()=>F(cb()))).IssuerService),new _.Issuer.svc({...this.options,...e,retryableStatusCodes:[]})}async createMeInstance(){return _.Me.svc===void 0&&(_.Me.svc=(await Promise.resolve().then(()=>F(db()))).MeService),new _.Me.svc({...this.options})}async createMemberInstance(e){return _.Member.svc===void 0&&(_.Member.svc=(await Promise.resolve().then(()=>F(lb()))).MemberService),new _.Member.svc({...this.options,...e,retryableStatusCodes:[]})}async createMemberProgramInstance(e){return _.MemberProgram.svc===void 0&&(_.MemberProgram.svc=(await Promise.resolve().then(()=>F(fb()))).MemberProgramService),new _.MemberProgram.svc({...this.options,...e,retryableStatusCodes:[]})}async createMerchantReturnPolicyInstance(e){return _.MerchantReturnPolicy.svc===void 0&&(_.MerchantReturnPolicy.svc=(await Promise.resolve().then(()=>F(hb()))).MerchantReturnPolicyService),new _.MerchantReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createMessageInstance(e){return _.Message.svc===void 0&&(_.Message.svc=(await Promise.resolve().then(()=>F(yb()))).MessageService),new _.Message.svc({...this.options,...e,retryableStatusCodes:[]})}async createMovieTicketTypeInstance(e){return _.MovieTicketType.svc===void 0&&(_.MovieTicketType.svc=(await Promise.resolve().then(()=>F(pb()))).MovieTicketTypeService),new _.MovieTicketType.svc({...this.options,...e,retryableStatusCodes:[]})}async createOrderInstance(e){return _.Order.svc===void 0&&(_.Order.svc=(await Promise.resolve().then(()=>F(vb()))).OrderService),new _.Order.svc({...this.options,...e,retryableStatusCodes:[]})}async createOwnershipInfoInstance(e){return _.OwnershipInfo.svc===void 0&&(_.OwnershipInfo.svc=(await Promise.resolve().then(()=>F(Sb()))).OwnershipInfoService),new _.OwnershipInfo.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentProductInstance(e){return _.PaymentProduct.svc===void 0&&(_.PaymentProduct.svc=(await Promise.resolve().then(()=>F(mb()))).PaymentProductService),new _.PaymentProduct.svc({...this.options,...e,retryableStatusCodes:[]})}async createPaymentServiceChannelInstance(e){return _.PaymentServiceChannel.svc===void 0&&(_.PaymentServiceChannel.svc=(await Promise.resolve().then(()=>F(_b()))).PaymentServiceChannelService),new _.PaymentServiceChannel.svc({...this.options,...e,retryableStatusCodes:[]})}async createPendingReservationInstance(e){return _.PendingReservation.svc===void 0&&(_.PendingReservation.svc=(await Promise.resolve().then(()=>F(Tb()))).PendingReservationService),new _.PendingReservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createPermissionInstance(e){return _.Permission.svc===void 0&&(_.Permission.svc=(await Promise.resolve().then(()=>F(Cb()))).PermissionService),new _.Permission.svc({...this.options,...e,retryableStatusCodes:[]})}async createPersonInstance(e){return _.Person.svc===void 0&&(_.Person.svc=(await Promise.resolve().then(()=>F(bb()))).PersonService),new _.Person.svc({...this.options,...e,retryableStatusCodes:[]})}async createPlaceInstance(e){return _.Place.svc===void 0&&(_.Place.svc=(await Promise.resolve().then(()=>F(Ab()))).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(Pb()))).HasPOSService),new _.place.HasPOS.svc({...this.options,...e,retryableStatusCodes:[]})}async createPriceSpecificationInstance(e){return _.PriceSpecification.svc===void 0&&(_.PriceSpecification.svc=(await Promise.resolve().then(()=>F(wb()))).PriceSpecificationService),new _.PriceSpecification.svc({...this.options,...e,retryableStatusCodes:[]})}async createProductInstance(e){return _.Product.svc===void 0&&(_.Product.svc=(await Promise.resolve().then(()=>F(Rb()))).ProductService),new _.Product.svc({...this.options,...e,retryableStatusCodes:[]})}async createProjectInstance(){return _.Project.svc===void 0&&(_.Project.svc=(await Promise.resolve().then(()=>F(Mb()))).ProjectService),new _.Project.svc({...this.options})}async createProjectMakesOfferInstance(e){return _.ProjectMakesOffer.svc===void 0&&(_.ProjectMakesOffer.svc=(await Promise.resolve().then(()=>F(Ib()))).ProjectMakesOfferService),new _.ProjectMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createReservationInstance(e){return _.Reservation.svc===void 0&&(_.Reservation.svc=(await Promise.resolve().then(()=>F(qb()))).ReservationService),new _.Reservation.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferInstance(e){return _.Offer.svc===void 0&&(_.Offer.svc=(await Promise.resolve().then(()=>F(Nb()))).OfferService),new _.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return _.OfferCatalog.svc===void 0&&(_.OfferCatalog.svc=(await Promise.resolve().then(()=>F(jb()))).OfferCatalogService),new _.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogItemInstance(e){return _.OfferCatalogItem.svc===void 0&&(_.OfferCatalogItem.svc=(await Promise.resolve().then(()=>F(xb()))).OfferCatalogItemService),new _.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferItemConditionInstance(e){return _.OfferItemCondition.svc===void 0&&(_.OfferItemCondition.svc=(await Promise.resolve().then(()=>F(Ub()))).OfferItemConditionService),new _.OfferItemCondition.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerInstance(e){return _.Seller.svc===void 0&&(_.Seller.svc=(await Promise.resolve().then(()=>F(Db()))).SellerService),new _.Seller.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerMakesOfferInstance(e){return _.SellerMakesOffer.svc===void 0&&(_.SellerMakesOffer.svc=(await Promise.resolve().then(()=>F(Lb()))).SellerMakesOfferService),new _.SellerMakesOffer.svc({...this.options,...e,retryableStatusCodes:[]})}async createSellerReturnPolicyInstance(e){return _.SellerReturnPolicy.svc===void 0&&(_.SellerReturnPolicy.svc=(await Promise.resolve().then(()=>F(Fb()))).SellerReturnPolicyService),new _.SellerReturnPolicy.svc({...this.options,...e,retryableStatusCodes:[]})}async createTaskInstance(e){return _.Task.svc===void 0&&(_.Task.svc=(await Promise.resolve().then(()=>F(kb()))).TaskService),new _.Task.svc({...this.options,...e,retryableStatusCodes:[]})}async createTicketInstance(e){return _.Ticket.svc===void 0&&(_.Ticket.svc=(await Promise.resolve().then(()=>F(Bb()))).TicketService),new _.Ticket.svc({...this.options,...e,retryableStatusCodes:[]})}async createAssetTransactionInstance(e){return _.AssetTransaction.svc===void 0&&(_.AssetTransaction.svc=(await Promise.resolve().then(()=>F(Gb()))).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($b()))).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(Kb()))).ReserveAssetTransactionService),new _.assetTransaction.Reserve.svc({...this.options,...e,retryableStatusCodes:[]})}async createTokenInstance(e){return _.Token.svc===void 0&&(_.Token.svc=(await Promise.resolve().then(()=>F(Wb()))).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(Vb()))).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(zb()))).ReturnOrderTransactionService),new _.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[]})}async createTransactionNumberInstance(e){return _.TransactionNumber.svc===void 0&&(_.TransactionNumber.svc=(await Promise.resolve().then(()=>F(Yb()))).TransactionNumberService),new _.TransactionNumber.svc({...this.options,...e,retryableStatusCodes:[]})}async createUserPoolInstance(e){return _.UserPool.svc===void 0&&(_.UserPool.svc=(await Promise.resolve().then(()=>F(Qb()))).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:[]})}};$e.ChevreConsole=sf});var Xb=o(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.PaymentService=void 0;var me=b(),ve=Y(),hU=E(),yU=["awashimakisen-production","awashimakisen-test"],of=class extends hU.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:c,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:c,...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:c,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(!yU.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:c,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 N=>N.json())}async authorizeMovieTicket(e,r){let{object:n,purpose:s,instrumentOptions:i}=e,{issuedThrough:c,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:c,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:c,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,...c!=null?{creditCard:c}: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 c=>c.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 c=>c.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 c=>c.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=of});var eA=o(Ke=>{"use strict";var pU=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]})),vU=Ke&&Ke.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),SU=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"&&pU(r,e,n[s]);return vU(r,e),r}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ChevrePay=Ke.service=void 0;var cn;(function(t){let e;e=t.Payment||(t.Payment={})})(cn||(Ke.service=cn={}));var af=class{options;constructor(e){this.options=e}async createPaymentInstance(e){return cn.Payment.svc===void 0&&(cn.Payment.svc=(await Promise.resolve().then(()=>SU(Xb()))).PaymentService),new cn.Payment.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};Ke.ChevrePay=af});var rA=o(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.OfferService=void 0;var cf=b(),tA=Y(),mU=E(),uf=class extends mU.Service{async issueEventServiceOfferTicket(e){let{ticketedOffer:r,audience:n,eventId:s,eventOfferId:i}=e;return this.fetch({uri:`/offers/${tA.factory.product.ProductType.EventService}/tickets`,method:"POST",expectedStatusCodes:[cf.status.CREATED],body:{ticketedOffer:r},qs:{audience:{id:n.id},eventId:s,...typeof i=="string"?{eventOfferId:i}:void 0}}).then(async c=>c.json())}async authorizeEventService(e,r){return this.fetch({uri:`/offers/${tA.factory.product.ProductType.EventService}/authorize`,method:"POST",expectedStatusCodes:[cf.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:[cf.status.NO_CONTENT],body:s,qs:{purpose:{id:e.purpose.id}}})}};ya.OfferService=uf});var nA=o(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.PlaceOrderTransactionService=void 0;var un=b(),_U=Y(),OU=E(),df=class extends OU.Service{typeOf=_U.factory.transactionType.PlaceOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[un.status.OK]}).then(async r=>r.json())}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[un.status.NO_CONTENT],body:e.agent})}async changeExpiringDate(e){let{id:r,...n}=e;await this.fetch({uri:`/transactions/${this.typeOf}/${r}/expires`,method:"PUT",expectedStatusCodes:[un.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:[un.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:[un.status.NO_CONTENT]})}};pa.PlaceOrderTransactionService=df});var sA=o(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.ReturnOrderTransactionService=void 0;var dn=b(),TU=Y(),EU=E(),lf=class extends EU.Service{typeOf=TU.factory.transactionType.ReturnOrder;async start(e){return this.fetch({uri:`/transactions/${this.typeOf}/start`,method:"POST",body:e,expectedStatusCodes:[dn.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:[dn.status.NO_CONTENT,dn.status.OK]})}async setProfile(e){await this.fetch({uri:`/transactions/${this.typeOf}/${e.id}/agent`,method:"PUT",expectedStatusCodes:[dn.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:[dn.status.NO_CONTENT]})}};va.ReturnOrderTransactionService=lf});var iA=o(We=>{"use strict";var CU=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]})),gU=We&&We.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ff=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"&&CU(r,e,n[s]);return gU(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 hf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return nt.Offer.svc===void 0&&(nt.Offer.svc=(await Promise.resolve().then(()=>ff(rA()))).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(()=>ff(nA()))).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(()=>ff(sA()))).ReturnOrderTransactionService),new nt.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};We.ChevreTxn=hf});var oA=o(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.OfferService=void 0;var ln=b(),fn=Y(),bU=E(),yf=class extends bU.Service{async acceptOffer(e){let{object:r,purpose:n,potentialActions:s}=e;return this.fetch({uri:`/offers/${fn.factory.product.ProductType.EventService}ByCOA/accept`,method:"POST",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}`,method:"GET",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/accept/${r.id}/authorize`,method:"POST",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/authorize/${r}/void`,method:"POST",expectedStatusCodes:[ln.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/${fn.factory.product.ProductType.EventService}ByCOA/authorize/${n}/void/${r}`,method:"GET",expectedStatusCodes:[ln.status.OK],qs:{purpose:{id:s.id}}}).then(async i=>i.json())}};Sa.OfferService=yf});var aA=o(He=>{"use strict";var AU=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]})),PU=He&&He.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wU=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"&&AU(r,e,n[s]);return PU(r,e),r}})();Object.defineProperty(He,"__esModule",{value:!0});He.ChevreTxc=He.service=void 0;var hn;(function(t){let e;e=t.Offer||(t.Offer={})})(hn||(He.service=hn={}));var pf=class{options;constructor(e){this.options=e}async createOfferInstance(e){return hn.Offer.svc===void 0&&(hn.Offer.svc=(await Promise.resolve().then(()=>wU(oA()))).OfferService),new hn.Offer.svc({...this.options,...e,retryableStatusCodes:[...Array.isArray(e.retryableStatusCodes)?e.retryableStatusCodes:[]]})}};He.ChevreTxc=pf});var cA=o(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.CategoryCodeService=void 0;var ma=b(),RU=E(),vf=class extends RU.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=vf});var uA=o(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EmailMessageService=void 0;var Oa=b(),MU=E(),Sf=class extends MU.Service{constructor(e){super({...e,retryableStatusCodes:[Oa.status.BAD_GATEWAY,Oa.status.FORBIDDEN,Oa.status.UNAUTHORIZED]})}async search(){return this.fetch({uri:"/emailMessages",method:"GET",expectedStatusCodes:[Oa.status.OK]}).then(async e=>({data:await e.json()}))}};Ta.EmailMessageService=Sf});var dA=o(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.EventService=void 0;var Ie=b(),yr=Y(),IU=E(),mf=class extends IU.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 c=>{let d=await c.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 c=>c.json())}};Ea.EventService=mf});var lA=o(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.PlaceService=void 0;var Ca=b(),qU=Y(),NU=E(),_f=class extends NU.Service{constructor(e){super({...e,retryableStatusCodes:[Ca.status.BAD_GATEWAY,Ca.status.FORBIDDEN,Ca.status.UNAUTHORIZED]})}async searchScreeningRooms(e){return this.fetch({uri:`/places/${qU.factory.placeType.ScreeningRoom}`,method:"GET",qs:e,expectedStatusCodes:[Ca.status.OK]}).then(async r=>({data:await r.json()}))}};ga.PlaceService=_f});var fA=o(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.HasPOSService=void 0;var ba=b(),jU=Y(),xU=E(),Of=class extends xU.Service{constructor(e){super({...e,retryableStatusCodes:[ba.status.BAD_GATEWAY,ba.status.FORBIDDEN,ba.status.UNAUTHORIZED]})}async search(e){return this.fetch({uri:`/places/${jU.factory.placeType.MovieTheater}/${encodeURIComponent(String(e.operater.id))}/hasPOS`,method:"GET",qs:e.qs,expectedStatusCodes:[ba.status.OK]}).then(async r=>r.json())}};Aa.HasPOSService=Of});var hA=o(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.SellerService=void 0;var kt=b(),UU=E(),Tf=class extends UU.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()}))}};Pa.SellerService=Tf});var pA=o(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.service=void 0;var DU=cA(),LU=uA(),FU=dA(),kU=lA(),BU=fA(),GU=hA(),yA;(function(t){class e extends DU.CategoryCodeService{}t.CategoryCode=e;class r extends LU.EmailMessageService{}t.EmailMessage=r;class n extends FU.EventService{}t.Event=n;class s extends kU.PlaceService{}t.Place=s;let i;(function(d){class f extends BU.HasPOSService{}d.HasPOS=f})(i=t.place||(t.place={}));class c extends GU.SellerService{}t.Seller=c})(yA||(wa.service=yA={}))});var vA=o(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.CreativeWorkService=void 0;var $U=te(),KU=E(),Ef=class extends KU.Service{async upsertMoviesByIdentifier(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,$U.loadChevreAdmin)({auth:r,endpoint:n})).createMovieInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertMoviesByIdentifier(e)}};Ra.CreativeWorkService=Ef});var SA=o(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.CustomerService=void 0;var WU=te(),HU=E(),Cf=class extends HU.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,WU.loadChevreAdmin)({auth:r,endpoint:n})).createCustomerInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).search(e)}};Ma.CustomerService=Cf});var mA=o(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.EventService=void 0;var pr=Y(),Ia=te(),VU=E(),gf=class extends VU.Service{async createIfNotExistByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).createIfNotExistByIdentifier(e,{...r,disableOverwriteMakesOffer:!1,useExtensibleOffer:r.useExtensibleOffer===!0})}async updateEventsByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d}=this.options;await(await(await(0,Ia.loadChevreAdmin)({auth:n,endpoint:s,disableAutoRetry:d})).createEventInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).updateEventsByIdentifier(e,{...r,disableOverwriteMakesOffer:!1})}async findEvents(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c}=this.options;return(await(await(0,Ia.loadChevreAdmin)({auth:r,endpoint:n,disableAutoRetry:c})).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,c=await(0,Ia.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 c.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}})}};qa.EventService=gf});var _A=o(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.EventOfferService=void 0;var zU=te(),YU=E(),bf=class extends YU.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,zU.loadChevreAdmin)({auth:e,endpoint:r});this.chevreAdminEventOffer=await i.createEventOfferInstance({project:n,seller:{id:typeof s?.id=="string"?s.id:""}})}return this.chevreAdminEventOffer}};Na.EventOfferService=bf});var OA=o(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.EventSeriesService=void 0;var QU=te(),ZU=E(),Af=class extends ZU.Service{async addEventSeriesByVersion(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options;await(await(await(0,QU.loadChevreAdmin)({auth:n,endpoint:s})).createEventSeriesInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).addEventSeriesByVersion(e,{...r,upsert:!0})}};ja.EventSeriesService=Af});var EA=o(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.MeService=void 0;var TA=te(),JU=E(),Pf=class extends JU.Service{constructor(e){super({...e,project:{id:""},retryableStatusCodes:[]})}async searchProjects(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,TA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMyProjects(e)}async findMySellers(e){let{auth:r,endpoint:n}=this.options;return(await(await(0,TA.loadChevreAdmin)({auth:r,endpoint:n})).createMeInstance()).findMySellers(e)}};xa.MeService=Pf});var bA=o(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.MovieTheaterService=void 0;var Ua=Y(),CA=te(),XU=E(),gA=20,wf=class extends XU.Service{async findMovieTheaters(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,CA.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Ua.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Ua.factory.errors.Argument("page","must be number");if(d<1||d>gA)throw new Ua.factory.errors.Argument("limit",`must be >=1 and <=${gA}`);if(f<1)throw new Ua.factory.errors.Argument("page","must be >=1");return(await c.createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findMovieTheaters(e)}async findEntranceGates(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,CA.loadChevreAdmin)({auth:r,endpoint:n})).createMovieTheaterInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findEntranceGates(e)}};Da.MovieTheaterService=wf});var AA=o(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.NoteAboutOrderService=void 0;var Rf=te(),eD=E(),Mf=class extends eD.Service{async createByIdentifierIfNotExist(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;await(await(await(0,Rf.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,Rf.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:c,seller:d}=this.options;await(await(await(0,Rf.loadChevreAdmin)({auth:s,endpoint:i})).createNoteAboutOrderInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""}})).updateById(String(e),{text:n})}};La.NoteAboutOrderService=Mf});var wA=o(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.OfferService=void 0;var mt=Y(),PA=te(),tD=E(),If=class extends tD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,PA.loadChevreAdmin)({auth:r,endpoint:n});if(typeof e.limit!="number")throw new mt.factory.errors.Argument("limit","must be number");if(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");return(await c.createOfferInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findUnitPriceOffers({id:{$in:Array.isArray(d)?d:void 0},identifier:{$in:Array.isArray(f)?f:void 0},limit:Math.min(e.limit,100),page:Math.max(e.page,1)})}async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,PA.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 c?.id=="string"?c.id:""}})).upsertByIdentifier(e,r)}};Fa.OfferService=If});var RA=o(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.OfferCatalogService=void 0;var yn=Y(),rD=te(),nD=E(),qf=class extends nD.Service{async upsertByIdentifier(e,r){let{auth:n,endpoint:s,project:i,seller:c}=this.options,d=await(0,rD.loadChevreAdmin)({auth:n,endpoint:s});e.forEach(({itemOffered:p})=>{let y=p?.typeOf;if(y!==yn.factory.product.ProductType.EventService&&y!==yn.factory.product.ProductType.Product)throw new yn.factory.errors.Argument("itemOffered.typeOf",`must be ${yn.factory.product.ProductType.EventService} or ${yn.factory.product.ProductType.Product}`)}),await(await d.createOfferCatalogInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};ka.OfferCatalogService=qf});var IA=o(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.OfferCatalogItemService=void 0;var MA=te(),sD=E(),Nf=class extends sD.Service{async search(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,d=await(await(0,MA.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:c}=this.options;await(await(await(0,MA.loadChevreAdmin)({auth:n,endpoint:s})).createOfferCatalogItemInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""}})).upsertByIdentifier(e,{...r,upsert:!0})}};Ba.OfferCatalogItemService=Nf});var qA=o($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.OrderService=void 0;var Rt=Y(),pn=te(),iD=E(),Ga=20,jf=class extends iD.Service{async findOrders(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,pn.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>Ga)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${Ga}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrders({...e,limit:d,page:f})}async findOrderAcceptedOffers(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,pn.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>Ga)throw new Rt.factory.errors.Argument("limit",`must be >=1 and <=${Ga}`);if(f<1)throw new Rt.factory.errors.Argument("page","must be >=1");return(await c.createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findOrderAcceptedOffers({...e,limit:d,page:f})}async findReturner(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,pn.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:c}=this.options;return(await(await(0,pn.loadChevreAdmin)({auth:n,endpoint:s})).createOrderInstance({project:i,seller:{id:typeof c?.id=="string"?c.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,pn.loadChevreAdmin)({auth:r,endpoint:n})).createOrderInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).updateChangeableAttributes({...e,orderNumber:String(e.orderNumber)})}};$a.OrderService=jf});var NA=o(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.PaymentMethodService=void 0;var oD=te(),aD=E(),xf=class extends aD.Service{async findPaymentMethods(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options;return(await(await(0,oD.loadChevreAdmin)({auth:r,endpoint:n})).createPaymentMethodInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).findPaymentMethods(e)}};Ka.PaymentMethodService=xf});var jA=o(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.ProductService=void 0;var vn=Y(),cD=te(),uD=E(),Uf=class extends uD.Service{async upsertByProductId(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,cD.loadChevreAdmin)({auth:r,endpoint:n});e.forEach(({typeOf:f})=>{if(f!==vn.factory.product.ProductType.EventService&&f!==vn.factory.product.ProductType.Product)throw new vn.factory.errors.Argument("typeOf",`must be ${vn.factory.product.ProductType.EventService} or ${vn.factory.product.ProductType.Product}`)}),await(await c.createProductInstance({project:s,seller:{id:typeof i?.id=="string"?i.id:""}})).upsertByProductId(e)}};Wa.ProductService=Uf});var UA=o(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.ReservationService=void 0;var Sn=Y(),Ha=te(),dD=E(),xA=20,Df=class extends dD.Service{async findReservations(e){let{auth:r,endpoint:n,project:s,seller:i}=this.options,c=await(0,Ha.loadChevreAdmin)({auth:r,endpoint:n}),{limit:d,page:f}=e;if(typeof d!="number")throw new Sn.factory.errors.Argument("limit","must be number");if(typeof f!="number")throw new Sn.factory.errors.Argument("page","must be number");if(d<1||d>xA)throw new Sn.factory.errors.Argument("limit",`must be >=1 and <=${xA}`);if(f<1)throw new Sn.factory.errors.Argument("page","must be >=1");return await(await c.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:c,project:d,seller:f}=this.options,p=await(0,Ha.loadChevreAdmin)({auth:i,endpoint:c}),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,Ha.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 Sn.factory.errors.ArgumentNull("seller.id");let c=await(0,Ha.loadChevreAdmin)({auth:r,endpoint:n}),d=String(e.object.id);await(await c.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})}};Va.ReservationService=Df});var DA=o(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.SellerService=void 0;var lD=te(),fD=E(),Lf=class extends fD.Service{async search(e){let{auth:r,endpoint:n,project:s}=this.options;return(await(await(0,lD.loadChevreAdmin)({auth:r,endpoint:n})).createSellerInstance({project:s})).search(e)}};za.SellerService=Lf});var LA=o(Ve=>{"use strict";var hD=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]})),yD=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"&&hD(r,e,n[s]);return yD(r,e),r}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.CloudAdmin=Ve.service=void 0;var B;(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 c;c=t.Me||(t.Me={});let d;d=t.MovieTheater||(t.MovieTheater={});let f;f=t.NoteAboutOrder||(t.NoteAboutOrder={});let p;p=t.Offer||(t.Offer={});let y;y=t.OfferCatalog||(t.OfferCatalog={});let S;S=t.OfferCatalogItem||(t.OfferCatalogItem={});let m;m=t.Order||(t.Order={});let g;g=t.PaymentMethod||(t.PaymentMethod={});let w;w=t.Product||(t.Product={});let R;R=t.Reservation||(t.Reservation={});let q;q=t.Seller||(t.Seller={})})(B||(Ve.service=B={}));var qe=[],Ff=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 B.CreativeWork.svc===void 0&&(B.CreativeWork.svc=(await Promise.resolve().then(()=>Ce(vA()))).CreativeWorkService),new B.CreativeWork.svc({...this.options,...e,retryableStatusCodes:qe})}async createCustomerInstance(e){return B.Customer.svc===void 0&&(B.Customer.svc=(await Promise.resolve().then(()=>Ce(SA()))).CustomerService),new B.Customer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventInstance(e){return B.Event.svc===void 0&&(B.Event.svc=(await Promise.resolve().then(()=>Ce(mA()))).EventService),new B.Event.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventOfferInstance(e){return B.EventOffer.svc===void 0&&(B.EventOffer.svc=(await Promise.resolve().then(()=>Ce(_A()))).EventOfferService),new B.EventOffer.svc({...this.options,...e,retryableStatusCodes:qe})}async createEventSeriesInstance(e){return B.EventSeries.svc===void 0&&(B.EventSeries.svc=(await Promise.resolve().then(()=>Ce(OA()))).EventSeriesService),new B.EventSeries.svc({...this.options,...e,retryableStatusCodes:qe})}async createMeInstance(){return B.Me.svc===void 0&&(B.Me.svc=(await Promise.resolve().then(()=>Ce(EA()))).MeService),new B.Me.svc({...this.options})}async createMovieTheaterInstance(e){return B.MovieTheater.svc===void 0&&(B.MovieTheater.svc=(await Promise.resolve().then(()=>Ce(bA()))).MovieTheaterService),new B.MovieTheater.svc({...this.options,...e,retryableStatusCodes:qe})}async createNoteInstance(e){return B.NoteAboutOrder.svc===void 0&&(B.NoteAboutOrder.svc=(await Promise.resolve().then(()=>Ce(AA()))).NoteAboutOrderService),new B.NoteAboutOrder.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferInstance(e){return B.Offer.svc===void 0&&(B.Offer.svc=(await Promise.resolve().then(()=>Ce(wA()))).OfferService),new B.Offer.svc({...this.options,...e,retryableStatusCodes:[]})}async createOfferCatalogInstance(e){return B.OfferCatalog.svc===void 0&&(B.OfferCatalog.svc=(await Promise.resolve().then(()=>Ce(RA()))).OfferCatalogService),new B.OfferCatalog.svc({...this.options,...e,retryableStatusCodes:qe})}async createOfferCatalogItemInstance(e){return B.OfferCatalogItem.svc===void 0&&(B.OfferCatalogItem.svc=(await Promise.resolve().then(()=>Ce(IA()))).OfferCatalogItemService),new B.OfferCatalogItem.svc({...this.options,...e,retryableStatusCodes:qe})}async createOrderInstance(e){return B.Order.svc===void 0&&(B.Order.svc=(await Promise.resolve().then(()=>Ce(qA()))).OrderService),new B.Order.svc({...this.options,...e,retryableStatusCodes:qe})}async createPaymentMethodInstance(e){return B.PaymentMethod.svc===void 0&&(B.PaymentMethod.svc=(await Promise.resolve().then(()=>Ce(NA()))).PaymentMethodService),new B.PaymentMethod.svc({...this.options,...e,retryableStatusCodes:qe})}async createProductInstance(e){return B.Product.svc===void 0&&(B.Product.svc=(await Promise.resolve().then(()=>Ce(jA()))).ProductService),new B.Product.svc({...this.options,...e,retryableStatusCodes:qe})}async createReservationInstance(e){return B.Reservation.svc===void 0&&(B.Reservation.svc=(await Promise.resolve().then(()=>Ce(UA()))).ReservationService),new B.Reservation.svc({...this.options,...e,retryableStatusCodes:qe})}async createSellerInstance(e){return B.Seller.svc===void 0&&(B.Seller.svc=(await Promise.resolve().then(()=>Ce(DA()))).SellerService),new B.Seller.svc({...this.options,...e,retryableStatusCodes:qe})}};Ve.CloudAdmin=Ff});var FA=o(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.OrderService=void 0;var Bt=te(),pD=E(),kf=class extends pD.Service{async placeOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,retryableStatusCodes:d}=this.options,f=await(0,Bt.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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})}};Ya.OrderService=kf});var kA=o(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.DeliveryService=void 0;var vD=te(),SD=E(),Bf=class extends SD.Service{async sendOrder(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,vD.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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})}};Qa.DeliveryService=Bf});var GA=o(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.ReservationService=void 0;var BA=te(),mD=E(),Gf=class extends mD.Service{async findByCode(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,f=await(0,BA.loadChevreAsset)({auth:r,endpoint:n,disableAutoRetry:c}),{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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options,p=await(0,BA.loadChevreAsset)({auth:n,endpoint:s,disableAutoRetry:d}),{confirmationNumber:y,orderNumber:S}=e;return(await p.createReservationInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).searchByOrder({confirmationNumber:y,orderNumber:S},r)}};Za.ReservationService=Gf});var $A=o(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.TokenService=void 0;var _D=E(),$f=class extends _D.Service{};Ja.TokenService=$f});var KA=o(ze=>{"use strict";var OD=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]})),TD=ze&&ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Xa=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"&&OD(r,e,n[s]);return TD(r,e),r}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.CloudAsset=ze.service=void 0;var ec=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||(ze.service=Ne={}));var tc=[ec.status.BAD_GATEWAY,ec.status.SERVICE_UNAVAILABLE,ec.status.FORBIDDEN,ec.status.UNAUTHORIZED],Kf=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(()=>Xa(FA()))).OrderService),new Ne.Order.svc({...this.options,...e,retryableStatusCodes:tc})}async createDeliveryInstance(e){return Ne.Delivery.svc===void 0&&(Ne.Delivery.svc=(await Promise.resolve().then(()=>Xa(kA()))).DeliveryService),new Ne.Delivery.svc({...this.options,...e,retryableStatusCodes:tc})}async createReservationInstance(e){return Ne.Reservation.svc===void 0&&(Ne.Reservation.svc=(await Promise.resolve().then(()=>Xa(GA()))).ReservationService),new Ne.Reservation.svc({...this.options,...e,retryableStatusCodes:tc})}async createTokenInstance(e){return Ne.Token.svc===void 0&&(Ne.Token.svc=(await Promise.resolve().then(()=>Xa($A()))).TokenService),new Ne.Token.svc({...this.options,...e,retryableStatusCodes:tc})}};ze.CloudAsset=Kf});var WA=o(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.CreativeWorkService=void 0;var ED=b(),CD=E(),Wf=class extends CD.Service{async findMovies(e){return this.fetch({uri:"/creativeWorks/movie",method:"GET",qs:e,expectedStatusCodes:[ED.status.OK]}).then(async r=>r.json())}};rc.CreativeWorkService=Wf});var HA=o(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.PaymentProductService=void 0;var gD=b(),bD=E(),Hf=class extends bD.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:[gD.status.OK]}).then(async i=>i.json())}};nc.PaymentProductService=Hf});var VA=o(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.ProductService=void 0;var Vf=b(),AD=E(),zf=class extends AD.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:[Vf.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:[Vf.status.OK],qs:{limit:r,page:n,itemOffered:s,seller:i}}).then(async c=>c.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:[Vf.status.OK]}).then(async i=>i.json())}};sc.ProductService=zf});var zA=o(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.EventOfferService=void 0;var PD=b(),wD=E(),RD="/eventOffers",Yf=class extends wD.Service{async findEventOffers(e){let{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c}=e;return this.fetch({uri:RD,method:"GET",qs:{limit:r,page:n,availableAtOrFromIdentifier:s,itemOfferedId:i,itemOfferedIds:c},expectedStatusCodes:[PD.status.OK]}).then(async d=>d.json())}};ic.EventOfferService=Yf});var YA=o(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.PlaceService=void 0;var Qf=b(),MD=Y(),ID=E(),Zf=class extends ID.Service{async findMovieTheatersLegacy(e){return this.fetch({uri:`/places/${MD.factory.placeType.MovieTheater}`,method:"GET",qs:e,expectedStatusCodes:[Qf.status.OK]}).then(async r=>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:[Qf.status.OK]}).then(async c=>c.json())}async findSeatsBySection(e){let{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d}=e;return this.fetch({uri:"/seats",method:"GET",qs:{limit:r,page:n,movieTheaterCode:s,roomCode:i,sectionCode:c,seatingType:d},expectedStatusCodes:[Qf.status.OK]}).then(async f=>f.json())}};oc.PlaceService=Zf});var QA=o(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.SeatOfferService=void 0;var qD=b(),ND=E(),jD="/seatOffers",Jf=class extends ND.Service{async findEventSeatOffersBySection(e){let{limit:r,page:n,eventId:s,sectionCode:i}=e;return this.fetch({uri:jD,method:"GET",qs:{limit:r,page:n,eventId:s,sectionCode:i},expectedStatusCodes:[qD.status.OK]}).then(async c=>c.json())}};ac.SeatOfferService=Jf});var ZA=o(Ye=>{"use strict";var xD=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]})),UD=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"&&xD(r,e,n[s]);return UD(r,e),r}})();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CloudSearch=Ye.service=void 0;var Xf=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 c;c=t.SeatOffer||(t.SeatOffer={})})(he||(Ye.service=he={}));var Sr=[Xf.status.BAD_GATEWAY,Xf.status.FORBIDDEN,Xf.status.UNAUTHORIZED],eh=class{options;constructor(e){this.options=e}async createCreativeWorkInstance(e){return he.CreativeWork.svc===void 0&&(he.CreativeWork.svc=(await Promise.resolve().then(()=>vr(WA()))).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(HA()))).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(VA()))).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(zA()))).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(YA()))).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(QA()))).SeatOfferService),new he.SeatOffer.svc({...this.options,...e,retryableStatusCodes:Sr})}};Ye.CloudSearch=eh});var eP=o(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.PaymentService=void 0;var le=b(),ge=Y(),be=te(),DD=E(),JA=1e3,LD=5e3;async function XA(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}var th=class extends DD.Service{async authorizeAnyPayment(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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,c=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:c});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:c}=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:c})}async publishCreditCardPaymentUrlAsync(e,r){let{object:n,purpose:s}=e,i=e.instrumentOptions?.acceptedPaymentMethodOfferIds,c=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:c});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:c,retryableStatusCodes:d}=this.options,p=await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,retryableStatusCodes:d}=this.options;await(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,be.loadChevrePay)({auth:i,endpoint:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,be.loadChevrePay)({auth:s,endpoint:i,disableAutoRetry:f})).createPaymentInstance({project:c,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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y,retryableStatusCodes:S}=this.options;return(await(await(0,be.loadChevrePay)({auth:c,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:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,retryableStatusCodes:d}=this.options;return(await(await(0,be.loadChevrePay)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,endpoint:d,project:f,seller:p,disableAutoRetry:y}=this.options,m=await(await(0,be.loadChevrePay)({auth:c,endpoint:d,disableAutoRetry:y})).createPaymentInstance({project:f,seller:{id:typeof p?.id=="string"?p.id:""},retryableStatusCodes:[]}),g=!1,w=setTimeout(()=>{g=!0},i),R,q=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(N){q=N}await XA(LD),console.log("retrying issueTicketThroughMovieTicket...",q?.name,g)}if(typeof R?.ticketToken=="string")return R;throw q}async issueTicketThroughCreditCardIfNotExists(e,r){let{object:n,purpose:s}=e,{checkPaymentMethodId:i}=r,c=n.ticketToken,d=typeof r.intervalAfterIssueTicketInMS=="number"&&r.intervalAfterIssueTicketInMS>JA?r.intervalAfterIssueTicketInMS:JA,f=!1,p=n.paymentMethodId;if(i?(typeof c!="string"||c==="")&&(typeof p!="string"||p==="")&&(f=!0):(typeof c!="string"||c==="")&&(f=!0),!f)return{ticketToken:c};let y=await this.issueTicketThroughCreditCard({ticketedInvoice:{issuedThrough:{id:n.issuedThrough.id}},purpose:s});return await XA(d),y}};cc.PaymentService=th});var tP=o(Qe=>{"use strict";var FD=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]})),kD=Qe&&Qe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BD=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"&&FD(r,e,n[s]);return kD(r,e),r}})();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CloudPay=Qe.service=void 0;var uc=b(),mn;(function(t){let e;e=t.Payment||(t.Payment={})})(mn||(Qe.service=mn={}));var GD=[uc.status.BAD_GATEWAY,uc.status.SERVICE_UNAVAILABLE,uc.status.FORBIDDEN,uc.status.UNAUTHORIZED],rh=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 mn.Payment.svc===void 0&&(mn.Payment.svc=(await Promise.resolve().then(()=>BD(eP()))).PaymentService),new mn.Payment.svc({...this.options,...e,retryableStatusCodes:GD})}};Qe.CloudPay=rh});var iP=o(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.authorizeOfferAsync=KD;dc.voidAuthorizeOfferAsync=WD;var re=Y(),rP=2e4,nP=1e3;async function sP(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}function $D(t){let e;switch(t.reason){case re.factory.errorCode.Argument:e=new re.factory.errors.Argument("",t.message);break;case re.factory.errorCode.ArgumentNull:e=new re.factory.errors.ArgumentNull("",t.message);break;case re.factory.errorCode.Unauthorized:e=new re.factory.errors.Unauthorized(t.message);break;case re.factory.errorCode.Forbidden:e=new re.factory.errors.Forbidden(t.message);break;case re.factory.errorCode.NotFound:e=new re.factory.errors.NotFound("",t.message);break;case re.factory.errorCode.AlreadyInUse:e=new re.factory.errors.AlreadyInUse("",[],t.message);break;case re.factory.errorCode.RateLimitExceeded:e=new re.factory.errors.RateLimitExceeded(t.message);break;case re.factory.errorCode.GatewayTimeout:e=new re.factory.errors.GatewayTimeout(t.message);break;default:e=new re.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:re.factory.transactionType.PlaceOrder},...typeof t.potentialActions?.id=="string"?{potentialActions:{id:t.potentialActions.id}}:void 0}),n=!1;setTimeout(()=>{n=!0},rP);let s,i;for(;s===void 0&&i===void 0;){if(await sP(nP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findAcceptAction({sameAs:{id:r.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(typeof c.id=="string"&&c.actionStatus===re.factory.actionStatusType.CompletedActionStatus){s={id:c.id};break}if(c.error!==void 0){i=$D(c.error);break}}if(typeof s?.id=="string")return e.offerService.authorizeEventServiceByCOA({acceptAction:{id:s.id},purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});throw i}}function WD(t){return async e=>{let r=await e.offerService.voidAuthorizationByCOA({id:t.originalAuthorizeAction,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}}),n=!1;setTimeout(()=>{n=!0},rP);let s,i;for(;s===void 0&&i===void 0;){if(await sP(nP),n){i=new re.factory.errors.GatewayTimeout("action given up");break}let c=await e.offerService.findVoidTask({actionId:t.originalAuthorizeAction,taskId:r.id,purpose:{id:t.purpose.id,typeOf:re.factory.transactionType.PlaceOrder}});if(c.status===re.factory.taskStatus.Executed){s=c;break}}if(typeof s?.status!="string")throw i}}});var aP=o(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.PlaceOrderCOAService=void 0;var oP=Y(),nh=te(),HD=E(),sh=iP(),ih=class extends HD.Service{async createSeatReservationAuthorization(e){let{object:r,purpose:n}=e,{event:s,acceptedOffer:i,appliesToSurfrock:c}=r,d=typeof c?.identifier=="string"&&c.identifier.length>0?c.identifier:"",f=typeof c?.serviceOutput?.typeOf=="string"&&c.serviceOutput.typeOf.length>0?c.serviceOutput.typeOf:"",{auth:p,endpoint:y,project:S,seller:m,disableAutoRetry:g,retryableStatusCodes:w}=this.options,q=await(await(0,nh.loadChevreTxc)({auth:p,endpoint:y,disableAutoRetry:g})).createOfferInstance({project:S,seller:{id:typeof m?.id=="string"?m.id:""},retryableStatusCodes:[...Array.isArray(w)?w:[]]}),N=await(0,sh.authorizeOfferAsync)({purpose:{id:n.id},event:{id:s.id},acceptedOffer:i,appliesToSurfrock:{identifier:d,serviceOutput:{typeOf:f}}})({offerService:q});if(typeof N.result?.price!="number")throw new oP.factory.errors.Internal("result.price undefined");return{id:N.id,result:{price:N.result.price,responseBody:{tmpReserveNum:N.result.responseBody.tmpReserveNum}}}}async cancelSeatReservationAuthorization(e){let{id:r,purpose:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options,S=await(await(0,nh.loadChevreTxc)({auth:s,endpoint:i,disableAutoRetry:f})).createOfferInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(p)?p:[]]});await(0,sh.voidAuthorizeOfferAsync)({originalAuthorizeAction:r,purpose:{id:n.id}})({offerService:S})}async changeSeatReservationOffers(e){let{id:r,object:n,purpose:s}=e,{event:i,acceptedOffer:c,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,N=await(await(0,nh.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,sh.authorizeOfferAsync)({purpose:{id:s.id},event:{id:i.id},acceptedOffer:c,appliesToSurfrock:{identifier:f,serviceOutput:{typeOf:p}},potentialActions:{id:r}})({offerService:N});if(typeof C.result?.price!="number")throw new oP.factory.errors.Internal("result.price undefined");return{id:C.id,result:{price:C.result.price,responseBody:{tmpReserveNum:C.result.responseBody.tmpReserveNum}}}}};lc.PlaceOrderCOAService=ih});var cP=o(Ze=>{"use strict";var VD=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]})),zD=Ze&&Ze.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YD=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"&&VD(r,e,n[s]);return zD(r,e),r}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.CloudTxc=Ze.service=void 0;var fc=b(),_n;(function(t){let e;(function(r){let n;n=r.PlaceOrder||(r.PlaceOrder={})})(e=t.transaction||(t.transaction={}))})(_n||(Ze.service=_n={}));var QD=[fc.status.BAD_GATEWAY,fc.status.SERVICE_UNAVAILABLE,fc.status.FORBIDDEN,fc.status.UNAUTHORIZED],oh=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 _n.transaction.PlaceOrder.svc===void 0&&(_n.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>YD(aP()))).PlaceOrderCOAService),new _n.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:QD})}};Ze.CloudTxc=oh});var uP=o(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.OfferService=void 0;var ZD=Y(),ah=te(),JD=E(),ch=class extends JD.Service{async issueEventServiceOfferTicket(e){let{auth:r,endpoint:n,project:s,seller:i,disableAutoRetry:c,retryableStatusCodes:d}=this.options,p=await(await(0,ah.loadChevreTxn)({auth:r,endpoint:n,disableAutoRetry:c})).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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,ah.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createOfferInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).authorizeEventService({object:{acceptedOffer:e.object.acceptedOffer,reservationFor:e.object.reservationFor},purpose:{id:e.purpose.id,typeOf:ZD.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:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;await(await(await(0,ah.loadChevreTxn)({auth:i,endpoint:c,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})}};hc.OfferService=ch});var dP=o(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.PlaceOrderTransactionService=void 0;var mr=b(),_r=te(),XD=E(),uh=class extends XD.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,seller:d,disableAutoRetry:f,retryableStatusCodes:p}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:s,endpoint:i,disableAutoRetry:f})).createPlaceOrderTransactionInstance({project:c,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:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.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,sendEmailMessage:n,email:s}=e,{auth:i,endpoint:c,project:d,seller:f,disableAutoRetry:p,retryableStatusCodes:y}=this.options;return(await(await(0,_r.loadChevreTxn)({auth:i,endpoint:c,disableAutoRetry:p})).createPlaceOrderTransactionInstance({project:d,seller:{id:typeof f?.id=="string"?f.id:""},retryableStatusCodes:[...Array.isArray(y)?y:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).confirm({id:r,sendEmailMessage:n,email:s})}async cancel(e){let{id:r}=e,{auth:n,endpoint:s,project:i,seller:c,disableAutoRetry:d,retryableStatusCodes:f}=this.options;await(await(await(0,_r.loadChevreTxn)({auth:n,endpoint:s,disableAutoRetry:d})).createPlaceOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[],mr.status.CONFLICT,mr.status.TOO_MANY_REQUESTS]})).cancel({id:r})}};yc.PlaceOrderTransactionService=uh});var lP=o(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.ReturnOrderTransactionService=void 0;var dh=te(),eL=E(),lh=class extends eL.Service{async start(e){let{agent:r,object:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;return(await(await(0,dh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,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:c,retryableStatusCodes:d}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:n,endpoint:s})).createReturnOrderTransactionInstance({project:i,seller:{id:typeof c?.id=="string"?c.id:""},retryableStatusCodes:[...Array.isArray(d)?d:[]]})).verifyReturnPolicy({object:r})}async confirm(e){let{id:r,potentialActions:n}=e,{auth:s,endpoint:i,project:c,seller:d,retryableStatusCodes:f}=this.options;await(await(await(0,dh.loadChevreTxn)({auth:s,endpoint:i})).createReturnOrderTransactionInstance({project:c,seller:{id:typeof d?.id=="string"?d.id:""},retryableStatusCodes:[...Array.isArray(f)?f:[]]})).confirm({id:r,potentialActions:n})}};pc.ReturnOrderTransactionService=lh});var fP=o(Je=>{"use strict";var tL=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]})),rL=Je&&Je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fh=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"&&tL(r,e,n[s]);return rL(r,e),r}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.CloudTxn=Je.service=void 0;var vc=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 hh=[vc.status.BAD_GATEWAY,vc.status.SERVICE_UNAVAILABLE,vc.status.FORBIDDEN,vc.status.UNAUTHORIZED],yh=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(()=>fh(uP()))).OfferService),new st.Offer.svc({...this.options,...e,retryableStatusCodes:hh})}async createPlaceOrderInstance(e){return st.transaction.PlaceOrder.svc===void 0&&(st.transaction.PlaceOrder.svc=(await Promise.resolve().then(()=>fh(dP()))).PlaceOrderTransactionService),new st.transaction.PlaceOrder.svc({...this.options,...e,retryableStatusCodes:hh})}async createReturnOrderInstance(e){return st.transaction.ReturnOrder.svc===void 0&&(st.transaction.ReturnOrder.svc=(await Promise.resolve().then(()=>fh(lP()))).ReturnOrderTransactionService),new st.transaction.ReturnOrder.svc({...this.options,...e,retryableStatusCodes:hh})}};Je.CloudTxn=yh});var hP=o(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.RuleService=void 0;var nL=b(),sL=E(),ph=class extends sL.Service{async findRules(e){return this.fetch({uri:"/rules",method:"GET",qs:e,expectedStatusCodes:[nL.status.OK]}).then(async r=>r.json())}};Sc.RuleService=ph});var pP=o(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.RuleSetService=void 0;var yP=b(),iL=E(),vh=class extends iL.Service{async findRuleSets(e){return this.fetch({uri:"/ruleSets",method:"GET",qs:e,expectedStatusCodes:[yP.status.OK]}).then(async r=>r.json())}async updateByIdentifier(e){await this.fetch({uri:`/ruleSets/${e.identifier}`,method:"PUT",body:e,expectedStatusCodes:[yP.status.NO_CONTENT]})}};mc.RuleSetService=vh});var SP=o(Xe=>{"use strict";var oL=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]})),aL=Xe&&Xe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vP=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"&&oL(r,e,n[s]);return aL(r,e),r}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.WaiterAdmin=Xe.service=void 0;var Mt;(function(t){let e;e=t.Rule||(t.Rule={});let r;r=t.RuleSet||(t.RuleSet={})})(Mt||(Xe.service=Mt={}));var Sh=class{options;constructor(e){this.options=e}async createRuleInstance(e){return Mt.Rule.svc===void 0&&(Mt.Rule.svc=(await Promise.resolve().then(()=>vP(hP()))).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(()=>vP(pP()))).RuleSetService),new Mt.RuleSet.svc({...this.options,...e,retryableStatusCodes:[]})}};Xe.WaiterAdmin=Sh});var te=o(X=>{"use strict";var cL=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]})),uL=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"&&cL(r,e,n[s]);return uL(r,e),r}})();Object.defineProperty(X,"__esModule",{value:!0});X.transporters=X.factory=void 0;X.loadChevre=fL;X.loadChevreAsset=hL;X.loadChevreAdmic=yL;X.loadChevreAdmin=pL;X.loadChevreConsole=vL;X.loadChevrePay=SL;X.loadChevreTxn=mL;X.loadChevreTxc=_L;X.loadService=OL;X.loadCloudAdmin=TL;X.loadCloudAsset=EL;X.loadCloudSearch=CL;X.loadCloudPay=gL;X.loadCloudTxc=bL;X.loadCloudTxn=AL;X.loadWaiterAdmin=PL;var dL=Y();Object.defineProperty(X,"factory",{enumerable:!0,get:function(){return dL.factory}});var lL=Oe(Fs());X.transporters=lL;var mh;async function fL(...t){return mh===void 0&&(mh=(await Promise.resolve().then(()=>Oe(zC()))).Chevre),new mh(...t)}var _h;async function hL(...t){return _h===void 0&&(_h=(await Promise.resolve().then(()=>Oe(XC()))).ChevreAsset),new _h(...t)}var Oh;async function yL(...t){return Oh===void 0&&(Oh=(await Promise.resolve().then(()=>Oe(rg()))).ChevreAdmic),new Oh(...t)}var Th;async function pL(...t){return Th===void 0&&(Th=(await Promise.resolve().then(()=>Oe(Lg()))).ChevreAdmin),new Th(...t)}var Eh;async function vL(...t){return Eh===void 0&&(Eh=(await Promise.resolve().then(()=>Oe(Jb()))).ChevreConsole),new Eh(...t)}var Ch;async function SL(...t){return Ch===void 0&&(Ch=(await Promise.resolve().then(()=>Oe(eA()))).ChevrePay),new Ch(...t)}var gh;async function mL(...t){return gh===void 0&&(gh=(await Promise.resolve().then(()=>Oe(iA()))).ChevreTxn),new gh(...t)}var bh;async function _L(...t){return bh===void 0&&(bh=(await Promise.resolve().then(()=>Oe(aA()))).ChevreTxc),new bh(...t)}var Ah;async function OL(){return Ah===void 0&&(Ah=(await Promise.resolve().then(()=>Oe(pA()))).service),Ah}var Ph;async function TL(...t){return Ph===void 0&&(Ph=(await Promise.resolve().then(()=>Oe(LA()))).CloudAdmin),new Ph(...t)}var wh;async function EL(...t){return wh===void 0&&(wh=(await Promise.resolve().then(()=>Oe(KA()))).CloudAsset),new wh(...t)}var Rh;async function CL(...t){return Rh===void 0&&(Rh=(await Promise.resolve().then(()=>Oe(ZA()))).CloudSearch),new Rh(...t)}var Mh;async function gL(...t){return Mh===void 0&&(Mh=(await Promise.resolve().then(()=>Oe(tP()))).CloudPay),new Mh(...t)}var Ih;async function bL(...t){return Ih===void 0&&(Ih=(await Promise.resolve().then(()=>Oe(cP()))).CloudTxc),new Ih(...t)}var qh;async function AL(...t){return qh===void 0&&(qh=(await Promise.resolve().then(()=>Oe(fP()))).CloudTxn),new qh(...t)}var Nh;async function PL(...t){return Nh===void 0&&(Nh=(await Promise.resolve().then(()=>Oe(SP()))).WaiterAdmin),new Nh(...t)}});var mP=o(Gt=>{"use strict";var wL=Gt&&Gt.__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]})),RL=Gt&&Gt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wL(e,t,r)};Object.defineProperty(Gt,"__esModule",{value:!0});RL(te(),Gt)});var IP=o((s5,MP)=>{var Kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wt(t){var e={exports:{}};return t(e,e.exports),e.exports}var ML=Wt(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,c=void 0,d=function(h,v){w[s]=h,w[s+1]=v,(s+=2)===2&&(c?c(R):D())},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 q,N,C,M,D=void 0;function k(h,v){var T=this,A=new this.constructor(G);A[x]===void 0&&a(A);var P=T._state;if(P){var L=arguments[P-1];d(function(){return tt(P,A,L,T._result)})}else et(T,A,h,v);return A}function K(h){if(h&&typeof h=="object"&&h.constructor===this)return h;var v=new this(G);return oe(v,h),v}D=S?function(){return process.nextTick(R)}:y?(N=0,C=new y(R),M=document.createTextNode(""),C.observe(M,{characterData:!0}),function(){M.data=N=++N%2}):m?((q=new MessageChannel).port1.onmessage=R,function(){return q.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 x=Math.random().toString(36).substring(2);function G(){}var W=void 0,$=1,Q=2;function Te(h,v,T){v.constructor===h.constructor&&T===k&&v.constructor.resolve===K?(function(A,P){P._state===$?ie(A,P._result):P._state===Q?ee(A,P._result):et(P,void 0,function(L){return oe(A,L)},function(L){return ee(A,L)})})(h,v):T===void 0?ie(h,v):r(T)?(function(A,P,L){d(function(z){var Z=!1,ue=(function(Ae,Ee,It,ye){try{Ae.call(Ee,function(Pe){Z||(Z=!0,P!==Pe?oe(z,Pe):ie(z,Pe))},function(Pe){Z||(Z=!0,ee(z,Pe))})}catch(Pe){return Pe}})(L,P);!Z&&ue&&(Z=!0,ee(z,ue))},A)})(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(P=typeof(A=v),A===null||P!=="object"&&P!=="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 A,P}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=Q,h._result=v,d(se,h))}function et(h,v,T,A){var P=h._subscribers,L=P.length;h._onerror=null,P[L]=v,P[L+$]=T,P[L+Q]=A,L===0&&h._state&&d(it,h)}function it(h){var v=h._subscribers,T=h._state;if(v.length!==0){for(var A=void 0,P=void 0,L=h._result,z=0;z<v.length;z+=3)P=v[z+T],(A=v[z])?tt(T,A,P,L):P(L);h._subscribers.length=0}}function tt(h,v,T,A){var P=r(T),L=void 0,z=void 0,Z=!0;if(P){try{L=T(A)}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=A;v._state!==W||(P&&Z?oe(v,L):Z===!1?ee(v,z):h===$?ie(v,L):h===Q&&ee(v,L))}var Ue=0;function a(h){h[x]=Ue++,h._state=void 0,h._result=void 0,h._subscribers=[]}var u=(function(){function h(v,T){this._instanceConstructor=v,this.promise=new v(G),this.promise[x]||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 A=this._instanceConstructor,P=A.resolve;if(P===K){var L=void 0,z=void 0,Z=!1;try{L=v.then}catch(Ae){Z=!0,z=Ae}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(A===l){var ue=new A(G);Z?ee(ue,z):Te(ue,v,L),this._willSettleAt(ue,T)}else this._willSettleAt(new A(function(Ae){return Ae(v)}),T)}else this._willSettleAt(P(v),T)},h.prototype._settledAt=function(v,T,A){var P=this.promise;P._state===W&&(this._remaining--,v===Q?ee(P,A):this._result[T]=A),this._remaining===0&&ie(P,this._result)},h.prototype._willSettleAt=function(v,T){var A=this;et(v,void 0,function(P){return A._settledAt($,T,P)},function(P){return A._settledAt(Q,T,P)})},h})(),l=(function(){function h(v){this[x]=Ue++,this._result=this._state=void 0,this._subscribers=[],G!==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,A){try{A(function(P){oe(T,P)},function(P){ee(T,P)})}catch(P){ee(T,P)}})(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,A=T.constructor;return r(v)?T.then(function(P){return A.resolve(v()).then(function(){return P})},function(P){return A.resolve(v()).then(function(){throw P})}):T.then(v,v)},h})();return l.prototype.then=k,l.all=function(h){return new u(this,h).promise},l.race=function(h){var v=this;return n(h)?new v(function(T,A){for(var P=h.length,L=0;L<P;L++)v.resolve(h[L]).then(T,A)}):new v(function(T,A){return A(new TypeError("You must pass an array to race."))})},l.resolve=K,l.reject=function(h){var v=new this(G);return ee(v,h),v},l._setScheduler=function(h){c=h},l._setAsap=function(h){d=h},l._asap=d,l.polyfill=function(){var h=void 0;if(Kt!==void 0)h=Kt;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})()}),IL={__proto__:null,default:{}},Lh=Wt(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=IL}catch{}var c=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 D;return C.prototype=M,D=new C,C.prototype=null,D}})(),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,D=C.words,k=this.sigBytes,K=C.sigBytes;if(this.clamp(),k%4)for(var x=0;x<K;x++)M[k+x>>>2]|=(D[x>>>2]>>>24-x%4*8&255)<<24-(k+x)%4*8;else for(var G=0;G<K;G+=4)M[k+G>>>2]=D[G>>>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=[],D=0;D<C;D+=4)M.push(c());return new S.init(M,C)}}),m=f.enc={},g=m.Hex={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++){var x=M[K>>>2]>>>24-K%4*8&255;k.push((x>>>4).toString(16)),k.push((15&x).toString(16))}return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k+=2)D[k>>>3]|=parseInt(C.substr(k,2),16)<<24-k%8*4;return new S.init(D,M/2)}},w=m.Latin1={stringify:function(C){for(var M=C.words,D=C.sigBytes,k=[],K=0;K<D;K++)k.push(String.fromCharCode(M[K>>>2]>>>24-K%4*8&255));return k.join("")},parse:function(C){for(var M=C.length,D=[],k=0;k<M;k++)D[k>>>2]|=(255&C.charCodeAt(k))<<24-k%4*8;return new S.init(D,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)))}},q=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,D=this._data,k=D.words,K=D.sigBytes,x=this.blockSize,G=K/(4*x),W=(G=C?n.ceil(G):n.max((0|G)-this._minBufferSize,0))*x,$=n.min(4*W,K);if(W){for(var Q=0;Q<W;Q+=x)this._doProcessBlock(k,Q);M=k.splice(0,W),D.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=q.extend({cfg:y.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){q.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,D){return new C.init(D).finalize(M)}},_createHmacHelper:function(C){return function(M,D){return new N.HMAC.init(C,D).finalize(M)}}});var N=f.algo={};return f})(Math),r)}),gP=Wt(function(t,e){var r;t.exports=(r=Lh,(function(n){var s=r,i=s.lib,c=i.WordArray,d=i.Hasher,f=s.algo,p=[],y=[];(function(){function g(N){for(var C=n.sqrt(N),M=2;M<=C;M++)if(!(N%M))return!1;return!0}function w(N){return 4294967296*(N-(0|N))|0}for(var R=2,q=0;q<64;)g(R)&&(q<8&&(p[q]=w(n.pow(R,.5))),y[q]=w(n.pow(R,1/3)),q++),R++})();var S=[],m=f.SHA256=d.extend({_doReset:function(){this._hash=new c.init(p.slice(0))},_doProcessBlock:function(g,w){for(var R=this._hash.words,q=R[0],N=R[1],C=R[2],M=R[3],D=R[4],k=R[5],K=R[6],x=R[7],G=0;G<64;G++){if(G<16)S[G]=0|g[w+G];else{var W=S[G-15],$=S[G-2];S[G]=((W<<25|W>>>7)^(W<<14|W>>>18)^W>>>3)+S[G-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[G-16]}var Q=q&N^q&C^N&C,Te=x+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&K)+y[G]+S[G];x=K,K=k,k=D,D=M+Te|0,M=C,C=N,N=q,q=Te+(((q<<30|q>>>2)^(q<<19|q>>>13)^(q<<10|q>>>22))+Q)|0}R[0]=R[0]+q|0,R[1]=R[1]+N|0,R[2]=R[2]+C|0,R[3]=R[3]+M|0,R[4]=R[4]+D|0,R[5]=R[5]+k|0,R[6]=R[6]+K|0,R[7]=R[7]+x|0},_doFinalize:function(){var g=this._data,w=g.words,R=8*this._nDataBytes,q=8*g.sigBytes;return w[q>>>5]|=128<<24-q%32,w[14+(q+64>>>9<<4)]=n.floor(R/4294967296),w[15+(q+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)}),qL=Wt(function(t,e){var r,n;t.exports=(n=(r=Lh).lib.WordArray,r.enc.Base64={stringify:function(s){var i=s.words,c=s.sigBytes,d=this._map;s.clamp();for(var f=[],p=0;p<c;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<c;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,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var f=0;f<c.length;f++)d[c.charCodeAt(f)]=f}var p=c.charAt(64);if(p){var y=s.indexOf(p);y!==-1&&(i=y)}return(function(S,m,g){for(var w=[],R=0,q=0;q<m;q++)if(q%4){var N=g[S.charCodeAt(q-1)]<<q%4*2,C=g[S.charCodeAt(q)]>>>6-q%4*2;w[R>>>2]|=(N|C)<<24-R%4*8,R++}return n.create(w,R)})(s,i,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)}),_P=Wt(function(t,e){t.exports=Lh.enc.Hex}),bP=Wt(function(t,e){(function(){var r;function n(a,u,l){a!=null&&(typeof a=="number"?this.fromNumber(a,u,l):this.fromString(a,u==null&&typeof a!="string"?256:u))}function s(){return new n(null)}var i=typeof navigator<"u";i&&navigator.appName=="Microsoft Internet Explorer"?(n.prototype.am=function(a,u,l,h,v,T){for(var A=32767&u,P=u>>15;--T>=0;){var L=32767&this[a],z=this[a++]>>15,Z=P*L+z*A;v=((L=A*L+((32767&Z)<<15)+l[h]+(1073741823&v))>>>30)+(Z>>>15)+P*z+(v>>>30),l[h++]=1073741823&L}return v},r=30):i&&navigator.appName!="Netscape"?(n.prototype.am=function(a,u,l,h,v,T){for(;--T>=0;){var A=u*this[a++]+l[h]+v;v=Math.floor(A/67108864),l[h++]=67108863&A}return v},r=26):(n.prototype.am=function(a,u,l,h,v,T){for(var A=16383&u,P=u>>14;--T>=0;){var L=16383&this[a],z=this[a++]>>14,Z=P*L+z*A;v=((L=A*L+((16383&Z)<<14)+l[h]+v)>>28)+(Z>>14)+P*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 c,d,f=new Array;for(c=48,d=0;d<=9;++d)f[c++]=d;for(c=97,d=10;d<36;++d)f[c++]=d;for(c=65,d=10;d<36;++d)f[c++]=d;function p(a){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(a)}function y(a,u){var l=f[a.charCodeAt(u)];return l??-1}function S(a){var u=s();return u.fromInt(a),u}function m(a){var u,l=1;return(u=a>>>16)!=0&&(a=u,l+=16),(u=a>>8)!=0&&(a=u,l+=8),(u=a>>4)!=0&&(a=u,l+=4),(u=a>>2)!=0&&(a=u,l+=2),(u=a>>1)!=0&&(a=u,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,u){return a&u}function q(a,u){return a|u}function N(a,u){return a^u}function C(a,u){return a&~u}function M(a){if(a==0)return-1;var u=0;return(65535&a)==0&&(a>>=16,u+=16),(255&a)==0&&(a>>=8,u+=8),(15&a)==0&&(a>>=4,u+=4),(3&a)==0&&(a>>=2,u+=2),(1&a)==0&&++u,u}function D(a){for(var u=0;a!=0;)a&=a-1,++u;return u}function k(){}function K(a){return a}function x(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,u,l){a.multiplyTo(u,l),this.reduce(l)},g.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},w.prototype.convert=function(a){var u=s();return a.abs().dlShiftTo(this.m.t,u),u.divRemTo(this.m,null,u),a.s<0&&u.compareTo(n.ZERO)>0&&this.m.subTo(u,u),u},w.prototype.revert=function(a){var u=s();return a.copyTo(u),this.reduce(u),u},w.prototype.reduce=function(a){for(;a.t<=this.mt2;)a[a.t++]=0;for(var u=0;u<this.m.t;++u){var l=32767&a[u],h=l*this.mpl+((l*this.mph+(a[u]>>15)*this.mpl&this.um)<<15)&a.DM;for(a[l=u+this.m.t]+=this.m.am(0,h,a,u,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,u,l){a.multiplyTo(u,l),this.reduce(l)},w.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)},n.prototype.copyTo=function(a){for(var u=this.t-1;u>=0;--u)a[u]=this[u];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,u){var l;if(u==16)l=4;else if(u==8)l=3;else if(u==256)l=8;else if(u==2)l=1;else if(u==32)l=5;else{if(u!=4)return void this.fromRadix(a,u);l=2}this.t=0,this.s=0;for(var h=a.length,v=!1,T=0;--h>=0;){var A=l==8?255&a[h]:y(a,h);A<0?a.charAt(h)=="-"&&(v=!0):(v=!1,T==0?this[this.t++]=A:T+l>this.DB?(this[this.t-1]|=(A&(1<<this.DB-T)-1)<<T,this[this.t++]=A>>this.DB-T):this[this.t-1]|=A<<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,u){var l;for(l=this.t-1;l>=0;--l)u[l+a]=this[l];for(l=a-1;l>=0;--l)u[l]=0;u.t=this.t+a,u.s=this.s},n.prototype.drShiftTo=function(a,u){for(var l=a;l<this.t;++l)u[l-a]=this[l];u.t=Math.max(this.t-a,0),u.s=this.s},n.prototype.lShiftTo=function(a,u){var l,h=a%this.DB,v=this.DB-h,T=(1<<v)-1,A=Math.floor(a/this.DB),P=this.s<<h&this.DM;for(l=this.t-1;l>=0;--l)u[l+A+1]=this[l]>>v|P,P=(this[l]&T)<<h;for(l=A-1;l>=0;--l)u[l]=0;u[A]=P,u.t=this.t+A+1,u.s=this.s,u.clamp()},n.prototype.rShiftTo=function(a,u){u.s=this.s;var l=Math.floor(a/this.DB);if(l>=this.t)u.t=0;else{var h=a%this.DB,v=this.DB-h,T=(1<<h)-1;u[0]=this[l]>>h;for(var A=l+1;A<this.t;++A)u[A-l-1]|=(this[A]&T)<<v,u[A-l]=this[A]>>h;h>0&&(u[this.t-l-1]|=(this.s&T)<<v),u.t=this.t-l,u.clamp()}},n.prototype.subTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]-a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h-=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h-=a[l],u[l++]=h&this.DM,h>>=this.DB;h-=a.s}u.s=h<0?-1:0,h<-1?u[l++]=this.DV+h:h>0&&(u[l++]=h),u.t=l,u.clamp()},n.prototype.multiplyTo=function(a,u){var l=this.abs(),h=a.abs(),v=l.t;for(u.t=v+h.t;--v>=0;)u[v]=0;for(v=0;v<h.t;++v)u[v+l.t]=l.am(0,h[v],u,v,0,l.t);u.s=0,u.clamp(),this.s!=a.s&&n.ZERO.subTo(u,u)},n.prototype.squareTo=function(a){for(var u=this.abs(),l=a.t=2*u.t;--l>=0;)a[l]=0;for(l=0;l<u.t-1;++l){var h=u.am(l,u[l],a,2*l,0,1);(a[l+u.t]+=u.am(l+1,2*u[l],a,2*l+1,h,u.t-l-1))>=u.DV&&(a[l+u.t]-=u.DV,a[l+u.t+1]=1)}a.t>0&&(a[a.t-1]+=u.am(l,u[l],a,2*l,0,1)),a.s=0,a.clamp()},n.prototype.divRemTo=function(a,u,l){var h=a.abs();if(!(h.t<=0)){var v=this.abs();if(v.t<h.t)return u?.fromInt(0),void(l!=null&&this.copyTo(l));l==null&&(l=s());var T=s(),A=this.s,P=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),Ae=this.FV/ue,Ee=(1<<this.F1)/ue,It=1<<this.F2,ye=l.t,Pe=ye-z,ot=u??s();for(T.dlShiftTo(Pe,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(;--Pe>=0;){var Cr=l[--ye]==Z?this.DM:Math.floor(l[ye]*Ae+(l[ye-1]+It)*Ee);if((l[ye]+=T.am(0,Cr,l,Pe,0,z))<Cr)for(T.dlShiftTo(Pe,ot),l.subTo(ot,l);l[ye]<--Cr;)l.subTo(ot,l)}u!=null&&(l.drShiftTo(z,u),A!=P&&n.ZERO.subTo(u,u)),l.t=z,l.clamp(),L>0&&l.rShiftTo(L,l),A<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 u=3&a;return(u=(u=(u=(u=u*(2-(15&a)*u)&15)*(2-(255&a)*u)&255)*(2-((65535&a)*u&65535))&65535)*(2-a*u%this.DV)%this.DV)>0?this.DV-u:-u},n.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},n.prototype.exp=function(a,u){if(a>4294967295||a<1)return n.ONE;var l=s(),h=s(),v=u.convert(this),T=m(a)-1;for(v.copyTo(l);--T>=0;)if(u.sqrTo(l,h),(a&1<<T)>0)u.mulTo(h,v,l);else{var A=l;l=h,h=A}return u.revert(l)},n.prototype.toString=function(a){if(this.s<0)return"-"+this.negate().toString(a);var u;if(a==16)u=4;else if(a==8)u=3;else if(a==2)u=1;else if(a==32)u=5;else{if(a!=4)return this.toRadix(a);u=2}var l,h=(1<<u)-1,v=!1,T="",A=this.t,P=this.DB-A*this.DB%u;if(A-- >0)for(P<this.DB&&(l=this[A]>>P)>0&&(v=!0,T=p(l));A>=0;)P<u?(l=(this[A]&(1<<P)-1)<<u-P,l|=this[--A]>>(P+=this.DB-u)):(l=this[A]>>(P-=u)&h,P<=0&&(P+=this.DB,--A)),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 u=this.s-a.s;if(u!=0)return u;var l=this.t;if((u=l-a.t)!=0)return this.s<0?-u:u;for(;--l>=0;)if((u=this[l]-a[l])!=0)return u;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 u=s();return this.abs().divRemTo(a,null,u),this.s<0&&u.compareTo(n.ZERO)>0&&a.subTo(u,u),u},n.prototype.modPowInt=function(a,u){var l;return l=a<256||u.isEven()?new g(u):new w(u),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,u,l){a.multiplyTo(u,l)},k.prototype.sqrTo=function(a,u){a.squareTo(u)},x.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 u=s();return a.copyTo(u),this.reduce(u),u},x.prototype.revert=function(a){return a},x.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)},x.prototype.mulTo=function(a,u,l){a.multiplyTo(u,l),this.reduce(l)},x.prototype.sqrTo=function(a,u){a.squareTo(u),this.reduce(u)};var G,W,$,Q=[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)/Q[Q.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 u=this.chunkSize(a),l=Math.pow(a,u),h=S(l),v=s(),T=s(),A="";for(this.divRemTo(h,v,T);v.signum()>0;)A=(l+T.intValue()).toString(a).substr(1)+A,v.divRemTo(h,v,T);return T.intValue().toString(a)+A},n.prototype.fromRadix=function(a,u){this.fromInt(0),u==null&&(u=10);for(var l=this.chunkSize(u),h=Math.pow(u,l),v=!1,T=0,A=0,P=0;P<a.length;++P){var L=y(a,P);L<0?a.charAt(P)=="-"&&this.signum()==0&&(v=!0):(A=u*A+L,++T>=l&&(this.dMultiply(h),this.dAddOffset(A,0),T=0,A=0))}T>0&&(this.dMultiply(Math.pow(u,T)),this.dAddOffset(A,0)),v&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(a,u,l){if(typeof u=="number")if(a<2)this.fromInt(1);else for(this.fromNumber(a,l),this.testBit(a-1)||this.bitwiseTo(n.ONE.shiftLeft(a-1),q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(u);)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),u.nextBytes(h),v>0?h[0]&=(1<<v)-1:h[0]=0,this.fromString(h,256)}},n.prototype.bitwiseTo=function(a,u,l){var h,v,T=Math.min(a.t,this.t);for(h=0;h<T;++h)l[h]=u(this[h],a[h]);if(a.t<this.t){for(v=a.s&this.DM,h=T;h<this.t;++h)l[h]=u(this[h],v);l.t=this.t}else{for(v=this.s&this.DM,h=T;h<a.t;++h)l[h]=u(v,a[h]);l.t=a.t}l.s=u(this.s,a.s),l.clamp()},n.prototype.changeBit=function(a,u){var l=n.ONE.shiftLeft(a);return this.bitwiseTo(l,u,l),l},n.prototype.addTo=function(a,u){for(var l=0,h=0,v=Math.min(a.t,this.t);l<v;)h+=this[l]+a[l],u[l++]=h&this.DM,h>>=this.DB;if(a.t<this.t){for(h+=a.s;l<this.t;)h+=this[l],u[l++]=h&this.DM,h>>=this.DB;h+=this.s}else{for(h+=this.s;l<a.t;)h+=a[l],u[l++]=h&this.DM,h>>=this.DB;h+=a.s}u.s=h<0?-1:0,h>0?u[l++]=h:h<-1&&(u[l++]=this.DV+h),u.t=l,u.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,u){if(a!=0){for(;this.t<=u;)this[this.t++]=0;for(this[u]+=a;this[u]>=this.DV;)this[u]-=this.DV,++u>=this.t&&(this[this.t++]=0),++this[u]}},n.prototype.multiplyLowerTo=function(a,u,l){var h,v=Math.min(this.t+a.t,u);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,u);v<h;++v)this.am(0,a[v],l,v,0,u-v);l.clamp()},n.prototype.multiplyUpperTo=function(a,u,l){--u;var h=l.t=this.t+a.t-u;for(l.s=0;--h>=0;)l[h]=0;for(h=Math.max(u-this.t,0);h<a.t;++h)l[this.t+h-u]=this.am(u-h,a[h],l,0,0,this.t+h-u);l.clamp(),l.drShiftTo(1,l)},n.prototype.modInt=function(a){if(a<=0)return 0;var u=this.DV%a,l=this.s<0?a-1:0;if(this.t>0)if(u==0)l=this[0]%a;else for(var h=this.t-1;h>=0;--h)l=(u*l+this[h])%a;return l},n.prototype.millerRabin=function(a){var u=this.subtract(n.ONE),l=u.getLowestSetBit();if(l<=0)return!1;var h=u.shiftRight(l);(a=a+1>>1)>Q.length&&(a=Q.length);for(var v=s(),T=0;T<a;++T){v.fromInt(Q[Math.floor(Math.random()*Q.length)]);var A=v.modPow(h,this);if(A.compareTo(n.ONE)!=0&&A.compareTo(u)!=0){for(var P=1;P++<l&&A.compareTo(u)!=0;)if((A=A.modPowInt(2,this)).compareTo(n.ONE)==0)return!1;if(A.compareTo(u)!=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,u=new Array;u[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&&(u[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)&&(u[v++]=l);return u},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 u=s();return this.bitwiseTo(a,R,u),u},n.prototype.or=function(a){var u=s();return this.bitwiseTo(a,q,u),u},n.prototype.xor=function(a){var u=s();return this.bitwiseTo(a,N,u),u},n.prototype.andNot=function(a){var u=s();return this.bitwiseTo(a,C,u),u},n.prototype.not=function(){for(var a=s(),u=0;u<this.t;++u)a[u]=this.DM&~this[u];return a.t=this.t,a.s=~this.s,a},n.prototype.shiftLeft=function(a){var u=s();return a<0?this.rShiftTo(-a,u):this.lShiftTo(a,u),u},n.prototype.shiftRight=function(a){var u=s();return a<0?this.lShiftTo(-a,u):this.rShiftTo(a,u),u},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,u=this.s&this.DM,l=0;l<this.t;++l)a+=D(this[l]^u);return a},n.prototype.testBit=function(a){var u=Math.floor(a/this.DB);return u>=this.t?this.s!=0:(this[u]&1<<a%this.DB)!=0},n.prototype.setBit=function(a){return this.changeBit(a,q)},n.prototype.clearBit=function(a){return this.changeBit(a,C)},n.prototype.flipBit=function(a){return this.changeBit(a,N)},n.prototype.add=function(a){var u=s();return this.addTo(a,u),u},n.prototype.subtract=function(a){var u=s();return this.subTo(a,u),u},n.prototype.multiply=function(a){var u=s();return this.multiplyTo(a,u),u},n.prototype.divide=function(a){var u=s();return this.divRemTo(a,u,null),u},n.prototype.remainder=function(a){var u=s();return this.divRemTo(a,null,u),u},n.prototype.divideAndRemainder=function(a){var u=s(),l=s();return this.divRemTo(a,u,l),new Array(u,l)},n.prototype.modPow=function(a,u){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(u):u.isEven()?new x(u):new w(u);var A=new Array,P=3,L=l-1,z=(1<<l)-1;if(A[1]=h.convert(this),l>1){var Z=s();for(h.sqrTo(A[1],Z);P<=z;)A[P]=s(),h.mulTo(Z,A[P-2],A[P]),P+=2}var ue,Ae,Ee=a.t-1,It=!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)),P=l;(1&ue)==0;)ue>>=1,--P;if((v-=P)<0&&(v+=this.DB,--Ee),It)A[ue].copyTo(T),It=!1;else{for(;P>1;)h.sqrTo(T,ye),h.sqrTo(ye,T),P-=2;P>0?h.sqrTo(T,ye):(Ae=T,T=ye,ye=Ae),h.mulTo(ye,A[ue],T)}for(;Ee>=0&&(a[Ee]&1<<v)==0;)h.sqrTo(T,ye),Ae=T,T=ye,ye=Ae,--v<0&&(v=this.DB-1,--Ee)}return h.revert(T)},n.prototype.modInverse=function(a){var u=a.isEven();if(this.isEven()&&u||a.signum()==0)return n.ZERO;for(var l=a.clone(),h=this.clone(),v=S(1),T=S(0),A=S(0),P=S(1);l.signum()!=0;){for(;l.isEven();)l.rShiftTo(1,l),u?(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),u?(A.isEven()&&P.isEven()||(A.addTo(this,A),P.subTo(a,P)),A.rShiftTo(1,A)):P.isEven()||P.subTo(a,P),P.rShiftTo(1,P);l.compareTo(h)>=0?(l.subTo(h,l),u&&v.subTo(A,v),T.subTo(P,T)):(h.subTo(l,h),u&&A.subTo(v,A),P.subTo(T,P))}return h.compareTo(n.ONE)!=0?n.ZERO:P.compareTo(a)>=0?P.subtract(a):P.signum()<0?(P.addTo(a,P),P.signum()<0?P.add(a):P):P},n.prototype.pow=function(a){return this.exp(a,new k)},n.prototype.gcd=function(a){var u=this.s<0?this.negate():this.clone(),l=a.s<0?a.negate():a.clone();if(u.compareTo(l)<0){var h=u;u=l,l=h}var v=u.getLowestSetBit(),T=l.getLowestSetBit();if(T<0)return u;for(v<T&&(T=v),T>0&&(u.rShiftTo(T,u),l.rShiftTo(T,l));u.signum()>0;)(v=u.getLowestSetBit())>0&&u.rShiftTo(v,u),(v=l.getLowestSetBit())>0&&l.rShiftTo(v,l),u.compareTo(l)>=0?(u.subTo(l,u),u.rShiftTo(1,u)):(l.subTo(u,l),l.rShiftTo(1,l));return T>0&&l.lShiftTo(T,l),l},n.prototype.isProbablePrime=function(a){var u,l=this.abs();if(l.t==1&&l[0]<=Q[Q.length-1]){for(u=0;u<Q.length;++u)if(l[0]==Q[u])return!0;return!1}if(l.isEven())return!1;for(u=1;u<Q.length;){for(var h=Q[u],v=u+1;v<Q.length&&h<Te;)h*=Q[v++];for(h=l.modInt(h);u<v;)if(h%Q[u++]==0)return!1}return l.millerRabin(a)},n.prototype.square=function(){var a=s();return this.squareTo(a),a},n.prototype.Barrett=x,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(G==null){for(oe(),(G=new tt).init(W),$=0;$<W.length;++$)W[$]=0;$=0}return G.next()}function it(){}function tt(){this.i=0,this.j=0,this.S=new Array}it.prototype.nextBytes=function(a){var u;for(u=0;u<a.length;++u)a[u]=et()},tt.prototype.init=function(a){var u,l,h;for(u=0;u<256;++u)this.S[u]=u;for(l=0,u=0;u<256;++u)h=this.S[u],this.S[u]=this.S[l=l+this.S[u]+a[u%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(Kt)}),OP={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},TP={sha256:gP};function AP(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 bP.BigInteger(t,16),this.e=parseInt(e,16)}AP.prototype.verify=function(t,e){e=e.replace(/[^0-9a-f]|[\s\n]]/gi,"");var r=new bP.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 c in OP){var d=OP[c],f=d.length;if(i.substring(0,f)===d)return{alg:c,hash:i.substring(f)}}return[]})(r.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(n.length===0)return!1;if(!TP.hasOwnProperty(n.alg))throw new Error("Hashing algorithm is not supported.");var s=TP[n.alg](t).toString();return n.hash===s};for(EP=[],xe=[],PP=typeof Uint8Array<"u"?Uint8Array:Array,jh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$t=0;$t<64;++$t)EP[$t]=jh[$t],xe[jh.charCodeAt($t)]=$t;var EP,xe,PP,jh,$t;xe[45]=62,xe[95]=63;var wP=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],c=new PP((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)],c[d++]=e>>16&255,c[d++]=e>>8&255,c[d++]=255&e;return i===2&&(e=xe[t.charCodeAt(r)]<<2|xe[t.charCodeAt(r+1)]>>4,c[d++]=255&e),i===1&&(e=xe[t.charCodeAt(r)]<<10|xe[t.charCodeAt(r+1)]<<4|xe[t.charCodeAt(r+2)]>>2,c[d++]=e>>8&255,c[d++]=255&e),c};function RP(t){var e=t.length%4;return e===0?t:t+new Array(4-e+1).join("=")}function CP(t){return t=RP(t).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent((function(e){for(var r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r})(wP(t)).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function xh(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})(wP(RP(t)))}var NL=Wt(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 c=0;c<n.length;c++){var d=n[c];if(typeof d!="string")throw new TypeError("Url must be a string. Received "+d);d!==""&&(c>0&&(d=d.replace(/^[\/]+/,"")),d=d.replace(/[\/]+$/,c<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 jL(t,e){return e=e||{},new Promise(function(r,n){var s=new XMLHttpRequest,i=[],c=[],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 c},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()),c.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 xL(t){if(t.ok)return t.json();var e=new Error(t.statusText);return e.response=t,Promise.reject(e)}function Uh(t){this.name="ConfigurationError",this.message=t||""}function ne(t){this.name="TokenValidationError",this.message=t||""}Uh.prototype=Error.prototype,ne.prototype=Error.prototype;var UL=(function(){function t(){}var e=t.prototype;return e.get=function(){return null},e.has=function(){return null},e.set=function(){return null},t})();ML.polyfill();var Dh="RS256",_c=function(t){return typeof t=="number"},DL=function(){return new Date};function On(t){var e=t||{};if(this.jwksCache=e.jwksCache||new UL,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:DL,this.leeway<0||this.leeway>300)throw new Uh("The leeway should be positive and lower than five minutes.");if(Dh!==this.expectedAlg)throw new Uh('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "'+Dh+'".')}On.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=xh(n.encoded.signature),c=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,q=n.payload.nonce,N=this.__clock(),C=this;if(C.expectedAlg!==c)return r(new ne('Signature algorithm of "'+c+'" is not supported. Expected the ID token to be signed with "'+Dh+'".'),null);this.getRsaVerifier(y,d,function(M,D){if(M)return r(M,null);if(!D.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(!q||typeof q!="string")return r(new ne("Nonce (nonce) claim must be a string present in the ID token"),null);if(q!==e)return r(new ne('Nonce (nonce) claim value mismatch in the ID token; expected "'+e+'", found "'+q+'"'),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||!_c(S))return r(new ne("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!g||!_c(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),N>K)return r(new ne('Expiration Time (exp) claim error in the ID token; current time "'+N+'" is after expiration time "'+K+'"'),null);if(m&&_c(m)){var x=m-C.leeway,G=new Date(0);if(G.setUTCSeconds(x),N<G)return r(new ne('Not Before Time (nbf) claim error in the ID token; current time "'+N+'" is before the not before time "'+G+'"'),null)}if(C.maxAge){if(!R||!_c(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),N>$)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 "'+N+'" is after last auth time at "'+$+'"'),null)}return r(null,n.payload)})},On.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=(c={jwksURI:n.jwksURI,iss:t,kid:e}).jwksURI||NL(c.iss,".well-known","jwks.json"),(fetch=="undefined"?jL:fetch)(d).then(xL).then(function(f){var p,y,S,m=null;for(p=0;p<f.keys.length&&m===null;p++)(y=f.keys[p]).kid===c.kid&&(m=y);if(!m)throw new Error('Could not find a public key for Key ID (kid) "'+c.kid+'"');return{modulus:xh((S=m).n),exp:xh(S.e)}}).catch(function(f){throw f}));var c,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 AP(i.modulus,i.exp))})}).catch(function(i){r&&r(i)})},On.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(CP(n[0])),r=JSON.parse(CP(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]}}},On.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=gP(t),c=_P.stringify(i),d=c.substring(0,c.length/2),f=_P.parse(d),p=qL.stringify(f);return n((s={"+":"-","/":"_","=":""},p.replace(/[+/=]/g,function(y){return s[y]})!==r?new ne("Invalid access_token"):null))},MP.exports=On});var Tn=o(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.AuthorizeError=void 0;var Fh=class extends Error{error;errorDescription;state};Oc.AuthorizeError=Fh});var qP=o(Or=>{"use strict";var LL=Or&&Or.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.PopupHandler=void 0;var FL=LL(tr()),kh=(0,FL.default)("cinerino-sdk:auth:popupHandler"),Bh=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(kh("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}`)}kh("this.eventSourceObject:",this.eventSourceObject),this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),this.timeoutHandle=setTimeout(()=>{this.timeoutHandler()},this.timeout)}eventListener(e){kh("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=Bh});var NP=o(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.PopupAuthenticationHandler=void 0;var kL=Tn(),BL=qP(),Gh=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 BL.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 kL.AuthorizeError("Timeout during authentication");s.error="timeout",s.errorDescription="Timeout during authentication",n(s)},usePostMessage:!1}),this.handler.init()})}};Tc.PopupAuthenticationHandler=Gh});var Kh=o(Tr=>{"use strict";var GL=Tr&&Tr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IframeHandler=void 0;var $L=GL(tr()),KL=(0,$L.default)("cinerino-sdk:auth:iframeHandler"),$h=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=$h});var jP=o(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.SilentAuthenticationHandler=void 0;var WL=Tn(),HL=Kh(),Wh=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 HL.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 WL.AuthorizeError("Timeout during authentication renew");s.error="timeout",s.errorDescription="Timeout during authentication renew",n(s)},usePostMessage:e||!1}),this.handler.init()})}};Ec.SilentAuthenticationHandler=Wh});var xP=o(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.SilentLogoutHandler=void 0;var VL=Tn(),zL=Kh(),Hh=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 zL.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()})}};Cc.SilentLogoutHandler=Hh});var UP=o(()=>{});var DP=o(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.LoginTicket=void 0;var Vh=class{envelope;payload;constructor(e){this.envelope=e.envelope,this.payload=e.payload}getUsername(){if(this.payload!==void 0)return this.payload["cognito:username"]}};gc.LoginTicket=Vh});var LP=o(_t=>{"use strict";var YL=_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 QL=UP(),ZL=YL(tr()),bc=b(),JL=Fs(),XL=DP(),Ht=(0,ZL.default)("cinerino-sdk:auth:oAuth2client"),eF=1e3;_t.MAX_RETRY_NUM=2;async function tF(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,QL.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),c={body:new URLSearchParams(n).toString(),method:"POST",headers:{Authorization:`Basic ${i}`,"Content-Type":"application/x-www-form-urlencoded"}};return Ht("fetching...",c),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,c).then(async d=>{if(Ht("response:",d.status),d.status!==bc.status.OK)if(d.status===bc.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=>(Ht("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 c,d=0;for(;c===void 0;)try{d+=1,d>_t.MAX_RETRY_NUM&&(i=!1),r.headers.Authorization=`Bearer ${await this.getAccessToken()}`,c=await this.makeFetch(e,r,n);break}catch(f){if(f instanceof Error){let p=f.code;if(Ht("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 tF(eF*d);continue}}throw f}return c}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 JL.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){Ht("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 Ht("fetching...",i),fetch(`https://${this.options.domain}${t.OAUTH2_TOKEN_URI}`,i).then(async c=>{if(Ht("response:",c.status),c.status!==bc.status.OK)if(c.status===bc.status.BAD_REQUEST){let d=await c.json();throw new Error(d.error)}else{let d=await c.text();throw new Error(d)}else{let d,f=await c.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 c=i.aud,d=!1;if(Array.isArray(r)?d=r.indexOf(c)>-1:d=c===r,!d)throw new Error("Wrong recipient, payload audience != requiredAudience")}return new XL.LoginTicket({envelope:s,payload:i})}};_t.OAuth2client=zh});var BP=o(Er=>{"use strict";var kP=Er&&Er.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Er,"__esModule",{value:!0});Er.ImplicitGrantClient=void 0;var rF=kP(tr()),FP=kP(IP()),Yh=Ku(),nF=Tn(),sF=NP(),iF=jP(),oF=xP(),aF=LP(),Ac=(0,rF.default)("cinerino-sdk:auth:implicitGrantClient"),Qh=class t extends aF.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,Ac("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 iF.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 sF.PopupAuthenticationHandler.CREATE({authenticationUrl:this.buildAuthorizeUrl(r)}).login(!0);return this.onLogin(s)}async signOut(){await oF.SilentLogoutHandler.CREATE({logoutUrl:this.buildLogoutUrl({clientId:this.options.clientId,logoutUri:this.options.logoutUri})}).logout(!1)}async onLogin(e){return Ac("onLogin"),this.credentials=typeof e=="object"?e:await this.parseHash(e),Ac("credentials:",this.credentials),this.credentials}async parseHash(e){let r=e===void 0?window.location.hash:e;r=r.replace(/^#?\/?/,"");let n=(0,Yh.parse)(r);if(Object.prototype.hasOwnProperty.call(n,"error")){let s=new nF.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 FP.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 FP.default({issuer:this.options.tokenIssuer,audience:this.options.clientId}).verify(e,r,(c,d)=>{if(Ac("id_token verified",c,d),c!==null){s(c);return}n(d)})})}buildAuthorizeUrl(e){let r=(0,Yh.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,Yh.stringify)({client_id:e.clientId,logout_uri:e.logoutUri});return`https://${this.options.domain}${t.LOGOUT_URL}?${r}`}};Er.ImplicitGrantClient=Qh});var GP=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=uF;var Ot=mP();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 cF=BP();function uF(t){return new cF.ImplicitGrantClient(t)}});var S5=window.cinerino=GP();})();
|
|
5
5
|
/* istanbul ignore else -- @preserve */
|
|
6
6
|
//# sourceMappingURL=bundle.js.map
|