@orderingstack/front-hooks 3.1.0 → 3.2.0

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/dist/index.cjs.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var F=require("react"),On=require("@orderingstack/ordering-core-react");function Re(e,t){const r=F.useRef(),[n,a]=F.useState(null);return F.useEffect(()=>{r.current=e},[e]),F.useEffect(()=>{function i(){var s;(s=r.current)==null||s.call(r)}if(t!==null){const s=setInterval(i,t);return a(s),()=>{a(null),clearInterval(s)}}},[t]),()=>{n&&clearInterval(n)}}var X=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sn=Object.prototype;function wn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Sn;return e===r}var je=wn;function In(e,t){return function(r){return e(t(r))}}var Lr=In,Dn=Lr,Cn=Dn(Object.keys,Object),Ln=Cn,Rn=je,jn=Ln,Pn=Object.prototype,Nn=Pn.hasOwnProperty;function xn(e){if(!Rn(e))return jn(e);var t=[];for(var r in Object(e))Nn.call(e,r)&&r!="constructor"&&t.push(r);return t}var Rr=xn,Un=typeof X=="object"&&X&&X.Object===Object&&X,jr=Un,Mn=jr,Bn=typeof self=="object"&&self&&self.Object===Object&&self,Fn=Mn||Bn||Function("return this")(),q=Fn,Hn=q,Yn=Hn.Symbol,Pe=Yn,It=Pe,Pr=Object.prototype,Gn=Pr.hasOwnProperty,Kn=Pr.toString,ve=It?It.toStringTag:void 0;function Wn(e){var t=Gn.call(e,ve),r=e[ve];try{e[ve]=void 0;var n=!0}catch{}var a=Kn.call(e);return n&&(t?e[ve]=r:delete e[ve]),a}var qn=Wn,kn=Object.prototype,Vn=kn.toString;function Jn(e){return Vn.call(e)}var zn=Jn,Dt=Pe,Zn=qn,Xn=zn,Qn="[object Null]",ea="[object Undefined]",Ct=Dt?Dt.toStringTag:void 0;function ta(e){return e==null?e===void 0?ea:Qn:Ct&&Ct in Object(e)?Zn(e):Xn(e)}var Ne=ta;function ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ge=ra,na=Ne,aa=ge,ia="[object AsyncFunction]",sa="[object Function]",oa="[object GeneratorFunction]",ua="[object Proxy]";function fa(e){if(!aa(e))return!1;var t=na(e);return t==sa||t==oa||t==ia||t==ua}var Nr=fa,ca=q,la=ca["__core-js_shared__"],ha=la,We=ha,Lt=function(){var e=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function va(e){return!!Lt&&Lt in e}var da=va,pa=Function.prototype,ga=pa.toString;function $a(e){if(e!=null){try{return ga.call(e)}catch{}try{return e+""}catch{}}return""}var xr=$a,ya=Nr,ma=da,ba=ge,_a=xr,Aa=/[\\^$.*+?()[\]{}|]/g,Ea=/^\[object .+?Constructor\]$/,Ta=Function.prototype,Oa=Object.prototype,Sa=Ta.toString,wa=Oa.hasOwnProperty,Ia=RegExp("^"+Sa.call(wa).replace(Aa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Da(e){if(!ba(e)||ma(e))return!1;var t=ya(e)?Ia:Ea;return t.test(_a(e))}var Ca=Da;function La(e,t){return e==null?void 0:e[t]}var Ra=La,ja=Ca,Pa=Ra;function Na(e,t){var r=Pa(e,t);return ja(r)?r:void 0}var Q=Na,xa=Q,Ua=q,Ma=xa(Ua,"DataView"),Ba=Ma,Fa=Q,Ha=q,Ya=Fa(Ha,"Map"),ft=Ya,Ga=Q,Ka=q,Wa=Ga(Ka,"Promise"),qa=Wa,ka=Q,Va=q,Ja=ka(Va,"Set"),za=Ja,Za=Q,Xa=q,Qa=Za(Xa,"WeakMap"),ei=Qa,Xe=Ba,Qe=ft,et=qa,tt=za,rt=ei,Ur=Ne,ie=xr,Rt="[object Map]",ti="[object Object]",jt="[object Promise]",Pt="[object Set]",Nt="[object WeakMap]",xt="[object DataView]",ri=ie(Xe),ni=ie(Qe),ai=ie(et),ii=ie(tt),si=ie(rt),Z=Ur;(Xe&&Z(new Xe(new ArrayBuffer(1)))!=xt||Qe&&Z(new Qe)!=Rt||et&&Z(et.resolve())!=jt||tt&&Z(new tt)!=Pt||rt&&Z(new rt)!=Nt)&&(Z=function(e){var t=Ur(e),r=t==ti?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case ri:return xt;case ni:return Rt;case ai:return jt;case ii:return Pt;case si:return Nt}return t});var $e=Z;function oi(e){return e!=null&&typeof e=="object"}var se=oi,ui=Ne,fi=se,ci="[object Arguments]";function li(e){return fi(e)&&ui(e)==ci}var hi=li,Ut=hi,vi=se,Mr=Object.prototype,di=Mr.hasOwnProperty,pi=Mr.propertyIsEnumerable,gi=Ut(function(){return arguments}())?Ut:function(e){return vi(e)&&di.call(e,"callee")&&!pi.call(e,"callee")},Br=gi,$i=Array.isArray,ye=$i,yi=9007199254740991;function mi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yi}var Fr=mi,bi=Nr,_i=Fr;function Ai(e){return e!=null&&_i(e.length)&&!bi(e)}var ct=Ai,ae={exports:{}};function Ei(){return!1}var Ti=Ei;(function(e,t){var r=q,n=Ti,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?r.Buffer:void 0,o=u?u.isBuffer:void 0,l=o||n;e.exports=l})(ae,ae.exports);var Oi=Ne,Si=Fr,wi=se,Ii="[object Arguments]",Di="[object Array]",Ci="[object Boolean]",Li="[object Date]",Ri="[object Error]",ji="[object Function]",Pi="[object Map]",Ni="[object Number]",xi="[object Object]",Ui="[object RegExp]",Mi="[object Set]",Bi="[object String]",Fi="[object WeakMap]",Hi="[object ArrayBuffer]",Yi="[object DataView]",Gi="[object Float32Array]",Ki="[object Float64Array]",Wi="[object Int8Array]",qi="[object Int16Array]",ki="[object Int32Array]",Vi="[object Uint8Array]",Ji="[object Uint8ClampedArray]",zi="[object Uint16Array]",Zi="[object Uint32Array]",R={};R[Gi]=R[Ki]=R[Wi]=R[qi]=R[ki]=R[Vi]=R[Ji]=R[zi]=R[Zi]=!0;R[Ii]=R[Di]=R[Hi]=R[Ci]=R[Yi]=R[Li]=R[Ri]=R[ji]=R[Pi]=R[Ni]=R[xi]=R[Ui]=R[Mi]=R[Bi]=R[Fi]=!1;function Xi(e){return wi(e)&&Si(e.length)&&!!R[Oi(e)]}var Qi=Xi;function es(e){return function(t){return e(t)}}var lt=es,de={exports:{}};(function(e,t){var r=jr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i&&r.process,u=function(){try{var o=a&&a.require&&a.require("util").types;return o||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(de,de.exports);var ts=Qi,rs=lt,Mt=de.exports,Bt=Mt&&Mt.isTypedArray,ns=Bt?rs(Bt):ts,ht=ns,as=Rr,is=$e,ss=Br,os=ye,us=ct,fs=ae.exports,cs=je,ls=ht,hs="[object Map]",vs="[object Set]",ds=Object.prototype,ps=ds.hasOwnProperty;function gs(e){if(e==null)return!0;if(us(e)&&(os(e)||typeof e=="string"||typeof e.splice=="function"||fs(e)||ls(e)||ss(e)))return!e.length;var t=is(e);if(t==hs||t==vs)return!e.size;if(cs(e))return!as(e).length;for(var r in e)if(ps.call(e,r))return!1;return!0}var vt=gs,Hr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(X,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,u){var o=s.prototype;u.utc=function(c){var m={date:c,utc:!0,args:arguments};return new s(m)},o.utc=function(c){var m=u(this.toDate(),{locale:this.$L,utc:!0});return c?m.add(this.utcOffset(),r):m},o.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=o.parse;o.parse=function(c){c.utc&&(this.$u=!0),this.$utils().u(c.$offset)||(this.$offset=c.$offset),l.call(this,c)};var y=o.init;o.init=function(){if(this.$u){var c=this.$d;this.$y=c.getUTCFullYear(),this.$M=c.getUTCMonth(),this.$D=c.getUTCDate(),this.$W=c.getUTCDay(),this.$H=c.getUTCHours(),this.$m=c.getUTCMinutes(),this.$s=c.getUTCSeconds(),this.$ms=c.getUTCMilliseconds()}else y.call(this)};var v=o.utcOffset;o.utcOffset=function(c,m){var O=this.$utils().u;if(O(c))return this.$u?0:O(this.$offset)?v.call(this):this.$offset;if(typeof c=="string"&&(c=function(D){D===void 0&&(D="");var B=D.match(n);if(!B)return null;var H=(""+B[0]).match(a)||["-",0,0],K=H[0],C=60*+H[1]+ +H[2];return C===0?0:K==="+"?C:-C}(c),c===null))return this;var w=Math.abs(c)<=16?60*c:c,E=this;if(m)return E.$offset=w,E.$u=c===0,E;if(c!==0){var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(w+P,r)).$offset=w,E.$x.$localOffset=P}else E=this.utc();return E};var f=o.format;o.format=function(c){var m=c||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,m)},o.valueOf=function(){var c=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*c},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(c){return c==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var $=o.diff;o.diff=function(c,m,O){if(c&&this.$u===c.$u)return $.call(this,c,m,O);var w=this.local(),E=u(c).local();return $.call(w,E,m,O)}}})})(Hr);var $s=Hr.exports,Yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(X,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(a,i,s){var u,o=function(f,h,$){$===void 0&&($={});var c=new Date(f),m=function(O,w){w===void 0&&(w={});var E=w.timeZoneName||"short",P=O+"|"+E,D=n[P];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:O,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),n[P]=D),D}(h,$);return m.formatToParts(c)},l=function(f,h){for(var $=o(f,h),c=[],m=0;m<$.length;m+=1){var O=$[m],w=O.type,E=O.value,P=r[w];P>=0&&(c[P]=parseInt(E,10))}var D=c[3],B=D===24?0:D,H=c[0]+"-"+c[1]+"-"+c[2]+" "+B+":"+c[4]+":"+c[5]+":000",K=+f;return(s.utc(H).valueOf()-(K-=K%1e3))/6e4},y=i.prototype;y.tz=function(f,h){f===void 0&&(f=u);var $=this.utcOffset(),c=this.toDate(),m=c.toLocaleString("en-US",{timeZone:f}),O=Math.round((c-new Date(m))/1e3/60),w=s(m).$set("millisecond",this.$ms).utcOffset(15*-Math.round(c.getTimezoneOffset()/15)-O,!0);if(h){var E=w.utcOffset();w=w.add($-E,"minute")}return w.$x.$timezone=f,w},y.offsetName=function(f){var h=this.$x.$timezone||s.tz.guess(),$=o(this.valueOf(),h,{timeZoneName:f}).find(function(c){return c.type.toLowerCase()==="timezonename"});return $&&$.value};var v=y.startOf;y.startOf=function(f,h){if(!this.$x||!this.$x.$timezone)return v.call(this,f,h);var $=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return v.call($,f,h).tz(this.$x.$timezone,!0)},s.tz=function(f,h,$){var c=$&&h,m=$||h||u,O=l(+s(),m);if(typeof f!="string")return s(f).tz(m);var w=function(B,H,K){var C=B-60*H*1e3,S=l(C,K);if(H===S)return[C,H];var V=l(C-=60*(S-H)*1e3,K);return S===V?[C,S]:[B-60*Math.min(S,V)*1e3,Math.max(S,V)]}(s.utc(f,c).valueOf(),O,m),E=w[0],P=w[1],D=s(E).utcOffset(P);return D.$x.$timezone=m,D},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){u=f}}})})(Yr);var ys=Yr.exports,Gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(X,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",s="second",u="minute",o="hour",l="day",y="week",v="month",f="quarter",h="year",$="date",c="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},E=function(T,g,d){var b=String(T);return!b||b.length>=g?T:""+Array(g+1-b.length).join(d)+T},P={s:E,z:function(T){var g=-T.utcOffset(),d=Math.abs(g),b=Math.floor(d/60),p=d%60;return(g<=0?"+":"-")+E(b,2,"0")+":"+E(p,2,"0")},m:function T(g,d){if(g.date()<d.date())return-T(d,g);var b=12*(d.year()-g.year())+(d.month()-g.month()),p=g.clone().add(b,v),A=d-p<0,_=g.clone().add(b+(A?-1:1),v);return+(-(b+(d-p)/(A?p-_:_-p))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:v,y:h,w:y,d:l,D:$,h:o,m:u,s,ms:i,Q:f}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},D="en",B={};B[D]=w;var H=function(T){return T instanceof V},K=function T(g,d,b){var p;if(!g)return D;if(typeof g=="string"){var A=g.toLowerCase();B[A]&&(p=A),d&&(B[A]=d,p=A);var _=g.split("-");if(!p&&_.length>1)return T(_[0])}else{var I=g.name;B[I]=g,p=I}return!b&&p&&(D=p),p||!b&&D},C=function(T,g){if(H(T))return T.clone();var d=typeof g=="object"?g:{};return d.date=T,d.args=arguments,new V(d)},S=P;S.l=K,S.i=H,S.w=function(T,g){return C(T,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var V=function(){function T(d){this.$L=K(d.locale,null,!0),this.parse(d)}var g=T.prototype;return g.parse=function(d){this.$d=function(b){var p=b.date,A=b.utc;if(p===null)return new Date(NaN);if(S.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var _=p.match(m);if(_){var I=_[2]-1||0,N=(_[7]||"0").substring(0,3);return A?new Date(Date.UTC(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,N)):new Date(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,N)}}return new Date(p)}(d),this.$x=d.x||{},this.init()},g.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return this.$d.toString()!==c},g.isSame=function(d,b){var p=C(d);return this.startOf(b)<=p&&p<=this.endOf(b)},g.isAfter=function(d,b){return C(d)<this.startOf(b)},g.isBefore=function(d,b){return this.endOf(b)<C(d)},g.$g=function(d,b,p){return S.u(d)?this[b]:this.set(p,d)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(d,b){var p=this,A=!!S.u(b)||b,_=S.p(d),I=function(te,Y){var z=S.w(p.$u?Date.UTC(p.$y,Y,te):new Date(p.$y,Y,te),p);return A?z:z.endOf(l)},N=function(te,Y){return S.w(p.toDate()[te].apply(p.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Y)),p)},j=this.$W,U=this.$M,J=this.$D,k="set"+(this.$u?"UTC":"");switch(_){case h:return A?I(1,0):I(31,11);case v:return A?I(1,U):I(0,U+1);case y:var le=this.$locale().weekStart||0,he=(j<le?j+7:j)-le;return I(A?J-he:J+(6-he),U);case l:case $:return N(k+"Hours",0);case o:return N(k+"Minutes",1);case u:return N(k+"Seconds",2);case s:return N(k+"Milliseconds",3);default:return this.clone()}},g.endOf=function(d){return this.startOf(d,!1)},g.$set=function(d,b){var p,A=S.p(d),_="set"+(this.$u?"UTC":""),I=(p={},p[l]=_+"Date",p[$]=_+"Date",p[v]=_+"Month",p[h]=_+"FullYear",p[o]=_+"Hours",p[u]=_+"Minutes",p[s]=_+"Seconds",p[i]=_+"Milliseconds",p)[A],N=A===l?this.$D+(b-this.$W):b;if(A===v||A===h){var j=this.clone().set($,1);j.$d[I](N),j.init(),this.$d=j.set($,Math.min(this.$D,j.daysInMonth())).$d}else I&&this.$d[I](N);return this.init(),this},g.set=function(d,b){return this.clone().$set(d,b)},g.get=function(d){return this[S.p(d)]()},g.add=function(d,b){var p,A=this;d=Number(d);var _=S.p(b),I=function(U){var J=C(A);return S.w(J.date(J.date()+Math.round(U*d)),A)};if(_===v)return this.set(v,this.$M+d);if(_===h)return this.set(h,this.$y+d);if(_===l)return I(1);if(_===y)return I(7);var N=(p={},p[u]=n,p[o]=a,p[s]=r,p)[_]||1,j=this.$d.getTime()+d*N;return S.w(j,this)},g.subtract=function(d,b){return this.add(-1*d,b)},g.format=function(d){var b=this,p=this.$locale();if(!this.isValid())return p.invalidDate||c;var A=d||"YYYY-MM-DDTHH:mm:ssZ",_=S.z(this),I=this.$H,N=this.$m,j=this.$M,U=p.weekdays,J=p.months,k=function(Y,z,Ke,be){return Y&&(Y[z]||Y(b,A))||Ke[z].slice(0,be)},le=function(Y){return S.s(I%12||12,Y,"0")},he=p.meridiem||function(Y,z,Ke){var be=Y<12?"AM":"PM";return Ke?be.toLowerCase():be},te={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:S.s(j+1,2,"0"),MMM:k(p.monthsShort,j,J,3),MMMM:k(J,j),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:k(p.weekdaysMin,this.$W,U,2),ddd:k(p.weekdaysShort,this.$W,U,3),dddd:U[this.$W],H:String(I),HH:S.s(I,2,"0"),h:le(1),hh:le(2),a:he(I,N,!0),A:he(I,N,!1),m:String(N),mm:S.s(N,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:_};return A.replace(O,function(Y,z){return z||te[Y]||_.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(d,b,p){var A,_=S.p(b),I=C(d),N=(I.utcOffset()-this.utcOffset())*n,j=this-I,U=S.m(this,I);return U=(A={},A[h]=U/12,A[v]=U,A[f]=U/3,A[y]=(j-N)/6048e5,A[l]=(j-N)/864e5,A[o]=j/a,A[u]=j/n,A[s]=j/r,A)[_]||j,p?U:S.a(U)},g.daysInMonth=function(){return this.endOf(v).$D},g.$locale=function(){return B[this.$L]},g.locale=function(d,b){if(!d)return this.$L;var p=this.clone(),A=K(d,b,!0);return A&&(p.$L=A),p},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},T}(),wt=V.prototype;return C.prototype=wt,[["$ms",i],["$s",s],["$m",u],["$H",o],["$W",l],["$M",v],["$y",h],["$D",$]].forEach(function(T){wt[T[1]]=function(g){return this.$g(g,T[0],T[1])}}),C.extend=function(T,g){return T.$i||(T(g,V,C),T.$i=!0),C},C.locale=K,C.isDayjs=H,C.unix=function(T){return C(1e3*T)},C.en=B[D],C.Ls=B,C.p={},C})})(Gr);var pe=Gr.exports;pe.extend($s);pe.extend(ys);const Kr=["SUN","MON","TUE","WED","THU","FRI","SAT"],Ie=e=>{const[t,r]=e.split(":");return{hour:parseInt(t||"0",10),minutes:parseInt(r||"0",10)}};function nt(e,t,r){const{availability:n}=e;if(!n)return!0;if(vt(n))return!1;const a=r?pe(r).tz(t):pe().tz(t),i=a.day(),s=n[Kr[i]];if(!Array.isArray(s)||s.length!==2)return!1;const u=a.hour(),o=a.minute(),l=Ie(s[0]),y=Ie(s[1]);return u<l.hour||u===l.hour&&o<l.minutes?!1:!(u>y.hour||u===y.hour&&o>y.minutes)}const at=(e,t=void 0,r=void 0,n=!1)=>n?e.map(i=>{let s;return Array.isArray(i.items)&&(s=at(i.items,t,r,n)),{...i,items:s,outsideAvailabilitySlot:!nt(i,t,r)||(s==null?void 0:s.every(u=>u.outsideAvailabilitySlot))||!1}}):e.filter(i=>nt(i,t,r)).map(i=>Array.isArray(i.items)?{...i,items:at(i.items,t,r)}:i),Ft=(e,t=void 0,r=void 0,n=!1)=>{let a=[];return e.forEach(i=>{if(!Array.isArray(i.items)){a.push(i);return}const s=at(i.items,t,r,n);s.length>0&&a.push({...i,items:s})}),n&&(a=a.map(i=>!i.items||!Array.isArray(i.items)?i:{...i,outsideAvailabilitySlot:!nt(i,t,r)||i.items.every(s=>s.outsideAvailabilitySlot)})),a};function _e(e){const t=e==null?void 0:e.week;if(!e||!e.active||!t)return!1;const r=pe(),n=r.day(),a=t[Kr[n]];return a?a.some(i=>ms(r,i)):!1}function ms(e,t){const r=e.hour(),n=e.minute(),a=Ie(t.from),i=Ie(t.to);return r<a.hour||r===a.hour&&n<a.minutes?!1:!(r>i.hour||r===i.hour&&n>i.minutes)}function bs(){this.__data__=[],this.size=0}var _s=bs;function As(e,t){return e===t||e!==e&&t!==t}var dt=As,Es=dt;function Ts(e,t){for(var r=e.length;r--;)if(Es(e[r][0],t))return r;return-1}var xe=Ts,Os=xe,Ss=Array.prototype,ws=Ss.splice;function Is(e){var t=this.__data__,r=Os(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ws.call(t,r,1),--this.size,!0}var Ds=Is,Cs=xe;function Ls(e){var t=this.__data__,r=Cs(t,e);return r<0?void 0:t[r][1]}var Rs=Ls,js=xe;function Ps(e){return js(this.__data__,e)>-1}var Ns=Ps,xs=xe;function Us(e,t){var r=this.__data__,n=xs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Ms=Us,Bs=_s,Fs=Ds,Hs=Rs,Ys=Ns,Gs=Ms;function oe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=Bs;oe.prototype.delete=Fs;oe.prototype.get=Hs;oe.prototype.has=Ys;oe.prototype.set=Gs;var Ue=oe,Ks=Ue;function Ws(){this.__data__=new Ks,this.size=0}var qs=Ws;function ks(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Vs=ks;function Js(e){return this.__data__.get(e)}var zs=Js;function Zs(e){return this.__data__.has(e)}var Xs=Zs,Qs=Q,eo=Qs(Object,"create"),Me=eo,Ht=Me;function to(){this.__data__=Ht?Ht(null):{},this.size=0}var ro=to;function no(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ao=no,io=Me,so="__lodash_hash_undefined__",oo=Object.prototype,uo=oo.hasOwnProperty;function fo(e){var t=this.__data__;if(io){var r=t[e];return r===so?void 0:r}return uo.call(t,e)?t[e]:void 0}var co=fo,lo=Me,ho=Object.prototype,vo=ho.hasOwnProperty;function po(e){var t=this.__data__;return lo?t[e]!==void 0:vo.call(t,e)}var go=po,$o=Me,yo="__lodash_hash_undefined__";function mo(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$o&&t===void 0?yo:t,this}var bo=mo,_o=ro,Ao=ao,Eo=co,To=go,Oo=bo;function ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ue.prototype.clear=_o;ue.prototype.delete=Ao;ue.prototype.get=Eo;ue.prototype.has=To;ue.prototype.set=Oo;var So=ue,Yt=So,wo=Ue,Io=ft;function Do(){this.size=0,this.__data__={hash:new Yt,map:new(Io||wo),string:new Yt}}var Co=Do;function Lo(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ro=Lo,jo=Ro;function Po(e,t){var r=e.__data__;return jo(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Be=Po,No=Be;function xo(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t}var Uo=xo,Mo=Be;function Bo(e){return Mo(this,e).get(e)}var Fo=Bo,Ho=Be;function Yo(e){return Ho(this,e).has(e)}var Go=Yo,Ko=Be;function Wo(e,t){var r=Ko(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var qo=Wo,ko=Co,Vo=Uo,Jo=Fo,zo=Go,Zo=qo;function fe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fe.prototype.clear=ko;fe.prototype.delete=Vo;fe.prototype.get=Jo;fe.prototype.has=zo;fe.prototype.set=Zo;var Wr=fe,Xo=Ue,Qo=ft,eu=Wr,tu=200;function ru(e,t){var r=this.__data__;if(r instanceof Xo){var n=r.__data__;if(!Qo||n.length<tu-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eu(n)}return r.set(e,t),this.size=r.size,this}var nu=ru,au=Ue,iu=qs,su=Vs,ou=zs,uu=Xs,fu=nu;function ce(e){var t=this.__data__=new au(e);this.size=t.size}ce.prototype.clear=iu;ce.prototype.delete=su;ce.prototype.get=ou;ce.prototype.has=uu;ce.prototype.set=fu;var qr=ce,cu="__lodash_hash_undefined__";function lu(e){return this.__data__.set(e,cu),this}var hu=lu;function vu(e){return this.__data__.has(e)}var du=vu,pu=Wr,gu=hu,$u=du;function De(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new pu;++t<r;)this.add(e[t])}De.prototype.add=De.prototype.push=gu;De.prototype.has=$u;var yu=De;function mu(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var bu=mu;function _u(e,t){return e.has(t)}var Au=_u,Eu=yu,Tu=bu,Ou=Au,Su=1,wu=2;function Iu(e,t,r,n,a,i){var s=r&Su,u=e.length,o=t.length;if(u!=o&&!(s&&o>u))return!1;var l=i.get(e),y=i.get(t);if(l&&y)return l==t&&y==e;var v=-1,f=!0,h=r&wu?new Eu:void 0;for(i.set(e,t),i.set(t,e);++v<u;){var $=e[v],c=t[v];if(n)var m=s?n(c,$,v,t,e,i):n($,c,v,e,t,i);if(m!==void 0){if(m)continue;f=!1;break}if(h){if(!Tu(t,function(O,w){if(!Ou(h,w)&&($===O||a($,O,r,n,i)))return h.push(w)})){f=!1;break}}else if(!($===c||a($,c,r,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var kr=Iu,Du=q,Cu=Du.Uint8Array,Vr=Cu;function Lu(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var Ru=Lu;function ju(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Pu=ju,Gt=Pe,Kt=Vr,Nu=dt,xu=kr,Uu=Ru,Mu=Pu,Bu=1,Fu=2,Hu="[object Boolean]",Yu="[object Date]",Gu="[object Error]",Ku="[object Map]",Wu="[object Number]",qu="[object RegExp]",ku="[object Set]",Vu="[object String]",Ju="[object Symbol]",zu="[object ArrayBuffer]",Zu="[object DataView]",Wt=Gt?Gt.prototype:void 0,qe=Wt?Wt.valueOf:void 0;function Xu(e,t,r,n,a,i,s){switch(r){case Zu:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zu:return!(e.byteLength!=t.byteLength||!i(new Kt(e),new Kt(t)));case Hu:case Yu:case Wu:return Nu(+e,+t);case Gu:return e.name==t.name&&e.message==t.message;case qu:case Vu:return e==t+"";case Ku:var u=Uu;case ku:var o=n&Bu;if(u||(u=Mu),e.size!=t.size&&!o)return!1;var l=s.get(e);if(l)return l==t;n|=Fu,s.set(e,t);var y=xu(u(e),u(t),n,a,i,s);return s.delete(e),y;case Ju:if(qe)return qe.call(e)==qe.call(t)}return!1}var Qu=Xu;function ef(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Jr=ef,tf=Jr,rf=ye;function nf(e,t,r){var n=t(e);return rf(e)?n:tf(n,r(e))}var zr=nf;function af(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}var sf=af;function of(){return[]}var Zr=of,uf=sf,ff=Zr,cf=Object.prototype,lf=cf.propertyIsEnumerable,qt=Object.getOwnPropertySymbols,hf=qt?function(e){return e==null?[]:(e=Object(e),uf(qt(e),function(t){return lf.call(e,t)}))}:ff,pt=hf;function vf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var df=vf,pf=9007199254740991,gf=/^(?:0|[1-9]\d*)$/;function $f(e,t){var r=typeof e;return t=t==null?pf:t,!!t&&(r=="number"||r!="symbol"&&gf.test(e))&&e>-1&&e%1==0&&e<t}var yf=$f,mf=df,bf=Br,_f=ye,Af=ae.exports,Ef=yf,Tf=ht,Of=Object.prototype,Sf=Of.hasOwnProperty;function wf(e,t){var r=_f(e),n=!r&&bf(e),a=!r&&!n&&Af(e),i=!r&&!n&&!a&&Tf(e),s=r||n||a||i,u=s?mf(e.length,String):[],o=u.length;for(var l in e)(t||Sf.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ef(l,o)))&&u.push(l);return u}var Xr=wf,If=Xr,Df=Rr,Cf=ct;function Lf(e){return Cf(e)?If(e):Df(e)}var gt=Lf,Rf=zr,jf=pt,Pf=gt;function Nf(e){return Rf(e,Pf,jf)}var Qr=Nf,kt=Qr,xf=1,Uf=Object.prototype,Mf=Uf.hasOwnProperty;function Bf(e,t,r,n,a,i){var s=r&xf,u=kt(e),o=u.length,l=kt(t),y=l.length;if(o!=y&&!s)return!1;for(var v=o;v--;){var f=u[v];if(!(s?f in t:Mf.call(t,f)))return!1}var h=i.get(e),$=i.get(t);if(h&&$)return h==t&&$==e;var c=!0;i.set(e,t),i.set(t,e);for(var m=s;++v<o;){f=u[v];var O=e[f],w=t[f];if(n)var E=s?n(w,O,f,t,e,i):n(O,w,f,e,t,i);if(!(E===void 0?O===w||a(O,w,r,n,i):E)){c=!1;break}m||(m=f=="constructor")}if(c&&!m){var P=e.constructor,D=t.constructor;P!=D&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof D=="function"&&D instanceof D)&&(c=!1)}return i.delete(e),i.delete(t),c}var Ff=Bf,ke=qr,Hf=kr,Yf=Qu,Gf=Ff,Vt=$e,Jt=ye,zt=ae.exports,Kf=ht,Wf=1,Zt="[object Arguments]",Xt="[object Array]",Ae="[object Object]",qf=Object.prototype,Qt=qf.hasOwnProperty;function kf(e,t,r,n,a,i){var s=Jt(e),u=Jt(t),o=s?Xt:Vt(e),l=u?Xt:Vt(t);o=o==Zt?Ae:o,l=l==Zt?Ae:l;var y=o==Ae,v=l==Ae,f=o==l;if(f&&zt(e)){if(!zt(t))return!1;s=!0,y=!1}if(f&&!y)return i||(i=new ke),s||Kf(e)?Hf(e,t,r,n,a,i):Yf(e,t,o,r,n,a,i);if(!(r&Wf)){var h=y&&Qt.call(e,"__wrapped__"),$=v&&Qt.call(t,"__wrapped__");if(h||$){var c=h?e.value():e,m=$?t.value():t;return i||(i=new ke),a(c,m,r,n,i)}}return f?(i||(i=new ke),Gf(e,t,r,n,a,i)):!1}var Vf=kf,Jf=Vf,er=se;function en(e,t,r,n,a){return e===t?!0:e==null||t==null||!er(e)&&!er(t)?e!==e&&t!==t:Jf(e,t,r,n,en,a)}var zf=en,Zf=zf;function Xf(e,t){return Zf(e,t)}var tn=Xf;function Qf(e,t=!1,r=void 0,n=60){const[a,i]=F.useState(e&&Ft(e,r,void 0,t));Re(s,n*1e3);function s(){const u=e&&Ft(e,r,void 0,t);tn(u,a)||(console.log("menu has changed",u),i(u))}return F.useEffect(s,[a,e]),a}var tr;(function(e){e.UNINITIALIZED="UNINITIALIZED",e.PROCESSING="PROCESSING",e.PAID="PAID",e.FAILED="FAILED",e.PRINTING_RECEIPT="PRINTING_RECEIPT",e.PRINTING_RECEIPT_SUCCESS="PRINTING_RECEIPT_SUCCESS",e.SENDING_RECEIPT="SENDING_RECEIPT",e.SENDING_RECEIPT_SUCCESS="SENDING_RECEIPT_SUCCESS",e.ERROR="ERROR"})(tr||(tr={}));var rr;(function(e){e.CAROUSEL="carousel",e.NORMAL="normal",e.IMAGE="image"})(rr||(rr={}));var it;(function(e){e.GROUP="3e/group",e.PRODUCT="3e/product",e.CATEGORY="3e/group/category",e.OPTIONS="3e/group/options",e.CONFIG="3e/group/config",e.STATIC="3e/static",e.REF="3e/ref",e.QUERY="3e/query"})(it||(it={}));var nr;(function(e){e.GROUP="group",e.PRODUCT="product"})(nr||(nr={}));var ar;(function(e){e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.DINE_IN="DINE_IN",e.DINE_IN_OPEN="DINE_IN_OPEN",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.GLOVO_TAKE_AWAY="GLOVO_TAKE_AWAY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.JUSTEAT_TAKE_AWAY="JUSTEAT_TAKE_AWAY",e.UBER_DELIVERY="UBER_DELIVERY",e.UBER_TAKE_AWAY="UBER_TAKE_AWAY",e.UBER_DINE_IN="UBER_DINE_IN",e.BOLT_DELIVERY="BOLT_DELIVERY",e.BOLT_TAKE_AWAY="BOLT_TAKE_AWAY",e.WOLT_DELIVERY="WOLT_DELIVERY",e.WOLT_TAKE_AWAY="WOLT_TAKE_AWAY",e.WOLT_DINE_IN="WOLT_DINE_IN"})(ar||(ar={}));var ir;(function(e){e.NEW="NEW",e.COMPLETED="COMPLETED",e.VERIFIED="VERIFIED",e.DELIVER="DELIVER",e.DELIVERED="DELIVERED",e.CLOSED="CLOSED",e.ABANDONED="ABANDONED",e.CANCELLED="CANCELLED",e.PICKED="PICKED"})(ir||(ir={}));var sr;(function(e){e.CASH="CASH",e.CARD="CARD",e.COD="COD",e.TERMINAL="TERMINAL",e.EPAYMENT="EPAYMENT",e.COUPON="COUPON",e.WALLET="WALLET",e.PREAUTHORIZED="PREAUTHORIZED",e.RETURN="RETURN",e.EXTERNAL="EXTERNAL"})(sr||(sr={}));var or;(function(e){e.KIOSK="KIOSK",e.WEB="WEB",e.JUST_EAT_TAKE_AWAY="JUSTEATTAKEAWAY",e.GLOVO="GLOVO",e.PYSZNE="PYSZNE",e.WOLT="WOLT",e.UBER="UBER",e.BOLT="BOLT"})(or||(or={}));var ur;(function(e){e.NEW="NEW",e.TECHNICAL="TECHNICAL",e.CONFIRMED="CONFIRMED",e.PROCESSING="PROCESSING",e.PROCESSED="PROCESSED",e.VOID="VOID",e.WASTE="WASTE"})(ur||(ur={}));var fr;(function(e){e.GROUP="group",e.PRODUCT="product"})(fr||(fr={}));var cr;(function(e){e.DINE_IN="DINE_IN",e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.UBER_DELIVERY="UBER_DELIVERY",e.BOLT_DELIVERY="BOLT_DELIVERY",e.WOLT_DELIVERY="WOLT_DELIVERY"})(cr||(cr={}));function ec(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var tc=ec,rc=Q,nc=function(){try{var e=rc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ac=nc,lr=ac;function ic(e,t,r){t=="__proto__"&&lr?lr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var rn=ic,sc=rn,oc=dt,uc=Object.prototype,fc=uc.hasOwnProperty;function cc(e,t,r){var n=e[t];(!(fc.call(e,t)&&oc(n,r))||r===void 0&&!(t in e))&&sc(e,t,r)}var nn=cc,lc=nn,hc=rn;function vc(e,t,r,n){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],o=n?n(r[u],e[u],u,r,e):void 0;o===void 0&&(o=e[u]),a?hc(r,u,o):lc(r,u,o)}return r}var Fe=vc,dc=Fe,pc=gt;function gc(e,t){return e&&dc(t,pc(t),e)}var $c=gc;function yc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var mc=yc,bc=ge,_c=je,Ac=mc,Ec=Object.prototype,Tc=Ec.hasOwnProperty;function Oc(e){if(!bc(e))return Ac(e);var t=_c(e),r=[];for(var n in e)n=="constructor"&&(t||!Tc.call(e,n))||r.push(n);return r}var Sc=Oc,wc=Xr,Ic=Sc,Dc=ct;function Cc(e){return Dc(e)?wc(e,!0):Ic(e)}var $t=Cc,Lc=Fe,Rc=$t;function jc(e,t){return e&&Lc(t,Rc(t),e)}var Pc=jc,st={exports:{}};(function(e,t){var r=q,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function o(l,y){if(y)return l.slice();var v=l.length,f=u?u(v):new l.constructor(v);return l.copy(f),f}e.exports=o})(st,st.exports);function Nc(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var xc=Nc,Uc=Fe,Mc=pt;function Bc(e,t){return Uc(e,Mc(e),t)}var Fc=Bc,Hc=Lr,Yc=Hc(Object.getPrototypeOf,Object),an=Yc,Gc=Jr,Kc=an,Wc=pt,qc=Zr,kc=Object.getOwnPropertySymbols,Vc=kc?function(e){for(var t=[];e;)Gc(t,Wc(e)),e=Kc(e);return t}:qc,sn=Vc,Jc=Fe,zc=sn;function Zc(e,t){return Jc(e,zc(e),t)}var Xc=Zc,Qc=zr,el=sn,tl=$t;function rl(e){return Qc(e,tl,el)}var nl=rl,al=Object.prototype,il=al.hasOwnProperty;function sl(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&il.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var ol=sl,hr=Vr;function ul(e){var t=new e.constructor(e.byteLength);return new hr(t).set(new hr(e)),t}var yt=ul,fl=yt;function cl(e,t){var r=t?fl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ll=cl,hl=/\w*$/;function vl(e){var t=new e.constructor(e.source,hl.exec(e));return t.lastIndex=e.lastIndex,t}var dl=vl,vr=Pe,dr=vr?vr.prototype:void 0,pr=dr?dr.valueOf:void 0;function pl(e){return pr?Object(pr.call(e)):{}}var gl=pl,$l=yt;function yl(e,t){var r=t?$l(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ml=yl,bl=yt,_l=ll,Al=dl,El=gl,Tl=ml,Ol="[object Boolean]",Sl="[object Date]",wl="[object Map]",Il="[object Number]",Dl="[object RegExp]",Cl="[object Set]",Ll="[object String]",Rl="[object Symbol]",jl="[object ArrayBuffer]",Pl="[object DataView]",Nl="[object Float32Array]",xl="[object Float64Array]",Ul="[object Int8Array]",Ml="[object Int16Array]",Bl="[object Int32Array]",Fl="[object Uint8Array]",Hl="[object Uint8ClampedArray]",Yl="[object Uint16Array]",Gl="[object Uint32Array]";function Kl(e,t,r){var n=e.constructor;switch(t){case jl:return bl(e);case Ol:case Sl:return new n(+e);case Pl:return _l(e,r);case Nl:case xl:case Ul:case Ml:case Bl:case Fl:case Hl:case Yl:case Gl:return Tl(e,r);case wl:return new n;case Il:case Ll:return new n(e);case Dl:return Al(e);case Cl:return new n;case Rl:return El(e)}}var Wl=Kl,ql=ge,gr=Object.create,kl=function(){function e(){}return function(t){if(!ql(t))return{};if(gr)return gr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Vl=kl,Jl=Vl,zl=an,Zl=je;function Xl(e){return typeof e.constructor=="function"&&!Zl(e)?Jl(zl(e)):{}}var Ql=Xl,eh=$e,th=se,rh="[object Map]";function nh(e){return th(e)&&eh(e)==rh}var ah=nh,ih=ah,sh=lt,$r=de.exports,yr=$r&&$r.isMap,oh=yr?sh(yr):ih,uh=oh,fh=$e,ch=se,lh="[object Set]";function hh(e){return ch(e)&&fh(e)==lh}var vh=hh,dh=vh,ph=lt,mr=de.exports,br=mr&&mr.isSet,gh=br?ph(br):dh,$h=gh,yh=qr,mh=tc,bh=nn,_h=$c,Ah=Pc,Eh=st.exports,Th=xc,Oh=Fc,Sh=Xc,wh=Qr,Ih=nl,Dh=$e,Ch=ol,Lh=Wl,Rh=Ql,jh=ye,Ph=ae.exports,Nh=uh,xh=ge,Uh=$h,Mh=gt,Bh=$t,Fh=1,Hh=2,Yh=4,on="[object Arguments]",Gh="[object Array]",Kh="[object Boolean]",Wh="[object Date]",qh="[object Error]",un="[object Function]",kh="[object GeneratorFunction]",Vh="[object Map]",Jh="[object Number]",fn="[object Object]",zh="[object RegExp]",Zh="[object Set]",Xh="[object String]",Qh="[object Symbol]",ev="[object WeakMap]",tv="[object ArrayBuffer]",rv="[object DataView]",nv="[object Float32Array]",av="[object Float64Array]",iv="[object Int8Array]",sv="[object Int16Array]",ov="[object Int32Array]",uv="[object Uint8Array]",fv="[object Uint8ClampedArray]",cv="[object Uint16Array]",lv="[object Uint32Array]",L={};L[on]=L[Gh]=L[tv]=L[rv]=L[Kh]=L[Wh]=L[nv]=L[av]=L[iv]=L[sv]=L[ov]=L[Vh]=L[Jh]=L[fn]=L[zh]=L[Zh]=L[Xh]=L[Qh]=L[uv]=L[fv]=L[cv]=L[lv]=!0;L[qh]=L[un]=L[ev]=!1;function Oe(e,t,r,n,a,i){var s,u=t&Fh,o=t&Hh,l=t&Yh;if(r&&(s=a?r(e,n,a,i):r(e)),s!==void 0)return s;if(!xh(e))return e;var y=jh(e);if(y){if(s=Ch(e),!u)return Th(e,s)}else{var v=Dh(e),f=v==un||v==kh;if(Ph(e))return Eh(e,u);if(v==fn||v==on||f&&!a){if(s=o||f?{}:Rh(e),!u)return o?Sh(e,Ah(s,e)):Oh(e,_h(s,e))}else{if(!L[v])return a?e:{};s=Lh(e,v,u)}}i||(i=new yh);var h=i.get(e);if(h)return h;i.set(e,s),Uh(e)?e.forEach(function(m){s.add(Oe(m,t,r,m,e,i))}):Nh(e)&&e.forEach(function(m,O){s.set(O,Oe(m,t,r,O,e,i))});var $=l?o?Ih:wh:o?Bh:Mh,c=y?void 0:$(e);return mh(c||e,function(m,O){c&&(O=m,m=e[O]),bh(s,O,Oe(m,t,r,O,e,i))}),s}var hv=Oe,vv=hv,dv=1,pv=4;function gv(e){return vv(e,dv|pv)}var $v=gv;function yv(e,t){if(!t||!t.filter||!e||!e.filter||e.kind!==it.CONFIG)return!0;if(e.filter&&e.items){const r=Object.values(e.filter).flat().filter(n=>{var a,i,s,u;return t.filter[(i=(a=e.items)==null?void 0:a[0])==null?void 0:i.fltCtx]&&Object.values(t.filter[(u=(s=e.items)==null?void 0:s[0])==null?void 0:u.fltCtx]).includes(n)});if(Array.isArray(r)&&r.length===0)return!1}return!0}const Ce=(e,t,r=0)=>{if(!e)return 0;let n=parseFloat(e.price)||0;const{items:a}=e,i=$v(t);return yv(e,i)&&Array.isArray(a)&&a.forEach(s=>{let u=0;if(s.kind!=="3e/product")u=Ce(s,i,r+1);else{const{selected:o={}}=i,{selCtx:l,id:y}=s;l in o&&y in o[l]&&(u=Ce(s,i,r+1)*o[l][y],delete i.selected[l][y])}n+=u}),Math.round(100*n)/100},mv=({product:e,state:t,selected:r,cheapestGroupOptionsProduct:n})=>{var o;const a=t?Ce(e,t):0,i=e.state&&!vt((o=e==null?void 0:e.state)==null?void 0:o.selected)?Ce(e,e.state):0,s=e.minPrice&&parseFloat(e.price)===a;let u=r||!!n||parseFloat(e.price)===0?a||i:parseFloat(e.price);return n!==void 0&&(u-=n),s&&e.minPrice&&(u=parseFloat(e.minPrice)),{displayPrice:u,showAsMinPrice:s,calculatedPriceDefaultProductState:i}};function mt(e){const t=[];return e.reduce((r,n)=>{if(r[n.hash]||(r[n.hash]={...n,quantity:0,discounted:0,discounts:[],firstProductQuantity:n.quantity,itemsToRemove:[]},t.push(r[n.hash])),r[n.hash].quantity+=n.quantity,r[n.hash].itemsToRemove.push(n.id),n.discounts){r[n.hash].discounts||(r[n.hash].discounts=[]),r[n.hash].discounts=r[n.hash].discounts.concat(n.discounts),r[n.hash].discounted=0;for(let a=0;a<r[n.hash].discounts.length;a+=1)r[n.hash].discounts[a]&&(r[n.hash].discounted+=parseFloat(r[n.hash].discounts[a].discountPrice))}return r},{}),t}function bv(e){return mt(e)}function _v(e){return!e||e.length===0?null:mt(e.flatMap(t=>t.lines))}var bt={exports:{}},cn=function(t,r){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return t.apply(r,a)}},Av=cn,ee=Object.prototype.toString;function _t(e){return ee.call(e)==="[object Array]"}function ot(e){return typeof e=="undefined"}function Ev(e){return e!==null&&!ot(e)&&e.constructor!==null&&!ot(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Tv(e){return ee.call(e)==="[object ArrayBuffer]"}function Ov(e){return typeof FormData!="undefined"&&e instanceof FormData}function Sv(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function wv(e){return typeof e=="string"}function Iv(e){return typeof e=="number"}function ln(e){return e!==null&&typeof e=="object"}function Se(e){if(ee.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Dv(e){return ee.call(e)==="[object Date]"}function Cv(e){return ee.call(e)==="[object File]"}function Lv(e){return ee.call(e)==="[object Blob]"}function hn(e){return ee.call(e)==="[object Function]"}function Rv(e){return ln(e)&&hn(e.pipe)}function jv(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Pv(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Nv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function At(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),_t(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function ut(){var e={};function t(a,i){Se(e[i])&&Se(a)?e[i]=ut(e[i],a):Se(a)?e[i]=ut({},a):_t(a)?e[i]=a.slice():e[i]=a}for(var r=0,n=arguments.length;r<n;r++)At(arguments[r],t);return e}function xv(e,t,r){return At(t,function(a,i){r&&typeof a=="function"?e[i]=Av(a,r):e[i]=a}),e}function Uv(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var G={isArray:_t,isArrayBuffer:Tv,isBuffer:Ev,isFormData:Ov,isArrayBufferView:Sv,isString:wv,isNumber:Iv,isObject:ln,isPlainObject:Se,isUndefined:ot,isDate:Dv,isFile:Cv,isBlob:Lv,isFunction:hn,isStream:Rv,isURLSearchParams:jv,isStandardBrowserEnv:Nv,forEach:At,merge:ut,extend:xv,trim:Pv,stripBOM:Uv},re=G;function _r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var vn=function(t,r,n){if(!r)return t;var a;if(n)a=n(r);else if(re.isURLSearchParams(r))a=r.toString();else{var i=[];re.forEach(r,function(o,l){o===null||typeof o=="undefined"||(re.isArray(o)?l=l+"[]":o=[o],re.forEach(o,function(v){re.isDate(v)?v=v.toISOString():re.isObject(v)&&(v=JSON.stringify(v)),i.push(_r(l)+"="+_r(v))}))}),a=i.join("&")}if(a){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},Mv=G;function He(){this.handlers=[]}He.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};He.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};He.prototype.forEach=function(t){Mv.forEach(this.handlers,function(n){n!==null&&t(n)})};var Bv=He,Fv=G,Hv=function(t,r){Fv.forEach(t,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=a,delete t[i])})},dn=function(t,r,n,a,i){return t.config=r,n&&(t.code=n),t.request=a,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},Yv=dn,pn=function(t,r,n,a,i){var s=new Error(t);return Yv(s,r,n,a,i)},Gv=pn,Kv=function(t,r,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?t(n):r(Gv("Request failed with status code "+n.status,n.config,null,n.request,n))},Ee=G,Wv=Ee.isStandardBrowserEnv()?function(){return{write:function(r,n,a,i,s,u){var o=[];o.push(r+"="+encodeURIComponent(n)),Ee.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),Ee.isString(i)&&o.push("path="+i),Ee.isString(s)&&o.push("domain="+s),u===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),qv=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},kv=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},Vv=qv,Jv=kv,zv=function(t,r){return t&&!Vv(r)?Jv(t,r):r},Ve=G,Zv=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Xv=function(t){var r={},n,a,i;return t&&Ve.forEach(t.split(`
2
- `),function(u){if(i=u.indexOf(":"),n=Ve.trim(u.substr(0,i)).toLowerCase(),a=Ve.trim(u.substr(i+1)),n){if(r[n]&&Zv.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([a]):r[n]=r[n]?r[n]+", "+a:a}}),r},Ar=G,Qv=Ar.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(i){var s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(s){var u=Ar.isString(s)?a(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}(),Te=G,ed=Kv,td=Wv,rd=vn,nd=zv,ad=Xv,id=Qv,Je=pn,Er=function(t){return new Promise(function(n,a){var i=t.data,s=t.headers,u=t.responseType;Te.isFormData(i)&&delete s["Content-Type"];var o=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(l+":"+y)}var v=nd(t.baseURL,t.url);o.open(t.method.toUpperCase(),rd(v,t.params,t.paramsSerializer),!0),o.timeout=t.timeout;function f(){if(!!o){var $="getAllResponseHeaders"in o?ad(o.getAllResponseHeaders()):null,c=!u||u==="text"||u==="json"?o.responseText:o.response,m={data:c,status:o.status,statusText:o.statusText,headers:$,config:t,request:o};ed(n,a,m),o=null}}if("onloadend"in o?o.onloadend=f:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(f)},o.onabort=function(){!o||(a(Je("Request aborted",t,"ECONNABORTED",o)),o=null)},o.onerror=function(){a(Je("Network Error",t,null,o)),o=null},o.ontimeout=function(){var c="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(c=t.timeoutErrorMessage),a(Je(c,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",o)),o=null},Te.isStandardBrowserEnv()){var h=(t.withCredentials||id(v))&&t.xsrfCookieName?td.read(t.xsrfCookieName):void 0;h&&(s[t.xsrfHeaderName]=h)}"setRequestHeader"in o&&Te.forEach(s,function(c,m){typeof i=="undefined"&&m.toLowerCase()==="content-type"?delete s[m]:o.setRequestHeader(m,c)}),Te.isUndefined(t.withCredentials)||(o.withCredentials=!!t.withCredentials),u&&u!=="json"&&(o.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&o.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(c){!o||(o.abort(),a(c),o=null)}),i||(i=null),o.send(i)})},x=G,Tr=Hv,sd=dn,od={"Content-Type":"application/x-www-form-urlencoded"};function Or(e,t){!x.isUndefined(e)&&x.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function ud(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Er),e}function fd(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ye={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:ud(),transformRequest:[function(t,r){return Tr(r,"Accept"),Tr(r,"Content-Type"),x.isFormData(t)||x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)?t:x.isArrayBufferView(t)?t.buffer:x.isURLSearchParams(t)?(Or(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):x.isObject(t)||r&&r["Content-Type"]==="application/json"?(Or(r,"application/json"),fd(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&x.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?sd(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Ye.headers={common:{Accept:"application/json, text/plain, */*"}};x.forEach(["delete","get","head"],function(t){Ye.headers[t]={}});x.forEach(["post","put","patch"],function(t){Ye.headers[t]=x.merge(od)});var Et=Ye,cd=G,ld=Et,hd=function(t,r,n){var a=this||ld;return cd.forEach(n,function(s){t=s.call(a,t,r)}),t},gn=function(t){return!!(t&&t.__CANCEL__)},Sr=G,ze=hd,vd=gn,dd=Et;function Ze(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var pd=function(t){Ze(t),t.headers=t.headers||{},t.data=ze.call(t,t.data,t.headers,t.transformRequest),t.headers=Sr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Sr.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||dd.adapter;return r(t).then(function(a){return Ze(t),a.data=ze.call(t,a.data,a.headers,t.transformResponse),a},function(a){return vd(a)||(Ze(t),a&&a.response&&(a.response.data=ze.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},M=G,$n=function(t,r){r=r||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function o(f,h){return M.isPlainObject(f)&&M.isPlainObject(h)?M.merge(f,h):M.isPlainObject(h)?M.merge({},h):M.isArray(h)?h.slice():h}function l(f){M.isUndefined(r[f])?M.isUndefined(t[f])||(n[f]=o(void 0,t[f])):n[f]=o(t[f],r[f])}M.forEach(a,function(h){M.isUndefined(r[h])||(n[h]=o(void 0,r[h]))}),M.forEach(i,l),M.forEach(s,function(h){M.isUndefined(r[h])?M.isUndefined(t[h])||(n[h]=o(void 0,t[h])):n[h]=o(void 0,r[h])}),M.forEach(u,function(h){h in r?n[h]=o(t[h],r[h]):h in t&&(n[h]=o(void 0,t[h]))});var y=a.concat(i).concat(s).concat(u),v=Object.keys(t).concat(Object.keys(r)).filter(function(h){return y.indexOf(h)===-1});return M.forEach(v,l),n};const gd="axios",$d="0.21.4",yd="Promise based HTTP client for the browser and node.js",md="index.js",bd={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},_d={type:"git",url:"https://github.com/axios/axios.git"},Ad=["xhr","http","ajax","promise","node"],Ed="Matt Zabriskie",Td="MIT",Od={url:"https://github.com/axios/axios/issues"},Sd="https://axios-http.com",wd={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},Id={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Dd="dist/axios.min.js",Cd="dist/axios.min.js",Ld="./index.d.ts",Rd={"follow-redirects":"^1.14.0"},jd=[{path:"./dist/axios.min.js",threshold:"5kB"}];var Pd={name:gd,version:$d,description:yd,main:md,scripts:bd,repository:_d,keywords:Ad,author:Ed,license:Td,bugs:Od,homepage:Sd,devDependencies:wd,browser:Id,jsdelivr:Dd,unpkg:Cd,typings:Ld,dependencies:Rd,bundlesize:jd},yn=Pd,Tt={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Tt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var wr={},Nd=yn.version.split(".");function mn(e,t){for(var r=t?t.split("."):Nd,n=e.split("."),a=0;a<3;a++){if(r[a]>n[a])return!0;if(r[a]<n[a])return!1}return!1}Tt.transitional=function(t,r,n){var a=r&&mn(r);function i(s,u){return"[Axios v"+yn.version+"] Transitional option '"+s+"'"+u+(n?". "+n:"")}return function(s,u,o){if(t===!1)throw new Error(i(u," has been removed in "+r));return a&&!wr[u]&&(wr[u]=!0,console.warn(i(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,u,o):!0}};function xd(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],s=t[i];if(s){var u=e[i],o=u===void 0||s(u,i,e);if(o!==!0)throw new TypeError("option "+i+" must be "+o);continue}if(r!==!0)throw Error("Unknown option "+i)}}var Ud={isOlderVersion:mn,assertOptions:xd,validators:Tt},bn=G,Md=vn,Ir=Bv,Dr=pd,Ge=$n,_n=Ud,ne=_n.validators;function me(e){this.defaults=e,this.interceptors={request:new Ir,response:new Ir}}me.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Ge(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&_n.assertOptions(r,{silentJSONParsing:ne.transitional(ne.boolean,"1.0.0"),forcedJSONParsing:ne.transitional(ne.boolean,"1.0.0"),clarifyTimeoutError:ne.transitional(ne.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(a=a&&f.synchronous,n.unshift(f.fulfilled,f.rejected))});var i=[];this.interceptors.response.forEach(function(f){i.push(f.fulfilled,f.rejected)});var s;if(!a){var u=[Dr,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),s=Promise.resolve(t);u.length;)s=s.then(u.shift(),u.shift());return s}for(var o=t;n.length;){var l=n.shift(),y=n.shift();try{o=l(o)}catch(v){y(v);break}}try{s=Dr(o)}catch(v){return Promise.reject(v)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};me.prototype.getUri=function(t){return t=Ge(this.defaults,t),Md(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};bn.forEach(["delete","get","head","options"],function(t){me.prototype[t]=function(r,n){return this.request(Ge(n||{},{method:t,url:r,data:(n||{}).data}))}});bn.forEach(["post","put","patch"],function(t){me.prototype[t]=function(r,n,a){return this.request(Ge(a||{},{method:t,url:r,data:n}))}});var Bd=me;function Ot(e){this.message=e}Ot.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ot.prototype.__CANCEL__=!0;var An=Ot,Fd=An;function Le(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;e(function(a){r.reason||(r.reason=new Fd(a),t(r.reason))})}Le.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Le.source=function(){var t,r=new Le(function(a){t=a});return{token:r,cancel:t}};var Hd=Le,Yd=function(t){return function(n){return t.apply(null,n)}},Gd=function(t){return typeof t=="object"&&t.isAxiosError===!0},Cr=G,Kd=cn,we=Bd,Wd=$n,qd=Et;function En(e){var t=new we(e),r=Kd(we.prototype.request,t);return Cr.extend(r,we.prototype,t),Cr.extend(r,t),r}var W=En(qd);W.Axios=we;W.create=function(t){return En(Wd(W.defaults,t))};W.Cancel=An;W.CancelToken=Hd;W.isCancel=gn;W.all=function(t){return Promise.all(t)};W.spread=Yd;W.isAxiosError=Gd;bt.exports=W;bt.exports.default=W;var kd=bt.exports;const Vd=(e,t)=>{var r,n,a;return e&&((r=e==null?void 0:e.url)==null?void 0:r.length)>0&&(((n=e.url.find(i=>i.locale===t))==null?void 0:n.value)||((a=e.url.find(i=>i.locale==="*"))==null?void 0:a.value))||null},Jd=(e,t)=>{var r,n;return((r=e==null?void 0:e.find)==null?void 0:r.call(e,a=>a.venue===t))||((n=e==null?void 0:e.find)==null?void 0:n.call(e,a=>a.venue==="*"))};function St(e,t=600,r=!0,n,a){var O,w;if(!n||!a)throw new Error("baseUrl or tenant was not provided");const i=`${e}_${a}_${n}`,s=`${n.endsWith("/")?n.slice(0,-1):n}/cms-api/content/${a}/${e}`,u=((O=m())==null?void 0:O.value)||null,[o,l]=F.useState(((w=m())==null?void 0:w.timestamp)||0),[y,v]=F.useState(u||null),[f,h]=F.useState(!1);function $(){kd.get(s).then(E=>{if(vt(E.data))throw new Error(`CMS data '${e}' is an empty object`);tn(E.data,y)||v(E.data),f&&h(!1),r&&c(E.data)}).catch(E=>{console.error(E),h(!0)})}function c(E){const P=new Date().valueOf(),D=JSON.stringify({value:E,timestamp:P});localStorage.setItem(i,D),l(P)}function m(){try{const E=localStorage.getItem(i);if(E)return JSON.parse(E)}catch(E){console.warn(E)}return null}return F.useEffect(()=>{new Date().valueOf()-o>t*1e3&&$()},[]),Re($,t*1e3),{value:y,isError:f,isLoading:!f&&!y}}function Tn(e,t=600,r=!0,n,a,i){var u,o,l,y;if(!n||!a||!i)throw new Error("baseUrl, tenant or venue was not provided");const s=St(e,t,r,n,a);return{value:((o=(u=s.value)==null?void 0:u.find)==null?void 0:o.call(u,v=>v.venue===i))||((y=(l=s.value)==null?void 0:l.find)==null?void 0:y.call(l,v=>v.venue==="*"))||null,isError:s.isError}}function zd(e,t,r,n=300,a=!0){var y,v,f,h;const i=F.useContext(On.ConfigContext);if(!i)throw new Error("Missing config context");const{value:s,isError:u}=Tn(e,n,a,i.baseUrl,i.tenant,t);let o=null,l=null;return s&&((y=s==null?void 0:s.url)==null?void 0:y.length)>0&&(o=((v=s.url.find($=>$.locale===r))==null?void 0:v.value)||((f=s.url.find($=>$.locale==="*"))==null?void 0:f.value)||null),!o&&s&&((h=s==null?void 0:s.url)==null?void 0:h.length)>0&&(l=s.url[0].value),{url:o,fallbackUrl:l,isError:u}}function Zd({kioskMediaId:e,kioskMediaType:t,intervalSeconds:r=600,withLocalStorage:n=!0,baseUrl:a,tenant:i,venue:s,locale:u}){var c;const{value:o,isError:l,isLoading:y}=St(e,r,n,a,i),v=(o==null?void 0:o[t])||[],f=Jd(v,s),h=Vd(f,u),$=!h&&f&&((c=f==null?void 0:f.url)==null?void 0:c.length)>0?f.url[0].value:null;return{url:h,fallbackUrl:$,mediaType:f==null?void 0:f.mediaType,isError:l,isLoading:y}}function Xd(e,t){F.useEffect(()=>{const r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}function Qd(e){const[t,r]=F.useState(_e(e==null?void 0:e.DINE_IN)),[n,a]=F.useState(_e(e==null?void 0:e.TAKE_AWAY));function i(){const s=_e(e==null?void 0:e.DINE_IN),u=_e(e==null?void 0:e.TAKE_AWAY);s!==t&&(console.log("dine in open changed",t,"=>",s),r(s)),u!==n&&(console.log("take away open changed",n,"=>",u),a(u))}return F.useEffect(()=>{i()},[e]),Re(i,6e4),{dineInOpen:t,takeAwayOpen:n}}exports.getGroupedBucketLines=_v;exports.groupOrderLines=mt;exports.useAvailability=Qf;exports.useCms=St;exports.useDisplayPrice=mv;exports.useGroupOrderLines=bv;exports.useInterval=Re;exports.useKioskChannelsAvailability=Qd;exports.useKioskMediaCms=Zd;exports.useLocalizedVenueMedia=zd;exports.useOnClickOutside=Xd;exports.useVenueCms=Tn;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Y=require("react"),jn=require("@orderingstack/ordering-core-react");function Le(e,r){const t=Y.useRef(),[n,a]=Y.useState(null);return Y.useEffect(()=>{t.current=e},[e]),Y.useEffect(()=>{function i(){var s;(s=t.current)==null||s.call(t)}if(r!==null){const s=setInterval(i,r);return a(s),()=>{a(null),clearInterval(s)}}},[r]),()=>{n&&clearInterval(n)}}var X=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ln=Object.prototype;function Rn(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Ln;return e===t}var Re=Rn;function Nn(e,r){return function(t){return e(r(t))}}var xt=Nn,xn=xt,Pn=xn(Object.keys,Object),Un=Pn,Mn=Re,Fn=Un,Bn=Object.prototype,Hn=Bn.hasOwnProperty;function Yn(e){if(!Mn(e))return Fn(e);var r=[];for(var t in Object(e))Hn.call(e,t)&&t!="constructor"&&r.push(t);return r}var Pt=Yn,Gn=typeof X=="object"&&X&&X.Object===Object&&X,Ut=Gn,qn=Ut,Wn=typeof self=="object"&&self&&self.Object===Object&&self,Kn=qn||Wn||Function("return this")(),K=Kn,Vn=K,kn=Vn.Symbol,Ne=kn,Dr=Ne,Mt=Object.prototype,Jn=Mt.hasOwnProperty,zn=Mt.toString,he=Dr?Dr.toStringTag:void 0;function Zn(e){var r=Jn.call(e,he),t=e[he];try{e[he]=void 0;var n=!0}catch{}var a=zn.call(e);return n&&(r?e[he]=t:delete e[he]),a}var Xn=Zn,Qn=Object.prototype,ea=Qn.toString;function ra(e){return ea.call(e)}var ta=ra,jr=Ne,na=Xn,aa=ta,ia="[object Null]",sa="[object Undefined]",Lr=jr?jr.toStringTag:void 0;function oa(e){return e==null?e===void 0?sa:ia:Lr&&Lr in Object(e)?na(e):aa(e)}var xe=oa;function ua(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var ge=ua,fa=xe,ca=ge,la="[object AsyncFunction]",da="[object Function]",ha="[object GeneratorFunction]",pa="[object Proxy]";function va(e){if(!ca(e))return!1;var r=fa(e);return r==da||r==ha||r==la||r==pa}var Ft=va,ga=K,$a=ga["__core-js_shared__"],ya=$a,We=ya,Rr=function(){var e=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ma(e){return!!Rr&&Rr in e}var ba=ma,_a=Function.prototype,Aa=_a.toString;function Ea(e){if(e!=null){try{return Aa.call(e)}catch{}try{return e+""}catch{}}return""}var Bt=Ea,Ta=Ft,Oa=ba,Sa=ge,wa=Bt,Ia=/[\\^$.*+?()[\]{}|]/g,Ca=/^\[object .+?Constructor\]$/,Da=Function.prototype,ja=Object.prototype,La=Da.toString,Ra=ja.hasOwnProperty,Na=RegExp("^"+La.call(Ra).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xa(e){if(!Sa(e)||Oa(e))return!1;var r=Ta(e)?Na:Ca;return r.test(wa(e))}var Pa=xa;function Ua(e,r){return e==null?void 0:e[r]}var Ma=Ua,Fa=Pa,Ba=Ma;function Ha(e,r){var t=Ba(e,r);return Fa(t)?t:void 0}var Q=Ha,Ya=Q,Ga=K,qa=Ya(Ga,"DataView"),Wa=qa,Ka=Q,Va=K,ka=Ka(Va,"Map"),lr=ka,Ja=Q,za=K,Za=Ja(za,"Promise"),Xa=Za,Qa=Q,ei=K,ri=Qa(ei,"Set"),ti=ri,ni=Q,ai=K,ii=ni(ai,"WeakMap"),si=ii,Xe=Wa,Qe=lr,er=Xa,rr=ti,tr=si,Ht=xe,ie=Bt,Nr="[object Map]",oi="[object Object]",xr="[object Promise]",Pr="[object Set]",Ur="[object WeakMap]",Mr="[object DataView]",ui=ie(Xe),fi=ie(Qe),ci=ie(er),li=ie(rr),di=ie(tr),Z=Ht;(Xe&&Z(new Xe(new ArrayBuffer(1)))!=Mr||Qe&&Z(new Qe)!=Nr||er&&Z(er.resolve())!=xr||rr&&Z(new rr)!=Pr||tr&&Z(new tr)!=Ur)&&(Z=function(e){var r=Ht(e),t=r==oi?e.constructor:void 0,n=t?ie(t):"";if(n)switch(n){case ui:return Mr;case fi:return Nr;case ci:return xr;case li:return Pr;case di:return Ur}return r});var $e=Z;function hi(e){return e!=null&&typeof e=="object"}var se=hi,pi=xe,vi=se,gi="[object Arguments]";function $i(e){return vi(e)&&pi(e)==gi}var yi=$i,Fr=yi,mi=se,Yt=Object.prototype,bi=Yt.hasOwnProperty,_i=Yt.propertyIsEnumerable,Ai=Fr(function(){return arguments}())?Fr:function(e){return mi(e)&&bi.call(e,"callee")&&!_i.call(e,"callee")},Gt=Ai,Ei=Array.isArray,ye=Ei,Ti=9007199254740991;function Oi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ti}var qt=Oi,Si=Ft,wi=qt;function Ii(e){return e!=null&&wi(e.length)&&!Si(e)}var dr=Ii,ae={exports:{}};function Ci(){return!1}var Di=Ci;(function(e,r){var t=K,n=Di,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,f=s?t.Buffer:void 0,o=f?f.isBuffer:void 0,v=o||n;e.exports=v})(ae,ae.exports);var ji=xe,Li=qt,Ri=se,Ni="[object Arguments]",xi="[object Array]",Pi="[object Boolean]",Ui="[object Date]",Mi="[object Error]",Fi="[object Function]",Bi="[object Map]",Hi="[object Number]",Yi="[object Object]",Gi="[object RegExp]",qi="[object Set]",Wi="[object String]",Ki="[object WeakMap]",Vi="[object ArrayBuffer]",ki="[object DataView]",Ji="[object Float32Array]",zi="[object Float64Array]",Zi="[object Int8Array]",Xi="[object Int16Array]",Qi="[object Int32Array]",es="[object Uint8Array]",rs="[object Uint8ClampedArray]",ts="[object Uint16Array]",ns="[object Uint32Array]",P={};P[Ji]=P[zi]=P[Zi]=P[Xi]=P[Qi]=P[es]=P[rs]=P[ts]=P[ns]=!0;P[Ni]=P[xi]=P[Vi]=P[Pi]=P[ki]=P[Ui]=P[Mi]=P[Fi]=P[Bi]=P[Hi]=P[Yi]=P[Gi]=P[qi]=P[Wi]=P[Ki]=!1;function as(e){return Ri(e)&&Li(e.length)&&!!P[ji(e)]}var is=as;function ss(e){return function(r){return e(r)}}var hr=ss,pe={exports:{}};(function(e,r){var t=Ut,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i&&t.process,f=function(){try{var o=a&&a.require&&a.require("util").types;return o||s&&s.binding&&s.binding("util")}catch{}}();e.exports=f})(pe,pe.exports);var os=is,us=hr,Br=pe.exports,Hr=Br&&Br.isTypedArray,fs=Hr?us(Hr):os,pr=fs,cs=Pt,ls=$e,ds=Gt,hs=ye,ps=dr,vs=ae.exports,gs=Re,$s=pr,ys="[object Map]",ms="[object Set]",bs=Object.prototype,_s=bs.hasOwnProperty;function As(e){if(e==null)return!0;if(ps(e)&&(hs(e)||typeof e=="string"||typeof e.splice=="function"||vs(e)||$s(e)||ds(e)))return!e.length;var r=ls(e);if(r==ys||r==ms)return!e.size;if(gs(e))return!cs(e).length;for(var t in e)if(_s.call(e,t))return!1;return!0}var vr=As,Wt={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(X,function(){var t="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,f){var o=s.prototype;f.utc=function(p){var T={date:p,utc:!0,args:arguments};return new s(T)},o.utc=function(p){var T=f(this.toDate(),{locale:this.$L,utc:!0});return p?T.add(this.utcOffset(),t):T},o.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var v=o.parse;o.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),v.call(this,p)};var m=o.init;o.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else m.call(this)};var $=o.utcOffset;o.utcOffset=function(p,T){var j=this.$utils().u;if(j(p))return this.$u?0:j(this.$offset)?$.call(this):this.$offset;if(typeof p=="string"&&(p=function(l){l===void 0&&(l="");var y=l.match(n);if(!y)return null;var w=(""+y[0]).match(a)||["-",0,0],O=w[0],I=60*+w[1]+ +w[2];return I===0?0:O==="+"?I:-I}(p),p===null))return this;var u=Math.abs(p)<=16?60*p:p,c=this;if(T)return c.$offset=u,c.$u=p===0,c;if(p!==0){var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(u+d,t)).$offset=u,c.$x.$localOffset=d}else c=this.utc();return c};var h=o.format;o.format=function(p){var T=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,T)},o.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var g=o.toDate;o.toDate=function(p){return p==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var A=o.diff;o.diff=function(p,T,j){if(p&&this.$u===p.$u)return A.call(this,p,T,j);var u=this.local(),c=f(p).local();return A.call(u,c,T,j)}}})})(Wt);var Es=Wt.exports,Kt={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(X,function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(a,i,s){var f,o=function(h,g,A){A===void 0&&(A={});var p=new Date(h),T=function(j,u){u===void 0&&(u={});var c=u.timeZoneName||"short",d=j+"|"+c,l=n[d];return l||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:j,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:c}),n[d]=l),l}(g,A);return T.formatToParts(p)},v=function(h,g){for(var A=o(h,g),p=[],T=0;T<A.length;T+=1){var j=A[T],u=j.type,c=j.value,d=t[u];d>=0&&(p[d]=parseInt(c,10))}var l=p[3],y=l===24?0:l,w=p[0]+"-"+p[1]+"-"+p[2]+" "+y+":"+p[4]+":"+p[5]+":000",O=+h;return(s.utc(w).valueOf()-(O-=O%1e3))/6e4},m=i.prototype;m.tz=function(h,g){h===void 0&&(h=f);var A=this.utcOffset(),p=this.toDate(),T=p.toLocaleString("en-US",{timeZone:h}),j=Math.round((p-new Date(T))/1e3/60),u=s(T).$set("millisecond",this.$ms).utcOffset(15*-Math.round(p.getTimezoneOffset()/15)-j,!0);if(g){var c=u.utcOffset();u=u.add(A-c,"minute")}return u.$x.$timezone=h,u},m.offsetName=function(h){var g=this.$x.$timezone||s.tz.guess(),A=o(this.valueOf(),g,{timeZoneName:h}).find(function(p){return p.type.toLowerCase()==="timezonename"});return A&&A.value};var $=m.startOf;m.startOf=function(h,g){if(!this.$x||!this.$x.$timezone)return $.call(this,h,g);var A=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return $.call(A,h,g).tz(this.$x.$timezone,!0)},s.tz=function(h,g,A){var p=A&&g,T=A||g||f,j=v(+s(),T);if(typeof h!="string")return s(h).tz(T);var u=function(y,w,O){var I=y-60*w*1e3,R=v(I,O);if(w===R)return[I,w];var k=v(I-=60*(R-w)*1e3,O);return R===k?[I,R]:[y-60*Math.min(R,k)*1e3,Math.max(R,k)]}(s.utc(h,p).valueOf(),j,T),c=u[0],d=u[1],l=s(c).utcOffset(d);return l.$x.$timezone=T,l},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(h){f=h}}})})(Kt);var Ts=Kt.exports,Vt={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(X,function(){var t=1e3,n=6e4,a=36e5,i="millisecond",s="second",f="minute",o="hour",v="day",m="week",$="month",h="quarter",g="year",A="date",p="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},c=function(L,E,b){var S=String(L);return!S||S.length>=E?L:""+Array(E+1-S.length).join(b)+L},d={s:c,z:function(L){var E=-L.utcOffset(),b=Math.abs(E),S=Math.floor(b/60),_=b%60;return(E<=0?"+":"-")+c(S,2,"0")+":"+c(_,2,"0")},m:function L(E,b){if(E.date()<b.date())return-L(b,E);var S=12*(b.year()-E.year())+(b.month()-E.month()),_=E.clone().add(S,$),D=b-_<0,C=E.clone().add(S+(D?-1:1),$);return+(-(S+(b-_)/(D?_-C:C-_))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:$,y:g,w:m,d:v,D:A,h:o,m:f,s,ms:i,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},l="en",y={};y[l]=u;var w=function(L){return L instanceof k},O=function L(E,b,S){var _;if(!E)return l;if(typeof E=="string"){var D=E.toLowerCase();y[D]&&(_=D),b&&(y[D]=b,_=D);var C=E.split("-");if(!_&&C.length>1)return L(C[0])}else{var N=E.name;y[N]=E,_=N}return!S&&_&&(l=_),_||!S&&l},I=function(L,E){if(w(L))return L.clone();var b=typeof E=="object"?E:{};return b.date=L,b.args=arguments,new k(b)},R=d;R.l=O,R.i=w,R.w=function(L,E){return I(L,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var k=function(){function L(b){this.$L=O(b.locale,null,!0),this.parse(b)}var E=L.prototype;return E.parse=function(b){this.$d=function(S){var _=S.date,D=S.utc;if(_===null)return new Date(NaN);if(R.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var C=_.match(T);if(C){var N=C[2]-1||0,M=(C[7]||"0").substring(0,3);return D?new Date(Date.UTC(C[1],N,C[3]||1,C[4]||0,C[5]||0,C[6]||0,M)):new Date(C[1],N,C[3]||1,C[4]||0,C[5]||0,C[6]||0,M)}}return new Date(_)}(b),this.$x=b.x||{},this.init()},E.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},E.$utils=function(){return R},E.isValid=function(){return this.$d.toString()!==p},E.isSame=function(b,S){var _=I(b);return this.startOf(S)<=_&&_<=this.endOf(S)},E.isAfter=function(b,S){return I(b)<this.startOf(S)},E.isBefore=function(b,S){return this.endOf(S)<I(b)},E.$g=function(b,S,_){return R.u(b)?this[S]:this.set(_,b)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(b,S){var _=this,D=!!R.u(S)||S,C=R.p(b),N=function(re,G){var z=R.w(_.$u?Date.UTC(_.$y,G,re):new Date(_.$y,G,re),_);return D?z:z.endOf(v)},M=function(re,G){return R.w(_.toDate()[re].apply(_.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(G)),_)},U=this.$W,B=this.$M,J=this.$D,V="set"+(this.$u?"UTC":"");switch(C){case g:return D?N(1,0):N(31,11);case $:return D?N(1,B):N(0,B+1);case m:var le=this.$locale().weekStart||0,de=(U<le?U+7:U)-le;return N(D?J-de:J+(6-de),B);case v:case A:return M(V+"Hours",0);case o:return M(V+"Minutes",1);case f:return M(V+"Seconds",2);case s:return M(V+"Milliseconds",3);default:return this.clone()}},E.endOf=function(b){return this.startOf(b,!1)},E.$set=function(b,S){var _,D=R.p(b),C="set"+(this.$u?"UTC":""),N=(_={},_[v]=C+"Date",_[A]=C+"Date",_[$]=C+"Month",_[g]=C+"FullYear",_[o]=C+"Hours",_[f]=C+"Minutes",_[s]=C+"Seconds",_[i]=C+"Milliseconds",_)[D],M=D===v?this.$D+(S-this.$W):S;if(D===$||D===g){var U=this.clone().set(A,1);U.$d[N](M),U.init(),this.$d=U.set(A,Math.min(this.$D,U.daysInMonth())).$d}else N&&this.$d[N](M);return this.init(),this},E.set=function(b,S){return this.clone().$set(b,S)},E.get=function(b){return this[R.p(b)]()},E.add=function(b,S){var _,D=this;b=Number(b);var C=R.p(S),N=function(B){var J=I(D);return R.w(J.date(J.date()+Math.round(B*b)),D)};if(C===$)return this.set($,this.$M+b);if(C===g)return this.set(g,this.$y+b);if(C===v)return N(1);if(C===m)return N(7);var M=(_={},_[f]=n,_[o]=a,_[s]=t,_)[C]||1,U=this.$d.getTime()+b*M;return R.w(U,this)},E.subtract=function(b,S){return this.add(-1*b,S)},E.format=function(b){var S=this,_=this.$locale();if(!this.isValid())return _.invalidDate||p;var D=b||"YYYY-MM-DDTHH:mm:ssZ",C=R.z(this),N=this.$H,M=this.$m,U=this.$M,B=_.weekdays,J=_.months,V=function(G,z,qe,be){return G&&(G[z]||G(S,D))||qe[z].slice(0,be)},le=function(G){return R.s(N%12||12,G,"0")},de=_.meridiem||function(G,z,qe){var be=G<12?"AM":"PM";return qe?be.toLowerCase():be},re={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:R.s(U+1,2,"0"),MMM:V(_.monthsShort,U,J,3),MMMM:V(J,U),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:V(_.weekdaysMin,this.$W,B,2),ddd:V(_.weekdaysShort,this.$W,B,3),dddd:B[this.$W],H:String(N),HH:R.s(N,2,"0"),h:le(1),hh:le(2),a:de(N,M,!0),A:de(N,M,!1),m:String(M),mm:R.s(M,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:C};return D.replace(j,function(G,z){return z||re[G]||C.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(b,S,_){var D,C=R.p(S),N=I(b),M=(N.utcOffset()-this.utcOffset())*n,U=this-N,B=R.m(this,N);return B=(D={},D[g]=B/12,D[$]=B,D[h]=B/3,D[m]=(U-M)/6048e5,D[v]=(U-M)/864e5,D[o]=U/a,D[f]=U/n,D[s]=U/t,D)[C]||U,_?B:R.a(B)},E.daysInMonth=function(){return this.endOf($).$D},E.$locale=function(){return y[this.$L]},E.locale=function(b,S){if(!b)return this.$L;var _=this.clone(),D=O(b,S,!0);return D&&(_.$L=D),_},E.clone=function(){return R.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},L}(),Cr=k.prototype;return I.prototype=Cr,[["$ms",i],["$s",s],["$m",f],["$H",o],["$W",v],["$M",$],["$y",g],["$D",A]].forEach(function(L){Cr[L[1]]=function(E){return this.$g(E,L[0],L[1])}}),I.extend=function(L,E){return L.$i||(L(E,k,I),L.$i=!0),I},I.locale=O,I.isDayjs=w,I.unix=function(L){return I(1e3*L)},I.en=y[l],I.Ls=y,I.p={},I})})(Vt);var ve=Vt.exports;ve.extend(Es);ve.extend(Ts);const kt=["SUN","MON","TUE","WED","THU","FRI","SAT"],Ie=e=>{const[r,t]=e.split(":");return{hour:parseInt(r||"0",10),minutes:parseInt(t||"0",10)}};function nr(e,r,t){const{availability:n}=e;if(!n)return!0;if(vr(n))return!1;const a=t?ve(t).tz(r):ve().tz(r),i=a.day(),s=n[kt[i]];if(!Array.isArray(s)||s.length!==2)return!1;const f=a.hour(),o=a.minute(),v=Ie(s[0]),m=Ie(s[1]);return f<v.hour||f===v.hour&&o<v.minutes?!1:!(f>m.hour||f===m.hour&&o>m.minutes)}const ar=(e,r=void 0,t=void 0,n=!1)=>n?e.map(i=>{let s;return Array.isArray(i.items)&&(s=ar(i.items,r,t,n)),{...i,items:s,outsideAvailabilitySlot:!nr(i,r,t)||(s==null?void 0:s.every(f=>f.outsideAvailabilitySlot))||!1}}):e.filter(i=>nr(i,r,t)).map(i=>Array.isArray(i.items)?{...i,items:ar(i.items,r,t)}:i),Yr=(e,r=void 0,t=void 0,n=!1)=>{let a=[];return e.forEach(i=>{if(!Array.isArray(i.items)){a.push(i);return}const s=ar(i.items,r,t,n);s.length>0&&a.push({...i,items:s})}),n&&(a=a.map(i=>!i.items||!Array.isArray(i.items)?i:{...i,outsideAvailabilitySlot:!nr(i,r,t)||i.items.every(s=>s.outsideAvailabilitySlot)})),a};function _e(e){const r=e==null?void 0:e.week;if(!e||!e.active||!r)return!1;const t=ve(),n=t.day(),a=r[kt[n]];return a?a.some(i=>Os(t,i)):!1}function Os(e,r){const t=e.hour(),n=e.minute(),a=Ie(r.from),i=Ie(r.to);return t<a.hour||t===a.hour&&n<a.minutes?!1:!(t>i.hour||t===i.hour&&n>i.minutes)}function Ss(){this.__data__=[],this.size=0}var ws=Ss;function Is(e,r){return e===r||e!==e&&r!==r}var gr=Is,Cs=gr;function Ds(e,r){for(var t=e.length;t--;)if(Cs(e[t][0],r))return t;return-1}var Pe=Ds,js=Pe,Ls=Array.prototype,Rs=Ls.splice;function Ns(e){var r=this.__data__,t=js(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Rs.call(r,t,1),--this.size,!0}var xs=Ns,Ps=Pe;function Us(e){var r=this.__data__,t=Ps(r,e);return t<0?void 0:r[t][1]}var Ms=Us,Fs=Pe;function Bs(e){return Fs(this.__data__,e)>-1}var Hs=Bs,Ys=Pe;function Gs(e,r){var t=this.__data__,n=Ys(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var qs=Gs,Ws=ws,Ks=xs,Vs=Ms,ks=Hs,Js=qs;function oe(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}oe.prototype.clear=Ws;oe.prototype.delete=Ks;oe.prototype.get=Vs;oe.prototype.has=ks;oe.prototype.set=Js;var Ue=oe,zs=Ue;function Zs(){this.__data__=new zs,this.size=0}var Xs=Zs;function Qs(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var eo=Qs;function ro(e){return this.__data__.get(e)}var to=ro;function no(e){return this.__data__.has(e)}var ao=no,io=Q,so=io(Object,"create"),Me=so,Gr=Me;function oo(){this.__data__=Gr?Gr(null):{},this.size=0}var uo=oo;function fo(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var co=fo,lo=Me,ho="__lodash_hash_undefined__",po=Object.prototype,vo=po.hasOwnProperty;function go(e){var r=this.__data__;if(lo){var t=r[e];return t===ho?void 0:t}return vo.call(r,e)?r[e]:void 0}var $o=go,yo=Me,mo=Object.prototype,bo=mo.hasOwnProperty;function _o(e){var r=this.__data__;return yo?r[e]!==void 0:bo.call(r,e)}var Ao=_o,Eo=Me,To="__lodash_hash_undefined__";function Oo(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Eo&&r===void 0?To:r,this}var So=Oo,wo=uo,Io=co,Co=$o,Do=Ao,jo=So;function ue(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}ue.prototype.clear=wo;ue.prototype.delete=Io;ue.prototype.get=Co;ue.prototype.has=Do;ue.prototype.set=jo;var Lo=ue,qr=Lo,Ro=Ue,No=lr;function xo(){this.size=0,this.__data__={hash:new qr,map:new(No||Ro),string:new qr}}var Po=xo;function Uo(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Mo=Uo,Fo=Mo;function Bo(e,r){var t=e.__data__;return Fo(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Fe=Bo,Ho=Fe;function Yo(e){var r=Ho(this,e).delete(e);return this.size-=r?1:0,r}var Go=Yo,qo=Fe;function Wo(e){return qo(this,e).get(e)}var Ko=Wo,Vo=Fe;function ko(e){return Vo(this,e).has(e)}var Jo=ko,zo=Fe;function Zo(e,r){var t=zo(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}var Xo=Zo,Qo=Po,eu=Go,ru=Ko,tu=Jo,nu=Xo;function fe(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}fe.prototype.clear=Qo;fe.prototype.delete=eu;fe.prototype.get=ru;fe.prototype.has=tu;fe.prototype.set=nu;var Jt=fe,au=Ue,iu=lr,su=Jt,ou=200;function uu(e,r){var t=this.__data__;if(t instanceof au){var n=t.__data__;if(!iu||n.length<ou-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new su(n)}return t.set(e,r),this.size=t.size,this}var fu=uu,cu=Ue,lu=Xs,du=eo,hu=to,pu=ao,vu=fu;function ce(e){var r=this.__data__=new cu(e);this.size=r.size}ce.prototype.clear=lu;ce.prototype.delete=du;ce.prototype.get=hu;ce.prototype.has=pu;ce.prototype.set=vu;var zt=ce,gu="__lodash_hash_undefined__";function $u(e){return this.__data__.set(e,gu),this}var yu=$u;function mu(e){return this.__data__.has(e)}var bu=mu,_u=Jt,Au=yu,Eu=bu;function Ce(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new _u;++r<t;)this.add(e[r])}Ce.prototype.add=Ce.prototype.push=Au;Ce.prototype.has=Eu;var Tu=Ce;function Ou(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}var Su=Ou;function wu(e,r){return e.has(r)}var Iu=wu,Cu=Tu,Du=Su,ju=Iu,Lu=1,Ru=2;function Nu(e,r,t,n,a,i){var s=t&Lu,f=e.length,o=r.length;if(f!=o&&!(s&&o>f))return!1;var v=i.get(e),m=i.get(r);if(v&&m)return v==r&&m==e;var $=-1,h=!0,g=t&Ru?new Cu:void 0;for(i.set(e,r),i.set(r,e);++$<f;){var A=e[$],p=r[$];if(n)var T=s?n(p,A,$,r,e,i):n(A,p,$,e,r,i);if(T!==void 0){if(T)continue;h=!1;break}if(g){if(!Du(r,function(j,u){if(!ju(g,u)&&(A===j||a(A,j,t,n,i)))return g.push(u)})){h=!1;break}}else if(!(A===p||a(A,p,t,n,i))){h=!1;break}}return i.delete(e),i.delete(r),h}var Zt=Nu,xu=K,Pu=xu.Uint8Array,Xt=Pu;function Uu(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}var Mu=Uu;function Fu(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Bu=Fu,Wr=Ne,Kr=Xt,Hu=gr,Yu=Zt,Gu=Mu,qu=Bu,Wu=1,Ku=2,Vu="[object Boolean]",ku="[object Date]",Ju="[object Error]",zu="[object Map]",Zu="[object Number]",Xu="[object RegExp]",Qu="[object Set]",ef="[object String]",rf="[object Symbol]",tf="[object ArrayBuffer]",nf="[object DataView]",Vr=Wr?Wr.prototype:void 0,Ke=Vr?Vr.valueOf:void 0;function af(e,r,t,n,a,i,s){switch(t){case nf:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case tf:return!(e.byteLength!=r.byteLength||!i(new Kr(e),new Kr(r)));case Vu:case ku:case Zu:return Hu(+e,+r);case Ju:return e.name==r.name&&e.message==r.message;case Xu:case ef:return e==r+"";case zu:var f=Gu;case Qu:var o=n&Wu;if(f||(f=qu),e.size!=r.size&&!o)return!1;var v=s.get(e);if(v)return v==r;n|=Ku,s.set(e,r);var m=Yu(f(e),f(r),n,a,i,s);return s.delete(e),m;case rf:if(Ke)return Ke.call(e)==Ke.call(r)}return!1}var sf=af;function of(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}var Qt=of,uf=Qt,ff=ye;function cf(e,r,t){var n=r(e);return ff(e)?n:uf(n,t(e))}var en=cf;function lf(e,r){for(var t=-1,n=e==null?0:e.length,a=0,i=[];++t<n;){var s=e[t];r(s,t,e)&&(i[a++]=s)}return i}var df=lf;function hf(){return[]}var rn=hf,pf=df,vf=rn,gf=Object.prototype,$f=gf.propertyIsEnumerable,kr=Object.getOwnPropertySymbols,yf=kr?function(e){return e==null?[]:(e=Object(e),pf(kr(e),function(r){return $f.call(e,r)}))}:vf,$r=yf;function mf(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var bf=mf,_f=9007199254740991,Af=/^(?:0|[1-9]\d*)$/;function Ef(e,r){var t=typeof e;return r=r==null?_f:r,!!r&&(t=="number"||t!="symbol"&&Af.test(e))&&e>-1&&e%1==0&&e<r}var Tf=Ef,Of=bf,Sf=Gt,wf=ye,If=ae.exports,Cf=Tf,Df=pr,jf=Object.prototype,Lf=jf.hasOwnProperty;function Rf(e,r){var t=wf(e),n=!t&&Sf(e),a=!t&&!n&&If(e),i=!t&&!n&&!a&&Df(e),s=t||n||a||i,f=s?Of(e.length,String):[],o=f.length;for(var v in e)(r||Lf.call(e,v))&&!(s&&(v=="length"||a&&(v=="offset"||v=="parent")||i&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Cf(v,o)))&&f.push(v);return f}var tn=Rf,Nf=tn,xf=Pt,Pf=dr;function Uf(e){return Pf(e)?Nf(e):xf(e)}var yr=Uf,Mf=en,Ff=$r,Bf=yr;function Hf(e){return Mf(e,Bf,Ff)}var nn=Hf,Jr=nn,Yf=1,Gf=Object.prototype,qf=Gf.hasOwnProperty;function Wf(e,r,t,n,a,i){var s=t&Yf,f=Jr(e),o=f.length,v=Jr(r),m=v.length;if(o!=m&&!s)return!1;for(var $=o;$--;){var h=f[$];if(!(s?h in r:qf.call(r,h)))return!1}var g=i.get(e),A=i.get(r);if(g&&A)return g==r&&A==e;var p=!0;i.set(e,r),i.set(r,e);for(var T=s;++$<o;){h=f[$];var j=e[h],u=r[h];if(n)var c=s?n(u,j,h,r,e,i):n(j,u,h,e,r,i);if(!(c===void 0?j===u||a(j,u,t,n,i):c)){p=!1;break}T||(T=h=="constructor")}if(p&&!T){var d=e.constructor,l=r.constructor;d!=l&&"constructor"in e&&"constructor"in r&&!(typeof d=="function"&&d instanceof d&&typeof l=="function"&&l instanceof l)&&(p=!1)}return i.delete(e),i.delete(r),p}var Kf=Wf,Ve=zt,Vf=Zt,kf=sf,Jf=Kf,zr=$e,Zr=ye,Xr=ae.exports,zf=pr,Zf=1,Qr="[object Arguments]",et="[object Array]",Ae="[object Object]",Xf=Object.prototype,rt=Xf.hasOwnProperty;function Qf(e,r,t,n,a,i){var s=Zr(e),f=Zr(r),o=s?et:zr(e),v=f?et:zr(r);o=o==Qr?Ae:o,v=v==Qr?Ae:v;var m=o==Ae,$=v==Ae,h=o==v;if(h&&Xr(e)){if(!Xr(r))return!1;s=!0,m=!1}if(h&&!m)return i||(i=new Ve),s||zf(e)?Vf(e,r,t,n,a,i):kf(e,r,o,t,n,a,i);if(!(t&Zf)){var g=m&&rt.call(e,"__wrapped__"),A=$&&rt.call(r,"__wrapped__");if(g||A){var p=g?e.value():e,T=A?r.value():r;return i||(i=new Ve),a(p,T,t,n,i)}}return h?(i||(i=new Ve),Jf(e,r,t,n,a,i)):!1}var ec=Qf,rc=ec,tt=se;function an(e,r,t,n,a){return e===r?!0:e==null||r==null||!tt(e)&&!tt(r)?e!==e&&r!==r:rc(e,r,t,n,an,a)}var tc=an,nc=tc;function ac(e,r){return nc(e,r)}var sn=ac;function ic(e,r=!1,t=void 0,n=60){const[a,i]=Y.useState(e&&Yr(e,t,void 0,r));Le(s,n*1e3);function s(){const f=e&&Yr(e,t,void 0,r);sn(f,a)||(console.log("menu has changed",f),i(f))}return Y.useEffect(s,[a,e]),a}var nt;(function(e){e.UNINITIALIZED="UNINITIALIZED",e.PROCESSING="PROCESSING",e.PAID="PAID",e.FAILED="FAILED",e.PRINTING_RECEIPT="PRINTING_RECEIPT",e.PRINTING_RECEIPT_SUCCESS="PRINTING_RECEIPT_SUCCESS",e.SENDING_RECEIPT="SENDING_RECEIPT",e.SENDING_RECEIPT_SUCCESS="SENDING_RECEIPT_SUCCESS",e.ERROR="ERROR"})(nt||(nt={}));var at;(function(e){e.CAROUSEL="carousel",e.NORMAL="normal",e.IMAGE="image"})(at||(at={}));var ir;(function(e){e.GROUP="3e/group",e.PRODUCT="3e/product",e.CATEGORY="3e/group/category",e.OPTIONS="3e/group/options",e.CONFIG="3e/group/config",e.STATIC="3e/static",e.REF="3e/ref",e.QUERY="3e/query"})(ir||(ir={}));var it;(function(e){e.GROUP="group",e.PRODUCT="product"})(it||(it={}));var st;(function(e){e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.DINE_IN="DINE_IN",e.DINE_IN_OPEN="DINE_IN_OPEN",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.GLOVO_TAKE_AWAY="GLOVO_TAKE_AWAY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.JUSTEAT_TAKE_AWAY="JUSTEAT_TAKE_AWAY",e.UBER_DELIVERY="UBER_DELIVERY",e.UBER_TAKE_AWAY="UBER_TAKE_AWAY",e.UBER_DINE_IN="UBER_DINE_IN",e.BOLT_DELIVERY="BOLT_DELIVERY",e.BOLT_TAKE_AWAY="BOLT_TAKE_AWAY",e.WOLT_DELIVERY="WOLT_DELIVERY",e.WOLT_TAKE_AWAY="WOLT_TAKE_AWAY",e.WOLT_DINE_IN="WOLT_DINE_IN"})(st||(st={}));var ot;(function(e){e.NEW="NEW",e.COMPLETED="COMPLETED",e.VERIFIED="VERIFIED",e.DELIVER="DELIVER",e.DELIVERED="DELIVERED",e.CLOSED="CLOSED",e.ABANDONED="ABANDONED",e.CANCELLED="CANCELLED",e.PICKED="PICKED"})(ot||(ot={}));var ut;(function(e){e.CASH="CASH",e.CARD="CARD",e.COD="COD",e.TERMINAL="TERMINAL",e.EPAYMENT="EPAYMENT",e.COUPON="COUPON",e.WALLET="WALLET",e.PREAUTHORIZED="PREAUTHORIZED",e.RETURN="RETURN",e.EXTERNAL="EXTERNAL"})(ut||(ut={}));var ft;(function(e){e.KIOSK="KIOSK",e.WEB="WEB",e.JUST_EAT_TAKE_AWAY="JUSTEATTAKEAWAY",e.GLOVO="GLOVO",e.PYSZNE="PYSZNE",e.WOLT="WOLT",e.UBER="UBER",e.BOLT="BOLT"})(ft||(ft={}));var ct;(function(e){e.NEW="NEW",e.TECHNICAL="TECHNICAL",e.CONFIRMED="CONFIRMED",e.PROCESSING="PROCESSING",e.PROCESSED="PROCESSED",e.VOID="VOID",e.WASTE="WASTE"})(ct||(ct={}));var lt;(function(e){e.GROUP="group",e.PRODUCT="product"})(lt||(lt={}));var dt;(function(e){e.DINE_IN="DINE_IN",e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.UBER_DELIVERY="UBER_DELIVERY",e.BOLT_DELIVERY="BOLT_DELIVERY",e.WOLT_DELIVERY="WOLT_DELIVERY"})(dt||(dt={}));function sc(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var oc=sc,uc=Q,fc=function(){try{var e=uc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cc=fc,ht=cc;function lc(e,r,t){r=="__proto__"&&ht?ht(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var on=lc,dc=on,hc=gr,pc=Object.prototype,vc=pc.hasOwnProperty;function gc(e,r,t){var n=e[r];(!(vc.call(e,r)&&hc(n,t))||t===void 0&&!(r in e))&&dc(e,r,t)}var un=gc,$c=un,yc=on;function mc(e,r,t,n){var a=!t;t||(t={});for(var i=-1,s=r.length;++i<s;){var f=r[i],o=n?n(t[f],e[f],f,t,e):void 0;o===void 0&&(o=e[f]),a?yc(t,f,o):$c(t,f,o)}return t}var Be=mc,bc=Be,_c=yr;function Ac(e,r){return e&&bc(r,_c(r),e)}var Ec=Ac;function Tc(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var Oc=Tc,Sc=ge,wc=Re,Ic=Oc,Cc=Object.prototype,Dc=Cc.hasOwnProperty;function jc(e){if(!Sc(e))return Ic(e);var r=wc(e),t=[];for(var n in e)n=="constructor"&&(r||!Dc.call(e,n))||t.push(n);return t}var Lc=jc,Rc=tn,Nc=Lc,xc=dr;function Pc(e){return xc(e)?Rc(e,!0):Nc(e)}var mr=Pc,Uc=Be,Mc=mr;function Fc(e,r){return e&&Uc(r,Mc(r),e)}var Bc=Fc,sr={exports:{}};(function(e,r){var t=K,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i?t.Buffer:void 0,f=s?s.allocUnsafe:void 0;function o(v,m){if(m)return v.slice();var $=v.length,h=f?f($):new v.constructor($);return v.copy(h),h}e.exports=o})(sr,sr.exports);function Hc(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var Yc=Hc,Gc=Be,qc=$r;function Wc(e,r){return Gc(e,qc(e),r)}var Kc=Wc,Vc=xt,kc=Vc(Object.getPrototypeOf,Object),fn=kc,Jc=Qt,zc=fn,Zc=$r,Xc=rn,Qc=Object.getOwnPropertySymbols,el=Qc?function(e){for(var r=[];e;)Jc(r,Zc(e)),e=zc(e);return r}:Xc,cn=el,rl=Be,tl=cn;function nl(e,r){return rl(e,tl(e),r)}var al=nl,il=en,sl=cn,ol=mr;function ul(e){return il(e,ol,sl)}var fl=ul,cl=Object.prototype,ll=cl.hasOwnProperty;function dl(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&ll.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var hl=dl,pt=Xt;function pl(e){var r=new e.constructor(e.byteLength);return new pt(r).set(new pt(e)),r}var br=pl,vl=br;function gl(e,r){var t=r?vl(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var $l=gl,yl=/\w*$/;function ml(e){var r=new e.constructor(e.source,yl.exec(e));return r.lastIndex=e.lastIndex,r}var bl=ml,vt=Ne,gt=vt?vt.prototype:void 0,$t=gt?gt.valueOf:void 0;function _l(e){return $t?Object($t.call(e)):{}}var Al=_l,El=br;function Tl(e,r){var t=r?El(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var Ol=Tl,Sl=br,wl=$l,Il=bl,Cl=Al,Dl=Ol,jl="[object Boolean]",Ll="[object Date]",Rl="[object Map]",Nl="[object Number]",xl="[object RegExp]",Pl="[object Set]",Ul="[object String]",Ml="[object Symbol]",Fl="[object ArrayBuffer]",Bl="[object DataView]",Hl="[object Float32Array]",Yl="[object Float64Array]",Gl="[object Int8Array]",ql="[object Int16Array]",Wl="[object Int32Array]",Kl="[object Uint8Array]",Vl="[object Uint8ClampedArray]",kl="[object Uint16Array]",Jl="[object Uint32Array]";function zl(e,r,t){var n=e.constructor;switch(r){case Fl:return Sl(e);case jl:case Ll:return new n(+e);case Bl:return wl(e,t);case Hl:case Yl:case Gl:case ql:case Wl:case Kl:case Vl:case kl:case Jl:return Dl(e,t);case Rl:return new n;case Nl:case Ul:return new n(e);case xl:return Il(e);case Pl:return new n;case Ml:return Cl(e)}}var Zl=zl,Xl=ge,yt=Object.create,Ql=function(){function e(){}return function(r){if(!Xl(r))return{};if(yt)return yt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),ed=Ql,rd=ed,td=fn,nd=Re;function ad(e){return typeof e.constructor=="function"&&!nd(e)?rd(td(e)):{}}var id=ad,sd=$e,od=se,ud="[object Map]";function fd(e){return od(e)&&sd(e)==ud}var cd=fd,ld=cd,dd=hr,mt=pe.exports,bt=mt&&mt.isMap,hd=bt?dd(bt):ld,pd=hd,vd=$e,gd=se,$d="[object Set]";function yd(e){return gd(e)&&vd(e)==$d}var md=yd,bd=md,_d=hr,_t=pe.exports,At=_t&&_t.isSet,Ad=At?_d(At):bd,Ed=Ad,Td=zt,Od=oc,Sd=un,wd=Ec,Id=Bc,Cd=sr.exports,Dd=Yc,jd=Kc,Ld=al,Rd=nn,Nd=fl,xd=$e,Pd=hl,Ud=Zl,Md=id,Fd=ye,Bd=ae.exports,Hd=pd,Yd=ge,Gd=Ed,qd=yr,Wd=mr,Kd=1,Vd=2,kd=4,ln="[object Arguments]",Jd="[object Array]",zd="[object Boolean]",Zd="[object Date]",Xd="[object Error]",dn="[object Function]",Qd="[object GeneratorFunction]",eh="[object Map]",rh="[object Number]",hn="[object Object]",th="[object RegExp]",nh="[object Set]",ah="[object String]",ih="[object Symbol]",sh="[object WeakMap]",oh="[object ArrayBuffer]",uh="[object DataView]",fh="[object Float32Array]",ch="[object Float64Array]",lh="[object Int8Array]",dh="[object Int16Array]",hh="[object Int32Array]",ph="[object Uint8Array]",vh="[object Uint8ClampedArray]",gh="[object Uint16Array]",$h="[object Uint32Array]",x={};x[ln]=x[Jd]=x[oh]=x[uh]=x[zd]=x[Zd]=x[fh]=x[ch]=x[lh]=x[dh]=x[hh]=x[eh]=x[rh]=x[hn]=x[th]=x[nh]=x[ah]=x[ih]=x[ph]=x[vh]=x[gh]=x[$h]=!0;x[Xd]=x[dn]=x[sh]=!1;function Oe(e,r,t,n,a,i){var s,f=r&Kd,o=r&Vd,v=r&kd;if(t&&(s=a?t(e,n,a,i):t(e)),s!==void 0)return s;if(!Yd(e))return e;var m=Fd(e);if(m){if(s=Pd(e),!f)return Dd(e,s)}else{var $=xd(e),h=$==dn||$==Qd;if(Bd(e))return Cd(e,f);if($==hn||$==ln||h&&!a){if(s=o||h?{}:Md(e),!f)return o?Ld(e,Id(s,e)):jd(e,wd(s,e))}else{if(!x[$])return a?e:{};s=Ud(e,$,f)}}i||(i=new Td);var g=i.get(e);if(g)return g;i.set(e,s),Gd(e)?e.forEach(function(T){s.add(Oe(T,r,t,T,e,i))}):Hd(e)&&e.forEach(function(T,j){s.set(j,Oe(T,r,t,j,e,i))});var A=v?o?Nd:Rd:o?Wd:qd,p=m?void 0:A(e);return Od(p||e,function(T,j){p&&(j=T,T=e[j]),Sd(s,j,Oe(T,r,t,j,e,i))}),s}var yh=Oe,mh=yh,bh=1,_h=4;function Ah(e){return mh(e,bh|_h)}var Eh=Ah;function Th(e,r){if(!r||!r.filter||!e||!e.filter||e.kind!==ir.CONFIG)return!0;if(e.filter&&e.items){const t=Object.values(e.filter).flat().filter(n=>{var a,i,s,f;return r.filter[(i=(a=e.items)==null?void 0:a[0])==null?void 0:i.fltCtx]&&Object.values(r.filter[(f=(s=e.items)==null?void 0:s[0])==null?void 0:f.fltCtx]).includes(n)});if(Array.isArray(t)&&t.length===0)return!1}return!0}const De=(e,r,t=0)=>{if(!e)return 0;let n=parseFloat(e.price)||0;const{items:a}=e,i=Eh(r);return Th(e,i)&&Array.isArray(a)&&a.forEach(s=>{let f=0;if(s.kind!=="3e/product")f=De(s,i,t+1);else{const{selected:o={}}=i,{selCtx:v,id:m}=s;v in o&&m in o[v]&&(f=De(s,i,t+1)*o[v][m],delete i.selected[v][m])}n+=f}),Math.round(100*n)/100},Oh=({product:e,state:r,selected:t,cheapestGroupOptionsProduct:n})=>{var o;const a=r?De(e,r):0,i=e.state&&!vr((o=e==null?void 0:e.state)==null?void 0:o.selected)?De(e,e.state):0,s=e.minPrice&&parseFloat(e.price)===a;let f=t||!!n||parseFloat(e.price)===0?a||i:parseFloat(e.price);return n!==void 0&&(f-=n),s&&e.minPrice&&(f=parseFloat(e.minPrice)),{displayPrice:f,showAsMinPrice:s,calculatedPriceDefaultProductState:i}};function _r(e){const r=[];return e.reduce((t,n)=>{if(t[n.hash]||(t[n.hash]={...n,quantity:0,discounted:0,discounts:[],firstProductQuantity:n.quantity,itemsToRemove:[]},r.push(t[n.hash])),t[n.hash].quantity+=n.quantity,t[n.hash].itemsToRemove.push(n.id),n.discounts){t[n.hash].discounts||(t[n.hash].discounts=[]),t[n.hash].discounts=t[n.hash].discounts.concat(n.discounts),t[n.hash].discounted=0;for(let a=0;a<t[n.hash].discounts.length;a+=1)t[n.hash].discounts[a]&&(t[n.hash].discounted+=parseFloat(t[n.hash].discounts[a].discountPrice))}return t},{}),r}function Sh(e){return _r(e)}function wh(e){return!e||e.length===0?null:_r(e.flatMap(r=>r.lines))}var Ar={exports:{}},pn=function(r,t){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return r.apply(t,a)}},Ih=pn,ee=Object.prototype.toString;function Er(e){return ee.call(e)==="[object Array]"}function or(e){return typeof e=="undefined"}function Ch(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Dh(e){return ee.call(e)==="[object ArrayBuffer]"}function jh(e){return typeof FormData!="undefined"&&e instanceof FormData}function Lh(e){var r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&e.buffer instanceof ArrayBuffer,r}function Rh(e){return typeof e=="string"}function Nh(e){return typeof e=="number"}function vn(e){return e!==null&&typeof e=="object"}function Se(e){if(ee.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function xh(e){return ee.call(e)==="[object Date]"}function Ph(e){return ee.call(e)==="[object File]"}function Uh(e){return ee.call(e)==="[object Blob]"}function gn(e){return ee.call(e)==="[object Function]"}function Mh(e){return vn(e)&&gn(e.pipe)}function Fh(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Bh(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Hh(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Tr(e,r){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Er(e))for(var t=0,n=e.length;t<n;t++)r.call(null,e[t],t,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.call(null,e[a],a,e)}function ur(){var e={};function r(a,i){Se(e[i])&&Se(a)?e[i]=ur(e[i],a):Se(a)?e[i]=ur({},a):Er(a)?e[i]=a.slice():e[i]=a}for(var t=0,n=arguments.length;t<n;t++)Tr(arguments[t],r);return e}function Yh(e,r,t){return Tr(r,function(a,i){t&&typeof a=="function"?e[i]=Ih(a,t):e[i]=a}),e}function Gh(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var q={isArray:Er,isArrayBuffer:Dh,isBuffer:Ch,isFormData:jh,isArrayBufferView:Lh,isString:Rh,isNumber:Nh,isObject:vn,isPlainObject:Se,isUndefined:or,isDate:xh,isFile:Ph,isBlob:Uh,isFunction:gn,isStream:Mh,isURLSearchParams:Fh,isStandardBrowserEnv:Hh,forEach:Tr,merge:ur,extend:Yh,trim:Bh,stripBOM:Gh},te=q;function Et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var $n=function(r,t,n){if(!t)return r;var a;if(n)a=n(t);else if(te.isURLSearchParams(t))a=t.toString();else{var i=[];te.forEach(t,function(o,v){o===null||typeof o=="undefined"||(te.isArray(o)?v=v+"[]":o=[o],te.forEach(o,function($){te.isDate($)?$=$.toISOString():te.isObject($)&&($=JSON.stringify($)),i.push(Et(v)+"="+Et($))}))}),a=i.join("&")}if(a){var s=r.indexOf("#");s!==-1&&(r=r.slice(0,s)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r},qh=q;function He(){this.handlers=[]}He.prototype.use=function(r,t,n){return this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};He.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)};He.prototype.forEach=function(r){qh.forEach(this.handlers,function(n){n!==null&&r(n)})};var Wh=He,Kh=q,Vh=function(r,t){Kh.forEach(r,function(a,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(r[t]=a,delete r[i])})},yn=function(r,t,n,a,i){return r.config=t,n&&(r.code=n),r.request=a,r.response=i,r.isAxiosError=!0,r.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},r},kh=yn,mn=function(r,t,n,a,i){var s=new Error(r);return kh(s,t,n,a,i)},Jh=mn,zh=function(r,t,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?r(n):t(Jh("Request failed with status code "+n.status,n.config,null,n.request,n))},Ee=q,Zh=Ee.isStandardBrowserEnv()?function(){return{write:function(t,n,a,i,s,f){var o=[];o.push(t+"="+encodeURIComponent(n)),Ee.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),Ee.isString(i)&&o.push("path="+i),Ee.isString(s)&&o.push("domain="+s),f===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Xh=function(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)},Qh=function(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r},ep=Xh,rp=Qh,tp=function(r,t){return r&&!ep(t)?rp(r,t):t},ke=q,np=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ap=function(r){var t={},n,a,i;return r&&ke.forEach(r.split(`
2
+ `),function(f){if(i=f.indexOf(":"),n=ke.trim(f.substr(0,i)).toLowerCase(),a=ke.trim(f.substr(i+1)),n){if(t[n]&&np.indexOf(n)>=0)return;n==="set-cookie"?t[n]=(t[n]?t[n]:[]).concat([a]):t[n]=t[n]?t[n]+", "+a:a}}),t},Tt=q,ip=Tt.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function a(i){var s=i;return r&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(s){var f=Tt.isString(s)?a(s):s;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}(),Te=q,sp=zh,op=Zh,up=$n,fp=tp,cp=ap,lp=ip,Je=mn,Ot=function(r){return new Promise(function(n,a){var i=r.data,s=r.headers,f=r.responseType;Te.isFormData(i)&&delete s["Content-Type"];var o=new XMLHttpRequest;if(r.auth){var v=r.auth.username||"",m=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.Authorization="Basic "+btoa(v+":"+m)}var $=fp(r.baseURL,r.url);o.open(r.method.toUpperCase(),up($,r.params,r.paramsSerializer),!0),o.timeout=r.timeout;function h(){if(!!o){var A="getAllResponseHeaders"in o?cp(o.getAllResponseHeaders()):null,p=!f||f==="text"||f==="json"?o.responseText:o.response,T={data:p,status:o.status,statusText:o.statusText,headers:A,config:r,request:o};sp(n,a,T),o=null}}if("onloadend"in o?o.onloadend=h:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(h)},o.onabort=function(){!o||(a(Je("Request aborted",r,"ECONNABORTED",o)),o=null)},o.onerror=function(){a(Je("Network Error",r,null,o)),o=null},o.ontimeout=function(){var p="timeout of "+r.timeout+"ms exceeded";r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),a(Je(p,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",o)),o=null},Te.isStandardBrowserEnv()){var g=(r.withCredentials||lp($))&&r.xsrfCookieName?op.read(r.xsrfCookieName):void 0;g&&(s[r.xsrfHeaderName]=g)}"setRequestHeader"in o&&Te.forEach(s,function(p,T){typeof i=="undefined"&&T.toLowerCase()==="content-type"?delete s[T]:o.setRequestHeader(T,p)}),Te.isUndefined(r.withCredentials)||(o.withCredentials=!!r.withCredentials),f&&f!=="json"&&(o.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&o.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",r.onUploadProgress),r.cancelToken&&r.cancelToken.promise.then(function(p){!o||(o.abort(),a(p),o=null)}),i||(i=null),o.send(i)})},F=q,St=Vh,dp=yn,hp={"Content-Type":"application/x-www-form-urlencoded"};function wt(e,r){!F.isUndefined(e)&&F.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function pp(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ot),e}function vp(e,r,t){if(F.isString(e))try{return(r||JSON.parse)(e),F.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}var Ye={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:pp(),transformRequest:[function(r,t){return St(t,"Accept"),St(t,"Content-Type"),F.isFormData(r)||F.isArrayBuffer(r)||F.isBuffer(r)||F.isStream(r)||F.isFile(r)||F.isBlob(r)?r:F.isArrayBufferView(r)?r.buffer:F.isURLSearchParams(r)?(wt(t,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):F.isObject(r)||t&&t["Content-Type"]==="application/json"?(wt(t,"application/json"),vp(r)):r}],transformResponse:[function(r){var t=this.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&F.isString(r)&&r.length)try{return JSON.parse(r)}catch(s){if(i)throw s.name==="SyntaxError"?dp(s,this,"E_JSON_PARSE"):s}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(r){return r>=200&&r<300}};Ye.headers={common:{Accept:"application/json, text/plain, */*"}};F.forEach(["delete","get","head"],function(r){Ye.headers[r]={}});F.forEach(["post","put","patch"],function(r){Ye.headers[r]=F.merge(hp)});var Or=Ye,gp=q,$p=Or,yp=function(r,t,n){var a=this||$p;return gp.forEach(n,function(s){r=s.call(a,r,t)}),r},bn=function(r){return!!(r&&r.__CANCEL__)},It=q,ze=yp,mp=bn,bp=Or;function Ze(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var _p=function(r){Ze(r),r.headers=r.headers||{},r.data=ze.call(r,r.data,r.headers,r.transformRequest),r.headers=It.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),It.forEach(["delete","get","head","post","put","patch","common"],function(a){delete r.headers[a]});var t=r.adapter||bp.adapter;return t(r).then(function(a){return Ze(r),a.data=ze.call(r,a.data,a.headers,r.transformResponse),a},function(a){return mp(a)||(Ze(r),a&&a.response&&(a.response.data=ze.call(r,a.response.data,a.response.headers,r.transformResponse))),Promise.reject(a)})},H=q,_n=function(r,t){t=t||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],f=["validateStatus"];function o(h,g){return H.isPlainObject(h)&&H.isPlainObject(g)?H.merge(h,g):H.isPlainObject(g)?H.merge({},g):H.isArray(g)?g.slice():g}function v(h){H.isUndefined(t[h])?H.isUndefined(r[h])||(n[h]=o(void 0,r[h])):n[h]=o(r[h],t[h])}H.forEach(a,function(g){H.isUndefined(t[g])||(n[g]=o(void 0,t[g]))}),H.forEach(i,v),H.forEach(s,function(g){H.isUndefined(t[g])?H.isUndefined(r[g])||(n[g]=o(void 0,r[g])):n[g]=o(void 0,t[g])}),H.forEach(f,function(g){g in t?n[g]=o(r[g],t[g]):g in r&&(n[g]=o(void 0,r[g]))});var m=a.concat(i).concat(s).concat(f),$=Object.keys(r).concat(Object.keys(t)).filter(function(g){return m.indexOf(g)===-1});return H.forEach($,v),n};const Ap="axios",Ep="0.21.4",Tp="Promise based HTTP client for the browser and node.js",Op="index.js",Sp={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},wp={type:"git",url:"https://github.com/axios/axios.git"},Ip=["xhr","http","ajax","promise","node"],Cp="Matt Zabriskie",Dp="MIT",jp={url:"https://github.com/axios/axios/issues"},Lp="https://axios-http.com",Rp={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},Np={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},xp="dist/axios.min.js",Pp="dist/axios.min.js",Up="./index.d.ts",Mp={"follow-redirects":"^1.14.0"},Fp=[{path:"./dist/axios.min.js",threshold:"5kB"}];var Bp={name:Ap,version:Ep,description:Tp,main:Op,scripts:Sp,repository:wp,keywords:Ip,author:Cp,license:Dp,bugs:jp,homepage:Lp,devDependencies:Rp,browser:Np,jsdelivr:xp,unpkg:Pp,typings:Up,dependencies:Mp,bundlesize:Fp},An=Bp,Sr={};["object","boolean","number","function","string","symbol"].forEach(function(e,r){Sr[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});var Ct={},Hp=An.version.split(".");function En(e,r){for(var t=r?r.split("."):Hp,n=e.split("."),a=0;a<3;a++){if(t[a]>n[a])return!0;if(t[a]<n[a])return!1}return!1}Sr.transitional=function(r,t,n){var a=t&&En(t);function i(s,f){return"[Axios v"+An.version+"] Transitional option '"+s+"'"+f+(n?". "+n:"")}return function(s,f,o){if(r===!1)throw new Error(i(f," has been removed in "+t));return a&&!Ct[f]&&(Ct[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(s,f,o):!0}};function Yp(e,r,t){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],s=r[i];if(s){var f=e[i],o=f===void 0||s(f,i,e);if(o!==!0)throw new TypeError("option "+i+" must be "+o);continue}if(t!==!0)throw Error("Unknown option "+i)}}var Gp={isOlderVersion:En,assertOptions:Yp,validators:Sr},Tn=q,qp=$n,Dt=Wh,jt=_p,Ge=_n,On=Gp,ne=On.validators;function me(e){this.defaults=e,this.interceptors={request:new Dt,response:new Dt}}me.prototype.request=function(r){typeof r=="string"?(r=arguments[1]||{},r.url=arguments[0]):r=r||{},r=Ge(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var t=r.transitional;t!==void 0&&On.assertOptions(t,{silentJSONParsing:ne.transitional(ne.boolean,"1.0.0"),forcedJSONParsing:ne.transitional(ne.boolean,"1.0.0"),clarifyTimeoutError:ne.transitional(ne.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(a=a&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var i=[];this.interceptors.response.forEach(function(h){i.push(h.fulfilled,h.rejected)});var s;if(!a){var f=[jt,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(i),s=Promise.resolve(r);f.length;)s=s.then(f.shift(),f.shift());return s}for(var o=r;n.length;){var v=n.shift(),m=n.shift();try{o=v(o)}catch($){m($);break}}try{s=jt(o)}catch($){return Promise.reject($)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};me.prototype.getUri=function(r){return r=Ge(this.defaults,r),qp(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")};Tn.forEach(["delete","get","head","options"],function(r){me.prototype[r]=function(t,n){return this.request(Ge(n||{},{method:r,url:t,data:(n||{}).data}))}});Tn.forEach(["post","put","patch"],function(r){me.prototype[r]=function(t,n,a){return this.request(Ge(a||{},{method:r,url:t,data:n}))}});var Wp=me;function wr(e){this.message=e}wr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};wr.prototype.__CANCEL__=!0;var Sn=wr,Kp=Sn;function je(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var t=this;e(function(a){t.reason||(t.reason=new Kp(a),r(t.reason))})}je.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};je.source=function(){var r,t=new je(function(a){r=a});return{token:t,cancel:r}};var Vp=je,kp=function(r){return function(n){return r.apply(null,n)}},Jp=function(r){return typeof r=="object"&&r.isAxiosError===!0},Lt=q,zp=pn,we=Wp,Zp=_n,Xp=Or;function wn(e){var r=new we(e),t=zp(we.prototype.request,r);return Lt.extend(t,we.prototype,r),Lt.extend(t,r),t}var W=wn(Xp);W.Axios=we;W.create=function(r){return wn(Zp(W.defaults,r))};W.Cancel=Sn;W.CancelToken=Vp;W.isCancel=bn;W.all=function(r){return Promise.all(r)};W.spread=kp;W.isAxiosError=Jp;Ar.exports=W;Ar.exports.default=W;var Qp=Ar.exports;const ev=(e,r)=>{var t,n,a;return e&&((t=e==null?void 0:e.url)==null?void 0:t.length)>0&&(((n=e.url.find(i=>i.locale===r))==null?void 0:n.value)||((a=e.url.find(i=>i.locale==="*"))==null?void 0:a.value))||null},rv=(e,r)=>{var t,n;return((t=e==null?void 0:e.find)==null?void 0:t.call(e,a=>a.venue===r))||((n=e==null?void 0:e.find)==null?void 0:n.call(e,a=>a.venue==="*"))};function Ir(e,r=600,t=!0,n,a){var j,u;if(!n||!a)throw new Error("baseUrl or tenant was not provided");const i=`${e}_${a}_${n}`,s=`${n.endsWith("/")?n.slice(0,-1):n}/cms-api/content/${a}/${e}`,f=((j=T())==null?void 0:j.value)||null,[o,v]=Y.useState(((u=T())==null?void 0:u.timestamp)||0),[m,$]=Y.useState(f||null),[h,g]=Y.useState(!1);function A(){Qp.get(s).then(c=>{if(vr(c.data))throw new Error(`CMS data '${e}' is an empty object`);sn(c.data,m)||$(c.data),h&&g(!1),t&&p(c.data)}).catch(c=>{console.error(c),g(!0)})}function p(c){const d=new Date().valueOf(),l=JSON.stringify({value:c,timestamp:d});localStorage.setItem(i,l),v(d)}function T(){try{const c=localStorage.getItem(i);if(c)return JSON.parse(c)}catch(c){console.warn(c)}return null}return Y.useEffect(()=>{new Date().valueOf()-o>r*1e3&&A()},[]),Le(A,r*1e3),{value:m,isError:h,isLoading:!h&&!m}}function In(e,r=600,t=!0,n,a,i){var f,o,v,m;if(!n||!a||!i)throw new Error("baseUrl, tenant or venue was not provided");const s=Ir(e,r,t,n,a);return{value:((o=(f=s.value)==null?void 0:f.find)==null?void 0:o.call(f,$=>$.venue===i))||((m=(v=s.value)==null?void 0:v.find)==null?void 0:m.call(v,$=>$.venue==="*"))||null,isError:s.isError}}function tv(e,r,t,n=300,a=!0){var m,$,h,g;const i=Y.useContext(jn.ConfigContext);if(!i)throw new Error("Missing config context");const{value:s,isError:f}=In(e,n,a,i.baseUrl,i.tenant,r);let o=null,v=null;return s&&((m=s==null?void 0:s.url)==null?void 0:m.length)>0&&(o=(($=s.url.find(A=>A.locale===t))==null?void 0:$.value)||((h=s.url.find(A=>A.locale==="*"))==null?void 0:h.value)||null),!o&&s&&((g=s==null?void 0:s.url)==null?void 0:g.length)>0&&(v=s.url[0].value),{url:o,fallbackUrl:v,isError:f}}function nv({kioskMediaId:e,kioskMediaType:r,intervalSeconds:t=600,withLocalStorage:n=!0,baseUrl:a,tenant:i,venue:s,locale:f}){var p;const{value:o,isError:v,isLoading:m}=Ir(e,t,n,a,i),$=(o==null?void 0:o[r])||[],h=rv($,s),g=ev(h,f),A=!g&&h&&((p=h==null?void 0:h.url)==null?void 0:p.length)>0?h.url[0].value:null;return{url:g,fallbackUrl:A,mediaType:h==null?void 0:h.mediaType,isError:v,isLoading:m}}function av(e,r){Y.useEffect(()=>{const t=n=>{!e.current||e.current.contains(n.target)||r(n)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e,r])}function iv(e){const[r,t]=Y.useState(_e(e==null?void 0:e.DINE_IN)),[n,a]=Y.useState(_e(e==null?void 0:e.TAKE_AWAY));function i(){const s=_e(e==null?void 0:e.DINE_IN),f=_e(e==null?void 0:e.TAKE_AWAY);s!==r&&(console.log("dine in open changed",r,"=>",s),t(s)),f!==n&&(console.log("take away open changed",n,"=>",f),a(f))}return Y.useEffect(()=>{i()},[e]),Le(i,6e4),{dineInOpen:r,takeAwayOpen:n}}var fr={},sv=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Cn="%[a-f0-9]{2}",Rt=new RegExp("("+Cn+")|([^%]+?)","gi"),Nt=new RegExp("("+Cn+")+","gi");function cr(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var t=e.slice(0,r),n=e.slice(r);return Array.prototype.concat.call([],cr(t),cr(n))}function ov(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(Rt)||[],t=1;t<r.length;t++)e=cr(r,t).join(""),r=e.match(Rt)||[];return e}}function uv(e){for(var r={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},t=Nt.exec(e);t;){try{r[t[0]]=decodeURIComponent(t[0])}catch{var n=ov(t[0]);n!==t[0]&&(r[t[0]]=n)}t=Nt.exec(e)}r["%C2"]="\uFFFD";for(var a=Object.keys(r),i=0;i<a.length;i++){var s=a[i];e=e.replace(new RegExp(s,"g"),r[s])}return e}var fv=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return uv(e)}},cv=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const t=e.indexOf(r);return t===-1?[e]:[e.slice(0,t),e.slice(t+r.length)]},lv=function(e,r){for(var t={},n=Object.keys(e),a=Array.isArray(r),i=0;i<n.length;i++){var s=n[i],f=e[s];(a?r.indexOf(s)!==-1:r(s,f,e))&&(t[s]=f)}return t};(function(e){const r=sv,t=fv,n=cv,a=lv,i=u=>u==null,s=Symbol("encodeFragmentIdentifier");function f(u){switch(u.arrayFormat){case"index":return c=>(d,l)=>{const y=d.length;return l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,[m(c,u),"[",y,"]"].join("")]:[...d,[m(c,u),"[",m(y,u),"]=",m(l,u)].join("")]};case"bracket":return c=>(d,l)=>l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,[m(c,u),"[]"].join("")]:[...d,[m(c,u),"[]=",m(l,u)].join("")];case"colon-list-separator":return c=>(d,l)=>l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,[m(c,u),":list="].join("")]:[...d,[m(c,u),":list=",m(l,u)].join("")];case"comma":case"separator":case"bracket-separator":{const c=u.arrayFormat==="bracket-separator"?"[]=":"=";return d=>(l,y)=>y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?l:(y=y===null?"":y,l.length===0?[[m(d,u),c,m(y,u)].join("")]:[[l,m(y,u)].join(u.arrayFormatSeparator)])}default:return c=>(d,l)=>l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,m(c,u)]:[...d,[m(c,u),"=",m(l,u)].join("")]}}function o(u){let c;switch(u.arrayFormat){case"index":return(d,l,y)=>{if(c=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!c){y[d]=l;return}y[d]===void 0&&(y[d]={}),y[d][c[1]]=l};case"bracket":return(d,l,y)=>{if(c=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!c){y[d]=l;return}if(y[d]===void 0){y[d]=[l];return}y[d]=[].concat(y[d],l)};case"colon-list-separator":return(d,l,y)=>{if(c=/(:list)$/.exec(d),d=d.replace(/:list$/,""),!c){y[d]=l;return}if(y[d]===void 0){y[d]=[l];return}y[d]=[].concat(y[d],l)};case"comma":case"separator":return(d,l,y)=>{const w=typeof l=="string"&&l.includes(u.arrayFormatSeparator),O=typeof l=="string"&&!w&&$(l,u).includes(u.arrayFormatSeparator);l=O?$(l,u):l;const I=w||O?l.split(u.arrayFormatSeparator).map(R=>$(R,u)):l===null?l:$(l,u);y[d]=I};case"bracket-separator":return(d,l,y)=>{const w=/(\[\])$/.test(d);if(d=d.replace(/\[\]$/,""),!w){y[d]=l&&$(l,u);return}const O=l===null?[]:l.split(u.arrayFormatSeparator).map(I=>$(I,u));if(y[d]===void 0){y[d]=O;return}y[d]=[].concat(y[d],O)};default:return(d,l,y)=>{if(y[d]===void 0){y[d]=l;return}y[d]=[].concat(y[d],l)}}}function v(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function m(u,c){return c.encode?c.strict?r(u):encodeURIComponent(u):u}function $(u,c){return c.decode?t(u):u}function h(u){return Array.isArray(u)?u.sort():typeof u=="object"?h(Object.keys(u)).sort((c,d)=>Number(c)-Number(d)).map(c=>u[c]):u}function g(u){const c=u.indexOf("#");return c!==-1&&(u=u.slice(0,c)),u}function A(u){let c="";const d=u.indexOf("#");return d!==-1&&(c=u.slice(d)),c}function p(u){u=g(u);const c=u.indexOf("?");return c===-1?"":u.slice(c+1)}function T(u,c){return c.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):c.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function j(u,c){c=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},c),v(c.arrayFormatSeparator);const d=o(c),l=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return l;for(const y of u.split("&")){if(y==="")continue;let[w,O]=n(c.decode?y.replace(/\+/g," "):y,"=");O=O===void 0?null:["comma","separator","bracket-separator"].includes(c.arrayFormat)?O:$(O,c),d($(w,c),O,l)}for(const y of Object.keys(l)){const w=l[y];if(typeof w=="object"&&w!==null)for(const O of Object.keys(w))w[O]=T(w[O],c);else l[y]=T(w,c)}return c.sort===!1?l:(c.sort===!0?Object.keys(l).sort():Object.keys(l).sort(c.sort)).reduce((y,w)=>{const O=l[w];return Boolean(O)&&typeof O=="object"&&!Array.isArray(O)?y[w]=h(O):y[w]=O,y},Object.create(null))}e.extract=p,e.parse=j,e.stringify=(u,c)=>{if(!u)return"";c=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},c),v(c.arrayFormatSeparator);const d=O=>c.skipNull&&i(u[O])||c.skipEmptyString&&u[O]==="",l=f(c),y={};for(const O of Object.keys(u))d(O)||(y[O]=u[O]);const w=Object.keys(y);return c.sort!==!1&&w.sort(c.sort),w.map(O=>{const I=u[O];return I===void 0?"":I===null?m(O,c):Array.isArray(I)?I.length===0&&c.arrayFormat==="bracket-separator"?m(O,c)+"[]":I.reduce(l(O),[]).join("&"):m(O,c)+"="+m(I,c)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,c)=>{c=Object.assign({decode:!0},c);const[d,l]=n(u,"#");return Object.assign({url:d.split("?")[0]||"",query:j(p(u),c)},c&&c.parseFragmentIdentifier&&l?{fragmentIdentifier:$(l,c)}:{})},e.stringifyUrl=(u,c)=>{c=Object.assign({encode:!0,strict:!0,[s]:!0},c);const d=g(u.url).split("?")[0]||"",l=e.extract(u.url),y=e.parse(l,{sort:!1}),w=Object.assign(y,u.query);let O=e.stringify(w,c);O&&(O=`?${O}`);let I=A(u.url);return u.fragmentIdentifier&&(I=`#${c[s]?m(u.fragmentIdentifier,c):u.fragmentIdentifier}`),`${d}${O}${I}`},e.pick=(u,c,d)=>{d=Object.assign({parseFragmentIdentifier:!0,[s]:!1},d);const{url:l,query:y,fragmentIdentifier:w}=e.parseUrl(u,d);return e.stringifyUrl({url:l,query:a(y,c),fragmentIdentifier:w},d)},e.exclude=(u,c,d)=>{const l=Array.isArray(c)?y=>!c.includes(y):(y,w)=>!c(y,w);return e.pick(u,l,d)}})(fr);const dv=[".png",".jpg",".jpeg",".webp",".bmp",".tiff"];function Dn(e,r=500){const t=fr.parseUrl(e);if(!(e.startsWith("https://orderingstackmedia.blob.core.windows.net/pictures")||e.startsWith("https://orderingstack-mmedia-tools.azurewebsites.net/api/img/")))return e;const n=t.url.substring(t.url.lastIndexOf("."));return dv.includes(n)?fr.stringifyUrl({url:t.url.replace("https://orderingstackmedia.blob.core.windows.net/pictures/","https://orderingstack-mmedia-tools.azurewebsites.net/api/img/"),query:{...t.query,w:r}}):e}function hv(e,r=500){return Dn(e,r)}exports.getGroupedBucketLines=wh;exports.getMediaUrl=Dn;exports.groupOrderLines=_r;exports.useAvailability=ic;exports.useCms=Ir;exports.useDisplayPrice=Oh;exports.useGroupOrderLines=Sh;exports.useInterval=Le;exports.useKioskChannelsAvailability=iv;exports.useKioskMediaCms=nv;exports.useLocalizedVenueMedia=tv;exports.useMediaUrl=hv;exports.useOnClickOutside=av;exports.useVenueCms=In;
3
3
  //# sourceMappingURL=index.cjs.js.map