@agendize/vue-tools 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,39 @@
1
- (function(He,ue){typeof exports=="object"&&typeof module!="undefined"?ue(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],ue):(He=typeof globalThis!="undefined"?globalThis:He||self,ue((He.agendize=He.agendize||{},He.agendize.tools={}),He.Vue,He.pinia))})(this,function(He,ue,Kt){"use strict";var G0=Object.defineProperty;var W0=(He,ue,Kt)=>ue in He?G0(He,ue,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):He[ue]=Kt;var Bi=(He,ue,Kt)=>(W0(He,typeof ue!="symbol"?ue+"":ue,Kt),Kt);function Nu(t){const e=ue.ref(t.state),r=n=>{e.value=n};return ue.onMounted(()=>{t.subscribe(r)}),ue.onUnmounted(()=>{t.unsubscribe(r)}),ue.readonly(e)}function Ou(t,e=!1){var r=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(n<10?"0"+n:n)+"/"+r:r+"-"+(n<10?"0"+n:n)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(s<10?"0"+s:s)}function Ru(t,e){e.urlPicture.value=void 0,e.pictureAsData.value="",e.filePicture.value=void 0,t&&Lu(t).then(r=>{!r||typeof r=="string"&&(e.pictureAsData.value=r)})}const Lu=t=>new Promise((e,r)=>{const n=new FileReader;n.readAsDataURL(t),n.onload=()=>e(n.result),n.onerror=a=>r(a)});function Mu(t,e){let r=new XMLHttpRequest;r.open("get",t),r.responseType="blob",r.onload=function(){let n=new FileReader;n.onload=function(){if(!e&&n.result)return;let a;typeof n.result=="string"?a=n.result:a=Buffer.from(String.fromCharCode(...new Uint8Array(n.result)),"base64").toString(),e(a)},n.readAsDataURL(r.response)},r.send()}function Pu(t){try{return parseInt(t)}catch{return 0}}function Fu(t,e=2){let r=t+"";for(;r.length<e;)r="0"+r;return r}function zu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ui={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(self,function(){return(()=>{var r={192:(i,o)=>{var s,l,u=function(){var f=function(L,j){var W=L,q=N[j],V=null,Z=0,se=null,ie=[],F={},ee=function(G,ae){V=function(_){for(var b=new Array(_),O=0;O<_;O+=1){b[O]=new Array(_);for(var te=0;te<_;te+=1)b[O][te]=null}return b}(Z=4*W+17),ne(0,0),ne(Z-7,0),ne(0,Z-7),xe(),K(),Oe(G,ae),W>=7&&_e(G),se==null&&(se=Be(W,q,ie)),ye(se,ae)},ne=function(G,ae){for(var _=-1;_<=7;_+=1)if(!(G+_<=-1||Z<=G+_))for(var b=-1;b<=7;b+=1)ae+b<=-1||Z<=ae+b||(V[G+_][ae+b]=0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4)},K=function(){for(var G=8;G<Z-8;G+=1)V[G][6]==null&&(V[G][6]=G%2==0);for(var ae=8;ae<Z-8;ae+=1)V[6][ae]==null&&(V[6][ae]=ae%2==0)},xe=function(){for(var G=C.getPatternPosition(W),ae=0;ae<G.length;ae+=1)for(var _=0;_<G.length;_+=1){var b=G[ae],O=G[_];if(V[b][O]==null)for(var te=-2;te<=2;te+=1)for(var le=-2;le<=2;le+=1)V[b+te][O+le]=te==-2||te==2||le==-2||le==2||te==0&&le==0}},_e=function(G){for(var ae=C.getBCHTypeNumber(W),_=0;_<18;_+=1){var b=!G&&(ae>>_&1)==1;V[Math.floor(_/3)][_%3+Z-8-3]=b}for(_=0;_<18;_+=1)b=!G&&(ae>>_&1)==1,V[_%3+Z-8-3][Math.floor(_/3)]=b},Oe=function(G,ae){for(var _=q<<3|ae,b=C.getBCHTypeInfo(_),O=0;O<15;O+=1){var te=!G&&(b>>O&1)==1;O<6?V[O][8]=te:O<8?V[O+1][8]=te:V[Z-15+O][8]=te}for(O=0;O<15;O+=1)te=!G&&(b>>O&1)==1,O<8?V[8][Z-O-1]=te:O<9?V[8][15-O-1+1]=te:V[8][15-O-1]=te;V[Z-8][8]=!G},ye=function(G,ae){for(var _=-1,b=Z-1,O=7,te=0,le=C.getMaskFunction(ae),de=Z-1;de>0;de-=2)for(de==6&&(de-=1);;){for(var M=0;M<2;M+=1)if(V[b][de-M]==null){var c=!1;te<G.length&&(c=(G[te]>>>O&1)==1),le(b,de-M)&&(c=!c),V[b][de-M]=c,(O-=1)==-1&&(te+=1,O=7)}if((b+=_)<0||Z<=b){b-=_,_=-_;break}}},Be=function(G,ae,_){for(var b=I.getRSBlocks(G,ae),O=D(),te=0;te<_.length;te+=1){var le=_[te];O.put(le.getMode(),4),O.put(le.getLength(),C.getLengthInBits(le.getMode(),G)),le.write(O)}var de=0;for(te=0;te<b.length;te+=1)de+=b[te].dataCount;if(O.getLengthInBits()>8*de)throw"code length overflow. ("+O.getLengthInBits()+">"+8*de+")";for(O.getLengthInBits()+4<=8*de&&O.put(0,4);O.getLengthInBits()%8!=0;)O.putBit(!1);for(;!(O.getLengthInBits()>=8*de||(O.put(236,8),O.getLengthInBits()>=8*de));)O.put(17,8);return function(M,c){for(var v=0,d=0,m=0,h=new Array(c.length),p=new Array(c.length),k=0;k<c.length;k+=1){var R=c[k].dataCount,U=c[k].totalCount-R;d=Math.max(d,R),m=Math.max(m,U),h[k]=new Array(R);for(var H=0;H<h[k].length;H+=1)h[k][H]=255&M.getBuffer()[H+v];v+=R;var J=C.getErrorCorrectPolynomial(U),X=A(h[k],J.getLength()-1).mod(J);for(p[k]=new Array(J.getLength()-1),H=0;H<p[k].length;H+=1){var oe=H+X.getLength()-p[k].length;p[k][H]=oe>=0?X.getAt(oe):0}}var fe=0;for(H=0;H<c.length;H+=1)fe+=c[H].totalCount;var pe=new Array(fe),ve=0;for(H=0;H<d;H+=1)for(k=0;k<c.length;k+=1)H<h[k].length&&(pe[ve]=h[k][H],ve+=1);for(H=0;H<m;H+=1)for(k=0;k<c.length;k+=1)H<p[k].length&&(pe[ve]=p[k][H],ve+=1);return pe}(O,b)};F.addData=function(G,ae){var _=null;switch(ae=ae||"Byte"){case"Numeric":_=P(G);break;case"Alphanumeric":_=z(G);break;case"Byte":_=Y(G);break;case"Kanji":_=Q(G);break;default:throw"mode:"+ae}ie.push(_),se=null},F.isDark=function(G,ae){if(G<0||Z<=G||ae<0||Z<=ae)throw G+","+ae;return V[G][ae]},F.getModuleCount=function(){return Z},F.make=function(){if(W<1){for(var G=1;G<40;G++){for(var ae=I.getRSBlocks(G,q),_=D(),b=0;b<ie.length;b++){var O=ie[b];_.put(O.getMode(),4),_.put(O.getLength(),C.getLengthInBits(O.getMode(),G)),O.write(_)}var te=0;for(b=0;b<ae.length;b++)te+=ae[b].dataCount;if(_.getLengthInBits()<=8*te)break}W=G}ee(!1,function(){for(var le=0,de=0,M=0;M<8;M+=1){ee(!0,M);var c=C.getLostPoint(F);(M==0||le>c)&&(le=c,de=M)}return de}())},F.createTableTag=function(G,ae){G=G||2;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+(ae=ae===void 0?4*G:ae)+"px;",_+='">',_+="<tbody>";for(var b=0;b<F.getModuleCount();b+=1){_+="<tr>";for(var O=0;O<F.getModuleCount();O+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+G+"px;",_+=" height: "+G+"px;",_+=" background-color: ",_+=F.isDark(b,O)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return(_+="</tbody>")+"</table>"},F.createSvgTag=function(G,ae,_,b){var O={};typeof arguments[0]=="object"&&(G=(O=arguments[0]).cellSize,ae=O.margin,_=O.alt,b=O.title),G=G||2,ae=ae===void 0?4*G:ae,(_=typeof _=="string"?{text:_}:_||{}).text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,(b=typeof b=="string"?{text:b}:b||{}).text=b.text||null,b.id=b.text?b.id||"qrcode-title":null;var te,le,de,M,c=F.getModuleCount()*G+2*ae,v="";for(M="l"+G+",0 0,"+G+" -"+G+",0 0,-"+G+"z ",v+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',v+=O.scalable?"":' width="'+c+'px" height="'+c+'px"',v+=' viewBox="0 0 '+c+" "+c+'" ',v+=' preserveAspectRatio="xMinYMin meet"',v+=b.text||_.text?' role="img" aria-labelledby="'+Ie([b.id,_.id].join(" ").trim())+'"':"",v+=">",v+=b.text?'<title id="'+Ie(b.id)+'">'+Ie(b.text)+"</title>":"",v+=_.text?'<description id="'+Ie(_.id)+'">'+Ie(_.text)+"</description>":"",v+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',v+='<path d="',le=0;le<F.getModuleCount();le+=1)for(de=le*G+ae,te=0;te<F.getModuleCount();te+=1)F.isDark(le,te)&&(v+="M"+(te*G+ae)+","+de+M);return(v+='" stroke="transparent" fill="black"/>')+"</svg>"},F.createDataURL=function(G,ae){G=G||2,ae=ae===void 0?4*G:ae;var _=F.getModuleCount()*G+2*ae,b=ae,O=_-ae;return re(_,_,function(te,le){if(b<=te&&te<O&&b<=le&&le<O){var de=Math.floor((te-b)/G),M=Math.floor((le-b)/G);return F.isDark(M,de)?0:1}return 1})},F.createImgTag=function(G,ae,_){G=G||2,ae=ae===void 0?4*G:ae;var b=F.getModuleCount()*G+2*ae,O="";return O+="<img",O+=' src="',O+=F.createDataURL(G,ae),O+='"',O+=' width="',O+=b,O+='"',O+=' height="',O+=b,O+='"',_&&(O+=' alt="',O+=Ie(_),O+='"'),O+"/>"};var Ie=function(G){for(var ae="",_=0;_<G.length;_+=1){var b=G.charAt(_);switch(b){case"<":ae+="&lt;";break;case">":ae+="&gt;";break;case"&":ae+="&amp;";break;case'"':ae+="&quot;";break;default:ae+=b}}return ae};return F.createASCII=function(G,ae){if((G=G||1)<2)return function(h){h=h===void 0?2:h;var p,k,R,U,H,J=1*F.getModuleCount()+2*h,X=h,oe=J-h,fe={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},pe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ve="";for(p=0;p<J;p+=2){for(R=Math.floor((p-X)/1),U=Math.floor((p+1-X)/1),k=0;k<J;k+=1)H="\u2588",X<=k&&k<oe&&X<=p&&p<oe&&F.isDark(R,Math.floor((k-X)/1))&&(H=" "),X<=k&&k<oe&&X<=p+1&&p+1<oe&&F.isDark(U,Math.floor((k-X)/1))?H+=" ":H+="\u2588",ve+=h<1&&p+1>=oe?pe[H]:fe[H];ve+=`
1
+ (function(He,ue){typeof exports=="object"&&typeof module!="undefined"?ue(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],ue):(He=typeof globalThis!="undefined"?globalThis:He||self,ue((He.agendize=He.agendize||{},He.agendize.tools={}),He.Vue,He.pinia))})(this,function(He,ue,Kt){"use strict";var W0=Object.defineProperty;var Y0=(He,ue,Kt)=>ue in He?W0(He,ue,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):He[ue]=Kt;var Ui=(He,ue,Kt)=>(Y0(He,typeof ue!="symbol"?ue+"":ue,Kt),Kt);function Ou(t){const e=ue.ref(t.state),r=n=>{e.value=n};return ue.onMounted(()=>{t.subscribe(r)}),ue.onUnmounted(()=>{t.unsubscribe(r)}),ue.readonly(e)}function Ru(t,e=!1){let r=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?mr(a)+"/"+mr(n)+"/"+r:r+"-"+mr(n)+"-"+mr(a)+"T"+mr(i)+":"+mr(o)+":"+mr(s)}function mr(t){return t<10?"0"+t:t}function Lu(t,e){e.urlPicture.value=void 0,e.pictureAsData.value="",e.filePicture.value=void 0,t&&Mu(t).then(r=>{!r||typeof r=="string"&&(e.pictureAsData.value=r)})}const Mu=t=>new Promise((e,r)=>{const n=new FileReader;n.readAsDataURL(t),n.onload=()=>e(n.result),n.onerror=a=>r(a)});function Pu(t,e){let r=new XMLHttpRequest;r.open("get",t),r.responseType="blob",r.onload=function(){let n=new FileReader;n.onload=function(){if(!e&&n.result)return;let a;typeof n.result=="string"?a=n.result:a=Buffer.from(String.fromCharCode(...new Uint8Array(n.result)),"base64").toString(),e(a)},n.readAsDataURL(r.response)},r.send()}function Fu(t){try{return parseInt(t)}catch{return 0}}function zu(t,e=2){let r=t+"";for(;r.length<e;)r="0"+r;return r}function Bu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vi={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(self,function(){return(()=>{var r={192:(i,o)=>{var s,l,u=function(){var f=function(L,q){var W=L,j=N[q],V=null,Z=0,se=null,ie=[],F={},ee=function(G,ae){V=function(_){for(var b=new Array(_),O=0;O<_;O+=1){b[O]=new Array(_);for(var te=0;te<_;te+=1)b[O][te]=null}return b}(Z=4*W+17),ne(0,0),ne(Z-7,0),ne(0,Z-7),we(),K(),Oe(G,ae),W>=7&&_e(G),se==null&&(se=Be(W,j,ie)),ye(se,ae)},ne=function(G,ae){for(var _=-1;_<=7;_+=1)if(!(G+_<=-1||Z<=G+_))for(var b=-1;b<=7;b+=1)ae+b<=-1||Z<=ae+b||(V[G+_][ae+b]=0<=_&&_<=6&&(b==0||b==6)||0<=b&&b<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=b&&b<=4)},K=function(){for(var G=8;G<Z-8;G+=1)V[G][6]==null&&(V[G][6]=G%2==0);for(var ae=8;ae<Z-8;ae+=1)V[6][ae]==null&&(V[6][ae]=ae%2==0)},we=function(){for(var G=C.getPatternPosition(W),ae=0;ae<G.length;ae+=1)for(var _=0;_<G.length;_+=1){var b=G[ae],O=G[_];if(V[b][O]==null)for(var te=-2;te<=2;te+=1)for(var le=-2;le<=2;le+=1)V[b+te][O+le]=te==-2||te==2||le==-2||le==2||te==0&&le==0}},_e=function(G){for(var ae=C.getBCHTypeNumber(W),_=0;_<18;_+=1){var b=!G&&(ae>>_&1)==1;V[Math.floor(_/3)][_%3+Z-8-3]=b}for(_=0;_<18;_+=1)b=!G&&(ae>>_&1)==1,V[_%3+Z-8-3][Math.floor(_/3)]=b},Oe=function(G,ae){for(var _=j<<3|ae,b=C.getBCHTypeInfo(_),O=0;O<15;O+=1){var te=!G&&(b>>O&1)==1;O<6?V[O][8]=te:O<8?V[O+1][8]=te:V[Z-15+O][8]=te}for(O=0;O<15;O+=1)te=!G&&(b>>O&1)==1,O<8?V[8][Z-O-1]=te:O<9?V[8][15-O-1+1]=te:V[8][15-O-1]=te;V[Z-8][8]=!G},ye=function(G,ae){for(var _=-1,b=Z-1,O=7,te=0,le=C.getMaskFunction(ae),de=Z-1;de>0;de-=2)for(de==6&&(de-=1);;){for(var M=0;M<2;M+=1)if(V[b][de-M]==null){var c=!1;te<G.length&&(c=(G[te]>>>O&1)==1),le(b,de-M)&&(c=!c),V[b][de-M]=c,(O-=1)==-1&&(te+=1,O=7)}if((b+=_)<0||Z<=b){b-=_,_=-_;break}}},Be=function(G,ae,_){for(var b=I.getRSBlocks(G,ae),O=D(),te=0;te<_.length;te+=1){var le=_[te];O.put(le.getMode(),4),O.put(le.getLength(),C.getLengthInBits(le.getMode(),G)),le.write(O)}var de=0;for(te=0;te<b.length;te+=1)de+=b[te].dataCount;if(O.getLengthInBits()>8*de)throw"code length overflow. ("+O.getLengthInBits()+">"+8*de+")";for(O.getLengthInBits()+4<=8*de&&O.put(0,4);O.getLengthInBits()%8!=0;)O.putBit(!1);for(;!(O.getLengthInBits()>=8*de||(O.put(236,8),O.getLengthInBits()>=8*de));)O.put(17,8);return function(M,c){for(var v=0,d=0,m=0,h=new Array(c.length),p=new Array(c.length),k=0;k<c.length;k+=1){var R=c[k].dataCount,U=c[k].totalCount-R;d=Math.max(d,R),m=Math.max(m,U),h[k]=new Array(R);for(var H=0;H<h[k].length;H+=1)h[k][H]=255&M.getBuffer()[H+v];v+=R;var J=C.getErrorCorrectPolynomial(U),X=A(h[k],J.getLength()-1).mod(J);for(p[k]=new Array(J.getLength()-1),H=0;H<p[k].length;H+=1){var oe=H+X.getLength()-p[k].length;p[k][H]=oe>=0?X.getAt(oe):0}}var fe=0;for(H=0;H<c.length;H+=1)fe+=c[H].totalCount;var pe=new Array(fe),ve=0;for(H=0;H<d;H+=1)for(k=0;k<c.length;k+=1)H<h[k].length&&(pe[ve]=h[k][H],ve+=1);for(H=0;H<m;H+=1)for(k=0;k<c.length;k+=1)H<p[k].length&&(pe[ve]=p[k][H],ve+=1);return pe}(O,b)};F.addData=function(G,ae){var _=null;switch(ae=ae||"Byte"){case"Numeric":_=P(G);break;case"Alphanumeric":_=z(G);break;case"Byte":_=Y(G);break;case"Kanji":_=Q(G);break;default:throw"mode:"+ae}ie.push(_),se=null},F.isDark=function(G,ae){if(G<0||Z<=G||ae<0||Z<=ae)throw G+","+ae;return V[G][ae]},F.getModuleCount=function(){return Z},F.make=function(){if(W<1){for(var G=1;G<40;G++){for(var ae=I.getRSBlocks(G,j),_=D(),b=0;b<ie.length;b++){var O=ie[b];_.put(O.getMode(),4),_.put(O.getLength(),C.getLengthInBits(O.getMode(),G)),O.write(_)}var te=0;for(b=0;b<ae.length;b++)te+=ae[b].dataCount;if(_.getLengthInBits()<=8*te)break}W=G}ee(!1,function(){for(var le=0,de=0,M=0;M<8;M+=1){ee(!0,M);var c=C.getLostPoint(F);(M==0||le>c)&&(le=c,de=M)}return de}())},F.createTableTag=function(G,ae){G=G||2;var _="";_+='<table style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: "+(ae=ae===void 0?4*G:ae)+"px;",_+='">',_+="<tbody>";for(var b=0;b<F.getModuleCount();b+=1){_+="<tr>";for(var O=0;O<F.getModuleCount();O+=1)_+='<td style="',_+=" border-width: 0px; border-style: none;",_+=" border-collapse: collapse;",_+=" padding: 0px; margin: 0px;",_+=" width: "+G+"px;",_+=" height: "+G+"px;",_+=" background-color: ",_+=F.isDark(b,O)?"#000000":"#ffffff",_+=";",_+='"/>';_+="</tr>"}return(_+="</tbody>")+"</table>"},F.createSvgTag=function(G,ae,_,b){var O={};typeof arguments[0]=="object"&&(G=(O=arguments[0]).cellSize,ae=O.margin,_=O.alt,b=O.title),G=G||2,ae=ae===void 0?4*G:ae,(_=typeof _=="string"?{text:_}:_||{}).text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,(b=typeof b=="string"?{text:b}:b||{}).text=b.text||null,b.id=b.text?b.id||"qrcode-title":null;var te,le,de,M,c=F.getModuleCount()*G+2*ae,v="";for(M="l"+G+",0 0,"+G+" -"+G+",0 0,-"+G+"z ",v+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',v+=O.scalable?"":' width="'+c+'px" height="'+c+'px"',v+=' viewBox="0 0 '+c+" "+c+'" ',v+=' preserveAspectRatio="xMinYMin meet"',v+=b.text||_.text?' role="img" aria-labelledby="'+Ie([b.id,_.id].join(" ").trim())+'"':"",v+=">",v+=b.text?'<title id="'+Ie(b.id)+'">'+Ie(b.text)+"</title>":"",v+=_.text?'<description id="'+Ie(_.id)+'">'+Ie(_.text)+"</description>":"",v+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',v+='<path d="',le=0;le<F.getModuleCount();le+=1)for(de=le*G+ae,te=0;te<F.getModuleCount();te+=1)F.isDark(le,te)&&(v+="M"+(te*G+ae)+","+de+M);return(v+='" stroke="transparent" fill="black"/>')+"</svg>"},F.createDataURL=function(G,ae){G=G||2,ae=ae===void 0?4*G:ae;var _=F.getModuleCount()*G+2*ae,b=ae,O=_-ae;return re(_,_,function(te,le){if(b<=te&&te<O&&b<=le&&le<O){var de=Math.floor((te-b)/G),M=Math.floor((le-b)/G);return F.isDark(M,de)?0:1}return 1})},F.createImgTag=function(G,ae,_){G=G||2,ae=ae===void 0?4*G:ae;var b=F.getModuleCount()*G+2*ae,O="";return O+="<img",O+=' src="',O+=F.createDataURL(G,ae),O+='"',O+=' width="',O+=b,O+='"',O+=' height="',O+=b,O+='"',_&&(O+=' alt="',O+=Ie(_),O+='"'),O+"/>"};var Ie=function(G){for(var ae="",_=0;_<G.length;_+=1){var b=G.charAt(_);switch(b){case"<":ae+="&lt;";break;case">":ae+="&gt;";break;case"&":ae+="&amp;";break;case'"':ae+="&quot;";break;default:ae+=b}}return ae};return F.createASCII=function(G,ae){if((G=G||1)<2)return function(h){h=h===void 0?2:h;var p,k,R,U,H,J=1*F.getModuleCount()+2*h,X=h,oe=J-h,fe={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},pe={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},ve="";for(p=0;p<J;p+=2){for(R=Math.floor((p-X)/1),U=Math.floor((p+1-X)/1),k=0;k<J;k+=1)H="\u2588",X<=k&&k<oe&&X<=p&&p<oe&&F.isDark(R,Math.floor((k-X)/1))&&(H=" "),X<=k&&k<oe&&X<=p+1&&p+1<oe&&F.isDark(U,Math.floor((k-X)/1))?H+=" ":H+="\u2588",ve+=h<1&&p+1>=oe?pe[H]:fe[H];ve+=`
2
2
  `}return J%2&&h>0?ve.substring(0,ve.length-J-1)+Array(J+1).join("\u2580"):ve.substring(0,ve.length-1)}(ae);G-=1,ae=ae===void 0?2*G:ae;var _,b,O,te,le=F.getModuleCount()*G+2*ae,de=ae,M=le-ae,c=Array(G+1).join("\u2588\u2588"),v=Array(G+1).join(" "),d="",m="";for(_=0;_<le;_+=1){for(O=Math.floor((_-de)/G),m="",b=0;b<le;b+=1)te=1,de<=b&&b<M&&de<=_&&_<M&&F.isDark(O,Math.floor((b-de)/G))&&(te=0),m+=te?c:v;for(O=0;O<G;O+=1)d+=m+`
3
- `}return d.substring(0,d.length-1)},F.renderTo2dContext=function(G,ae){ae=ae||2;for(var _=F.getModuleCount(),b=0;b<_;b++)for(var O=0;O<_;O++)G.fillStyle=F.isDark(b,O)?"black":"white",G.fillRect(b*ae,O*ae,ae,ae)},F};f.stringToBytes=(f.stringToBytesFuncs={default:function(L){for(var j=[],W=0;W<L.length;W+=1){var q=L.charCodeAt(W);j.push(255&q)}return j}}).default,f.createStringToBytes=function(L,j){var W=function(){for(var V=$(L),Z=function(){var K=V.read();if(K==-1)throw"eof";return K},se=0,ie={};;){var F=V.read();if(F==-1)break;var ee=Z(),ne=Z()<<8|Z();ie[String.fromCharCode(F<<8|ee)]=ne,se+=1}if(se!=j)throw se+" != "+j;return ie}(),q="?".charCodeAt(0);return function(V){for(var Z=[],se=0;se<V.length;se+=1){var ie=V.charCodeAt(se);if(ie<128)Z.push(ie);else{var F=W[V.charAt(se)];typeof F=="number"?(255&F)==F?Z.push(F):(Z.push(F>>>8),Z.push(255&F)):Z.push(q)}}return Z}};var w,y,x,S,T,N={L:1,M:0,Q:3,H:2},C=(w=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],y=1335,x=7973,T=function(L){for(var j=0;L!=0;)j+=1,L>>>=1;return j},(S={}).getBCHTypeInfo=function(L){for(var j=L<<10;T(j)-T(y)>=0;)j^=y<<T(j)-T(y);return 21522^(L<<10|j)},S.getBCHTypeNumber=function(L){for(var j=L<<12;T(j)-T(x)>=0;)j^=x<<T(j)-T(x);return L<<12|j},S.getPatternPosition=function(L){return w[L-1]},S.getMaskFunction=function(L){switch(L){case 0:return function(j,W){return(j+W)%2==0};case 1:return function(j,W){return j%2==0};case 2:return function(j,W){return W%3==0};case 3:return function(j,W){return(j+W)%3==0};case 4:return function(j,W){return(Math.floor(j/2)+Math.floor(W/3))%2==0};case 5:return function(j,W){return j*W%2+j*W%3==0};case 6:return function(j,W){return(j*W%2+j*W%3)%2==0};case 7:return function(j,W){return(j*W%3+(j+W)%2)%2==0};default:throw"bad maskPattern:"+L}},S.getErrorCorrectPolynomial=function(L){for(var j=A([1],0),W=0;W<L;W+=1)j=j.multiply(A([1,E.gexp(W)],0));return j},S.getLengthInBits=function(L,j){if(1<=j&&j<10)switch(L){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+L}else if(j<27)switch(L){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+L}else{if(!(j<41))throw"type:"+j;switch(L){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+L}}},S.getLostPoint=function(L){for(var j=L.getModuleCount(),W=0,q=0;q<j;q+=1)for(var V=0;V<j;V+=1){for(var Z=0,se=L.isDark(q,V),ie=-1;ie<=1;ie+=1)if(!(q+ie<0||j<=q+ie))for(var F=-1;F<=1;F+=1)V+F<0||j<=V+F||ie==0&&F==0||se==L.isDark(q+ie,V+F)&&(Z+=1);Z>5&&(W+=3+Z-5)}for(q=0;q<j-1;q+=1)for(V=0;V<j-1;V+=1){var ee=0;L.isDark(q,V)&&(ee+=1),L.isDark(q+1,V)&&(ee+=1),L.isDark(q,V+1)&&(ee+=1),L.isDark(q+1,V+1)&&(ee+=1),ee!=0&&ee!=4||(W+=3)}for(q=0;q<j;q+=1)for(V=0;V<j-6;V+=1)L.isDark(q,V)&&!L.isDark(q,V+1)&&L.isDark(q,V+2)&&L.isDark(q,V+3)&&L.isDark(q,V+4)&&!L.isDark(q,V+5)&&L.isDark(q,V+6)&&(W+=40);for(V=0;V<j;V+=1)for(q=0;q<j-6;q+=1)L.isDark(q,V)&&!L.isDark(q+1,V)&&L.isDark(q+2,V)&&L.isDark(q+3,V)&&L.isDark(q+4,V)&&!L.isDark(q+5,V)&&L.isDark(q+6,V)&&(W+=40);var ne=0;for(V=0;V<j;V+=1)for(q=0;q<j;q+=1)L.isDark(q,V)&&(ne+=1);return W+Math.abs(100*ne/j/j-50)/5*10},S),E=function(){for(var L=new Array(256),j=new Array(256),W=0;W<8;W+=1)L[W]=1<<W;for(W=8;W<256;W+=1)L[W]=L[W-4]^L[W-5]^L[W-6]^L[W-8];for(W=0;W<255;W+=1)j[L[W]]=W;return{glog:function(q){if(q<1)throw"glog("+q+")";return j[q]},gexp:function(q){for(;q<0;)q+=255;for(;q>=256;)q-=255;return L[q]}}}();function A(L,j){if(L.length===void 0)throw L.length+"/"+j;var W=function(){for(var V=0;V<L.length&&L[V]==0;)V+=1;for(var Z=new Array(L.length-V+j),se=0;se<L.length-V;se+=1)Z[se]=L[se+V];return Z}(),q={getAt:function(V){return W[V]},getLength:function(){return W.length},multiply:function(V){for(var Z=new Array(q.getLength()+V.getLength()-1),se=0;se<q.getLength();se+=1)for(var ie=0;ie<V.getLength();ie+=1)Z[se+ie]^=E.gexp(E.glog(q.getAt(se))+E.glog(V.getAt(ie)));return A(Z,0)},mod:function(V){if(q.getLength()-V.getLength()<0)return q;for(var Z=E.glog(q.getAt(0))-E.glog(V.getAt(0)),se=new Array(q.getLength()),ie=0;ie<q.getLength();ie+=1)se[ie]=q.getAt(ie);for(ie=0;ie<V.getLength();ie+=1)se[ie]^=E.gexp(E.glog(V.getAt(ie))+Z);return A(se,0).mod(V)}};return q}var I=function(){var L=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],j=function(q,V){var Z={};return Z.totalCount=q,Z.dataCount=V,Z},W={getRSBlocks:function(q,V){var Z=function(_e,Oe){switch(Oe){case N.L:return L[4*(_e-1)+0];case N.M:return L[4*(_e-1)+1];case N.Q:return L[4*(_e-1)+2];case N.H:return L[4*(_e-1)+3];default:return}}(q,V);if(Z===void 0)throw"bad rs block @ typeNumber:"+q+"/errorCorrectionLevel:"+V;for(var se=Z.length/3,ie=[],F=0;F<se;F+=1)for(var ee=Z[3*F+0],ne=Z[3*F+1],K=Z[3*F+2],xe=0;xe<ee;xe+=1)ie.push(j(ne,K));return ie}};return W}(),D=function(){var L=[],j=0,W={getBuffer:function(){return L},getAt:function(q){var V=Math.floor(q/8);return(L[V]>>>7-q%8&1)==1},put:function(q,V){for(var Z=0;Z<V;Z+=1)W.putBit((q>>>V-Z-1&1)==1)},getLengthInBits:function(){return j},putBit:function(q){var V=Math.floor(j/8);L.length<=V&&L.push(0),q&&(L[V]|=128>>>j%8),j+=1}};return W},P=function(L){var j=L,W={getMode:function(){return 1},getLength:function(Z){return j.length},write:function(Z){for(var se=j,ie=0;ie+2<se.length;)Z.put(q(se.substring(ie,ie+3)),10),ie+=3;ie<se.length&&(se.length-ie==1?Z.put(q(se.substring(ie,ie+1)),4):se.length-ie==2&&Z.put(q(se.substring(ie,ie+2)),7))}},q=function(Z){for(var se=0,ie=0;ie<Z.length;ie+=1)se=10*se+V(Z.charAt(ie));return se},V=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return W},z=function(L){var j=L,W={getMode:function(){return 2},getLength:function(V){return j.length},write:function(V){for(var Z=j,se=0;se+1<Z.length;)V.put(45*q(Z.charAt(se))+q(Z.charAt(se+1)),11),se+=2;se<Z.length&&V.put(q(Z.charAt(se)),6)}},q=function(V){if("0"<=V&&V<="9")return V.charCodeAt(0)-"0".charCodeAt(0);if("A"<=V&&V<="Z")return V.charCodeAt(0)-"A".charCodeAt(0)+10;switch(V){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+V}};return W},Y=function(L){var j=f.stringToBytes(L);return{getMode:function(){return 4},getLength:function(W){return j.length},write:function(W){for(var q=0;q<j.length;q+=1)W.put(j[q],8)}}},Q=function(L){var j=f.stringToBytesFuncs.SJIS;if(!j)throw"sjis not supported.";(function(q,V){var Z=j("\u53CB");if(Z.length!=2||(Z[0]<<8|Z[1])!=38726)throw"sjis not supported."})();var W=j(L);return{getMode:function(){return 8},getLength:function(q){return~~(W.length/2)},write:function(q){for(var V=W,Z=0;Z+1<V.length;){var se=(255&V[Z])<<8|255&V[Z+1];if(33088<=se&&se<=40956)se-=33088;else{if(!(57408<=se&&se<=60351))throw"illegal char at "+(Z+1)+"/"+se;se-=49472}se=192*(se>>>8&255)+(255&se),q.put(se,13),Z+=2}if(Z<V.length)throw"illegal char at "+(Z+1)}}},B=function(){var L=[],j={writeByte:function(W){L.push(255&W)},writeShort:function(W){j.writeByte(W),j.writeByte(W>>>8)},writeBytes:function(W,q,V){q=q||0,V=V||W.length;for(var Z=0;Z<V;Z+=1)j.writeByte(W[Z+q])},writeString:function(W){for(var q=0;q<W.length;q+=1)j.writeByte(W.charCodeAt(q))},toByteArray:function(){return L},toString:function(){var W="";W+="[";for(var q=0;q<L.length;q+=1)q>0&&(W+=","),W+=L[q];return W+"]"}};return j},$=function(L){var j=L,W=0,q=0,V=0,Z={read:function(){for(;V<8;){if(W>=j.length){if(V==0)return-1;throw"unexpected end of file./"+V}var ie=j.charAt(W);if(W+=1,ie=="=")return V=0,-1;ie.match(/^\s$/)||(q=q<<6|se(ie.charCodeAt(0)),V+=6)}var F=q>>>V-8&255;return V-=8,F}},se=function(ie){if(65<=ie&&ie<=90)return ie-65;if(97<=ie&&ie<=122)return ie-97+26;if(48<=ie&&ie<=57)return ie-48+52;if(ie==43)return 62;if(ie==47)return 63;throw"c:"+ie};return Z},re=function(L,j,W){for(var q=function(ne,K){var xe=ne,_e=K,Oe=new Array(ne*K),ye={setPixel:function(G,ae,_){Oe[ae*xe+G]=_},write:function(G){G.writeString("GIF87a"),G.writeShort(xe),G.writeShort(_e),G.writeByte(128),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(255),G.writeByte(255),G.writeByte(255),G.writeString(","),G.writeShort(0),G.writeShort(0),G.writeShort(xe),G.writeShort(_e),G.writeByte(0);var ae=Be(2);G.writeByte(2);for(var _=0;ae.length-_>255;)G.writeByte(255),G.writeBytes(ae,_,255),_+=255;G.writeByte(ae.length-_),G.writeBytes(ae,_,ae.length-_),G.writeByte(0),G.writeString(";")}},Be=function(G){for(var ae=1<<G,_=1+(1<<G),b=G+1,O=Ie(),te=0;te<ae;te+=1)O.add(String.fromCharCode(te));O.add(String.fromCharCode(ae)),O.add(String.fromCharCode(_));var le,de,M,c=B(),v=(le=c,de=0,M=0,{write:function(p,k){if(p>>>k!=0)throw"length over";for(;de+k>=8;)le.writeByte(255&(p<<de|M)),k-=8-de,p>>>=8-de,M=0,de=0;M|=p<<de,de+=k},flush:function(){de>0&&le.writeByte(M)}});v.write(ae,b);var d=0,m=String.fromCharCode(Oe[d]);for(d+=1;d<Oe.length;){var h=String.fromCharCode(Oe[d]);d+=1,O.contains(m+h)?m+=h:(v.write(O.indexOf(m),b),O.size()<4095&&(O.size()==1<<b&&(b+=1),O.add(m+h)),m=h)}return v.write(O.indexOf(m),b),v.write(_,b),v.flush(),c.toByteArray()},Ie=function(){var G={},ae=0,_={add:function(b){if(_.contains(b))throw"dup key:"+b;G[b]=ae,ae+=1},size:function(){return ae},indexOf:function(b){return G[b]},contains:function(b){return G[b]!==void 0}};return _};return ye}(L,j),V=0;V<j;V+=1)for(var Z=0;Z<L;Z+=1)q.setPixel(Z,V,W(Z,V));var se=B();q.write(se);for(var ie=function(){var ne=0,K=0,xe=0,_e="",Oe={},ye=function(Ie){_e+=String.fromCharCode(Be(63&Ie))},Be=function(Ie){if(!(Ie<0)){if(Ie<26)return 65+Ie;if(Ie<52)return Ie-26+97;if(Ie<62)return Ie-52+48;if(Ie==62)return 43;if(Ie==63)return 47}throw"n:"+Ie};return Oe.writeByte=function(Ie){for(ne=ne<<8|255&Ie,K+=8,xe+=1;K>=6;)ye(ne>>>K-6),K-=6},Oe.flush=function(){if(K>0&&(ye(ne<<6-K),ne=0,K=0),xe%3!=0)for(var Ie=3-xe%3,G=0;G<Ie;G+=1)_e+="="},Oe.toString=function(){return _e},Oe}(),F=se.toByteArray(),ee=0;ee<F.length;ee+=1)ie.writeByte(F[ee]);return ie.flush(),"data:image/gif;base64,"+ie};return f}();u.stringToBytesFuncs["UTF-8"]=function(f){return function(w){for(var y=[],x=0;x<w.length;x++){var S=w.charCodeAt(x);S<128?y.push(S):S<2048?y.push(192|S>>6,128|63&S):S<55296||S>=57344?y.push(224|S>>12,128|S>>6&63,128|63&S):(x++,S=65536+((1023&S)<<10|1023&w.charCodeAt(x)),y.push(240|S>>18,128|S>>12&63,128|S>>6&63,128|63&S))}return y}(f)},(l=typeof(s=function(){return u})=="function"?s.apply(o,[]):s)===void 0||(i.exports=l)},796:(i,o,s)=>{s.d(o,{default:()=>de});var l=function(){return(l=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)},u=function(){for(var M=0,c=0,v=arguments.length;c<v;c++)M+=arguments[c].length;var d=Array(M),m=0;for(c=0;c<v;c++)for(var h=arguments[c],p=0,k=h.length;p<k;p++,m++)d[m]=h[p];return d},f=function(M){return!!M&&typeof M=="object"&&!Array.isArray(M)};function w(M){for(var c=[],v=1;v<arguments.length;v++)c[v-1]=arguments[v];if(!c.length)return M;var d=c.shift();return d!==void 0&&f(M)&&f(d)?(M=l({},M),Object.keys(d).forEach(function(m){var h=M[m],p=d[m];Array.isArray(h)&&Array.isArray(p)?M[m]=p:f(h)&&f(p)?M[m]=w(Object.assign({},h),p):M[m]=p}),w.apply(void 0,u([M],c))):M}function y(M,c){var v=document.createElement("a");v.download=c,v.href=M,document.body.appendChild(v),v.click(),document.body.removeChild(v)}function x(M){var c=M.originalHeight,v=M.originalWidth,d=M.maxHiddenDots,m=M.maxHiddenAxisDots,h=M.dotSize,p={x:0,y:0},k={x:0,y:0};if(c<=0||v<=0||d<=0||h<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var R=c/v;return p.x=Math.floor(Math.sqrt(d/R)),p.x<=0&&(p.x=1),m&&m<p.x&&(p.x=m),p.x%2==0&&p.x--,k.x=p.x*h,p.y=1+2*Math.ceil((p.x*R-1)/2),k.y=Math.round(k.x*R),(p.y*p.x>d||m&&m<p.y)&&(m&&m<p.y?(p.y=m,p.y%2==0&&p.x--):p.y-=2,k.y=p.y*h,p.x=1+2*Math.ceil((p.y/R-1)/2),k.x=Math.round(k.y/R)),{height:k.y,width:k.x,hideYDots:p.y,hideXDots:p.x}}const S={L:.07,M:.15,Q:.25,H:.3},T="dots",N="rounded",C="classy",E="classy-rounded",A="square",I="extra-rounded";var D=function(){return(D=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const P=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case T:h=this._drawDot;break;case C:h=this._drawClassy;break;case E:h=this._drawClassyRounded;break;case N:h=this._drawRounded;break;case I:h=this._drawExtraRounded;break;case A:default:h=this._drawSquare}h.call(this,{x:c,y:v,size:d,context:p,getNeighbor:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._basicSideRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,Math.PI/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerExtraRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2)}}))},M.prototype._basicCornersRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(0,v/2),d.arc(0,0,v/2,Math.PI/2,Math.PI),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornersExtraRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.arc(v/2,-v/2,v,Math.PI/2,Math.PI)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context;this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context;this._basicSquare({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0,J=k+R+U+H;if(J!==0)if(J>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(J===2){var X=0;return k&&U?X=Math.PI/2:U&&R?X=Math.PI:R&&H&&(X=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:X})}if(J===1)return X=0,U?X=Math.PI/2:R?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,context:h,rotation:X})}else this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0,J=k+R+U+H;if(J!==0)if(J>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(J===2){var X=0;return k&&U?X=Math.PI/2:U&&R?X=Math.PI:R&&H&&(X=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:X})}if(J===1)return X=0,U?X=Math.PI/2:R?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,context:h,rotation:X})}else this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawClassy=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0;k+R+U+H!==0?k||U?R||H?this._basicSquare({x:v,y:d,size:m,context:h,rotation:0}):this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0;k+R+U+H!==0?k||U?R||H?this._basicSquare({x:v,y:d,size:m,context:h,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2})},M}(),z="square",Y="extra-rounded";var Q=function(){return(Q=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const B=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case z:h=this._drawSquare;break;case Y:h=this._drawExtraRounded;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,context:p,rotation:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI),d.arc(0,0,v/2-m,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.rect(-v/2,-v/2,v,v),d.rect(-v/2+m,-v/2+m,v-2*m,v-2*m)}}))},M.prototype._basicExtraRounded=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.arc(-m,-m,2.5*m,Math.PI,-Math.PI/2),d.lineTo(m,-3.5*m),d.arc(m,-m,2.5*m,-Math.PI/2,0),d.lineTo(3.5*m,-m),d.arc(m,m,2.5*m,0,Math.PI/2),d.lineTo(-m,3.5*m),d.arc(-m,m,2.5*m,Math.PI/2,Math.PI),d.lineTo(-3.5*m,-m),d.arc(-m,-m,1.5*m,Math.PI,-Math.PI/2),d.lineTo(m,-2.5*m),d.arc(m,-m,1.5*m,-Math.PI/2,0),d.lineTo(2.5*m,-m),d.arc(m,m,1.5*m,0,Math.PI/2),d.lineTo(-m,2.5*m),d.arc(-m,m,1.5*m,Math.PI/2,Math.PI),d.lineTo(-2.5*m,-m)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicDot({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicSquare({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicExtraRounded({x:v,y:d,size:m,context:h,rotation:p})},M}(),$="square";var re=function(){return(re=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const L=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case $:h=this._drawSquare;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,context:p,rotation:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context;this._rotateFigure(re(re({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context;this._rotateFigure(re(re({},c),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicDot({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicSquare({x:v,y:d,size:m,context:h,rotation:p})},M}(),j="radial";var W=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],q=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const V=function(){function M(c){this._canvas=document.createElement("canvas"),this._canvas.width=c.width,this._canvas.height=c.height,this._options=c}return Object.defineProperty(M.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),M.prototype.getCanvas=function(){return this._canvas},M.prototype.clear=function(){var c=this.context;c&&c.clearRect(0,0,this._canvas.width,this._canvas.height)},M.prototype.drawQR=function(c){return v=this,d=void 0,h=function(){var p,k,R,U,H,J,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,we={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function We(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;we;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return we.label++,{value:ge[1],done:!1};case 5:we.label++,be=ge[1],ge=[0];continue;case 7:ge=we.ops.pop(),we.trys.pop();continue;default:if(!((ce=(ce=we.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){we=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){we.label=ge[1];break}if(ge[0]===6&&we.label<ce[1]){we.label=ce[1],ce=ge;break}if(ce&&we.label<ce[2]){we.label=ce[2],we.ops.push(ge);break}ce[2]&&we.ops.pop(),we.trys.pop();continue}ge=Se.call(ve,we)}catch(nt){ge=[6,nt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,mt])}}}(this,function(ve){switch(ve.label){case 0:return p=c.getModuleCount(),k=Math.min(this._options.width,this._options.height)-2*this._options.margin,R=Math.floor(k/p),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=c,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=x({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:R}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Se,Ee){var be,ce,Ve,we,We,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Se>=(p-U.hideXDots)/2&&Se<(p+U.hideXDots)/2&&Ee>=(p-U.hideYDots)/2&&Ee<(p+U.hideYDots)/2||((be=W[Se])===null||be===void 0?void 0:be[Ee])||((ce=W[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=W[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((we=q[Se])===null||we===void 0?void 0:we[Ee])||((We=q[Se-p+7])===null||We===void 0?void 0:We[Ee])||((Qe=q[Se])===null||Qe===void 0?void 0:Qe[Ee-p+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:p,dotSize:R}),[2]}})},new((m=void 0)||(m=Promise))(function(p,k){function R(J){try{H(h.next(J))}catch(X){k(X)}}function U(J){try{H(h.throw(J))}catch(X){k(X)}}function H(J){var X;J.done?p(J.value):(X=J.value,X instanceof m?X:new m(function(oe){oe(X)})).then(R,U)}H((h=h.apply(v,d||[])).next())});var v,d,m,h},M.prototype.drawBackground=function(){var c=this.context,v=this._options;if(c){if(v.backgroundOptions.gradient){var d=v.backgroundOptions.gradient,m=this._createGradient({context:c,options:d,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});d.colorStops.forEach(function(h){var p=h.offset,k=h.color;m.addColorStop(p,k)}),c.fillStyle=m}else v.backgroundOptions.color&&(c.fillStyle=v.backgroundOptions.color);c.fillRect(0,0,this._canvas.width,this._canvas.height)}},M.prototype.drawDots=function(c){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var m=this._options,h=this._qr.getModuleCount();if(h>m.width||h>m.height)throw"The canvas is too small.";var p=Math.min(m.width,m.height)-2*m.margin,k=Math.floor(p/h),R=Math.floor((m.width-h*k)/2),U=Math.floor((m.height-h*k)/2),H=new P({context:d,type:m.dotsOptions.type});d.beginPath();for(var J=function(ve){for(var Se=function(be){return c&&!c(ve,be)?"continue":X._qr.isDark(ve,be)?void H.draw(R+ve*k,U+be*k,k,function(ce,Ve){return!(ve+ce<0||be+Ve<0||ve+ce>=h||be+Ve>=h)&&!(c&&!c(ve+ce,be+Ve))&&!!v._qr&&v._qr.isDark(ve+ce,be+Ve)}):"continue"},Ee=0;Ee<h;Ee++)Se(Ee)},X=this,oe=0;oe<h;oe++)J(oe);if(m.dotsOptions.gradient){var fe=m.dotsOptions.gradient,pe=this._createGradient({context:d,options:fe,additionalRotation:0,x:R,y:U,size:h*k});fe.colorStops.forEach(function(ve){var Se=ve.offset,Ee=ve.color;pe.addColorStop(Se,Ee)}),d.fillStyle=d.strokeStyle=pe}else m.dotsOptions.color&&(d.fillStyle=d.strokeStyle=m.dotsOptions.color);d.fill("evenodd")},M.prototype.drawCorners=function(c){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var m=this._options,h=this._qr.getModuleCount(),p=Math.min(m.width,m.height)-2*m.margin,k=Math.floor(p/h),R=7*k,U=3*k,H=Math.floor((m.width-h*k)/2),J=Math.floor((m.height-h*k)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(X){var oe,fe,pe,ve,Se,Ee,be,ce,Ve,we,We=X[0],Qe=X[1],mt=X[2];if(!c||c(We,Qe)){var ge=H+We*k*(h-7),nt=J+Qe*k*(h-7);if(!((oe=m.cornersSquareOptions)===null||oe===void 0)&&oe.type){var Ht=new B({context:d,type:(fe=m.cornersSquareOptions)===null||fe===void 0?void 0:fe.type});d.beginPath(),Ht.draw(ge,nt,R,mt)}else{var Tt=new P({context:d,type:m.dotsOptions.type});d.beginPath();for(var kt=function(Ye){for(var Ut=function(yt){if(!(!((pe=W[Ye])===null||pe===void 0)&&pe[yt]))return"continue";Tt.draw(ge+Ye*k,nt+yt*k,k,function(xr,_r){var bt;return!!(!((bt=W[Ye+xr])===null||bt===void 0)&&bt[yt+_r])})},st=0;st<W[Ye].length;st++)Ut(st)},At=0;At<W.length;At++)kt(At)}if(!((ve=m.cornersSquareOptions)===null||ve===void 0)&&ve.gradient){var pt=m.cornersSquareOptions.gradient,ct=v._createGradient({context:d,options:pt,additionalRotation:mt,x:ge,y:nt,size:R});pt.colorStops.forEach(function(Ye){var Ut=Ye.offset,st=Ye.color;ct.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=ct}else!((Se=m.cornersSquareOptions)===null||Se===void 0)&&Se.color&&(d.fillStyle=d.strokeStyle=m.cornersSquareOptions.color);if(d.fill("evenodd"),(Ee=m.cornersDotOptions)===null||Ee===void 0?void 0:Ee.type){var ut=new L({context:d,type:(be=m.cornersDotOptions)===null||be===void 0?void 0:be.type});d.beginPath(),ut.draw(ge+2*k,nt+2*k,U,mt)}else{Tt=new P({context:d,type:m.dotsOptions.type}),d.beginPath();var hr=function(Ye){for(var Ut=function(yt){if(!(!((ce=q[Ye])===null||ce===void 0)&&ce[yt]))return"continue";Tt.draw(ge+Ye*k,nt+yt*k,k,function(xr,_r){var bt;return!!(!((bt=q[Ye+xr])===null||bt===void 0)&&bt[yt+_r])})},st=0;st<q[Ye].length;st++)Ut(st)};for(At=0;At<q.length;At++)hr(At)}if(!((Ve=m.cornersDotOptions)===null||Ve===void 0)&&Ve.gradient){pt=m.cornersDotOptions.gradient;var Gr=v._createGradient({context:d,options:pt,additionalRotation:mt,x:ge+2*k,y:nt+2*k,size:U});pt.colorStops.forEach(function(Ye){var Ut=Ye.offset,st=Ye.color;Gr.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=Gr}else!((we=m.cornersDotOptions)===null||we===void 0)&&we.color&&(d.fillStyle=d.strokeStyle=m.cornersDotOptions.color);d.fill("evenodd")}})},M.prototype.loadImage=function(){var c=this;return new Promise(function(v,d){var m=c._options,h=new Image;if(!m.image)return d("Image is not defined");typeof m.imageOptions.crossOrigin=="string"&&(h.crossOrigin=m.imageOptions.crossOrigin),c._image=h,h.onload=function(){v()},h.src=m.image})},M.prototype.drawImage=function(c){var v=c.width,d=c.height,m=c.count,h=c.dotSize,p=this.context;if(!p)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var k=this._options,R=Math.floor((k.width-m*h)/2),U=Math.floor((k.height-m*h)/2),H=R+k.imageOptions.margin+(m*h-v)/2,J=U+k.imageOptions.margin+(m*h-d)/2,X=v-2*k.imageOptions.margin,oe=d-2*k.imageOptions.margin;p.drawImage(this._image,H,J,X<0?0:X,oe<0?0:oe)},M.prototype._createGradient=function(c){var v,d=c.context,m=c.options,h=c.additionalRotation,p=c.x,k=c.y,R=c.size;if(m.type===j)v=d.createRadialGradient(p+R/2,k+R/2,0,p+R/2,k+R/2,R/2);else{var U=((m.rotation||0)+h)%(2*Math.PI),H=(U+2*Math.PI)%(2*Math.PI),J=p+R/2,X=k+R/2,oe=p+R/2,fe=k+R/2;H>=0&&H<=.25*Math.PI||H>1.75*Math.PI&&H<=2*Math.PI?(J-=R/2,X-=R/2*Math.tan(U),oe+=R/2,fe+=R/2*Math.tan(U)):H>.25*Math.PI&&H<=.75*Math.PI?(X-=R/2,J-=R/2/Math.tan(U),fe+=R/2,oe+=R/2/Math.tan(U)):H>.75*Math.PI&&H<=1.25*Math.PI?(J+=R/2,X+=R/2*Math.tan(U),oe-=R/2,fe-=R/2*Math.tan(U)):H>1.25*Math.PI&&H<=1.75*Math.PI&&(X+=R/2,J+=R/2/Math.tan(U),fe-=R/2,oe-=R/2/Math.tan(U)),v=d.createLinearGradient(Math.round(J),Math.round(X),Math.round(oe),Math.round(fe))}return v},M}();var Z=function(){return(Z=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const se=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case T:h=this._drawDot;break;case C:h=this._drawClassy;break;case E:h=this._drawClassyRounded;break;case N:h=this._drawRounded;break;case I:h=this._drawExtraRounded;break;case A:default:h=this._drawSquare}h.call(this,{x:c,y:v,size:d,getNeighbor:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(m+d/2)),v._element.setAttribute("cy",String(h+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(m)),v._element.setAttribute("y",String(h)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._basicSideRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, 0 "+-d)}}))},M.prototype._basicCornerRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._basicCornerExtraRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"a "+d+" "+d+", 0, 0, 0, "+-d+" "+-d)}}))},M.prototype._basicCornersRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+d/2+" "+d/2+"h "+d/2+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size;this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size;this._basicSquare({x:v,y:d,size:m,rotation:0})},M.prototype._drawRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0,H=p+k+R+U;if(H!==0)if(H>2||p&&k||R&&U)this._basicSquare({x:v,y:d,size:m,rotation:0});else{if(H===2){var J=0;return p&&R?J=Math.PI/2:R&&k?J=Math.PI:k&&U&&(J=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,rotation:J})}if(H===1)return J=0,R?J=Math.PI/2:k?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:J})}else this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0,H=p+k+R+U;if(H!==0)if(H>2||p&&k||R&&U)this._basicSquare({x:v,y:d,size:m,rotation:0});else{if(H===2){var J=0;return p&&R?J=Math.PI/2:R&&k?J=Math.PI:k&&U&&(J=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:J})}if(H===1)return J=0,R?J=Math.PI/2:k?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:J})}else this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawClassy=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0;p+k+R+U!==0?p||R?k||U?this._basicSquare({x:v,y:d,size:m,rotation:0}):this._basicCornerRounded({x:v,y:d,size:m,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0;p+k+R+U!==0?p||R?k||U?this._basicSquare({x:v,y:d,size:m,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,rotation:Math.PI/2})},M}();var ie=function(){return(ie=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const F=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case z:h=this._drawSquare;break;case Y:h=this._drawExtraRounded;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,rotation:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+(m+d/2)+" "+h+"a "+d/2+" "+d/2+" 0 1 0 0.1 0zm 0 "+p+"a "+(d/2-p)+" "+(d/2-p)+" 0 1 1 -0.1 0Z")}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"v "+-d+"zM "+(m+p)+" "+(h+p)+"h "+(d-2*p)+"v "+(d-2*p)+"h "+(2*p-d)+"z")}}))},M.prototype._basicExtraRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+m+" "+(h+2.5*p)+"v "+2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*p+" "+2.5*p+"h "+2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*p+" "+2.5*-p+"v "+-2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*-p+" "+2.5*-p+"h "+-2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*-p+" "+2.5*p+"M "+(m+2.5*p)+" "+(h+p)+"h "+2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*p+" "+1.5*p+"v "+2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*-p+" "+1.5*p+"h "+-2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*-p+" "+1.5*-p+"v "+-2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*p+" "+1.5*-p)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicDot({x:v,y:d,size:m,rotation:h})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicSquare({x:v,y:d,size:m,rotation:h})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicExtraRounded({x:v,y:d,size:m,rotation:h})},M}();var ee=function(){return(ee=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const ne=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case $:h=this._drawSquare;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,rotation:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(ee(ee({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(m+d/2)),v._element.setAttribute("cy",String(h+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(ee(ee({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(m)),v._element.setAttribute("y",String(h)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicDot({x:v,y:d,size:m,rotation:h})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicSquare({x:v,y:d,size:m,rotation:h})},M}();var K=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],xe=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _e=function(){function M(c){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(c.width)),this._element.setAttribute("height",String(c.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=c}return Object.defineProperty(M.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),M.prototype.getElement=function(){return this._element},M.prototype.clear=function(){var c,v=this._element;this._element=v.cloneNode(!1),(c=v==null?void 0:v.parentNode)===null||c===void 0||c.replaceChild(this._element,v),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},M.prototype.drawQR=function(c){return v=this,d=void 0,h=function(){var p,k,R,U,H,J,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,we={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function We(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;we;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return we.label++,{value:ge[1],done:!1};case 5:we.label++,be=ge[1],ge=[0];continue;case 7:ge=we.ops.pop(),we.trys.pop();continue;default:if(!((ce=(ce=we.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){we=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){we.label=ge[1];break}if(ge[0]===6&&we.label<ce[1]){we.label=ce[1],ce=ge;break}if(ce&&we.label<ce[2]){we.label=ce[2],we.ops.push(ge);break}ce[2]&&we.ops.pop(),we.trys.pop();continue}ge=Se.call(ve,we)}catch(nt){ge=[6,nt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,mt])}}}(this,function(ve){switch(ve.label){case 0:return p=c.getModuleCount(),k=Math.min(this._options.width,this._options.height)-2*this._options.margin,R=Math.floor(k/p),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=c,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=x({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:R}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Se,Ee){var be,ce,Ve,we,We,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Se>=(p-U.hideXDots)/2&&Se<(p+U.hideXDots)/2&&Ee>=(p-U.hideYDots)/2&&Ee<(p+U.hideYDots)/2||((be=K[Se])===null||be===void 0?void 0:be[Ee])||((ce=K[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=K[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((we=xe[Se])===null||we===void 0?void 0:we[Ee])||((We=xe[Se-p+7])===null||We===void 0?void 0:We[Ee])||((Qe=xe[Se])===null||Qe===void 0?void 0:Qe[Ee-p+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:p,dotSize:R}),[2]}})},new((m=void 0)||(m=Promise))(function(p,k){function R(J){try{H(h.next(J))}catch(X){k(X)}}function U(J){try{H(h.throw(J))}catch(X){k(X)}}function H(J){var X;J.done?p(J.value):(X=J.value,X instanceof m?X:new m(function(oe){oe(X)})).then(R,U)}H((h=h.apply(v,d||[])).next())});var v,d,m,h},M.prototype.drawBackground=function(){var c,v,d=this._element,m=this._options;if(d){var h=(c=m.backgroundOptions)===null||c===void 0?void 0:c.gradient,p=(v=m.backgroundOptions)===null||v===void 0?void 0:v.color;(h||p)&&this._createColor({options:h,color:p,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:"background-color"})}},M.prototype.drawDots=function(c){var v,d,m=this;if(!this._qr)throw"QR code is not defined";var h=this._options,p=this._qr.getModuleCount();if(p>h.width||p>h.height)throw"The canvas is too small.";var k=Math.min(h.width,h.height)-2*h.margin,R=Math.floor(k/p),U=Math.floor((h.width-p*R)/2),H=Math.floor((h.height-p*R)/2),J=new se({svg:this._element,type:h.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(v=h.dotsOptions)===null||v===void 0?void 0:v.gradient,color:h.dotsOptions.color,additionalRotation:0,x:U,y:H,height:p*R,width:p*R,name:"dot-color"});for(var X=function(pe){for(var ve=function(Ee){return c&&!c(pe,Ee)?"continue":!((d=oe._qr)===null||d===void 0)&&d.isDark(pe,Ee)?(J.draw(U+pe*R,H+Ee*R,R,function(be,ce){return!(pe+be<0||Ee+ce<0||pe+be>=p||Ee+ce>=p)&&!(c&&!c(pe+be,Ee+ce))&&!!m._qr&&m._qr.isDark(pe+be,Ee+ce)}),void(J._element&&oe._dotsClipPath&&oe._dotsClipPath.appendChild(J._element))):"continue"},Se=0;Se<p;Se++)ve(Se)},oe=this,fe=0;fe<p;fe++)X(fe)},M.prototype.drawCorners=function(){var c=this;if(!this._qr)throw"QR code is not defined";var v=this._element,d=this._options;if(!v)throw"Element code is not defined";var m=this._qr.getModuleCount(),h=Math.min(d.width,d.height)-2*d.margin,p=Math.floor(h/m),k=7*p,R=3*p,U=Math.floor((d.width-m*p)/2),H=Math.floor((d.height-m*p)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(J){var X,oe,fe,pe,ve,Se,Ee,be,ce,Ve,we,We,Qe=J[0],mt=J[1],ge=J[2],nt=U+Qe*p*(m-7),Ht=H+mt*p*(m-7),Tt=c._dotsClipPath,kt=c._dotsClipPath;if((((X=d.cornersSquareOptions)===null||X===void 0?void 0:X.gradient)||((oe=d.cornersSquareOptions)===null||oe===void 0?void 0:oe.color))&&((Tt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Qe+"-"+mt),c._defs.appendChild(Tt),c._cornersSquareClipPath=c._cornersDotClipPath=kt=Tt,c._createColor({options:(fe=d.cornersSquareOptions)===null||fe===void 0?void 0:fe.gradient,color:(pe=d.cornersSquareOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:ge,x:nt,y:Ht,height:k,width:k,name:"corners-square-color-"+Qe+"-"+mt})),(ve=d.cornersSquareOptions)===null||ve===void 0?void 0:ve.type){var At=new F({svg:c._element,type:d.cornersSquareOptions.type});At.draw(nt,Ht,k,ge),At._element&&Tt&&Tt.appendChild(At._element)}else for(var pt=new se({svg:c._element,type:d.dotsOptions.type}),ct=function(Ye){for(var Ut=function(yt){if(!(!((Se=K[Ye])===null||Se===void 0)&&Se[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(xr,_r){var bt;return!!(!((bt=K[Ye+xr])===null||bt===void 0)&&bt[yt+_r])}),pt._element&&Tt&&Tt.appendChild(pt._element)},st=0;st<K[Ye].length;st++)Ut(st)},ut=0;ut<K.length;ut++)ct(ut);if((((Ee=d.cornersDotOptions)===null||Ee===void 0?void 0:Ee.gradient)||((be=d.cornersDotOptions)===null||be===void 0?void 0:be.color))&&((kt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Qe+"-"+mt),c._defs.appendChild(kt),c._cornersDotClipPath=kt,c._createColor({options:(ce=d.cornersDotOptions)===null||ce===void 0?void 0:ce.gradient,color:(Ve=d.cornersDotOptions)===null||Ve===void 0?void 0:Ve.color,additionalRotation:ge,x:nt+2*p,y:Ht+2*p,height:R,width:R,name:"corners-dot-color-"+Qe+"-"+mt})),(we=d.cornersDotOptions)===null||we===void 0?void 0:we.type){var hr=new ne({svg:c._element,type:d.cornersDotOptions.type});hr.draw(nt+2*p,Ht+2*p,R,ge),hr._element&&kt&&kt.appendChild(hr._element)}else{pt=new se({svg:c._element,type:d.dotsOptions.type});var Gr=function(Ye){for(var Ut=function(yt){if(!(!((We=xe[Ye])===null||We===void 0)&&We[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(xr,_r){var bt;return!!(!((bt=xe[Ye+xr])===null||bt===void 0)&&bt[yt+_r])}),pt._element&&kt&&kt.appendChild(pt._element)},st=0;st<xe[Ye].length;st++)Ut(st)};for(ut=0;ut<xe.length;ut++)Gr(ut)}})},M.prototype.loadImage=function(){var c=this;return new Promise(function(v,d){var m=c._options,h=new Image;if(!m.image)return d("Image is not defined");typeof m.imageOptions.crossOrigin=="string"&&(h.crossOrigin=m.imageOptions.crossOrigin),c._image=h,h.onload=function(){v()},h.src=m.image})},M.prototype.drawImage=function(c){var v=c.width,d=c.height,m=c.count,h=c.dotSize,p=this._options,k=Math.floor((p.width-m*h)/2),R=Math.floor((p.height-m*h)/2),U=k+p.imageOptions.margin+(m*h-v)/2,H=R+p.imageOptions.margin+(m*h-d)/2,J=v-2*p.imageOptions.margin,X=d-2*p.imageOptions.margin,oe=document.createElementNS("http://www.w3.org/2000/svg","image");oe.setAttribute("href",p.image||""),oe.setAttribute("x",String(U)),oe.setAttribute("y",String(H)),oe.setAttribute("width",J+"px"),oe.setAttribute("height",X+"px"),this._element.appendChild(oe)},M.prototype._createColor=function(c){var v=c.options,d=c.color,m=c.additionalRotation,h=c.x,p=c.y,k=c.height,R=c.width,U=c.name,H=R>k?R:k,J=document.createElementNS("http://www.w3.org/2000/svg","rect");if(J.setAttribute("x",String(h)),J.setAttribute("y",String(p)),J.setAttribute("height",String(k)),J.setAttribute("width",String(R)),J.setAttribute("clip-path","url('#clip-path-"+U+"')"),v){var X;if(v.type===j)(X=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("fx",String(h+R/2)),X.setAttribute("fy",String(p+k/2)),X.setAttribute("cx",String(h+R/2)),X.setAttribute("cy",String(p+k/2)),X.setAttribute("r",String(H/2));else{var oe=((v.rotation||0)+m)%(2*Math.PI),fe=(oe+2*Math.PI)%(2*Math.PI),pe=h+R/2,ve=p+k/2,Se=h+R/2,Ee=p+k/2;fe>=0&&fe<=.25*Math.PI||fe>1.75*Math.PI&&fe<=2*Math.PI?(pe-=R/2,ve-=k/2*Math.tan(oe),Se+=R/2,Ee+=k/2*Math.tan(oe)):fe>.25*Math.PI&&fe<=.75*Math.PI?(ve-=k/2,pe-=R/2/Math.tan(oe),Ee+=k/2,Se+=R/2/Math.tan(oe)):fe>.75*Math.PI&&fe<=1.25*Math.PI?(pe+=R/2,ve+=k/2*Math.tan(oe),Se-=R/2,Ee-=k/2*Math.tan(oe)):fe>1.25*Math.PI&&fe<=1.75*Math.PI&&(ve+=k/2,pe+=R/2/Math.tan(oe),Ee-=k/2,Se-=R/2/Math.tan(oe)),(X=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("x1",String(Math.round(pe))),X.setAttribute("y1",String(Math.round(ve))),X.setAttribute("x2",String(Math.round(Se))),X.setAttribute("y2",String(Math.round(Ee)))}v.colorStops.forEach(function(be){var ce=be.offset,Ve=be.color,we=document.createElementNS("http://www.w3.org/2000/svg","stop");we.setAttribute("offset",100*ce+"%"),we.setAttribute("stop-color",Ve),X.appendChild(we)}),J.setAttribute("fill","url('#"+U+"')"),this._defs.appendChild(X)}else d&&J.setAttribute("fill",d);this._element.appendChild(J)},M}(),Oe="canvas";for(var ye={},Be=0;Be<=40;Be++)ye[Be]=Be;const Ie={type:Oe,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ye[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var G=function(){return(G=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};function ae(M){var c=G({},M);if(!c.colorStops||!c.colorStops.length)throw"Field 'colorStops' is required in gradient";return c.rotation?c.rotation=Number(c.rotation):c.rotation=0,c.colorStops=c.colorStops.map(function(v){return G(G({},v),{offset:Number(v.offset)})}),c}function _(M){var c=G({},M);return c.width=Number(c.width),c.height=Number(c.height),c.margin=Number(c.margin),c.imageOptions=G(G({},c.imageOptions),{hideBackgroundDots:Boolean(c.imageOptions.hideBackgroundDots),imageSize:Number(c.imageOptions.imageSize),margin:Number(c.imageOptions.margin)}),c.margin>Math.min(c.width,c.height)&&(c.margin=Math.min(c.width,c.height)),c.dotsOptions=G({},c.dotsOptions),c.dotsOptions.gradient&&(c.dotsOptions.gradient=ae(c.dotsOptions.gradient)),c.cornersSquareOptions&&(c.cornersSquareOptions=G({},c.cornersSquareOptions),c.cornersSquareOptions.gradient&&(c.cornersSquareOptions.gradient=ae(c.cornersSquareOptions.gradient))),c.cornersDotOptions&&(c.cornersDotOptions=G({},c.cornersDotOptions),c.cornersDotOptions.gradient&&(c.cornersDotOptions.gradient=ae(c.cornersDotOptions.gradient))),c.backgroundOptions&&(c.backgroundOptions=G({},c.backgroundOptions),c.backgroundOptions.gradient&&(c.backgroundOptions.gradient=ae(c.backgroundOptions.gradient))),c}var b=s(192),O=s.n(b),te=function(M,c,v,d){return new(v||(v=Promise))(function(m,h){function p(U){try{R(d.next(U))}catch(H){h(H)}}function k(U){try{R(d.throw(U))}catch(H){h(H)}}function R(U){var H;U.done?m(U.value):(H=U.value,H instanceof v?H:new v(function(J){J(H)})).then(p,k)}R((d=d.apply(M,c||[])).next())})},le=function(M,c){var v,d,m,h,p={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return h={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function k(R){return function(U){return function(H){if(v)throw new TypeError("Generator is already executing.");for(;p;)try{if(v=1,d&&(m=2&H[0]?d.return:H[0]?d.throw||((m=d.return)&&m.call(d),0):d.next)&&!(m=m.call(d,H[1])).done)return m;switch(d=0,m&&(H=[2&H[0],m.value]),H[0]){case 0:case 1:m=H;break;case 4:return p.label++,{value:H[1],done:!1};case 5:p.label++,d=H[1],H=[0];continue;case 7:H=p.ops.pop(),p.trys.pop();continue;default:if(!((m=(m=p.trys).length>0&&m[m.length-1])||H[0]!==6&&H[0]!==2)){p=0;continue}if(H[0]===3&&(!m||H[1]>m[0]&&H[1]<m[3])){p.label=H[1];break}if(H[0]===6&&p.label<m[1]){p.label=m[1],m=H;break}if(m&&p.label<m[2]){p.label=m[2],p.ops.push(H);break}m[2]&&p.ops.pop(),p.trys.pop();continue}H=c.call(M,p)}catch(J){H=[6,J],d=0}finally{v=m=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([R,U])}}};const de=function(){function M(c){this._options=c?_(w(Ie,c)):Ie,this.update()}return M._clearContainer=function(c){c&&(c.innerHTML="")},M.prototype._getQRStylingElement=function(c){return c===void 0&&(c="png"),te(this,void 0,void 0,function(){var v,d,m;return le(this,function(h){switch(h.label){case 0:if(!this._qr)throw"QR code is empty";return c.toLowerCase()!=="svg"?[3,2]:(d=void 0,v=void 0,this._svg&&this._svgDrawingPromise?(v=this._svg,d=this._svgDrawingPromise):(v=new _e(this._options),d=v.drawQR(this._qr)),[4,d]);case 1:return h.sent(),[2,v];case 2:return d=void 0,m=void 0,this._canvas&&this._canvasDrawingPromise?(m=this._canvas,d=this._canvasDrawingPromise):(m=new V(this._options),d=m.drawQR(this._qr)),[4,d];case 3:return h.sent(),[2,m]}})})},M.prototype.update=function(c){M._clearContainer(this._container),this._options=c?_(w(this._options,c)):this._options,this._options.data&&(this._qr=O()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(v){switch(!0){case/^[0-9]*$/.test(v):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(v):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Oe?(this._canvas=new V(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new _e(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},M.prototype.append=function(c){if(c){if(typeof c.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Oe?this._canvas&&c.appendChild(this._canvas.getCanvas()):this._svg&&c.appendChild(this._svg.getElement()),this._container=c}},M.prototype.getRawData=function(c){return c===void 0&&(c="png"),te(this,void 0,void 0,function(){var v,d,m;return le(this,function(h){switch(h.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(c)];case 1:return v=h.sent(),c.toLowerCase()==="svg"?(d=new XMLSerializer,m=d.serializeToString(v.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
3
+ `}return d.substring(0,d.length-1)},F.renderTo2dContext=function(G,ae){ae=ae||2;for(var _=F.getModuleCount(),b=0;b<_;b++)for(var O=0;O<_;O++)G.fillStyle=F.isDark(b,O)?"black":"white",G.fillRect(b*ae,O*ae,ae,ae)},F};f.stringToBytes=(f.stringToBytesFuncs={default:function(L){for(var q=[],W=0;W<L.length;W+=1){var j=L.charCodeAt(W);q.push(255&j)}return q}}).default,f.createStringToBytes=function(L,q){var W=function(){for(var V=$(L),Z=function(){var K=V.read();if(K==-1)throw"eof";return K},se=0,ie={};;){var F=V.read();if(F==-1)break;var ee=Z(),ne=Z()<<8|Z();ie[String.fromCharCode(F<<8|ee)]=ne,se+=1}if(se!=q)throw se+" != "+q;return ie}(),j="?".charCodeAt(0);return function(V){for(var Z=[],se=0;se<V.length;se+=1){var ie=V.charCodeAt(se);if(ie<128)Z.push(ie);else{var F=W[V.charAt(se)];typeof F=="number"?(255&F)==F?Z.push(F):(Z.push(F>>>8),Z.push(255&F)):Z.push(j)}}return Z}};var x,y,w,S,T,N={L:1,M:0,Q:3,H:2},C=(x=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],y=1335,w=7973,T=function(L){for(var q=0;L!=0;)q+=1,L>>>=1;return q},(S={}).getBCHTypeInfo=function(L){for(var q=L<<10;T(q)-T(y)>=0;)q^=y<<T(q)-T(y);return 21522^(L<<10|q)},S.getBCHTypeNumber=function(L){for(var q=L<<12;T(q)-T(w)>=0;)q^=w<<T(q)-T(w);return L<<12|q},S.getPatternPosition=function(L){return x[L-1]},S.getMaskFunction=function(L){switch(L){case 0:return function(q,W){return(q+W)%2==0};case 1:return function(q,W){return q%2==0};case 2:return function(q,W){return W%3==0};case 3:return function(q,W){return(q+W)%3==0};case 4:return function(q,W){return(Math.floor(q/2)+Math.floor(W/3))%2==0};case 5:return function(q,W){return q*W%2+q*W%3==0};case 6:return function(q,W){return(q*W%2+q*W%3)%2==0};case 7:return function(q,W){return(q*W%3+(q+W)%2)%2==0};default:throw"bad maskPattern:"+L}},S.getErrorCorrectPolynomial=function(L){for(var q=A([1],0),W=0;W<L;W+=1)q=q.multiply(A([1,E.gexp(W)],0));return q},S.getLengthInBits=function(L,q){if(1<=q&&q<10)switch(L){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+L}else if(q<27)switch(L){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+L}else{if(!(q<41))throw"type:"+q;switch(L){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+L}}},S.getLostPoint=function(L){for(var q=L.getModuleCount(),W=0,j=0;j<q;j+=1)for(var V=0;V<q;V+=1){for(var Z=0,se=L.isDark(j,V),ie=-1;ie<=1;ie+=1)if(!(j+ie<0||q<=j+ie))for(var F=-1;F<=1;F+=1)V+F<0||q<=V+F||ie==0&&F==0||se==L.isDark(j+ie,V+F)&&(Z+=1);Z>5&&(W+=3+Z-5)}for(j=0;j<q-1;j+=1)for(V=0;V<q-1;V+=1){var ee=0;L.isDark(j,V)&&(ee+=1),L.isDark(j+1,V)&&(ee+=1),L.isDark(j,V+1)&&(ee+=1),L.isDark(j+1,V+1)&&(ee+=1),ee!=0&&ee!=4||(W+=3)}for(j=0;j<q;j+=1)for(V=0;V<q-6;V+=1)L.isDark(j,V)&&!L.isDark(j,V+1)&&L.isDark(j,V+2)&&L.isDark(j,V+3)&&L.isDark(j,V+4)&&!L.isDark(j,V+5)&&L.isDark(j,V+6)&&(W+=40);for(V=0;V<q;V+=1)for(j=0;j<q-6;j+=1)L.isDark(j,V)&&!L.isDark(j+1,V)&&L.isDark(j+2,V)&&L.isDark(j+3,V)&&L.isDark(j+4,V)&&!L.isDark(j+5,V)&&L.isDark(j+6,V)&&(W+=40);var ne=0;for(V=0;V<q;V+=1)for(j=0;j<q;j+=1)L.isDark(j,V)&&(ne+=1);return W+Math.abs(100*ne/q/q-50)/5*10},S),E=function(){for(var L=new Array(256),q=new Array(256),W=0;W<8;W+=1)L[W]=1<<W;for(W=8;W<256;W+=1)L[W]=L[W-4]^L[W-5]^L[W-6]^L[W-8];for(W=0;W<255;W+=1)q[L[W]]=W;return{glog:function(j){if(j<1)throw"glog("+j+")";return q[j]},gexp:function(j){for(;j<0;)j+=255;for(;j>=256;)j-=255;return L[j]}}}();function A(L,q){if(L.length===void 0)throw L.length+"/"+q;var W=function(){for(var V=0;V<L.length&&L[V]==0;)V+=1;for(var Z=new Array(L.length-V+q),se=0;se<L.length-V;se+=1)Z[se]=L[se+V];return Z}(),j={getAt:function(V){return W[V]},getLength:function(){return W.length},multiply:function(V){for(var Z=new Array(j.getLength()+V.getLength()-1),se=0;se<j.getLength();se+=1)for(var ie=0;ie<V.getLength();ie+=1)Z[se+ie]^=E.gexp(E.glog(j.getAt(se))+E.glog(V.getAt(ie)));return A(Z,0)},mod:function(V){if(j.getLength()-V.getLength()<0)return j;for(var Z=E.glog(j.getAt(0))-E.glog(V.getAt(0)),se=new Array(j.getLength()),ie=0;ie<j.getLength();ie+=1)se[ie]=j.getAt(ie);for(ie=0;ie<V.getLength();ie+=1)se[ie]^=E.gexp(E.glog(V.getAt(ie))+Z);return A(se,0).mod(V)}};return j}var I=function(){var L=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],q=function(j,V){var Z={};return Z.totalCount=j,Z.dataCount=V,Z},W={getRSBlocks:function(j,V){var Z=function(_e,Oe){switch(Oe){case N.L:return L[4*(_e-1)+0];case N.M:return L[4*(_e-1)+1];case N.Q:return L[4*(_e-1)+2];case N.H:return L[4*(_e-1)+3];default:return}}(j,V);if(Z===void 0)throw"bad rs block @ typeNumber:"+j+"/errorCorrectionLevel:"+V;for(var se=Z.length/3,ie=[],F=0;F<se;F+=1)for(var ee=Z[3*F+0],ne=Z[3*F+1],K=Z[3*F+2],we=0;we<ee;we+=1)ie.push(q(ne,K));return ie}};return W}(),D=function(){var L=[],q=0,W={getBuffer:function(){return L},getAt:function(j){var V=Math.floor(j/8);return(L[V]>>>7-j%8&1)==1},put:function(j,V){for(var Z=0;Z<V;Z+=1)W.putBit((j>>>V-Z-1&1)==1)},getLengthInBits:function(){return q},putBit:function(j){var V=Math.floor(q/8);L.length<=V&&L.push(0),j&&(L[V]|=128>>>q%8),q+=1}};return W},P=function(L){var q=L,W={getMode:function(){return 1},getLength:function(Z){return q.length},write:function(Z){for(var se=q,ie=0;ie+2<se.length;)Z.put(j(se.substring(ie,ie+3)),10),ie+=3;ie<se.length&&(se.length-ie==1?Z.put(j(se.substring(ie,ie+1)),4):se.length-ie==2&&Z.put(j(se.substring(ie,ie+2)),7))}},j=function(Z){for(var se=0,ie=0;ie<Z.length;ie+=1)se=10*se+V(Z.charAt(ie));return se},V=function(Z){if("0"<=Z&&Z<="9")return Z.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+Z};return W},z=function(L){var q=L,W={getMode:function(){return 2},getLength:function(V){return q.length},write:function(V){for(var Z=q,se=0;se+1<Z.length;)V.put(45*j(Z.charAt(se))+j(Z.charAt(se+1)),11),se+=2;se<Z.length&&V.put(j(Z.charAt(se)),6)}},j=function(V){if("0"<=V&&V<="9")return V.charCodeAt(0)-"0".charCodeAt(0);if("A"<=V&&V<="Z")return V.charCodeAt(0)-"A".charCodeAt(0)+10;switch(V){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+V}};return W},Y=function(L){var q=f.stringToBytes(L);return{getMode:function(){return 4},getLength:function(W){return q.length},write:function(W){for(var j=0;j<q.length;j+=1)W.put(q[j],8)}}},Q=function(L){var q=f.stringToBytesFuncs.SJIS;if(!q)throw"sjis not supported.";(function(j,V){var Z=q("\u53CB");if(Z.length!=2||(Z[0]<<8|Z[1])!=38726)throw"sjis not supported."})();var W=q(L);return{getMode:function(){return 8},getLength:function(j){return~~(W.length/2)},write:function(j){for(var V=W,Z=0;Z+1<V.length;){var se=(255&V[Z])<<8|255&V[Z+1];if(33088<=se&&se<=40956)se-=33088;else{if(!(57408<=se&&se<=60351))throw"illegal char at "+(Z+1)+"/"+se;se-=49472}se=192*(se>>>8&255)+(255&se),j.put(se,13),Z+=2}if(Z<V.length)throw"illegal char at "+(Z+1)}}},B=function(){var L=[],q={writeByte:function(W){L.push(255&W)},writeShort:function(W){q.writeByte(W),q.writeByte(W>>>8)},writeBytes:function(W,j,V){j=j||0,V=V||W.length;for(var Z=0;Z<V;Z+=1)q.writeByte(W[Z+j])},writeString:function(W){for(var j=0;j<W.length;j+=1)q.writeByte(W.charCodeAt(j))},toByteArray:function(){return L},toString:function(){var W="";W+="[";for(var j=0;j<L.length;j+=1)j>0&&(W+=","),W+=L[j];return W+"]"}};return q},$=function(L){var q=L,W=0,j=0,V=0,Z={read:function(){for(;V<8;){if(W>=q.length){if(V==0)return-1;throw"unexpected end of file./"+V}var ie=q.charAt(W);if(W+=1,ie=="=")return V=0,-1;ie.match(/^\s$/)||(j=j<<6|se(ie.charCodeAt(0)),V+=6)}var F=j>>>V-8&255;return V-=8,F}},se=function(ie){if(65<=ie&&ie<=90)return ie-65;if(97<=ie&&ie<=122)return ie-97+26;if(48<=ie&&ie<=57)return ie-48+52;if(ie==43)return 62;if(ie==47)return 63;throw"c:"+ie};return Z},re=function(L,q,W){for(var j=function(ne,K){var we=ne,_e=K,Oe=new Array(ne*K),ye={setPixel:function(G,ae,_){Oe[ae*we+G]=_},write:function(G){G.writeString("GIF87a"),G.writeShort(we),G.writeShort(_e),G.writeByte(128),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(0),G.writeByte(255),G.writeByte(255),G.writeByte(255),G.writeString(","),G.writeShort(0),G.writeShort(0),G.writeShort(we),G.writeShort(_e),G.writeByte(0);var ae=Be(2);G.writeByte(2);for(var _=0;ae.length-_>255;)G.writeByte(255),G.writeBytes(ae,_,255),_+=255;G.writeByte(ae.length-_),G.writeBytes(ae,_,ae.length-_),G.writeByte(0),G.writeString(";")}},Be=function(G){for(var ae=1<<G,_=1+(1<<G),b=G+1,O=Ie(),te=0;te<ae;te+=1)O.add(String.fromCharCode(te));O.add(String.fromCharCode(ae)),O.add(String.fromCharCode(_));var le,de,M,c=B(),v=(le=c,de=0,M=0,{write:function(p,k){if(p>>>k!=0)throw"length over";for(;de+k>=8;)le.writeByte(255&(p<<de|M)),k-=8-de,p>>>=8-de,M=0,de=0;M|=p<<de,de+=k},flush:function(){de>0&&le.writeByte(M)}});v.write(ae,b);var d=0,m=String.fromCharCode(Oe[d]);for(d+=1;d<Oe.length;){var h=String.fromCharCode(Oe[d]);d+=1,O.contains(m+h)?m+=h:(v.write(O.indexOf(m),b),O.size()<4095&&(O.size()==1<<b&&(b+=1),O.add(m+h)),m=h)}return v.write(O.indexOf(m),b),v.write(_,b),v.flush(),c.toByteArray()},Ie=function(){var G={},ae=0,_={add:function(b){if(_.contains(b))throw"dup key:"+b;G[b]=ae,ae+=1},size:function(){return ae},indexOf:function(b){return G[b]},contains:function(b){return G[b]!==void 0}};return _};return ye}(L,q),V=0;V<q;V+=1)for(var Z=0;Z<L;Z+=1)j.setPixel(Z,V,W(Z,V));var se=B();j.write(se);for(var ie=function(){var ne=0,K=0,we=0,_e="",Oe={},ye=function(Ie){_e+=String.fromCharCode(Be(63&Ie))},Be=function(Ie){if(!(Ie<0)){if(Ie<26)return 65+Ie;if(Ie<52)return Ie-26+97;if(Ie<62)return Ie-52+48;if(Ie==62)return 43;if(Ie==63)return 47}throw"n:"+Ie};return Oe.writeByte=function(Ie){for(ne=ne<<8|255&Ie,K+=8,we+=1;K>=6;)ye(ne>>>K-6),K-=6},Oe.flush=function(){if(K>0&&(ye(ne<<6-K),ne=0,K=0),we%3!=0)for(var Ie=3-we%3,G=0;G<Ie;G+=1)_e+="="},Oe.toString=function(){return _e},Oe}(),F=se.toByteArray(),ee=0;ee<F.length;ee+=1)ie.writeByte(F[ee]);return ie.flush(),"data:image/gif;base64,"+ie};return f}();u.stringToBytesFuncs["UTF-8"]=function(f){return function(x){for(var y=[],w=0;w<x.length;w++){var S=x.charCodeAt(w);S<128?y.push(S):S<2048?y.push(192|S>>6,128|63&S):S<55296||S>=57344?y.push(224|S>>12,128|S>>6&63,128|63&S):(w++,S=65536+((1023&S)<<10|1023&x.charCodeAt(w)),y.push(240|S>>18,128|S>>12&63,128|S>>6&63,128|63&S))}return y}(f)},(l=typeof(s=function(){return u})=="function"?s.apply(o,[]):s)===void 0||(i.exports=l)},796:(i,o,s)=>{s.d(o,{default:()=>de});var l=function(){return(l=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)},u=function(){for(var M=0,c=0,v=arguments.length;c<v;c++)M+=arguments[c].length;var d=Array(M),m=0;for(c=0;c<v;c++)for(var h=arguments[c],p=0,k=h.length;p<k;p++,m++)d[m]=h[p];return d},f=function(M){return!!M&&typeof M=="object"&&!Array.isArray(M)};function x(M){for(var c=[],v=1;v<arguments.length;v++)c[v-1]=arguments[v];if(!c.length)return M;var d=c.shift();return d!==void 0&&f(M)&&f(d)?(M=l({},M),Object.keys(d).forEach(function(m){var h=M[m],p=d[m];Array.isArray(h)&&Array.isArray(p)?M[m]=p:f(h)&&f(p)?M[m]=x(Object.assign({},h),p):M[m]=p}),x.apply(void 0,u([M],c))):M}function y(M,c){var v=document.createElement("a");v.download=c,v.href=M,document.body.appendChild(v),v.click(),document.body.removeChild(v)}function w(M){var c=M.originalHeight,v=M.originalWidth,d=M.maxHiddenDots,m=M.maxHiddenAxisDots,h=M.dotSize,p={x:0,y:0},k={x:0,y:0};if(c<=0||v<=0||d<=0||h<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var R=c/v;return p.x=Math.floor(Math.sqrt(d/R)),p.x<=0&&(p.x=1),m&&m<p.x&&(p.x=m),p.x%2==0&&p.x--,k.x=p.x*h,p.y=1+2*Math.ceil((p.x*R-1)/2),k.y=Math.round(k.x*R),(p.y*p.x>d||m&&m<p.y)&&(m&&m<p.y?(p.y=m,p.y%2==0&&p.x--):p.y-=2,k.y=p.y*h,p.x=1+2*Math.ceil((p.y/R-1)/2),k.x=Math.round(k.y/R)),{height:k.y,width:k.x,hideYDots:p.y,hideXDots:p.x}}const S={L:.07,M:.15,Q:.25,H:.3},T="dots",N="rounded",C="classy",E="classy-rounded",A="square",I="extra-rounded";var D=function(){return(D=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const P=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case T:h=this._drawDot;break;case C:h=this._drawClassy;break;case E:h=this._drawClassyRounded;break;case N:h=this._drawRounded;break;case I:h=this._drawExtraRounded;break;case A:default:h=this._drawSquare}h.call(this,{x:c,y:v,size:d,context:p,getNeighbor:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._basicSideRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,Math.PI/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornerExtraRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.lineTo(-v/2,v/2),d.lineTo(-v/2,-v/2)}}))},M.prototype._basicCornersRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(0,0,v/2,-Math.PI/2,0),d.lineTo(v/2,v/2),d.lineTo(0,v/2),d.arc(0,0,v/2,Math.PI/2,Math.PI),d.lineTo(-v/2,-v/2),d.lineTo(0,-v/2)}}))},M.prototype._basicCornersExtraRounded=function(c){var v=c.size,d=c.context;this._rotateFigure(D(D({},c),{draw:function(){d.arc(-v/2,v/2,v,-Math.PI/2,0),d.arc(v/2,-v/2,v,Math.PI/2,Math.PI)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context;this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context;this._basicSquare({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0,J=k+R+U+H;if(J!==0)if(J>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(J===2){var X=0;return k&&U?X=Math.PI/2:U&&R?X=Math.PI:R&&H&&(X=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:X})}if(J===1)return X=0,U?X=Math.PI/2:R?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,context:h,rotation:X})}else this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0,J=k+R+U+H;if(J!==0)if(J>2||k&&R||U&&H)this._basicSquare({x:v,y:d,size:m,context:h,rotation:0});else{if(J===2){var X=0;return k&&U?X=Math.PI/2:U&&R?X=Math.PI:R&&H&&(X=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:X})}if(J===1)return X=0,U?X=Math.PI/2:R?X=Math.PI:H&&(X=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,context:h,rotation:X})}else this._basicDot({x:v,y:d,size:m,context:h,rotation:0})},M.prototype._drawClassy=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0;k+R+U+H!==0?k||U?R||H?this._basicSquare({x:v,y:d,size:m,context:h,rotation:0}):this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:m,context:h,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.getNeighbor,k=p?+p(-1,0):0,R=p?+p(1,0):0,U=p?+p(0,-1):0,H=p?+p(0,1):0;k+R+U+H!==0?k||U?R||H?this._basicSquare({x:v,y:d,size:m,context:h,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:m,context:h,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,context:h,rotation:Math.PI/2})},M}(),z="square",Y="extra-rounded";var Q=function(){return(Q=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const B=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case z:h=this._drawSquare;break;case Y:h=this._drawExtraRounded;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,context:p,rotation:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI),d.arc(0,0,v/2-m,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.rect(-v/2,-v/2,v,v),d.rect(-v/2+m,-v/2+m,v-2*m,v-2*m)}}))},M.prototype._basicExtraRounded=function(c){var v=c.size,d=c.context,m=v/7;this._rotateFigure(Q(Q({},c),{draw:function(){d.arc(-m,-m,2.5*m,Math.PI,-Math.PI/2),d.lineTo(m,-3.5*m),d.arc(m,-m,2.5*m,-Math.PI/2,0),d.lineTo(3.5*m,-m),d.arc(m,m,2.5*m,0,Math.PI/2),d.lineTo(-m,3.5*m),d.arc(-m,m,2.5*m,Math.PI/2,Math.PI),d.lineTo(-3.5*m,-m),d.arc(-m,-m,1.5*m,Math.PI,-Math.PI/2),d.lineTo(m,-2.5*m),d.arc(m,-m,1.5*m,-Math.PI/2,0),d.lineTo(2.5*m,-m),d.arc(m,m,1.5*m,0,Math.PI/2),d.lineTo(-m,2.5*m),d.arc(-m,m,1.5*m,Math.PI/2,Math.PI),d.lineTo(-2.5*m,-m)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicDot({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicSquare({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicExtraRounded({x:v,y:d,size:m,context:h,rotation:p})},M}(),$="square";var re=function(){return(re=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const L=function(){function M(c){var v=c.context,d=c.type;this._context=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h,p=this._context;switch(this._type){case $:h=this._drawSquare;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,context:p,rotation:m})},M.prototype._rotateFigure=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation,k=p===void 0?0:p,R=c.draw,U=v+m/2,H=d+m/2;h.translate(U,H),k&&h.rotate(k),R(),h.closePath(),k&&h.rotate(-k),h.translate(-U,-H)},M.prototype._basicDot=function(c){var v=c.size,d=c.context;this._rotateFigure(re(re({},c),{draw:function(){d.arc(0,0,v/2,0,2*Math.PI)}}))},M.prototype._basicSquare=function(c){var v=c.size,d=c.context;this._rotateFigure(re(re({},c),{draw:function(){d.rect(-v/2,-v/2,v,v)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicDot({x:v,y:d,size:m,context:h,rotation:p})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.context,p=c.rotation;this._basicSquare({x:v,y:d,size:m,context:h,rotation:p})},M}(),q="radial";var W=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],j=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const V=function(){function M(c){this._canvas=document.createElement("canvas"),this._canvas.width=c.width,this._canvas.height=c.height,this._options=c}return Object.defineProperty(M.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),M.prototype.getCanvas=function(){return this._canvas},M.prototype.clear=function(){var c=this.context;c&&c.clearRect(0,0,this._canvas.width,this._canvas.height)},M.prototype.drawQR=function(c){return v=this,d=void 0,h=function(){var p,k,R,U,H,J,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,xe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function We(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return xe.label++,{value:ge[1],done:!1};case 5:xe.label++,be=ge[1],ge=[0];continue;case 7:ge=xe.ops.pop(),xe.trys.pop();continue;default:if(!((ce=(ce=xe.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){xe=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){xe.label=ge[1];break}if(ge[0]===6&&xe.label<ce[1]){xe.label=ce[1],ce=ge;break}if(ce&&xe.label<ce[2]){xe.label=ce[2],xe.ops.push(ge);break}ce[2]&&xe.ops.pop(),xe.trys.pop();continue}ge=Se.call(ve,xe)}catch(nt){ge=[6,nt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,mt])}}}(this,function(ve){switch(ve.label){case 0:return p=c.getModuleCount(),k=Math.min(this._options.width,this._options.height)-2*this._options.margin,R=Math.floor(k/p),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=c,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:R}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Se,Ee){var be,ce,Ve,xe,We,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Se>=(p-U.hideXDots)/2&&Se<(p+U.hideXDots)/2&&Ee>=(p-U.hideYDots)/2&&Ee<(p+U.hideYDots)/2||((be=W[Se])===null||be===void 0?void 0:be[Ee])||((ce=W[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=W[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((xe=j[Se])===null||xe===void 0?void 0:xe[Ee])||((We=j[Se-p+7])===null||We===void 0?void 0:We[Ee])||((Qe=j[Se])===null||Qe===void 0?void 0:Qe[Ee-p+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:p,dotSize:R}),[2]}})},new((m=void 0)||(m=Promise))(function(p,k){function R(J){try{H(h.next(J))}catch(X){k(X)}}function U(J){try{H(h.throw(J))}catch(X){k(X)}}function H(J){var X;J.done?p(J.value):(X=J.value,X instanceof m?X:new m(function(oe){oe(X)})).then(R,U)}H((h=h.apply(v,d||[])).next())});var v,d,m,h},M.prototype.drawBackground=function(){var c=this.context,v=this._options;if(c){if(v.backgroundOptions.gradient){var d=v.backgroundOptions.gradient,m=this._createGradient({context:c,options:d,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});d.colorStops.forEach(function(h){var p=h.offset,k=h.color;m.addColorStop(p,k)}),c.fillStyle=m}else v.backgroundOptions.color&&(c.fillStyle=v.backgroundOptions.color);c.fillRect(0,0,this._canvas.width,this._canvas.height)}},M.prototype.drawDots=function(c){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var m=this._options,h=this._qr.getModuleCount();if(h>m.width||h>m.height)throw"The canvas is too small.";var p=Math.min(m.width,m.height)-2*m.margin,k=Math.floor(p/h),R=Math.floor((m.width-h*k)/2),U=Math.floor((m.height-h*k)/2),H=new P({context:d,type:m.dotsOptions.type});d.beginPath();for(var J=function(ve){for(var Se=function(be){return c&&!c(ve,be)?"continue":X._qr.isDark(ve,be)?void H.draw(R+ve*k,U+be*k,k,function(ce,Ve){return!(ve+ce<0||be+Ve<0||ve+ce>=h||be+Ve>=h)&&!(c&&!c(ve+ce,be+Ve))&&!!v._qr&&v._qr.isDark(ve+ce,be+Ve)}):"continue"},Ee=0;Ee<h;Ee++)Se(Ee)},X=this,oe=0;oe<h;oe++)J(oe);if(m.dotsOptions.gradient){var fe=m.dotsOptions.gradient,pe=this._createGradient({context:d,options:fe,additionalRotation:0,x:R,y:U,size:h*k});fe.colorStops.forEach(function(ve){var Se=ve.offset,Ee=ve.color;pe.addColorStop(Se,Ee)}),d.fillStyle=d.strokeStyle=pe}else m.dotsOptions.color&&(d.fillStyle=d.strokeStyle=m.dotsOptions.color);d.fill("evenodd")},M.prototype.drawCorners=function(c){var v=this;if(!this._qr)throw"QR code is not defined";var d=this.context;if(!d)throw"QR code is not defined";var m=this._options,h=this._qr.getModuleCount(),p=Math.min(m.width,m.height)-2*m.margin,k=Math.floor(p/h),R=7*k,U=3*k,H=Math.floor((m.width-h*k)/2),J=Math.floor((m.height-h*k)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(X){var oe,fe,pe,ve,Se,Ee,be,ce,Ve,xe,We=X[0],Qe=X[1],mt=X[2];if(!c||c(We,Qe)){var ge=H+We*k*(h-7),nt=J+Qe*k*(h-7);if(!((oe=m.cornersSquareOptions)===null||oe===void 0)&&oe.type){var Ht=new B({context:d,type:(fe=m.cornersSquareOptions)===null||fe===void 0?void 0:fe.type});d.beginPath(),Ht.draw(ge,nt,R,mt)}else{var Tt=new P({context:d,type:m.dotsOptions.type});d.beginPath();for(var kt=function(Ye){for(var Ut=function(yt){if(!(!((pe=W[Ye])===null||pe===void 0)&&pe[yt]))return"continue";Tt.draw(ge+Ye*k,nt+yt*k,k,function(_r,Sr){var bt;return!!(!((bt=W[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])})},st=0;st<W[Ye].length;st++)Ut(st)},At=0;At<W.length;At++)kt(At)}if(!((ve=m.cornersSquareOptions)===null||ve===void 0)&&ve.gradient){var pt=m.cornersSquareOptions.gradient,ct=v._createGradient({context:d,options:pt,additionalRotation:mt,x:ge,y:nt,size:R});pt.colorStops.forEach(function(Ye){var Ut=Ye.offset,st=Ye.color;ct.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=ct}else!((Se=m.cornersSquareOptions)===null||Se===void 0)&&Se.color&&(d.fillStyle=d.strokeStyle=m.cornersSquareOptions.color);if(d.fill("evenodd"),(Ee=m.cornersDotOptions)===null||Ee===void 0?void 0:Ee.type){var ut=new L({context:d,type:(be=m.cornersDotOptions)===null||be===void 0?void 0:be.type});d.beginPath(),ut.draw(ge+2*k,nt+2*k,U,mt)}else{Tt=new P({context:d,type:m.dotsOptions.type}),d.beginPath();var hr=function(Ye){for(var Ut=function(yt){if(!(!((ce=j[Ye])===null||ce===void 0)&&ce[yt]))return"continue";Tt.draw(ge+Ye*k,nt+yt*k,k,function(_r,Sr){var bt;return!!(!((bt=j[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])})},st=0;st<j[Ye].length;st++)Ut(st)};for(At=0;At<j.length;At++)hr(At)}if(!((Ve=m.cornersDotOptions)===null||Ve===void 0)&&Ve.gradient){pt=m.cornersDotOptions.gradient;var Wr=v._createGradient({context:d,options:pt,additionalRotation:mt,x:ge+2*k,y:nt+2*k,size:U});pt.colorStops.forEach(function(Ye){var Ut=Ye.offset,st=Ye.color;Wr.addColorStop(Ut,st)}),d.fillStyle=d.strokeStyle=Wr}else!((xe=m.cornersDotOptions)===null||xe===void 0)&&xe.color&&(d.fillStyle=d.strokeStyle=m.cornersDotOptions.color);d.fill("evenodd")}})},M.prototype.loadImage=function(){var c=this;return new Promise(function(v,d){var m=c._options,h=new Image;if(!m.image)return d("Image is not defined");typeof m.imageOptions.crossOrigin=="string"&&(h.crossOrigin=m.imageOptions.crossOrigin),c._image=h,h.onload=function(){v()},h.src=m.image})},M.prototype.drawImage=function(c){var v=c.width,d=c.height,m=c.count,h=c.dotSize,p=this.context;if(!p)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var k=this._options,R=Math.floor((k.width-m*h)/2),U=Math.floor((k.height-m*h)/2),H=R+k.imageOptions.margin+(m*h-v)/2,J=U+k.imageOptions.margin+(m*h-d)/2,X=v-2*k.imageOptions.margin,oe=d-2*k.imageOptions.margin;p.drawImage(this._image,H,J,X<0?0:X,oe<0?0:oe)},M.prototype._createGradient=function(c){var v,d=c.context,m=c.options,h=c.additionalRotation,p=c.x,k=c.y,R=c.size;if(m.type===q)v=d.createRadialGradient(p+R/2,k+R/2,0,p+R/2,k+R/2,R/2);else{var U=((m.rotation||0)+h)%(2*Math.PI),H=(U+2*Math.PI)%(2*Math.PI),J=p+R/2,X=k+R/2,oe=p+R/2,fe=k+R/2;H>=0&&H<=.25*Math.PI||H>1.75*Math.PI&&H<=2*Math.PI?(J-=R/2,X-=R/2*Math.tan(U),oe+=R/2,fe+=R/2*Math.tan(U)):H>.25*Math.PI&&H<=.75*Math.PI?(X-=R/2,J-=R/2/Math.tan(U),fe+=R/2,oe+=R/2/Math.tan(U)):H>.75*Math.PI&&H<=1.25*Math.PI?(J+=R/2,X+=R/2*Math.tan(U),oe-=R/2,fe-=R/2*Math.tan(U)):H>1.25*Math.PI&&H<=1.75*Math.PI&&(X+=R/2,J+=R/2/Math.tan(U),fe-=R/2,oe-=R/2/Math.tan(U)),v=d.createLinearGradient(Math.round(J),Math.round(X),Math.round(oe),Math.round(fe))}return v},M}();var Z=function(){return(Z=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const se=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case T:h=this._drawDot;break;case C:h=this._drawClassy;break;case E:h=this._drawClassyRounded;break;case N:h=this._drawRounded;break;case I:h=this._drawExtraRounded;break;case A:default:h=this._drawSquare}h.call(this,{x:c,y:v,size:d,getNeighbor:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(m+d/2)),v._element.setAttribute("cy",String(h+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(m)),v._element.setAttribute("y",String(h)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._basicSideRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, 0 "+-d)}}))},M.prototype._basicCornerRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._basicCornerExtraRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"a "+d+" "+d+", 0, 0, 0, "+-d+" "+-d)}}))},M.prototype._basicCornersRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(Z(Z({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("d","M "+m+" "+h+"v "+d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+d/2+" "+d/2+"h "+d/2+"v "+-d/2+"a "+d/2+" "+d/2+", 0, 0, 0, "+-d/2+" "+-d/2)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size;this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size;this._basicSquare({x:v,y:d,size:m,rotation:0})},M.prototype._drawRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0,H=p+k+R+U;if(H!==0)if(H>2||p&&k||R&&U)this._basicSquare({x:v,y:d,size:m,rotation:0});else{if(H===2){var J=0;return p&&R?J=Math.PI/2:R&&k?J=Math.PI:k&&U&&(J=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:m,rotation:J})}if(H===1)return J=0,R?J=Math.PI/2:k?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:J})}else this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0,H=p+k+R+U;if(H!==0)if(H>2||p&&k||R&&U)this._basicSquare({x:v,y:d,size:m,rotation:0});else{if(H===2){var J=0;return p&&R?J=Math.PI/2:R&&k?J=Math.PI:k&&U&&(J=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:J})}if(H===1)return J=0,R?J=Math.PI/2:k?J=Math.PI:U&&(J=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:m,rotation:J})}else this._basicDot({x:v,y:d,size:m,rotation:0})},M.prototype._drawClassy=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0;p+k+R+U!==0?p||R?k||U?this._basicSquare({x:v,y:d,size:m,rotation:0}):this._basicCornerRounded({x:v,y:d,size:m,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,rotation:Math.PI/2})},M.prototype._drawClassyRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.getNeighbor,p=h?+h(-1,0):0,k=h?+h(1,0):0,R=h?+h(0,-1):0,U=h?+h(0,1):0;p+k+R+U!==0?p||R?k||U?this._basicSquare({x:v,y:d,size:m,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:m,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:m,rotation:Math.PI/2})},M}();var ie=function(){return(ie=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const F=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case z:h=this._drawSquare;break;case Y:h=this._drawExtraRounded;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,rotation:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+(m+d/2)+" "+h+"a "+d/2+" "+d/2+" 0 1 0 0.1 0zm 0 "+p+"a "+(d/2-p)+" "+(d/2-p)+" 0 1 1 -0.1 0Z")}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+m+" "+h+"v "+d+"h "+d+"v "+-d+"zM "+(m+p)+" "+(h+p)+"h "+(d-2*p)+"v "+(d-2*p)+"h "+(2*p-d)+"z")}}))},M.prototype._basicExtraRounded=function(c){var v=this,d=c.size,m=c.x,h=c.y,p=d/7;this._rotateFigure(ie(ie({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","path"),v._element.setAttribute("clip-rule","evenodd"),v._element.setAttribute("d","M "+m+" "+(h+2.5*p)+"v "+2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*p+" "+2.5*p+"h "+2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*p+" "+2.5*-p+"v "+-2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*-p+" "+2.5*-p+"h "+-2*p+"a "+2.5*p+" "+2.5*p+", 0, 0, 0, "+2.5*-p+" "+2.5*p+"M "+(m+2.5*p)+" "+(h+p)+"h "+2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*p+" "+1.5*p+"v "+2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*-p+" "+1.5*p+"h "+-2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*-p+" "+1.5*-p+"v "+-2*p+"a "+1.5*p+" "+1.5*p+", 0, 0, 1, "+1.5*p+" "+1.5*-p)}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicDot({x:v,y:d,size:m,rotation:h})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicSquare({x:v,y:d,size:m,rotation:h})},M.prototype._drawExtraRounded=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicExtraRounded({x:v,y:d,size:m,rotation:h})},M}();var ee=function(){return(ee=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};const ne=function(){function M(c){var v=c.svg,d=c.type;this._svg=v,this._type=d}return M.prototype.draw=function(c,v,d,m){var h;switch(this._type){case $:h=this._drawSquare;break;case"dot":default:h=this._drawDot}h.call(this,{x:c,y:v,size:d,rotation:m})},M.prototype._rotateFigure=function(c){var v,d=c.x,m=c.y,h=c.size,p=c.rotation,k=p===void 0?0:p,R=d+h/2,U=m+h/2;(0,c.draw)(),(v=this._element)===null||v===void 0||v.setAttribute("transform","rotate("+180*k/Math.PI+","+R+","+U+")")},M.prototype._basicDot=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(ee(ee({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),v._element.setAttribute("cx",String(m+d/2)),v._element.setAttribute("cy",String(h+d/2)),v._element.setAttribute("r",String(d/2))}}))},M.prototype._basicSquare=function(c){var v=this,d=c.size,m=c.x,h=c.y;this._rotateFigure(ee(ee({},c),{draw:function(){v._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),v._element.setAttribute("x",String(m)),v._element.setAttribute("y",String(h)),v._element.setAttribute("width",String(d)),v._element.setAttribute("height",String(d))}}))},M.prototype._drawDot=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicDot({x:v,y:d,size:m,rotation:h})},M.prototype._drawSquare=function(c){var v=c.x,d=c.y,m=c.size,h=c.rotation;this._basicSquare({x:v,y:d,size:m,rotation:h})},M}();var K=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],we=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const _e=function(){function M(c){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(c.width)),this._element.setAttribute("height",String(c.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=c}return Object.defineProperty(M.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),M.prototype.getElement=function(){return this._element},M.prototype.clear=function(){var c,v=this._element;this._element=v.cloneNode(!1),(c=v==null?void 0:v.parentNode)===null||c===void 0||c.replaceChild(this._element,v),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},M.prototype.drawQR=function(c){return v=this,d=void 0,h=function(){var p,k,R,U,H,J,X,oe,fe,pe=this;return function(ve,Se){var Ee,be,ce,Ve,xe={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return Ve={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function We(Qe){return function(mt){return function(ge){if(Ee)throw new TypeError("Generator is already executing.");for(;xe;)try{if(Ee=1,be&&(ce=2&ge[0]?be.return:ge[0]?be.throw||((ce=be.return)&&ce.call(be),0):be.next)&&!(ce=ce.call(be,ge[1])).done)return ce;switch(be=0,ce&&(ge=[2&ge[0],ce.value]),ge[0]){case 0:case 1:ce=ge;break;case 4:return xe.label++,{value:ge[1],done:!1};case 5:xe.label++,be=ge[1],ge=[0];continue;case 7:ge=xe.ops.pop(),xe.trys.pop();continue;default:if(!((ce=(ce=xe.trys).length>0&&ce[ce.length-1])||ge[0]!==6&&ge[0]!==2)){xe=0;continue}if(ge[0]===3&&(!ce||ge[1]>ce[0]&&ge[1]<ce[3])){xe.label=ge[1];break}if(ge[0]===6&&xe.label<ce[1]){xe.label=ce[1],ce=ge;break}if(ce&&xe.label<ce[2]){xe.label=ce[2],xe.ops.push(ge);break}ce[2]&&xe.ops.pop(),xe.trys.pop();continue}ge=Se.call(ve,xe)}catch(nt){ge=[6,nt],be=0}finally{Ee=ce=0}if(5&ge[0])throw ge[1];return{value:ge[0]?ge[1]:void 0,done:!0}}([Qe,mt])}}}(this,function(ve){switch(ve.label){case 0:return p=c.getModuleCount(),k=Math.min(this._options.width,this._options.height)-2*this._options.margin,R=Math.floor(k/p),U={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=c,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(ve.sent(),!this._image)return[2];H=this._options,J=H.imageOptions,X=H.qrOptions,oe=J.imageSize*S[X.errorCorrectionLevel],fe=Math.floor(oe*p*p),U=w({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:p-14,dotSize:R}),ve.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(Se,Ee){var be,ce,Ve,xe,We,Qe;return!(pe._options.imageOptions.hideBackgroundDots&&Se>=(p-U.hideXDots)/2&&Se<(p+U.hideXDots)/2&&Ee>=(p-U.hideYDots)/2&&Ee<(p+U.hideYDots)/2||((be=K[Se])===null||be===void 0?void 0:be[Ee])||((ce=K[Se-p+7])===null||ce===void 0?void 0:ce[Ee])||((Ve=K[Se])===null||Ve===void 0?void 0:Ve[Ee-p+7])||((xe=we[Se])===null||xe===void 0?void 0:xe[Ee])||((We=we[Se-p+7])===null||We===void 0?void 0:We[Ee])||((Qe=we[Se])===null||Qe===void 0?void 0:Qe[Ee-p+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:U.width,height:U.height,count:p,dotSize:R}),[2]}})},new((m=void 0)||(m=Promise))(function(p,k){function R(J){try{H(h.next(J))}catch(X){k(X)}}function U(J){try{H(h.throw(J))}catch(X){k(X)}}function H(J){var X;J.done?p(J.value):(X=J.value,X instanceof m?X:new m(function(oe){oe(X)})).then(R,U)}H((h=h.apply(v,d||[])).next())});var v,d,m,h},M.prototype.drawBackground=function(){var c,v,d=this._element,m=this._options;if(d){var h=(c=m.backgroundOptions)===null||c===void 0?void 0:c.gradient,p=(v=m.backgroundOptions)===null||v===void 0?void 0:v.color;(h||p)&&this._createColor({options:h,color:p,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:"background-color"})}},M.prototype.drawDots=function(c){var v,d,m=this;if(!this._qr)throw"QR code is not defined";var h=this._options,p=this._qr.getModuleCount();if(p>h.width||p>h.height)throw"The canvas is too small.";var k=Math.min(h.width,h.height)-2*h.margin,R=Math.floor(k/p),U=Math.floor((h.width-p*R)/2),H=Math.floor((h.height-p*R)/2),J=new se({svg:this._element,type:h.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(v=h.dotsOptions)===null||v===void 0?void 0:v.gradient,color:h.dotsOptions.color,additionalRotation:0,x:U,y:H,height:p*R,width:p*R,name:"dot-color"});for(var X=function(pe){for(var ve=function(Ee){return c&&!c(pe,Ee)?"continue":!((d=oe._qr)===null||d===void 0)&&d.isDark(pe,Ee)?(J.draw(U+pe*R,H+Ee*R,R,function(be,ce){return!(pe+be<0||Ee+ce<0||pe+be>=p||Ee+ce>=p)&&!(c&&!c(pe+be,Ee+ce))&&!!m._qr&&m._qr.isDark(pe+be,Ee+ce)}),void(J._element&&oe._dotsClipPath&&oe._dotsClipPath.appendChild(J._element))):"continue"},Se=0;Se<p;Se++)ve(Se)},oe=this,fe=0;fe<p;fe++)X(fe)},M.prototype.drawCorners=function(){var c=this;if(!this._qr)throw"QR code is not defined";var v=this._element,d=this._options;if(!v)throw"Element code is not defined";var m=this._qr.getModuleCount(),h=Math.min(d.width,d.height)-2*d.margin,p=Math.floor(h/m),k=7*p,R=3*p,U=Math.floor((d.width-m*p)/2),H=Math.floor((d.height-m*p)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(J){var X,oe,fe,pe,ve,Se,Ee,be,ce,Ve,xe,We,Qe=J[0],mt=J[1],ge=J[2],nt=U+Qe*p*(m-7),Ht=H+mt*p*(m-7),Tt=c._dotsClipPath,kt=c._dotsClipPath;if((((X=d.cornersSquareOptions)===null||X===void 0?void 0:X.gradient)||((oe=d.cornersSquareOptions)===null||oe===void 0?void 0:oe.color))&&((Tt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+Qe+"-"+mt),c._defs.appendChild(Tt),c._cornersSquareClipPath=c._cornersDotClipPath=kt=Tt,c._createColor({options:(fe=d.cornersSquareOptions)===null||fe===void 0?void 0:fe.gradient,color:(pe=d.cornersSquareOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:ge,x:nt,y:Ht,height:k,width:k,name:"corners-square-color-"+Qe+"-"+mt})),(ve=d.cornersSquareOptions)===null||ve===void 0?void 0:ve.type){var At=new F({svg:c._element,type:d.cornersSquareOptions.type});At.draw(nt,Ht,k,ge),At._element&&Tt&&Tt.appendChild(At._element)}else for(var pt=new se({svg:c._element,type:d.dotsOptions.type}),ct=function(Ye){for(var Ut=function(yt){if(!(!((Se=K[Ye])===null||Se===void 0)&&Se[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(_r,Sr){var bt;return!!(!((bt=K[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])}),pt._element&&Tt&&Tt.appendChild(pt._element)},st=0;st<K[Ye].length;st++)Ut(st)},ut=0;ut<K.length;ut++)ct(ut);if((((Ee=d.cornersDotOptions)===null||Ee===void 0?void 0:Ee.gradient)||((be=d.cornersDotOptions)===null||be===void 0?void 0:be.color))&&((kt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+Qe+"-"+mt),c._defs.appendChild(kt),c._cornersDotClipPath=kt,c._createColor({options:(ce=d.cornersDotOptions)===null||ce===void 0?void 0:ce.gradient,color:(Ve=d.cornersDotOptions)===null||Ve===void 0?void 0:Ve.color,additionalRotation:ge,x:nt+2*p,y:Ht+2*p,height:R,width:R,name:"corners-dot-color-"+Qe+"-"+mt})),(xe=d.cornersDotOptions)===null||xe===void 0?void 0:xe.type){var hr=new ne({svg:c._element,type:d.cornersDotOptions.type});hr.draw(nt+2*p,Ht+2*p,R,ge),hr._element&&kt&&kt.appendChild(hr._element)}else{pt=new se({svg:c._element,type:d.dotsOptions.type});var Wr=function(Ye){for(var Ut=function(yt){if(!(!((We=we[Ye])===null||We===void 0)&&We[yt]))return"continue";pt.draw(nt+Ye*p,Ht+yt*p,p,function(_r,Sr){var bt;return!!(!((bt=we[Ye+_r])===null||bt===void 0)&&bt[yt+Sr])}),pt._element&&kt&&kt.appendChild(pt._element)},st=0;st<we[Ye].length;st++)Ut(st)};for(ut=0;ut<we.length;ut++)Wr(ut)}})},M.prototype.loadImage=function(){var c=this;return new Promise(function(v,d){var m=c._options,h=new Image;if(!m.image)return d("Image is not defined");typeof m.imageOptions.crossOrigin=="string"&&(h.crossOrigin=m.imageOptions.crossOrigin),c._image=h,h.onload=function(){v()},h.src=m.image})},M.prototype.drawImage=function(c){var v=c.width,d=c.height,m=c.count,h=c.dotSize,p=this._options,k=Math.floor((p.width-m*h)/2),R=Math.floor((p.height-m*h)/2),U=k+p.imageOptions.margin+(m*h-v)/2,H=R+p.imageOptions.margin+(m*h-d)/2,J=v-2*p.imageOptions.margin,X=d-2*p.imageOptions.margin,oe=document.createElementNS("http://www.w3.org/2000/svg","image");oe.setAttribute("href",p.image||""),oe.setAttribute("x",String(U)),oe.setAttribute("y",String(H)),oe.setAttribute("width",J+"px"),oe.setAttribute("height",X+"px"),this._element.appendChild(oe)},M.prototype._createColor=function(c){var v=c.options,d=c.color,m=c.additionalRotation,h=c.x,p=c.y,k=c.height,R=c.width,U=c.name,H=R>k?R:k,J=document.createElementNS("http://www.w3.org/2000/svg","rect");if(J.setAttribute("x",String(h)),J.setAttribute("y",String(p)),J.setAttribute("height",String(k)),J.setAttribute("width",String(R)),J.setAttribute("clip-path","url('#clip-path-"+U+"')"),v){var X;if(v.type===q)(X=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("fx",String(h+R/2)),X.setAttribute("fy",String(p+k/2)),X.setAttribute("cx",String(h+R/2)),X.setAttribute("cy",String(p+k/2)),X.setAttribute("r",String(H/2));else{var oe=((v.rotation||0)+m)%(2*Math.PI),fe=(oe+2*Math.PI)%(2*Math.PI),pe=h+R/2,ve=p+k/2,Se=h+R/2,Ee=p+k/2;fe>=0&&fe<=.25*Math.PI||fe>1.75*Math.PI&&fe<=2*Math.PI?(pe-=R/2,ve-=k/2*Math.tan(oe),Se+=R/2,Ee+=k/2*Math.tan(oe)):fe>.25*Math.PI&&fe<=.75*Math.PI?(ve-=k/2,pe-=R/2/Math.tan(oe),Ee+=k/2,Se+=R/2/Math.tan(oe)):fe>.75*Math.PI&&fe<=1.25*Math.PI?(pe+=R/2,ve+=k/2*Math.tan(oe),Se-=R/2,Ee-=k/2*Math.tan(oe)):fe>1.25*Math.PI&&fe<=1.75*Math.PI&&(ve+=k/2,pe+=R/2/Math.tan(oe),Ee-=k/2,Se-=R/2/Math.tan(oe)),(X=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",U),X.setAttribute("gradientUnits","userSpaceOnUse"),X.setAttribute("x1",String(Math.round(pe))),X.setAttribute("y1",String(Math.round(ve))),X.setAttribute("x2",String(Math.round(Se))),X.setAttribute("y2",String(Math.round(Ee)))}v.colorStops.forEach(function(be){var ce=be.offset,Ve=be.color,xe=document.createElementNS("http://www.w3.org/2000/svg","stop");xe.setAttribute("offset",100*ce+"%"),xe.setAttribute("stop-color",Ve),X.appendChild(xe)}),J.setAttribute("fill","url('#"+U+"')"),this._defs.appendChild(X)}else d&&J.setAttribute("fill",d);this._element.appendChild(J)},M}(),Oe="canvas";for(var ye={},Be=0;Be<=40;Be++)ye[Be]=Be;const Ie={type:Oe,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ye[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var G=function(){return(G=Object.assign||function(M){for(var c,v=1,d=arguments.length;v<d;v++)for(var m in c=arguments[v])Object.prototype.hasOwnProperty.call(c,m)&&(M[m]=c[m]);return M}).apply(this,arguments)};function ae(M){var c=G({},M);if(!c.colorStops||!c.colorStops.length)throw"Field 'colorStops' is required in gradient";return c.rotation?c.rotation=Number(c.rotation):c.rotation=0,c.colorStops=c.colorStops.map(function(v){return G(G({},v),{offset:Number(v.offset)})}),c}function _(M){var c=G({},M);return c.width=Number(c.width),c.height=Number(c.height),c.margin=Number(c.margin),c.imageOptions=G(G({},c.imageOptions),{hideBackgroundDots:Boolean(c.imageOptions.hideBackgroundDots),imageSize:Number(c.imageOptions.imageSize),margin:Number(c.imageOptions.margin)}),c.margin>Math.min(c.width,c.height)&&(c.margin=Math.min(c.width,c.height)),c.dotsOptions=G({},c.dotsOptions),c.dotsOptions.gradient&&(c.dotsOptions.gradient=ae(c.dotsOptions.gradient)),c.cornersSquareOptions&&(c.cornersSquareOptions=G({},c.cornersSquareOptions),c.cornersSquareOptions.gradient&&(c.cornersSquareOptions.gradient=ae(c.cornersSquareOptions.gradient))),c.cornersDotOptions&&(c.cornersDotOptions=G({},c.cornersDotOptions),c.cornersDotOptions.gradient&&(c.cornersDotOptions.gradient=ae(c.cornersDotOptions.gradient))),c.backgroundOptions&&(c.backgroundOptions=G({},c.backgroundOptions),c.backgroundOptions.gradient&&(c.backgroundOptions.gradient=ae(c.backgroundOptions.gradient))),c}var b=s(192),O=s.n(b),te=function(M,c,v,d){return new(v||(v=Promise))(function(m,h){function p(U){try{R(d.next(U))}catch(H){h(H)}}function k(U){try{R(d.throw(U))}catch(H){h(H)}}function R(U){var H;U.done?m(U.value):(H=U.value,H instanceof v?H:new v(function(J){J(H)})).then(p,k)}R((d=d.apply(M,c||[])).next())})},le=function(M,c){var v,d,m,h,p={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return h={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function k(R){return function(U){return function(H){if(v)throw new TypeError("Generator is already executing.");for(;p;)try{if(v=1,d&&(m=2&H[0]?d.return:H[0]?d.throw||((m=d.return)&&m.call(d),0):d.next)&&!(m=m.call(d,H[1])).done)return m;switch(d=0,m&&(H=[2&H[0],m.value]),H[0]){case 0:case 1:m=H;break;case 4:return p.label++,{value:H[1],done:!1};case 5:p.label++,d=H[1],H=[0];continue;case 7:H=p.ops.pop(),p.trys.pop();continue;default:if(!((m=(m=p.trys).length>0&&m[m.length-1])||H[0]!==6&&H[0]!==2)){p=0;continue}if(H[0]===3&&(!m||H[1]>m[0]&&H[1]<m[3])){p.label=H[1];break}if(H[0]===6&&p.label<m[1]){p.label=m[1],m=H;break}if(m&&p.label<m[2]){p.label=m[2],p.ops.push(H);break}m[2]&&p.ops.pop(),p.trys.pop();continue}H=c.call(M,p)}catch(J){H=[6,J],d=0}finally{v=m=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([R,U])}}};const de=function(){function M(c){this._options=c?_(x(Ie,c)):Ie,this.update()}return M._clearContainer=function(c){c&&(c.innerHTML="")},M.prototype._getQRStylingElement=function(c){return c===void 0&&(c="png"),te(this,void 0,void 0,function(){var v,d,m;return le(this,function(h){switch(h.label){case 0:if(!this._qr)throw"QR code is empty";return c.toLowerCase()!=="svg"?[3,2]:(d=void 0,v=void 0,this._svg&&this._svgDrawingPromise?(v=this._svg,d=this._svgDrawingPromise):(v=new _e(this._options),d=v.drawQR(this._qr)),[4,d]);case 1:return h.sent(),[2,v];case 2:return d=void 0,m=void 0,this._canvas&&this._canvasDrawingPromise?(m=this._canvas,d=this._canvasDrawingPromise):(m=new V(this._options),d=m.drawQR(this._qr)),[4,d];case 3:return h.sent(),[2,m]}})})},M.prototype.update=function(c){M._clearContainer(this._container),this._options=c?_(x(this._options,c)):this._options,this._options.data&&(this._qr=O()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(v){switch(!0){case/^[0-9]*$/.test(v):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(v):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===Oe?(this._canvas=new V(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new _e(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},M.prototype.append=function(c){if(c){if(typeof c.appendChild!="function")throw"Container should be a single DOM node";this._options.type===Oe?this._canvas&&c.appendChild(this._canvas.getCanvas()):this._svg&&c.appendChild(this._svg.getElement()),this._container=c}},M.prototype.getRawData=function(c){return c===void 0&&(c="png"),te(this,void 0,void 0,function(){var v,d,m;return le(this,function(h){switch(h.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(c)];case 1:return v=h.sent(),c.toLowerCase()==="svg"?(d=new XMLSerializer,m=d.serializeToString(v.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
4
4
  `+m],{type:"image/svg+xml"})]):[2,new Promise(function(p){return v.getCanvas().toBlob(p,"image/"+c,1)})]}})})},M.prototype.download=function(c){return te(this,void 0,void 0,function(){var v,d,m,h,p;return le(this,function(k){switch(k.label){case 0:if(!this._qr)throw"QR code is empty";return v="png",d="qr",typeof c=="string"?(v=c,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof c=="object"&&c!==null&&(c.name&&(d=c.name),c.extension&&(v=c.extension)),[4,this._getQRStylingElement(v)];case 1:return m=k.sent(),v.toLowerCase()==="svg"?(h=new XMLSerializer,p=`<?xml version="1.0" standalone="no"?>\r
5
- `+(p=h.serializeToString(m.getElement())),y("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(p),d+".svg")):y(m.getCanvas().toDataURL("image/"+v),d+"."+v),[2]}})})},M}()}},n={};function a(i){if(n[i])return n[i].exports;var o=n[i]={exports:{}};return r[i](o,o.exports,a),o.exports}return a.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return a.d(o,{a:o}),o},a.d=(i,o)=>{for(var s in o)a.o(o,s)&&!a.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},a.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),a(796)})().default})})(Ui);var Bu=zu(Ui.exports);/*!
5
+ `+(p=h.serializeToString(m.getElement())),y("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(p),d+".svg")):y(m.getCanvas().toDataURL("image/"+v),d+"."+v),[2]}})})},M}()}},n={};function a(i){if(n[i])return n[i].exports;var o=n[i]={exports:{}};return r[i](o,o.exports,a),o.exports}return a.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return a.d(o,{a:o}),o},a.d=(i,o)=>{for(var s in o)a.o(o,s)&&!a.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},a.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),a(796)})().default})})(Vi);var Uu=Bu(Vi.exports);/*!
6
6
  * shared v9.2.2
7
7
  * (c) 2022 kazuya kawaguchi
8
8
  * Released under the MIT License.
9
- */const ua=typeof window!="undefined",Uu=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jt=t=>Uu?Symbol(t):t,Vu=(t,e,r)=>qu({l:t,k:e,s:r}),qu=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),at=t=>typeof t=="number"&&isFinite(t),ju=t=>fa(t)==="[object Date]",Xt=t=>fa(t)==="[object RegExp]",bn=t=>Ce(t)&&Object.keys(t).length===0;function Hu(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const lt=Object.assign;let Vi;const Wr=()=>Vi||(Vi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function qi(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const $u=Object.prototype.hasOwnProperty;function da(t,e){return $u.call(t,e)}const $e=Array.isArray,et=t=>typeof t=="function",me=t=>typeof t=="string",Pe=t=>typeof t=="boolean",Ge=t=>t!==null&&typeof t=="object",ji=Object.prototype.toString,fa=t=>ji.call(t),Ce=t=>fa(t)==="[object Object]",Gu=t=>t==null?"":$e(t)||Ce(t)&&t.toString===ji?JSON.stringify(t,null,2):String(t);/*!
9
+ */const da=typeof window!="undefined",Vu=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jt=t=>Vu?Symbol(t):t,ju=(t,e,r)=>qu({l:t,k:e,s:r}),qu=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),at=t=>typeof t=="number"&&isFinite(t),Hu=t=>ha(t)==="[object Date]",Xt=t=>ha(t)==="[object RegExp]",En=t=>Ce(t)&&Object.keys(t).length===0;function $u(t,e){typeof console!="undefined"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const lt=Object.assign;let ji;const Yr=()=>ji||(ji=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function qi(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Gu=Object.prototype.hasOwnProperty;function fa(t,e){return Gu.call(t,e)}const $e=Array.isArray,et=t=>typeof t=="function",me=t=>typeof t=="string",Pe=t=>typeof t=="boolean",Ge=t=>t!==null&&typeof t=="object",Hi=Object.prototype.toString,ha=t=>Hi.call(t),Ce=t=>ha(t)==="[object Object]",Wu=t=>t==null?"":$e(t)||Ce(t)&&t.toString===Hi?JSON.stringify(t,null,2):String(t);/*!
10
10
  * message-compiler v9.2.2
11
11
  * (c) 2022 kazuya kawaguchi
12
12
  * Released under the MIT License.
13
- */const qe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function En(t,e,r={}){const{domain:n,messages:a,args:i}=r,o=t,s=new SyntaxError(String(o));return s.code=t,e&&(s.location=e),s.domain=n,s}function Wu(t){throw t}function Yu(t,e,r){return{line:t,column:e,offset:r}}function ha(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const $t=" ",Zu="\r",gt=`
14
- `,Ku=String.fromCharCode(8232),Ju=String.fromCharCode(8233);function Xu(t){const e=t;let r=0,n=1,a=1,i=0;const o=z=>e[z]===Zu&&e[z+1]===gt,s=z=>e[z]===gt,l=z=>e[z]===Ju,u=z=>e[z]===Ku,f=z=>o(z)||s(z)||l(z)||u(z),w=()=>r,y=()=>n,x=()=>a,S=()=>i,T=z=>o(z)||l(z)||u(z)?gt:e[z],N=()=>T(r),C=()=>T(r+i);function E(){return i=0,f(r)&&(n++,a=0),o(r)&&r++,r++,a++,e[r]}function A(){return o(r+i)&&i++,i++,e[r+i]}function I(){r=0,n=1,a=1,i=0}function D(z=0){i=z}function P(){const z=r+i;for(;z!==r;)E();i=0}return{index:w,line:y,column:x,peekOffset:S,charAt:T,currentChar:N,currentPeek:C,next:E,peek:A,reset:I,resetPeek:D,skipToPeek:P}}const Qt=void 0,Hi="'",Qu="tokenizer";function ed(t,e={}){const r=e.location!==!1,n=Xu(t),a=()=>n.index(),i=()=>Yu(n.line(),n.column(),n.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:f}=e;function w(_,b,O,...te){const le=u();if(b.column+=O,b.offset+=O,f){const de=ha(le.startLoc,b),M=En(_,de,{domain:Qu,args:te});f(M)}}function y(_,b,O){_.endLoc=i(),_.currentType=b;const te={type:b};return r&&(te.loc=ha(_.startLoc,_.endLoc)),O!=null&&(te.value=O),te}const x=_=>y(_,14);function S(_,b){return _.currentChar()===b?(_.next(),b):(w(qe.EXPECTED_TOKEN,i(),0,b),"")}function T(_){let b="";for(;_.currentPeek()===$t||_.currentPeek()===gt;)b+=_.currentPeek(),_.peek();return b}function N(_){const b=T(_);return _.skipToPeek(),b}function C(_){if(_===Qt)return!1;const b=_.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function E(_){if(_===Qt)return!1;const b=_.charCodeAt(0);return b>=48&&b<=57}function A(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=C(_.currentPeek());return _.resetPeek(),te}function I(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=_.currentPeek()==="-"?_.peek():_.currentPeek(),le=E(te);return _.resetPeek(),le}function D(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=_.currentPeek()===Hi;return _.resetPeek(),te}function P(_,b){const{currentType:O}=b;if(O!==8)return!1;T(_);const te=_.currentPeek()===".";return _.resetPeek(),te}function z(_,b){const{currentType:O}=b;if(O!==9)return!1;T(_);const te=C(_.currentPeek());return _.resetPeek(),te}function Y(_,b){const{currentType:O}=b;if(!(O===8||O===12))return!1;T(_);const te=_.currentPeek()===":";return _.resetPeek(),te}function Q(_,b){const{currentType:O}=b;if(O!==10)return!1;const te=()=>{const de=_.currentPeek();return de==="{"?C(_.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===$t||!de?!1:de===gt?(_.peek(),te()):C(de)},le=te();return _.resetPeek(),le}function B(_){T(_);const b=_.currentPeek()==="|";return _.resetPeek(),b}function $(_){const b=T(_),O=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:O,hasSpace:b.length>0}}function re(_,b=!0){const O=(le=!1,de="",M=!1)=>{const c=_.currentPeek();return c==="{"?de==="%"?!1:le:c==="@"||!c?de==="%"?!0:le:c==="%"?(_.peek(),O(le,"%",!0)):c==="|"?de==="%"||M?!0:!(de===$t||de===gt):c===$t?(_.peek(),O(!0,$t,M)):c===gt?(_.peek(),O(!0,gt,M)):!0},te=O();return b&&_.resetPeek(),te}function L(_,b){const O=_.currentChar();return O===Qt?Qt:b(O)?(_.next(),O):null}function j(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36})}function W(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=48&&te<=57})}function q(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102})}function V(_){let b="",O="";for(;b=W(_);)O+=b;return O}function Z(_){N(_);const b=_.currentChar();return b!=="%"&&w(qe.EXPECTED_TOKEN,i(),0,b),_.next(),"%"}function se(_){let b="";for(;;){const O=_.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O==="%")if(re(_))b+=O,_.next();else break;else if(O===$t||O===gt)if(re(_))b+=O,_.next();else{if(B(_))break;b+=O,_.next()}else b+=O,_.next()}return b}function ie(_){N(_);let b="",O="";for(;b=j(_);)O+=b;return _.currentChar()===Qt&&w(qe.UNTERMINATED_CLOSING_BRACE,i(),0),O}function F(_){N(_);let b="";return _.currentChar()==="-"?(_.next(),b+=`-${V(_)}`):b+=V(_),_.currentChar()===Qt&&w(qe.UNTERMINATED_CLOSING_BRACE,i(),0),b}function ee(_){N(_),S(_,"'");let b="",O="";const te=de=>de!==Hi&&de!==gt;for(;b=L(_,te);)b==="\\"?O+=ne(_):O+=b;const le=_.currentChar();return le===gt||le===Qt?(w(qe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),le===gt&&(_.next(),S(_,"'")),O):(S(_,"'"),O)}function ne(_){const b=_.currentChar();switch(b){case"\\":case"'":return _.next(),`\\${b}`;case"u":return K(_,b,4);case"U":return K(_,b,6);default:return w(qe.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function K(_,b,O){S(_,b);let te="";for(let le=0;le<O;le++){const de=q(_);if(!de){w(qe.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${te}${_.currentChar()}`);break}te+=de}return`\\${b}${te}`}function xe(_){N(_);let b="",O="";const te=le=>le!=="{"&&le!=="}"&&le!==$t&&le!==gt;for(;b=L(_,te);)O+=b;return O}function _e(_){let b="",O="";for(;b=j(_);)O+=b;return O}function Oe(_){const b=(O=!1,te)=>{const le=_.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||!le||le===$t?te:le===gt?(te+=le,_.next(),b(O,te)):(te+=le,_.next(),b(!0,te))};return b(!1,"")}function ye(_){N(_);const b=S(_,"|");return N(_),b}function Be(_,b){let O=null;switch(_.currentChar()){case"{":return b.braceNest>=1&&w(qe.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),O=y(b,2,"{"),N(_),b.braceNest++,O;case"}":return b.braceNest>0&&b.currentType===2&&w(qe.EMPTY_PLACEHOLDER,i(),0),_.next(),O=y(b,3,"}"),b.braceNest--,b.braceNest>0&&N(_),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),O;case"@":return b.braceNest>0&&w(qe.UNTERMINATED_CLOSING_BRACE,i(),0),O=Ie(_,b)||x(b),b.braceNest=0,O;default:let le=!0,de=!0,M=!0;if(B(_))return b.braceNest>0&&w(qe.UNTERMINATED_CLOSING_BRACE,i(),0),O=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,O;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return w(qe.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,G(_,b);if(le=A(_,b))return O=y(b,5,ie(_)),N(_),O;if(de=I(_,b))return O=y(b,6,F(_)),N(_),O;if(M=D(_,b))return O=y(b,7,ee(_)),N(_),O;if(!le&&!de&&!M)return O=y(b,13,xe(_)),w(qe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O.value),N(_),O;break}return O}function Ie(_,b){const{currentType:O}=b;let te=null;const le=_.currentChar();switch((O===8||O===9||O===12||O===10)&&(le===gt||le===$t)&&w(qe.INVALID_LINKED_FORMAT,i(),0),le){case"@":return _.next(),te=y(b,8,"@"),b.inLinked=!0,te;case".":return N(_),_.next(),y(b,9,".");case":":return N(_),_.next(),y(b,10,":");default:return B(_)?(te=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,te):P(_,b)||Y(_,b)?(N(_),Ie(_,b)):z(_,b)?(N(_),y(b,12,_e(_))):Q(_,b)?(N(_),le==="{"?Be(_,b)||te:y(b,11,Oe(_))):(O===8&&w(qe.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,G(_,b))}}function G(_,b){let O={type:14};if(b.braceNest>0)return Be(_,b)||x(b);if(b.inLinked)return Ie(_,b)||x(b);switch(_.currentChar()){case"{":return Be(_,b)||x(b);case"}":return w(qe.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),y(b,3,"}");case"@":return Ie(_,b)||x(b);default:if(B(_))return O=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,O;const{isModulo:le,hasSpace:de}=$(_);if(le)return de?y(b,0,se(_)):y(b,4,Z(_));if(re(_))return y(b,0,se(_));break}return O}function ae(){const{currentType:_,offset:b,startLoc:O,endLoc:te}=l;return l.lastType=_,l.lastOffset=b,l.lastStartLoc=O,l.lastEndLoc=te,l.offset=a(),l.startLoc=i(),n.currentChar()===Qt?y(l,14):G(n,l)}return{nextToken:ae,currentOffset:a,currentPosition:i,context:u}}const td="parser",rd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function nd(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"\uFFFD"}}}function ad(t={}){const e=t.location!==!1,{onError:r}=t;function n(C,E,A,I,...D){const P=C.currentPosition();if(P.offset+=I,P.column+=I,r){const z=ha(A,P),Y=En(E,z,{domain:td,args:D});r(Y)}}function a(C,E,A){const I={type:C,start:E,end:E};return e&&(I.loc={start:A,end:A}),I}function i(C,E,A,I){C.end=E,I&&(C.type=I),e&&C.loc&&(C.loc.end=A)}function o(C,E){const A=C.context(),I=a(3,A.offset,A.startLoc);return I.value=E,i(I,C.currentOffset(),C.currentPosition()),I}function s(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(5,I,D);return P.index=parseInt(E,10),C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function l(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(4,I,D);return P.key=E,C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function u(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(9,I,D);return P.value=E.replace(rd,nd),C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function f(C){const E=C.nextToken(),A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(8,I,D);return E.type!==12?(n(C,qe.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),P.value="",i(P,I,D),{nextConsumeToken:E,node:P}):(E.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,Vt(E)),P.value=E.value||"",i(P,C.currentOffset(),C.currentPosition()),{node:P})}function w(C,E){const A=C.context(),I=a(7,A.offset,A.startLoc);return I.value=E,i(I,C.currentOffset(),C.currentPosition()),I}function y(C){const E=C.context(),A=a(6,E.offset,E.startLoc);let I=C.nextToken();if(I.type===9){const D=f(C);A.modifier=D.node,I=D.nextConsumeToken||C.nextToken()}switch(I.type!==10&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),I=C.nextToken(),I.type===2&&(I=C.nextToken()),I.type){case 11:I.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=w(C,I.value||"");break;case 5:I.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=l(C,I.value||"");break;case 6:I.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=s(C,I.value||"");break;case 7:I.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=u(C,I.value||"");break;default:n(C,qe.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const D=C.context(),P=a(7,D.offset,D.startLoc);return P.value="",i(P,D.offset,D.startLoc),A.key=P,i(A,D.offset,D.startLoc),{nextConsumeToken:I,node:A}}return i(A,C.currentOffset(),C.currentPosition()),{node:A}}function x(C){const E=C.context(),A=E.currentType===1?C.currentOffset():E.offset,I=E.currentType===1?E.endLoc:E.startLoc,D=a(2,A,I);D.items=[];let P=null;do{const Q=P||C.nextToken();switch(P=null,Q.type){case 0:Q.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(o(C,Q.value||""));break;case 6:Q.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(s(C,Q.value||""));break;case 5:Q.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(l(C,Q.value||""));break;case 7:Q.value==null&&n(C,qe.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(u(C,Q.value||""));break;case 8:const B=y(C);D.items.push(B.node),P=B.nextConsumeToken||null;break}}while(E.currentType!==14&&E.currentType!==1);const z=E.currentType===1?E.lastOffset:C.currentOffset(),Y=E.currentType===1?E.lastEndLoc:C.currentPosition();return i(D,z,Y),D}function S(C,E,A,I){const D=C.context();let P=I.items.length===0;const z=a(1,E,A);z.cases=[],z.cases.push(I);do{const Y=x(C);P||(P=Y.items.length===0),z.cases.push(Y)}while(D.currentType!==14);return P&&n(C,qe.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(z,C.currentOffset(),C.currentPosition()),z}function T(C){const E=C.context(),{offset:A,startLoc:I}=E,D=x(C);return E.currentType===14?D:S(C,A,I,D)}function N(C){const E=ed(C,lt({},t)),A=E.context(),I=a(0,A.offset,A.startLoc);return e&&I.loc&&(I.loc.source=C),I.body=T(E),A.currentType!==14&&n(E,qe.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,C[A.offset]||""),i(I,E.currentOffset(),E.currentPosition()),I}return{parse:N}}function Vt(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function id(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function $i(t,e){for(let r=0;r<t.length;r++)ma(t[r],e)}function ma(t,e){switch(t.type){case 1:$i(t.cases,e),e.helper("plural");break;case 2:$i(t.items,e);break;case 6:ma(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function od(t,e={}){const r=id(t);r.helper("normalize"),t.body&&ma(t.body,r);const n=r.context();t.helpers=Array.from(n.helpers)}function sd(t,e){const{sourceMap:r,filename:n,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},s=()=>o;function l(T,N){o.code+=T}function u(T,N=!0){const C=N?a:"";l(i?C+" ".repeat(T):C)}function f(T=!0){const N=++o.indentLevel;T&&u(N)}function w(T=!0){const N=--o.indentLevel;T&&u(N)}function y(){u(o.indentLevel)}return{context:s,push:l,indent:f,deindent:w,newline:y,helper:T=>`_${T}`,needIndent:()=>o.needIndent}}function ld(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Sr(t,e.key),e.modifier?(t.push(", "),Sr(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function cd(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const a=e.items.length;for(let i=0;i<a&&(Sr(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function ud(t,e){const{helper:r,needIndent:n}=t;if(e.cases.length>1){t.push(`${r("plural")}([`),t.indent(n());const a=e.cases.length;for(let i=0;i<a&&(Sr(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function dd(t,e){e.body?Sr(t,e.body):t.push("null")}function Sr(t,e){const{helper:r}=t;switch(e.type){case 0:dd(t,e);break;case 1:ud(t,e);break;case 2:cd(t,e);break;case 6:ld(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${r("interpolate")}(${r("list")}(${e.index}))`,e);break;case 4:t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const fd=(t,e={})=>{const r=me(e.mode)?e.mode:"normal",n=me(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":`
15
- `,o=e.needIndent?e.needIndent:r!=="arrow",s=t.helpers||[],l=sd(t,{mode:r,filename:n,sourceMap:a,breakLineCode:i,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(w=>`${w}: _${w}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Sr(l,t),l.deindent(o),l.push("}");const{code:u,map:f}=l.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function hd(t,e={}){const r=lt({},e),a=ad(r).parse(t);return od(a,r),fd(a,r)}/*!
13
+ */const je={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function xn(t,e,r={}){const{domain:n,messages:a,args:i}=r,o=t,s=new SyntaxError(String(o));return s.code=t,e&&(s.location=e),s.domain=n,s}function Yu(t){throw t}function Zu(t,e,r){return{line:t,column:e,offset:r}}function ma(t,e,r){const n={start:t,end:e};return r!=null&&(n.source=r),n}const $t=" ",Ku="\r",gt=`
14
+ `,Ju=String.fromCharCode(8232),Xu=String.fromCharCode(8233);function Qu(t){const e=t;let r=0,n=1,a=1,i=0;const o=z=>e[z]===Ku&&e[z+1]===gt,s=z=>e[z]===gt,l=z=>e[z]===Xu,u=z=>e[z]===Ju,f=z=>o(z)||s(z)||l(z)||u(z),x=()=>r,y=()=>n,w=()=>a,S=()=>i,T=z=>o(z)||l(z)||u(z)?gt:e[z],N=()=>T(r),C=()=>T(r+i);function E(){return i=0,f(r)&&(n++,a=0),o(r)&&r++,r++,a++,e[r]}function A(){return o(r+i)&&i++,i++,e[r+i]}function I(){r=0,n=1,a=1,i=0}function D(z=0){i=z}function P(){const z=r+i;for(;z!==r;)E();i=0}return{index:x,line:y,column:w,peekOffset:S,charAt:T,currentChar:N,currentPeek:C,next:E,peek:A,reset:I,resetPeek:D,skipToPeek:P}}const Qt=void 0,$i="'",ed="tokenizer";function td(t,e={}){const r=e.location!==!1,n=Qu(t),a=()=>n.index(),i=()=>Zu(n.line(),n.column(),n.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:f}=e;function x(_,b,O,...te){const le=u();if(b.column+=O,b.offset+=O,f){const de=ma(le.startLoc,b),M=xn(_,de,{domain:ed,args:te});f(M)}}function y(_,b,O){_.endLoc=i(),_.currentType=b;const te={type:b};return r&&(te.loc=ma(_.startLoc,_.endLoc)),O!=null&&(te.value=O),te}const w=_=>y(_,14);function S(_,b){return _.currentChar()===b?(_.next(),b):(x(je.EXPECTED_TOKEN,i(),0,b),"")}function T(_){let b="";for(;_.currentPeek()===$t||_.currentPeek()===gt;)b+=_.currentPeek(),_.peek();return b}function N(_){const b=T(_);return _.skipToPeek(),b}function C(_){if(_===Qt)return!1;const b=_.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b===95}function E(_){if(_===Qt)return!1;const b=_.charCodeAt(0);return b>=48&&b<=57}function A(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=C(_.currentPeek());return _.resetPeek(),te}function I(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=_.currentPeek()==="-"?_.peek():_.currentPeek(),le=E(te);return _.resetPeek(),le}function D(_,b){const{currentType:O}=b;if(O!==2)return!1;T(_);const te=_.currentPeek()===$i;return _.resetPeek(),te}function P(_,b){const{currentType:O}=b;if(O!==8)return!1;T(_);const te=_.currentPeek()===".";return _.resetPeek(),te}function z(_,b){const{currentType:O}=b;if(O!==9)return!1;T(_);const te=C(_.currentPeek());return _.resetPeek(),te}function Y(_,b){const{currentType:O}=b;if(!(O===8||O===12))return!1;T(_);const te=_.currentPeek()===":";return _.resetPeek(),te}function Q(_,b){const{currentType:O}=b;if(O!==10)return!1;const te=()=>{const de=_.currentPeek();return de==="{"?C(_.peek()):de==="@"||de==="%"||de==="|"||de===":"||de==="."||de===$t||!de?!1:de===gt?(_.peek(),te()):C(de)},le=te();return _.resetPeek(),le}function B(_){T(_);const b=_.currentPeek()==="|";return _.resetPeek(),b}function $(_){const b=T(_),O=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:O,hasSpace:b.length>0}}function re(_,b=!0){const O=(le=!1,de="",M=!1)=>{const c=_.currentPeek();return c==="{"?de==="%"?!1:le:c==="@"||!c?de==="%"?!0:le:c==="%"?(_.peek(),O(le,"%",!0)):c==="|"?de==="%"||M?!0:!(de===$t||de===gt):c===$t?(_.peek(),O(!0,$t,M)):c===gt?(_.peek(),O(!0,gt,M)):!0},te=O();return b&&_.resetPeek(),te}function L(_,b){const O=_.currentChar();return O===Qt?Qt:b(O)?(_.next(),O):null}function q(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36})}function W(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=48&&te<=57})}function j(_){return L(_,O=>{const te=O.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102})}function V(_){let b="",O="";for(;b=W(_);)O+=b;return O}function Z(_){N(_);const b=_.currentChar();return b!=="%"&&x(je.EXPECTED_TOKEN,i(),0,b),_.next(),"%"}function se(_){let b="";for(;;){const O=_.currentChar();if(O==="{"||O==="}"||O==="@"||O==="|"||!O)break;if(O==="%")if(re(_))b+=O,_.next();else break;else if(O===$t||O===gt)if(re(_))b+=O,_.next();else{if(B(_))break;b+=O,_.next()}else b+=O,_.next()}return b}function ie(_){N(_);let b="",O="";for(;b=q(_);)O+=b;return _.currentChar()===Qt&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),O}function F(_){N(_);let b="";return _.currentChar()==="-"?(_.next(),b+=`-${V(_)}`):b+=V(_),_.currentChar()===Qt&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),b}function ee(_){N(_),S(_,"'");let b="",O="";const te=de=>de!==$i&&de!==gt;for(;b=L(_,te);)b==="\\"?O+=ne(_):O+=b;const le=_.currentChar();return le===gt||le===Qt?(x(je.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),le===gt&&(_.next(),S(_,"'")),O):(S(_,"'"),O)}function ne(_){const b=_.currentChar();switch(b){case"\\":case"'":return _.next(),`\\${b}`;case"u":return K(_,b,4);case"U":return K(_,b,6);default:return x(je.UNKNOWN_ESCAPE_SEQUENCE,i(),0,b),""}}function K(_,b,O){S(_,b);let te="";for(let le=0;le<O;le++){const de=j(_);if(!de){x(je.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${b}${te}${_.currentChar()}`);break}te+=de}return`\\${b}${te}`}function we(_){N(_);let b="",O="";const te=le=>le!=="{"&&le!=="}"&&le!==$t&&le!==gt;for(;b=L(_,te);)O+=b;return O}function _e(_){let b="",O="";for(;b=q(_);)O+=b;return O}function Oe(_){const b=(O=!1,te)=>{const le=_.currentChar();return le==="{"||le==="%"||le==="@"||le==="|"||!le||le===$t?te:le===gt?(te+=le,_.next(),b(O,te)):(te+=le,_.next(),b(!0,te))};return b(!1,"")}function ye(_){N(_);const b=S(_,"|");return N(_),b}function Be(_,b){let O=null;switch(_.currentChar()){case"{":return b.braceNest>=1&&x(je.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),_.next(),O=y(b,2,"{"),N(_),b.braceNest++,O;case"}":return b.braceNest>0&&b.currentType===2&&x(je.EMPTY_PLACEHOLDER,i(),0),_.next(),O=y(b,3,"}"),b.braceNest--,b.braceNest>0&&N(_),b.inLinked&&b.braceNest===0&&(b.inLinked=!1),O;case"@":return b.braceNest>0&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),O=Ie(_,b)||w(b),b.braceNest=0,O;default:let le=!0,de=!0,M=!0;if(B(_))return b.braceNest>0&&x(je.UNTERMINATED_CLOSING_BRACE,i(),0),O=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,O;if(b.braceNest>0&&(b.currentType===5||b.currentType===6||b.currentType===7))return x(je.UNTERMINATED_CLOSING_BRACE,i(),0),b.braceNest=0,G(_,b);if(le=A(_,b))return O=y(b,5,ie(_)),N(_),O;if(de=I(_,b))return O=y(b,6,F(_)),N(_),O;if(M=D(_,b))return O=y(b,7,ee(_)),N(_),O;if(!le&&!de&&!M)return O=y(b,13,we(_)),x(je.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,O.value),N(_),O;break}return O}function Ie(_,b){const{currentType:O}=b;let te=null;const le=_.currentChar();switch((O===8||O===9||O===12||O===10)&&(le===gt||le===$t)&&x(je.INVALID_LINKED_FORMAT,i(),0),le){case"@":return _.next(),te=y(b,8,"@"),b.inLinked=!0,te;case".":return N(_),_.next(),y(b,9,".");case":":return N(_),_.next(),y(b,10,":");default:return B(_)?(te=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,te):P(_,b)||Y(_,b)?(N(_),Ie(_,b)):z(_,b)?(N(_),y(b,12,_e(_))):Q(_,b)?(N(_),le==="{"?Be(_,b)||te:y(b,11,Oe(_))):(O===8&&x(je.INVALID_LINKED_FORMAT,i(),0),b.braceNest=0,b.inLinked=!1,G(_,b))}}function G(_,b){let O={type:14};if(b.braceNest>0)return Be(_,b)||w(b);if(b.inLinked)return Ie(_,b)||w(b);switch(_.currentChar()){case"{":return Be(_,b)||w(b);case"}":return x(je.UNBALANCED_CLOSING_BRACE,i(),0),_.next(),y(b,3,"}");case"@":return Ie(_,b)||w(b);default:if(B(_))return O=y(b,1,ye(_)),b.braceNest=0,b.inLinked=!1,O;const{isModulo:le,hasSpace:de}=$(_);if(le)return de?y(b,0,se(_)):y(b,4,Z(_));if(re(_))return y(b,0,se(_));break}return O}function ae(){const{currentType:_,offset:b,startLoc:O,endLoc:te}=l;return l.lastType=_,l.lastOffset=b,l.lastStartLoc=O,l.lastEndLoc=te,l.offset=a(),l.startLoc=i(),n.currentChar()===Qt?y(l,14):G(n,l)}return{nextToken:ae,currentOffset:a,currentPosition:i,context:u}}const rd="parser",nd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ad(t,e,r){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(e||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"\uFFFD"}}}function id(t={}){const e=t.location!==!1,{onError:r}=t;function n(C,E,A,I,...D){const P=C.currentPosition();if(P.offset+=I,P.column+=I,r){const z=ma(A,P),Y=xn(E,z,{domain:rd,args:D});r(Y)}}function a(C,E,A){const I={type:C,start:E,end:E};return e&&(I.loc={start:A,end:A}),I}function i(C,E,A,I){C.end=E,I&&(C.type=I),e&&C.loc&&(C.loc.end=A)}function o(C,E){const A=C.context(),I=a(3,A.offset,A.startLoc);return I.value=E,i(I,C.currentOffset(),C.currentPosition()),I}function s(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(5,I,D);return P.index=parseInt(E,10),C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function l(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(4,I,D);return P.key=E,C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function u(C,E){const A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(9,I,D);return P.value=E.replace(nd,ad),C.nextToken(),i(P,C.currentOffset(),C.currentPosition()),P}function f(C){const E=C.nextToken(),A=C.context(),{lastOffset:I,lastStartLoc:D}=A,P=a(8,I,D);return E.type!==12?(n(C,je.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),P.value="",i(P,I,D),{nextConsumeToken:E,node:P}):(E.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,Vt(E)),P.value=E.value||"",i(P,C.currentOffset(),C.currentPosition()),{node:P})}function x(C,E){const A=C.context(),I=a(7,A.offset,A.startLoc);return I.value=E,i(I,C.currentOffset(),C.currentPosition()),I}function y(C){const E=C.context(),A=a(6,E.offset,E.startLoc);let I=C.nextToken();if(I.type===9){const D=f(C);A.modifier=D.node,I=D.nextConsumeToken||C.nextToken()}switch(I.type!==10&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),I=C.nextToken(),I.type===2&&(I=C.nextToken()),I.type){case 11:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=x(C,I.value||"");break;case 5:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=l(C,I.value||"");break;case 6:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=s(C,I.value||"");break;case 7:I.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(I)),A.key=u(C,I.value||"");break;default:n(C,je.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const D=C.context(),P=a(7,D.offset,D.startLoc);return P.value="",i(P,D.offset,D.startLoc),A.key=P,i(A,D.offset,D.startLoc),{nextConsumeToken:I,node:A}}return i(A,C.currentOffset(),C.currentPosition()),{node:A}}function w(C){const E=C.context(),A=E.currentType===1?C.currentOffset():E.offset,I=E.currentType===1?E.endLoc:E.startLoc,D=a(2,A,I);D.items=[];let P=null;do{const Q=P||C.nextToken();switch(P=null,Q.type){case 0:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(o(C,Q.value||""));break;case 6:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(s(C,Q.value||""));break;case 5:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(l(C,Q.value||""));break;case 7:Q.value==null&&n(C,je.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Vt(Q)),D.items.push(u(C,Q.value||""));break;case 8:const B=y(C);D.items.push(B.node),P=B.nextConsumeToken||null;break}}while(E.currentType!==14&&E.currentType!==1);const z=E.currentType===1?E.lastOffset:C.currentOffset(),Y=E.currentType===1?E.lastEndLoc:C.currentPosition();return i(D,z,Y),D}function S(C,E,A,I){const D=C.context();let P=I.items.length===0;const z=a(1,E,A);z.cases=[],z.cases.push(I);do{const Y=w(C);P||(P=Y.items.length===0),z.cases.push(Y)}while(D.currentType!==14);return P&&n(C,je.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(z,C.currentOffset(),C.currentPosition()),z}function T(C){const E=C.context(),{offset:A,startLoc:I}=E,D=w(C);return E.currentType===14?D:S(C,A,I,D)}function N(C){const E=td(C,lt({},t)),A=E.context(),I=a(0,A.offset,A.startLoc);return e&&I.loc&&(I.loc.source=C),I.body=T(E),A.currentType!==14&&n(E,je.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,C[A.offset]||""),i(I,E.currentOffset(),E.currentPosition()),I}return{parse:N}}function Vt(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"\u2026":e}function od(t,e={}){const r={ast:t,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function Gi(t,e){for(let r=0;r<t.length;r++)pa(t[r],e)}function pa(t,e){switch(t.type){case 1:Gi(t.cases,e),e.helper("plural");break;case 2:Gi(t.items,e);break;case 6:pa(t.key,e),e.helper("linked"),e.helper("type");break;case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function sd(t,e={}){const r=od(t);r.helper("normalize"),t.body&&pa(t.body,r);const n=r.context();t.helpers=Array.from(n.helpers)}function ld(t,e){const{sourceMap:r,filename:n,breakLineCode:a,needIndent:i}=e,o={source:t.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},s=()=>o;function l(T,N){o.code+=T}function u(T,N=!0){const C=N?a:"";l(i?C+" ".repeat(T):C)}function f(T=!0){const N=++o.indentLevel;T&&u(N)}function x(T=!0){const N=--o.indentLevel;T&&u(N)}function y(){u(o.indentLevel)}return{context:s,push:l,indent:f,deindent:x,newline:y,helper:T=>`_${T}`,needIndent:()=>o.needIndent}}function cd(t,e){const{helper:r}=t;t.push(`${r("linked")}(`),Ir(t,e.key),e.modifier?(t.push(", "),Ir(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function ud(t,e){const{helper:r,needIndent:n}=t;t.push(`${r("normalize")}([`),t.indent(n());const a=e.items.length;for(let i=0;i<a&&(Ir(t,e.items[i]),i!==a-1);i++)t.push(", ");t.deindent(n()),t.push("])")}function dd(t,e){const{helper:r,needIndent:n}=t;if(e.cases.length>1){t.push(`${r("plural")}([`),t.indent(n());const a=e.cases.length;for(let i=0;i<a&&(Ir(t,e.cases[i]),i!==a-1);i++)t.push(", ");t.deindent(n()),t.push("])")}}function fd(t,e){e.body?Ir(t,e.body):t.push("null")}function Ir(t,e){const{helper:r}=t;switch(e.type){case 0:fd(t,e);break;case 1:dd(t,e);break;case 2:ud(t,e);break;case 6:cd(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${r("interpolate")}(${r("list")}(${e.index}))`,e);break;case 4:t.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const hd=(t,e={})=>{const r=me(e.mode)?e.mode:"normal",n=me(e.filename)?e.filename:"message.intl",a=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:r==="arrow"?";":`
15
+ `,o=e.needIndent?e.needIndent:r!=="arrow",s=t.helpers||[],l=ld(t,{mode:r,filename:n,sourceMap:a,breakLineCode:i,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${s.map(x=>`${x}: _${x}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ir(l,t),l.deindent(o),l.push("}");const{code:u,map:f}=l.context();return{ast:t,code:u,map:f?f.toJSON():void 0}};function md(t,e={}){const r=lt({},e),a=id(r).parse(t);return sd(a,r),hd(a,r)}/*!
16
16
  * devtools-if v9.2.2
17
17
  * (c) 2022 kazuya kawaguchi
18
18
  * Released under the MIT License.
19
- */const Gi={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
19
+ */const Wi={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
20
20
  * core-base v9.2.2
21
21
  * (c) 2022 kazuya kawaguchi
22
22
  * Released under the MIT License.
23
- */const er=[];er[0]={w:[0],i:[3,0],["["]:[4],o:[7]},er[1]={w:[1],["."]:[2],["["]:[4],o:[7]},er[2]={w:[2],i:[3,0],[0]:[3,0]},er[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},er[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},er[5]={["'"]:[4,0],o:8,l:[5,0]},er[6]={['"']:[4,0],o:8,l:[6,0]};const md=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pd(t){return md.test(t)}function gd(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function vd(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function yd(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:pd(e)?gd(e):"*"+e}function bd(t){const e=[];let r=-1,n=0,a=0,i,o,s,l,u,f,w;const y=[];y[0]=()=>{o===void 0?o=s:o+=s},y[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,n=4,y[0]();else{if(a=0,o===void 0||(o=yd(o),o===!1))return!1;y[1]()}};function x(){const S=t[r+1];if(n===5&&S==="'"||n===6&&S==='"')return r++,s="\\"+S,y[0](),!0}for(;n!==null;)if(r++,i=t[r],!(i==="\\"&&x())){if(l=vd(i),w=er[n],u=w[l]||w.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(s=i,f()===!1))))return;if(n===7)return e}}const Wi=new Map;function Ed(t,e){return Ge(t)?t[e]:null}function wd(t,e){if(!Ge(t))return null;let r=Wi.get(e);if(r||(r=bd(e),r&&Wi.set(e,r)),!r)return null;const n=r.length;let a=t,i=0;for(;i<n;){const o=a[r[i]];if(o===void 0)return null;a=o,i++}return a}const xd=t=>t,_d=t=>"",Sd="text",Id=t=>t.length===0?"":t.join(""),Cd=Gu;function Yi(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function Td(t){const e=at(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(at(t.named.count)||at(t.named.n))?at(t.named.count)?t.named.count:at(t.named.n)?t.named.n:e:e}function kd(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Ad(t={}){const e=t.locale,r=Td(t),n=Ge(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?t.pluralRules[e]:Yi,a=Ge(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?Yi:void 0,i=C=>C[n(r,C.length,a)],o=t.list||[],s=C=>o[C],l=t.named||{};at(t.pluralIndex)&&kd(r,l);const u=C=>l[C];function f(C){const E=et(t.messages)?t.messages(C):Ge(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):_d)}const w=C=>t.modifiers?t.modifiers[C]:xd,y=Ce(t.processor)&&et(t.processor.normalize)?t.processor.normalize:Id,x=Ce(t.processor)&&et(t.processor.interpolate)?t.processor.interpolate:Cd,S=Ce(t.processor)&&me(t.processor.type)?t.processor.type:Sd,N={list:s,named:u,plural:i,linked:(C,...E)=>{const[A,I]=E;let D="text",P="";E.length===1?Ge(A)?(P=A.modifier||P,D=A.type||D):me(A)&&(P=A||P):E.length===2&&(me(A)&&(P=A||P),me(I)&&(D=I||D));let z=f(C)(N);return D==="vnode"&&$e(z)&&P&&(z=z[0]),P?w(P)(z,D):z},message:f,type:S,interpolate:x,normalize:y};return N}let Yr=null;function Dd(t){Yr=t}function Nd(t,e,r){Yr&&Yr.emit(Gi.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:r})}const Od=Rd(Gi.FunctionTranslate);function Rd(t){return e=>Yr&&Yr.emit(t,e)}const Ld={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function Md(t,e,r){return[...new Set([r,...$e(e)?e:Ge(e)?Object.keys(e):me(e)?[e]:[r]])]}function Zi(t,e,r){const n=me(r)?r:Zr,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(n);if(!i){i=[];let o=[r];for(;$e(o);)o=Ki(i,o,e);const s=$e(e)||!Ce(e)?e:e.default?e.default:null;o=me(s)?[s]:s,$e(o)&&Ki(i,o,!1),a.__localeChainCache.set(n,i)}return i}function Ki(t,e,r){let n=!0;for(let a=0;a<e.length&&Pe(n);a++){const i=e[a];me(i)&&(n=Pd(t,e[a],r))}return n}function Pd(t,e,r){let n;const a=e.split("-");do{const i=a.join("-");n=Fd(t,i,r),a.splice(-1,1)}while(a.length&&n===!0);return n}function Fd(t,e,r){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),($e(r)||Ce(r))&&r[a]&&(n=r[a])}return n}const zd="9.2.2",wn=-1,Zr="en-US",Ji="",Xi=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Bd(){return{upper:(t,e)=>e==="text"&&me(t)?t.toUpperCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&me(t)?t.toLowerCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&me(t)?Xi(t):e==="vnode"&&Ge(t)&&"__v_isVNode"in t?Xi(t.children):t}}let Qi;function Ud(t){Qi=t}let eo;function Vd(t){eo=t}let to;function qd(t){to=t}let ro=null;const no=t=>{ro=t},jd=()=>ro;let ao=null;const io=t=>{ao=t},Hd=()=>ao;let oo=0;function $d(t={}){const e=me(t.version)?t.version:zd,r=me(t.locale)?t.locale:Zr,n=$e(t.fallbackLocale)||Ce(t.fallbackLocale)||me(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,a=Ce(t.messages)?t.messages:{[r]:{}},i=Ce(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},o=Ce(t.numberFormats)?t.numberFormats:{[r]:{}},s=lt({},t.modifiers||{},Bd()),l=t.pluralRules||{},u=et(t.missing)?t.missing:null,f=Pe(t.missingWarn)||Xt(t.missingWarn)?t.missingWarn:!0,w=Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,x=!!t.unresolving,S=et(t.postTranslation)?t.postTranslation:null,T=Ce(t.processor)?t.processor:null,N=Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter,E=et(t.messageCompiler)?t.messageCompiler:Qi,A=et(t.messageResolver)?t.messageResolver:eo||Ed,I=et(t.localeFallbacker)?t.localeFallbacker:to||Md,D=Ge(t.fallbackContext)?t.fallbackContext:void 0,P=et(t.onWarn)?t.onWarn:Hu,z=t,Y=Ge(z.__datetimeFormatters)?z.__datetimeFormatters:new Map,Q=Ge(z.__numberFormatters)?z.__numberFormatters:new Map,B=Ge(z.__meta)?z.__meta:{};oo++;const $={version:e,cid:oo,locale:r,fallbackLocale:n,messages:a,modifiers:s,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:w,fallbackFormat:y,unresolving:x,postTranslation:S,processor:T,warnHtmlMessage:N,escapeParameter:C,messageCompiler:E,messageResolver:A,localeFallbacker:I,fallbackContext:D,onWarn:P,__meta:B};return $.datetimeFormats=i,$.numberFormats=o,$.__datetimeFormatters=Y,$.__numberFormatters=Q,__INTLIFY_PROD_DEVTOOLS__&&Nd($,e,B),$}function pa(t,e,r,n,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,r,e,a);return me(s)?s:e}else return e}function Kr(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}const Gd=t=>t;let so=Object.create(null);function Wd(t,e={}){{const n=(e.onCacheKey||Gd)(t),a=so[n];if(a)return a;let i=!1;const o=e.onError||Wu;e.onError=u=>{i=!0,o(u)};const{code:s}=hd(t,e),l=new Function(`return ${s}`)();return i?l:so[n]=l}}let lo=qe.__EXTEND_POINT__;const ga=()=>++lo,Ir={INVALID_ARGUMENT:lo,INVALID_DATE_ARGUMENT:ga(),INVALID_ISO_DATE_ARGUMENT:ga(),__EXTEND_POINT__:ga()};function Cr(t){return En(t,null,void 0)}const co=()=>"",qt=t=>et(t);function uo(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[l,u]=va(...e),f=Pe(u.missingWarn)?u.missingWarn:t.missingWarn,w=Pe(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=Pe(u.escapeParameter)?u.escapeParameter:t.escapeParameter,x=!!u.resolvedMessage,S=me(u.default)||Pe(u.default)?Pe(u.default)?i?l:()=>l:u.default:r?i?l:()=>l:"",T=r||S!=="",N=me(u.locale)?u.locale:t.locale;y&&Yd(u);let[C,E,A]=x?[l,N,s[N]||{}]:fo(t,l,N,o,w,f),I=C,D=l;if(!x&&!(me(I)||qt(I))&&T&&(I=S,D=I),!x&&(!(me(I)||qt(I))||!me(E)))return a?wn:l;let P=!1;const z=()=>{P=!0},Y=qt(I)?I:ho(t,l,E,I,D,z);if(P)return I;const Q=Jd(t,E,A,u),B=Ad(Q),$=Zd(t,Y,B),re=n?n($,l):$;if(__INTLIFY_PROD_DEVTOOLS__){const L={timestamp:Date.now(),key:me(l)?l:qt(I)?I.key:"",locale:E||(qt(I)?I.locale:""),format:me(I)?I:qt(I)?I.source:"",message:re};L.meta=lt({},t.__meta,jd()||{}),Od(L)}return re}function Yd(t){$e(t.list)?t.list=t.list.map(e=>me(e)?qi(e):e):Ge(t.named)&&Object.keys(t.named).forEach(e=>{me(t.named[e])&&(t.named[e]=qi(t.named[e]))})}function fo(t,e,r,n,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=t,f=u(t,n,r);let w={},y,x=null;const S="translate";for(let T=0;T<f.length&&(y=f[T],w=o[y]||{},(x=l(w,e))===null&&(x=w[e]),!(me(x)||et(x)));T++){const N=pa(t,e,y,i,S);N!==e&&(x=N)}return[x,y,w]}function ho(t,e,r,n,a,i){const{messageCompiler:o,warnHtmlMessage:s}=t;if(qt(n)){const u=n;return u.locale=u.locale||r,u.key=u.key||e,u}if(o==null){const u=()=>n;return u.locale=r,u.key=e,u}const l=o(n,Kd(t,r,a,n,s,i));return l.locale=r,l.key=e,l.source=n,l}function Zd(t,e,r){return e(r)}function va(...t){const[e,r,n]=t,a={};if(!me(e)&&!at(e)&&!qt(e))throw Cr(Ir.INVALID_ARGUMENT);const i=at(e)?String(e):(qt(e),e);return at(r)?a.plural=r:me(r)?a.default=r:Ce(r)&&!bn(r)?a.named=r:$e(r)&&(a.list=r),at(n)?a.plural=n:me(n)?a.default=n:Ce(n)&&lt(a,n),[i,a]}function Kd(t,e,r,n,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>Vu(e,r,o)}}function Jd(t,e,r,n){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:a,pluralRules:i,messages:x=>{let S=o(r,x);if(S==null&&f){const[,,T]=fo(f,x,e,s,l,u);S=o(T,x)}if(me(S)){let T=!1;const C=ho(t,x,e,S,x,()=>{T=!0});return T?co:C}else return qt(S)?S:co}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),at(n.plural)&&(y.pluralIndex=n.plural),y}function mo(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[l,u,f,w]=ya(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.DateTimeFormat(S,w).format(u);let N={},C,E=null;const A="datetime format";for(let P=0;P<T.length&&(C=T[P],N=r[C]||{},E=N[l],!Ce(E));P++)pa(t,l,C,y,A);if(!Ce(E)||!me(C))return n?wn:l;let I=`${C}__${l}`;bn(w)||(I=`${I}__${JSON.stringify(w)}`);let D=s.get(I);return D||(D=new Intl.DateTimeFormat(C,lt({},E,w)),s.set(I,D)),x?D.formatToParts(u):D.format(u)}const po=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ya(...t){const[e,r,n,a]=t,i={};let o={},s;if(me(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Cr(Ir.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Cr(Ir.INVALID_ISO_DATE_ARGUMENT)}}else if(ju(e)){if(isNaN(e.getTime()))throw Cr(Ir.INVALID_DATE_ARGUMENT);s=e}else if(at(e))s=e;else throw Cr(Ir.INVALID_ARGUMENT);return me(r)?i.key=r:Ce(r)&&Object.keys(r).forEach(l=>{po.includes(l)?o[l]=r[l]:i[l]=r[l]}),me(n)?i.locale=n:Ce(n)&&(o=n),Ce(a)&&(o=a),[i.key||"",s,i,o]}function go(t,e,r){const n=t;for(const a in r){const i=`${e}__${a}`;!n.__datetimeFormatters.has(i)||n.__datetimeFormatters.delete(i)}}function vo(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[l,u,f,w]=ba(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const x=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.NumberFormat(S,w).format(u);let N={},C,E=null;const A="number format";for(let P=0;P<T.length&&(C=T[P],N=r[C]||{},E=N[l],!Ce(E));P++)pa(t,l,C,y,A);if(!Ce(E)||!me(C))return n?wn:l;let I=`${C}__${l}`;bn(w)||(I=`${I}__${JSON.stringify(w)}`);let D=s.get(I);return D||(D=new Intl.NumberFormat(C,lt({},E,w)),s.set(I,D)),x?D.formatToParts(u):D.format(u)}const yo=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ba(...t){const[e,r,n,a]=t,i={};let o={};if(!at(e))throw Cr(Ir.INVALID_ARGUMENT);const s=e;return me(r)?i.key=r:Ce(r)&&Object.keys(r).forEach(l=>{yo.includes(l)?o[l]=r[l]:i[l]=r[l]}),me(n)?i.locale=n:Ce(n)&&(o=n),Ce(a)&&(o=a),[i.key||"",s,i,o]}function bo(t,e,r){const n=t;for(const a in r){const i=`${e}__${a}`;!n.__numberFormatters.has(i)||n.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Wr().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
23
+ */const er=[];er[0]={w:[0],i:[3,0],["["]:[4],o:[7]},er[1]={w:[1],["."]:[2],["["]:[4],o:[7]},er[2]={w:[2],i:[3,0],[0]:[3,0]},er[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},er[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},er[5]={["'"]:[4,0],o:8,l:[5,0]},er[6]={['"']:[4,0],o:8,l:[6,0]};const pd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function gd(t){return pd.test(t)}function vd(t){const e=t.charCodeAt(0),r=t.charCodeAt(t.length-1);return e===r&&(e===34||e===39)?t.slice(1,-1):t}function yd(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function bd(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:gd(e)?vd(e):"*"+e}function Ed(t){const e=[];let r=-1,n=0,a=0,i,o,s,l,u,f,x;const y=[];y[0]=()=>{o===void 0?o=s:o+=s},y[1]=()=>{o!==void 0&&(e.push(o),o=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,n=4,y[0]();else{if(a=0,o===void 0||(o=bd(o),o===!1))return!1;y[1]()}};function w(){const S=t[r+1];if(n===5&&S==="'"||n===6&&S==='"')return r++,s="\\"+S,y[0](),!0}for(;n!==null;)if(r++,i=t[r],!(i==="\\"&&w())){if(l=yd(i),x=er[n],u=x[l]||x.l||8,u===8||(n=u[0],u[1]!==void 0&&(f=y[u[1]],f&&(s=i,f()===!1))))return;if(n===7)return e}}const Yi=new Map;function xd(t,e){return Ge(t)?t[e]:null}function wd(t,e){if(!Ge(t))return null;let r=Yi.get(e);if(r||(r=Ed(e),r&&Yi.set(e,r)),!r)return null;const n=r.length;let a=t,i=0;for(;i<n;){const o=a[r[i]];if(o===void 0)return null;a=o,i++}return a}const _d=t=>t,Sd=t=>"",Id="text",Cd=t=>t.length===0?"":t.join(""),Td=Wu;function Zi(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function kd(t){const e=at(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(at(t.named.count)||at(t.named.n))?at(t.named.count)?t.named.count:at(t.named.n)?t.named.n:e:e}function Ad(t,e){e.count||(e.count=t),e.n||(e.n=t)}function Dd(t={}){const e=t.locale,r=kd(t),n=Ge(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?t.pluralRules[e]:Zi,a=Ge(t.pluralRules)&&me(e)&&et(t.pluralRules[e])?Zi:void 0,i=C=>C[n(r,C.length,a)],o=t.list||[],s=C=>o[C],l=t.named||{};at(t.pluralIndex)&&Ad(r,l);const u=C=>l[C];function f(C){const E=et(t.messages)?t.messages(C):Ge(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):Sd)}const x=C=>t.modifiers?t.modifiers[C]:_d,y=Ce(t.processor)&&et(t.processor.normalize)?t.processor.normalize:Cd,w=Ce(t.processor)&&et(t.processor.interpolate)?t.processor.interpolate:Td,S=Ce(t.processor)&&me(t.processor.type)?t.processor.type:Id,N={list:s,named:u,plural:i,linked:(C,...E)=>{const[A,I]=E;let D="text",P="";E.length===1?Ge(A)?(P=A.modifier||P,D=A.type||D):me(A)&&(P=A||P):E.length===2&&(me(A)&&(P=A||P),me(I)&&(D=I||D));let z=f(C)(N);return D==="vnode"&&$e(z)&&P&&(z=z[0]),P?x(P)(z,D):z},message:f,type:S,interpolate:w,normalize:y};return N}let Zr=null;function Nd(t){Zr=t}function Od(t,e,r){Zr&&Zr.emit(Wi.I18nInit,{timestamp:Date.now(),i18n:t,version:e,meta:r})}const Rd=Ld(Wi.FunctionTranslate);function Ld(t){return e=>Zr&&Zr.emit(t,e)}const Md={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function Pd(t,e,r){return[...new Set([r,...$e(e)?e:Ge(e)?Object.keys(e):me(e)?[e]:[r]])]}function Ki(t,e,r){const n=me(r)?r:Kr,a=t;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(n);if(!i){i=[];let o=[r];for(;$e(o);)o=Ji(i,o,e);const s=$e(e)||!Ce(e)?e:e.default?e.default:null;o=me(s)?[s]:s,$e(o)&&Ji(i,o,!1),a.__localeChainCache.set(n,i)}return i}function Ji(t,e,r){let n=!0;for(let a=0;a<e.length&&Pe(n);a++){const i=e[a];me(i)&&(n=Fd(t,e[a],r))}return n}function Fd(t,e,r){let n;const a=e.split("-");do{const i=a.join("-");n=zd(t,i,r),a.splice(-1,1)}while(a.length&&n===!0);return n}function zd(t,e,r){let n=!1;if(!t.includes(e)&&(n=!0,e)){n=e[e.length-1]!=="!";const a=e.replace(/!/g,"");t.push(a),($e(r)||Ce(r))&&r[a]&&(n=r[a])}return n}const Bd="9.2.2",wn=-1,Kr="en-US",Xi="",Qi=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function Ud(){return{upper:(t,e)=>e==="text"&&me(t)?t.toUpperCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&me(t)?t.toLowerCase():e==="vnode"&&Ge(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&me(t)?Qi(t):e==="vnode"&&Ge(t)&&"__v_isVNode"in t?Qi(t.children):t}}let eo;function Vd(t){eo=t}let to;function jd(t){to=t}let ro;function qd(t){ro=t}let no=null;const ao=t=>{no=t},Hd=()=>no;let io=null;const oo=t=>{io=t},$d=()=>io;let so=0;function Gd(t={}){const e=me(t.version)?t.version:Bd,r=me(t.locale)?t.locale:Kr,n=$e(t.fallbackLocale)||Ce(t.fallbackLocale)||me(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,a=Ce(t.messages)?t.messages:{[r]:{}},i=Ce(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},o=Ce(t.numberFormats)?t.numberFormats:{[r]:{}},s=lt({},t.modifiers||{},Ud()),l=t.pluralRules||{},u=et(t.missing)?t.missing:null,f=Pe(t.missingWarn)||Xt(t.missingWarn)?t.missingWarn:!0,x=Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=!!t.fallbackFormat,w=!!t.unresolving,S=et(t.postTranslation)?t.postTranslation:null,T=Ce(t.processor)?t.processor:null,N=Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter,E=et(t.messageCompiler)?t.messageCompiler:eo,A=et(t.messageResolver)?t.messageResolver:to||xd,I=et(t.localeFallbacker)?t.localeFallbacker:ro||Pd,D=Ge(t.fallbackContext)?t.fallbackContext:void 0,P=et(t.onWarn)?t.onWarn:$u,z=t,Y=Ge(z.__datetimeFormatters)?z.__datetimeFormatters:new Map,Q=Ge(z.__numberFormatters)?z.__numberFormatters:new Map,B=Ge(z.__meta)?z.__meta:{};so++;const $={version:e,cid:so,locale:r,fallbackLocale:n,messages:a,modifiers:s,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:x,fallbackFormat:y,unresolving:w,postTranslation:S,processor:T,warnHtmlMessage:N,escapeParameter:C,messageCompiler:E,messageResolver:A,localeFallbacker:I,fallbackContext:D,onWarn:P,__meta:B};return $.datetimeFormats=i,$.numberFormats=o,$.__datetimeFormatters=Y,$.__numberFormatters=Q,__INTLIFY_PROD_DEVTOOLS__&&Od($,e,B),$}function ga(t,e,r,n,a){const{missing:i,onWarn:o}=t;if(i!==null){const s=i(t,r,e,a);return me(s)?s:e}else return e}function Jr(t,e,r){const n=t;n.__localeChainCache=new Map,t.localeFallbacker(t,r,e)}const Wd=t=>t;let lo=Object.create(null);function Yd(t,e={}){{const n=(e.onCacheKey||Wd)(t),a=lo[n];if(a)return a;let i=!1;const o=e.onError||Yu;e.onError=u=>{i=!0,o(u)};const{code:s}=md(t,e),l=new Function(`return ${s}`)();return i?l:lo[n]=l}}let co=je.__EXTEND_POINT__;const va=()=>++co,Cr={INVALID_ARGUMENT:co,INVALID_DATE_ARGUMENT:va(),INVALID_ISO_DATE_ARGUMENT:va(),__EXTEND_POINT__:va()};function Tr(t){return xn(t,null,void 0)}const uo=()=>"",jt=t=>et(t);function fo(t,...e){const{fallbackFormat:r,postTranslation:n,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=t,[l,u]=ya(...e),f=Pe(u.missingWarn)?u.missingWarn:t.missingWarn,x=Pe(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,y=Pe(u.escapeParameter)?u.escapeParameter:t.escapeParameter,w=!!u.resolvedMessage,S=me(u.default)||Pe(u.default)?Pe(u.default)?i?l:()=>l:u.default:r?i?l:()=>l:"",T=r||S!=="",N=me(u.locale)?u.locale:t.locale;y&&Zd(u);let[C,E,A]=w?[l,N,s[N]||{}]:ho(t,l,N,o,x,f),I=C,D=l;if(!w&&!(me(I)||jt(I))&&T&&(I=S,D=I),!w&&(!(me(I)||jt(I))||!me(E)))return a?wn:l;let P=!1;const z=()=>{P=!0},Y=jt(I)?I:mo(t,l,E,I,D,z);if(P)return I;const Q=Xd(t,E,A,u),B=Dd(Q),$=Kd(t,Y,B),re=n?n($,l):$;if(__INTLIFY_PROD_DEVTOOLS__){const L={timestamp:Date.now(),key:me(l)?l:jt(I)?I.key:"",locale:E||(jt(I)?I.locale:""),format:me(I)?I:jt(I)?I.source:"",message:re};L.meta=lt({},t.__meta,Hd()||{}),Rd(L)}return re}function Zd(t){$e(t.list)?t.list=t.list.map(e=>me(e)?qi(e):e):Ge(t.named)&&Object.keys(t.named).forEach(e=>{me(t.named[e])&&(t.named[e]=qi(t.named[e]))})}function ho(t,e,r,n,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=t,f=u(t,n,r);let x={},y,w=null;const S="translate";for(let T=0;T<f.length&&(y=f[T],x=o[y]||{},(w=l(x,e))===null&&(w=x[e]),!(me(w)||et(w)));T++){const N=ga(t,e,y,i,S);N!==e&&(w=N)}return[w,y,x]}function mo(t,e,r,n,a,i){const{messageCompiler:o,warnHtmlMessage:s}=t;if(jt(n)){const u=n;return u.locale=u.locale||r,u.key=u.key||e,u}if(o==null){const u=()=>n;return u.locale=r,u.key=e,u}const l=o(n,Jd(t,r,a,n,s,i));return l.locale=r,l.key=e,l.source=n,l}function Kd(t,e,r){return e(r)}function ya(...t){const[e,r,n]=t,a={};if(!me(e)&&!at(e)&&!jt(e))throw Tr(Cr.INVALID_ARGUMENT);const i=at(e)?String(e):(jt(e),e);return at(r)?a.plural=r:me(r)?a.default=r:Ce(r)&&!En(r)?a.named=r:$e(r)&&(a.list=r),at(n)?a.plural=n:me(n)?a.default=n:Ce(n)&&lt(a,n),[i,a]}function Jd(t,e,r,n,a,i){return{warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>ju(e,r,o)}}function Xd(t,e,r,n){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:f}=t,y={locale:e,modifiers:a,pluralRules:i,messages:w=>{let S=o(r,w);if(S==null&&f){const[,,T]=ho(f,w,e,s,l,u);S=o(T,w)}if(me(S)){let T=!1;const C=mo(t,w,e,S,w,()=>{T=!0});return T?uo:C}else return jt(S)?S:uo}};return t.processor&&(y.processor=t.processor),n.list&&(y.list=n.list),n.named&&(y.named=n.named),at(n.plural)&&(y.pluralIndex=n.plural),y}function po(t,...e){const{datetimeFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__datetimeFormatters:s}=t,[l,u,f,x]=ba(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const w=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.DateTimeFormat(S,x).format(u);let N={},C,E=null;const A="datetime format";for(let P=0;P<T.length&&(C=T[P],N=r[C]||{},E=N[l],!Ce(E));P++)ga(t,l,C,y,A);if(!Ce(E)||!me(C))return n?wn:l;let I=`${C}__${l}`;En(x)||(I=`${I}__${JSON.stringify(x)}`);let D=s.get(I);return D||(D=new Intl.DateTimeFormat(C,lt({},E,x)),s.set(I,D)),w?D.formatToParts(u):D.format(u)}const go=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ba(...t){const[e,r,n,a]=t,i={};let o={},s;if(me(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Tr(Cr.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Tr(Cr.INVALID_ISO_DATE_ARGUMENT)}}else if(Hu(e)){if(isNaN(e.getTime()))throw Tr(Cr.INVALID_DATE_ARGUMENT);s=e}else if(at(e))s=e;else throw Tr(Cr.INVALID_ARGUMENT);return me(r)?i.key=r:Ce(r)&&Object.keys(r).forEach(l=>{go.includes(l)?o[l]=r[l]:i[l]=r[l]}),me(n)?i.locale=n:Ce(n)&&(o=n),Ce(a)&&(o=a),[i.key||"",s,i,o]}function vo(t,e,r){const n=t;for(const a in r){const i=`${e}__${a}`;!n.__datetimeFormatters.has(i)||n.__datetimeFormatters.delete(i)}}function yo(t,...e){const{numberFormats:r,unresolving:n,fallbackLocale:a,onWarn:i,localeFallbacker:o}=t,{__numberFormatters:s}=t,[l,u,f,x]=Ea(...e),y=Pe(f.missingWarn)?f.missingWarn:t.missingWarn;Pe(f.fallbackWarn)?f.fallbackWarn:t.fallbackWarn;const w=!!f.part,S=me(f.locale)?f.locale:t.locale,T=o(t,a,S);if(!me(l)||l==="")return new Intl.NumberFormat(S,x).format(u);let N={},C,E=null;const A="number format";for(let P=0;P<T.length&&(C=T[P],N=r[C]||{},E=N[l],!Ce(E));P++)ga(t,l,C,y,A);if(!Ce(E)||!me(C))return n?wn:l;let I=`${C}__${l}`;En(x)||(I=`${I}__${JSON.stringify(x)}`);let D=s.get(I);return D||(D=new Intl.NumberFormat(C,lt({},E,x)),s.set(I,D)),w?D.formatToParts(u):D.format(u)}const bo=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ea(...t){const[e,r,n,a]=t,i={};let o={};if(!at(e))throw Tr(Cr.INVALID_ARGUMENT);const s=e;return me(r)?i.key=r:Ce(r)&&Object.keys(r).forEach(l=>{bo.includes(l)?o[l]=r[l]:i[l]=r[l]}),me(n)?i.locale=n:Ce(n)&&(o=n),Ce(a)&&(o=a),[i.key||"",s,i,o]}function Eo(t,e,r){const n=t;for(const a in r){const i=`${e}__${a}`;!n.__numberFormatters.has(i)||n.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yr().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
24
24
  * vue-i18n v9.2.2
25
25
  * (c) 2022 kazuya kawaguchi
26
26
  * Released under the MIT License.
27
- */const Xd="9.2.2";function Qd(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Wr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Wr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Wr().__INTLIFY_PROD_DEVTOOLS__=!1)}Ld.__EXTEND_POINT__;let Eo=qe.__EXTEND_POINT__;const Et=()=>++Eo,tt={UNEXPECTED_RETURN_TYPE:Eo,INVALID_ARGUMENT:Et(),MUST_BE_CALL_SETUP_TOP:Et(),NOT_INSLALLED:Et(),NOT_AVAILABLE_IN_LEGACY_MODE:Et(),REQUIRED_VALUE:Et(),INVALID_VALUE:Et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Et(),NOT_INSLALLED_WITH_PROVIDE:Et(),UNEXPECTED_ERROR:Et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Et(),BRIDGE_SUPPORT_VUE_2_ONLY:Et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Et(),__EXTEND_POINT__:Et()};function it(t,...e){return En(t,null,void 0)}const Ea=Jt("__transrateVNode"),wa=Jt("__datetimeParts"),xa=Jt("__numberParts"),wo=Jt("__setPluralRules");Jt("__intlifyMeta");const xo=Jt("__injectWithOption");function _a(t){if(!Ge(t))return t;for(const e in t)if(!!da(t,e))if(!e.includes("."))Ge(t[e])&&_a(t[e]);else{const r=e.split("."),n=r.length-1;let a=t;for(let i=0;i<n;i++)r[i]in a||(a[r[i]]={}),a=a[r[i]];a[r[n]]=t[e],delete t[e],Ge(a[r[n]])&&_a(a[r[n]])}return t}function xn(t,e){const{messages:r,__i18n:n,messageResolver:a,flatJson:i}=e,o=Ce(r)?r:$e(n)?{}:{[t]:{}};if($e(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Jr(u,o[l])):Jr(u,o)}else me(s)&&Jr(JSON.parse(s),o)}),a==null&&i)for(const s in o)da(o,s)&&_a(o[s]);return o}const _n=t=>!Ge(t)||$e(t);function Jr(t,e){if(_n(t)||_n(e))throw it(tt.INVALID_VALUE);for(const r in t)da(t,r)&&(_n(t[r])||_n(e[r])?e[r]=t[r]:Jr(t[r],e[r]))}function _o(t){return t.type}function So(t,e,r){let n=Ge(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=xn(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const a=Object.keys(n);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(Ge(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Ge(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Io(t){return ue.createVNode(ue.Text,null,t,0)}const Co="__INTLIFY_META__";let To=0;function ko(t){return(e,r,n,a)=>t(r,n,ue.getCurrentInstance()||void 0,a)}const ef=()=>{const t=ue.getCurrentInstance();let e=null;return t&&(e=_o(t)[Co])?{[Co]:e}:null};function Sa(t={},e){const{__root:r}=t,n=r===void 0;let a=Pe(t.inheritLocale)?t.inheritLocale:!0;const i=ue.ref(r&&a?r.locale.value:me(t.locale)?t.locale:Zr),o=ue.ref(r&&a?r.fallbackLocale.value:me(t.fallbackLocale)||$e(t.fallbackLocale)||Ce(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=ue.ref(xn(i.value,t)),l=ue.ref(Ce(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=ue.ref(Ce(t.numberFormats)?t.numberFormats:{[i.value]:{}});let f=r?r.missingWarn:Pe(t.missingWarn)||Xt(t.missingWarn)?t.missingWarn:!0,w=r?r.fallbackWarn:Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=r?r.fallbackRoot:Pe(t.fallbackRoot)?t.fallbackRoot:!0,x=!!t.fallbackFormat,S=et(t.missing)?t.missing:null,T=et(t.missing)?ko(t.missing):null,N=et(t.postTranslation)?t.postTranslation:null,C=r?r.warnHtmlMessage:Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const A=r?r.modifiers:Ce(t.modifiers)?t.modifiers:{};let I=t.pluralRules||r&&r.pluralRules,D;D=(()=>{n&&io(null);const d={version:Xd,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:A,pluralRules:I,missing:T===null?void 0:T,missingWarn:f,fallbackWarn:w,fallbackFormat:x,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:C,escapeParameter:E,messageResolver:t.messageResolver,__meta:{framework:"vue"}};d.datetimeFormats=l.value,d.numberFormats=u.value,d.__datetimeFormatters=Ce(D)?D.__datetimeFormatters:void 0,d.__numberFormatters=Ce(D)?D.__numberFormatters:void 0;const m=$d(d);return n&&io(m),m})(),Kr(D,i.value,o.value);function z(){return[i.value,o.value,s.value,l.value,u.value]}const Y=ue.computed({get:()=>i.value,set:d=>{i.value=d,D.locale=i.value}}),Q=ue.computed({get:()=>o.value,set:d=>{o.value=d,D.fallbackLocale=o.value,Kr(D,i.value,d)}}),B=ue.computed(()=>s.value),$=ue.computed(()=>l.value),re=ue.computed(()=>u.value);function L(){return et(N)?N:null}function j(d){N=d,D.postTranslation=d}function W(){return S}function q(d){d!==null&&(T=ko(d)),S=d,D.missing=T}const V=(d,m,h,p,k,R)=>{z();let U;if(__INTLIFY_PROD_DEVTOOLS__)try{no(ef()),n||(D.fallbackContext=r?Hd():void 0),U=d(D)}finally{no(null),n||(D.fallbackContext=void 0)}else U=d(D);if(at(U)&&U===wn){const[H,J]=m();return r&&y?p(r):k(H)}else{if(R(U))return U;throw it(tt.UNEXPECTED_RETURN_TYPE)}};function Z(...d){return V(m=>Reflect.apply(uo,null,[m,...d]),()=>va(...d),"translate",m=>Reflect.apply(m.t,m,[...d]),m=>m,m=>me(m))}function se(...d){const[m,h,p]=d;if(p&&!Ge(p))throw it(tt.INVALID_ARGUMENT);return Z(m,h,lt({resolvedMessage:!0},p||{}))}function ie(...d){return V(m=>Reflect.apply(mo,null,[m,...d]),()=>ya(...d),"datetime format",m=>Reflect.apply(m.d,m,[...d]),()=>Ji,m=>me(m))}function F(...d){return V(m=>Reflect.apply(vo,null,[m,...d]),()=>ba(...d),"number format",m=>Reflect.apply(m.n,m,[...d]),()=>Ji,m=>me(m))}function ee(d){return d.map(m=>me(m)||at(m)||Pe(m)?Io(String(m)):m)}const K={normalize:ee,interpolate:d=>d,type:"vnode"};function xe(...d){return V(m=>{let h;const p=m;try{p.processor=K,h=Reflect.apply(uo,null,[p,...d])}finally{p.processor=null}return h},()=>va(...d),"translate",m=>m[Ea](...d),m=>[Io(m)],m=>$e(m))}function _e(...d){return V(m=>Reflect.apply(vo,null,[m,...d]),()=>ba(...d),"number format",m=>m[xa](...d),()=>[],m=>me(m)||$e(m))}function Oe(...d){return V(m=>Reflect.apply(mo,null,[m,...d]),()=>ya(...d),"datetime format",m=>m[wa](...d),()=>[],m=>me(m)||$e(m))}function ye(d){I=d,D.pluralRules=I}function Be(d,m){const h=me(m)?m:i.value,p=ae(h);return D.messageResolver(p,d)!==null}function Ie(d){let m=null;const h=Zi(D,o.value,i.value);for(let p=0;p<h.length;p++){const k=s.value[h[p]]||{},R=D.messageResolver(k,d);if(R!=null){m=R;break}}return m}function G(d){const m=Ie(d);return m!=null?m:r?r.tm(d)||{}:{}}function ae(d){return s.value[d]||{}}function _(d,m){s.value[d]=m,D.messages=s.value}function b(d,m){s.value[d]=s.value[d]||{},Jr(m,s.value[d]),D.messages=s.value}function O(d){return l.value[d]||{}}function te(d,m){l.value[d]=m,D.datetimeFormats=l.value,go(D,d,m)}function le(d,m){l.value[d]=lt(l.value[d]||{},m),D.datetimeFormats=l.value,go(D,d,m)}function de(d){return u.value[d]||{}}function M(d,m){u.value[d]=m,D.numberFormats=u.value,bo(D,d,m)}function c(d,m){u.value[d]=lt(u.value[d]||{},m),D.numberFormats=u.value,bo(D,d,m)}To++,r&&ua&&(ue.watch(r.locale,d=>{a&&(i.value=d,D.locale=d,Kr(D,i.value,o.value))}),ue.watch(r.fallbackLocale,d=>{a&&(o.value=d,D.fallbackLocale=d,Kr(D,i.value,o.value))}));const v={id:To,locale:Y,fallbackLocale:Q,get inheritLocale(){return a},set inheritLocale(d){a=d,d&&r&&(i.value=r.locale.value,o.value=r.fallbackLocale.value,Kr(D,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:B,get modifiers(){return A},get pluralRules(){return I||{}},get isGlobal(){return n},get missingWarn(){return f},set missingWarn(d){f=d,D.missingWarn=f},get fallbackWarn(){return w},set fallbackWarn(d){w=d,D.fallbackWarn=w},get fallbackRoot(){return y},set fallbackRoot(d){y=d},get fallbackFormat(){return x},set fallbackFormat(d){x=d,D.fallbackFormat=x},get warnHtmlMessage(){return C},set warnHtmlMessage(d){C=d,D.warnHtmlMessage=d},get escapeParameter(){return E},set escapeParameter(d){E=d,D.escapeParameter=d},t:Z,getLocaleMessage:ae,setLocaleMessage:_,mergeLocaleMessage:b,getPostTranslationHandler:L,setPostTranslationHandler:j,getMissingHandler:W,setMissingHandler:q,[wo]:ye};return v.datetimeFormats=$,v.numberFormats=re,v.rt=se,v.te=Be,v.tm=G,v.d=ie,v.n=F,v.getDateTimeFormat=O,v.setDateTimeFormat=te,v.mergeDateTimeFormat=le,v.getNumberFormat=de,v.setNumberFormat=M,v.mergeNumberFormat=c,v[xo]=t.__injectWithOption,v[Ea]=xe,v[wa]=Oe,v[xa]=_e,v}function tf(t){const e=me(t.locale)?t.locale:Zr,r=me(t.fallbackLocale)||$e(t.fallbackLocale)||Ce(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,n=et(t.missing)?t.missing:void 0,a=Pe(t.silentTranslationWarn)||Xt(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Pe(t.silentFallbackWarn)||Xt(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Pe(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=Ce(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,f=et(t.postTranslation)?t.postTranslation:void 0,w=me(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,x=Pe(t.sync)?t.sync:!0;let S=t.messages;if(Ce(t.sharedMessages)){const D=t.sharedMessages;S=Object.keys(D).reduce((z,Y)=>{const Q=z[Y]||(z[Y]={});return lt(Q,D[Y]),z},S||{})}const{__i18n:T,__root:N,__injectWithOption:C}=t,E=t.datetimeFormats,A=t.numberFormats,I=t.flatJson;return{locale:e,fallbackLocale:r,messages:S,flatJson:I,datetimeFormats:E,numberFormats:A,missing:n,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:f,warnHtmlMessage:w,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:x,__i18n:T,__root:N,__injectWithOption:C}}function Ia(t={},e){{const r=Sa(tf(t)),n={id:r.id,get locale(){return r.locale.value},set locale(a){r.locale.value=a},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(a){r.fallbackLocale.value=a},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return r.getMissingHandler()},set missing(a){r.setMissingHandler(a)},get silentTranslationWarn(){return Pe(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(a){r.missingWarn=Pe(a)?!a:a},get silentFallbackWarn(){return Pe(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(a){r.fallbackWarn=Pe(a)?!a:a},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(a){r.fallbackFormat=a},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(a){r.setPostTranslationHandler(a)},get sync(){return r.inheritLocale},set sync(a){r.inheritLocale=a},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){r.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(a){r.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...a){const[i,o,s]=a,l={};let u=null,f=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const w=i;return me(o)?l.locale=o:$e(o)?u=o:Ce(o)&&(f=o),$e(s)?u=s:Ce(s)&&(f=s),Reflect.apply(r.t,r,[w,u||f||{},l])},rt(...a){return Reflect.apply(r.rt,r,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,f=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const w=i;return me(o)?l.locale=o:at(o)?l.plural=o:$e(o)?u=o:Ce(o)&&(f=o),me(s)?l.locale=s:$e(s)?u=s:Ce(s)&&(f=s),Reflect.apply(r.t,r,[w,u||f||{},l])},te(a,i){return r.te(a,i)},tm(a){return r.tm(a)},getLocaleMessage(a){return r.getLocaleMessage(a)},setLocaleMessage(a,i){r.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){r.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(r.d,r,[...a])},getDateTimeFormat(a){return r.getDateTimeFormat(a)},setDateTimeFormat(a,i){r.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){r.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(r.n,r,[...a])},getNumberFormat(a){return r.getNumberFormat(a)},setNumberFormat(a,i){r.setNumberFormat(a,i)},mergeNumberFormat(a,i){r.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,n)}};return n}}const Ca={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function rf({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,a)=>n=[...n,...$e(a.children)?a.children:[a]],[]):e.reduce((r,n)=>{const a=t[n];return a&&(r[n]=a()),r},{})}function Ao(t){return ue.Fragment}const Do={name:"i18n-t",props:lt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>at(t)||!isNaN(t)}},Ca),setup(t,e){const{slots:r,attrs:n}=e,a=t.i18n||Ta({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(w=>w!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=me(t.plural)?+t.plural:t.plural);const s=rf(e,i),l=a[Ea](t.keypath,s,o),u=lt({},n),f=me(t.tag)||Ge(t.tag)?t.tag:Ao();return ue.h(f,u,l)}}};function nf(t){return $e(t)&&!me(t[0])}function No(t,e,r,n){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),me(t.format)?o.key=t.format:Ge(t.format)&&(me(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((y,x)=>r.includes(x)?lt({},y,{[x]:t.format[x]}):y,{}));const l=n(t.value,o,s);let u=[o.key];$e(l)?u=l.map((y,x)=>{const S=a[y.type],T=S?S({[y.type]:y.value,index:x,parts:l}):[y.value];return nf(T)&&(T[0].key=`${y.type}-${x}`),T}):me(l)&&(u=[l]);const f=lt({},i),w=me(t.tag)||Ge(t.tag)?t.tag:Ao();return ue.h(w,f,u)}}const Oo={name:"i18n-n",props:lt({value:{type:Number,required:!0},format:{type:[String,Object]}},Ca),setup(t,e){const r=t.i18n||Ta({useScope:"parent",__useComponent:!0});return No(t,e,yo,(...n)=>r[xa](...n))}},Ro={name:"i18n-d",props:lt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ca),setup(t,e){const r=t.i18n||Ta({useScope:"parent",__useComponent:!0});return No(t,e,po,(...n)=>r[wa](...n))}};function af(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function of(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw it(tt.UNEXPECTED_ERROR);const f=af(t,s.$),w=Lo(u);return[Reflect.apply(f.t,f,[...Mo(w)]),f]};return{created:(o,s)=>{const[l,u]=e(s);ua&&t.global===u&&(o.__i18nWatcher=ue.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{ua&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Lo(s);o.textContent=Reflect.apply(l.t,l,[...Mo(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Lo(t){if(me(t))return{path:t};if(Ce(t)){if(!("path"in t))throw it(tt.REQUIRED_VALUE,"path");return t}else throw it(tt.INVALID_VALUE)}function Mo(t){const{path:e,locale:r,args:n,choice:a,plural:i}=t,o={},s=n||{};return me(r)&&(o.locale=r),at(a)&&(o.plural=a),at(i)&&(o.plural=i),[e,s,o]}function sf(t,e,...r){const n=Ce(r[0])?r[0]:{},a=!!n.useI18nComponentName;(Pe(n.globalInstall)?n.globalInstall:!0)&&(t.component(a?"i18n":Do.name,Do),t.component(Oo.name,Oo),t.component(Ro.name,Ro)),t.directive("t",of(e))}function lf(t,e,r){return{beforeCreate(){const n=ue.getCurrentInstance();if(!n)throw it(tt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Po(t,i):(i.__injectWithOption=!0,this.$i18n=Ia(i))}else a.__i18n?this===this.$root?this.$i18n=Po(t,a):this.$i18n=Ia({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&So(e,a,a),t.__onComponentInstanceCreated(this.$i18n),r.__setInstance(n,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const n=ue.getCurrentInstance();if(!n)throw it(tt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(n),delete this.$i18n}}}function Po(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[wo](e.pluralizationRules||t.pluralizationRules);const r=xn(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(r).forEach(n=>t.mergeLocaleMessage(n,r[n])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,e.datetimeFormats[n])),e.numberFormats&&Object.keys(e.numberFormats).forEach(n=>t.mergeNumberFormat(n,e.numberFormats[n])),t}const cf=Jt("global-vue-i18n");function uf(t={},e){const r=__VUE_I18N_LEGACY_API__&&Pe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,n=Pe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,i=new Map,[o,s]=df(t,r),l=Jt("");function u(y){return i.get(y)||null}function f(y,x){i.set(y,x)}function w(y){i.delete(y)}{const y={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(x,...S){x.__VUE_I18N_SYMBOL__=l,x.provide(x.__VUE_I18N_SYMBOL__,y),!r&&n&&Ef(x,y.global),__VUE_I18N_FULL_INSTALL__&&sf(x,y,...S),__VUE_I18N_LEGACY_API__&&r&&x.mixin(lf(s,s.__composer,y));const T=x.unmount;x.unmount=()=>{y.dispose(),T()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:f,__deleteInstance:w};return y}}function Ta(t={}){const e=ue.getCurrentInstance();if(e==null)throw it(tt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw it(tt.NOT_INSLALLED);const r=ff(e),n=mf(r),a=_o(e),i=hf(t,a);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw it(tt.NOT_AVAILABLE_IN_LEGACY_MODE);return vf(e,i,n,t)}if(i==="global")return So(n,t,a),n;if(i==="parent"){let l=pf(r,e,t.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(e);if(s==null){const l=lt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),n&&(l.__root=n),s=Sa(l),gf(o,e),o.__setInstance(e,s)}return s}function df(t,e,r){const n=ue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?n.run(()=>Ia(t)):n.run(()=>Sa(t));if(a==null)throw it(tt.UNEXPECTED_ERROR);return[n,a]}}function ff(t){{const e=ue.inject(t.isCE?cf:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw it(t.isCE?tt.NOT_INSLALLED_WITH_PROVIDE:tt.UNEXPECTED_ERROR);return e}}function hf(t,e){return bn(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function mf(t){return t.mode==="composition"?t.global:t.global.__composer}function pf(t,e,r=!1){let n=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")n=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(n=s.__composer,r&&n&&!n[xo]&&(n=null))}if(n!=null||a===i)break;i=i.parent}return n}function gf(t,e,r){ue.onMounted(()=>{},e),ue.onUnmounted(()=>{t.__deleteInstance(e)},e)}function vf(t,e,r,n={}){const a=e==="local",i=ue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw it(tt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Pe(n.inheritLocale)?n.inheritLocale:!0,s=ue.ref(a&&o?r.locale.value:me(n.locale)?n.locale:Zr),l=ue.ref(a&&o?r.fallbackLocale.value:me(n.fallbackLocale)||$e(n.fallbackLocale)||Ce(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),u=ue.ref(xn(s.value,n)),f=ue.ref(Ce(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),w=ue.ref(Ce(n.numberFormats)?n.numberFormats:{[s.value]:{}}),y=a?r.missingWarn:Pe(n.missingWarn)||Xt(n.missingWarn)?n.missingWarn:!0,x=a?r.fallbackWarn:Pe(n.fallbackWarn)||Xt(n.fallbackWarn)?n.fallbackWarn:!0,S=a?r.fallbackRoot:Pe(n.fallbackRoot)?n.fallbackRoot:!0,T=!!n.fallbackFormat,N=et(n.missing)?n.missing:null,C=et(n.postTranslation)?n.postTranslation:null,E=a?r.warnHtmlMessage:Pe(n.warnHtmlMessage)?n.warnHtmlMessage:!0,A=!!n.escapeParameter,I=a?r.modifiers:Ce(n.modifiers)?n.modifiers:{},D=n.pluralRules||a&&r.pluralRules;function P(){return[s.value,l.value,u.value,f.value,w.value]}const z=ue.computed({get:()=>i.value?i.value.locale.value:s.value,set:b=>{i.value&&(i.value.locale.value=b),s.value=b}}),Y=ue.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),l.value=b}}),Q=ue.computed(()=>i.value?i.value.messages.value:u.value),B=ue.computed(()=>f.value),$=ue.computed(()=>w.value);function re(){return i.value?i.value.getPostTranslationHandler():C}function L(b){i.value&&i.value.setPostTranslationHandler(b)}function j(){return i.value?i.value.getMissingHandler():N}function W(b){i.value&&i.value.setMissingHandler(b)}function q(b){return P(),b()}function V(...b){return i.value?q(()=>Reflect.apply(i.value.t,null,[...b])):q(()=>"")}function Z(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function se(...b){return i.value?q(()=>Reflect.apply(i.value.d,null,[...b])):q(()=>"")}function ie(...b){return i.value?q(()=>Reflect.apply(i.value.n,null,[...b])):q(()=>"")}function F(b){return i.value?i.value.tm(b):{}}function ee(b,O){return i.value?i.value.te(b,O):!1}function ne(b){return i.value?i.value.getLocaleMessage(b):{}}function K(b,O){i.value&&(i.value.setLocaleMessage(b,O),u.value[b]=O)}function xe(b,O){i.value&&i.value.mergeLocaleMessage(b,O)}function _e(b){return i.value?i.value.getDateTimeFormat(b):{}}function Oe(b,O){i.value&&(i.value.setDateTimeFormat(b,O),f.value[b]=O)}function ye(b,O){i.value&&i.value.mergeDateTimeFormat(b,O)}function Be(b){return i.value?i.value.getNumberFormat(b):{}}function Ie(b,O){i.value&&(i.value.setNumberFormat(b,O),w.value[b]=O)}function G(b,O){i.value&&i.value.mergeNumberFormat(b,O)}const ae={get id(){return i.value?i.value.id:-1},locale:z,fallbackLocale:Y,messages:Q,datetimeFormats:B,numberFormats:$,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:I},get pluralRules(){return i.value?i.value.pluralRules:D},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:y},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:x},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:S},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:T},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:V,getPostTranslationHandler:re,setPostTranslationHandler:L,getMissingHandler:j,setMissingHandler:W,rt:Z,d:se,n:ie,tm:F,te:ee,getLocaleMessage:ne,setLocaleMessage:K,mergeLocaleMessage:xe,getDateTimeFormat:_e,setDateTimeFormat:Oe,mergeDateTimeFormat:ye,getNumberFormat:Be,setNumberFormat:Ie,mergeNumberFormat:G};function _(b){b.locale.value=s.value,b.fallbackLocale.value=l.value,Object.keys(u.value).forEach(O=>{b.mergeLocaleMessage(O,u.value[O])}),Object.keys(f.value).forEach(O=>{b.mergeDateTimeFormat(O,f.value[O])}),Object.keys(w.value).forEach(O=>{b.mergeNumberFormat(O,w.value[O])}),b.escapeParameter=A,b.fallbackFormat=T,b.fallbackRoot=S,b.fallbackWarn=x,b.missingWarn=y,b.warnHtmlMessage=E}return ue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw it(tt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=b.locale.value,l.value=b.fallbackLocale.value,u.value=b.messages.value,f.value=b.datetimeFormats.value,w.value=b.numberFormats.value):a&&_(b)}),ae}const yf=["locale","fallbackLocale","availableLocales"],bf=["t","rt","d","n","tm"];function Ef(t,e){const r=Object.create(null);yf.forEach(n=>{const a=Object.getOwnPropertyDescriptor(e,n);if(!a)throw it(tt.UNEXPECTED_ERROR);const i=ue.isRef(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,i)}),t.config.globalProperties.$i18n=r,bf.forEach(n=>{const a=Object.getOwnPropertyDescriptor(e,n);if(!a||!a.value)throw it(tt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${n}`,a)})}if(Ud(Wd),Vd(wd),qd(Zi),Qd(),__INTLIFY_PROD_DEVTOOLS__){const t=Wr();t.__INTLIFY__=!0,Dd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const wf={field:{"mandatory-not-filled":"Mandatory field(s) not filled in"}},xf={appointment:{new:"New","new-aria-label":"Add a new element",error:{"date-not-available":{boxTitle:"New appointment",title:"The staff is already busy in this slot",description:`An appointment is already positioned on this slot.
27
+ */const Qd="9.2.2";function ef(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Yr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Yr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yr().__INTLIFY_PROD_DEVTOOLS__=!1)}Md.__EXTEND_POINT__;let xo=je.__EXTEND_POINT__;const Et=()=>++xo,tt={UNEXPECTED_RETURN_TYPE:xo,INVALID_ARGUMENT:Et(),MUST_BE_CALL_SETUP_TOP:Et(),NOT_INSLALLED:Et(),NOT_AVAILABLE_IN_LEGACY_MODE:Et(),REQUIRED_VALUE:Et(),INVALID_VALUE:Et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Et(),NOT_INSLALLED_WITH_PROVIDE:Et(),UNEXPECTED_ERROR:Et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Et(),BRIDGE_SUPPORT_VUE_2_ONLY:Et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Et(),__EXTEND_POINT__:Et()};function it(t,...e){return xn(t,null,void 0)}const xa=Jt("__transrateVNode"),wa=Jt("__datetimeParts"),_a=Jt("__numberParts"),wo=Jt("__setPluralRules");Jt("__intlifyMeta");const _o=Jt("__injectWithOption");function Sa(t){if(!Ge(t))return t;for(const e in t)if(!!fa(t,e))if(!e.includes("."))Ge(t[e])&&Sa(t[e]);else{const r=e.split("."),n=r.length-1;let a=t;for(let i=0;i<n;i++)r[i]in a||(a[r[i]]={}),a=a[r[i]];a[r[n]]=t[e],delete t[e],Ge(a[r[n]])&&Sa(a[r[n]])}return t}function _n(t,e){const{messages:r,__i18n:n,messageResolver:a,flatJson:i}=e,o=Ce(r)?r:$e(n)?{}:{[t]:{}};if($e(n)&&n.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},Xr(u,o[l])):Xr(u,o)}else me(s)&&Xr(JSON.parse(s),o)}),a==null&&i)for(const s in o)fa(o,s)&&Sa(o[s]);return o}const Sn=t=>!Ge(t)||$e(t);function Xr(t,e){if(Sn(t)||Sn(e))throw it(tt.INVALID_VALUE);for(const r in t)fa(t,r)&&(Sn(t[r])||Sn(e[r])?e[r]=t[r]:Xr(t[r],e[r]))}function So(t){return t.type}function Io(t,e,r){let n=Ge(e.messages)?e.messages:{};"__i18nGlobal"in r&&(n=_n(t.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const a=Object.keys(n);a.length&&a.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(Ge(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(o=>{t.mergeDateTimeFormat(o,e.datetimeFormats[o])})}if(Ge(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(o=>{t.mergeNumberFormat(o,e.numberFormats[o])})}}}function Co(t){return ue.createVNode(ue.Text,null,t,0)}const To="__INTLIFY_META__";let ko=0;function Ao(t){return(e,r,n,a)=>t(r,n,ue.getCurrentInstance()||void 0,a)}const tf=()=>{const t=ue.getCurrentInstance();let e=null;return t&&(e=So(t)[To])?{[To]:e}:null};function Ia(t={},e){const{__root:r}=t,n=r===void 0;let a=Pe(t.inheritLocale)?t.inheritLocale:!0;const i=ue.ref(r&&a?r.locale.value:me(t.locale)?t.locale:Kr),o=ue.ref(r&&a?r.fallbackLocale.value:me(t.fallbackLocale)||$e(t.fallbackLocale)||Ce(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:i.value),s=ue.ref(_n(i.value,t)),l=ue.ref(Ce(t.datetimeFormats)?t.datetimeFormats:{[i.value]:{}}),u=ue.ref(Ce(t.numberFormats)?t.numberFormats:{[i.value]:{}});let f=r?r.missingWarn:Pe(t.missingWarn)||Xt(t.missingWarn)?t.missingWarn:!0,x=r?r.fallbackWarn:Pe(t.fallbackWarn)||Xt(t.fallbackWarn)?t.fallbackWarn:!0,y=r?r.fallbackRoot:Pe(t.fallbackRoot)?t.fallbackRoot:!0,w=!!t.fallbackFormat,S=et(t.missing)?t.missing:null,T=et(t.missing)?Ao(t.missing):null,N=et(t.postTranslation)?t.postTranslation:null,C=r?r.warnHtmlMessage:Pe(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter;const A=r?r.modifiers:Ce(t.modifiers)?t.modifiers:{};let I=t.pluralRules||r&&r.pluralRules,D;D=(()=>{n&&oo(null);const d={version:Qd,locale:i.value,fallbackLocale:o.value,messages:s.value,modifiers:A,pluralRules:I,missing:T===null?void 0:T,missingWarn:f,fallbackWarn:x,fallbackFormat:w,unresolving:!0,postTranslation:N===null?void 0:N,warnHtmlMessage:C,escapeParameter:E,messageResolver:t.messageResolver,__meta:{framework:"vue"}};d.datetimeFormats=l.value,d.numberFormats=u.value,d.__datetimeFormatters=Ce(D)?D.__datetimeFormatters:void 0,d.__numberFormatters=Ce(D)?D.__numberFormatters:void 0;const m=Gd(d);return n&&oo(m),m})(),Jr(D,i.value,o.value);function z(){return[i.value,o.value,s.value,l.value,u.value]}const Y=ue.computed({get:()=>i.value,set:d=>{i.value=d,D.locale=i.value}}),Q=ue.computed({get:()=>o.value,set:d=>{o.value=d,D.fallbackLocale=o.value,Jr(D,i.value,d)}}),B=ue.computed(()=>s.value),$=ue.computed(()=>l.value),re=ue.computed(()=>u.value);function L(){return et(N)?N:null}function q(d){N=d,D.postTranslation=d}function W(){return S}function j(d){d!==null&&(T=Ao(d)),S=d,D.missing=T}const V=(d,m,h,p,k,R)=>{z();let U;if(__INTLIFY_PROD_DEVTOOLS__)try{ao(tf()),n||(D.fallbackContext=r?$d():void 0),U=d(D)}finally{ao(null),n||(D.fallbackContext=void 0)}else U=d(D);if(at(U)&&U===wn){const[H,J]=m();return r&&y?p(r):k(H)}else{if(R(U))return U;throw it(tt.UNEXPECTED_RETURN_TYPE)}};function Z(...d){return V(m=>Reflect.apply(fo,null,[m,...d]),()=>ya(...d),"translate",m=>Reflect.apply(m.t,m,[...d]),m=>m,m=>me(m))}function se(...d){const[m,h,p]=d;if(p&&!Ge(p))throw it(tt.INVALID_ARGUMENT);return Z(m,h,lt({resolvedMessage:!0},p||{}))}function ie(...d){return V(m=>Reflect.apply(po,null,[m,...d]),()=>ba(...d),"datetime format",m=>Reflect.apply(m.d,m,[...d]),()=>Xi,m=>me(m))}function F(...d){return V(m=>Reflect.apply(yo,null,[m,...d]),()=>Ea(...d),"number format",m=>Reflect.apply(m.n,m,[...d]),()=>Xi,m=>me(m))}function ee(d){return d.map(m=>me(m)||at(m)||Pe(m)?Co(String(m)):m)}const K={normalize:ee,interpolate:d=>d,type:"vnode"};function we(...d){return V(m=>{let h;const p=m;try{p.processor=K,h=Reflect.apply(fo,null,[p,...d])}finally{p.processor=null}return h},()=>ya(...d),"translate",m=>m[xa](...d),m=>[Co(m)],m=>$e(m))}function _e(...d){return V(m=>Reflect.apply(yo,null,[m,...d]),()=>Ea(...d),"number format",m=>m[_a](...d),()=>[],m=>me(m)||$e(m))}function Oe(...d){return V(m=>Reflect.apply(po,null,[m,...d]),()=>ba(...d),"datetime format",m=>m[wa](...d),()=>[],m=>me(m)||$e(m))}function ye(d){I=d,D.pluralRules=I}function Be(d,m){const h=me(m)?m:i.value,p=ae(h);return D.messageResolver(p,d)!==null}function Ie(d){let m=null;const h=Ki(D,o.value,i.value);for(let p=0;p<h.length;p++){const k=s.value[h[p]]||{},R=D.messageResolver(k,d);if(R!=null){m=R;break}}return m}function G(d){const m=Ie(d);return m!=null?m:r?r.tm(d)||{}:{}}function ae(d){return s.value[d]||{}}function _(d,m){s.value[d]=m,D.messages=s.value}function b(d,m){s.value[d]=s.value[d]||{},Xr(m,s.value[d]),D.messages=s.value}function O(d){return l.value[d]||{}}function te(d,m){l.value[d]=m,D.datetimeFormats=l.value,vo(D,d,m)}function le(d,m){l.value[d]=lt(l.value[d]||{},m),D.datetimeFormats=l.value,vo(D,d,m)}function de(d){return u.value[d]||{}}function M(d,m){u.value[d]=m,D.numberFormats=u.value,Eo(D,d,m)}function c(d,m){u.value[d]=lt(u.value[d]||{},m),D.numberFormats=u.value,Eo(D,d,m)}ko++,r&&da&&(ue.watch(r.locale,d=>{a&&(i.value=d,D.locale=d,Jr(D,i.value,o.value))}),ue.watch(r.fallbackLocale,d=>{a&&(o.value=d,D.fallbackLocale=d,Jr(D,i.value,o.value))}));const v={id:ko,locale:Y,fallbackLocale:Q,get inheritLocale(){return a},set inheritLocale(d){a=d,d&&r&&(i.value=r.locale.value,o.value=r.fallbackLocale.value,Jr(D,i.value,o.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:B,get modifiers(){return A},get pluralRules(){return I||{}},get isGlobal(){return n},get missingWarn(){return f},set missingWarn(d){f=d,D.missingWarn=f},get fallbackWarn(){return x},set fallbackWarn(d){x=d,D.fallbackWarn=x},get fallbackRoot(){return y},set fallbackRoot(d){y=d},get fallbackFormat(){return w},set fallbackFormat(d){w=d,D.fallbackFormat=w},get warnHtmlMessage(){return C},set warnHtmlMessage(d){C=d,D.warnHtmlMessage=d},get escapeParameter(){return E},set escapeParameter(d){E=d,D.escapeParameter=d},t:Z,getLocaleMessage:ae,setLocaleMessage:_,mergeLocaleMessage:b,getPostTranslationHandler:L,setPostTranslationHandler:q,getMissingHandler:W,setMissingHandler:j,[wo]:ye};return v.datetimeFormats=$,v.numberFormats=re,v.rt=se,v.te=Be,v.tm=G,v.d=ie,v.n=F,v.getDateTimeFormat=O,v.setDateTimeFormat=te,v.mergeDateTimeFormat=le,v.getNumberFormat=de,v.setNumberFormat=M,v.mergeNumberFormat=c,v[_o]=t.__injectWithOption,v[xa]=we,v[wa]=Oe,v[_a]=_e,v}function rf(t){const e=me(t.locale)?t.locale:Kr,r=me(t.fallbackLocale)||$e(t.fallbackLocale)||Ce(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,n=et(t.missing)?t.missing:void 0,a=Pe(t.silentTranslationWarn)||Xt(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=Pe(t.silentFallbackWarn)||Xt(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,o=Pe(t.fallbackRoot)?t.fallbackRoot:!0,s=!!t.formatFallbackMessages,l=Ce(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,f=et(t.postTranslation)?t.postTranslation:void 0,x=me(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,y=!!t.escapeParameterHtml,w=Pe(t.sync)?t.sync:!0;let S=t.messages;if(Ce(t.sharedMessages)){const D=t.sharedMessages;S=Object.keys(D).reduce((z,Y)=>{const Q=z[Y]||(z[Y]={});return lt(Q,D[Y]),z},S||{})}const{__i18n:T,__root:N,__injectWithOption:C}=t,E=t.datetimeFormats,A=t.numberFormats,I=t.flatJson;return{locale:e,fallbackLocale:r,messages:S,flatJson:I,datetimeFormats:E,numberFormats:A,missing:n,missingWarn:a,fallbackWarn:i,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:f,warnHtmlMessage:x,escapeParameter:y,messageResolver:t.messageResolver,inheritLocale:w,__i18n:T,__root:N,__injectWithOption:C}}function Ca(t={},e){{const r=Ia(rf(t)),n={id:r.id,get locale(){return r.locale.value},set locale(a){r.locale.value=a},get fallbackLocale(){return r.fallbackLocale.value},set fallbackLocale(a){r.fallbackLocale.value=a},get messages(){return r.messages.value},get datetimeFormats(){return r.datetimeFormats.value},get numberFormats(){return r.numberFormats.value},get availableLocales(){return r.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(a){},get missing(){return r.getMissingHandler()},set missing(a){r.setMissingHandler(a)},get silentTranslationWarn(){return Pe(r.missingWarn)?!r.missingWarn:r.missingWarn},set silentTranslationWarn(a){r.missingWarn=Pe(a)?!a:a},get silentFallbackWarn(){return Pe(r.fallbackWarn)?!r.fallbackWarn:r.fallbackWarn},set silentFallbackWarn(a){r.fallbackWarn=Pe(a)?!a:a},get modifiers(){return r.modifiers},get formatFallbackMessages(){return r.fallbackFormat},set formatFallbackMessages(a){r.fallbackFormat=a},get postTranslation(){return r.getPostTranslationHandler()},set postTranslation(a){r.setPostTranslationHandler(a)},get sync(){return r.inheritLocale},set sync(a){r.inheritLocale=a},get warnHtmlInMessage(){return r.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){r.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return r.escapeParameter},set escapeParameterHtml(a){r.escapeParameter=a},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(a){},get pluralizationRules(){return r.pluralRules||{}},__composer:r,t(...a){const[i,o,s]=a,l={};let u=null,f=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const x=i;return me(o)?l.locale=o:$e(o)?u=o:Ce(o)&&(f=o),$e(s)?u=s:Ce(s)&&(f=s),Reflect.apply(r.t,r,[x,u||f||{},l])},rt(...a){return Reflect.apply(r.rt,r,[...a])},tc(...a){const[i,o,s]=a,l={plural:1};let u=null,f=null;if(!me(i))throw it(tt.INVALID_ARGUMENT);const x=i;return me(o)?l.locale=o:at(o)?l.plural=o:$e(o)?u=o:Ce(o)&&(f=o),me(s)?l.locale=s:$e(s)?u=s:Ce(s)&&(f=s),Reflect.apply(r.t,r,[x,u||f||{},l])},te(a,i){return r.te(a,i)},tm(a){return r.tm(a)},getLocaleMessage(a){return r.getLocaleMessage(a)},setLocaleMessage(a,i){r.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){r.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(r.d,r,[...a])},getDateTimeFormat(a){return r.getDateTimeFormat(a)},setDateTimeFormat(a,i){r.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){r.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(r.n,r,[...a])},getNumberFormat(a){return r.getNumberFormat(a)},setNumberFormat(a,i){r.setNumberFormat(a,i)},mergeNumberFormat(a,i){r.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=t;i&&i(a,n)}};return n}}const Ta={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function nf({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,a)=>n=[...n,...$e(a.children)?a.children:[a]],[]):e.reduce((r,n)=>{const a=t[n];return a&&(r[n]=a()),r},{})}function Do(t){return ue.Fragment}const No={name:"i18n-t",props:lt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>at(t)||!isNaN(t)}},Ta),setup(t,e){const{slots:r,attrs:n}=e,a=t.i18n||ka({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(r).filter(x=>x!=="_"),o={};t.locale&&(o.locale=t.locale),t.plural!==void 0&&(o.plural=me(t.plural)?+t.plural:t.plural);const s=nf(e,i),l=a[xa](t.keypath,s,o),u=lt({},n),f=me(t.tag)||Ge(t.tag)?t.tag:Do();return ue.h(f,u,l)}}};function af(t){return $e(t)&&!me(t[0])}function Oo(t,e,r,n){const{slots:a,attrs:i}=e;return()=>{const o={part:!0};let s={};t.locale&&(o.locale=t.locale),me(t.format)?o.key=t.format:Ge(t.format)&&(me(t.format.key)&&(o.key=t.format.key),s=Object.keys(t.format).reduce((y,w)=>r.includes(w)?lt({},y,{[w]:t.format[w]}):y,{}));const l=n(t.value,o,s);let u=[o.key];$e(l)?u=l.map((y,w)=>{const S=a[y.type],T=S?S({[y.type]:y.value,index:w,parts:l}):[y.value];return af(T)&&(T[0].key=`${y.type}-${w}`),T}):me(l)&&(u=[l]);const f=lt({},i),x=me(t.tag)||Ge(t.tag)?t.tag:Do();return ue.h(x,f,u)}}const Ro={name:"i18n-n",props:lt({value:{type:Number,required:!0},format:{type:[String,Object]}},Ta),setup(t,e){const r=t.i18n||ka({useScope:"parent",__useComponent:!0});return Oo(t,e,bo,(...n)=>r[_a](...n))}},Lo={name:"i18n-d",props:lt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ta),setup(t,e){const r=t.i18n||ka({useScope:"parent",__useComponent:!0});return Oo(t,e,go,(...n)=>r[wa](...n))}};function of(t,e){const r=t;if(t.mode==="composition")return r.__getInstance(e)||t.global;{const n=r.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function sf(t){const e=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw it(tt.UNEXPECTED_ERROR);const f=of(t,s.$),x=Mo(u);return[Reflect.apply(f.t,f,[...Po(x)]),f]};return{created:(o,s)=>{const[l,u]=e(s);da&&t.global===u&&(o.__i18nWatcher=ue.watch(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{da&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=Mo(s);o.textContent=Reflect.apply(l.t,l,[...Po(u)])}},getSSRProps:o=>{const[s]=e(o);return{textContent:s}}}}function Mo(t){if(me(t))return{path:t};if(Ce(t)){if(!("path"in t))throw it(tt.REQUIRED_VALUE,"path");return t}else throw it(tt.INVALID_VALUE)}function Po(t){const{path:e,locale:r,args:n,choice:a,plural:i}=t,o={},s=n||{};return me(r)&&(o.locale=r),at(a)&&(o.plural=a),at(i)&&(o.plural=i),[e,s,o]}function lf(t,e,...r){const n=Ce(r[0])?r[0]:{},a=!!n.useI18nComponentName;(Pe(n.globalInstall)?n.globalInstall:!0)&&(t.component(a?"i18n":No.name,No),t.component(Ro.name,Ro),t.component(Lo.name,Lo)),t.directive("t",sf(e))}function cf(t,e,r){return{beforeCreate(){const n=ue.getCurrentInstance();if(!n)throw it(tt.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=e,this===this.$root?this.$i18n=Fo(t,i):(i.__injectWithOption=!0,this.$i18n=Ca(i))}else a.__i18n?this===this.$root?this.$i18n=Fo(t,a):this.$i18n=Ca({__i18n:a.__i18n,__injectWithOption:!0,__root:e}):this.$i18n=t;a.__i18nGlobal&&Io(e,a,a),t.__onComponentInstanceCreated(this.$i18n),r.__setInstance(n,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const n=ue.getCurrentInstance();if(!n)throw it(tt.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__deleteInstance(n),delete this.$i18n}}}function Fo(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[wo](e.pluralizationRules||t.pluralizationRules);const r=_n(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(r).forEach(n=>t.mergeLocaleMessage(n,r[n])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,e.datetimeFormats[n])),e.numberFormats&&Object.keys(e.numberFormats).forEach(n=>t.mergeNumberFormat(n,e.numberFormats[n])),t}const uf=Jt("global-vue-i18n");function df(t={},e){const r=__VUE_I18N_LEGACY_API__&&Pe(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,n=Pe(t.globalInjection)?t.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&r?!!t.allowComposition:!0,i=new Map,[o,s]=ff(t,r),l=Jt("");function u(y){return i.get(y)||null}function f(y,w){i.set(y,w)}function x(y){i.delete(y)}{const y={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},get allowComposition(){return a},async install(w,...S){w.__VUE_I18N_SYMBOL__=l,w.provide(w.__VUE_I18N_SYMBOL__,y),!r&&n&&xf(w,y.global),__VUE_I18N_FULL_INSTALL__&&lf(w,y,...S),__VUE_I18N_LEGACY_API__&&r&&w.mixin(cf(s,s.__composer,y));const T=w.unmount;w.unmount=()=>{y.dispose(),T()}},get global(){return s},dispose(){o.stop()},__instances:i,__getInstance:u,__setInstance:f,__deleteInstance:x};return y}}function ka(t={}){const e=ue.getCurrentInstance();if(e==null)throw it(tt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw it(tt.NOT_INSLALLED);const r=hf(e),n=pf(r),a=So(e),i=mf(t,a);if(__VUE_I18N_LEGACY_API__&&r.mode==="legacy"&&!t.__useComponent){if(!r.allowComposition)throw it(tt.NOT_AVAILABLE_IN_LEGACY_MODE);return yf(e,i,n,t)}if(i==="global")return Io(n,t,a),n;if(i==="parent"){let l=gf(r,e,t.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(e);if(s==null){const l=lt({},t);"__i18n"in a&&(l.__i18n=a.__i18n),n&&(l.__root=n),s=Ia(l),vf(o,e),o.__setInstance(e,s)}return s}function ff(t,e,r){const n=ue.effectScope();{const a=__VUE_I18N_LEGACY_API__&&e?n.run(()=>Ca(t)):n.run(()=>Ia(t));if(a==null)throw it(tt.UNEXPECTED_ERROR);return[n,a]}}function hf(t){{const e=ue.inject(t.isCE?uf:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw it(t.isCE?tt.NOT_INSLALLED_WITH_PROVIDE:tt.UNEXPECTED_ERROR);return e}}function mf(t,e){return En(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function pf(t){return t.mode==="composition"?t.global:t.global.__composer}function gf(t,e,r=!1){let n=null;const a=e.root;let i=e.parent;for(;i!=null;){const o=t;if(t.mode==="composition")n=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(i);s!=null&&(n=s.__composer,r&&n&&!n[_o]&&(n=null))}if(n!=null||a===i)break;i=i.parent}return n}function vf(t,e,r){ue.onMounted(()=>{},e),ue.onUnmounted(()=>{t.__deleteInstance(e)},e)}function yf(t,e,r,n={}){const a=e==="local",i=ue.shallowRef(null);if(a&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw it(tt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Pe(n.inheritLocale)?n.inheritLocale:!0,s=ue.ref(a&&o?r.locale.value:me(n.locale)?n.locale:Kr),l=ue.ref(a&&o?r.fallbackLocale.value:me(n.fallbackLocale)||$e(n.fallbackLocale)||Ce(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:s.value),u=ue.ref(_n(s.value,n)),f=ue.ref(Ce(n.datetimeFormats)?n.datetimeFormats:{[s.value]:{}}),x=ue.ref(Ce(n.numberFormats)?n.numberFormats:{[s.value]:{}}),y=a?r.missingWarn:Pe(n.missingWarn)||Xt(n.missingWarn)?n.missingWarn:!0,w=a?r.fallbackWarn:Pe(n.fallbackWarn)||Xt(n.fallbackWarn)?n.fallbackWarn:!0,S=a?r.fallbackRoot:Pe(n.fallbackRoot)?n.fallbackRoot:!0,T=!!n.fallbackFormat,N=et(n.missing)?n.missing:null,C=et(n.postTranslation)?n.postTranslation:null,E=a?r.warnHtmlMessage:Pe(n.warnHtmlMessage)?n.warnHtmlMessage:!0,A=!!n.escapeParameter,I=a?r.modifiers:Ce(n.modifiers)?n.modifiers:{},D=n.pluralRules||a&&r.pluralRules;function P(){return[s.value,l.value,u.value,f.value,x.value]}const z=ue.computed({get:()=>i.value?i.value.locale.value:s.value,set:b=>{i.value&&(i.value.locale.value=b),s.value=b}}),Y=ue.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:b=>{i.value&&(i.value.fallbackLocale.value=b),l.value=b}}),Q=ue.computed(()=>i.value?i.value.messages.value:u.value),B=ue.computed(()=>f.value),$=ue.computed(()=>x.value);function re(){return i.value?i.value.getPostTranslationHandler():C}function L(b){i.value&&i.value.setPostTranslationHandler(b)}function q(){return i.value?i.value.getMissingHandler():N}function W(b){i.value&&i.value.setMissingHandler(b)}function j(b){return P(),b()}function V(...b){return i.value?j(()=>Reflect.apply(i.value.t,null,[...b])):j(()=>"")}function Z(...b){return i.value?Reflect.apply(i.value.rt,null,[...b]):""}function se(...b){return i.value?j(()=>Reflect.apply(i.value.d,null,[...b])):j(()=>"")}function ie(...b){return i.value?j(()=>Reflect.apply(i.value.n,null,[...b])):j(()=>"")}function F(b){return i.value?i.value.tm(b):{}}function ee(b,O){return i.value?i.value.te(b,O):!1}function ne(b){return i.value?i.value.getLocaleMessage(b):{}}function K(b,O){i.value&&(i.value.setLocaleMessage(b,O),u.value[b]=O)}function we(b,O){i.value&&i.value.mergeLocaleMessage(b,O)}function _e(b){return i.value?i.value.getDateTimeFormat(b):{}}function Oe(b,O){i.value&&(i.value.setDateTimeFormat(b,O),f.value[b]=O)}function ye(b,O){i.value&&i.value.mergeDateTimeFormat(b,O)}function Be(b){return i.value?i.value.getNumberFormat(b):{}}function Ie(b,O){i.value&&(i.value.setNumberFormat(b,O),x.value[b]=O)}function G(b,O){i.value&&i.value.mergeNumberFormat(b,O)}const ae={get id(){return i.value?i.value.id:-1},locale:z,fallbackLocale:Y,messages:Q,datetimeFormats:B,numberFormats:$,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(b){i.value&&(i.value.inheritLocale=b)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:I},get pluralRules(){return i.value?i.value.pluralRules:D},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:y},set missingWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackWarn(){return i.value?i.value.fallbackWarn:w},set fallbackWarn(b){i.value&&(i.value.missingWarn=b)},get fallbackRoot(){return i.value?i.value.fallbackRoot:S},set fallbackRoot(b){i.value&&(i.value.fallbackRoot=b)},get fallbackFormat(){return i.value?i.value.fallbackFormat:T},set fallbackFormat(b){i.value&&(i.value.fallbackFormat=b)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(b){i.value&&(i.value.warnHtmlMessage=b)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(b){i.value&&(i.value.escapeParameter=b)},t:V,getPostTranslationHandler:re,setPostTranslationHandler:L,getMissingHandler:q,setMissingHandler:W,rt:Z,d:se,n:ie,tm:F,te:ee,getLocaleMessage:ne,setLocaleMessage:K,mergeLocaleMessage:we,getDateTimeFormat:_e,setDateTimeFormat:Oe,mergeDateTimeFormat:ye,getNumberFormat:Be,setNumberFormat:Ie,mergeNumberFormat:G};function _(b){b.locale.value=s.value,b.fallbackLocale.value=l.value,Object.keys(u.value).forEach(O=>{b.mergeLocaleMessage(O,u.value[O])}),Object.keys(f.value).forEach(O=>{b.mergeDateTimeFormat(O,f.value[O])}),Object.keys(x.value).forEach(O=>{b.mergeNumberFormat(O,x.value[O])}),b.escapeParameter=A,b.fallbackFormat=T,b.fallbackRoot=S,b.fallbackWarn=w,b.missingWarn=y,b.warnHtmlMessage=E}return ue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw it(tt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const b=i.value=t.proxy.$i18n.__composer;e==="global"?(s.value=b.locale.value,l.value=b.fallbackLocale.value,u.value=b.messages.value,f.value=b.datetimeFormats.value,x.value=b.numberFormats.value):a&&_(b)}),ae}const bf=["locale","fallbackLocale","availableLocales"],Ef=["t","rt","d","n","tm"];function xf(t,e){const r=Object.create(null);bf.forEach(n=>{const a=Object.getOwnPropertyDescriptor(e,n);if(!a)throw it(tt.UNEXPECTED_ERROR);const i=ue.isRef(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,n,i)}),t.config.globalProperties.$i18n=r,Ef.forEach(n=>{const a=Object.getOwnPropertyDescriptor(e,n);if(!a||!a.value)throw it(tt.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${n}`,a)})}if(Vd(Yd),jd(wd),qd(Ki),ef(),__INTLIFY_PROD_DEVTOOLS__){const t=Yr();t.__INTLIFY__=!0,Nd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const wf={field:{"mandatory-not-filled":"Mandatory field(s) not filled in"}},_f={appointment:{new:"New","new-aria-label":"Add a new element",error:{"date-not-available":{boxTitle:"New appointment",title:"The staff is already busy in this slot",description:`An appointment is already positioned on this slot.
28
28
  You can modify the time of the appointment by clicking on the button provided for this purpose or confirm the appointment by ignoring the alert.
29
29
 
30
30
  Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},"staff-not-available":{boxTitle:"New appointment",title:"Staff not available",description:`Staff not available
31
31
 
32
- Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},unknown:{boxTitle:"Error",title:"An error occurred",cancel:"Cancel"}},details:{"edit-aria-label":"Edit appointment","close-aria-label":"Close appointment details",start:"Start",end:"End",location:{visio:"Join the visio-conference",agence:"Compute the journey",phone:"Call the contact"},actions:{inProgress:{0:"D\xE9marrer le rendez-vous",1:"Confirmer le changement de status : d\xE9marr\xE9",2:"Confirmer le changement de status : d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"Confirmer le changement de status : termin\xE9",2:"Confirmer le changement de status : termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"Confirmer le changement de status : pas venu",2:"Confirmer le changement de status : pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"Confirmer le changement de status : annul\xE9",2:"Confirmer le changement de status : annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"}},"section-details":{title:"Appointment details",company:"Company",service:"Service",staff:"Staff",status:"Status",contact:"Your contact","contact-ref":"Reference","contact-email":"Email","contact-phone":"Phone"},"section-additional-data":{title:"Additional informations"},status:{accepted:"Accepted",inProgress:"In progress",completed:"Completed",noShow:"No show",pending:"Pending",cancelled:"Cancelled",declined:"Declined"}},tooltip:{google:"Google appointment",microsoft:"Microsoft appointment",personal:"Personal appointment"}},title:{main:"Calendar",day:"{date}",week:"{start} - {end}","week-number":"Week {week}",month:"{date}",daily:"Day",weekly:"Week","view-selector-aria-label":"Select a vue",mobile:{view:"Select a vue",users:"Select users"}},nav:{"menu-aria-label":"Open the menu","previous-aria-label":"Previous period","calendar-aria-label":"Select a custom period","next-aria-label":"Next period"},actions:{"filter-aria-label":"Open filter menu","fav-aria-label":"Save vue as favorite","settings-aria-label":"Open settings menu","more-options-aria-label":"Open more options menu","users-aria-label":"Add a user"},user:{modal:{title:"Add a calendar",subtitle:"Staff selected ({max} maximum):",action:"Add calendars"}},reschedule:{quick:{title:"Reschedule appointment",message:"The appointment has been modified, do you confirm the modification?","draft-warning":"An appointment is being edited, do you want to leave anyway ?",confirm:"Confirm",start:"Start",end:"End",staff:"Staff"},success:"Appointment modification done with success",error:"An error occurred during the reschedule process","error-1000":"Staff not available in this company","error-1001":"Daily quota reached","error-1002":"Weekly quota reached","error-1003":"Scheduling settings violated","error-1004":"Resource not available"},filter:{title:"Filters",personalFilter:"Personal appointment",externalFilter:"External appointment",cancelledFilter:"Cancelled appointment"},othersAgenda:{title:"Others agendas",add:"Add agenda"}},_f={submit:"Submit form"},Sf={title:"Queue","working-hours":{"open-today":"Open today",closed:"Closed",title:"Opening times"},location:{itinerary:"Itinerary"},contact:{"contact-us":"Contact us","call-us":"Call us","send-message":"Send a message"},form:{firstname:{title:"Your first name",placeholder:"Enter @.lower:queue.form.firstname.title"},lastname:{title:"Your last name",placeholder:"Enter @.lower:queue.form.lastname.title"},phone:{title:"Your mobile phone number",placeholder:"Enter a phone number"},submit:"Add me to queue"},powered:"Powered by Agendize",waiting:{people:"{nb} peoples","waiting-time":"About {time} minute(s) of waiting","number-in-queue":"You are number {nb} in the queue",recap:"There are {nb} people(s) ahead. Your waiting time is estimate to {time} minute(s)"}},If={common:{day:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",closed:"Closed"}}},Cf={common:wf,agenda:xf,form:_f,queue:Sf,settings:If},Tf={appointment:{new:"Nouveau","new-aria-label":"Ajouter un nouvel \xE9l\xE9ment",error:{"date-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur est d\xE9j\xE0 occup\xE9 sur ce cr\xE9neau.",description:`Un rendez-vous est d\xE9j\xE0 positionn\xE9 sur ce cr\xE9neau.
33
- Vous pouvez modifier l\u2019heure du rendez-vous en cliquant sur le bouton pr\xE9vu \xE0 cet effet ou confirmer le rendez-vous en ignorant l\u2019alerte.`,confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"staff-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur n'est pas disponible.",description:"Le collaborateur n'est pas disponible.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"appointment-period-rule":{boxTitle:"Nouveau rendez-vous",title:"Rendez-vous en dehors des plages",description:"Le rendez-vous a \xE9t\xE9 pris en dehors des plages ouvertes \xE0 la prise de rendez-vous pour cette entreprise.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-daily":{boxTitle:"Nouveau rendez-vous",title:"Quota quotidien",description:"Le quota quotidien de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-weekly":{boxTitle:"Nouveau rendez-vous",title:"Quota hebdomadaire",description:"Le quota hebdomadaire de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},unknown:{boxTitle:"Erreur",title:"Un erreur est survenu",cancel:"@:common.action.cancel"},continue:"Souhaitez-vous poursuivre cette action ?"},details:{title:"D\xE9tails du rendez-vous","edit-aria-label":"Modifier le rendez-vous","close-aria-label":"Fermer le d\xE9tail du rendez-vous",start:"D\xE9but",end:"Fin","no-service":"Service inexistant",location:{visio:"Participer \xE0 la visioconf\xE9rence",agence:"Calculer l'itin\xE9raire",phone:"Appeler le client"},actions:{tooltip:{contact:"Afficher les d\xE9tails du client",form:"Afficher les d\xE9tails du rendez-vous",noShow:"@:agenda.appointment.details.actions.noShow.0",completed:"@:agenda.appointment.details.actions.completed.0",inProgress:"@:agenda.appointment.details.actions.inProgress.0",cancelled:"@:agenda.appointment.details.actions.cancelled.0"},messages:{confirm:"Confirmer le changement de status : "},inProgress:{0:"D\xE9marrer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",2:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",2:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"@:agenda.appointment.details.actions.messages.confirm pas venu",2:"@:agenda.appointment.details.actions.messages.confirm pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",2:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"},accepted:{0:"Accepter le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",2:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",3:"Chargement",4:"Rendez-vous accept\xE9"},declined:{0:"Refuser le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",2:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",3:"Chargement",4:"Rendez-vous refus\xE9"}},"section-details":{title:"D\xE9tail du rendez-vous",company:"Entreprise",service:"Service",staff:"@:common.field.staff.label",status:"Statut",contact:"Votre client","contact-ref":"R\xE9f\xE9rence","contact-email":"@:common.field.email.label","contact-phone":"T\xE9l\xE9phone",attendees:"Participants",externe:"Connecteur"},"section-additional-data":{title:"Informations compl\xE9mentaires"},status:{accepted:"Accept\xE9",inProgress:"En cours",completed:"Termin\xE9",noShow:"Pas venu",pending:"En attente",cancelled:"Annul\xE9",declined:"Refus\xE9"}},tooltip:{google:"Rendez-vous Google",microsoft:"Rendez-vous Microsoft",ics:"Rendez-vous iCalendar",personal:"Rendez-vous personnel"},external:{"no-title":"Aucun titre"},activities:{"update-status":{completed:"Rendez-vous termin\xE9",inProgress:"Rendez-vous en cours",accepted:"Rendez-vous accept\xE9",cancelled:"Rendez-vous annul\xE9",pending:"Rendez-vous en attente",declined:"Rendez-vous refus\xE9",noShow:"Le client n'est pas venu",unknown:"Status du rendez-vous inconnu",custom:"Statut du rendez-vous modifi\xE9"},creation:{widget:"Rendez-vous pris via le widget",api:"Rendez-vous pris par API",mobile:"Rendez-vis pris par l'application mobile",w2:"Rendez-vous pris via la console",nh:"Rendez-vous pris depuis le calendrier",unknown:"Cr\xE9ation du rendez-vous"},deletion:{staff:"Rendez-vous annul\xE9 par le collaborateur",contact:"Rendez-vous annul\xE9 par le @:crm.contact-trad",unknown:"Rendez-vous annul\xE9"},"update-note":"Note du rendez-vous modifi\xE9","update-form":"Champ du formulaire de rendez-vous modifi\xE9","update-staff":"Collaborateur du rendez-vous modifi\xE9","update-service":"Service du rendez-vous modifi\xE9","update-resource":"Resource du rendez-vous modifi\xE9","update-dates":"Rendez-vous replanifi\xE9","update-start":"D\xE9but du rendez-vous modifi\xE9","update-end":"Fin du rendez-vous modifi\xE9","update-location":"Emplacement du rendez-vous modifi\xE9"}},event:{share:{thanks:{"panel-title":"Cr\xE9er un lien de prise de rendez-vous",title:"F\xE9licitations !",body:"Votre lien est maintenant disponible. Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts"},"panel-title":"Partager",title:"Partager l'invitation \xE0 votre \xE9v\xE9nement !",body:"Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts","close-aria-label":"Fermer le panneau de partage",media:{link:"Lien de partage",qrcode:"QR Code",email:{label:"Partager par email",action:{subject:"Venez vous inscrire \xE0 notre \xE9v\xE9nement",body:"Bonjour,%0A%0A Nous serions heureux de vous rencontrer lors de notre \xE9v\xE9nement {subject} qui aura lieu le {date} \xE0 {time} dans nos locaux.%0A%0AVoici le lien de r\xE9servation {link}."}}}}},fab:{widget:{title:"Rendez-vous client",description:"Cr\xE9ez un nouveau rendez-vous \xE0 l'aide du widget de prise de rendez-vous","aria-label":"@:agenda.fab.widget.description"},perso:{title:"Rendez-vous personnel",description:"Cr\xE9ez un nouvel \xE9v\xE9nement personnel","aria-label":"@:agenda.fab.perso.description"},event:{title:"\xC9v\xE9nement",description:"Cr\xE9ez un \xE9v\xE9nement puis partagez le lien de r\xE9servation o\xF9 vous voulez.","aria-label":"@:agenda.fab.event.description"}},title:{main:"Calendrier",day:"{date}",week:"{start} - {end}","week-number":"Semaine {week}",month:"{date}",daily:"Jour",weekly:"Semaine","view-selector-aria-label":"S\xE9lectionnez une vue",today:"Aujourd'hui",mobile:{view:"Selection de la vue",users:"Selection des utilisateurs"}},nav:{"menu-aria-label":"Acc\xE9der au menu","previous-aria-label":"P\xE9riode pr\xE9c\xE9dente","calendar-aria-label":"S\xE9lectionner une p\xE9riode sp\xE9cifique","next-aria-label":"P\xE9riode suivante"},actions:{"filter-aria-label":"Ouvrir le menu de filtrage","fav-aria-label":"Sauvegarder cette vue comme favorite","settings-aria-label":"Ouvrir le menu de param\xE9trage","more-options-aria-label":"Ouvrir plus d'options","users-aria-label":"Ajouter un utilisateur","add-user-note-label":"Note"},user:{modal:{title:"Ajouter un agenda",subtitle:"\xC9quipier(s) s\xE9lectionn\xE9(s) ({max} maximum):",action:"Ajouter les agendas"}},reschedule:{quick:{title:"Modification du rendez-vous",message:"Le rendez-vous a \xE9t\xE9 modifi\xE9, confirmez-vous la modification ?","draft-warning":"Un rendez-vous est en cours d'\xE9dition, confirmez-vous l'annulation de l'\xE9dition du rendez-vous actuel ?",confirm:"@:common.action.confirm",start:"D\xE9but",end:"Fin",staff:"@:common.field.staffs.label"},success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur est survenue durant la replanification","error-1000":"L'\xE9quipier n'est pas disponible dans cette entreprise","error-1001":"Quota quotidien atteint","error-1002":"Quota hebdomadaire atteint","error-1003":"Borne de prise de rendez-vous non respect\xE9","error-1004":"Resource non disponible"},client:{addnote:{success:"Client annot\xE9",error:"Une erreur est survenue durant l'ajout de la note client"}},filter:{appointment:{title:"Type de rendez-vous",personalFilter:"Rendez-vous personnel",externalFilter:"Rendez-vous externes",cancelledFilter:"Rendez-vous annul\xE9s"},company:{title:"\xC9tablissements"}},othersAgenda:{title:"Autres agendas",add:"Ajouter un agenda"}},kf={main:{skip:"Passer au contenu"},menu:{logout:{title:"Se d\xE9connecter","aria-label":"Se d\xE9connecter","popover-title":"D\xE9connexion","popover-description":"Au plaisir de vous revoir \u{1F609}"},notifications:{title:"Notifications"},extendedMenu:{title:"Menu","aria-label":"Afficher le menu"}},notification:{title:"Notifications ({nb})",event:{title:"{contact} a pris rendez-vous avec vous.",body:"Rendez-vous le {day} {date} \xE0 {time} avec {staff}",info:"{company} - {service}",content:"<b>{client}</b> a pris un nouveau rendez-vous avec <b>{staff}</b> pour le service <b>{service}</b> de l'entreprise <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>.",accepted:"@:agenda.appointment.details.actions.accepted.4",declined:"@:agenda.appointment.details.actions.declined.4","accepte-error":"Une erreur a eu lieu lors de l'acceptation","decline-error":"Une erreur a eu lieu lors du refus",perso:{title:"Un rendez-vous personnel a \xE9t\xE9 pris pour le collaborateur {staff}.",body:"Rendez-vous le {day} {date} \xE0 {time}",info:"{company}",content:"Un nouveau rendez-vous personnel avec <b>{staff}</b> pour l'entreprise <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>."}},period:{new:"Nouvelles",week:"Cette semaine",earlier:"Plus t\xF4t"},date:"Il y a {duration}"},topBar:{avatar:{"aria-label":"Avatar de l'utilisateur"}},"router-meta":{title:"Agendize",calendar:{title:"Calendrier",description:"G\xE9rer vos rendez-vous et planifier votre activit\xE9",filter:"Menu principal",filterDescription:"Afficher/Masquer le menu principal"},settings:{title:"Param\xE9trage",description:"Param\xE9trer votre Agendize en fonction de vos pr\xE9f\xE9rences",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},forms:{title:"Formulaires",description:"G\xE9rer et configurer vos formulaires",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},queues:{title:"Files d'attente",description:"G\xE9rer et configurer vos files d'attente",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},crm:{title:"@:crm.contacts-caps-trad",description:"G\xE9rer et configurer vos @:crm.contacts-trad",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},report:{title:"Rapport",description:"Consulter mes rapports",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"}},login:{"account-selection":{title:"Nous avons trouv\xE9 plusieurs organisations.",subtitle:"Sur quelle organisation souhaitez-vous vous connecter?",next:"@:common.next",right:{0:"@:common.roles.administrator",1:"@:common.roles.scheduler",2:"@:common.roles.reader",owner:"Propri\xE9taire",company:{0:"Administrateur de planification",1:"Personnel de planification",2:"Lecteur de planification",multiple:"Droits multiples"}}}}},Af={buffer:{after:"Buffer",before:"Buffer"}},Df={yes:"Oui",no:"Non",next:"Suivant",copy:"Copi\xE9",error:{404:{title:"Vous semblez perdu !",description:"La page demand\xE9e n'existe pas."}},field:{actif:{label:"Actif"},address:{label:"Adresse"},civility:{label:"Civilit\xE9",placeholder:"Saisissez une civilit\xE9"},description:{label:"Description",placeholder:"Saisissez une @.lower:common.field.description.label"},emails:{label:"Courriel(s)"},email:{label:"Email",placeholder:"Saisissez un @.lower:common.field.email.label"},"external-id":{label:"Id externe",placeholder:"Saisissez un id externe",helper:"L'id externe permet de faire le lien avec votre propre syst\xE8me d'information"},"external-ref":{label:"R\xE9f\xE9rence externe"},"external-calendars":{label:"Calendriers externes"},firstName:{label:"Pr\xE9nom",placeholder:"Saisissez un @.lower:common.field.firstName.label"},icals:{label:"Url du calendrier",placeholder:"Saisissez l'url du calendrier externe"},lastName:{label:"Nom",placeholder:"Saisissez un @.lower:common.field.lastName.label"},name:{label:"@:common.field.lastName.label"},number:{label:"Nombre"},"mandatory-not-filled":"Champ(s) obligatoire non renseign\xE9(s)",parent:{label:"Parent"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},phones:{label:"T\xE9l\xE9phone(s)"},fax:{label:"Fax"},photo:{label:"Photo",placeholder:"Glisser-d\xE9poser une @.lower:common.field.photo.label ou cliquer sur ajouter"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser une @.lower:common.field.illustration.label ou cliquer sur ajouter",button:"Ajouter une illustration"},service:{label:"Service"},services:{label:"Services"},"service-group":{label:"Cat\xE9gorie"},"service-groups":{label:"Cat\xE9gories"},staff:{label:"Collaborateur"},staffs:{label:"Collaborateurs"},"staff-groups":{label:"\xC9quipes"},"staff-group":{label:"\xC9quipe"},tag:{label:"Tags",placeholder:"S\xE9lectionnez un tag"},birthday:{label:"Date de naissance"},gender:{label:"Genre",placeholder:"Saisissez un champ"},language:{notification:{label:"Langue de notification"},label:"Langue"},custom:{label:"Champ custom"}},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},genders:{male:"Homme",female:"Femme",other:"Autre"},action:{accept:"Accepter",duplicate:"Dupliquer",delete:"Supprimer",confirm:"Confirmer",cancel:"Annuler",back:"Retour",close:"Fermer",refuse:"Refuser",save:"Enregistrer",modify:"Modifier",share:"Partager",download:"T\xE9l\xE9charger",validate:"Valider",filter:"Filtrer"},content:{none:"Aucun","none-e":"Aucune"},search:{"by-name":"Recherche par @.lower:common.field.name.label","by-firstName-lastName":"Recherche par @.lower:common.field.lastName.label, @.lower:common.field.firstName.label"},title:{warning:"Avertissement",confirm:"Confirmation ?"},modal:{confirm:"\xCAtes-vous s\xFBr de vouloir continuer ?"},duration:{days:"{days} jour(s)",hours:"{hours} heure(s)",h:"{hours} h",minutes:"{minutes} minute(s)",min:"{minutes} min",seconds:"{seconds} second(s)",s:"{seconds} s","days-with-hours":"@:common.duration.days @:common.duration.hours","days-with-minutes":"@:common.duration.days @:common.duration.minutes","days-with-hours-and-minutes":"@:common.duration.days @:common.duration.hours @:common.duration.minutes","hours-with-minutes":"@:common.duration.hours @:common.duration.minutes"},date:{creation:"Cr\xE9\xE9 le {date}","at-time":"Le {date} \xE0 {time}"},"creation-date":"@:common.date.creation",gender:{female:"Femme",male:"Homme",other:"Autre",undefined:"-"},language:{fr:"Fran\xE7ais",en:"Anglais",es:"Espagnol",jp:"Japonais",de:"Allemand",pt:"Portugais",nl:"Neerlandais",it:"Italien"},notifications:{email:"Courriel",all:"Courriel et SMS",none:"Pas de notification",sms:"SMS"},roles:{reader:"Lecteur",scheduler:"Planificateur",administrator:"Administrateur"},select:{"select-all":"Tout s\xE9lectionner","deselect-all":"Tout d\xE9s\xE9lectionner"},from:"Du",to:"Au",filter:{"erase-filters":"Effacer les filtres","apply-filters":"Appliquer les filtres"}},Nf={"contact-trad":"contact","contact-caps-trad":"contact","contacts-trad":"contacts","contacts-caps-trad":"Contacts",action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-client":"Nouveau @:crm.contact-trad","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","advanced-filter":"Filtres avanc\xE9s","erase-filters":"Effacer les filtres"},filter:{title:"Filtres avanc\xE9s",selects:{empty:"Aucune pr\xE9f\xE9rence",yes:"Oui",no:"Non"},"marketing-consent":{label:"Consentement marketing"},blocked:{label:"Bloqu\xE9"},"last-modification":{label:"Date de derni\xE8re modification"}},"client-details":{tabs:{resume:"R\xE9sum\xE9",histories:"Historique"},actions:{booking:"Prendre RDV",email:"Email",call:"Appeler","add-note":"\xC9crire une note"},resumes:{info:"Informations","client-ref":"R\xE9f\xE9rence @:crm.contact-trad",company:"Entreprise",job:"Poste","contact-info":"Coordonn\xE9es","additionnal-info":"Informations additionnelles","custom-section":"Section custom",emailConsent:{label:"Consentement email",tooltip:"Consentement email donn\xE9"}},histories:{empty:"Aucune activit\xE9 pour ce client",accordeon:{today:"Aujourd'hui",week:"Cette semaine",before:"Plus t\xF4t"},appointment:{new:{title:"Nouveau rendez-vous",description:"Rendez-vous le {startDate} \xE0 {startTime} {staffFullname}"},update:{title:"Rendez-vous modifi\xE9",description:""}},note:{new:{title:"Nouvelle note"}},email:{title:"Nouvel email envoy\xE9"},textMessage:{title:"SMS envoy\xE9"}}},details:{new:"Nouveau @:crm.contact-trad",title:"D\xE9tail du @:crm.contact-trad",note:{placeholder:"Saisissez la note du @:crm.contact-trad",label:"Note du @:crm.contact-trad"},addNote:{success:"Note du @:crm.contact-trad ajout\xE9",error:"Une erreur est survenu lors de l'ajout de note : {code}"},address:{title:"Adresse du @:crm.contact-trad",subTitle:"L\u2019adresse du contact est l\u2019adresse saisie par le @:crm.contact-trad lors de la prise de rendez-vous. Il peut s\u2019agir du lieu de rendez-vous dans le cadre de rendez-vous chez le @:crm.contact-trad."},details:{title:"Coordonn\xE9es",subTitle:"Ces coordonn\xE9es permettent \xE0 vos collaborateurs de contacter le @:crm.contact-trad."},internationalization:{title:"Internationalisation"},communication:{title:"Communication",subTitle:"Cette section vous permet de d\xE9finir le moyen de communication pr\xE9f\xE9rentiel du @:crm.contact-trad pour la r\xE9ception des notifications et des rappels."},"save-success":"Les informations du @:crm.contact-trad ont bien \xE9t\xE9 enregistr\xE9es","save-error":"Erreur lors de l'enregistrement du contact",fields:{address:{label:"Adresse",placeholder:"10 rue de la paix"},address2:{label:"Compl\xE9ment d'adresse",placeholder:"Appartement, immeuble, \xE9tage"},"postal-code":{label:"Code postal",placeholder:"75000"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat",placeholder:"\xC9tat"},country:{label:"Pays"},ref:{label:"R\xE9f\xE9rence @:crm.contact-trad",placeholder:"Saisissez une r\xE9f\xE9rence @:crm.contact-trad"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du @:crm.contact-trad",placeholder:"@:common.field.illustration.placeholder",button:"@:common.field.illustration.button"},"marketing-consent":{label:"Consentement pour les communications marketing"},job:{label:"Poste",placeholder:"Saisissez un @.lower:crm.details.fields.job.label"},company:{label:"Entreprise",placeholder:"Saisissez une entreprise"},email:{label:"Email",placeholder:"Saisissez un email"},phone:{label:"T\xE9l\xE9phone"},fax:{label:"Fax",placeholder:"Saisissez un num\xE9ro de fax"},timeZone:{label:"Fuseau horaire"},notification:{label:"Notifications"},reminder:{label:"Rappels"},commentary:{label:"Commentaire",placeholder:"Saisissez un commentaire"},creation:{label:"Date de cr\xE9ation"}}},menu:{burger:{"aria-label":"Menu"},mobile:"@:crm.contacts-caps-trad",clients:"Tous les @:crm.contacts-trad","client-details":"Gestion du @:crm.contact-trad"},list:{delete:{title:"Suppression de @:crm.contact-trad",confirm:"@:common.action.delete",descriptionN:"{number} @:crm.contacts-trad vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes @:crm.contacts-trad ({number})",search:{placeholder:"Recherchez par nom, pr\xE9nom, t\xE9l\xE9phone, et email",empty:"Aucun r\xE9sultat"},table:{firstName:"Pr\xE9nom",lastName:"Nom",phone:"T\xE9l\xE9phone",email:"Email",tags:"Tags"}},title:{main:"@:crm.contacts-caps-trad"}},Of={action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-form":"Nouveau formulaire","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e",modify:"@:common.action.modify le formulaire"},details:{advanced:{title:"Options avanc\xE9es"},content:"Contenu du formulaire",description:{label:"Description",placeholder:"Saisissez la description du formulaire"},emailNotification:{title:"Destinataires des r\xE9ponses",placeholder:"Saisissez une adresse email"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser l\u2019illustration ou cliquer pour l'ajouter","default-name":"illustration du formulaire",button:"Ajouter une illustration",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le cot\xE9 droit du formulaire."},name:{label:"Nom du formulaire",placeholder:"Saisissez le nom du formulaire"},personalisation:{title:"Personnalisation"},"save-error":"\xC9chec lors de l'enregistrement du formulaire","save-success":"Les configurations du formulaire ont bien \xE9t\xE9 enregistr\xE9es",shared:{title:"Partage",forward:"Acc\xE9der au formulaire",copy:"Copier le lien",company:"S\xE9lectionnez une entreprise",copied:"Lien copi\xE9 dans le presse-papier",qrcode:"QR Code"},submitMessage:{label:"Message de remerciement",placeholder:"Saisissez le message de remerciement \xE0 afficher au client"},tabs:{general:{title:"G\xE9n\xE9ral",ariaLabel:"G\xE9n\xE9ral"},builder:{title:"Builder",ariaLabel:"Builder"}},title:"D\xE9tail du formulaire"},generator:{"drop-here":"D\xE9placer un \xE9l\xE9ment ici",error:{label:"Le champ @:form.generator.fields.common.label.label est obligatoire",modal:"Merci de remplir correctement la configuration du champ"},fields:{tab:{fields:"Champs",statics:"Statiques"},default:{values:{1:"Premier choix",2:"Second choix",3:"Troisi\xE8me choix"}},attributes:{title:"Attributs","external-id":{label:"Cl\xE9 externe",placeholder:"Saisissez une @:form.generator.fields.attributes.external-id.label"},required:"Obligatoire",visible:"Visible"},common:{title:"Propri\xE9t\xE9s",id:"ID",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.common.label.label"},helper:{label:"Message d'aide",placeholder:"Saisissez un @:form.generator.fields.common.helper.label"},placeholder:{label:"Placeholder",placeholder:"Saisissez un @:form.generator.fields.common.placeholder.label",helper:"Le placeholder est le message par d\xE9faut affich\xE9 dans le contenu du champ"}},values:{other:"Permettre \xE0 l'utilisateur de saisir une valeur",multiple:"Permettre \xE0 l'utilisateur de s\xE9lectionner plusieurs valeurs",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.values.label.label"},value:{label:"Valeur",placeholder:"Saisissez une @:form.generator.fields.values.value.label"},title:"Donn\xE9es",add:"Ajouter une valeur"},format:{title:"Validation",type:"Caract\xE8res accept\xE9s",min:{label:"Nombre min. de caract\xE8res",placeholder:"Saisissez un nombre"},max:{label:"Nombre max. de caract\xE8res",placeholder:"Saisissez un nombre"},regex:{label:"Regex",placeholder:"Saisissez une expression r\xE9guli\xE8re"},types:{none:"Tous les caract\xE8res",regex:"Regex",numeric:"Num\xE9rique",alphanumeric:"Alphanum\xE9rique"}}},properties:{input:{label:"Champ texte",description:"Une ligne de texte simple"},textarea:{label:"Textarea",description:"Une ou plusieurs lignes de texte"},checkbox:{label:"Groupe de checkbox",description:"Une ou plusieurs checkbox"},radio:{label:"Groupe de bouton radio",description:"Plusieurs boutons radios"},select:{label:"Liste de s\xE9lection",description:"S\xE9lection dans une liste"},date:{label:"Date",description:"Accepte une date"},file:{label:"Envoi de fichier",description:"T\xE9l\xE9chargement de fichier"},number:{label:"Champ nombre",description:"Uniquement des nombres"},url:{label:"Site web",description:"Accepte une url internet"},address:{label:"Adresse",description:"Adresse postal",subItems:{"crm-address-firstline":{label:"Adresse"},"crm-address-secondline":{label:"Ligne d'adresse secondaire"},"crm-address-city":{label:"Ville"},"crm-address-postalcode":{label:"Code postal"},"crm-address-state":{label:"Etat/Province"},"crm-address-country":{label:"Pays"}}},email:{label:"Champ email",description:"Uniquement des emails"},phone:{label:"Champ t\xE9l\xE9phone",description:"Accepte un num\xE9ro de t\xE9l\xE9phone"},price:{label:"Prix",description:"Uniquement des nombres"},name:{label:"Informations personnelles",description:"Pr\xE9nom et nom",subItems:{"crm-first-name":{label:"Pr\xE9nom"},"crm-last-name":{label:"Nom"}}},rating:{label:"Notation",description:"\xC9chelle de notation"},title:{label:"Titre 1",description:"HTML <h1> tag"},title2:{label:"Titre 2",description:"HTML <h2> tag"},title3:{label:"Titre 3",description:"HTML <h3> tag"},divider:{label:"S\xE9parateur",description:"HTML <hr> tag"},modal:{title:"Propri\xE9t\xE9s du champ"}}},menu:{burger:{"aria-label":"Menu"},mobile:"Formulaires",forms:"Tous les Formulaires","form-details":"Gestion du formulaire","form-results":"Toutes les r\xE9ponses"},list:{delete:{title:"Suppression de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} formulaires vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes formulaires ({number})",search:{placeholder:"Recherchez par nom, titre, et email",empty:"Aucun r\xE9sultat"},table:{name:"Nom",title:"Titre",email:"Email"}},result:{details:{date:"R\xE9ponse du {date} \xE0 {hours}",delete:{confirm:"@:common.action.confirm",description:"Souhaitez-vous r\xE9ellement supprimer cette r\xE9ponse ?",error:"\xC9chec lors de la suppression de la r\xE9ponse",success:"R\xE9ponse supprim\xE9e",title:"@:common.action.delete"},file:"Fichier",optional:"Optionnel"},status:{action:"Changer le statut",error:"\xC9chec lors du changement de statut",field:"Statut",success:"Le changement de statut a bien \xE9t\xE9 effectu\xE9",title:"G\xE9rer le statut",value:{neutral:"Neutre",in_progress:"En cours",finished:"Finalis\xE9",reopening:"R\xE9ouverture"}},list:{title:"@:form.menu.form-results : {title}",search:{placeholder:"Rechercher par email"},delete:{title:"Suppression du r\xE9sultat de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} r\xE9sultats vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"Le r\xE9sultat de {email} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},table:{date:"Date",email:"Email",status:"@:form.result.status.field"}}},submit:"Soumettre le formulaire",title:{main:"Formulaires"}},Rf={action:{cancel:"@:common.action.cancel",delete:"@:common.action.delete",duplicate:"@:common.action.duplicate","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","new-queue":"Nouvelle file d'attente",save:"@:common.action.save"},contact:{"contact-us":"Contactez-nous","call-us":"Appelez-nous","send-message":"Envoyer un message"},form:{firstname:{title:"Votre pr\xE9nom",placeholder:"Saisissez @.lower:queue.form.firstname.title"},lastname:{title:"Votre nom",placeholder:"Saisissez @.lower:queue.form.lastname.title"},phone:{title:"Votre num\xE9ro de t\xE9l\xE9phone portable",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},submit:"Ajoutez moi \xE0 la file d'attente"},"queue-details":{company:{label:"Entreprise",placeholder:"S\xE9lectionner une entreprise"},form:{helper:"Vous pouvez associer un formulaire \xE0 votre file d\u2019attente afin d\u2019ajouter de nouveaux champs \xE0 la page d\u2019inscription de votre file d\u2019attente.",label:"Champs personnalis\xE9s",placeholder:"S\xE9lectionner un formulaire"},"message-customization":{title:"Personnalisation des messages",description:"<p>Dans les champs de personnalisation des messages, vous pouvez utiliser les textes dynamiques suivants :</p><p>- {firstname} sera remplac\xE9 automatiquement par le nom du client.</p><p>- {number_in_line} sera remplac\xE9 par le num\xE9ro d'enregistrement du client dans la file d'attente.</p>"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de la file d\u2019attente"},"public-interface":{action:{access:"Acc\xE9der \xE0 l\u2019interface publique",paste:"Copier le lien"},customization:"Personnalisation de l\u2019interface publique","qr-code":"QR Code :",title:"Interface publique"},"save-error":"\xC9chec lors de l'enregistrement de la file d'attente","save-success":"Les configurations de la file d'attente ont bien \xE9t\xE9 enregistr\xE9es",title:"Configuration g\xE9n\xE9rale","welcome-message":{default:`<b>Bienvenue,</b>
32
+ Would you like to continue this action?`,confirm:"Confirm",cancel:"Cancel"},unknown:{boxTitle:"Error",title:"An error occurred",cancel:"Cancel"}},details:{"edit-aria-label":"Edit appointment","close-aria-label":"Close appointment details",start:"Start",end:"End",location:{visio:"Join the visio-conference",agence:"Compute the journey",phone:"Call the contact"},actions:{inProgress:{0:"D\xE9marrer le rendez-vous",1:"Confirmer le changement de status : d\xE9marr\xE9",2:"Confirmer le changement de status : d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"Confirmer le changement de status : termin\xE9",2:"Confirmer le changement de status : termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"Confirmer le changement de status : pas venu",2:"Confirmer le changement de status : pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"Confirmer le changement de status : annul\xE9",2:"Confirmer le changement de status : annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"}},"section-details":{title:"Appointment details",company:"Company",service:"Service",staff:"Staff",status:"Status",contact:"Your contact","contact-ref":"Reference","contact-email":"Email","contact-phone":"Phone"},"section-additional-data":{title:"Additional informations"},status:{accepted:"Accepted",inProgress:"In progress",completed:"Completed",noShow:"No show",pending:"Pending",cancelled:"Cancelled",declined:"Declined"}},tooltip:{google:"Google appointment",microsoft:"Microsoft appointment",personal:"Personal appointment"}},title:{main:"Calendar",day:"{date}",week:"{start} - {end}","week-number":"Week {week}",month:"{date}",daily:"Day",weekly:"Week","view-selector-aria-label":"Select a vue",mobile:{view:"Select a vue",users:"Select users"}},nav:{"menu-aria-label":"Open the menu","previous-aria-label":"Previous period","calendar-aria-label":"Select a custom period","next-aria-label":"Next period"},actions:{"filter-aria-label":"Open filter menu","fav-aria-label":"Save vue as favorite","settings-aria-label":"Open settings menu","more-options-aria-label":"Open more options menu","users-aria-label":"Add a user"},user:{modal:{title:"Add a calendar",subtitle:"Staff selected ({max} maximum):",action:"Add calendars"}},reschedule:{quick:{title:"Reschedule appointment",message:"The appointment has been modified, do you confirm the modification?","draft-warning":"An appointment is being edited, do you want to leave anyway ?",confirm:"Confirm",start:"Start",end:"End",staff:"Staff"},success:"Appointment modification done with success",error:"An error occurred during the reschedule process","error-1000":"Staff not available in this company","error-1001":"Daily quota reached","error-1002":"Weekly quota reached","error-1003":"Scheduling settings violated","error-1004":"Resource not available"},filter:{title:"Filters",personalFilter:"Personal appointment",externalFilter:"External appointment",cancelledFilter:"Cancelled appointment"},othersAgenda:{title:"Others agendas",add:"Add agenda"}},Sf={submit:"Submit form"},If={title:"Queue","working-hours":{"open-today":"Open today",closed:"Closed",title:"Opening times"},location:{itinerary:"Itinerary"},contact:{"contact-us":"Contact us","call-us":"Call us","send-message":"Send a message"},form:{firstname:{title:"Your first name",placeholder:"Enter @.lower:queue.form.firstname.title"},lastname:{title:"Your last name",placeholder:"Enter @.lower:queue.form.lastname.title"},phone:{title:"Your mobile phone number",placeholder:"Enter a phone number"},submit:"Add me to queue"},powered:"Powered by Agendize",waiting:{people:"{nb} peoples","waiting-time":"About {time} minute(s) of waiting","number-in-queue":"You are number {nb} in the queue",recap:"There are {nb} people(s) ahead. Your waiting time is estimate to {time} minute(s)"}},Cf={common:{day:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",closed:"Closed"}},"planning-details":{error:{startAfterEnd:"Start time must be less than end time",noHour:"A schedule has not been entered",overlap:"This day's schedules overlap",general:"Hours do not match"}}},Tf={common:wf,agenda:_f,form:Sf,queue:If,settings:Cf},kf={appointment:{new:"Nouveau","new-aria-label":"Ajouter un nouvel \xE9l\xE9ment",error:{"date-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur est d\xE9j\xE0 occup\xE9 sur ce cr\xE9neau.",description:`Un rendez-vous est d\xE9j\xE0 positionn\xE9 sur ce cr\xE9neau.
33
+ Vous pouvez modifier l\u2019heure du rendez-vous en cliquant sur le bouton pr\xE9vu \xE0 cet effet ou confirmer le rendez-vous en ignorant l\u2019alerte.`,confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"staff-not-available":{boxTitle:"Nouveau rendez-vous",title:"Le collaborateur n'est pas disponible.",description:"Le collaborateur n'est pas disponible.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"appointment-period-rule":{boxTitle:"Nouveau rendez-vous",title:"Rendez-vous en dehors des plages",description:"Le rendez-vous a \xE9t\xE9 pris en dehors des plages ouvertes \xE0 la prise de rendez-vous pour cette entreprise.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-daily":{boxTitle:"Nouveau rendez-vous",title:"Quota quotidien",description:"Le quota quotidien de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},"max-appointment-weekly":{boxTitle:"Nouveau rendez-vous",title:"Quota hebdomadaire",description:"Le quota hebdomadaire de rendez-vous pour ce client a \xE9t\xE9 atteint.",confirm:"@:common.action.confirm",cancel:"@:common.action.cancel"},unknown:{boxTitle:"Erreur",title:"Un erreur est survenu",cancel:"@:common.action.cancel"},continue:"Souhaitez-vous poursuivre cette action ?"},details:{title:"D\xE9tails du rendez-vous","edit-aria-label":"Modifier le rendez-vous","close-aria-label":"Fermer le d\xE9tail du rendez-vous",start:"D\xE9but",end:"Fin","no-service":"Service inexistant",location:{visio:"Participer \xE0 la visioconf\xE9rence",agence:"Calculer l'itin\xE9raire",phone:"Appeler le client"},actions:{tooltip:{contact:"Afficher les d\xE9tails du client",form:"Afficher les d\xE9tails du rendez-vous",noShow:"@:agenda.appointment.details.actions.noShow.0",completed:"@:agenda.appointment.details.actions.completed.0",inProgress:"@:agenda.appointment.details.actions.inProgress.0",cancelled:"@:agenda.appointment.details.actions.cancelled.0"},messages:{confirm:"Confirmer le changement de status : "},inProgress:{0:"D\xE9marrer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",2:"@:agenda.appointment.details.actions.messages.confirm d\xE9marr\xE9",3:"Chargement",4:"Rendez-vous d\xE9marr\xE9"},completed:{0:"Terminer le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",2:"@:agenda.appointment.details.actions.messages.confirm termin\xE9",3:"Chargement",4:"Rendez-vous termin\xE9"},noShow:{0:"Le client n'est pas venu",1:"@:agenda.appointment.details.actions.messages.confirm pas venu",2:"@:agenda.appointment.details.actions.messages.confirm pas venu",3:"Chargement",4:"Le client n'est pas venu"},cancelled:{0:"Annuler le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",2:"@:agenda.appointment.details.actions.messages.confirm annul\xE9",3:"Chargement",4:"Rendez-vous annul\xE9"},accepted:{0:"Accepter le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",2:"@:agenda.appointment.details.actions.messages.confirm accept\xE9",3:"Chargement",4:"Rendez-vous accept\xE9"},declined:{0:"Refuser le rendez-vous",1:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",2:"@:agenda.appointment.details.actions.messages.confirm refus\xE9",3:"Chargement",4:"Rendez-vous refus\xE9"}},"section-details":{title:"D\xE9tail du rendez-vous",company:"Entreprise",service:"Service",staff:"@:common.field.staff.label",status:"Statut",contact:"Votre client","contact-ref":"R\xE9f\xE9rence","contact-email":"@:common.field.email.label","contact-phone":"T\xE9l\xE9phone",attendees:"Participants",externe:"Connecteur"},"section-additional-data":{title:"Informations compl\xE9mentaires"},status:{accepted:"Accept\xE9",inProgress:"En cours",completed:"Termin\xE9",noShow:"Pas venu",pending:"En attente",cancelled:"Annul\xE9",declined:"Refus\xE9"}},tooltip:{google:"Rendez-vous Google",microsoft:"Rendez-vous Microsoft",ics:"Rendez-vous iCalendar",personal:"Rendez-vous personnel"},external:{"no-title":"Aucun titre"},activities:{"update-status":{completed:"Rendez-vous termin\xE9",inProgress:"Rendez-vous en cours",accepted:"Rendez-vous accept\xE9",cancelled:"Rendez-vous annul\xE9",pending:"Rendez-vous en attente",declined:"Rendez-vous refus\xE9",noShow:"Le client n'est pas venu",unknown:"Status du rendez-vous inconnu",custom:"Statut du rendez-vous modifi\xE9"},creation:{widget:"Rendez-vous pris via le widget",api:"Rendez-vous pris par API",mobile:"Rendez-vis pris par l'application mobile",w2:"Rendez-vous pris via la console",nh:"Rendez-vous pris depuis le calendrier",unknown:"Cr\xE9ation du rendez-vous"},deletion:{staff:"Rendez-vous annul\xE9 par le collaborateur",contact:"Rendez-vous annul\xE9 par le @:crm.contact-trad",unknown:"Rendez-vous annul\xE9"},"update-note":"Note du rendez-vous modifi\xE9","update-form":"Champ du formulaire de rendez-vous modifi\xE9","update-staff":"Collaborateur du rendez-vous modifi\xE9","update-service":"Service du rendez-vous modifi\xE9","update-resource":"Resource du rendez-vous modifi\xE9","update-dates":"Rendez-vous replanifi\xE9","update-start":"D\xE9but du rendez-vous modifi\xE9","update-end":"Fin du rendez-vous modifi\xE9","update-location":"Emplacement du rendez-vous modifi\xE9"}},event:{share:{thanks:{"panel-title":"Cr\xE9er un lien de prise de rendez-vous",title:"F\xE9licitations !",body:"Votre lien est maintenant disponible. Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts"},"panel-title":"Partager",title:"Partager l'invitation \xE0 votre \xE9v\xE9nement !",body:"Vous pouvez copier/coller le lien ci-dessous et imprimer le QRCode \xE0 partager \xE0 vos contacts","close-aria-label":"Fermer le panneau de partage",media:{link:"Lien de partage",qrcode:"QR Code",email:{label:"Partager par email",action:{subject:"Venez vous inscrire \xE0 notre \xE9v\xE9nement",body:"Bonjour,%0A%0A Nous serions heureux de vous rencontrer lors de notre \xE9v\xE9nement {subject} qui aura lieu le {date} \xE0 {time} dans nos locaux.%0A%0AVoici le lien de r\xE9servation {link}."}}}}},fab:{widget:{title:"Rendez-vous client",description:"Cr\xE9ez un nouveau rendez-vous \xE0 l'aide du widget de prise de rendez-vous","aria-label":"@:agenda.fab.widget.description"},perso:{title:"Rendez-vous personnel",description:"Cr\xE9ez un nouvel \xE9v\xE9nement personnel","aria-label":"@:agenda.fab.perso.description"},event:{title:"\xC9v\xE9nement",description:"Cr\xE9ez un \xE9v\xE9nement puis partagez le lien de r\xE9servation o\xF9 vous voulez.","aria-label":"@:agenda.fab.event.description"}},title:{main:"Calendrier",day:"{date}",week:"{start} - {end}","week-number":"Semaine {week}",month:"{date}",daily:"Jour",weekly:"Semaine","view-selector-aria-label":"S\xE9lectionnez une vue",today:"Aujourd'hui",mobile:{view:"Selection de la vue",users:"Selection des utilisateurs"}},nav:{"menu-aria-label":"Acc\xE9der au menu","previous-aria-label":"P\xE9riode pr\xE9c\xE9dente","calendar-aria-label":"S\xE9lectionner une p\xE9riode sp\xE9cifique","next-aria-label":"P\xE9riode suivante"},actions:{"filter-aria-label":"Ouvrir le menu de filtrage","fav-aria-label":"Sauvegarder cette vue comme favorite","settings-aria-label":"Ouvrir le menu de param\xE9trage","more-options-aria-label":"Ouvrir plus d'options","users-aria-label":"Ajouter un utilisateur","add-user-note-label":"Note"},user:{modal:{title:"Ajouter un agenda",subtitle:"\xC9quipier(s) s\xE9lectionn\xE9(s) ({max} maximum):",action:"Ajouter les agendas"}},reschedule:{quick:{title:"Modification du rendez-vous",message:"Le rendez-vous a \xE9t\xE9 modifi\xE9, confirmez-vous la modification ?","draft-warning":"Un rendez-vous est en cours d'\xE9dition, confirmez-vous l'annulation de l'\xE9dition du rendez-vous actuel ?",confirm:"@:common.action.confirm",start:"D\xE9but",end:"Fin",staff:"@:common.field.staffs.label"},success:"Modification du rendez-vous effectu\xE9e avec succ\xE8s",error:"Une erreur est survenue durant la replanification","error-1000":"L'\xE9quipier n'est pas disponible dans cette entreprise","error-1001":"Quota quotidien atteint","error-1002":"Quota hebdomadaire atteint","error-1003":"Borne de prise de rendez-vous non respect\xE9","error-1004":"Resource non disponible"},client:{addnote:{success:"Client annot\xE9",error:"Une erreur est survenue durant l'ajout de la note client"}},filter:{appointment:{title:"Type de rendez-vous",personalFilter:"Rendez-vous personnel",externalFilter:"Rendez-vous externes",cancelledFilter:"Rendez-vous annul\xE9s"},company:{title:"\xC9tablissements"}},othersAgenda:{title:"Autres agendas",add:"Ajouter un agenda"}},Af={main:{skip:"Passer au contenu"},menu:{logout:{title:"Se d\xE9connecter","aria-label":"Se d\xE9connecter","popover-title":"D\xE9connexion","popover-description":"Au plaisir de vous revoir \u{1F609}"},notifications:{title:"Notifications"},extendedMenu:{title:"Menu","aria-label":"Afficher le menu"}},notification:{title:"Notifications ({nb})",event:{title:"{contact} a pris rendez-vous avec vous.",body:"Rendez-vous le {day} {date} \xE0 {time} avec {staff}",info:"{company} - {service}",content:"<b>{client}</b> a pris un nouveau rendez-vous avec <b>{staff}</b> pour le service <b>{service}</b> de l'entreprise <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>.",accepted:"@:agenda.appointment.details.actions.accepted.4",declined:"@:agenda.appointment.details.actions.declined.4","accepte-error":"Une erreur a eu lieu lors de l'acceptation","decline-error":"Une erreur a eu lieu lors du refus",perso:{title:"Un rendez-vous personnel a \xE9t\xE9 pris pour le collaborateur {staff}.",body:"Rendez-vous le {day} {date} \xE0 {time}",info:"{company}",content:"Un nouveau rendez-vous personnel avec <b>{staff}</b> pour l'entreprise <b>{company}</b> le <b>{startDate}</b> \xE0 <b>{startHour}</b>."}},period:{new:"Nouvelles",week:"Cette semaine",earlier:"Plus t\xF4t"},date:"Il y a {duration}"},topBar:{avatar:{"aria-label":"Avatar de l'utilisateur"}},"router-meta":{title:"Agendize",calendar:{title:"Calendrier",description:"G\xE9rer vos rendez-vous et planifier votre activit\xE9",filter:"Menu principal",filterDescription:"Afficher/Masquer le menu principal"},settings:{title:"Param\xE9trage",description:"Param\xE9trer votre Agendize en fonction de vos pr\xE9f\xE9rences",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},forms:{title:"Formulaires",description:"G\xE9rer et configurer vos formulaires",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},queues:{title:"Files d'attente",description:"G\xE9rer et configurer vos files d'attente",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},crm:{title:"@:crm.contacts-caps-trad",description:"G\xE9rer et configurer vos @:crm.contacts-trad",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"},report:{title:"Rapport",description:"Consulter mes rapports",menu:"Menu principal",menuDescription:"Afficher/Masquer le menu principal"}},login:{"account-selection":{title:"Nous avons trouv\xE9 plusieurs organisations.",subtitle:"Sur quelle organisation souhaitez-vous vous connecter?",next:"@:common.next",right:{0:"@:common.roles.administrator",1:"@:common.roles.scheduler",2:"@:common.roles.reader",owner:"Propri\xE9taire",company:{0:"Administrateur de planification",1:"Personnel de planification",2:"Lecteur de planification",multiple:"Droits multiples"}}}}},Df={buffer:{after:"Buffer",before:"Buffer"}},Nf={yes:"Oui",no:"Non",next:"Suivant",copy:"Copi\xE9",error:{404:{title:"Vous semblez perdu !",description:"La page demand\xE9e n'existe pas."}},field:{actif:{label:"Actif"},address:{label:"Adresse"},civility:{label:"Civilit\xE9",placeholder:"Saisissez une civilit\xE9"},description:{label:"Description",placeholder:"Saisissez une @.lower:common.field.description.label"},emails:{label:"Courriel(s)"},email:{label:"Email",placeholder:"Saisissez un @.lower:common.field.email.label"},"external-id":{label:"Id externe",placeholder:"Saisissez un id externe",helper:"L'id externe permet de faire le lien avec votre propre syst\xE8me d'information"},"external-ref":{label:"R\xE9f\xE9rence externe"},"external-calendars":{label:"Calendriers externes"},firstName:{label:"Pr\xE9nom",placeholder:"Saisissez un @.lower:common.field.firstName.label"},icals:{label:"Url du calendrier",placeholder:"Saisissez l'url du calendrier externe"},lastName:{label:"Nom",placeholder:"Saisissez un @.lower:common.field.lastName.label"},name:{label:"@:common.field.lastName.label"},number:{label:"Nombre"},"mandatory-not-filled":"Champ(s) obligatoire non renseign\xE9(s)",parent:{label:"Parent"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},phones:{label:"T\xE9l\xE9phone(s)"},fax:{label:"Fax"},photo:{label:"Photo",placeholder:"Glisser-d\xE9poser une @.lower:common.field.photo.label ou cliquer sur ajouter"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser une @.lower:common.field.illustration.label ou cliquer sur ajouter",button:"Ajouter une illustration"},service:{label:"Service"},services:{label:"Services"},"service-group":{label:"Cat\xE9gorie"},"service-groups":{label:"Cat\xE9gories"},staff:{label:"Collaborateur"},staffs:{label:"Collaborateurs"},"staff-groups":{label:"\xC9quipes"},"staff-group":{label:"\xC9quipe"},tag:{label:"Tags",placeholder:"S\xE9lectionnez un tag"},birthday:{label:"Date de naissance"},gender:{label:"Genre",placeholder:"Saisissez un champ"},language:{notification:{label:"Langue de notification"},label:"Langue"},custom:{label:"Champ custom"}},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},genders:{male:"Homme",female:"Femme",other:"Autre"},action:{accept:"Accepter",duplicate:"Dupliquer",delete:"Supprimer",confirm:"Confirmer",cancel:"Annuler",back:"Retour","back-to-list":"Retour \xE0 la liste",close:"Fermer",refuse:"Refuser",save:"Enregistrer",modify:"Modifier",share:"Partager",download:"T\xE9l\xE9charger",validate:"Valider",filter:"Filtrer"},content:{none:"Aucun","none-e":"Aucune"},search:{"by-name":"Recherche par @.lower:common.field.name.label","by-firstName-lastName":"Recherche par @.lower:common.field.lastName.label, @.lower:common.field.firstName.label"},title:{warning:"Avertissement",confirm:"Confirmation ?"},modal:{confirm:"\xCAtes-vous s\xFBr de vouloir continuer ?"},duration:{part:{hour:"1 heure",minute:"1 minute",hours:"{hours} heures",minutes:"{minutes} minutes"},days:"{days} jour(s)",hour:"@:common.duration.part.hour|@:common.duration.part.hours",hours:"{hours} heure(s)",h:"{hours} h",minute:"@:common.duration.part.minute|@:common.duration.part.minutes",minutes:"{minutes} minute(s)",min:"{minutes} min",seconds:"{seconds} second(s)",s:"{seconds} s","days-with-hours":"@:common.duration.days @:common.duration.hours","days-with-minutes":"@:common.duration.days @:common.duration.minutes","days-with-hours-and-minutes":"@:common.duration.days @:common.duration.hours @:common.duration.minutes","hours-with-minutes":"@:common.duration.hours @:common.duration.minutes","hour-and-minute":"@:common.duration.part.hour @:common.duration.part.minute","hours-and-minute":"@:common.duration.part.hours @:common.duration.part.minute","hours-and-minutes":"@:common.duration.part.hours @:common.duration.part.minutes","hour-and-minutes":"@:common.duration.part.hour @:common.duration.part.minutes"},date:{creation:"Cr\xE9\xE9 le {date}","at-time":"Le {date} \xE0 {time}"},"creation-date":"@:common.date.creation",gender:{female:"Femme",male:"Homme",other:"Autre",undefined:"-"},language:{fr:"Fran\xE7ais",en:"Anglais",es:"Espagnol",jp:"Japonais",de:"Allemand",pt:"Portugais",nl:"Neerlandais",it:"Italien"},notifications:{email:"Courriel",all:"Courriel et SMS",none:"Pas de notification",sms:"SMS"},roles:{reader:"Lecteur",scheduler:"Planificateur",administrator:"Administrateur"},select:{"select-all":"Tout s\xE9lectionner","deselect-all":"Tout d\xE9s\xE9lectionner"},from:"Du",to:"Au",filter:{"erase-filters":"Effacer les filtres","apply-filters":"Appliquer les filtres"}},Of={"contact-trad":"contact","contact-caps-trad":"contact","contacts-trad":"contacts","contacts-caps-trad":"Contacts",action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-client":"Nouveau @:crm.contact-trad","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","advanced-filter":"Filtres avanc\xE9s","erase-filters":"Effacer les filtres"},filter:{title:"Filtres avanc\xE9s",selects:{empty:"Aucune pr\xE9f\xE9rence",yes:"Oui",no:"Non"},"marketing-consent":{label:"Consentement marketing"},blocked:{label:"Bloqu\xE9"},"last-modification":{label:"Date de derni\xE8re modification"}},"client-details":{tabs:{resume:"R\xE9sum\xE9",histories:"Historique"},actions:{booking:"Prendre RDV",email:"Email",call:"Appeler","add-note":"\xC9crire une note"},resumes:{info:"Informations","client-ref":"R\xE9f\xE9rence @:crm.contact-trad",company:"Entreprise",job:"Poste","contact-info":"Coordonn\xE9es","additionnal-info":"Informations additionnelles","custom-section":"Section custom",emailConsent:{label:"Consentement email",tooltip:"Consentement email donn\xE9"}},histories:{empty:"Aucune activit\xE9 pour ce client",accordeon:{today:"Aujourd'hui",week:"Cette semaine",before:"Plus t\xF4t"},appointment:{new:{title:"Nouveau rendez-vous",description:"Rendez-vous le {startDate} \xE0 {startTime} {staffFullname}"},update:{title:"Rendez-vous modifi\xE9",description:""}},note:{new:{title:"Nouvelle note"}},email:{title:"Nouvel email envoy\xE9"},textMessage:{title:"SMS envoy\xE9"}}},details:{new:"Nouveau @:crm.contact-trad",title:"D\xE9tail du @:crm.contact-trad",note:{placeholder:"Saisissez la note du @:crm.contact-trad",label:"Note du @:crm.contact-trad"},addNote:{success:"Note du @:crm.contact-trad ajout\xE9",error:"Une erreur est survenu lors de l'ajout de note : {code}"},address:{title:"Adresse du @:crm.contact-trad",subTitle:"L\u2019adresse du contact est l\u2019adresse saisie par le @:crm.contact-trad lors de la prise de rendez-vous. Il peut s\u2019agir du lieu de rendez-vous dans le cadre de rendez-vous chez le @:crm.contact-trad."},details:{title:"Coordonn\xE9es",subTitle:"Ces coordonn\xE9es permettent \xE0 vos collaborateurs de contacter le @:crm.contact-trad."},internationalization:{title:"Internationalisation"},communication:{title:"Communication",subTitle:"Cette section vous permet de d\xE9finir le moyen de communication pr\xE9f\xE9rentiel du @:crm.contact-trad pour la r\xE9ception des notifications et des rappels."},"save-success":"Les informations du @:crm.contact-trad ont bien \xE9t\xE9 enregistr\xE9es","save-error":"Erreur lors de l'enregistrement du contact",fields:{address:{label:"Adresse",placeholder:"10 rue de la paix"},address2:{label:"Compl\xE9ment d'adresse",placeholder:"Appartement, immeuble, \xE9tage"},"postal-code":{label:"Code postal",placeholder:"75000"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat",placeholder:"\xC9tat"},country:{label:"Pays"},ref:{label:"R\xE9f\xE9rence @:crm.contact-trad",placeholder:"Saisissez une r\xE9f\xE9rence @:crm.contact-trad"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du @:crm.contact-trad",placeholder:"@:common.field.illustration.placeholder",button:"@:common.field.illustration.button"},"marketing-consent":{label:"Consentement pour les communications marketing"},job:{label:"Poste",placeholder:"Saisissez un @.lower:crm.details.fields.job.label"},company:{label:"Entreprise",placeholder:"Saisissez une entreprise"},email:{label:"Email",placeholder:"Saisissez un email"},phone:{label:"T\xE9l\xE9phone"},fax:{label:"Fax",placeholder:"Saisissez un num\xE9ro de fax"},timeZone:{label:"Fuseau horaire"},notification:{label:"Notifications"},reminder:{label:"Rappels"},commentary:{label:"Commentaire",placeholder:"Saisissez un commentaire"},creation:{label:"Date de cr\xE9ation"}}},menu:{burger:{"aria-label":"Menu"},mobile:"@:crm.contacts-caps-trad",clients:"Tous les @:crm.contacts-trad","client-details":"Gestion du @:crm.contact-trad"},list:{delete:{title:"Suppression de @:crm.contact-trad",confirm:"@:common.action.delete",descriptionN:"{number} @:crm.contacts-trad vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes @:crm.contacts-trad ({number})",search:{placeholder:"Recherchez par nom, pr\xE9nom, t\xE9l\xE9phone, et email",empty:"Aucun r\xE9sultat"},table:{firstName:"Pr\xE9nom",lastName:"Nom",phone:"T\xE9l\xE9phone",email:"Email",tags:"Tags"}},title:{main:"@:crm.contacts-caps-trad"}},Rf={action:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-form":"Nouveau formulaire","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e",modify:"@:common.action.modify le formulaire"},details:{advanced:{title:"Options avanc\xE9es"},content:"Contenu du formulaire",description:{label:"Description",placeholder:"Saisissez la description du formulaire"},emailNotification:{title:"Destinataires des r\xE9ponses",placeholder:"Saisissez une adresse email"},illustration:{label:"Illustration",placeholder:"Glisser-d\xE9poser l\u2019illustration ou cliquer pour l'ajouter","default-name":"illustration du formulaire",button:"Ajouter une illustration",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le cot\xE9 droit du formulaire."},name:{label:"Nom du formulaire",placeholder:"Saisissez le nom du formulaire"},personalisation:{title:"Personnalisation"},"save-error":"\xC9chec lors de l'enregistrement du formulaire","save-success":"Les configurations du formulaire ont bien \xE9t\xE9 enregistr\xE9es",shared:{title:"Partage",forward:"Acc\xE9der au formulaire",copy:"Copier le lien",company:"S\xE9lectionnez une entreprise",copied:"Lien copi\xE9 dans le presse-papier",qrcode:"QR Code"},submitMessage:{label:"Message de remerciement",placeholder:"Saisissez le message de remerciement \xE0 afficher au client"},tabs:{general:{title:"G\xE9n\xE9ral",ariaLabel:"G\xE9n\xE9ral"},builder:{title:"Builder",ariaLabel:"Builder"}},title:"D\xE9tail du formulaire"},generator:{"drop-here":"D\xE9placer un \xE9l\xE9ment ici",error:{label:"Le champ @:form.generator.fields.common.label.label est obligatoire",modal:"Merci de remplir correctement la configuration du champ"},fields:{tab:{fields:"Champs",statics:"Statiques"},default:{values:{1:"Premier choix",2:"Second choix",3:"Troisi\xE8me choix"}},attributes:{title:"Attributs","external-id":{label:"Cl\xE9 externe",placeholder:"Saisissez une @:form.generator.fields.attributes.external-id.label"},required:"Obligatoire",visible:"Visible"},common:{title:"Propri\xE9t\xE9s",id:"ID",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.common.label.label"},helper:{label:"Message d'aide",placeholder:"Saisissez un @:form.generator.fields.common.helper.label"},placeholder:{label:"Placeholder",placeholder:"Saisissez un @:form.generator.fields.common.placeholder.label",helper:"Le placeholder est le message par d\xE9faut affich\xE9 dans le contenu du champ"}},values:{other:"Permettre \xE0 l'utilisateur de saisir une valeur",multiple:"Permettre \xE0 l'utilisateur de s\xE9lectionner plusieurs valeurs",label:{label:"Label",placeholder:"Saisissez un @:form.generator.fields.values.label.label"},value:{label:"Valeur",placeholder:"Saisissez une @:form.generator.fields.values.value.label"},title:"Donn\xE9es",add:"Ajouter une valeur"},format:{title:"Validation",type:"Caract\xE8res accept\xE9s",min:{label:"Nombre min. de caract\xE8res",placeholder:"Saisissez un nombre"},max:{label:"Nombre max. de caract\xE8res",placeholder:"Saisissez un nombre"},regex:{label:"Regex",placeholder:"Saisissez une expression r\xE9guli\xE8re"},types:{none:"Tous les caract\xE8res",regex:"Regex",numeric:"Num\xE9rique",alphanumeric:"Alphanum\xE9rique"}}},properties:{input:{label:"Champ texte",description:"Une ligne de texte simple"},textarea:{label:"Textarea",description:"Une ou plusieurs lignes de texte"},checkbox:{label:"Groupe de checkbox",description:"Une ou plusieurs checkbox"},radio:{label:"Groupe de bouton radio",description:"Plusieurs boutons radios"},select:{label:"Liste de s\xE9lection",description:"S\xE9lection dans une liste"},date:{label:"Date",description:"Accepte une date"},file:{label:"Envoi de fichier",description:"T\xE9l\xE9chargement de fichier"},number:{label:"Champ nombre",description:"Uniquement des nombres"},url:{label:"Site web",description:"Accepte une url internet"},address:{label:"Adresse",description:"Adresse postal",subItems:{"crm-address-firstline":{label:"Adresse"},"crm-address-secondline":{label:"Ligne d'adresse secondaire"},"crm-address-city":{label:"Ville"},"crm-address-postalcode":{label:"Code postal"},"crm-address-state":{label:"Etat/Province"},"crm-address-country":{label:"Pays"}}},email:{label:"Champ email",description:"Uniquement des emails"},phone:{label:"Champ t\xE9l\xE9phone",description:"Accepte un num\xE9ro de t\xE9l\xE9phone"},price:{label:"Prix",description:"Uniquement des nombres"},name:{label:"Informations personnelles",description:"Pr\xE9nom et nom",subItems:{"crm-first-name":{label:"Pr\xE9nom"},"crm-last-name":{label:"Nom"}}},rating:{label:"Notation",description:"\xC9chelle de notation"},title:{label:"Titre 1",description:"HTML <h1> tag"},title2:{label:"Titre 2",description:"HTML <h2> tag"},title3:{label:"Titre 3",description:"HTML <h3> tag"},divider:{label:"S\xE9parateur",description:"HTML <hr> tag"},modal:{title:"Propri\xE9t\xE9s du champ"}}},menu:{burger:{"aria-label":"Menu"},mobile:"Formulaires",forms:"Tous les Formulaires","form-details":"Gestion du formulaire","form-results":"Toutes les r\xE9ponses"},list:{delete:{title:"Suppression de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} formulaires vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},title:"Mes formulaires ({number})",search:{placeholder:"Recherchez par nom, titre, et email",empty:"Aucun r\xE9sultat"},table:{name:"Nom",title:"Titre",email:"Email"}},result:{details:{date:"R\xE9ponse du {date} \xE0 {hours}",delete:{confirm:"@:common.action.confirm",description:"Souhaitez-vous r\xE9ellement supprimer cette r\xE9ponse ?",error:"\xC9chec lors de la suppression de la r\xE9ponse",success:"R\xE9ponse supprim\xE9e",title:"@:common.action.delete"},file:"Fichier",optional:"Optionnel"},status:{action:"Changer le statut",error:"\xC9chec lors du changement de statut",field:"Statut",success:"Le changement de statut a bien \xE9t\xE9 effectu\xE9",title:"G\xE9rer le statut",value:{neutral:"Neutre",in_progress:"En cours",finished:"Finalis\xE9",reopening:"R\xE9ouverture"}},list:{title:"@:form.menu.form-results : {title}",search:{placeholder:"Rechercher par email"},delete:{title:"Suppression du r\xE9sultat de formulaire",confirm:"@:common.action.delete",descriptionN:"{number} r\xE9sultats vont \xEAtre supprim\xE9s, confirmez-vous la suppression ?",description1:"Le r\xE9sultat de {email} va \xEAtre supprim\xE9, confirmez-vous la suppression ?"},table:{date:"Date",email:"Email",status:"@:form.result.status.field"}}},submit:"Soumettre le formulaire",title:{main:"Formulaires"}},Lf={action:{cancel:"@:common.action.cancel",delete:"@:common.action.delete",duplicate:"@:common.action.duplicate","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e","new-queue":"Nouvelle file d'attente",save:"@:common.action.save"},contact:{"contact-us":"Contactez-nous","call-us":"Appelez-nous","send-message":"Envoyer un message"},form:{firstname:{title:"Votre pr\xE9nom",placeholder:"Saisissez @.lower:queue.form.firstname.title"},lastname:{title:"Votre nom",placeholder:"Saisissez @.lower:queue.form.lastname.title"},phone:{title:"Votre num\xE9ro de t\xE9l\xE9phone portable",placeholder:"Saisissez un num\xE9ro de t\xE9l\xE9phone"},submit:"Ajoutez moi \xE0 la file d'attente"},"queue-details":{company:{label:"Entreprise",placeholder:"S\xE9lectionner une entreprise"},form:{helper:"Vous pouvez associer un formulaire \xE0 votre file d\u2019attente afin d\u2019ajouter de nouveaux champs \xE0 la page d\u2019inscription de votre file d\u2019attente.",label:"Champs personnalis\xE9s",placeholder:"S\xE9lectionner un formulaire"},"message-customization":{title:"Personnalisation des messages",description:"<p>Dans les champs de personnalisation des messages, vous pouvez utiliser les textes dynamiques suivants :</p><p>- {firstname} sera remplac\xE9 automatiquement par le nom du client.</p><p>- {number_in_line} sera remplac\xE9 par le num\xE9ro d'enregistrement du client dans la file d'attente.</p>"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de la file d\u2019attente"},"public-interface":{action:{access:"Acc\xE9der \xE0 l\u2019interface publique",paste:"Copier le lien"},customization:"Personnalisation de l\u2019interface publique","qr-code":"QR Code :",title:"Interface publique"},"save-error":"\xC9chec lors de l'enregistrement de la file d'attente","save-success":"Les configurations de la file d'attente ont bien \xE9t\xE9 enregistr\xE9es",title:"Configuration g\xE9n\xE9rale","welcome-message":{default:`<b>Bienvenue,</b>
34
34
  Veuillez vous enregistrer pour vous inscrire dans la file d'attente.`,placeholder:"Saisissez un message de bienvenue",label:"Message d\u2019accueil"},"thanks-message":{default:`<b>Merci {'{'}firstname{'}'},</b>
35
- Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placeholder:"Saisissez un message de remerciement",label:"Message de remerciement"}},"queue-monitoring":{title:"@:queue.menu.queue-monitoring",waiting_people:"En attente : {count} personnes",finish_people:"Termin\xE9 : {count} personnes",medium_waiting_time:"Attente moyenne : {waiting_time}","called-clients":"Clients appel\xE9s ",button:{absent:"Non pr\xE9sent",finish:"Termin\xE9"},search:{placeholder:"Rechercher par nom"},table:{number:"Num\xE9ro",fullname:"Nom",email:"Email",phone:"T\xE9l\xE9phone",waitingTime:"Temps d'attente"}},queues:{delete:{title:"Suppression de la file d'attente",confirm:"@:common.action.delete",descriptionN:"{number} files d'attente vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"},search:{empty:"Aucune file d'attente",placeholder:"@:common.search.by-name"},table:{name:"@:common.field.name.label",author:"@:common.field.email.label"},title:"Files d'attente ({number})"},location:{itinerary:"Itin\xE9raire"},menu:{burger:{"aria-label":"Afficher le menu"},"queue-monitoring":"Suivi","queue-settings":"Configuration g\xE9n\xE9rale","queue-new":"Nouvelle files d'attente",queues:"Toutes les files d'attente","close-aria-label":"Fermer le menu des files d'attente"},powered:"Propuls\xE9 par Agendize",title:"File d'attente",waiting:{people:"{nb} personne(s)","waiting-time":"Environ {time} minute(s) d'attente","number-in-queue":"Vous \xEAtes le num\xE9ro {nb} dans la file d'attente",recap:"Il y a {nb} personne(s) devant vous. Votre temps d\u2019attente est estim\xE9 \xE0 {time} minute(s)"},"working-hours":{"open-today":"Ouvert aujourd'hui",closed:"Ferm\xE9e",title:"Les horaires"}},Lf={filter:{title:"Filtres",description:"Les filtres vous permettent d\u2019acc\xE9der facilement \xE0 la donn\xE9e qui vous int\xE9resse en fonction de la p\xE9riode, des \xE9tablissements et des collaborateurs.",period:"P\xE9riode",companies:"\xC9tablissements",users:"Collaborateurs"}},Mf={list:{title:"Visualiser mes statistiques",subTitle:"Analyser les performances de vos \xE9tablissements sur une p\xE9riode donn\xE9e.",filter:"Filtrer",loading:"Chargement de mes rapports",account:"S\xE9lectionner le compte \xE0 afficher",error:"Une erreur a eu lieu lors du chargement de mes rapports"}},Pf={recents:"Recherches r\xE9centes",loading:"Loading",company:{desc:"Rechercher puis s\xE9lectionner une entreprise",placeholder:"Rechercher par nom, adresse","image-alt":"Image de l'entreprise","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'entreprise"},service:{desc:"Rechercher puis s\xE9lectionner un service parmi ceux disponibles dans votre entreprise.",placeholder:"Rechercher par nom",duration:"{duration} minutes","image-alt":"Image du service","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le service"},staff:{desc:"Rechercher puis s\xE9lectionner un \xE9quipier parmi ceux affect\xE9s \xE0 votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'\xE9quipier","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'\xE9quipier"},contact:{desc:"Rechercher puis s\xE9lectionner un @:crm.contact-trad parmi la liste des @:crm.contacts-trad de votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du @:crm.contact-trad","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le @:crm.contact-trad"},user:{desc:"Rechercher puis s\xE9lectionner un utilisateur parmi ceux affect\xE9s \xE0 votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'utilisateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'utilisateur"},noResults:{title:"Aucun r\xE9sultat trouv\xE9",desc:"Nous n'avons trouv\xE9 aucun r\xE9sultat correspondant \xE0 votre recherche."}},Ff={action:{cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-company":"Nouvelle entreprise","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e"},calendar:{title:"Param\xE9trage",subTitle:"Param\xE9trez et personnalisez l\u2019interface de votre calendrier.",back:"@:common.action.back",save:"@:common.action.save",displaySettings:{title:"Options d\u2019affichage",subTitle:"Les options d\u2019affichage vous permettent de personnaliser votre calendrier en fonction de vos besoins et de votre activit\xE9.",days:{label:"Jours de la semaine",helper:"Vous pouvez s\xE9lectionner les jours de la semaine \xE0 afficher dans votre calendrier."},limit:{min:"Borne de d\xE9but",max:"Borne de fin",helper:"Le calendrier affichera uniquement les rendez-vous entre ces deux bornes."},color:{label:"Couleur du cr\xE9neau",helper:"Ce param\xE8tre sera appliqu\xE9 uniquement lorsque le calendrier d\u2019un seul collaborateur sera affich\xE9.",values:{staff:"Couleur du collaborateur",service:"Couleur du service","service-group":"Couleur du groupe de service"}}},action:{save:{success:"Le param\xE8trage a bien \xE9t\xE9 enregistr\xE9",error:"Echec lors de l'enregistrement du param\xE8trage"}}},common:{day:{monday:"Lundi",tuesday:"Mardi",wednesday:"Mercredi",thursday:"Jeudi",friday:"Vendredi",saturday:"Samedi",sunday:"Dimanche",closed:"Ferm\xE9e"},book:"Prendre rendez-vous",preview:"Pr\xE9visualisation",duration:"{minutes} minutes",error:{"max-user":"Le nombre maximum d'utilisateur est atteint. Merci de vous rapprocher de votre support pour augmenter le seuil","save-error":"Une erreur a eu lieu lors de la sauvegarde"},number:{2:"deux",3:"trois",4:"quatre",5:"cinq",6:"six",7:"sept",8:"huit",9:"neuf",10:"dix"}},companies:{title:"Mon organisation ({number})",table:{name:"@:common.field.name.label",address:"@:common.field.address.label",email:"@:common.field.email.label"},search:{empty:"Aucune entreprise",placeholder:"Rechercher par nom, code postal, email"},delete:{title:"Suppression de compagnies",confirm:"@:common.action.delete",descriptionN:"{number} compagnies vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"}},"companies-cards":{create:"Ajouter un \xE9tablissement",duplicate:"Dupliquer un \xE9tablissement",delete:"Supprimer les \xE9tablissements",title:"G\xE9rer mon organisation",subTitle:"Une organisation peut comprendre plusieurs \xE9tablissements, \xE9quipes et collaborateurs. Le param\xE9trage de votre organisation vous permet d\u2019uniformiser votre r\xE9seau.",tab:{companies:{title:"Mes \xE9tablissements"},services:{title:"Mes services"},staffs:{title:"Mes collaborateurs"}}},"company-home":{previous:"Retour \xE0 la liste",update:"@:common.action.modify",tab:{home:{title:"Mon \xE9tablissement"},staffGroups:{title:"Les \xE9quipes"},staffs:{title:"Les collaborateurs"},serviceGroups:{title:"Les cat\xE9gories"},services:{title:"Les services"}}},"company-details":{tabs:{general:"Informations g\xE9n\xE9rales",hours:"Horaires d'ouverture",advanced:"Avanc\xE9s"},new:{title:"Ajouter un \xE9tablissement",subTitle:"Un \xE9tablissement est un lieu de travail pour vos collaborateur ainsi qu\u2019un point d\u2019accueil pour vos clients."},title:"Informations g\xE9n\xE9rales","save-success":"Les informations de l'entreprise ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'entreprise",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre entreprise","default-name":"Image de l'entreprise",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre entreprise",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre entreprise sur le mini-site.",button:"@:common.field.illustration.button"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},address:{title:"Adresse de votre entreprise",subtitle:"L\u2019adresse de l\u2019entreprise doit \xEAtre l\u2019adresse \xE0 laquelle vous serez en capacit\xE9 de recevoir vos @:crm.contacts-trad suite \xE0 une prise de rendez-vous.",label:"@:common.field.address.label",placeholder:"1 place g\xE9n\xE9ral De Gaulle"},address2:{label:"Compl\xE9ment d\u2019adresse"},zipcode:{label:"Code postal",placeholder:"75008"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat"},country:{label:"Pays"},contact:{title:"Coordonn\xE9es",subtitle:"Ces coordonn\xE9es permettront \xE0 vos @:crm.contacts-trad de vous contacter."},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone"},web:{title:"Site internet et r\xE9seaux sociaux",subtitle:"Ces informations permettent de mettre en avant votre site internet et vos r\xE9seaux sociaux dans les diff\xE9rents supports \xE0 destination de vos @:crm.contacts-trad"},website:{label:"Site internet",placeholder:"Saisissez l\u2019url d\u2019un site internet de l'\xE9tablissement"},facebook:{label:"Facebook"},instagram:{label:"Instagram"},twitter:{label:"Twitter"},linkedin:{label:"LinkedIn"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},optional:"Optionnel","external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},timeZone:{title:"Fuseau horaire",label:"Fuseau horaire principal",placeholder:"S\xE9lectionnez un fuseau horaire",helper:"Le fuseau horaire permet de d\xE9finir sur quel fuseau horaire se trouve votre entreprise. Chacun des collaborateurs cr\xE9\xE9s dans votre compagnie auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019entreprise",open:"Ouverture","all-weeks":"Toutes les semaines",edit:"Modifier les horaires","apply-to-staff":"Appliquer les horaires aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement remplacer les horaires aux collaborateurs ?"},unavailable:{title:"Indisponibilit\xE9s","apply-to-staff":"Appliquer les indisponibilit\xE9s aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement ajouter les indisponibilit\xE9s des collaborateurs ?"}},"custom-hours":{period:{date:"Du {start} au {end}","all-week":"Toutes les semaines","custom-week":"Une semaine sur {occurrence}"},edit:"Modifier la p\xE9riode",add:"Ajouter une p\xE9riode sp\xE9cifique",save:"@:common.action.save",validate:"@:common.action.validate",name:{title:"Nom de la p\xE9riode",placeholder:"Saisissez le nom de la p\xE9riode"},terminal:{title:"Bornes de la p\xE9riode"},"week-occurrence":{"start-text":"R\xE9p\xE9ter tou(te)s les","end-text":"semaine(s)"},"day-tooltip":"Vous pouvez s\xE9lectionner les jours de la semaine faisant l\u2019objet d\u2019horaires sp\xE9cifiques. Un jour non s\xE9lectionn\xE9 prendra les horaires par d\xE9faut du collaborateurs."},"integration-modal":{title:"Int\xE9grer votre widget",body:"Vous pouvez int\xE9grer le widget de l\u2019\xE9tablissement \xE0 votre site internet via notre int\xE9gration iframe ou simplement partager le lien dans une publication sur vos r\xE9seaux.",link:"Lien",iframe:"Int\xE9gration iframe"},"qr-code-modal":{title:"Partager votre widget",body:"Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\u2019expiera pas dans le temps sauf si vous supprimez l\u2019\xE9tablissement."},menu:{burger:{"aria-label":"Afficher le menu"},mobile:"Param\xE8tres",companies:"Toutes les entreprises","company-details":"Informations g\xE9n\xE9rales","company-new":"Nouvelle entreprise",services:"@:common.field.services.label","services-groups":"@:common.field.service-groups.label","staffs-groups":"@:common.field.staff-groups.label",staffs:"@:common.field.staffs.label"},profile:{title:"G\xE9rer mon profil",personal_data:"Mes donn\xE9es personnelles",preferences:"Mes pr\xE9f\xE9rences",cancel:"@:common.action.cancel",save:"@:common.action.save",error:{100:"Le mot de passe ne correspond pas",101:"Votre compte est v\xE9rouill\xE9",102:"Le mot de passe ne r\xE9pond pas aux crit\xE8res de validation d\u2019un mot de passe"},password:{title:"Modifier mon mot de passe",change:"@:common.action.modify",current:"Mot de passe actuel",new:"Nouveau mot de passe",confirm:"Confirmer mot de passe",notmatch:"Les mots de passe ne correspondent pas!","change-success":"Votre mot de passe a bien \xE9t\xE9 modifi\xE9","change-error":"Votre mot de passe n'a p\xFB \xEAtre modifi\xE9",label:"Mot de passe",reset:"Modifier"},photo:{label:"Photo","default-name":"Image de profil"},firstname:"Pr\xE9nom",lastname:"Nom",contact:{title:"Coordonn\xE9es",description:"Il s'agit des coordonn\xE9es sur lesquelles vous pourrez \xEAtre contact\xE9"},email:"Email",security:{title:"S\xE9curit\xE9",description:"Vous pouvez modifier votre mot de passe"},"change-success":"Votre profil a bien \xE9t\xE9 modifi\xE9","change-error":"Votre profil n'a p\xFB \xEAtre modifi\xE9",default_account:"Organisation par d\xE9faut",language:{title:"Langue et r\xE9gion",description:"G\xE9rez la langue et le fuseau horaire utilis\xE9s pour personnaliser votre exp\xE9rience Agendize.",label:"Langue"},timezone:"Zone horaire"},services:{title:"@:common.field.services.label",new:"Nouveau service",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce service ? | Souhaitez-vous r\xE9ellement supprimer ces {n} services ?",search:{placeholder:"@:common.search.by-name"},group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",groups:"@:common.field.service-groups.label",enabled:"@:common.field.actif.label"},no:"Aucun service",deleted:"Service supprim\xE9 | Services supprim\xE9s"},"service-details":{title:"Service",new:"Nouveau service",clone:"Duplication : {name}","save-success":"Les informations du service ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement du service",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},actif:{label:"@:common.field.actif.label",placeholder:"Rendre actif ou inactif le service",helper:"D\xE9sactive le service pour qu'il ne soit plus disponible sur le widget de prise de rendez-vous"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du service",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le service sur le mini-site.",button:"@:common.field.illustration.button"},duration:{label:"Dur\xE9e",placeholder:"S\xE9lectionnez la dur\xE9e du service"},quantity:{label:"Capacit\xE9",placeholder:"Saisissez la capacit\xE9 du service",helper:"Nombre de r\xE9servations pouvant \xEAtre prises pour ce service sur un m\xEAme cr\xE9neau horaire."},color:{label:"Couleur du service",placeholder:"S\xE9lectionnez la couleur du service",helper:"La couleur du service peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur un service en particulier"},colors:{red:"Rouge",blue:"Bleu",purple:"Violet",green:"Vert",orange:"Orange"},location:{title:"Emplacements du service",subtitle:"Vous pouvez proposer diff\xE9rents types d\u2019emplacement \xE0 votre service",label:"Emplacement du service",placeholder:"S\xE9lectionnez l'emplacement du service"},locations:{company:"Adresse de l'entreprise",companyAddress:"@:settings.service-details.locations.company",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence",visioconference:"@:settings.service-details.locations.visio",videoconference:"@:settings.service-details.locations.visio",custom:"Emplacement personnalis\xE9"},price:{title:"Prix du service",subtitle:"Vous pouvez fixer le prix de votre service si celui-ci est un service payant.",label:"Prix {currency}",placeholder:"Saisissez un prix"},category:{title:"Cat\xE9gorie du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Cat\xE9gorie",placeholder:"S\xE9lectionnez une cat\xE9gorie"},visibility:{title:"Visibilit\xE9 du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Visibilit\xE9",placeholder:"S\xE9lectionnez une visibilit\xE9"},visibilities:{public:"Public",backoffice:"Priv\xE9",hidden:"Dissimul\xE9",disabled:"D\xE9sactiv\xE9"},staffs:{title:"Collaborateurs en charge du service",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},buffer:{title:"Temps avant et apr\xE8s le rendez-vous",subtitle:"Le temps avant et apr\xE8s le rendez-vous permet d\u2019inclure un d\xE9lai suppl\xE9mentaire de pr\xE9paration ou de rangement dans votre rendez-vous",before:{label:"Dur\xE9e",actif:"Activer un d\xE9lai avant rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps avant le rendez-vous"},after:{label:"Dur\xE9e",actif:"Activer un d\xE9lai apr\xE8s rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps apr\xE8s le rendez-vous"}},validation:{title:"Validation du rendez-vous",subtitle:"Vous pouvez d\xE9sactiver la validation automatique du rendez-vous au profit d\u2019une validation manuelle par le collaborateur ou par le manager",actif:"Valider manuellement le rendez-vous",label:"Mode de validation",placeholder:"S\xE9lectionnez le mode de validation du service"},validations:{location:"Param\xE9trage de l'entreprise",auto:"Aucune",manager:"Par le manager",staff:"Par le collaborateur"},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"}},serviceGroups:{title:"@:common.field.service-groups.label",new:"Nouvelle cat\xE9gorie",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",search:{placeholder:"@:common.search.by-name"},parent:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",parent:"@:common.field.parent.label"},no:"Aucune cat\xE9gorie",deleted:"Cat\xE9gorie supprim\xE9e | Cat\xE9gories supprim\xE9es"},"serviceGroup-details":{title:"Nouvelle cat\xE9gorie","save-success":"Les informations de la cat\xE9gorie ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de la cat\xE9gorie",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration de la cat\xE9gorie",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer la cat\xE9gorie sur le mini-site.",button:"@:common.field.illustration.button"},parent:{label:"Cat\xE9gorie parente",helper:"La cat\xE9gorie parente permet de faire des liens hi\xE9rarchiques entre vos cat\xE9gories. ",none:"Aucune"},color:{label:"Couleur de la cat\xE9gorie",placeholder:"S\xE9lectionnez la couleur de la cat\xE9gorie",helper:"La couleur de la cat\xE9gorie peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur des services d\u2019une cat\xE9gorie particuli\xE8re"},service:{title:"Service de la cat\xE9gorie",description:"Les services de la cat\xE9gorie sont les services disponibles lorsque vos @:crm.contacts-trad se rendent dans la page d\xE9di\xE9e \xE0 cette cat\xE9gorie dans la mini-site."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"}},staffs:{title:"@:common.field.staffs.label",new:"Nouveau collaborateur",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",updated:"Le collaborateur a bien \xE9t\xE9 modifi\xE9",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce collaborateur ? | Souhaitez-vous r\xE9ellement supprimer ces {n} collaborateurs ?",search:{placeholder:"@:common.search.by-firstName-lastName"},group:{none:"@:common.content.none"},columns:{firstname:"@:common.field.firstName.label",lastname:"@:common.field.lastName.label",enabled:"@:common.field.actif.label"},no:"Aucun collaborateur",deleted:"Collaborateur supprim\xE9 | Collaborateurs supprim\xE9s"},"staff-details":{new:"Nouveau collaborateur",clone:"Duplication : {lastName} {firstName}","save-success":"Les informations du collaborateur ont bien \xE9t\xE9 enregistr\xE9es",title:{label:"Titre",placeholder:"@:common.content.none"},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},gender:{label:"Genre",placeholder:"@:common.content.none"},genders:{male:"Homme",female:"Femme",other:"Autre"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},photo:{label:"@:common.field.photo.label",placeholder:"@:common.field.photo.placeholder",helper:"La photo sera utilis\xE9e afin d\u2019identifier le collaborateur sur le mini-site.","default-name":"Image du collaborateur",button:"@:common.field.illustration.button"},contact:{title:"Coordonn\xE9es du collaborateur",subtitle:"Les coordonn\xE9es du collaborateur sont utilis\xE9es pour les notifications email et SMS."},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{fixe:"T\xE9l\xE9phone fixe",mobile:"T\xE9l\xE9phone mobile"},group:{title:"@:common.field.staff-group.label",subtitle:"Les \xE9quipes permettent de g\xE9rer plusieurs collaborateurs comme un ensemble. Des disponibilit\xE9s peuvent \xEAtre affect\xE9es \xE0 une \xE9quipe et impacter la disponibilit\xE9 de l\u2019ensemble des collaborateurs de cette \xE9quipe.",label:"@:common.field.staff-group.label",placeholder:"@:common.content.none-e"},availableForWidget:{title:"Disponibilit\xE9 \xE0 la prise de rendez-vous",subtitle:"Lorsqu\u2019un collaborateur n\u2019est pas disponible \xE0 la prise de rendez-vous en ligne, aucun rendez-vous ne peut \xEAtre pris avec lui.",label:"Disponible \xE0 la prise de rendez-vous"},hours:{title:"Disponibilit\xE9s du collaborateur"},unavailable:{title:"Indisponibilit\xE9s"},services:{title:"Services dispens\xE9s",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},rights:{title:"Droits d'acc\xE9s"},role:{label:"R\xF4le",placeholder:"@:common.content.none",helper:"Le r\xF4le permet de d\xE9finir les droits d\u2019acc\xE8s et fonctionnalit\xE9s accessibles pour le collaborateur"},roles:{none:"@:common.content.none",reader:"@:common.roles.reader",scheduler:"@:common.roles.scheduler",administrator:"@:common.roles.administrator"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},"external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"}},staffGroups:{title:"@:common.field.staff-groups.label",new:"Nouvelle \xE9quipe",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette \xE9quipe ? | Souhaitez-vous r\xE9ellement supprimer ces {n} \xE9quipes ?",search:{placeholder:"@:common.search.by-name"},membersCount:"1 collaborateur | {n} collaborateurs",noMember:"Aucun collaborateur",group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",staffsCount:"@:common.field.number.label"},no:"Aucune \xE9quipe",deleted:"\xC9quipe supprim\xE9e | \xC9quipes supprim\xE9es"},"staffGroup-details":{title:"Nouvelle \xE9quipe","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de l'\xE9quipe"},color:{label:"Couleur de l'\xE9quipe",placeholder:"S\xE9lectionnez la couleur de l'\xE9quipe",helper:"La couleur de l'\xE9quipe peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur les collaborateur d\u2019une \xE9quipe en particulier"},staff:{title:"Collaborateur de l'\xE9quipe",description:"Les collaborateurs de l\u2019\xE9quipe seront li\xE9s par des propri\xE9t\xE9s communes."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},availability:{title:"Disponibilit\xE9s de l\u2019\xE9quipe"}},tabs:{general:"G\xE9n\xE9ral",hours:"Horaires",availability:"Disponibilit\xE9s",advanced:"Avanc\xE9s",options:"Options",availabilities:"Disponibilit\xE9s",rights:"Droits d'acc\xE8s"},"working-hours":{title:"Horaires d'ouverture",save:"@:common.action.validate"}},zf={fields:{optional:"Optionnel",mandatory:"Ce champ est obligatoire",file:{defaultPlaceHolder:"Glisser-d\xE9poser votre fichier pour l'ajouter",defaultButtonLabel:"Ajouter un fichier",info:"(jusqu'\xE0 {size}mb, formats accept\xE9s : {format})"}},error:{empty:"Ce champ ne peut \xEAtre vide",regex:"Le format du champ est invalid",phone:"Le num\xE9ro de t\xE9l\xE9phone n'est pas un num\xE9ro valide",format:"Le format du champ est invalid",businessHours:{invalid:"Horaire non valide"},file:{size:"La taille de votre fichier d\xE9passe la limite",format:"Format de fichier non accept\xE9"},api:{message:"Une erreur api est survenu (code : {code}, message: {message})"}},buttons:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel"},businessHours:{"day-enabled-aria-label":"Activer les horaires pour le {day}","day-disabled-aria-label":"D\xE9sactiver les horaires pour le {day}","add-aria-label":"Ajouter des horaires pour le {day}","remove-aria-label":"Supprimer la ligne d'horaire pour le {day}"}},Bf={agenda:Tf,agendize:kf,calendar:Af,common:Df,crm:Nf,"event-booking":{new:"Nouveau rendez-vous",reschedule:"Replanifier",subject:"Sujet",date:"Horaires",duration:"Dur\xE9e","duration-error":{"over-1-day":"La dur\xE9e ne peux pas \xEAtre de 1 jour ou plus","negative-null":"La date de fin ne peut pas \xEAtre avant la date de d\xE9but","over-days":"Les dates de d\xE9but et fin doivent \xEAtre le m\xEAme jour"},timeZone:"Fuseau horaire",allDay:"Journ\xE9e enti\xE8re",recurrent:{once:"Une fois"},company:"Entreprise",searchCompany:"Rechercher une entreprise",service:"@:common.field.service.label",searchService:"Rechercher un service",staff:"@:common.field.staff.label",searchStaff:"Rechercher un \xE9quipier",contact:{title:"@:crm.contact-caps-trad",save:"@:common.action.save",search:"Rechercher un @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createTitle:"Ajouter un @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contact-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone",placeholder:"@:common.field.phone.placeholder"}},note:{label:"Note du rendez-vous",placeholder:"Saisissez une note de rendez-vous"},save:"@:common.action.save",back:"@:common.action.back,",close:"@:common.action.close",event:{"panel-title":"Cr\xE9er un \xE9v\xE9nement",title:{label:"\xC9v\xE9nement",placeholder:"Saisissez le nom de votre \xE9v\xE9nement",helper:"Il s\u2019agit du nom de l\u2019\xE9v\xE9nement que vous souhaitez cr\xE9er."},capacity:{label:"Capacit\xE9",placeholder:"Saisissez une capacit\xE9"},description:{label:"Description",placeholder:"Saisissez la description de l\u2019\xE9v\xE9nement"}}},"event-booking-widget":{title:{panel:"Nouveau rendez-vous",company:"Pour quelle entreprise souhaitez-vous prendre rendez-vous ?",service:"Quel est le besoin du @:crm.contact-trad ?",staff:"Avec quel collaborateur ?",date:"Quelles disponibilit\xE9s vous convient le mieux ?","contact-qualif":"S\u2019agit-il d\u2019un nouveau client ?","contact-new":"Quelles sont les informations personnelles du client ? ","contact-search":"Quel client souhaite prendre rendez-vous ?","form-field":"Une derni\xE8re petite chose ...",recap:"Souhaitez-vous confirmer le rendez-vous ?",confirmation:"",error:""},date:{"search-more":"Voir plus de disponibilit\xE9s","search-more-aria-label":"Voir plus de disponibilit\xE9s",empty:"Aucune disponibilit\xE9 n'a \xE9t\xE9 trouv\xE9 entre les dates {start} et {end} "},contact:{save:"Ajouter le @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contact-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"@:common.field.phone.label",placeholder:"@:common.field.phone.placeholder"}},"form-field":{validate:"Suivant"},recap:{date:"{start} \xE0 {end}",validate:"Confirmer le rendez-vous"},confirmation:{title:"Le rendez-vous est confirm\xE9 !",description:"Le rendez-vous a bien \xE9t\xE9 cr\xE9\xE9. Vous pouvez le retrouver d\xE8s \xE0 pr\xE9sent dans votre calendrier."},error:{messages:{back:{staff:"Retour \xE0 la selection d'\xE9quipier",date:"Retour \xE0 la selection de cr\xE9neau",contact:"Retour \xE0 la selection de @:crm.contact-trad"}},unknown:{title:"Une erreur est survenue",description:"Veuillez contacter le support pour plus de precisions."},"staff-not-found":{title:"\xC9quipier inconnu",description:"L'\xE9quipier s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.staff"},"date-not-found":{title:"Cr\xE9neau non disponible",description:"Le cr\xE9neau s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-daily":{title:"Limite atteinte",description:"La limite quotidienne de rendez-vous pris pour ce client est d\xE9pass\xE9.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-weekly":{title:"Limite atteinte",description:"La limite hebdomadaire de rendez-vous pris pour ce client est d\xE9pass\xE9.",footerButton:"@:event-booking-widget.error.messages.back.date"},"contact-blocked":{title:"@:crm.contact-caps-trad bloqu\xE9",description:"La prise de rendez-vous est bloqu\xE9e pour ce @:crm.contact-trad.",footerButton:"@:event-booking-widget.error.messages.back.contact"}}},form:Of,queue:Rf,reporting:Lf,report:Mf,search:Pf,settings:Ff,system:zf},Uf={en:Cf,fr:Bf},Vf=t=>uf({legacy:!1,locale:t,fallbackLocale:"fr",globalInjection:!0,messages:Uf});var Y0="",qf=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r};const jf={class:"az-flex az-flex-col az-gap-2"},Hf={class:"az-qrcode"},$f={class:"az-qrcode-left"},Gf={class:"az-qrcode-right"},Wf={class:"az-qrcode-bottom"};var Yf=qf(ue.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,locale:null,download:{type:Boolean,default:!0}},setup(t){var s,l,u,f;const e=t,r=Vf(e.locale),n=ue.ref({width:e.width,height:e.height,type:"canvas",data:e.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(s=e.bgColor)!=null?s:"white"},dotsOptions:{color:(l=e.dotsColor)!=null?l:"black",type:"square"},cornersSquareOptions:{color:(u=e.dotsColor)!=null?u:"black",type:"square"},cornersDotOptions:{color:(f=e.dotsColor)!=null?f:"black",type:"square"}}),a=new Bu(n.value),i=ue.ref();function o(){a.download()}return ue.onMounted(()=>{a.append(i.value)}),ue.watch(()=>e.value,w=>{n.value.data=w,a.update(n.value)}),(w,y)=>(ue.openBlock(),ue.createElementBlock("div",jf,[ue.createElementVNode("div",Hf,[ue.createElementVNode("div",null,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",{class:"az-qrcode-center",style:ue.normalizeStyle(`grid-template-columns: auto ${e.width}px auto;`)},[ue.createElementVNode("div",$f,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",null,[ue.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),ue.createElementVNode("div",Gf,ue.toDisplayString(t.outlineValue),1)],4),ue.createElementVNode("div",Wf,ue.toDisplayString(t.outlineValue),1)]),t.download?(ue.openBlock(),ue.createElementBlock("button",{key:0,class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:o},ue.toDisplayString(ue.unref(r).global.t("common.action.download")),1)):ue.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-1ef76a60"]]),Zf=Object.defineProperty,Kf=(t,e,r)=>e in t?Zf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e,r)=>(Kf(t,typeof e!="symbol"?e+"":e,r),r);class mr extends Error{}class Jf extends mr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Xf extends mr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Qf extends mr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Xr extends mr{}class Fo extends mr{constructor(e){super(`Invalid unit ${e}`)}}class Dt extends mr{}class tr extends mr{constructor(){super("Zone is an abstract class")}}const he="numeric",Lt="short",St="long",ka={year:he,month:he,day:he},zo={year:he,month:Lt,day:he},eh={year:he,month:Lt,day:he,weekday:Lt},Bo={year:he,month:St,day:he},Uo={year:he,month:St,day:he,weekday:St},Vo={hour:he,minute:he},qo={hour:he,minute:he,second:he},jo={hour:he,minute:he,second:he,timeZoneName:Lt},Ho={hour:he,minute:he,second:he,timeZoneName:St},$o={hour:he,minute:he,hourCycle:"h23"},Go={hour:he,minute:he,second:he,hourCycle:"h23"},Wo={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:Lt},Yo={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:St},Zo={year:he,month:he,day:he,hour:he,minute:he},Ko={year:he,month:he,day:he,hour:he,minute:he,second:he},Jo={year:he,month:Lt,day:he,hour:he,minute:he},Xo={year:he,month:Lt,day:he,hour:he,minute:he,second:he},th={year:he,month:Lt,day:he,weekday:Lt,hour:he,minute:he},Qo={year:he,month:St,day:he,hour:he,minute:he,timeZoneName:Lt},es={year:he,month:St,day:he,hour:he,minute:he,second:he,timeZoneName:Lt},ts={year:he,month:St,day:he,weekday:St,hour:he,minute:he,timeZoneName:St},rs={year:he,month:St,day:he,weekday:St,hour:he,minute:he,second:he,timeZoneName:St};function Fe(t){return typeof t>"u"}function pr(t){return typeof t=="number"}function Sn(t){return typeof t=="number"&&t%1===0}function rh(t){return typeof t=="string"}function nh(t){return Object.prototype.toString.call(t)==="[object Date]"}function ns(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ah(t){return Array.isArray(t)?t:[t]}function as(t,e,r){if(t.length!==0)return t.reduce((n,a)=>{const i=[e(a),a];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function ih(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function Tr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Gt(t,e,r){return Sn(t)&&t>=e&&t<=r}function oh(t,e){return t-e*Math.floor(t/e)}function rt(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function rr(t){if(!(Fe(t)||t===null||t===""))return parseInt(t,10)}function gr(t){if(!(Fe(t)||t===null||t===""))return parseFloat(t)}function Aa(t){if(!(Fe(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Da(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function Qr(t){return t%4===0&&(t%100!==0||t%400===0)}function en(t){return Qr(t)?366:365}function In(t,e){const r=oh(e-1,12)+1,n=t+(e-r)/12;return r===2?Qr(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Na(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Cn(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||n===3?53:52}function Oa(t){return t>99?t:t>60?1900+t:2e3+t}function is(t,e,r,n=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o={timeZoneName:e,...i},s=new Intl.DateTimeFormat(r,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Tn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function os(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Dt(`Invalid unit value ${t}`);return e}function kn(t,e){const r={};for(const n in t)if(Tr(t,n)){const a=t[n];if(a==null)continue;r[e(n)]=os(a)}return r}function tn(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${rt(r,2)}:${rt(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${rt(r,2)}${rt(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function An(t){return ih(t,["hour","minute","second","millisecond"])}const ss=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,sh=["January","February","March","April","May","June","July","August","September","October","November","December"],ls=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lh=["J","F","M","A","M","J","J","A","S","O","N","D"];function cs(t){switch(t){case"narrow":return[...lh];case"short":return[...ls];case"long":return[...sh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const us=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ds=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ch=["M","T","W","T","F","S","S"];function fs(t){switch(t){case"narrow":return[...ch];case"short":return[...ds];case"long":return[...us];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const hs=["AM","PM"],uh=["Before Christ","Anno Domini"],dh=["BC","AD"],fh=["B","A"];function ms(t){switch(t){case"narrow":return[...fh];case"short":return[...dh];case"long":return[...uh];default:return null}}function hh(t){return hs[t.hour<12?0:1]}function mh(t,e){return fs(e)[t.weekday-1]}function ph(t,e){return cs(e)[t.month-1]}function gh(t,e){return ms(e)[t.year<0?0:1]}function vh(t,e,r="always",n=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const w=t==="days";switch(e){case 1:return w?"tomorrow":`next ${a[t][0]}`;case-1:return w?"yesterday":`last ${a[t][0]}`;case 0:return w?"today":`this ${a[t][0]}`}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,u=a[t],f=n?l?u[1]:u[2]||u[1]:l?a[t][0]:t;return o?`${s} ${f} ago`:`in ${s} ${f}`}function ps(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const yh={D:ka,DD:zo,DDD:Bo,DDDD:Uo,t:Vo,tt:qo,ttt:jo,tttt:Ho,T:$o,TT:Go,TTT:Wo,TTTT:Yo,f:Zo,ff:Jo,fff:Qo,ffff:ts,F:Ko,FF:Xo,FFF:es,FFFF:rs};class wt{static create(e,r={}){return new wt(e,r)}static parseFormat(e){let r=null,n="",a=!1;const i=[];for(let o=0;o<e.length;o++){const s=e.charAt(o);s==="'"?(n.length>0&&i.push({literal:a,val:n}),r=null,n="",a=!a):a||s===r?n+=s:(n.length>0&&i.push({literal:!1,val:n}),n=s,r=s)}return n.length>0&&i.push({literal:a,val:n}),i}static macroTokenToFormatOpts(e){return yh[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTime(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTimeParts(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).formatToParts()}resolvedOptions(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return rt(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(x,S)=>this.loc.extract(e,x,S),o=x=>e.isOffsetFixed&&e.offset===0&&x.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,x.format):"",s=()=>n?hh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(x,S)=>n?ph(e,x):i(S?{month:x}:{month:x,day:"numeric"},"month"),u=(x,S)=>n?mh(e,x):i(S?{weekday:x}:{weekday:x,month:"long",day:"numeric"},"weekday"),f=x=>{const S=wt.macroTokenToFormatOpts(x);return S?this.formatWithSystemDefault(e,S):x},w=x=>n?gh(e,x):i({era:x},"era"),y=x=>{switch(x){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return w("short");case"GG":return w("long");case"GGGGG":return w("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(x)}};return ps(wt.parseFormat(r),y)}formatDurationFromString(e,r){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>u=>{const f=n(u);return f?this.num(l.get(f),u.length):u},i=wt.parseFormat(r),o=i.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]),s=e.shiftTo(...o.map(n).filter(l=>l));return ps(i,a(s))}}class Mt{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class rn{get type(){throw new tr}get name(){throw new tr}get ianaName(){return this.name}get isUniversal(){throw new tr}offsetName(e,r){throw new tr}formatOffset(e,r){throw new tr}offset(e){throw new tr}equals(e){throw new tr}get isValid(){throw new tr}}let Ra=null;class La extends rn{static get instance(){return Ra===null&&(Ra=new La),Ra}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return is(e,r,n)}formatOffset(e,r){return tn(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Dn={};function bh(t){return Dn[t]||(Dn[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Dn[t]}const Eh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function wh(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,o,s,l,u,f]=n;return[o,a,i,s,l,u,f]}function xh(t,e){const r=t.formatToParts(e),n=[];for(let a=0;a<r.length;a++){const{type:i,value:o}=r[a],s=Eh[i];i==="era"?n[s]=o:Fe(s)||(n[s]=parseInt(o,10))}return n}let Nn={};class Wt extends rn{static create(e){return Nn[e]||(Nn[e]=new Wt(e)),Nn[e]}static resetCache(){Nn={},Dn={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Wt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return is(e,r,n,this.name)}formatOffset(e,r){return tn(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const n=bh(this.name);let[a,i,o,s,l,u,f]=n.formatToParts?xh(n,r):wh(n,r);s==="BC"&&(a=-Math.abs(a)+1);const w=Na({year:a,month:i,day:o,hour:l===24?0:l,minute:u,second:f,millisecond:0});let y=+r;const x=y%1e3;return y-=x>=0?x:1e3+x,(w-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ma=null;class vt extends rn{static get utcInstance(){return Ma===null&&(Ma=new vt(0)),Ma}static instance(e){return e===0?vt.utcInstance:new vt(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new vt(Tn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${tn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${tn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return tn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class _h extends rn{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function nr(t,e){if(Fe(t)||t===null)return e;if(t instanceof rn)return t;if(rh(t)){const r=t.toLowerCase();return r==="local"||r==="system"?e:r==="utc"||r==="gmt"?vt.utcInstance:vt.parseSpecifier(r)||Wt.create(t)}else return pr(t)?vt.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new _h(t)}let gs=()=>Date.now(),vs="system",ys=null,bs=null,Es=null,ws;class ot{static get now(){return gs}static set now(e){gs=e}static set defaultZone(e){vs=e}static get defaultZone(){return nr(vs,La.instance)}static get defaultLocale(){return ys}static set defaultLocale(e){ys=e}static get defaultNumberingSystem(){return bs}static set defaultNumberingSystem(e){bs=e}static get defaultOutputCalendar(){return Es}static set defaultOutputCalendar(e){Es=e}static get throwOnInvalid(){return ws}static set throwOnInvalid(e){ws=e}static resetCaches(){Ze.resetCache(),Wt.resetCache()}}let xs={};function Sh(t,e={}){const r=JSON.stringify([t,e]);let n=xs[r];return n||(n=new Intl.ListFormat(t,e),xs[r]=n),n}let Pa={};function Fa(t,e={}){const r=JSON.stringify([t,e]);let n=Pa[r];return n||(n=new Intl.DateTimeFormat(t,e),Pa[r]=n),n}let za={};function Ih(t,e={}){const r=JSON.stringify([t,e]);let n=za[r];return n||(n=new Intl.NumberFormat(t,e),za[r]=n),n}let Ba={};function Ch(t,e={}){const{base:r,...n}=e,a=JSON.stringify([t,n]);let i=Ba[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Ba[a]=i),i}let On=null;function Th(){return On||(On=new Intl.DateTimeFormat().resolvedOptions().locale,On)}function kh(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let r;const n=t.substring(0,e);try{r=Fa(t).resolvedOptions()}catch{r=Fa(n).resolvedOptions()}const{numberingSystem:a,calendar:i}=r;return[n,a,i]}}function Ah(t,e,r){return(r||e)&&(t+="-u",r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Dh(t){const e=[];for(let r=1;r<=12;r++){const n=Te.utc(2016,r,1);e.push(t(n))}return e}function Nh(t){const e=[];for(let r=1;r<=7;r++){const n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function Rn(t,e,r,n,a){const i=t.listingMode(r);return i==="error"?null:i==="en"?n(e):a(e)}function Oh(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Rh{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:a,floor:i,...o}=n;if(!r||Object.keys(o).length>0){const s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=Ih(e,s)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Da(e,3);return rt(r,this.padTo)}}}class Lh{constructor(e,r,n){this.opts=n;let a;if(e.zone.isUniversal){const o=-1*(e.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Wt.create(s).valid?(a=s,this.dt=e):(a="UTC",n.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Te.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,a=e.zone.name);const i={...this.opts};a&&(i.timeZone=a),this.dtf=Fa(r,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Mh{constructor(e,r,n){this.opts={style:"long",...n},!r&&ns()&&(this.rtf=Ch(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):vh(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Ze{static fromOpts(e){return Ze.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,n,a=!1){const i=e||ot.defaultLocale,o=i||(a?"en-US":Th()),s=r||ot.defaultNumberingSystem,l=n||ot.defaultOutputCalendar;return new Ze(o,s,l,i)}static resetCache(){On=null,Pa={},za={},Ba={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n}={}){return Ze.create(e,r,n)}constructor(e,r,n,a){const[i,o,s]=kh(e);this.locale=i,this.numberingSystem=r||o||null,this.outputCalendar=n||s||null,this.intl=Ah(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Oh(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Ze.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1,n=!0){return Rn(this,e,n,cs,()=>{const a=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Dh(o=>this.extract(o,a,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1,n=!0){return Rn(this,e,n,fs,()=>{const a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=Nh(o=>this.extract(o,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return Rn(this,void 0,e,()=>hs,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(n=>this.extract(n,r,"dayperiod"))}return this.meridiemCache})}eras(e,r=!0){return Rn(this,e,r,ms,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[e]})}extract(e,r,n){const a=this.dtFormatter(e,r),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new Rh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Lh(e,this.intl,r)}relFormatter(e={}){return new Mh(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Sh(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function kr(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Ar(...t){return e=>t.reduce(([r,n,a],i)=>{const[o,s,l]=i(e,a);return[{...r,...o},s||n,l]},[{},null,1]).slice(0,2)}function Dr(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const a=r.exec(t);if(a)return n(a)}return[null,null]}function _s(...t){return(e,r)=>{const n={};let a;for(a=0;a<t.length;a++)n[t[a]]=rr(e[r+a]);return[n,null,r+a]}}const Ss=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ph=`(?:${Ss.source}?(?:\\[(${ss.source})\\])?)?`,Ua=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Is=RegExp(`${Ua.source}${Ph}`),Va=RegExp(`(?:T${Is.source})?`),Fh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Bh=/(\d{4})-?(\d{3})/,Uh=_s("weekYear","weekNumber","weekDay"),Vh=_s("year","ordinal"),qh=/(\d{4})-(\d\d)-(\d\d)/,Cs=RegExp(`${Ua.source} ?(?:${Ss.source}|(${ss.source}))?`),jh=RegExp(`(?: ${Cs.source})?`);function Nr(t,e,r){const n=t[e];return Fe(n)?r:rr(n)}function Hh(t,e){return[{year:Nr(t,e),month:Nr(t,e+1,1),day:Nr(t,e+2,1)},null,e+3]}function Or(t,e){return[{hours:Nr(t,e,0),minutes:Nr(t,e+1,0),seconds:Nr(t,e+2,0),milliseconds:Aa(t[e+3])},null,e+4]}function nn(t,e){const r=!t[e]&&!t[e+1],n=Tn(t[e+1],t[e+2]),a=r?null:vt.instance(n);return[{},a,e+3]}function an(t,e){const r=t[e]?Wt.create(t[e]):null;return[{},r,e+1]}const $h=RegExp(`^T?${Ua.source}$`),Gh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Wh(t){const[e,r,n,a,i,o,s,l,u]=t,f=e[0]==="-",w=l&&l[0]==="-",y=(x,S=!1)=>x!==void 0&&(S||x&&f)?-x:x;return[{years:y(gr(r)),months:y(gr(n)),weeks:y(gr(a)),days:y(gr(i)),hours:y(gr(o)),minutes:y(gr(s)),seconds:y(gr(l),l==="-0"),milliseconds:y(Aa(u),w)}]}const Yh={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qa(t,e,r,n,a,i,o){const s={year:e.length===2?Oa(rr(e)):rr(e),month:ls.indexOf(r)+1,day:rr(n),hour:rr(a),minute:rr(i)};return o&&(s.second=rr(o)),t&&(s.weekday=t.length>3?us.indexOf(t)+1:ds.indexOf(t)+1),s}const Zh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kh(t){const[,e,r,n,a,i,o,s,l,u,f,w]=t,y=qa(e,a,n,r,i,o,s);let x;return l?x=Yh[l]:u?x=0:x=Tn(f,w),[y,new vt(x)]}function Jh(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Xh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Qh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,em=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ts(t){const[,e,r,n,a,i,o,s]=t;return[qa(e,a,n,r,i,o,s),vt.utcInstance]}function tm(t){const[,e,r,n,a,i,o,s]=t;return[qa(e,s,r,n,a,i,o),vt.utcInstance]}const rm=kr(Fh,Va),nm=kr(zh,Va),am=kr(Bh,Va),im=kr(Is),ks=Ar(Hh,Or,nn,an),om=Ar(Uh,Or,nn,an),sm=Ar(Vh,Or,nn,an),lm=Ar(Or,nn,an);function cm(t){return Dr(t,[rm,ks],[nm,om],[am,sm],[im,lm])}function um(t){return Dr(Jh(t),[Zh,Kh])}function dm(t){return Dr(t,[Xh,Ts],[Qh,Ts],[em,tm])}function fm(t){return Dr(t,[Gh,Wh])}const hm=Ar(Or);function mm(t){return Dr(t,[$h,hm])}const pm=kr(qh,jh),gm=kr(Cs),vm=Ar(Or,nn,an);function ym(t){return Dr(t,[pm,ks],[gm,vm])}const bm="Invalid Duration",As={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Em={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...As},Nt=146097/400,Rr=146097/4800,wm={years:{quarters:4,months:12,weeks:Nt/7,days:Nt,hours:Nt*24,minutes:Nt*24*60,seconds:Nt*24*60*60,milliseconds:Nt*24*60*60*1e3},quarters:{months:3,weeks:Nt/28,days:Nt/4,hours:Nt*24/4,minutes:Nt*24*60/4,seconds:Nt*24*60*60/4,milliseconds:Nt*24*60*60*1e3/4},months:{weeks:Rr/7,days:Rr,hours:Rr*24,minutes:Rr*24*60,seconds:Rr*24*60*60,milliseconds:Rr*24*60*60*1e3},...As},vr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],xm=vr.slice(0).reverse();function yr(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new Ue(n)}function _m(t){return t<0?Math.floor(t):Math.ceil(t)}function Ds(t,e,r,n,a){const i=t[a][r],o=e[r]/i,s=Math.sign(o)===Math.sign(n[a]),l=!s&&n[a]!==0&&Math.abs(o)<=1?_m(o):Math.trunc(o);n[a]+=l,e[r]-=l*i}function Sm(t,e){xm.reduce((r,n)=>Fe(e[n])?r:(r&&Ds(t,e,r,e,n),n),null)}class Ue{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Ze.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r?wm:Em,this.isLuxonDuration=!0}static fromMillis(e,r){return Ue.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Dt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ue({values:kn(e,Ue.normalizeUnit),loc:Ze.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(e){if(pr(e))return Ue.fromMillis(e);if(Ue.isDuration(e))return e;if(typeof e=="object")return Ue.fromObject(e);throw new Dt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=fm(e);return n?Ue.fromObject(n,r):Ue.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=mm(e);return n?Ue.fromObject(n,r):Ue.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the Duration is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Qf(n);return new Ue({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new Fo(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?wt.create(this.loc,n).formatDurationFromString(this,e):bm}toHuman(e={}){const r=vr.map(n=>{const a=this.values[n];return Fe(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(a)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Da(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||n.milliseconds!==0)&&(a+=".SSS"));let i=n.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e),n={};for(const a of vr)(Tr(r.values,a)||Tr(this.values,a))&&(n[a]=r.get(a)+this.get(a));return yr(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=os(e(this.values[n],n));return yr(this,{values:r},!0)}get(e){return this[Ue.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...kn(e,Ue.normalizeUnit)};return yr(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n}={}){const a=this.loc.clone({locale:e,numberingSystem:r}),i={loc:a};return n&&(i.conversionAccuracy=n),yr(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Sm(this.matrix,e),yr(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Ue.normalizeUnit(o));const r={},n={},a=this.toObject();let i;for(const o of vr)if(e.indexOf(o)>=0){i=o;let s=0;for(const u in n)s+=this.matrix[u][o]*n[u],n[u]=0;pr(a[o])&&(s+=a[o]);const l=Math.trunc(s);r[o]=l,n[o]=(s*1e3-l*1e3)/1e3;for(const u in a)vr.indexOf(u)>vr.indexOf(o)&&Ds(this.matrix,a,u,r,o)}else pr(a[o])&&(n[o]=a[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return yr(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return yr(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,a){return n===void 0||n===0?a===void 0||a===0:n===a}for(const n of vr)if(!r(this.values[n],e.values[n]))return!1;return!0}}const on="Invalid Interval";function Im(t,e){return!t||!t.isValid?Ke.invalid("missing or invalid start"):!e||!e.isValid?Ke.invalid("missing or invalid end"):e<t?Ke.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Ke{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the Interval is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Xf(n);return new Ke({invalid:n})}static fromDateTimes(e,r){const n=cn(e),a=cn(r),i=Im(n,a);return i==null?new Ke({start:n,end:a}):i}static after(e,r){const n=Ue.fromDurationLike(r),a=cn(e);return Ke.fromDateTimes(a,a.plus(n))}static before(e,r){const n=Ue.fromDurationLike(r),a=cn(e);return Ke.fromDateTimes(a.minus(n),a)}static fromISO(e,r){const[n,a]=(e||"").split("/",2);if(n&&a){let i,o;try{i=Te.fromISO(n,r),o=i.isValid}catch{o=!1}let s,l;try{s=Te.fromISO(a,r),l=s.isValid}catch{l=!1}if(o&&l)return Ke.fromDateTimes(i,s);if(o){const u=Ue.fromISO(a,r);if(u.isValid)return Ke.after(i,u)}else if(l){const u=Ue.fromISO(n,r);if(u.isValid)return Ke.before(s,u)}}return Ke.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(r,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?Ke.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(cn).filter(o=>this.contains(o)).sort(),n=[];let{s:a}=this,i=0;for(;a<this.e;){const o=r[i]||this.e,s=+o>+this.e?this.e:o;n.push(Ke.fromDateTimes(a,s)),a=s,i+=1}return n}splitBy(e){const r=Ue.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;const o=[];for(;n<this.e;){const s=this.start.plus(r.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(Ke.fromDateTimes(n,i)),n=i,a+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:Ke.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Ke.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const a=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,u)=>l.time-u.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&a.push(Ke.fromDateTimes(r,l.time)),r=null);return Ke.merge(a)}difference(...e){return Ke.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:on}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:on}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:on}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:on}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:on}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ue.invalid(this.invalidReason)}mapEndpoints(e){return Ke.fromDateTimes(e(this.s),e(this.e))}}class Ln{static hasDST(e=ot.defaultZone){const r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Wt.isValidZone(e)}static normalizeZone(e){return nr(e,ot.defaultZone)}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ze.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ze.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Ze.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Ze.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ze.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Ze.create(r,null,"gregory").eras(e)}static features(){return{relative:ns()}}}function Ns(t,e){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(Ue.fromMillis(n).as("days"))}function Cm(t,e,r){const n=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter],["months",(s,l)=>l.month-s.month+(l.year-s.year)*12],["weeks",(s,l)=>{const u=Ns(s,l);return(u-u%7)/7}],["days",Ns]],a={};let i,o;for(const[s,l]of n)if(r.indexOf(s)>=0){i=s;let u=l(t,e);o=t.plus({[s]:u}),o>e?(t=t.plus({[s]:u-1}),u-=1):t=o,a[s]=u}return[t,a,o,i]}function Tm(t,e,r,n){let[a,i,o,s]=Cm(t,e,r);const l=e-a,u=r.filter(w=>["hours","minutes","seconds","milliseconds"].indexOf(w)>=0);u.length===0&&(o<e&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const f=Ue.fromObject(i,n);return u.length>0?Ue.fromMillis(l,n).shiftTo(...u).plus(f):f}const ja={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Os={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},km=ja.hanidec.replace(/[\[|\]]/g,"").split("");function Am(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(t[r].search(ja.hanidec)!==-1)e+=km.indexOf(t[r]);else for(const a in Os){const[i,o]=Os[a];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}else return e}function Pt({numberingSystem:t},e=""){return new RegExp(`${ja[t||"latn"]}${e}`)}const Dm="missing Intl.DateTimeFormat.formatToParts support";function je(t,e=r=>r){return{regex:t,deser:([r])=>e(Am(r))}}const Nm=String.fromCharCode(160),Rs=`[ ${Nm}]`,Ls=new RegExp(Rs,"g");function Om(t){return t.replace(/\./g,"\\.?").replace(Ls,Rs)}function Ms(t){return t.replace(/\./g,"").replace(Ls," ").toLowerCase()}function Ft(t,e){return t===null?null:{regex:RegExp(t.map(Om).join("|")),deser:([r])=>t.findIndex(n=>Ms(r)===Ms(n))+e}}function Ps(t,e){return{regex:t,deser:([,r,n])=>Tn(r,n),groups:e}}function Ha(t){return{regex:t,deser:([e])=>e}}function Rm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Lm(t,e){const r=Pt(e),n=Pt(e,"{2}"),a=Pt(e,"{3}"),i=Pt(e,"{4}"),o=Pt(e,"{6}"),s=Pt(e,"{1,2}"),l=Pt(e,"{1,3}"),u=Pt(e,"{1,6}"),f=Pt(e,"{1,9}"),w=Pt(e,"{2,4}"),y=Pt(e,"{4,6}"),x=T=>({regex:RegExp(Rm(T.val)),deser:([N])=>N,literal:!0}),S=(T=>{if(t.literal)return x(T);switch(T.val){case"G":return Ft(e.eras("short",!1),0);case"GG":return Ft(e.eras("long",!1),0);case"y":return je(u);case"yy":return je(w,Oa);case"yyyy":return je(i);case"yyyyy":return je(y);case"yyyyyy":return je(o);case"M":return je(s);case"MM":return je(n);case"MMM":return Ft(e.months("short",!0,!1),1);case"MMMM":return Ft(e.months("long",!0,!1),1);case"L":return je(s);case"LL":return je(n);case"LLL":return Ft(e.months("short",!1,!1),1);case"LLLL":return Ft(e.months("long",!1,!1),1);case"d":return je(s);case"dd":return je(n);case"o":return je(l);case"ooo":return je(a);case"HH":return je(n);case"H":return je(s);case"hh":return je(n);case"h":return je(s);case"mm":return je(n);case"m":return je(s);case"q":return je(s);case"qq":return je(n);case"s":return je(s);case"ss":return je(n);case"S":return je(l);case"SSS":return je(a);case"u":return Ha(f);case"uu":return Ha(s);case"uuu":return je(r);case"a":return Ft(e.meridiems(),0);case"kkkk":return je(i);case"kk":return je(w,Oa);case"W":return je(s);case"WW":return je(n);case"E":case"c":return je(r);case"EEE":return Ft(e.weekdays("short",!1,!1),1);case"EEEE":return Ft(e.weekdays("long",!1,!1),1);case"ccc":return Ft(e.weekdays("short",!0,!1),1);case"cccc":return Ft(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ps(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Ps(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Ha(/[a-z_+-/]{1,256}?/i);default:return x(T)}})(t)||{invalidReason:Dm};return S.token=t,S}const Mm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Pm(t,e,r){const{type:n,value:a}=t;if(n==="literal")return{literal:!0,val:a};const i=r[n];let o=Mm[n];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Fm(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function zm(t,e,r){const n=t.match(e);if(n){const a={};let i=1;for(const o in r)if(Tr(r,o)){const s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(n.slice(i,i+l))),i+=l}return[n,a]}else return[n,{}]}function Bm(t){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return Fe(t.z)||(r=Wt.create(t.z)),Fe(t.Z)||(r||(r=new vt(t.Z)),n=t.Z),Fe(t.q)||(t.M=(t.q-1)*3+1),Fe(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Fe(t.u)||(t.S=Aa(t.u)),[Object.keys(t).reduce((a,i)=>{const o=e(i);return o&&(a[o]=t[i]),a},{}),r,n]}let $a=null;function Um(){return $a||($a=Te.fromMillis(1555555555555)),$a}function Vm(t,e){if(t.literal)return t;const r=wt.macroTokenToFormatOpts(t.val);if(!r)return t;const n=wt.create(e,r).formatDateTimeParts(Um()).map(a=>Pm(a,e,r));return n.includes(void 0)?t:n}function qm(t,e){return Array.prototype.concat(...t.map(r=>Vm(r,e)))}function Fs(t,e,r){const n=qm(wt.parseFormat(r),t),a=n.map(o=>Lm(o,t)),i=a.find(o=>o.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[o,s]=Fm(a),l=RegExp(o,"i"),[u,f]=zm(e,l,s),[w,y,x]=f?Bm(f):[null,null,void 0];if(Tr(f,"a")&&Tr(f,"H"))throw new Xr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:l,rawMatches:u,matches:f,result:w,zone:y,specificOffset:x}}}function jm(t,e,r){const{result:n,zone:a,specificOffset:i,invalidReason:o}=Fs(t,e,r);return[n,a,i,o]}const zs=[0,31,59,90,120,151,181,212,243,273,304,334],Bs=[0,31,60,91,121,152,182,213,244,274,305,335];function Ot(t,e){return new Mt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Us(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return a===0?7:a}function Vs(t,e,r){return r+(Qr(t)?Bs:zs)[e-1]}function qs(t,e){const r=Qr(t)?Bs:zs,n=r.findIndex(i=>i<e),a=e-r[n];return{month:n+1,day:a}}function Ga(t){const{year:e,month:r,day:n}=t,a=Vs(e,r,n),i=Us(e,r,n);let o=Math.floor((a-i+10)/7),s;return o<1?(s=e-1,o=Cn(s)):o>Cn(e)?(s=e+1,o=1):s=e,{weekYear:s,weekNumber:o,weekday:i,...An(t)}}function js(t){const{weekYear:e,weekNumber:r,weekday:n}=t,a=Us(e,1,4),i=en(e);let o=r*7+n-a-3,s;o<1?(s=e-1,o+=en(s)):o>i?(s=e+1,o-=en(e)):s=e;const{month:l,day:u}=qs(s,o);return{year:s,month:l,day:u,...An(t)}}function Wa(t){const{year:e,month:r,day:n}=t,a=Vs(e,r,n);return{year:e,ordinal:a,...An(t)}}function Hs(t){const{year:e,ordinal:r}=t,{month:n,day:a}=qs(e,r);return{year:e,month:n,day:a,...An(t)}}function Hm(t){const e=Sn(t.weekYear),r=Gt(t.weekNumber,1,Cn(t.weekYear)),n=Gt(t.weekday,1,7);return e?r?n?!1:Ot("weekday",t.weekday):Ot("week",t.week):Ot("weekYear",t.weekYear)}function $m(t){const e=Sn(t.year),r=Gt(t.ordinal,1,en(t.year));return e?r?!1:Ot("ordinal",t.ordinal):Ot("year",t.year)}function $s(t){const e=Sn(t.year),r=Gt(t.month,1,12),n=Gt(t.day,1,In(t.year,t.month));return e?r?n?!1:Ot("day",t.day):Ot("month",t.month):Ot("year",t.year)}function Gs(t){const{hour:e,minute:r,second:n,millisecond:a}=t,i=Gt(e,0,23)||e===24&&r===0&&n===0&&a===0,o=Gt(r,0,59),s=Gt(n,0,59),l=Gt(a,0,999);return i?o?s?l?!1:Ot("millisecond",a):Ot("second",n):Ot("minute",r):Ot("hour",e)}const Ya="Invalid DateTime",Ws=864e13;function Mn(t){return new Mt("unsupported zone",`the zone "${t.name}" is not supported`)}function Za(t){return t.weekData===null&&(t.weekData=Ga(t.c)),t.weekData}function sn(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function Ys(t,e,r){let n=t-e*60*1e3;const a=r.offset(n);if(e===a)return[n,e];n-=(a-e)*60*1e3;const i=r.offset(n);return a===i?[n,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function Zs(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Pn(t,e,r){return Ys(Na(t),e,r)}function Ks(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:a,day:Math.min(t.c.day,In(n,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Ue.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Na(i);let[l,u]=Ys(s,r,t.zone);return o!==0&&(l+=o,u=t.zone.offset(l)),{ts:l,o:u}}function ln(t,e,r,n,a,i){const{setZone:o,zone:s}=r;if(t&&Object.keys(t).length!==0){const l=e||s,u=Te.fromObject(t,{...r,zone:l,specificOffset:i});return o?u:u.setZone(s)}else return Te.invalid(new Mt("unparsable",`the input "${a}" can't be parsed as ${n}`))}function Fn(t,e,r=!0){return t.isValid?wt.create(Ze.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ka(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=rt(t.c.year,r?6:4),e?(n+="-",n+=rt(t.c.month),n+="-",n+=rt(t.c.day)):(n+=rt(t.c.month),n+=rt(t.c.day)),n}function Js(t,e,r,n,a,i){let o=rt(t.c.hour);return e?(o+=":",o+=rt(t.c.minute),(t.c.second!==0||!r)&&(o+=":")):o+=rt(t.c.minute),(t.c.second!==0||!r)&&(o+=rt(t.c.second),(t.c.millisecond!==0||!n)&&(o+=".",o+=rt(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=rt(Math.trunc(-t.o/60)),o+=":",o+=rt(Math.trunc(-t.o%60))):(o+="+",o+=rt(Math.trunc(t.o/60)),o+=":",o+=rt(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const Xs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wm={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Qs=["year","month","day","hour","minute","second","millisecond"],Ym=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Zm=["year","ordinal","hour","minute","second","millisecond"];function el(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Fo(t);return e}function tl(t,e){const r=nr(e.zone,ot.defaultZone),n=Ze.fromObject(e),a=ot.now();let i,o;if(Fe(t.year))i=a;else{for(const u of Qs)Fe(t[u])&&(t[u]=Xs[u]);const s=$s(t)||Gs(t);if(s)return Te.invalid(s);const l=r.offset(a);[i,o]=Pn(t,l,r)}return new Te({ts:i,zone:r,loc:n,o})}function rl(t,e,r){const n=Fe(r.round)?!0:r.round,a=(o,s)=>(o=Da(o,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(o,s)),i=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return a(i(r.unit),r.unit);for(const o of r.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(t>e?-0:0,r.units[r.units.length-1])}function nl(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class Te{constructor(e){const r=e.zone||ot.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Mt("invalid input"):null)||(r.isValid?null:Mn(r));this.ts=Fe(e.ts)?ot.now():e.ts;let a=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,i]=[e.old.c,e.old.o];else{const o=r.offset(this.ts);a=Zs(this.ts,o),n=Number.isNaN(a.year)?new Mt("invalid input"):null,a=n?null:a,i=n?null:o}this._zone=r,this.loc=e.loc||Ze.create(),this.invalid=n,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new Te({})}static local(){const[e,r]=nl(arguments),[n,a,i,o,s,l,u]=r;return tl({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:u},e)}static utc(){const[e,r]=nl(arguments),[n,a,i,o,s,l,u]=r;return e.zone=vt.utcInstance,tl({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:u},e)}static fromJSDate(e,r={}){const n=nh(e)?e.valueOf():NaN;if(Number.isNaN(n))return Te.invalid("invalid input");const a=nr(r.zone,ot.defaultZone);return a.isValid?new Te({ts:n,zone:a,loc:Ze.fromObject(r)}):Te.invalid(Mn(a))}static fromMillis(e,r={}){if(pr(e))return e<-Ws||e>Ws?Te.invalid("Timestamp out of range"):new Te({ts:e,zone:nr(r.zone,ot.defaultZone),loc:Ze.fromObject(r)});throw new Dt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(pr(e))return new Te({ts:e*1e3,zone:nr(r.zone,ot.defaultZone),loc:Ze.fromObject(r)});throw new Dt("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=nr(r.zone,ot.defaultZone);if(!n.isValid)return Te.invalid(Mn(n));const a=ot.now(),i=Fe(r.specificOffset)?n.offset(a):r.specificOffset,o=kn(e,el),s=!Fe(o.ordinal),l=!Fe(o.year),u=!Fe(o.month)||!Fe(o.day),f=l||u,w=o.weekYear||o.weekNumber,y=Ze.fromObject(r);if((f||s)&&w)throw new Xr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new Xr("Can't mix ordinal dates with month/day");const x=w||o.weekday&&!f;let S,T,N=Zs(a,i);x?(S=Ym,T=Gm,N=Ga(N)):s?(S=Zm,T=Wm,N=Wa(N)):(S=Qs,T=Xs);let C=!1;for(const Y of S){const Q=o[Y];Fe(Q)?C?o[Y]=T[Y]:o[Y]=N[Y]:C=!0}const E=x?Hm(o):s?$m(o):$s(o),A=E||Gs(o);if(A)return Te.invalid(A);const I=x?js(o):s?Hs(o):o,[D,P]=Pn(I,i,n),z=new Te({ts:D,zone:n,o:P,loc:y});return o.weekday&&f&&e.weekday!==z.weekday?Te.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${z.toISO()}`):z}static fromISO(e,r={}){const[n,a]=cm(e);return ln(n,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,a]=um(e);return ln(n,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,a]=dm(e);return ln(n,a,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Fe(e)||Fe(r))throw new Dt("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=n,o=Ze.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,u,f]=jm(o,e,r);return f?Te.invalid(f):ln(s,l,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return Te.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,a]=ym(e);return ln(n,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the DateTime is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Jf(n);return new Te({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Za(this).weekYear:NaN}get weekNumber(){return this.isValid?Za(this).weekNumber:NaN}get weekday(){return this.isValid?Za(this).weekday:NaN}get ordinal(){return this.isValid?Wa(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ln.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ln.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ln.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ln.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Qr(this.year)}get daysInMonth(){return In(this.year,this.month)}get daysInYear(){return this.isValid?en(this.year):NaN}get weeksInWeekYear(){return this.isValid?Cn(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:a}=wt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(vt.instance(e),r)}toLocal(){return this.setZone(ot.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=nr(e,ot.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||n){const i=e.offset(this.ts),o=this.toObject();[a]=Pn(o,i,e)}return sn(this,{ts:a,zone:e})}else return Te.invalid(Mn(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return sn(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=kn(e,el),n=!Fe(r.weekYear)||!Fe(r.weekNumber)||!Fe(r.weekday),a=!Fe(r.ordinal),i=!Fe(r.year),o=!Fe(r.month)||!Fe(r.day),s=i||o,l=r.weekYear||r.weekNumber;if((s||a)&&l)throw new Xr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new Xr("Can't mix ordinal dates with month/day");let u;n?u=js({...Ga(this.c),...r}):Fe(r.ordinal)?(u={...this.toObject(),...r},Fe(r.day)&&(u.day=Math.min(In(u.year,u.month),u.day))):u=Hs({...Wa(this.c),...r});const[f,w]=Pn(u,this.o,this.zone);return sn(this,{ts:f,o:w})}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return sn(this,Ks(this,r))}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e).negate();return sn(this,Ks(this,r))}startOf(e){if(!this.isValid)return this;const r={},n=Ue.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(n==="weeks"&&(r.weekday=1),n==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?wt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):Ya}toLocaleString(e=ka,r={}){return this.isValid?wt.create(this.loc.clone(r),e).formatDateTime(this):Ya}toLocaleParts(e={}){return this.isValid?wt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let s=Ka(this,o);return s+="T",s+=Js(this,o,r,n,a,i),s}toISODate({format:e="extended"}={}){return this.isValid?Ka(this,e==="extended"):null}toISOWeekDate(){return Fn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+Js(this,o==="extended",r,e,n,i):null}toRFC2822(){return Fn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Fn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ka(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(n&&(a+=" "),r?a+="z":e&&(a+="ZZ")),Fn(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ya}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ue.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=ah(r).map(Ue.normalizeUnit),o=e.valueOf()>this.valueOf(),s=o?this:e,l=o?e:this,u=Tm(s,l,i,a);return o?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(Te.now(),e,r)}until(e){return this.isValid?Ke.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const n=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r)<=n&&n<=a.endOf(r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||Te.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),rl(r,this.plus(n),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?rl(e.base||Te.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Te.isDateTime))throw new Dt("min requires all arguments be DateTimes");return as(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(Te.isDateTime))throw new Dt("max requires all arguments be DateTimes");return as(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:a=null,numberingSystem:i=null}=n,o=Ze.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return Fs(o,e,r)}static fromStringExplain(e,r,n={}){return Te.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return ka}static get DATE_MED(){return zo}static get DATE_MED_WITH_WEEKDAY(){return eh}static get DATE_FULL(){return Bo}static get DATE_HUGE(){return Uo}static get TIME_SIMPLE(){return Vo}static get TIME_WITH_SECONDS(){return qo}static get TIME_WITH_SHORT_OFFSET(){return jo}static get TIME_WITH_LONG_OFFSET(){return Ho}static get TIME_24_SIMPLE(){return $o}static get TIME_24_WITH_SECONDS(){return Go}static get TIME_24_WITH_SHORT_OFFSET(){return Wo}static get TIME_24_WITH_LONG_OFFSET(){return Yo}static get DATETIME_SHORT(){return Zo}static get DATETIME_SHORT_WITH_SECONDS(){return Ko}static get DATETIME_MED(){return Jo}static get DATETIME_MED_WITH_SECONDS(){return Xo}static get DATETIME_MED_WITH_WEEKDAY(){return th}static get DATETIME_FULL(){return Qo}static get DATETIME_FULL_WITH_SECONDS(){return es}static get DATETIME_HUGE(){return ts}static get DATETIME_HUGE_WITH_SECONDS(){return rs}}function cn(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&pr(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new Dt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function Ja(t,e){return Te.fromISO(t,{zone:e}).toJSDate()}function al(t,e){if(e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));return{dateTime:il(r),timeZone:e}}else return{dateTime:il(t)}}function zn(t,e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));return r.getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)}function il(t,e=!1){var r=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(n<10?"0"+n:n)+"/"+r:r+"-"+(n<10?"0"+n:n)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(s<10?"0"+s:s)}function De(t){return t==null?"":t==null?void 0:t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(r)})}function Re(t){return t==null?"":t==null?void 0:t.replace(/[\u0100-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function Km(t){return new Promise((e,r)=>{const n=new FileReader;n.readAsDataURL(t),n.onload=()=>e(n.result),n.onerror=a=>r(a)})}class Lr{constructor(){g(this,"name"),g(this,"startPeriod"),g(this,"endPeriod"),g(this,"monday"),g(this,"tuesday"),g(this,"wednesday"),g(this,"thursday"),g(this,"friday"),g(this,"saturday"),g(this,"sunday")}static fromSettingsPeriodWorkingDto(e){const r=new Lr;return r.name=De(e.name),r.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},r.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(r.monday=[],e.monday.forEach(n=>{var a;(a=r.monday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.tuesday&&(r.tuesday=[],e.tuesday.forEach(n=>{var a;(a=r.tuesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.wednesday&&(r.wednesday=[],e.wednesday.forEach(n=>{var a;(a=r.wednesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.thursday&&(r.thursday=[],e.thursday.forEach(n=>{var a;(a=r.thursday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.friday&&(r.friday=[],e.friday.forEach(n=>{var a;(a=r.friday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.saturday&&(r.saturday=[],e.saturday.forEach(n=>{var a;(a=r.saturday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.sunday&&(r.sunday=[],e.sunday.forEach(n=>{var a;(a=r.sunday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),r}static toSettingsPeriodWorkingDto(e){const r=new Jm;return r.name=Re(e.name),r.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},r.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(r.monday=[],e.monday.forEach(n=>{var a;(a=r.monday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.tuesday&&(r.tuesday=[],e.tuesday.forEach(n=>{var a;(a=r.tuesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.wednesday&&(r.wednesday=[],e.wednesday.forEach(n=>{var a;(a=r.wednesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.thursday&&(r.thursday=[],e.thursday.forEach(n=>{var a;(a=r.thursday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.friday&&(r.friday=[],e.friday.forEach(n=>{var a;(a=r.friday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.saturday&&(r.saturday=[],e.saturday.forEach(n=>{var a;(a=r.saturday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.sunday&&(r.sunday=[],e.sunday.forEach(n=>{var a;(a=r.sunday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),r}}class ht{constructor(){g(this,"service"),g(this,"start"),g(this,"end")}static fromSettingsPeriodWorkingDayDto(e){var r,n;const a=new ht;return a.end=e.end,e.service&&(a.service={id:(r=e.service)==null?void 0:r.id,name:(n=e.service)==null?void 0:n.name}),a.start=e.start,a}static toSettingsPeriodWorkingDayDto(e){var r,n;const a=new Xm;return a.end=e.end,e.service&&(a.service={id:(r=e.service)==null?void 0:r.id,name:(n=e.service)==null?void 0:n.name}),a.start=e.start,a}}class Mr{constructor(){g(this,"day"),g(this,"hours")}static fromSettingsWorkingDayDto(e){const r=new Mr;return r.day=e.day,r.hours=[],e.hours.forEach(n=>r.hours.push(Bn.fromSettingsWorkingHoursDto(n))),r}static toSettingsWorkingDayDto(e){const r=new Qm;return r.day=e.day,r.hours=[],e.hours.forEach(n=>r.hours.push(Bn.toSettingsWorkingHoursDto(n))),r}}class Bn{constructor(){g(this,"start"),g(this,"end")}static fromSettingsWorkingHoursDto(e){const r=new Bn;return r.start=e.start,r.end=e.end,r}static toSettingsWorkingHoursDto(e){const r=new ep;return r.start=e.start,r.end=e.end,r}}class Jm{constructor(){g(this,"name"),g(this,"startPeriod"),g(this,"endPeriod"),g(this,"monday"),g(this,"tuesday"),g(this,"wednesday"),g(this,"thursday"),g(this,"friday"),g(this,"saturday"),g(this,"sunday")}}class Xm{constructor(){g(this,"service"),g(this,"start"),g(this,"end")}}class Qm{constructor(){g(this,"day"),g(this,"hours")}}class ep{constructor(){g(this,"start"),g(this,"end")}}const tp=(t,e)=>e.some(r=>t instanceof r);let ol,sl;function rp(){return ol||(ol=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function np(){return sl||(sl=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const ll=new WeakMap,Xa=new WeakMap,cl=new WeakMap,Qa=new WeakMap,ei=new WeakMap;function ap(t){const e=new Promise((r,n)=>{const a=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(un(t.result)),a()},o=()=>{n(t.error),a()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&ll.set(r,t)}).catch(()=>{}),ei.set(e,t),e}function ip(t){if(Xa.has(t))return;const e=new Promise((r,n)=>{const a=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),a()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Xa.set(t,e)}let ti={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Xa.get(t);if(e==="objectStoreNames")return t.objectStoreNames||cl.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return un(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function op(t){ti=t(ti)}function sp(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(ri(this),e,...r);return cl.set(n,e.sort?e.sort():[e]),un(n)}:np().includes(t)?function(...e){return t.apply(ri(this),e),un(ll.get(this))}:function(...e){return un(t.apply(ri(this),e))}}function lp(t){return typeof t=="function"?sp(t):(t instanceof IDBTransaction&&ip(t),tp(t,rp())?new Proxy(t,ti):t)}function un(t){if(t instanceof IDBRequest)return ap(t);if(Qa.has(t))return Qa.get(t);const e=lp(t);return e!==t&&(Qa.set(t,e),ei.set(e,t)),e}const ri=t=>ei.get(t),cp=["get","getKey","getAll","getAllKeys","count"],up=["put","add","delete","clear"],ni=new Map;function ul(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ni.get(e))return ni.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,a=up.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(a||cp.includes(r)))return;const i=async function(o,...s){const l=this.transaction(o,a?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(s.shift())),(await Promise.all([u[r](...s),a&&l.done]))[0]};return ni.set(e,i),i}op(t=>({...t,get:(e,r,n)=>ul(e,r)||t.get(e,r,n),has:(e,r)=>!!ul(e,r)||t.has(e,r)}));class Pr{constructor(e,r,n){g(this,"mimeType"),g(this,"url"),g(this,"data"),this.mimeType=e,this.url=r,this.data=n}}class br{constructor(){g(this,"id"),g(this,"name"),g(this,"value"),g(this,"values")}static fromCustomFormValueDto(e){var r;const n=new br;n.id=e.id,n.name=De(e.name),n.value=De(e.value);const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(br.fromCustomFormValueDto(i))}),n.values=a,n}static toFormValueDto(e){var r;const n=new fp;n.id=e.id,n.name=Re(e.name),n.value=Re(e.value);const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(br.toFormValueDto(i))}),n.values=a,n}}class zt{constructor(){g(this,"id"),g(this,"label"),g(this,"type"),g(this,"inputType"),g(this,"visible"),g(this,"disabled"),g(this,"required"),g(this,"values"),g(this,"subItem"),g(this,"formatType"),g(this,"pattern"),g(this,"minlength"),g(this,"maxlength"),g(this,"externalId"),g(this,"help"),g(this,"placeholder"),g(this,"otherValue"),g(this,"category"),g(this,"readonly"),g(this,"value"),g(this,"multiple"),g(this,"bind"),g(this,"bindGroup")}static fromFormDto(e){var r,n,a,i,o,s;const l=new zt;l.id=e.id,l.label=De(e.title?e.title:e.label),l.type=e.type,l.inputType=e.inputType,l.visible=e.visible,l.disabled=e.disabled,l.required=e.mandatory;const u=[];(r=e.values)==null||r.forEach(w=>{u.push(br.fromCustomFormValueDto(w))}),l.values=u;const f=[];return e.subItem&&((n=e.subItem)==null||n.forEach(w=>{f.push(zt.fromFormDto(w))})),l.subItem=f,l.readonly=e.readonly,l.multiple=e.multiple,l.pattern=(a=e.valueFormat)==null?void 0:a.regexValue,l.minlength=(i=e.valueFormat)==null?void 0:i.minLength,l.maxlength=(o=e.valueFormat)==null?void 0:o.maxLength,l.formatType=(s=e.valueFormat)==null?void 0:s.type,l.externalId=e.externalId,l.help=e.help,l.placeholder=e.placeholder,l.otherValue=e.otherValue,l.category=e.category,l.bind=e.bind,l.bindGroup=e.bindGroup,l.value=De(e.value),l}static fromWidgetFormItemDto(e){var r;const n=new zt;n.id=e.id,n.label=De(e.title?e.title:e.label),n.type=e.type,n.inputType=e.inputType,n.visible=e.visible,n.disabled=e.disabled,n.required=e.required;const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(br.fromCustomFormValueDto(i))}),n.values=a,n.readonly=e.readonly,n.multiple=e.multiple,n.pattern=e.pattern,n.minlength=e.minlength,n.maxlength=e.maxlength,n.formatType=e.pattern?"regex":"none",n.externalId=e.externalId,n.help=e.help,n.placeholder=e.placeholder,n.bind=e.bind,n.bindGroup=e.bindGroup,n.value=De(e.value),n}static toFormDto(e){var r,n;const a=new dp;a.id=e.id,a.label=Re(e.label),a.title=Re(e.label),a.type=e.type,a.inputType=e.inputType,a.visible=e.visible,a.disabled=e.disabled,a.mandatory=e.required;const i=[];(r=e.values)==null||r.forEach(s=>{i.push(br.toFormValueDto(s))}),a.values=i,a.valueFormat={type:e.formatType,maxLength:e.maxlength,minLength:e.minlength,regexValue:e.pattern};const o=[];return e.subItem&&((n=e.subItem)==null||n.forEach(s=>{o.push(zt.toFormDto(s))})),a.subItem=o,a.readonly=e.readonly,a.multiple=e.multiple,a.bind=e.bind,a.bindGroup=e.bindGroup,a.externalId=e.externalId,a.help=e.help,a.placeholder=e.placeholder,a.otherValue=e.otherValue,a.category=e.category,Array.isArray(e.value)?a.value=e.value.map(s=>Re(s)):typeof e.value=="string"?a.value=Re(e.value):a.value=e.value,a}static formItemToFormField(e){var r;return{id:e.id,inputType:e.inputType||e.type,label:e.label,mandatory:e.required,visible:e.visible,values:(r=e.values)==null?void 0:r.map(n=>({label:n.name,value:n.value})),bind:e.bind,multiple:e.multiple,value:e.value,pattern:e.pattern,disabled:e.disabled,minlength:e.minlength,maxlength:e.maxlength}}static formItemsToFormFields(e,r=!1){if(e&&e.length>0){const n=[];return e.forEach(a=>{var i;r&&a.subItem&&a.subItem.length>0?(i=a.subItem)==null||i.forEach(o=>{n.push(zt.formItemToFormField(o))}):n.push(zt.formItemToFormField(a))}),n}}}class dp{constructor(){g(this,"id"),g(this,"label"),g(this,"title"),g(this,"type"),g(this,"inputType"),g(this,"visible"),g(this,"disabled"),g(this,"mandatory"),g(this,"values"),g(this,"subItem"),g(this,"valueFormat"),g(this,"externalId"),g(this,"help"),g(this,"placeholder"),g(this,"otherValue"),g(this,"category"),g(this,"readonly"),g(this,"value"),g(this,"fileName"),g(this,"multiple"),g(this,"bind"),g(this,"bindGroup")}}class fp{constructor(){g(this,"id"),g(this,"name"),g(this,"value"),g(this,"values")}}class Yt{constructor(){g(this,"id"),g(this,"userId"),g(this,"company"),g(this,"firstName"),g(this,"lastName"),g(this,"gender"),g(this,"title"),g(this,"email"),g(this,"phone"),g(this,"otherPhone"),g(this,"description"),g(this,"vacations"),g(this,"role"),g(this,"workingHours"),g(this,"customWorkingHours"),g(this,"picture"),g(this,"servicesSkill"),g(this,"color"),g(this,"availableForWidget"),g(this,"externalId"),g(this,"additionalFields"),g(this,"externalCalendars"),g(this,"calendarLink")}static fromStaffDto(e){const r=new Yt;return r.id=e.id,e.company&&(r.company={id:e.company.id,name:e.company.name}),r.firstName=De(e.firstName),r.lastName=De(e.lastName),r.email=e.email,r.phone=e.phone,r.gender=e.gender,r.title=e.title,r.otherPhone=e.otherPhone,r.description=De(e.description),r.role=e.role,r.externalId=e.externalId,e.vacations&&(r.vacations=[],e.vacations.forEach(n=>{var a;return(a=r.vacations)==null?void 0:a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Mr.fromSettingsWorkingDayDto(n))})),e.customWorkingHours&&(r.customWorkingHours=[],e.customWorkingHours.forEach(n=>{var a;return(a=r.customWorkingHours)==null?void 0:a.push(Lr.fromSettingsPeriodWorkingDto(n))})),e.additionalFields&&(r.additionalFields=[],e.additionalFields.forEach(n=>{var a;return(a=r.additionalFields)==null?void 0:a.push(zt.fromFormDto(n))})),e.externalCalendars&&(r.externalCalendars=[],e.externalCalendars.forEach(n=>{var a;return(a=r.externalCalendars)==null?void 0:a.push(n)})),e.calendarLink&&(r.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(r.picture={mimeType:e.picture.mimeType,url:e.picture.url,data:e.picture.data}),e.services&&(r.servicesSkill=[],e.services.forEach(n=>{var a;(a=r.servicesSkill)==null||a.push(n.id)})),r.color=e.color,r.availableForWidget=e.availableForWidget,r}static toStaffDto(e){const r=new hp;return r.id=e.id,e.company&&(r.company={id:e.company.id,name:e.company.name}),r.firstName=Re(e.firstName),r.lastName=Re(e.lastName),r.email=e.email,r.phone=e.phone,r.gender=e.gender,r.title=e.title,r.otherPhone=e.otherPhone,r.description=Re(e.description),r.role=e.role,r.externalId=e.externalId,e.vacations&&(r.vacations=[],e.vacations.forEach(n=>{var a;return(a=r.vacations)==null?void 0:a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Mr.fromSettingsWorkingDayDto(n))})),e.customWorkingHours&&(r.customWorkingHours=[],e.customWorkingHours.forEach(n=>{var a;return(a=r.customWorkingHours)==null?void 0:a.push(Lr.fromSettingsPeriodWorkingDto(n))})),e.additionalFields&&(r.additionalFields=[],e.additionalFields.forEach(n=>{var a;return(a=r.additionalFields)==null?void 0:a.push(zt.fromFormDto(n))})),e.externalCalendars&&(r.externalCalendars=[],e.externalCalendars.forEach(n=>{var a;return(a=r.externalCalendars)==null?void 0:a.push(n)})),e.calendarLink&&(r.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(r.picture=new Pr(e.picture.mimeType,e.picture.url,e.picture.data)),e.servicesSkill&&(r.services=[],e.servicesSkill.forEach(n=>{var a;(a=r.services)==null||a.push({id:n})})),r.color=e.color,r.availableForWidget=e.availableForWidget,r}}class hp{constructor(){g(this,"id"),g(this,"company"),g(this,"firstName"),g(this,"lastName"),g(this,"gender"),g(this,"title"),g(this,"email"),g(this,"phone"),g(this,"otherPhone"),g(this,"description"),g(this,"vacations"),g(this,"role"),g(this,"workingHours"),g(this,"customWorkingHours"),g(this,"picture"),g(this,"services"),g(this,"color"),g(this,"availableForWidget"),g(this,"externalId"),g(this,"additionalFields"),g(this,"externalCalendars"),g(this,"calendarLink")}}class ar{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"description"),g(this,"capacity"),g(this,"price"),g(this,"bufferDuration"),g(this,"preparationDuration"),g(this,"validation"),g(this,"externalId"),g(this,"duration"),g(this,"locations"),g(this,"picture"),g(this,"staffsSkill"),g(this,"color"),g(this,"type"),g(this,"availability"),g(this,"i18n"),g(this,"resources")}static fromServiceDto(e){var r;const n=new ar;n.id=e.id,n.company=e.company?{id:e.company.id,name:De(e.company.name)}:void 0,n.name=De(e.name),n.duration=e.duration,n.description=De(e.description),n.capacity=e.capacity,n.price=e.price,n.bufferDuration=e.bufferDuration,n.preparationDuration=e.preparationDuration,n.validation=e.validation,n.externalId=e.externalId;const a=[];return(r=e.resource)==null||r.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),n.resources=a,n.type=e.bypassFreeBusyAvailabilities!==void 0&&e.bypassFreeBusyAvailabilities?"event":"default",n.locations=e.locations,n.picture=e.picture?new Pr(e.picture.mimeType,e.picture.url):void 0,e.staff&&(n.staffsSkill=[],e.staff.forEach(i=>{var o;(o=n.staffsSkill)==null||o.push(i.id)})),e.i18n&&(n.i18n={},e.i18n.fr&&(n.i18n.fr=e.i18n.fr),e.i18n.en&&(n.i18n.en=e.i18n.en),e.i18n.es&&(n.i18n.es=e.i18n.es),e.i18n.de&&(n.i18n.de=e.i18n.de),e.i18n.it&&(n.i18n.it=e.i18n.it),e.i18n.pt&&(n.i18n.pt=e.i18n.pt),e.i18n.jp&&(n.i18n.jp=e.i18n.jp),e.i18n.nl&&(n.i18n.nl=e.i18n.nl)),n.color=e.color,n.availability=e.availability,n}static toServiceDto(e){var r,n;const a=new mp;a.id=e.id,a.name=Re(e.name),a.duration=e.duration,a.description=Re(e.description),a.capacity=e.capacity,a.price=e.price,a.bufferDuration=e.bufferDuration,a.preparationDuration=e.preparationDuration,a.validation=e.validation,a.externalId=e.externalId,a.picture=(r=e.picture)!=null&&r.data?{url:"",mimeType:"",data:e.picture.data}:void 0;const i=[];return a.bypassFreeBusyAvailabilities=e.type==="event",(n=e.resources)==null||n.forEach(o=>{i.push({id:o.id,name:o.name,quantity:o.quantity})}),a.resource=i,a.locations=e.locations,e.staffsSkill&&(a.staff=[],e.staffsSkill.forEach(o=>{var s;(s=a.staff)==null||s.push({id:o})})),e.i18n&&(a.i18n={},e.i18n.fr&&(a.i18n.fr=e.i18n.fr),e.i18n.en&&(a.i18n.en=e.i18n.en),e.i18n.es&&(a.i18n.es=e.i18n.es),e.i18n.de&&(a.i18n.de=e.i18n.de),e.i18n.it&&(a.i18n.it=e.i18n.it),e.i18n.pt&&(a.i18n.pt=e.i18n.pt),e.i18n.jp&&(a.i18n.jp=e.i18n.jp),e.i18n.nl&&(a.i18n.nl=e.i18n.nl)),a.color=e.color,a.availability=e.availability,a}}class mp{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"duration"),g(this,"locations"),g(this,"picture"),g(this,"description"),g(this,"capacity"),g(this,"price"),g(this,"bufferDuration"),g(this,"preparationDuration"),g(this,"validation"),g(this,"externalId"),g(this,"staff"),g(this,"color"),g(this,"availability"),g(this,"resource"),g(this,"bypassFreeBusyAvailabilities"),g(this,"i18n")}}class ai{constructor(e){g(this,"text"),this.text=e}}class dn{constructor(){g(this,"street"),g(this,"otherStreet"),g(this,"zipCode"),g(this,"city"),g(this,"country"),g(this,"state")}static fromAddressDto(e){const r=new dn;return r.street=De(e.street),r.otherStreet=De(e.otherStreet),r.zipCode=De(e.zipCode),r.city=De(e.city),r.country=De(e.country),r.state=De(e.state),r}static toAddressDto(e){const r=new pp;return r.street=Re(e.street),r.otherStreet=Re(e.otherStreet),r.zipCode=Re(e.zipCode),r.city=Re(e.city),r.country=Re(e.country),r.state=Re(e.state),r}}class pp{constructor(){g(this,"street"),g(this,"otherStreet"),g(this,"zipCode"),g(this,"city"),g(this,"country"),g(this,"state")}}function gp(t){const e=t.replace("#",""),r=("rgb("+e.match(new RegExp("(.{"+e.length/3+"})","g")).map(function(a){return parseInt(e.length%2?a+a:a,16)}).join(",")+")").replace(/[^\d,]/g,"").split(",");var n=Math.floor((Number.parseInt(r[0])*299+Number.parseInt(r[1])*587+Number.parseInt(r[2])*114)/1e3);return n>125?"black":"white"}class Zt{constructor(){g(this,"id"),g(this,"owner"),g(this,"firstName"),g(this,"lastName"),g(this,"email"),g(this,"emailAddresses"),g(this,"phone"),g(this,"phoneNumbers"),g(this,"picture"),g(this,"externalId"),g(this,"marketingConsent"),g(this,"marketingOptins"),g(this,"title"),g(this,"gender"),g(this,"tags"),g(this,"companyName"),g(this,"jobTitle"),g(this,"address"),g(this,"birthDate"),g(this,"language"),g(this,"languageSpoken"),g(this,"languageUnderstood"),g(this,"additionalFieldsTitle"),g(this,"additionalFields"),g(this,"creationDate"),g(this,"timeZone"),g(this,"fax"),g(this,"notification"),g(this,"reminder"),g(this,"description")}static fromContactDto(e){var r,n,a,i;const o=new Zt;o.id=e.id,o.owner=e.owner,o.firstName=De(e.firstName),o.lastName=De(e.lastName);let s=[];(r=e.emailAddresses)==null||r.forEach(w=>{s.push(Vn.fromContactEmailAddressDto(w))}),s.length>0?(o.emailAddresses=s,o.email=s[0].email):o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(w=>{l.push(Un.fromContactPhoneNumberDto(w))}),l.length>0?(o.phoneNumbers=l,o.phone=l[0].number):o.phone=e.phone,e.picture&&(o.picture=new Pr(e.picture.mimeType,e.picture.url,e.picture.data)),o.externalId=e.externalId,o.marketingConsent=e.marketingConsent,o.title=e.title,o.gender=e.gender,e.marketingOptins&&(o.marketingOptins={},e.marketingOptins.email&&(o.marketingOptins.email={enabled:e.marketingOptins.email.enabled}));let u=[];(a=e.tags)==null||a.forEach(w=>{u.push(qn.fromContactTagDto(w))}),u.length>0&&(o.tags=u),o.companyName=e.companyName?De(e.companyName):void 0,o.jobTitle=e.jobTitle?De(e.jobTitle):void 0,e.address&&(o.address=dn.fromAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood;let f=[];if((i=e.additionalFields)==null||i.forEach(w=>{f.push(jn.fromContactAdditionalFieldDto(w))}),f.length>0&&(o.additionalFields=f),o.additionalFieldsTitle=e.additionalFieldsTitle?De(e.additionalFieldsTitle):void 0,e.creationDate){const w=Ja(e.creationDate);w.setHours(0,0,0),o.creationDate=w}return o.timeZone=e.timeZone,o.fax=e.fax,o.notification=e.notificationType,o.reminder=e.reminderType,o.description=e.description,o}static toContactDto(e){var r,n,a,i;const o=new vp;o.id=e.id,o.owner=e.owner,o.firstName=Re(e.firstName),o.lastName=Re(e.lastName);let s=[];(r=e.emailAddresses)==null||r.forEach(w=>{s.push(Vn.toContactEmailAddressDto(w))}),o.emailAddresses=s,o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(w=>{l.push(Un.toContactPhoneNumberDto(w))}),o.phoneNumbers=l,o.phone=e.phone,e.picture&&(o.picture=new Pr(e.picture.mimeType,e.picture.url,e.picture.data)),o.externalId=e.externalId,e.marketingConsent&&(o.marketingConsent=new ai(e.marketingConsent.text)),o.title=e.title,o.gender=e.gender;let u=[];(a=e.tags)==null||a.forEach(w=>{u.push(qn.toContactTagDto(w))}),o.tags=u,o.companyName=Re(e.companyName),o.jobTitle=Re(e.jobTitle),e.address&&(o.address=dn.toAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood,o.additionalFieldsTitle=Re(e.additionalFieldsTitle);let f=[];return(i=e.additionalFields)==null||i.forEach(w=>{f.push(jn.toContactAdditionalFieldDto(w))}),o.additionalFields=f,o.fax=e.fax,o.timeZone=e.timeZone,o.notificationType=e.notification,o.reminderType=e.reminder,o.description=e.description,o}}class ii{constructor(){g(this,"items"),g(this,"nextPageToken"),g(this,"nextSyncToken"),g(this,"totalItems")}static fromContactSearchDto(e){const r=new ii;r.nextPageToken=e.nextPageToken,r.nextSyncToken=e.nextSyncToken,r.totalItems=e.totalItems;const n=[];return e.items.forEach(a=>n.push(Zt.fromContactDto(a))),r.items=n,r}}class Un{constructor(){g(this,"number"),g(this,"primary"),g(this,"mobile")}static fromContactPhoneNumberDto(e){const r=new Un;return r.number=e.number,r.primary=e.primary,r.mobile=e.mobile,r}static toContactPhoneNumberDto(e){const r=new yp;return r.number=e.number,r.primary=e.primary,r.mobile=e.mobile,r}}class Vn{constructor(){g(this,"email"),g(this,"primary")}static fromContactEmailAddressDto(e){const r=new Vn;return r.email=e.email,r.primary=e.primary,r}static toContactEmailAddressDto(e){const r=new bp;return r.email=e.email,r.primary=e.primary,r}}class qn{constructor(){g(this,"id"),g(this,"tag"),g(this,"color"),g(this,"textColor")}static fromContactTagDto(e){const r=new qn;return r.id=e.id,r.tag=De(e.tag),r.color=e.color,e.color&&(r.textColor=gp(e.color)),r}static toContactTagDto(e){const r=new Ep;return r.tag=Re(e.tag),r.color=e.color,r}}class jn{constructor(){g(this,"id"),g(this,"name"),g(this,"mandatory"),g(this,"value")}static fromContactAdditionalFieldDto(e){const r=new jn;return r.id=e.id,r.name=De(e.name),r.mandatory=e.mandatory,r.value=De(e.value),r}static toContactAdditionalFieldDto(e){const r=new wp;return r.id=e.id,r.name=Re(e.name),r.mandatory=e.mandatory,r.value=Re(e.value),r}}class vp{constructor(){g(this,"id"),g(this,"owner"),g(this,"firstName"),g(this,"lastName"),g(this,"email"),g(this,"emailAddresses"),g(this,"phone"),g(this,"phoneNumbers"),g(this,"picture"),g(this,"externalId"),g(this,"marketingConsent"),g(this,"marketingOptins"),g(this,"title"),g(this,"gender"),g(this,"tags"),g(this,"companyName"),g(this,"jobTitle"),g(this,"address"),g(this,"birthDate"),g(this,"language"),g(this,"languageSpoken"),g(this,"languageUnderstood"),g(this,"additionalFieldsTitle"),g(this,"additionalFields"),g(this,"creationDate"),g(this,"timeZone"),g(this,"fax"),g(this,"notificationType"),g(this,"reminderType"),g(this,"description")}}class yp{constructor(){g(this,"number"),g(this,"primary"),g(this,"mobile")}}class bp{constructor(){g(this,"email"),g(this,"primary")}}class Ep{constructor(){g(this,"id"),g(this,"tag"),g(this,"color")}}class wp{constructor(){g(this,"id"),g(this,"name"),g(this,"mandatory"),g(this,"value")}}var dl=(t=>(t.PRO="normal",t.PERSO="personal",t.EXTERNAL="external",t.ICS="ics",t))(dl||{});class Rt{constructor(){g(this,"id"),g(this,"owner"),g(this,"company"),g(this,"service"),g(this,"staff"),g(this,"client"),g(this,"start"),g(this,"end"),g(this,"status"),g(this,"type"),g(this,"source"),g(this,"price"),g(this,"paid"),g(this,"notes"),g(this,"summary"),g(this,"form"),g(this,"metaEvent"),g(this,"metaEventId"),g(this,"onlineMeeting"),g(this,"parameters"),g(this,"events"),g(this,"privacyConsent"),g(this,"marketingConsent"),g(this,"location"),g(this,"locationCustom"),g(this,"preparationDuration"),g(this,"bufferDuration")}static fromEventDto(e,r){var n;const a=new Rt;a.id=e.id,e.owner&&(a.owner={id:e.owner.id,userName:e.owner.userName}),e.company&&(a.company={id:e.company.id,name:De(e.company.name)}),e.service&&(a.service={id:e.service.id,name:De(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:De(e.staff.firstName),lastName:De(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:De(e.client.firstName),lastName:De(e.client.lastName),email:e.client.email}),a.start=Ja(e.start.dateTime,e.start.timeZone),a.end=Ja(e.end.dateTime,e.end.timeZone),a.status=e.status,a.paid=e.paid,a.type=r||e.type,a.source=e.source,a.price=e.price,a.notes=De(e.notes),a.summary=De(e.summary);const i=[];if((n=e.form)==null||n.forEach(o=>i.push(zt.fromFormDto(o))),a.form=i,a.metaEvent=e["meta-event"],a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,a.location=e.location,a.locationCustom=De(e.locationCustom),e.events){const o=[];e.events.forEach(s=>o.push(Rt.fromEventDto(s,r))),a.events=o}return a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}static toEventDto(e,r){var n;const a=new xp;a.id=e.id,e.company&&(a.company={id:e.company.id,name:Re(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Re(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Re(e.staff.firstName),lastName:Re(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Re(e.client.firstName),lastName:Re(e.client.lastName),email:e.client.email}),a.start=al(e.start,r),a.end=al(e.end,r),a.status=e.status,a.paid=e.paid,a.type=e.type,a.source=e.source,a.price=e.price,a.notes=Re(e.notes),a.summary=Re(e.summary);const i=[];if((n=e.form)==null||n.forEach(o=>i.push(zt.toFormDto(o))),a.form=i,a["meta-event"]=e.metaEvent,a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,e.events){const o=[];e.events.forEach(s=>o.push(Rt.toEventDto(s,r))),a.events=o}return e.marketingConsent&&(a.marketingConsent=new ai(e.marketingConsent.text)),e.privacyConsent&&(a.privacyConsent=new ai(e.privacyConsent.text)),a.location=e.location,a.locationCustom=Re(e.locationCustom),a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}}class xp{constructor(){g(this,"id"),g(this,"owner"),g(this,"company"),g(this,"service"),g(this,"staff"),g(this,"client"),g(this,"start"),g(this,"end"),g(this,"status"),g(this,"type"),g(this,"source"),g(this,"paid"),g(this,"price"),g(this,"notes"),g(this,"summary"),g(this,"form"),g(this,"meta-event"),g(this,"metaEventId"),g(this,"onlineMeeting"),g(this,"parameters"),g(this,"events"),g(this,"privacyConsent"),g(this,"marketingConsent"),g(this,"location"),g(this,"locationCustom"),g(this,"preparationDuration"),g(this,"bufferDuration")}}class ir{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"picture"),g(this,"members"),g(this,"parent"),g(this,"externalId"),g(this,"companyId")}static fromServiceGroupDto(e,r){const n=new ir;return n.id=e.id,n.name=De(e.name),n.color=e.color,n.picture=e.picture?new Pr(e.picture.mimeType,e.picture.url,e.picture.data):void 0,e.members&&(n.members=[],e.members.forEach(a=>{var i;(i=n.members)==null||i.push({id:a.id,name:De(a.name)})})),e.parent&&(n.parent={id:e.parent.id,name:De(e.parent.name)}),n.externalId=e.externalId,n.companyId=r,n}static toServiceGroupDto(e){var r,n,a;const i=new _p;return i.id=e.id,i.name=Re(e.name),i.color=e.color,i.picture=e.picture?{url:(r=e.picture)==null?void 0:r.url,mimeType:(n=e.picture)==null?void 0:n.mimeType,data:(a=e.picture)==null?void 0:a.data}:void 0,e.members&&(i.members=[],e.members.forEach(o=>{var s;(s=i.members)==null||s.push({id:o.id,name:Re(o.name)})})),e.parent&&(i.parent={id:e.parent.id,name:Re(e.parent.name)}),i.externalId=e.externalId,i}}class _p{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"picture"),g(this,"members"),g(this,"parent"),g(this,"externalId")}}class or{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"members"),g(this,"workingHours"),g(this,"externalId"),g(this,"companyId")}static fromStaffGroupDto(e,r){const n=new or;return n.id=e.id,n.name=De(e.name),n.color=e.color,e.members&&(n.members=[],e.members.forEach(a=>{var i;(i=n.members)==null||i.push(a)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(a=>{var i;return(i=n.workingHours)==null?void 0:i.push(Mr.fromSettingsWorkingDayDto(a))})),n.externalId=e.externalId,n.companyId=r,n}static toStaffGroupDto(e){const r=new Sp;return r.id=e.id,r.name=Re(e.name),r.color=e.color,e.members&&(r.members=[],e.members.forEach(n=>{var a;(a=r.members)==null||a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Mr.fromSettingsWorkingDayDto(n))})),r.externalId=e.externalId,r}}class Sp{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"members"),g(this,"workingHours"),g(this,"externalId")}}var ke=(t=>(t[t.UNKOWN=0]="UNKOWN",t[t.INTERNAL_ERROR=1]="INTERNAL_ERROR",t[t.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",t[t.INVALID_PARAMETER=3]="INVALID_PARAMETER",t[t.CREDENTIAL_ERROR=100]="CREDENTIAL_ERROR",t[t.USER_ACCOUNT_LOCKED=101]="USER_ACCOUNT_LOCKED",t[t.PASSWORD_POLICY_ERROR=102]="PASSWORD_POLICY_ERROR",t[t.STAFF_NOT_AVAILABLE=1e3]="STAFF_NOT_AVAILABLE",t[t.MAX_APPOINTMENT_DAILY=1001]="MAX_APPOINTMENT_DAILY",t[t.MAX_APPOINTMENT_WEEKLY=1002]="MAX_APPOINTMENT_WEEKLY",t[t.APPOINTMENT_PERIOD_RULE=1003]="APPOINTMENT_PERIOD_RULE",t[t.RESOURCE_NOT_AVAILABLE=1004]="RESOURCE_NOT_AVAILABLE",t[t.DATE_NOT_AVAILABLE=1005]="DATE_NOT_AVAILABLE",t[t.USER_BLOCKED=1006]="USER_BLOCKED",t[t.ACCOUNT_NOT_FOUND=2e3]="ACCOUNT_NOT_FOUND",t))(ke||{});function Ip(t,e){if(e.errorCode)return ke[e.errorCode];if(t==="Appointment")switch(e.reason){case"notFound":return 1e3}return 0}class oi{constructor(){g(this,"errorCode"),g(this,"reason"),g(this,"code"),g(this,"message")}}const sr=new oi;sr.reason="notFound",sr.code=404,sr.message="Not Found";class Ne{constructor(e,r){g(this,"errorCode"),g(this,"e"),this.errorCode=e,this.e=r}}const Cp=36e5;var Je=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))(Je||{}),Le=(t=>(t[t.REMOTE_THEN_LOCAL=0]="REMOTE_THEN_LOCAL",t[t.LOCAL_THEN_REMOTE=1]="LOCAL_THEN_REMOTE",t[t.LOCAL_ONLY=2]="LOCAL_ONLY",t[t.REMOTE_ONLY=3]="REMOTE_ONLY",t))(Le||{});const si=class{constructor(t,e){g(this,"repositoryName"),g(this,"logger"),this.logger=e,this.repositoryName=t}async list(t,e,r){var n;let a;switch(+e){case 0:return this._listRemoteFirstThenLocal(t,r);case 1:return this._isExpired(si.lastRemoteList[this.repositoryName])?((n=this.logger)==null||n.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._listRemoteFirstThenLocal(t,r)):this._listLocalFirstThenRemote(t,r);case 2:return a=await this.localList(r),{local:!0,results:a};case 3:return a=await this.remoteList(t,r),await this.localSaveList(r,a),{local:!1,results:a}}throw new Error("Not implemented")}async update(t,e,r,n){switch(+e){case 0:return this._updateRemoteFirstThenLocal(t,r,n);case 3:return await this.remoteUpdate(t,r,n)}throw new Error("Not implemented")}async create(t,e,r,n){switch(+e){case 0:return this._createRemoteFirstThenLocal(t,r,n);case 3:return await this.remoteCreate(t,r,n);case 2:return await this.localBulkSave(r,[n]),n}throw new Error("Not implemented")}async getById(t,e,r){var n,a;let i=!0,o;switch(+e){case 0:const s=await this._getRemoteFirstThenLocal(t,r);o=s.result,i=s.local;break;case 3:i=!1,o=await this.remoteGet(t,r),await this.localSave(r,o);break;case 2:o=await this.localGet(r);break;case 1:try{o=await this.localGet(r)}catch(l){(n=this.logger)==null||n.debug("js-calendar-api","LocalThenRemote localGet error",l)}return!o||!o.lastRemote||this._isExpired(o.lastRemote)?((a=this.logger)==null||a.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._getRemoteFirstThenLocal(t,r)):this._getLocalFirstThenRemote(t,r);default:throw new Error("Not implemented")}return{local:i,result:o}}async deleteById(t,e){await this.remoteDelete(t,e),await this.localDelete(e)}async cascadeDeleteList(t,e){const r=await this.localList(t);if(r){const n=r.filter(e);await this.localBulkDelete(n)}}async cascadeDeleteItem(t){await this.localDelete(t)}async cascadeDelete(t,e,r=!0){r&&e?await this.cascadeDeleteList(t,e):r||await this.cascadeDeleteItem(t)}async _getLocalFirstThenRemote(t,e){var r,n,a,i=!0;try{a=await this.localGet(e)}catch(o){(r=this.logger)==null||r.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(!a){i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){throw(n=this.logger)==null||n.error("js-calendar-api",`Get ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{result:a,local:i}}async _getRemoteFirstThenLocal(t,e){var r,n;let a,i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){i=!0,(r=this.logger)==null||r.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localGet(e),a===void 0)throw o}catch(s){throw(n=this.logger)==null||n.error("js-calendar-api",`Get ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{result:a,local:i}}async _listRemoteFirstThenLocal(t,e){var r,n;let a=[],i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){i=!0,(r=this.logger)==null||r.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localList(e),a===void 0||a.length===0)throw o}catch(s){throw(n=this.logger)==null||n.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{results:a,local:i}}async _listLocalFirstThenRemote(t,e){var r,n;let a=[],i=!0;try{a=await this.localList(e)}catch(o){(r=this.logger)==null||r.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(a===void 0||a.length===0){i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){throw(n=this.logger)==null||n.error("js-calendar-api",`List ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{results:a,local:i}}async _createRemoteFirstThenLocal(t,e,r){var n;let a;try{a=await this.remoteCreate(t,e,r),await this.localSave(e,a)}catch(i){throw(n=this.logger)==null||n.error("js-calendar-api",`Create ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async _updateRemoteFirstThenLocal(t,e,r){var n;let a;try{a=await this.remoteUpdate(t,e,r),await this.localSave(e,a)}catch(i){throw(n=this.logger)==null||n.error("js-calendar-api",`Update ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async localSaveList(t,e){await this.localBulkSave(t,e),si.lastRemoteList[this.repositoryName]=new Date().getTime()}async localSave(t,e){await this.localBulkSave(t,[e])}_isExpired(t){return!(t&&t+Cp>new Date().getTime())}getError(t){let e=ke.UNKOWN;return t instanceof oi&&(e=Ip(this.repositoryName,t)),new Ne(e,t)}};let lr=si;g(lr,"lastRemoteList",{});class cr{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"quantity"),g(this,"availability"),g(this,"services"),g(this,"customWorkingHours")}static fromServiceResourceDto(e,r){var n;const a=new cr;a.name=e.name,a.id=e.id,a.company={id:r},a.quantity=e.quantity,a.availability=e.availability,a.services=e.services;const i=[];return(n=e.customWorkingHours)==null||n.forEach(o=>{i.push(Lr.fromSettingsPeriodWorkingDto(o))}),a.customWorkingHours=i,a}static toServiceResourceDto(e){var r;const n=new Tp;n.id=e.id,n.name=e.name,n.quantity=e.quantity,n.availability=e.availability,n.services=e.services;const a=[];return(r=e.customWorkingHours)==null||r.forEach(i=>{a.push(Lr.toSettingsPeriodWorkingDto(i))}),n.customWorkingHours=a,n}}class Tp{constructor(){g(this,"id"),g(this,"name"),g(this,"quantity"),g(this,"availability"),g(this,"services"),g(this,"customWorkingHours")}}const Fr="staff",zr="service",Br="serviceResource",fn="contact",ur="event",Ur="serviceGroup",Vr="staffGroup";var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kp(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ap(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var fl={exports:{}},li={exports:{}},hl=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},Dp=hl,dr=Object.prototype.toString;function ci(t){return Array.isArray(t)}function ui(t){return typeof t>"u"}function Np(t){return t!==null&&!ui(t)&&t.constructor!==null&&!ui(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function ml(t){return dr.call(t)==="[object ArrayBuffer]"}function Op(t){return dr.call(t)==="[object FormData]"}function Rp(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ml(t.buffer),e}function Lp(t){return typeof t=="string"}function Mp(t){return typeof t=="number"}function pl(t){return t!==null&&typeof t=="object"}function Hn(t){if(dr.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Pp(t){return dr.call(t)==="[object Date]"}function Fp(t){return dr.call(t)==="[object File]"}function zp(t){return dr.call(t)==="[object Blob]"}function gl(t){return dr.call(t)==="[object Function]"}function Bp(t){return pl(t)&&gl(t.pipe)}function Up(t){return dr.call(t)==="[object URLSearchParams]"}function Vp(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function qp(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function di(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ci(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function fi(){var t={};function e(a,i){Hn(t[i])&&Hn(a)?t[i]=fi(t[i],a):Hn(a)?t[i]=fi({},a):ci(a)?t[i]=a.slice():t[i]=a}for(var r=0,n=arguments.length;r<n;r++)di(arguments[r],e);return t}function jp(t,e,r){return di(e,function(n,a){r&&typeof n=="function"?t[a]=Dp(n,r):t[a]=n}),t}function Hp(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var xt={isArray:ci,isArrayBuffer:ml,isBuffer:Np,isFormData:Op,isArrayBufferView:Rp,isString:Lp,isNumber:Mp,isObject:pl,isPlainObject:Hn,isUndefined:ui,isDate:Pp,isFile:Fp,isBlob:zp,isFunction:gl,isStream:Bp,isURLSearchParams:Up,isStandardBrowserEnv:qp,forEach:di,merge:fi,extend:jp,trim:Vp,stripBOM:Hp},qr=xt;function vl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var yl=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(qr.isURLSearchParams(e))n=e.toString();else{var a=[];qr.forEach(e,function(o,s){o===null||typeof o>"u"||(qr.isArray(o)?s=s+"[]":o=[o],qr.forEach(o,function(l){qr.isDate(l)?l=l.toISOString():qr.isObject(l)&&(l=JSON.stringify(l)),a.push(vl(s)+"="+vl(l))}))}),n=a.join("&")}if(n){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},$p=xt;function $n(){this.handlers=[]}$n.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1},$n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},$n.prototype.forEach=function(t){$p.forEach(this.handlers,function(e){e!==null&&t(e)})};var Gp=$n,Wp=xt,Yp=function(t,e){Wp.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})},bl=function(t,e,r,n,a){return t.config=e,r&&(t.code=r),t.request=n,t.response=a,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,status:this.response&&this.response.status?this.response.status:null}},t},El={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hi,wl;function xl(){if(wl)return hi;wl=1;var t=bl;return hi=function(e,r,n,a,i){var o=new Error(e);return t(o,r,n,a,i)},hi}var mi,_l;function Zp(){if(_l)return mi;_l=1;var t=xl();return mi=function(e,r,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):r(t("Request failed with status code "+n.status,n.config,null,n.request,n))},mi}var pi,Sl;function Kp(){if(Sl)return pi;Sl=1;var t=xt;return pi=t.isStandardBrowserEnv()?function(){return{write:function(e,r,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),t.isString(a)&&s.push("path="+a),t.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),pi}var Il,Cl;function Jp(){return Cl||(Cl=1,Il=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Il}var Tl,kl;function Xp(){return kl||(kl=1,Tl=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),Tl}var gi,Al;function Qp(){if(Al)return gi;Al=1;var t=Jp(),e=Xp();return gi=function(r,n){return r&&!t(n)?e(r,n):n},gi}var vi,Dl;function e1(){if(Dl)return vi;Dl=1;var t=xt,e=["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"];return vi=function(r){var n={},a,i,o;return r&&t.forEach(r.split(`
36
- `),function(s){if(o=s.indexOf(":"),a=t.trim(s.substr(0,o)).toLowerCase(),i=t.trim(s.substr(o+1)),a){if(n[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([i]):n[a]=n[a]?n[a]+", "+i:i}}),n},vi}var yi,Nl;function t1(){if(Nl)return yi;Nl=1;var t=xt;return yi=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(i){var o=i;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{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(i){var o=t.isString(i)?a(i):i;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),yi}var bi,Ol;function Gn(){if(Ol)return bi;Ol=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,bi=t,bi}var Ei,Rl;function r1(){if(Rl)return Ei;Rl=1;var t=xt,e=Zp(),r=Kp(),n=yl,a=Qp(),i=e1(),o=t1(),s=xl(),l=El,u=Gn();return Ei=function(f){return new Promise(function(w,y){var x=f.data,S=f.headers,T=f.responseType,N;function C(){f.cancelToken&&f.cancelToken.unsubscribe(N),f.signal&&f.signal.removeEventListener("abort",N)}t.isFormData(x)&&delete S["Content-Type"];var E=new XMLHttpRequest;if(f.auth){var A=f.auth.username||"",I=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";S.Authorization="Basic "+btoa(A+":"+I)}var D=a(f.baseURL,f.url);E.open(f.method.toUpperCase(),n(D,f.params,f.paramsSerializer),!0),E.timeout=f.timeout;function P(){if(E){var Y="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,Q=!T||T==="text"||T==="json"?E.responseText:E.response,B={data:Q,status:E.status,statusText:E.statusText,headers:Y,config:f,request:E};e(function($){w($),C()},function($){y($),C()},B),E=null}}if("onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){!E||(y(s("Request aborted",f,"ECONNABORTED",E)),E=null)},E.onerror=function(){y(s("Network Error",f,null,E)),E=null},E.ontimeout=function(){var Y=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",Q=f.transitional||l;f.timeoutErrorMessage&&(Y=f.timeoutErrorMessage),y(s(Y,f,Q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},t.isStandardBrowserEnv()){var z=(f.withCredentials||o(D))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;z&&(S[f.xsrfHeaderName]=z)}"setRequestHeader"in E&&t.forEach(S,function(Y,Q){typeof x>"u"&&Q.toLowerCase()==="content-type"?delete S[Q]:E.setRequestHeader(Q,Y)}),t.isUndefined(f.withCredentials)||(E.withCredentials=!!f.withCredentials),T&&T!=="json"&&(E.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&E.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(N=function(Y){!E||(y(!Y||Y&&Y.type?new u("canceled"):Y),E.abort(),E=null)},f.cancelToken&&f.cancelToken.subscribe(N),f.signal&&(f.signal.aborted?N():f.signal.addEventListener("abort",N))),x||(x=null),E.send(x)})},Ei}var dt=xt,Ll=Yp,n1=bl,a1=El,i1={"Content-Type":"application/x-www-form-urlencoded"};function Ml(t,e){!dt.isUndefined(t)&&dt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o1(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=r1()),t}function s1(t,e,r){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Wn={transitional:a1,adapter:o1(),transformRequest:[function(t,e){return Ll(e,"Accept"),Ll(e,"Content-Type"),dt.isFormData(t)||dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)?t:dt.isArrayBufferView(t)?t.buffer:dt.isURLSearchParams(t)?(Ml(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):dt.isObject(t)||e&&e["Content-Type"]==="application/json"?(Ml(e,"application/json"),s1(t)):t}],transformResponse:[function(t){var e=this.transitional||Wn.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||n&&dt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?n1(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};dt.forEach(["delete","get","head"],function(t){Wn.headers[t]={}}),dt.forEach(["post","put","patch"],function(t){Wn.headers[t]=dt.merge(i1)});var wi=Wn,l1=xt,c1=wi,u1=function(t,e,r){var n=this||c1;return l1.forEach(r,function(a){t=a.call(n,t,e)}),t},Pl,Fl;function zl(){return Fl||(Fl=1,Pl=function(t){return!!(t&&t.__CANCEL__)}),Pl}var Bl=xt,xi=u1,d1=zl(),f1=wi,h1=Gn();function _i(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new h1("canceled")}var m1=function(t){_i(t),t.headers=t.headers||{},t.data=xi.call(t,t.data,t.headers,t.transformRequest),t.headers=Bl.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Bl.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var e=t.adapter||f1.adapter;return e(t).then(function(r){return _i(t),r.data=xi.call(t,r.data,r.headers,t.transformResponse),r},function(r){return d1(r)||(_i(t),r&&r.response&&(r.response.data=xi.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},It=xt,Ul=function(t,e){e=e||{};var r={};function n(u,f){return It.isPlainObject(u)&&It.isPlainObject(f)?It.merge(u,f):It.isPlainObject(f)?It.merge({},f):It.isArray(f)?f.slice():f}function a(u){if(It.isUndefined(e[u])){if(!It.isUndefined(t[u]))return n(void 0,t[u])}else return n(t[u],e[u])}function i(u){if(!It.isUndefined(e[u]))return n(void 0,e[u])}function o(u){if(It.isUndefined(e[u])){if(!It.isUndefined(t[u]))return n(void 0,t[u])}else return n(void 0,e[u])}function s(u){if(u in e)return n(t[u],e[u]);if(u in t)return n(void 0,t[u])}var l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return It.forEach(Object.keys(t).concat(Object.keys(e)),function(u){var f=l[u]||a,w=f(u);It.isUndefined(w)&&f!==s||(r[u]=w)}),r},Vl,ql;function jl(){return ql||(ql=1,Vl={version:"0.26.1"}),Vl}var p1=jl().version,Si={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Si[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var Hl={};Si.transitional=function(t,e,r){function n(a,i){return"[Axios v"+p1+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return function(a,i,o){if(t===!1)throw new Error(n(i," has been removed"+(e?" in "+e:"")));return e&&!Hl[i]&&(Hl[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(a,i,o):!0}};function g1(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),a=n.length;a-- >0;){var i=n[a],o=e[i];if(o){var s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var v1={assertOptions:g1,validators:Si},$l=xt,y1=yl,Gl=Gp,Wl=m1,Yn=Ul,Yl=v1,jr=Yl.validators;function hn(t){this.defaults=t,this.interceptors={request:new Gl,response:new Gl}}hn.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Yn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Yl.assertOptions(r,{silentJSONParsing:jr.transitional(jr.boolean),forcedJSONParsing:jr.transitional(jr.boolean),clarifyTimeoutError:jr.transitional(jr.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(e)===!1||(a=a&&w.synchronous,n.unshift(w.fulfilled,w.rejected))});var i=[];this.interceptors.response.forEach(function(w){i.push(w.fulfilled,w.rejected)});var o;if(!a){var s=[Wl,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=e;n.length;){var u=n.shift(),f=n.shift();try{l=u(l)}catch(w){f(w);break}}try{o=Wl(l)}catch(w){return Promise.reject(w)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},hn.prototype.getUri=function(t){return t=Yn(this.defaults,t),y1(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},$l.forEach(["delete","get","head","options"],function(t){hn.prototype[t]=function(e,r){return this.request(Yn(r||{},{method:t,url:e,data:(r||{}).data}))}}),$l.forEach(["post","put","patch"],function(t){hn.prototype[t]=function(e,r,n){return this.request(Yn(n||{},{method:t,url:e,data:r}))}});var b1=hn,Ii,Zl;function E1(){if(Zl)return Ii;Zl=1;var t=Gn();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(i){n=i});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(l){a.subscribe(l),o=l}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},r(function(i){a.reason||(a.reason=new t(i),n(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},e.prototype.unsubscribe=function(r){if(this._listeners){var n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}},e.source=function(){var r,n=new e(function(a){r=a});return{token:n,cancel:r}},Ii=e,Ii}var Kl,Jl;function w1(){return Jl||(Jl=1,Kl=function(t){return function(e){return t.apply(null,e)}}),Kl}var Ci,Xl;function x1(){if(Xl)return Ci;Xl=1;var t=xt;return Ci=function(e){return t.isObject(e)&&e.isAxiosError===!0},Ci}var Ql=xt,_1=hl,Zn=b1,S1=Ul,I1=wi;function ec(t){var e=new Zn(t),r=_1(Zn.prototype.request,e);return Ql.extend(r,Zn.prototype,e),Ql.extend(r,e),r.create=function(n){return ec(S1(t,n))},r}var jt=ec(I1);jt.Axios=Zn,jt.Cancel=Gn(),jt.CancelToken=E1(),jt.isCancel=zl(),jt.VERSION=jl().version,jt.all=function(t){return Promise.all(t)},jt.spread=w1(),jt.isAxiosError=x1(),li.exports=jt,li.exports.default=jt,function(t){t.exports=li.exports}(fl);const tc=kp(fl.exports);class C1{constructor(){g(this,"printQueue"),this.printQueue=[]}makeUrl(e,r){return e&&(r&&(e=this.combineURLs(r,e)),this.printQueue.push(e)),this}makeParams(e){return e&&this.printQueue.push(JSON.stringify(e)),this}makeMethod(e){return e&&this.printQueue.push(e.toUpperCase()),this}makeData(e){const r=typeof e=="string"?e:JSON.stringify(e);return e&&this.printQueue.push(r),this}makeStatus(e,r){return e&&r?this.printQueue.push(`${e}:${r}`):e?this.printQueue.push(`${e}`):r&&this.printQueue.push(r),this}build(){return this.printQueue.join(" ")}combineURLs(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}}class Er{constructor(e,r,n){g(this,"authenticationService"),g(this,"logger"),g(this,"bearerCall",!1),g(this,"instance"),g(this,"axiosLoggerBuilder"),g(this,"baseUrl"),g(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleRefreshToken)}),g(this,"_handleResponse",a=>{var i,o,s,l,u;if(this.logger){const f=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus(a.status,a.statusText).makeData(this.filteredDataLog((u=a.config)==null?void 0:u.data)).makeData(this.filteredDataLog(a.data)).build();this.logger.debug("js-calendar-api",f)}return a.data}),g(this,"_handleError",a=>{var i,o,s,l,u,f,w,y,x,S;if(this.logger){const T=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus((u=a.response)==null?void 0:u.status,(f=a.response)==null?void 0:f.statusText).makeData((w=a.config)==null?void 0:w.data).makeData((y=a.response)==null?void 0:y.data).build();this.logger.error("js-calendar-api",T)}if(tc.isAxiosError(a)&&((S=(x=a.response)==null?void 0:x.data)==null?void 0:S.error)){const T=Object.assign(new oi,a.response.data.error);return Promise.reject(T)}else return Promise.reject(a)}),g(this,"_handleRefreshToken",async a=>{if(!this.bearerCall&&a.response){const i=a.config;if(a.response.status===401||a.response.status===400&&a.response.data&&a.response.data.error&&a.response.data.error.message&&a.response.data.error.message.indexOf("Required parameter apiKey not found")>-1)if(i._retry)this.authenticationService.logout().finally(()=>window.location.href="/");else{i._retry=!0;try{return await this.authenticationService.refreshToken(),this.instance(i)}catch{this.authenticationService.logout().finally(()=>window.location.href="/")}}}return this._handleError(a)}),this.authenticationService=r,this.logger=n,this.baseUrl=e,this.instance=tc.create({baseURL:e}),this.axiosLoggerBuilder=new C1,this._initializeResponseInterceptor()}filteredDataLog(e){return e}getAxiosConfig(e){var r={};return e?(this.bearerCall=!0,r={headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},params:{}}):(this.bearerCall=!1,r={headers:{"Content-Type":"application/json"},params:{},withCredentials:!0}),r}}var Me={};/*! *****************************************************************************
35
+ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placeholder:"Saisissez un message de remerciement",label:"Message de remerciement"}},"queue-monitoring":{title:"@:queue.menu.queue-monitoring",waiting_people:"En attente : {count} personnes",finish_people:"Termin\xE9 : {count} personnes",medium_waiting_time:"Attente moyenne : {waiting_time}","called-clients":"Clients appel\xE9s ",button:{absent:"Non pr\xE9sent",finish:"Termin\xE9"},search:{placeholder:"Rechercher par nom"},table:{number:"Num\xE9ro",fullname:"Nom",email:"Email",phone:"T\xE9l\xE9phone",waitingTime:"Temps d'attente"}},queues:{delete:{title:"Suppression de la file d'attente",confirm:"@:common.action.delete",descriptionN:"{number} files d'attente vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"},search:{empty:"Aucune file d'attente",placeholder:"@:common.search.by-name"},table:{name:"@:common.field.name.label",author:"@:common.field.email.label"},title:"Files d'attente ({number})"},location:{itinerary:"Itin\xE9raire"},menu:{burger:{"aria-label":"Afficher le menu"},"queue-monitoring":"Suivi","queue-settings":"Configuration g\xE9n\xE9rale","queue-new":"Nouvelle files d'attente",queues:"Toutes les files d'attente","close-aria-label":"Fermer le menu des files d'attente"},powered:"Propuls\xE9 par Agendize",title:"File d'attente",waiting:{people:"{nb} personne(s)","waiting-time":"Environ {time} minute(s) d'attente","number-in-queue":"Vous \xEAtes le num\xE9ro {nb} dans la file d'attente",recap:"Il y a {nb} personne(s) devant vous. Votre temps d\u2019attente est estim\xE9 \xE0 {time} minute(s)"},"working-hours":{"open-today":"Ouvert aujourd'hui",closed:"Ferm\xE9e",title:"Les horaires"}},Mf={filter:{title:"Filtres",description:"Les filtres vous permettent d\u2019acc\xE9der facilement \xE0 la donn\xE9e qui vous int\xE9resse en fonction de la p\xE9riode, des \xE9tablissements et des collaborateurs.",period:"P\xE9riode",companies:"\xC9tablissements",users:"Collaborateurs"}},Pf={list:{title:"Visualiser mes statistiques",subTitle:"Analyser les performances de vos \xE9tablissements sur une p\xE9riode donn\xE9e.",filter:"Filtrer",loading:"Chargement de mes rapports",account:"S\xE9lectionner le compte \xE0 afficher",error:"Une erreur a eu lieu lors du chargement de mes rapports"}},Ff={recents:"Recherches r\xE9centes",loading:"Loading",company:{desc:"Rechercher puis s\xE9lectionner une entreprise",placeholder:"Rechercher par nom, adresse","image-alt":"Image de l'entreprise","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'entreprise"},service:{desc:"Rechercher puis s\xE9lectionner un service parmi ceux disponibles dans votre entreprise.",placeholder:"Rechercher par nom",duration:"{duration} minutes","image-alt":"Image du service","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le service"},staff:{desc:"Rechercher puis s\xE9lectionner un \xE9quipier parmi ceux affect\xE9s \xE0 votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'\xE9quipier","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'\xE9quipier"},contact:{desc:"Rechercher puis s\xE9lectionner un @:crm.contact-trad parmi la liste des @:crm.contacts-trad de votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image du @:crm.contact-trad","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner le @:crm.contact-trad"},user:{desc:"Rechercher puis s\xE9lectionner un utilisateur parmi ceux affect\xE9s \xE0 votre entreprise.",placeholder:"Rechercher par nom, pr\xE9nom, email","image-alt":"Image de l'utilisateur","action-alt":"","action-aria-label":"D\xE9s\xE9lectionner l'utilisateur"},noResults:{title:"Aucun r\xE9sultat trouv\xE9",desc:"Nous n'avons trouv\xE9 aucun r\xE9sultat correspondant \xE0 votre recherche."}},zf={action:{cancel:"@:common.action.cancel",save:"@:common.action.save",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete","new-company":"Nouvelle entreprise","delete-success":"La suppression a bien \xE9t\xE9 effectu\xE9e"},calendar:{title:"Param\xE9trage",subTitle:"Param\xE9trez et personnalisez l\u2019interface de votre calendrier.",back:"@:common.action.back",save:"@:common.action.save",displaySettings:{title:"Options d\u2019affichage",subTitle:"Les options d\u2019affichage vous permettent de personnaliser votre calendrier en fonction de vos besoins et de votre activit\xE9.",days:{label:"Jours de la semaine",helper:"Vous pouvez s\xE9lectionner les jours de la semaine \xE0 afficher dans votre calendrier."},limit:{min:"Borne de d\xE9but",max:"Borne de fin",helper:"Le calendrier affichera uniquement les rendez-vous entre ces deux bornes."},color:{label:"Couleur du cr\xE9neau",helper:"Ce param\xE8tre sera appliqu\xE9 uniquement lorsque le calendrier d\u2019un seul collaborateur sera affich\xE9.",values:{staff:"Couleur du collaborateur",service:"Couleur du service","service-group":"Couleur du groupe de service"}}},action:{save:{success:"Le param\xE8trage a bien \xE9t\xE9 enregistr\xE9",error:"Echec lors de l'enregistrement du param\xE8trage"}}},common:{day:{monday:"Lundi",tuesday:"Mardi",wednesday:"Mercredi",thursday:"Jeudi",friday:"Vendredi",saturday:"Samedi",sunday:"Dimanche",closed:"Ferm\xE9e"},book:"Prendre rendez-vous",preview:"Pr\xE9visualisation",duration:"{minutes} minutes",error:{"max-user":"Le nombre maximum d'utilisateur est atteint. Merci de vous rapprocher de votre support pour augmenter le seuil","save-error":"Une erreur a eu lieu lors de la sauvegarde"},number:{2:"deux",3:"trois",4:"quatre",5:"cinq",6:"six",7:"sept",8:"huit",9:"neuf",10:"dix"}},companies:{title:"Mon organisation ({number})",table:{name:"@:common.field.name.label",address:"@:common.field.address.label",email:"@:common.field.email.label"},search:{empty:"Aucune entreprise",placeholder:"Rechercher par nom, code postal, email"},delete:{title:"Suppression de compagnies",confirm:"@:common.action.delete",descriptionN:"{number} compagnies vont \xEAtre supprim\xE9es, confirmez-vous la suppression ?",description1:"{name} va \xEAtre supprim\xE9e, confirmez-vous la suppression ?"}},"companies-cards":{create:"Ajouter un \xE9tablissement",duplicate:"Dupliquer un \xE9tablissement",delete:"Supprimer les \xE9tablissements",title:"G\xE9rer mon organisation",subTitle:"Une organisation peut comprendre plusieurs \xE9tablissements, \xE9quipes et collaborateurs. Le param\xE9trage de votre organisation vous permet d\u2019uniformiser votre r\xE9seau.",tab:{companies:{title:"Mes \xE9tablissements"},services:{title:"Mes services"},staffs:{title:"Mes collaborateurs"},plannings:{title:"Mes plannings"}}},"company-home":{previous:"Retour \xE0 la liste",update:"@:common.action.modify",tab:{home:{title:"Mon \xE9tablissement"},staffGroups:{title:"Les \xE9quipes"},staffs:{title:"Les collaborateurs"},serviceGroups:{title:"Les cat\xE9gories"},services:{title:"Les services"}},performance:{title:"Vos performances",description:"Performances sur les {n} derniers jours",appointment:{made:"Rendez-vous pris",cancel:"Rendez-vous annul\xE9s",finish:"Rendez-vous termin\xE9s"}},widget:{title:"Faites vous connaitre",link:{title:"Partager le lien vers le widget",copy:"Le lien est copi\xE9"},QRCode:"Partager votre qrcode",integration:"Voir les autres int\xE9grations"},staff:{title:"Ajouter des collaborateurs",description:"Ajoutez des collaborateurs \xE0 votre \xE9tablissement et proposez de nouvelles disponibilit\xE9s \xE0 vos clients.",add:"Ajouter un collaborateur"},service:{title:"Ajouter des services",description:"Ajoutez des services \xE0 votre \xE9tablissement et proposez des options de r\xE9servations suppl\xE9mentaires \xE0 vos clients.",add:"Ajouter un service"}},"company-details":{tabs:{general:"Informations g\xE9n\xE9rales",hours:"Horaires d'ouverture",advanced:"Avanc\xE9s"},new:{title:"Ajouter un \xE9tablissement",subTitle:"Un \xE9tablissement est un lieu de travail pour vos collaborateur ainsi qu\u2019un point d\u2019accueil pour vos clients."},title:"Informations g\xE9n\xE9rales","save-success":"Les informations de l'\xE9tablissement ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9tablissement",name:{label:"@:common.field.name.label",placeholder:"Saisissez un nom d'\xE9tablissement"},logo:{label:"Logo",placeholder:"",helper:"Le logo sera utilis\xE9 sur le mini-site votre \xE9tablissement","default-name":"Image de l'\xE9tablissement",button:"Ajouter un logo"},photo:{label:"@:common.field.illustration.label","default-name":"Illustration de votre \xE9tablissement",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer votre \xE9tablissement sur le mini-site.",button:"@:common.field.illustration.button"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},address:{title:"Adresse de votre \xE9tablissement",subtitle:"L\u2019adresse de votre \xE9tablissement doit \xEAtre l\u2019adresse \xE0 laquelle vous serez en capacit\xE9 de recevoir vos @:crm.contacts-trad suite \xE0 une prise de rendez-vous.",label:"@:common.field.address.label",placeholder:"1 place g\xE9n\xE9ral De Gaulle"},address2:{label:"Compl\xE9ment d\u2019adresse"},zipcode:{label:"Code postal",placeholder:"75008"},city:{label:"Ville",placeholder:"Paris"},state:{label:"\xC9tat"},country:{label:"Pays"},contact:{title:"Coordonn\xE9es",subtitle:"Ces coordonn\xE9es permettront \xE0 vos @:crm.contacts-trad de vous contacter."},email:{label:"@:common.field.email.label",placeholder:"Saisissez l\u2019email de votre \xE9tablissement"},phone:{label:"T\xE9l\xE9phone",placeholder:"Saisissez le num\xE9ro t\xE9l\xE9phone de votre \xE9tablissement"},web:{title:"Site internet et r\xE9seaux sociaux",subtitle:"Ces informations permettent de mettre en avant votre site internet et vos r\xE9seaux sociaux dans les diff\xE9rents supports \xE0 destination de vos @:crm.contacts-trad"},website:{label:"Site internet",placeholder:"Saisissez l\u2019url d\u2019un site internet de l'\xE9tablissement"},facebook:{label:"Facebook"},instagram:{label:"Instagram"},twitter:{label:"Twitter"},linkedin:{label:"LinkedIn"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},optional:"Optionnel","external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},timeZone:{title:"Fuseau horaire",label:"Fuseau horaire principal",placeholder:"S\xE9lectionnez un fuseau horaire",helper:"Le fuseau horaire permet de d\xE9finir sur quel fuseau horaire se trouve votre \xE9tablissement. Chacun des collaborateurs cr\xE9\xE9s dans votre \xE9tablissement auront par d\xE9faut le m\xEAme fuseau horaire."},hours:{title:"Horaires de l\u2019\xE9tablissement",open:"Ouverture","all-weeks":"Toutes les semaines",edit:"Modifier les horaires","apply-to-staff":"Appliquer les horaires aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement remplacer les horaires aux collaborateurs ?"},unavailable:{title:"Indisponibilit\xE9s","apply-to-staff":"Appliquer les indisponibilit\xE9s aux collaborateurs",confirmApply:"Souhaitez-vous r\xE9ellement ajouter les indisponibilit\xE9s des collaborateurs ?"}},"custom-hours":{period:{date:"Du {start} au {end}","all-week":"Toutes les semaines","custom-week":"Une semaine sur {occurrence}"},edit:"Modifier la p\xE9riode",add:"Ajouter une p\xE9riode sp\xE9cifique",save:"@:common.action.save",validate:"@:common.action.validate",name:{title:"Nom de la p\xE9riode",placeholder:"Saisissez le nom de la p\xE9riode"},terminal:{title:"Bornes de la p\xE9riode"},"week-occurrence":{"start-text":"R\xE9p\xE9ter tou(te)s les","end-text":"semaine(s)"},"day-tooltip":"Vous pouvez s\xE9lectionner les jours de la semaine faisant l\u2019objet d\u2019horaires sp\xE9cifiques. Un jour non s\xE9lectionn\xE9 prendra les horaires par d\xE9faut du collaborateurs."},"integration-modal":{title:"Int\xE9grer votre widget",body:"Vous pouvez int\xE9grer le widget de l\u2019\xE9tablissement \xE0 votre site internet via notre int\xE9gration iframe ou simplement partager le lien dans une publication sur vos r\xE9seaux.",link:"Lien",iframe:"Int\xE9gration iframe"},plannings:{create:"Ajouter un planning",search:{placeholder:"Rechercher par nom"},delete:{title:"Supprimer un planning",description:"\xCAtes-vous s\xFBr de vouloir supprimer ce planning ? Cela aura pour effet de rendre indisponible l\u2019ensemble des collaborateurs affect\xE9s \xE0 ce planning",confirm:"Supprimer",success:"Le planning a bien \xE9t\xE9 supprim\xE9"},empty:"Aucun planning","save-success":"Les informations du planning ont bien \xE9t\xE9 enregistr\xE9es"},"planning-details":{new:"Nouveau planning",subTitle:"Un planning correspond \xE0 un mod\xE8le d'horaire de travail \xE0 appliquer \xE0 un ou plusieurs collaborateurs pour un \xE9tablissement donn\xE9",section:{general:{title:"Informations g\xE9n\xE9rales",subTitle:"D\xE9finissez les informations de base de votre planning"},workingHours:{title:"Horaires de travail",subTitle:"Les horaires de travail d\xE9finie ci-dessous s'appliqueront pour l'ensemble des collaborateurs ayant ce planning d'affect\xE9."}},name:{label:"Nom",placeholder:"Saisissez un nom"},addWeek:"Ajouter une semaine",deleteWeek:"Supprimer la semaine",back:"Retour \xE0 la liste",error:{startAfterEnd:"L'heure de d\xE9but doit \xEAtre inf\xE9rieur \xE0 l'heure de fin",noHour:"Une horaire n'a pas \xE9t\xE9 renseign\xE9e",overlap:"Les horaires de ce jour se chevauchent",general:"Les horaires ne sont pas conformes"}},"qr-code-modal":{title:"Partager votre widget",body:"Vos clients peuvent acc\xE9der au widget de l\u2019\xE9tablissement en scannant le QR code. Votre QR code n\u2019expiera pas dans le temps sauf si vous supprimez l\u2019\xE9tablissement."},menu:{burger:{"aria-label":"Afficher le menu"},mobile:"Param\xE8tres",companies:"Toutes les entreprises","company-details":"Informations g\xE9n\xE9rales","company-new":"Nouvelle entreprise",services:"@:common.field.services.label","services-groups":"@:common.field.service-groups.label","staffs-groups":"@:common.field.staff-groups.label",staffs:"@:common.field.staffs.label"},profile:{title:"G\xE9rer mon profil",personal_data:"Mes donn\xE9es personnelles",preferences:"Mes pr\xE9f\xE9rences",cancel:"@:common.action.cancel",save:"@:common.action.save",error:{100:"Le mot de passe ne correspond pas",101:"Votre compte est v\xE9rouill\xE9",102:"Le mot de passe ne r\xE9pond pas aux crit\xE8res de validation d\u2019un mot de passe"},password:{title:"Modifier mon mot de passe",change:"@:common.action.modify",current:"Mot de passe actuel",new:"Nouveau mot de passe",confirm:"Confirmer mot de passe",notmatch:"Les mots de passe ne correspondent pas!","change-success":"Votre mot de passe a bien \xE9t\xE9 modifi\xE9","change-error":"Votre mot de passe n'a p\xFB \xEAtre modifi\xE9",label:"Mot de passe",reset:"Modifier"},photo:{label:"Photo","default-name":"Image de profil"},firstname:"Pr\xE9nom",lastname:"Nom",contact:{title:"Coordonn\xE9es",description:"Il s'agit des coordonn\xE9es sur lesquelles vous pourrez \xEAtre contact\xE9"},email:"Email",security:{title:"S\xE9curit\xE9",description:"Vous pouvez modifier votre mot de passe"},"change-success":"Votre profil a bien \xE9t\xE9 modifi\xE9","change-error":"Votre profil n'a p\xFB \xEAtre modifi\xE9",default_account:"Organisation par d\xE9faut",language:{title:"Langue et r\xE9gion",description:"G\xE9rez la langue et le fuseau horaire utilis\xE9s pour personnaliser votre exp\xE9rience Agendize.",label:"Langue"},timezone:"Zone horaire"},services:{title:"@:common.field.services.label",new:"Nouveau service",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce service ? | Souhaitez-vous r\xE9ellement supprimer ces {n} services ?",search:{placeholder:"@:common.search.by-name"},group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",groups:"@:common.field.service-groups.label",enabled:"@:common.field.actif.label"},no:"Aucun service",deleted:"Service supprim\xE9 | Services supprim\xE9s"},"services-cards":{add:"Ajouter un service",confirm:"@:common.action.confirm",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",tag:{multiple:"Multiple",address:"Pr\xE9sentiel",visio:"En visioconf\xE9rence",phone:"Par t\xE9l\xE9phone"}},"servicesGroups-cards":{add:"Ajouter une cat\xE9gorie",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",empty:"Aucune cat\xE9gorie",services:"{nb} service|{nb} services",search:{placeholder:"@:common.search.by-name"},filter:{all:"Toutes les cat\xE9gories","lvl-1":"Cat\xE9gories de niveau 1","lvl-2":"Cat\xE9gories de niveau 2"}},"service-details":{title:"Service",subTitle:"Les services repr\xE9sentent les prestations apport\xE9es par vos collaborateurs \xE0 un ou plusieurs clients.",new:"Nouveau service",clone:"Duplication : {name}",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations du service ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement du service",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},actif:{label:"@:common.field.actif.label",placeholder:"Rendre actif ou inactif le service",helper:"D\xE9sactive le service pour qu'il ne soit plus disponible sur le widget de prise de rendez-vous"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration du service",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer le service sur le mini-site.",button:"@:common.field.illustration.button"},duration:{label:"Dur\xE9e",placeholder:"S\xE9lectionnez la dur\xE9e du service"},quantity:{label:"Capacit\xE9",placeholder:"Saisissez la capacit\xE9 du service",helper:"Nombre de r\xE9servations pouvant \xEAtre prises pour ce service sur un m\xEAme cr\xE9neau horaire."},color:{label:"Couleur du service",placeholder:"S\xE9lectionnez la couleur du service",helper:"La couleur du service peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur un service en particulier"},colors:{red:"Rouge",blue:"Bleu",purple:"Violet",green:"Vert",orange:"Orange"},location:{title:"Emplacements du service",subtitle:"Vous pouvez proposer diff\xE9rents types d\u2019emplacement \xE0 votre service",label:"Emplacement du service",placeholder:"S\xE9lectionnez l'emplacement du service"},locations:{company:"Adresse de l'entreprise",companyAddress:"@:settings.service-details.locations.company",phone:"Par t\xE9l\xE9phone",visio:"En visioconf\xE9rence",visioconference:"@:settings.service-details.locations.visio",videoconference:"@:settings.service-details.locations.visio",custom:"Emplacement personnalis\xE9"},price:{title:"Prix du service",subtitle:"Vous pouvez fixer le prix de votre service si celui-ci est un service payant.",label:"Prix {currency}",placeholder:"Saisissez un prix"},category:{title:"Cat\xE9gorie du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Cat\xE9gorie",placeholder:"S\xE9lectionnez une cat\xE9gorie"},visibility:{title:"Visibilit\xE9 du service",subtitle:"Les cat\xE9gories permettent de rassembler plusieurs services dans un groupe de service. Vos @:crm.contacts-trad pourront visualiser l\u2019ensemble des services d\u2019une cat\xE9gorie sur le mini-site.",label:"Visibilit\xE9",placeholder:"S\xE9lectionnez une visibilit\xE9"},visibilities:{public:"Public",backoffice:"Priv\xE9",hidden:"Dissimul\xE9",disabled:"D\xE9sactiv\xE9"},staffs:{title:"Collaborateurs en charge du service",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},buffer:{title:"Temps avant et apr\xE8s le rendez-vous",subtitle:"Le temps avant et apr\xE8s le rendez-vous permet d\u2019inclure un d\xE9lai suppl\xE9mentaire de pr\xE9paration ou de rangement dans votre rendez-vous",before:{label:"Dur\xE9e",actif:"Activer un d\xE9lai avant rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps avant le rendez-vous"},after:{label:"Dur\xE9e",actif:"Activer un d\xE9lai apr\xE8s rendez-vous",placeholder:"S\xE9lectionnez la dur\xE9e du temps apr\xE8s le rendez-vous"}},validation:{title:"Validation du rendez-vous",subtitle:"Vous pouvez d\xE9sactiver la validation automatique du rendez-vous au profit d\u2019une validation manuelle par le collaborateur ou par le manager",actif:"Valider manuellement le rendez-vous",label:"Mode de validation",placeholder:"S\xE9lectionnez le mode de validation du service"},validations:{location:"Param\xE9trage de l'entreprise",auto:"Aucune",manager:"Par le manager",staff:"Par le collaborateur"},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availabilities:"Disponibilit\xE9s",options:"Options",advanced:"@:settings.tabs.advanced"}},serviceGroups:{title:"@:common.field.service-groups.label",new:"Nouvelle cat\xE9gorie",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette cat\xE9gorie ? | Souhaitez-vous r\xE9ellement supprimer ces {n} cat\xE9gories ?",search:{placeholder:"@:common.search.by-name"},parent:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",parent:"@:common.field.parent.label"},no:"Aucune cat\xE9gorie",deleted:"Cat\xE9gorie supprim\xE9e | Cat\xE9gories supprim\xE9es"},"serviceGroup-details":{title:"Ajouter une cat\xE9gorie",subTitle:"Les cat\xE9gories permettent de cr\xE9er des ensembles de services et organiser votre liste de service.",action:{back:"@:common.action.back-to-list"},"save-success":"Les informations de la cat\xE9gorie ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de la cat\xE9gorie",name:{label:"@:common.field.name.label",placeholder:"@:common.field.name.placeholder"},illustration:{label:"@:common.field.illustration.label","default-name":"Illustration de la cat\xE9gorie",placeholder:"@:common.field.illustration.placeholder",helper:"L\u2019illustration sera utilis\xE9e afin d\u2019illustrer la cat\xE9gorie sur le mini-site.",button:"@:common.field.illustration.button"},parent:{label:"Cat\xE9gorie parente",helper:"La cat\xE9gorie parente permet de faire des liens hi\xE9rarchiques entre vos cat\xE9gories. ",none:"Aucune"},color:{label:"Couleur de la cat\xE9gorie",placeholder:"S\xE9lectionnez la couleur de la cat\xE9gorie",helper:"La couleur de la cat\xE9gorie peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur des services d\u2019une cat\xE9gorie particuli\xE8re"},service:{title:"Service de la cat\xE9gorie",description:"Les services de la cat\xE9gorie sont les services disponibles lorsque vos @:crm.contacts-trad se rendent dans la page d\xE9di\xE9e \xE0 cette cat\xE9gorie dans la mini-site."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",advanced:"@:settings.tabs.advanced"}},staffs:{title:"@:common.field.staffs.label",new:"Nouveau collaborateur",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",updated:"Le collaborateur a bien \xE9t\xE9 modifi\xE9",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer ce collaborateur ? | Souhaitez-vous r\xE9ellement supprimer ces {n} collaborateurs ?",search:{placeholder:"@:common.search.by-firstName-lastName"},group:{none:"@:common.content.none"},columns:{firstname:"@:common.field.firstName.label",lastname:"@:common.field.lastName.label",enabled:"@:common.field.actif.label"},no:"Aucun collaborateur",deleted:"Collaborateur supprim\xE9 | Collaborateurs supprim\xE9s"},"staff-details":{new:"Nouveau collaborateur",subTitle:"Les collaborateurs sont les personnes en charge des services.",action:{back:"@:common.action.back-to-list"},clone:"Duplication : {lastName} {firstName}","save-success":"Les informations du collaborateur ont bien \xE9t\xE9 enregistr\xE9es",title:{label:"Titre",placeholder:"@:common.content.none"},titles:{none:"@:common.content.none",mr:"Monsieur",miss:"Mademoiselle",mrs:"Madame",dr:"Docteur",me:"Ma\xEEtre"},gender:{label:"Genre",placeholder:"@:common.content.none"},genders:{male:"Homme",female:"Femme",other:"Autre"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},description:{label:"@:common.field.description.label",placeholder:"@:common.field.description.placeholder"},photo:{label:"@:common.field.photo.label",placeholder:"@:common.field.photo.placeholder",helper:"La photo sera utilis\xE9e afin d\u2019identifier le collaborateur sur le mini-site.","default-name":"Image du collaborateur",button:"@:common.field.illustration.button"},contact:{title:"Coordonn\xE9es du collaborateur",subtitle:"Les coordonn\xE9es du collaborateur sont utilis\xE9es pour les notifications email et SMS."},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{fixe:"T\xE9l\xE9phone fixe",mobile:"T\xE9l\xE9phone mobile"},group:{title:"@:common.field.staff-group.label",subtitle:"Les \xE9quipes permettent de g\xE9rer plusieurs collaborateurs comme un ensemble. Des disponibilit\xE9s peuvent \xEAtre affect\xE9es \xE0 une \xE9quipe et impacter la disponibilit\xE9 de l\u2019ensemble des collaborateurs de cette \xE9quipe.",label:"@:common.field.staff-group.label",placeholder:"@:common.content.none-e"},availableForWidget:{title:"Disponibilit\xE9 \xE0 la prise de rendez-vous",subtitle:"Lorsqu\u2019un collaborateur n\u2019est pas disponible \xE0 la prise de rendez-vous en ligne, aucun rendez-vous ne peut \xEAtre pris avec lui.",label:"Disponible \xE0 la prise de rendez-vous"},hours:{title:"Disponibilit\xE9s du collaborateur"},unavailable:{title:"Indisponibilit\xE9s"},services:{title:"Services dispens\xE9s",subtitle:"Un service est dispens\xE9 par un collaborateur. Un service est disponible quand au moins un des collaborateurs est disponible pour la dur\xE9e sp\xE9cifi\xE9e sur le service."},rights:{title:"Droits d'acc\xE9s"},role:{label:"R\xF4le",placeholder:"@:common.content.none",helper:"Le r\xF4le permet de d\xE9finir les droits d\u2019acc\xE8s et fonctionnalit\xE9s accessibles pour le collaborateur"},roles:{none:"@:common.content.none",reader:"@:common.roles.reader",scheduler:"@:common.roles.scheduler",administrator:"@:common.roles.administrator"},"external-calendars":"@:common.field.external-calendars.label",icals:{title:"@:common.field.icals.label",placeholder:"@:common.field.icals.placeholder"},"external-ref":"@:common.field.external-ref.label","id-externe":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},tabs:{general:"Informations g\xE9n\xE9rales",services:"Services",rights:"Droits d'acc\xE8s",availabilities:"Disponibilit\xE9",advanced:"@:settings.tabs.advanced"}},staffGroups:{title:"@:common.field.staff-groups.label",new:"Nouvelle \xE9quipe",duplicate:"@:common.action.duplicate",delete:"@:common.action.delete",confirm:"@:common.action.confirm",confirmDelete:"Souhaitez-vous r\xE9ellement supprimer cette \xE9quipe ? | Souhaitez-vous r\xE9ellement supprimer ces {n} \xE9quipes ?",search:{placeholder:"@:common.search.by-name"},membersCount:"1 collaborateur | {n} collaborateurs",noMember:"Aucun collaborateur",group:{none:"@:common.content.none"},columns:{name:"@:common.field.name.label",staffsCount:"@:common.field.number.label"},no:"Aucune \xE9quipe",deleted:"\xC9quipe supprim\xE9e | \xC9quipes supprim\xE9es"},"staffGroup-details":{title:"Nouvelle \xE9quipe",subTitle:"Les \xE9quipes permettent de cr\xE9er des ensembles de collaborateur et organiser votre liste d'\xE9quipe.","save-success":"Les informations de l'\xE9quipe ont bien \xE9t\xE9 enregistr\xE9es","save-error":"\xC9chec lors de l'enregistrement de l'\xE9quipe",action:{back:"@:common.action.back-to-list"},name:{label:"@:common.field.name.label",placeholder:"Saisissez le nom de l'\xE9quipe"},color:{label:"Couleur de l'\xE9quipe",placeholder:"S\xE9lectionnez la couleur de l'\xE9quipe",helper:"La couleur de l'\xE9quipe peut \xEAtre utilis\xE9e dans le calendrier afin de distinguer les rendez-vous pris sur les collaborateur d\u2019une \xE9quipe en particulier"},staff:{title:"Collaborateur de l'\xE9quipe",description:"Les collaborateurs de l\u2019\xE9quipe seront li\xE9s par des propri\xE9t\xE9s communes."},"external-ref":{title:"@:common.field.external-ref.label"},"external-id":{label:"@:common.field.external-id.label",placeholder:"@:common.field.external-id.placeholder",helper:"@:common.field.external-id.helper"},availability:{title:"Disponibilit\xE9s de l\u2019\xE9quipe"},tabs:{general:"Informations g\xE9n\xE9rales",staffs:"Collaborateurs",availability:"@:settings.tabs.availabilities",advanced:"@:settings.tabs.advanced"}},tabs:{general:"G\xE9n\xE9ral",hours:"Horaires",availability:"Disponibilit\xE9s",advanced:"Avanc\xE9s",options:"Options",availabilities:"Disponibilit\xE9s",rights:"Droits d'acc\xE8s"},"working-hours":{title:"Horaires d'ouverture",save:"@:common.action.validate"}},Bf={fields:{optional:"Optionnel",mandatory:"Ce champ est obligatoire",file:{defaultPlaceHolder:"Glisser-d\xE9poser votre fichier pour l'ajouter",defaultButtonLabel:"Ajouter un fichier",info:"(jusqu'\xE0 {size}mb, formats accept\xE9s : {format})"}},error:{empty:"Ce champ ne peut \xEAtre vide",regex:"Le format du champ est invalid",phone:"Le num\xE9ro de t\xE9l\xE9phone n'est pas un num\xE9ro valide",format:"Le format du champ est invalid",businessHours:{invalid:"Horaire non valide"},file:{size:"La taille de votre fichier d\xE9passe la limite",format:"Format de fichier non accept\xE9"},api:{message:"Une erreur api est survenu (code : {code}, message: {message})"}},buttons:{back:"@:common.action.back",close:"@:common.action.close",cancel:"@:common.action.cancel"},businessHours:{"day-enabled-aria-label":"Activer les horaires pour le {day}","day-disabled-aria-label":"D\xE9sactiver les horaires pour le {day}","add-aria-label":"Ajouter des horaires pour le {day}","remove-aria-label":"Supprimer la ligne d'horaire pour le {day}"}},Uf={agenda:kf,agendize:Af,calendar:Df,common:Nf,crm:Of,"event-booking":{new:"Nouveau rendez-vous",reschedule:"Replanifier",subject:"Sujet",date:"Horaires",duration:"Dur\xE9e","duration-error":{"over-1-day":"La dur\xE9e ne peux pas \xEAtre de 1 jour ou plus","negative-null":"La date de fin ne peut pas \xEAtre avant la date de d\xE9but","over-days":"Les dates de d\xE9but et fin doivent \xEAtre le m\xEAme jour"},timeZone:"Fuseau horaire",allDay:"Journ\xE9e enti\xE8re",recurrent:{once:"Une fois"},company:"Entreprise",searchCompany:"Rechercher une entreprise",service:"@:common.field.service.label",searchService:"Rechercher un service",staff:"@:common.field.staff.label",searchStaff:"Rechercher un \xE9quipier",contact:{title:"@:crm.contact-caps-trad",save:"@:common.action.save",search:"Rechercher un @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createTitle:"Ajouter un @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contact-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"T\xE9l\xE9phone",placeholder:"@:common.field.phone.placeholder"}},note:{label:"Note du rendez-vous",placeholder:"Saisissez une note de rendez-vous"},save:"@:common.action.save",back:"@:common.action.back,",close:"@:common.action.close",event:{"panel-title":"Cr\xE9er un \xE9v\xE9nement",title:{label:"\xC9v\xE9nement",placeholder:"Saisissez le nom de votre \xE9v\xE9nement",helper:"Il s\u2019agit du nom de l\u2019\xE9v\xE9nement que vous souhaitez cr\xE9er."},capacity:{label:"Capacit\xE9",placeholder:"Saisissez une capacit\xE9"},description:{label:"Description",placeholder:"Saisissez la description de l\u2019\xE9v\xE9nement"}}},"event-booking-widget":{title:{panel:"Nouveau rendez-vous",company:"Pour quelle entreprise souhaitez-vous prendre rendez-vous ?",service:"Quel est le besoin du @:crm.contact-trad ?",staff:"Avec quel collaborateur ?",date:"Quelles disponibilit\xE9s vous convient le mieux ?","contact-qualif":"S\u2019agit-il d\u2019un nouveau client ?","contact-new":"Quelles sont les informations personnelles du client ? ","contact-search":"Quel client souhaite prendre rendez-vous ?","form-field":"Une derni\xE8re petite chose ...",recap:"Souhaitez-vous confirmer le rendez-vous ?",confirmation:"",error:""},date:{"search-more":"Voir plus de disponibilit\xE9s","search-more-aria-label":"Voir plus de disponibilit\xE9s",empty:"Aucune disponibilit\xE9 n'a \xE9t\xE9 trouv\xE9 entre les dates {start} et {end} "},contact:{save:"Ajouter le @:crm.contact-trad",create:"Cr\xE9er un nouveau @:crm.contact-trad",createDescription:"Ajouter un @:crm.contact-trad \xE0 votre base de @:crm.contact-trad en saisissant ses informations personnelles.",firstName:{label:"@:common.field.firstName.label",placeholder:"@:common.field.firstName.placeholder"},lastName:{label:"@:common.field.lastName.label",placeholder:"@:common.field.lastName.placeholder"},email:{label:"@:common.field.email.label",placeholder:"@:common.field.email.placeholder"},phone:{label:"@:common.field.phone.label",placeholder:"@:common.field.phone.placeholder"}},"form-field":{validate:"Suivant"},recap:{date:"{start} \xE0 {end}",validate:"Confirmer le rendez-vous"},confirmation:{title:"Le rendez-vous est confirm\xE9 !",description:"Le rendez-vous a bien \xE9t\xE9 cr\xE9\xE9. Vous pouvez le retrouver d\xE8s \xE0 pr\xE9sent dans votre calendrier."},error:{messages:{back:{staff:"Retour \xE0 la selection d'\xE9quipier",date:"Retour \xE0 la selection de cr\xE9neau",contact:"Retour \xE0 la selection de @:crm.contact-trad"}},unknown:{title:"Une erreur est survenue",description:"Veuillez contacter le support pour plus de precisions."},"staff-not-found":{title:"\xC9quipier inconnu",description:"L'\xE9quipier s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.staff"},"date-not-found":{title:"Cr\xE9neau non disponible",description:"Le cr\xE9neau s\xE9lectionn\xE9 n'est plus disponible.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-daily":{title:"Limite atteinte",description:"La limite quotidienne de rendez-vous pris pour ce client est d\xE9pass\xE9.",footerButton:"@:event-booking-widget.error.messages.back.date"},"max-weekly":{title:"Limite atteinte",description:"La limite hebdomadaire de rendez-vous pris pour ce client est d\xE9pass\xE9.",footerButton:"@:event-booking-widget.error.messages.back.date"},"contact-blocked":{title:"@:crm.contact-caps-trad bloqu\xE9",description:"La prise de rendez-vous est bloqu\xE9e pour ce @:crm.contact-trad.",footerButton:"@:event-booking-widget.error.messages.back.contact"}}},form:Rf,queue:Lf,reporting:Mf,report:Pf,search:Ff,settings:zf,system:Bf},Vf={en:Tf,fr:Uf},jf=t=>df({legacy:!1,locale:t,fallbackLocale:"fr",globalInjection:!0,messages:Vf});var Z0="",qf=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r};const Hf={class:"az-flex az-flex-col az-gap-2"},$f={class:"az-qrcode"},Gf={class:"az-qrcode-left"},Wf={class:"az-qrcode-right"},Yf={class:"az-qrcode-bottom"};var Zf=qf(ue.defineComponent({__name:"View",props:{width:null,height:null,bgColor:null,dotsColor:null,value:null,outlineValue:null,locale:null,download:{type:Boolean,default:!0}},setup(t){var s,l,u,f;const e=t,r=jf(e.locale),n=ue.ref({width:e.width,height:e.height,type:"canvas",data:e.value,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(s=e.bgColor)!=null?s:"white"},dotsOptions:{color:(l=e.dotsColor)!=null?l:"black",type:"square"},cornersSquareOptions:{color:(u=e.dotsColor)!=null?u:"black",type:"square"},cornersDotOptions:{color:(f=e.dotsColor)!=null?f:"black",type:"square"}}),a=new Uu(n.value),i=ue.ref();function o(){a.download()}return ue.onMounted(()=>{a.append(i.value)}),ue.watch(()=>e.value,x=>{n.value.data=x,a.update(n.value)}),(x,y)=>(ue.openBlock(),ue.createElementBlock("div",Hf,[ue.createElementVNode("div",$f,[ue.createElementVNode("div",null,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",{class:"az-qrcode-center",style:ue.normalizeStyle(`grid-template-columns: auto ${e.width}px auto;`)},[ue.createElementVNode("div",Gf,ue.toDisplayString(t.outlineValue),1),ue.createElementVNode("div",null,[ue.createElementVNode("div",{ref_key:"qrCode",ref:i},null,512)]),ue.createElementVNode("div",Wf,ue.toDisplayString(t.outlineValue),1)],4),ue.createElementVNode("div",Yf,ue.toDisplayString(t.outlineValue),1)]),t.download?(ue.openBlock(),ue.createElementBlock("button",{key:0,class:"az-btn az-btn-color-neutral az-font-roboto az-font-medium az-btn-size-stretch",onClick:o},ue.toDisplayString(ue.unref(r).global.t("common.action.download")),1)):ue.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-1f03c38e"]]),Kf=Object.defineProperty,Jf=(t,e,r)=>e in t?Kf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e,r)=>(Jf(t,typeof e!="symbol"?e+"":e,r),r);class pr extends Error{}class Xf extends pr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Qf extends pr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class eh extends pr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Qr extends pr{}class zo extends pr{constructor(e){super(`Invalid unit ${e}`)}}class Dt extends pr{}class tr extends pr{constructor(){super("Zone is an abstract class")}}const he="numeric",Lt="short",St="long",Aa={year:he,month:he,day:he},Bo={year:he,month:Lt,day:he},th={year:he,month:Lt,day:he,weekday:Lt},Uo={year:he,month:St,day:he},Vo={year:he,month:St,day:he,weekday:St},jo={hour:he,minute:he},qo={hour:he,minute:he,second:he},Ho={hour:he,minute:he,second:he,timeZoneName:Lt},$o={hour:he,minute:he,second:he,timeZoneName:St},Go={hour:he,minute:he,hourCycle:"h23"},Wo={hour:he,minute:he,second:he,hourCycle:"h23"},Yo={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:Lt},Zo={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:St},Ko={year:he,month:he,day:he,hour:he,minute:he},Jo={year:he,month:he,day:he,hour:he,minute:he,second:he},Xo={year:he,month:Lt,day:he,hour:he,minute:he},Qo={year:he,month:Lt,day:he,hour:he,minute:he,second:he},rh={year:he,month:Lt,day:he,weekday:Lt,hour:he,minute:he},es={year:he,month:St,day:he,hour:he,minute:he,timeZoneName:Lt},ts={year:he,month:St,day:he,hour:he,minute:he,second:he,timeZoneName:Lt},rs={year:he,month:St,day:he,weekday:St,hour:he,minute:he,timeZoneName:St},ns={year:he,month:St,day:he,weekday:St,hour:he,minute:he,second:he,timeZoneName:St};function Fe(t){return typeof t>"u"}function gr(t){return typeof t=="number"}function In(t){return typeof t=="number"&&t%1===0}function nh(t){return typeof t=="string"}function ah(t){return Object.prototype.toString.call(t)==="[object Date]"}function as(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ih(t){return Array.isArray(t)?t:[t]}function is(t,e,r){if(t.length!==0)return t.reduce((n,a)=>{const i=[e(a),a];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function oh(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function kr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Gt(t,e,r){return In(t)&&t>=e&&t<=r}function sh(t,e){return t-e*Math.floor(t/e)}function rt(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function rr(t){if(!(Fe(t)||t===null||t===""))return parseInt(t,10)}function vr(t){if(!(Fe(t)||t===null||t===""))return parseFloat(t)}function Da(t){if(!(Fe(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Na(t,e,r=!1){const n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function en(t){return t%4===0&&(t%100!==0||t%400===0)}function tn(t){return en(t)?366:365}function Cn(t,e){const r=sh(e-1,12)+1,n=t+(e-r)/12;return r===2?en(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Oa(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Tn(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||n===3?53:52}function Ra(t){return t>99?t:t>60?1900+t:2e3+t}function os(t,e,r,n=null){const a=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o={timeZoneName:e,...i},s=new Intl.DateTimeFormat(r,o).formatToParts(a).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function kn(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function ss(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Dt(`Invalid unit value ${t}`);return e}function An(t,e){const r={};for(const n in t)if(kr(t,n)){const a=t[n];if(a==null)continue;r[e(n)]=ss(a)}return r}function rn(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),a=t>=0?"+":"-";switch(e){case"short":return`${a}${rt(r,2)}:${rt(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${rt(r,2)}${rt(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Dn(t){return oh(t,["hour","minute","second","millisecond"])}const ls=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,lh=["January","February","March","April","May","June","July","August","September","October","November","December"],cs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ch=["J","F","M","A","M","J","J","A","S","O","N","D"];function us(t){switch(t){case"narrow":return[...ch];case"short":return[...cs];case"long":return[...lh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ds=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fs=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],uh=["M","T","W","T","F","S","S"];function hs(t){switch(t){case"narrow":return[...uh];case"short":return[...fs];case"long":return[...ds];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ms=["AM","PM"],dh=["Before Christ","Anno Domini"],fh=["BC","AD"],hh=["B","A"];function ps(t){switch(t){case"narrow":return[...hh];case"short":return[...fh];case"long":return[...dh];default:return null}}function mh(t){return ms[t.hour<12?0:1]}function ph(t,e){return hs(e)[t.weekday-1]}function gh(t,e){return us(e)[t.month-1]}function vh(t,e){return ps(e)[t.year<0?0:1]}function yh(t,e,r="always",n=!1){const a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){const x=t==="days";switch(e){case 1:return x?"tomorrow":`next ${a[t][0]}`;case-1:return x?"yesterday":`last ${a[t][0]}`;case 0:return x?"today":`this ${a[t][0]}`}}const o=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,u=a[t],f=n?l?u[1]:u[2]||u[1]:l?a[t][0]:t;return o?`${s} ${f} ago`:`in ${s} ${f}`}function gs(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const bh={D:Aa,DD:Bo,DDD:Uo,DDDD:Vo,t:jo,tt:qo,ttt:Ho,tttt:$o,T:Go,TT:Wo,TTT:Yo,TTTT:Zo,f:Ko,ff:Xo,fff:es,ffff:rs,F:Jo,FF:Qo,FFF:ts,FFFF:ns};class xt{static create(e,r={}){return new xt(e,r)}static parseFormat(e){let r=null,n="",a=!1;const i=[];for(let o=0;o<e.length;o++){const s=e.charAt(o);s==="'"?(n.length>0&&i.push({literal:a,val:n}),r=null,n="",a=!a):a||s===r?n+=s:(n.length>0&&i.push({literal:!1,val:n}),n=s,r=s)}return n.length>0&&i.push({literal:a,val:n}),i}static macroTokenToFormatOpts(e){return bh[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTime(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).format()}formatDateTimeParts(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).formatToParts()}resolvedOptions(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r}).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return rt(e,r);const n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",a=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(w,S)=>this.loc.extract(e,w,S),o=w=>e.isOffsetFixed&&e.offset===0&&w.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,w.format):"",s=()=>n?mh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(w,S)=>n?gh(e,w):i(S?{month:w}:{month:w,day:"numeric"},"month"),u=(w,S)=>n?ph(e,w):i(S?{weekday:w}:{weekday:w,month:"long",day:"numeric"},"weekday"),f=w=>{const S=xt.macroTokenToFormatOpts(w);return S?this.formatWithSystemDefault(e,S):w},x=w=>n?vh(e,w):i({era:w},"era"),y=w=>{switch(w){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return a?i({day:"numeric"},"day"):this.num(e.day);case"dd":return a?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?i({month:"numeric"},"month"):this.num(e.month);case"MM":return a?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?i({year:"numeric"},"year"):this.num(e.year);case"yy":return a?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(w)}};return gs(xt.parseFormat(r),y)}formatDurationFromString(e,r){const n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=l=>u=>{const f=n(u);return f?this.num(l.get(f),u.length):u},i=xt.parseFormat(r),o=i.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]),s=e.shiftTo(...o.map(n).filter(l=>l));return gs(i,a(s))}}class Mt{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class nn{get type(){throw new tr}get name(){throw new tr}get ianaName(){return this.name}get isUniversal(){throw new tr}offsetName(e,r){throw new tr}formatOffset(e,r){throw new tr}offset(e){throw new tr}equals(e){throw new tr}get isValid(){throw new tr}}let La=null;class Ma extends nn{static get instance(){return La===null&&(La=new Ma),La}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return os(e,r,n)}formatOffset(e,r){return rn(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Nn={};function Eh(t){return Nn[t]||(Nn[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Nn[t]}const xh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function wh(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,i,o,s,l,u,f]=n;return[o,a,i,s,l,u,f]}function _h(t,e){const r=t.formatToParts(e),n=[];for(let a=0;a<r.length;a++){const{type:i,value:o}=r[a],s=xh[i];i==="era"?n[s]=o:Fe(s)||(n[s]=parseInt(o,10))}return n}let On={};class Wt extends nn{static create(e){return On[e]||(On[e]=new Wt(e)),On[e]}static resetCache(){On={},Nn={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Wt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return os(e,r,n,this.name)}formatOffset(e,r){return rn(this.offset(e),r)}offset(e){const r=new Date(e);if(isNaN(r))return NaN;const n=Eh(this.name);let[a,i,o,s,l,u,f]=n.formatToParts?_h(n,r):wh(n,r);s==="BC"&&(a=-Math.abs(a)+1);const x=Oa({year:a,month:i,day:o,hour:l===24?0:l,minute:u,second:f,millisecond:0});let y=+r;const w=y%1e3;return y-=w>=0?w:1e3+w,(x-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Pa=null;class vt extends nn{static get utcInstance(){return Pa===null&&(Pa=new vt(0)),Pa}static instance(e){return e===0?vt.utcInstance:new vt(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new vt(kn(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${rn(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${rn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return rn(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Sh extends nn{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function nr(t,e){if(Fe(t)||t===null)return e;if(t instanceof nn)return t;if(nh(t)){const r=t.toLowerCase();return r==="local"||r==="system"?e:r==="utc"||r==="gmt"?vt.utcInstance:vt.parseSpecifier(r)||Wt.create(t)}else return gr(t)?vt.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Sh(t)}let vs=()=>Date.now(),ys="system",bs=null,Es=null,xs=null,ws;class ot{static get now(){return vs}static set now(e){vs=e}static set defaultZone(e){ys=e}static get defaultZone(){return nr(ys,Ma.instance)}static get defaultLocale(){return bs}static set defaultLocale(e){bs=e}static get defaultNumberingSystem(){return Es}static set defaultNumberingSystem(e){Es=e}static get defaultOutputCalendar(){return xs}static set defaultOutputCalendar(e){xs=e}static get throwOnInvalid(){return ws}static set throwOnInvalid(e){ws=e}static resetCaches(){Ze.resetCache(),Wt.resetCache()}}let _s={};function Ih(t,e={}){const r=JSON.stringify([t,e]);let n=_s[r];return n||(n=new Intl.ListFormat(t,e),_s[r]=n),n}let Fa={};function za(t,e={}){const r=JSON.stringify([t,e]);let n=Fa[r];return n||(n=new Intl.DateTimeFormat(t,e),Fa[r]=n),n}let Ba={};function Ch(t,e={}){const r=JSON.stringify([t,e]);let n=Ba[r];return n||(n=new Intl.NumberFormat(t,e),Ba[r]=n),n}let Ua={};function Th(t,e={}){const{base:r,...n}=e,a=JSON.stringify([t,n]);let i=Ua[a];return i||(i=new Intl.RelativeTimeFormat(t,e),Ua[a]=i),i}let Rn=null;function kh(){return Rn||(Rn=new Intl.DateTimeFormat().resolvedOptions().locale,Rn)}function Ah(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let r;const n=t.substring(0,e);try{r=za(t).resolvedOptions()}catch{r=za(n).resolvedOptions()}const{numberingSystem:a,calendar:i}=r;return[n,a,i]}}function Dh(t,e,r){return(r||e)&&(t+="-u",r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Nh(t){const e=[];for(let r=1;r<=12;r++){const n=Te.utc(2016,r,1);e.push(t(n))}return e}function Oh(t){const e=[];for(let r=1;r<=7;r++){const n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function Ln(t,e,r,n,a){const i=t.listingMode(r);return i==="error"?null:i==="en"?n(e):a(e)}function Rh(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Lh{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:a,floor:i,...o}=n;if(!r||Object.keys(o).length>0){const s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=Ch(e,s)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Na(e,3);return rt(r,this.padTo)}}}class Mh{constructor(e,r,n){this.opts=n;let a;if(e.zone.isUniversal){const o=-1*(e.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Wt.create(s).valid?(a=s,this.dt=e):(a="UTC",n.timeZoneName?this.dt=e:this.dt=e.offset===0?e:Te.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,a=e.zone.name);const i={...this.opts};a&&(i.timeZone=a),this.dtf=za(r,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ph{constructor(e,r,n){this.opts={style:"long",...n},!r&&as()&&(this.rtf=Th(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):yh(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}class Ze{static fromOpts(e){return Ze.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,r,n,a=!1){const i=e||ot.defaultLocale,o=i||(a?"en-US":kh()),s=r||ot.defaultNumberingSystem,l=n||ot.defaultOutputCalendar;return new Ze(o,s,l,i)}static resetCache(){Rn=null,Fa={},Ba={},Ua={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n}={}){return Ze.create(e,r,n)}constructor(e,r,n,a){const[i,o,s]=Ah(e);this.locale=i,this.numberingSystem=r||o||null,this.outputCalendar=n||s||null,this.intl=Dh(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Rh(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:Ze.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1,n=!0){return Ln(this,e,n,us,()=>{const a=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Nh(o=>this.extract(o,a,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1,n=!0){return Ln(this,e,n,hs,()=>{const a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=Oh(o=>this.extract(o,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return Ln(this,void 0,e,()=>ms,()=>{if(!this.meridiemCache){const r={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(n=>this.extract(n,r,"dayperiod"))}return this.meridiemCache})}eras(e,r=!0){return Ln(this,e,r,ps,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(a=>this.extract(a,n,"era"))),this.eraCache[e]})}extract(e,r,n){const a=this.dtFormatter(e,r),i=a.formatToParts(),o=i.find(s=>s.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new Lh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Mh(e,this.intl,r)}relFormatter(e={}){return new Ph(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ih(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Ar(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Dr(...t){return e=>t.reduce(([r,n,a],i)=>{const[o,s,l]=i(e,a);return[{...r,...o},s||n,l]},[{},null,1]).slice(0,2)}function Nr(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const a=r.exec(t);if(a)return n(a)}return[null,null]}function Ss(...t){return(e,r)=>{const n={};let a;for(a=0;a<t.length;a++)n[t[a]]=rr(e[r+a]);return[n,null,r+a]}}const Is=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Fh=`(?:${Is.source}?(?:\\[(${ls.source})\\])?)?`,Va=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Cs=RegExp(`${Va.source}${Fh}`),ja=RegExp(`(?:T${Cs.source})?`),zh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Bh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Uh=/(\d{4})-?(\d{3})/,Vh=Ss("weekYear","weekNumber","weekDay"),jh=Ss("year","ordinal"),qh=/(\d{4})-(\d\d)-(\d\d)/,Ts=RegExp(`${Va.source} ?(?:${Is.source}|(${ls.source}))?`),Hh=RegExp(`(?: ${Ts.source})?`);function Or(t,e,r){const n=t[e];return Fe(n)?r:rr(n)}function $h(t,e){return[{year:Or(t,e),month:Or(t,e+1,1),day:Or(t,e+2,1)},null,e+3]}function Rr(t,e){return[{hours:Or(t,e,0),minutes:Or(t,e+1,0),seconds:Or(t,e+2,0),milliseconds:Da(t[e+3])},null,e+4]}function an(t,e){const r=!t[e]&&!t[e+1],n=kn(t[e+1],t[e+2]),a=r?null:vt.instance(n);return[{},a,e+3]}function on(t,e){const r=t[e]?Wt.create(t[e]):null;return[{},r,e+1]}const Gh=RegExp(`^T?${Va.source}$`),Wh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Yh(t){const[e,r,n,a,i,o,s,l,u]=t,f=e[0]==="-",x=l&&l[0]==="-",y=(w,S=!1)=>w!==void 0&&(S||w&&f)?-w:w;return[{years:y(vr(r)),months:y(vr(n)),weeks:y(vr(a)),days:y(vr(i)),hours:y(vr(o)),minutes:y(vr(s)),seconds:y(vr(l),l==="-0"),milliseconds:y(Da(u),x)}]}const Zh={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function qa(t,e,r,n,a,i,o){const s={year:e.length===2?Ra(rr(e)):rr(e),month:cs.indexOf(r)+1,day:rr(n),hour:rr(a),minute:rr(i)};return o&&(s.second=rr(o)),t&&(s.weekday=t.length>3?ds.indexOf(t)+1:fs.indexOf(t)+1),s}const Kh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Jh(t){const[,e,r,n,a,i,o,s,l,u,f,x]=t,y=qa(e,a,n,r,i,o,s);let w;return l?w=Zh[l]:u?w=0:w=kn(f,x),[y,new vt(w)]}function Xh(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Qh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,em=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ks(t){const[,e,r,n,a,i,o,s]=t;return[qa(e,a,n,r,i,o,s),vt.utcInstance]}function rm(t){const[,e,r,n,a,i,o,s]=t;return[qa(e,s,r,n,a,i,o),vt.utcInstance]}const nm=Ar(zh,ja),am=Ar(Bh,ja),im=Ar(Uh,ja),om=Ar(Cs),As=Dr($h,Rr,an,on),sm=Dr(Vh,Rr,an,on),lm=Dr(jh,Rr,an,on),cm=Dr(Rr,an,on);function um(t){return Nr(t,[nm,As],[am,sm],[im,lm],[om,cm])}function dm(t){return Nr(Xh(t),[Kh,Jh])}function fm(t){return Nr(t,[Qh,ks],[em,ks],[tm,rm])}function hm(t){return Nr(t,[Wh,Yh])}const mm=Dr(Rr);function pm(t){return Nr(t,[Gh,mm])}const gm=Ar(qh,Hh),vm=Ar(Ts),ym=Dr(Rr,an,on);function bm(t){return Nr(t,[gm,As],[vm,ym])}const Em="Invalid Duration",Ds={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},xm={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Ds},Nt=146097/400,Lr=146097/4800,wm={years:{quarters:4,months:12,weeks:Nt/7,days:Nt,hours:Nt*24,minutes:Nt*24*60,seconds:Nt*24*60*60,milliseconds:Nt*24*60*60*1e3},quarters:{months:3,weeks:Nt/28,days:Nt/4,hours:Nt*24/4,minutes:Nt*24*60/4,seconds:Nt*24*60*60/4,milliseconds:Nt*24*60*60*1e3/4},months:{weeks:Lr/7,days:Lr,hours:Lr*24,minutes:Lr*24*60,seconds:Lr*24*60*60,milliseconds:Lr*24*60*60*1e3},...Ds},yr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],_m=yr.slice(0).reverse();function br(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new Ue(n)}function Sm(t){return t<0?Math.floor(t):Math.ceil(t)}function Ns(t,e,r,n,a){const i=t[a][r],o=e[r]/i,s=Math.sign(o)===Math.sign(n[a]),l=!s&&n[a]!==0&&Math.abs(o)<=1?Sm(o):Math.trunc(o);n[a]+=l,e[r]-=l*i}function Im(t,e){_m.reduce((r,n)=>Fe(e[n])?r:(r&&Ns(t,e,r,e,n),n),null)}class Ue{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Ze.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r?wm:xm,this.isLuxonDuration=!0}static fromMillis(e,r){return Ue.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Dt(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ue({values:An(e,Ue.normalizeUnit),loc:Ze.fromObject(r),conversionAccuracy:r.conversionAccuracy})}static fromDurationLike(e){if(gr(e))return Ue.fromMillis(e);if(Ue.isDuration(e))return e;if(typeof e=="object")return Ue.fromObject(e);throw new Dt(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=hm(e);return n?Ue.fromObject(n,r):Ue.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=pm(e);return n?Ue.fromObject(n,r):Ue.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the Duration is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new eh(n);return new Ue({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new zo(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?xt.create(this.loc,n).formatDurationFromString(this,e):Em}toHuman(e={}){const r=yr.map(n=>{const a=this.values[n];return Fe(a)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(a)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Na(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();if(r<0||r>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let a=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(a+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||n.milliseconds!==0)&&(a+=".SSS"));let i=n.toFormat(a);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e),n={};for(const a of yr)(kr(r.values,a)||kr(this.values,a))&&(n[a]=r.get(a)+this.get(a));return br(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=ss(e(this.values[n],n));return br(this,{values:r},!0)}get(e){return this[Ue.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...An(e,Ue.normalizeUnit)};return br(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n}={}){const a=this.loc.clone({locale:e,numberingSystem:r}),i={loc:a};return n&&(i.conversionAccuracy=n),br(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Im(this.matrix,e),br(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>Ue.normalizeUnit(o));const r={},n={},a=this.toObject();let i;for(const o of yr)if(e.indexOf(o)>=0){i=o;let s=0;for(const u in n)s+=this.matrix[u][o]*n[u],n[u]=0;gr(a[o])&&(s+=a[o]);const l=Math.trunc(s);r[o]=l,n[o]=(s*1e3-l*1e3)/1e3;for(const u in a)yr.indexOf(u)>yr.indexOf(o)&&Ns(this.matrix,a,u,r,o)}else gr(a[o])&&(n[o]=a[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return br(this,{values:r},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return br(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,a){return n===void 0||n===0?a===void 0||a===0:n===a}for(const n of yr)if(!r(this.values[n],e.values[n]))return!1;return!0}}const sn="Invalid Interval";function Cm(t,e){return!t||!t.isValid?Ke.invalid("missing or invalid start"):!e||!e.isValid?Ke.invalid("missing or invalid end"):e<t?Ke.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Ke{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the Interval is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Qf(n);return new Ke({invalid:n})}static fromDateTimes(e,r){const n=un(e),a=un(r),i=Cm(n,a);return i==null?new Ke({start:n,end:a}):i}static after(e,r){const n=Ue.fromDurationLike(r),a=un(e);return Ke.fromDateTimes(a,a.plus(n))}static before(e,r){const n=Ue.fromDurationLike(r),a=un(e);return Ke.fromDateTimes(a.minus(n),a)}static fromISO(e,r){const[n,a]=(e||"").split("/",2);if(n&&a){let i,o;try{i=Te.fromISO(n,r),o=i.isValid}catch{o=!1}let s,l;try{s=Te.fromISO(a,r),l=s.isValid}catch{l=!1}if(o&&l)return Ke.fromDateTimes(i,s);if(o){const u=Ue.fromISO(a,r);if(u.isValid)return Ke.after(i,u)}else if(l){const u=Ue.fromISO(n,r);if(u.isValid)return Ke.before(s,u)}}return Ke.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const r=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(r,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?Ke.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(un).filter(o=>this.contains(o)).sort(),n=[];let{s:a}=this,i=0;for(;a<this.e;){const o=r[i]||this.e,s=+o>+this.e?this.e:o;n.push(Ke.fromDateTimes(a,s)),a=s,i+=1}return n}splitBy(e){const r=Ue.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;const o=[];for(;n<this.e;){const s=this.start.plus(r.mapUnits(l=>l*a));i=+s>+this.e?this.e:s,o.push(Ke.fromDateTimes(n,i)),n=i,a+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:Ke.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Ke.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((a,i)=>a.s-i.s).reduce(([a,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[a,i.union(o)]:[a.concat([i]),o]:[a,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const a=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),s=o.sort((l,u)=>l.time-u.time);for(const l of s)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&a.push(Ke.fromDateTimes(r,l.time)),r=null);return Ke.merge(a)}difference(...e){return Ke.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:sn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:sn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:sn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:sn}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:sn}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ue.invalid(this.invalidReason)}mapEndpoints(e){return Ke.fromDateTimes(e(this.s),e(this.e))}}class Mn{static hasDST(e=ot.defaultZone){const r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Wt.isValidZone(e)}static normalizeZone(e){return nr(e,ot.defaultZone)}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ze.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||Ze.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Ze.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Ze.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ze.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return Ze.create(r,null,"gregory").eras(e)}static features(){return{relative:as()}}}function Os(t,e){const r=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(Ue.fromMillis(n).as("days"))}function Tm(t,e,r){const n=[["years",(s,l)=>l.year-s.year],["quarters",(s,l)=>l.quarter-s.quarter],["months",(s,l)=>l.month-s.month+(l.year-s.year)*12],["weeks",(s,l)=>{const u=Os(s,l);return(u-u%7)/7}],["days",Os]],a={};let i,o;for(const[s,l]of n)if(r.indexOf(s)>=0){i=s;let u=l(t,e);o=t.plus({[s]:u}),o>e?(t=t.plus({[s]:u-1}),u-=1):t=o,a[s]=u}return[t,a,o,i]}function km(t,e,r,n){let[a,i,o,s]=Tm(t,e,r);const l=e-a,u=r.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);u.length===0&&(o<e&&(o=a.plus({[s]:1})),o!==a&&(i[s]=(i[s]||0)+l/(o-a)));const f=Ue.fromObject(i,n);return u.length>0?Ue.fromMillis(l,n).shiftTo(...u).plus(f):f}const Ha={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Rs={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Am=Ha.hanidec.replace(/[\[|\]]/g,"").split("");function Dm(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(t[r].search(Ha.hanidec)!==-1)e+=Am.indexOf(t[r]);else for(const a in Rs){const[i,o]=Rs[a];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}else return e}function Pt({numberingSystem:t},e=""){return new RegExp(`${Ha[t||"latn"]}${e}`)}const Nm="missing Intl.DateTimeFormat.formatToParts support";function qe(t,e=r=>r){return{regex:t,deser:([r])=>e(Dm(r))}}const Om=String.fromCharCode(160),Ls=`[ ${Om}]`,Ms=new RegExp(Ls,"g");function Rm(t){return t.replace(/\./g,"\\.?").replace(Ms,Ls)}function Ps(t){return t.replace(/\./g,"").replace(Ms," ").toLowerCase()}function Ft(t,e){return t===null?null:{regex:RegExp(t.map(Rm).join("|")),deser:([r])=>t.findIndex(n=>Ps(r)===Ps(n))+e}}function Fs(t,e){return{regex:t,deser:([,r,n])=>kn(r,n),groups:e}}function $a(t){return{regex:t,deser:([e])=>e}}function Lm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Mm(t,e){const r=Pt(e),n=Pt(e,"{2}"),a=Pt(e,"{3}"),i=Pt(e,"{4}"),o=Pt(e,"{6}"),s=Pt(e,"{1,2}"),l=Pt(e,"{1,3}"),u=Pt(e,"{1,6}"),f=Pt(e,"{1,9}"),x=Pt(e,"{2,4}"),y=Pt(e,"{4,6}"),w=T=>({regex:RegExp(Lm(T.val)),deser:([N])=>N,literal:!0}),S=(T=>{if(t.literal)return w(T);switch(T.val){case"G":return Ft(e.eras("short",!1),0);case"GG":return Ft(e.eras("long",!1),0);case"y":return qe(u);case"yy":return qe(x,Ra);case"yyyy":return qe(i);case"yyyyy":return qe(y);case"yyyyyy":return qe(o);case"M":return qe(s);case"MM":return qe(n);case"MMM":return Ft(e.months("short",!0,!1),1);case"MMMM":return Ft(e.months("long",!0,!1),1);case"L":return qe(s);case"LL":return qe(n);case"LLL":return Ft(e.months("short",!1,!1),1);case"LLLL":return Ft(e.months("long",!1,!1),1);case"d":return qe(s);case"dd":return qe(n);case"o":return qe(l);case"ooo":return qe(a);case"HH":return qe(n);case"H":return qe(s);case"hh":return qe(n);case"h":return qe(s);case"mm":return qe(n);case"m":return qe(s);case"q":return qe(s);case"qq":return qe(n);case"s":return qe(s);case"ss":return qe(n);case"S":return qe(l);case"SSS":return qe(a);case"u":return $a(f);case"uu":return $a(s);case"uuu":return qe(r);case"a":return Ft(e.meridiems(),0);case"kkkk":return qe(i);case"kk":return qe(x,Ra);case"W":return qe(s);case"WW":return qe(n);case"E":case"c":return qe(r);case"EEE":return Ft(e.weekdays("short",!1,!1),1);case"EEEE":return Ft(e.weekdays("long",!1,!1),1);case"ccc":return Ft(e.weekdays("short",!0,!1),1);case"cccc":return Ft(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Fs(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Fs(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return $a(/[a-z_+-/]{1,256}?/i);default:return w(T)}})(t)||{invalidReason:Nm};return S.token=t,S}const Pm={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Fm(t,e,r){const{type:n,value:a}=t;if(n==="literal")return{literal:!0,val:a};const i=r[n];let o=Pm[n];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function zm(t){return[`^${t.map(e=>e.regex).reduce((e,r)=>`${e}(${r.source})`,"")}$`,t]}function Bm(t,e,r){const n=t.match(e);if(n){const a={};let i=1;for(const o in r)if(kr(r,o)){const s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(a[s.token.val[0]]=s.deser(n.slice(i,i+l))),i+=l}return[n,a]}else return[n,{}]}function Um(t){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return Fe(t.z)||(r=Wt.create(t.z)),Fe(t.Z)||(r||(r=new vt(t.Z)),n=t.Z),Fe(t.q)||(t.M=(t.q-1)*3+1),Fe(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Fe(t.u)||(t.S=Da(t.u)),[Object.keys(t).reduce((a,i)=>{const o=e(i);return o&&(a[o]=t[i]),a},{}),r,n]}let Ga=null;function Vm(){return Ga||(Ga=Te.fromMillis(1555555555555)),Ga}function jm(t,e){if(t.literal)return t;const r=xt.macroTokenToFormatOpts(t.val);if(!r)return t;const n=xt.create(e,r).formatDateTimeParts(Vm()).map(a=>Fm(a,e,r));return n.includes(void 0)?t:n}function qm(t,e){return Array.prototype.concat(...t.map(r=>jm(r,e)))}function zs(t,e,r){const n=qm(xt.parseFormat(r),t),a=n.map(o=>Mm(o,t)),i=a.find(o=>o.invalidReason);if(i)return{input:e,tokens:n,invalidReason:i.invalidReason};{const[o,s]=zm(a),l=RegExp(o,"i"),[u,f]=Bm(e,l,s),[x,y,w]=f?Um(f):[null,null,void 0];if(kr(f,"a")&&kr(f,"H"))throw new Qr("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:l,rawMatches:u,matches:f,result:x,zone:y,specificOffset:w}}}function Hm(t,e,r){const{result:n,zone:a,specificOffset:i,invalidReason:o}=zs(t,e,r);return[n,a,i,o]}const Bs=[0,31,59,90,120,151,181,212,243,273,304,334],Us=[0,31,60,91,121,152,182,213,244,274,305,335];function Ot(t,e){return new Mt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Vs(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const a=n.getUTCDay();return a===0?7:a}function js(t,e,r){return r+(en(t)?Us:Bs)[e-1]}function qs(t,e){const r=en(t)?Us:Bs,n=r.findIndex(i=>i<e),a=e-r[n];return{month:n+1,day:a}}function Wa(t){const{year:e,month:r,day:n}=t,a=js(e,r,n),i=Vs(e,r,n);let o=Math.floor((a-i+10)/7),s;return o<1?(s=e-1,o=Tn(s)):o>Tn(e)?(s=e+1,o=1):s=e,{weekYear:s,weekNumber:o,weekday:i,...Dn(t)}}function Hs(t){const{weekYear:e,weekNumber:r,weekday:n}=t,a=Vs(e,1,4),i=tn(e);let o=r*7+n-a-3,s;o<1?(s=e-1,o+=tn(s)):o>i?(s=e+1,o-=tn(e)):s=e;const{month:l,day:u}=qs(s,o);return{year:s,month:l,day:u,...Dn(t)}}function Ya(t){const{year:e,month:r,day:n}=t,a=js(e,r,n);return{year:e,ordinal:a,...Dn(t)}}function $s(t){const{year:e,ordinal:r}=t,{month:n,day:a}=qs(e,r);return{year:e,month:n,day:a,...Dn(t)}}function $m(t){const e=In(t.weekYear),r=Gt(t.weekNumber,1,Tn(t.weekYear)),n=Gt(t.weekday,1,7);return e?r?n?!1:Ot("weekday",t.weekday):Ot("week",t.week):Ot("weekYear",t.weekYear)}function Gm(t){const e=In(t.year),r=Gt(t.ordinal,1,tn(t.year));return e?r?!1:Ot("ordinal",t.ordinal):Ot("year",t.year)}function Gs(t){const e=In(t.year),r=Gt(t.month,1,12),n=Gt(t.day,1,Cn(t.year,t.month));return e?r?n?!1:Ot("day",t.day):Ot("month",t.month):Ot("year",t.year)}function Ws(t){const{hour:e,minute:r,second:n,millisecond:a}=t,i=Gt(e,0,23)||e===24&&r===0&&n===0&&a===0,o=Gt(r,0,59),s=Gt(n,0,59),l=Gt(a,0,999);return i?o?s?l?!1:Ot("millisecond",a):Ot("second",n):Ot("minute",r):Ot("hour",e)}const Za="Invalid DateTime",Ys=864e13;function Pn(t){return new Mt("unsupported zone",`the zone "${t.name}" is not supported`)}function Ka(t){return t.weekData===null&&(t.weekData=Wa(t.c)),t.weekData}function ln(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function Zs(t,e,r){let n=t-e*60*1e3;const a=r.offset(n);if(e===a)return[n,e];n-=(a-e)*60*1e3;const i=r.offset(n);return a===i?[n,a]:[t-Math.min(a,i)*60*1e3,Math.max(a,i)]}function Ks(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Fn(t,e,r){return Zs(Oa(t),e,r)}function Js(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),a=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:a,day:Math.min(t.c.day,Cn(n,a))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=Ue.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Oa(i);let[l,u]=Zs(s,r,t.zone);return o!==0&&(l+=o,u=t.zone.offset(l)),{ts:l,o:u}}function cn(t,e,r,n,a,i){const{setZone:o,zone:s}=r;if(t&&Object.keys(t).length!==0){const l=e||s,u=Te.fromObject(t,{...r,zone:l,specificOffset:i});return o?u:u.setZone(s)}else return Te.invalid(new Mt("unparsable",`the input "${a}" can't be parsed as ${n}`))}function zn(t,e,r=!0){return t.isValid?xt.create(Ze.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ja(t,e){const r=t.c.year>9999||t.c.year<0;let n="";return r&&t.c.year>=0&&(n+="+"),n+=rt(t.c.year,r?6:4),e?(n+="-",n+=rt(t.c.month),n+="-",n+=rt(t.c.day)):(n+=rt(t.c.month),n+=rt(t.c.day)),n}function Xs(t,e,r,n,a,i){let o=rt(t.c.hour);return e?(o+=":",o+=rt(t.c.minute),(t.c.second!==0||!r)&&(o+=":")):o+=rt(t.c.minute),(t.c.second!==0||!r)&&(o+=rt(t.c.second),(t.c.millisecond!==0||!n)&&(o+=".",o+=rt(t.c.millisecond,3))),a&&(t.isOffsetFixed&&t.offset===0&&!i?o+="Z":t.o<0?(o+="-",o+=rt(Math.trunc(-t.o/60)),o+=":",o+=rt(Math.trunc(-t.o%60))):(o+="+",o+=rt(Math.trunc(t.o/60)),o+=":",o+=rt(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const Qs={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ym={ordinal:1,hour:0,minute:0,second:0,millisecond:0},el=["year","month","day","hour","minute","second","millisecond"],Zm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Km=["year","ordinal","hour","minute","second","millisecond"];function tl(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new zo(t);return e}function rl(t,e){const r=nr(e.zone,ot.defaultZone),n=Ze.fromObject(e),a=ot.now();let i,o;if(Fe(t.year))i=a;else{for(const u of el)Fe(t[u])&&(t[u]=Qs[u]);const s=Gs(t)||Ws(t);if(s)return Te.invalid(s);const l=r.offset(a);[i,o]=Fn(t,l,r)}return new Te({ts:i,zone:r,loc:n,o})}function nl(t,e,r){const n=Fe(r.round)?!0:r.round,a=(o,s)=>(o=Na(o,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(o,s)),i=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return a(i(r.unit),r.unit);for(const o of r.units){const s=i(o);if(Math.abs(s)>=1)return a(s,o)}return a(t>e?-0:0,r.units[r.units.length-1])}function al(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}class Te{constructor(e){const r=e.zone||ot.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Mt("invalid input"):null)||(r.isValid?null:Pn(r));this.ts=Fe(e.ts)?ot.now():e.ts;let a=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[a,i]=[e.old.c,e.old.o];else{const o=r.offset(this.ts);a=Ks(this.ts,o),n=Number.isNaN(a.year)?new Mt("invalid input"):null,a=n?null:a,i=n?null:o}this._zone=r,this.loc=e.loc||Ze.create(),this.invalid=n,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new Te({})}static local(){const[e,r]=al(arguments),[n,a,i,o,s,l,u]=r;return rl({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:u},e)}static utc(){const[e,r]=al(arguments),[n,a,i,o,s,l,u]=r;return e.zone=vt.utcInstance,rl({year:n,month:a,day:i,hour:o,minute:s,second:l,millisecond:u},e)}static fromJSDate(e,r={}){const n=ah(e)?e.valueOf():NaN;if(Number.isNaN(n))return Te.invalid("invalid input");const a=nr(r.zone,ot.defaultZone);return a.isValid?new Te({ts:n,zone:a,loc:Ze.fromObject(r)}):Te.invalid(Pn(a))}static fromMillis(e,r={}){if(gr(e))return e<-Ys||e>Ys?Te.invalid("Timestamp out of range"):new Te({ts:e,zone:nr(r.zone,ot.defaultZone),loc:Ze.fromObject(r)});throw new Dt(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(gr(e))return new Te({ts:e*1e3,zone:nr(r.zone,ot.defaultZone),loc:Ze.fromObject(r)});throw new Dt("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=nr(r.zone,ot.defaultZone);if(!n.isValid)return Te.invalid(Pn(n));const a=ot.now(),i=Fe(r.specificOffset)?n.offset(a):r.specificOffset,o=An(e,tl),s=!Fe(o.ordinal),l=!Fe(o.year),u=!Fe(o.month)||!Fe(o.day),f=l||u,x=o.weekYear||o.weekNumber,y=Ze.fromObject(r);if((f||s)&&x)throw new Qr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new Qr("Can't mix ordinal dates with month/day");const w=x||o.weekday&&!f;let S,T,N=Ks(a,i);w?(S=Zm,T=Wm,N=Wa(N)):s?(S=Km,T=Ym,N=Ya(N)):(S=el,T=Qs);let C=!1;for(const Y of S){const Q=o[Y];Fe(Q)?C?o[Y]=T[Y]:o[Y]=N[Y]:C=!0}const E=w?$m(o):s?Gm(o):Gs(o),A=E||Ws(o);if(A)return Te.invalid(A);const I=w?Hs(o):s?$s(o):o,[D,P]=Fn(I,i,n),z=new Te({ts:D,zone:n,o:P,loc:y});return o.weekday&&f&&e.weekday!==z.weekday?Te.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${z.toISO()}`):z}static fromISO(e,r={}){const[n,a]=um(e);return cn(n,a,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,a]=dm(e);return cn(n,a,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,a]=fm(e);return cn(n,a,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Fe(e)||Fe(r))throw new Dt("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:i=null}=n,o=Ze.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0}),[s,l,u,f]=Hm(o,e,r);return f?Te.invalid(f):cn(s,l,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return Te.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,a]=bm(e);return cn(n,a,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Dt("need to specify a reason the DateTime is invalid");const n=e instanceof Mt?e:new Mt(e,r);if(ot.throwOnInvalid)throw new Xf(n);return new Te({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ka(this).weekYear:NaN}get weekNumber(){return this.isValid?Ka(this).weekNumber:NaN}get weekday(){return this.isValid?Ka(this).weekday:NaN}get ordinal(){return this.isValid?Ya(this.c).ordinal:NaN}get monthShort(){return this.isValid?Mn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Mn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Mn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Mn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return en(this.year)}get daysInMonth(){return Cn(this.year,this.month)}get daysInYear(){return this.isValid?tn(this.year):NaN}get weeksInWeekYear(){return this.isValid?Tn(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:a}=xt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:a}}toUTC(e=0,r={}){return this.setZone(vt.instance(e),r)}toLocal(){return this.setZone(ot.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=nr(e,ot.defaultZone),e.equals(this.zone))return this;if(e.isValid){let a=this.ts;if(r||n){const i=e.offset(this.ts),o=this.toObject();[a]=Fn(o,i,e)}return ln(this,{ts:a,zone:e})}else return Te.invalid(Pn(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const a=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return ln(this,{loc:a})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=An(e,tl),n=!Fe(r.weekYear)||!Fe(r.weekNumber)||!Fe(r.weekday),a=!Fe(r.ordinal),i=!Fe(r.year),o=!Fe(r.month)||!Fe(r.day),s=i||o,l=r.weekYear||r.weekNumber;if((s||a)&&l)throw new Qr("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&a)throw new Qr("Can't mix ordinal dates with month/day");let u;n?u=Hs({...Wa(this.c),...r}):Fe(r.ordinal)?(u={...this.toObject(),...r},Fe(r.day)&&(u.day=Math.min(Cn(u.year,u.month),u.day))):u=$s({...Ya(this.c),...r});const[f,x]=Fn(u,this.o,this.zone);return ln(this,{ts:f,o:x})}plus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e);return ln(this,Js(this,r))}minus(e){if(!this.isValid)return this;const r=Ue.fromDurationLike(e).negate();return ln(this,Js(this,r))}startOf(e){if(!this.isValid)return this;const r={},n=Ue.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(n==="weeks"&&(r.weekday=1),n==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,r={}){return this.isValid?xt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):Za}toLocaleString(e=Aa,r={}){return this.isValid?xt.create(this.loc.clone(r),e).formatDateTime(this):Za}toLocaleParts(e={}){return this.isValid?xt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o=e==="extended";let s=Ja(this,o);return s+="T",s+=Xs(this,o,r,n,a,i),s}toISODate({format:e="extended"}={}){return this.isValid?Ja(this,e==="extended"):null}toISOWeekDate(){return zn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(a?"T":"")+Xs(this,o==="extended",r,e,n,i):null}toRFC2822(){return zn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return zn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ja(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(r||e)&&(n&&(a+=" "),r?a+="z":e&&(a+="ZZ")),zn(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Za}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ue.invalid("created by diffing an invalid DateTime");const a={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=ih(r).map(Ue.normalizeUnit),o=e.valueOf()>this.valueOf(),s=o?this:e,l=o?e:this,u=km(s,l,i,a);return o?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(Te.now(),e,r)}until(e){return this.isValid?Ke.fromDateTimes(this,e):this}hasSame(e,r){if(!this.isValid)return!1;const n=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r)<=n&&n<=a.endOf(r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||Te.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let a=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(a=e.unit,i=void 0),nl(r,this.plus(n),{...e,numeric:"always",units:a,unit:i})}toRelativeCalendar(e={}){return this.isValid?nl(e.base||Te.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Te.isDateTime))throw new Dt("min requires all arguments be DateTimes");return is(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(Te.isDateTime))throw new Dt("max requires all arguments be DateTimes");return is(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:a=null,numberingSystem:i=null}=n,o=Ze.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return zs(o,e,r)}static fromStringExplain(e,r,n={}){return Te.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return Aa}static get DATE_MED(){return Bo}static get DATE_MED_WITH_WEEKDAY(){return th}static get DATE_FULL(){return Uo}static get DATE_HUGE(){return Vo}static get TIME_SIMPLE(){return jo}static get TIME_WITH_SECONDS(){return qo}static get TIME_WITH_SHORT_OFFSET(){return Ho}static get TIME_WITH_LONG_OFFSET(){return $o}static get TIME_24_SIMPLE(){return Go}static get TIME_24_WITH_SECONDS(){return Wo}static get TIME_24_WITH_SHORT_OFFSET(){return Yo}static get TIME_24_WITH_LONG_OFFSET(){return Zo}static get DATETIME_SHORT(){return Ko}static get DATETIME_SHORT_WITH_SECONDS(){return Jo}static get DATETIME_MED(){return Xo}static get DATETIME_MED_WITH_SECONDS(){return Qo}static get DATETIME_MED_WITH_WEEKDAY(){return rh}static get DATETIME_FULL(){return es}static get DATETIME_FULL_WITH_SECONDS(){return ts}static get DATETIME_HUGE(){return rs}static get DATETIME_HUGE_WITH_SECONDS(){return ns}}function un(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&gr(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new Dt(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function Xa(t,e){return Te.fromISO(t,{zone:e}).toJSDate()}function il(t,e){if(e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));return{dateTime:ol(r),timeZone:e}}else return{dateTime:ol(t)}}function Bn(t,e){const r=new Date(t.toLocaleString("en-US",{timeZone:e}));return r.getFullYear()+"-"+("0"+(r.getMonth()+1)).slice(-2)+"-"+("0"+r.getDate()).slice(-2)}function ol(t,e=!1){var r=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),i=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return e?(a<10?"0"+a:a)+"/"+(n<10?"0"+n:n)+"/"+r:r+"-"+(n<10?"0"+n:n)+"-"+(a<10?"0"+a:a)+"T"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)+":"+(s<10?"0"+s:s)}function De(t){return t==null?"":t==null?void 0:t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(r)})}function Re(t){return t==null?"":t==null?void 0:t.replace(/[\u0100-\u9999<>\&]/g,function(e){return"&#"+e.charCodeAt(0)+";"})}function Jm(t){return new Promise((e,r)=>{const n=new FileReader;n.readAsDataURL(t),n.onload=()=>e(n.result),n.onerror=a=>r(a)})}class Mr{constructor(){g(this,"name"),g(this,"startPeriod"),g(this,"endPeriod"),g(this,"monday"),g(this,"tuesday"),g(this,"wednesday"),g(this,"thursday"),g(this,"friday"),g(this,"saturday"),g(this,"sunday")}static fromSettingsPeriodWorkingDto(e){const r=new Mr;return r.name=De(e.name),r.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},r.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(r.monday=[],e.monday.forEach(n=>{var a;(a=r.monday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.tuesday&&(r.tuesday=[],e.tuesday.forEach(n=>{var a;(a=r.tuesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.wednesday&&(r.wednesday=[],e.wednesday.forEach(n=>{var a;(a=r.wednesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.thursday&&(r.thursday=[],e.thursday.forEach(n=>{var a;(a=r.thursday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.friday&&(r.friday=[],e.friday.forEach(n=>{var a;(a=r.friday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.saturday&&(r.saturday=[],e.saturday.forEach(n=>{var a;(a=r.saturday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.sunday&&(r.sunday=[],e.sunday.forEach(n=>{var a;(a=r.sunday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),r}static toSettingsPeriodWorkingDto(e){const r=new Xm;return r.name=Re(e.name),r.startPeriod={dateTime:e.startPeriod.dateTime,timeZone:e.startPeriod.timeZone},r.endPeriod={dateTime:e.endPeriod.dateTime,timeZone:e.endPeriod.timeZone},e.monday&&(r.monday=[],e.monday.forEach(n=>{var a;(a=r.monday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.tuesday&&(r.tuesday=[],e.tuesday.forEach(n=>{var a;(a=r.tuesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.wednesday&&(r.wednesday=[],e.wednesday.forEach(n=>{var a;(a=r.wednesday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.thursday&&(r.thursday=[],e.thursday.forEach(n=>{var a;(a=r.thursday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.friday&&(r.friday=[],e.friday.forEach(n=>{var a;(a=r.friday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.saturday&&(r.saturday=[],e.saturday.forEach(n=>{var a;(a=r.saturday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),e.sunday&&(r.sunday=[],e.sunday.forEach(n=>{var a;(a=r.sunday)==null||a.push(ht.fromSettingsPeriodWorkingDayDto(n))})),r}}class ht{constructor(){g(this,"service"),g(this,"start"),g(this,"end")}static fromSettingsPeriodWorkingDayDto(e){var r,n;const a=new ht;return a.end=e.end,e.service&&(a.service={id:(r=e.service)==null?void 0:r.id,name:(n=e.service)==null?void 0:n.name}),a.start=e.start,a}static toSettingsPeriodWorkingDayDto(e){var r,n;const a=new Qm;return a.end=e.end,e.service&&(a.service={id:(r=e.service)==null?void 0:r.id,name:(n=e.service)==null?void 0:n.name}),a.start=e.start,a}}class Pr{constructor(){g(this,"day"),g(this,"hours")}static fromSettingsWorkingDayDto(e){const r=new Pr;return r.day=e.day,r.hours=[],e.hours.forEach(n=>r.hours.push(Un.fromSettingsWorkingHoursDto(n))),r}static toSettingsWorkingDayDto(e){const r=new ep;return r.day=e.day,r.hours=[],e.hours.forEach(n=>r.hours.push(Un.toSettingsWorkingHoursDto(n))),r}}class Un{constructor(){g(this,"start"),g(this,"end")}static fromSettingsWorkingHoursDto(e){const r=new Un;return r.start=e.start,r.end=e.end,r}static toSettingsWorkingHoursDto(e){const r=new tp;return r.start=e.start,r.end=e.end,r}}class Xm{constructor(){g(this,"name"),g(this,"startPeriod"),g(this,"endPeriod"),g(this,"monday"),g(this,"tuesday"),g(this,"wednesday"),g(this,"thursday"),g(this,"friday"),g(this,"saturday"),g(this,"sunday")}}class Qm{constructor(){g(this,"service"),g(this,"start"),g(this,"end")}}class ep{constructor(){g(this,"day"),g(this,"hours")}}class tp{constructor(){g(this,"start"),g(this,"end")}}const rp=(t,e)=>e.some(r=>t instanceof r);let sl,ll;function np(){return sl||(sl=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ap(){return ll||(ll=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const cl=new WeakMap,Qa=new WeakMap,ul=new WeakMap,ei=new WeakMap,ti=new WeakMap;function ip(t){const e=new Promise((r,n)=>{const a=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(dn(t.result)),a()},o=()=>{n(t.error),a()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&cl.set(r,t)}).catch(()=>{}),ti.set(e,t),e}function op(t){if(Qa.has(t))return;const e=new Promise((r,n)=>{const a=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),a()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});Qa.set(t,e)}let ri={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Qa.get(t);if(e==="objectStoreNames")return t.objectStoreNames||ul.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return dn(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function sp(t){ri=t(ri)}function lp(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(ni(this),e,...r);return ul.set(n,e.sort?e.sort():[e]),dn(n)}:ap().includes(t)?function(...e){return t.apply(ni(this),e),dn(cl.get(this))}:function(...e){return dn(t.apply(ni(this),e))}}function cp(t){return typeof t=="function"?lp(t):(t instanceof IDBTransaction&&op(t),rp(t,np())?new Proxy(t,ri):t)}function dn(t){if(t instanceof IDBRequest)return ip(t);if(ei.has(t))return ei.get(t);const e=cp(t);return e!==t&&(ei.set(t,e),ti.set(e,t)),e}const ni=t=>ti.get(t),up=["get","getKey","getAll","getAllKeys","count"],dp=["put","add","delete","clear"],ai=new Map;function dl(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(ai.get(e))return ai.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,a=dp.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(a||up.includes(r)))return;const i=async function(o,...s){const l=this.transaction(o,a?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(s.shift())),(await Promise.all([u[r](...s),a&&l.done]))[0]};return ai.set(e,i),i}sp(t=>({...t,get:(e,r,n)=>dl(e,r)||t.get(e,r,n),has:(e,r)=>!!dl(e,r)||t.has(e,r)}));class Fr{constructor(e,r,n){g(this,"mimeType"),g(this,"url"),g(this,"data"),this.mimeType=e,this.url=r,this.data=n}}class Er{constructor(){g(this,"id"),g(this,"name"),g(this,"value"),g(this,"values")}static fromCustomFormValueDto(e){var r;const n=new Er;n.id=e.id,n.name=De(e.name),n.value=De(e.value);const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(Er.fromCustomFormValueDto(i))}),n.values=a,n}static toFormValueDto(e){var r;const n=new hp;n.id=e.id,n.name=Re(e.name),n.value=Re(e.value);const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(Er.toFormValueDto(i))}),n.values=a,n}}class zt{constructor(){g(this,"id"),g(this,"label"),g(this,"type"),g(this,"inputType"),g(this,"visible"),g(this,"disabled"),g(this,"required"),g(this,"values"),g(this,"subItem"),g(this,"formatType"),g(this,"pattern"),g(this,"minlength"),g(this,"maxlength"),g(this,"externalId"),g(this,"help"),g(this,"placeholder"),g(this,"otherValue"),g(this,"category"),g(this,"readonly"),g(this,"value"),g(this,"multiple"),g(this,"bind"),g(this,"bindGroup")}static fromFormDto(e){var r,n,a,i,o,s;const l=new zt;l.id=e.id,l.label=De(e.title?e.title:e.label),l.type=e.type,l.inputType=e.inputType,l.visible=e.visible,l.disabled=e.disabled,l.required=e.mandatory;const u=[];(r=e.values)==null||r.forEach(x=>{u.push(Er.fromCustomFormValueDto(x))}),l.values=u;const f=[];return e.subItem&&((n=e.subItem)==null||n.forEach(x=>{f.push(zt.fromFormDto(x))})),l.subItem=f,l.readonly=e.readonly,l.multiple=e.multiple,l.pattern=(a=e.valueFormat)==null?void 0:a.regexValue,l.minlength=(i=e.valueFormat)==null?void 0:i.minLength,l.maxlength=(o=e.valueFormat)==null?void 0:o.maxLength,l.formatType=(s=e.valueFormat)==null?void 0:s.type,l.externalId=e.externalId,l.help=e.help,l.placeholder=e.placeholder,l.otherValue=e.otherValue,l.category=e.category,l.bind=e.bind,l.bindGroup=e.bindGroup,l.value=De(e.value),l}static fromWidgetFormItemDto(e){var r;const n=new zt;n.id=e.id,n.label=De(e.title?e.title:e.label),n.type=e.type,n.inputType=e.inputType,n.visible=e.visible,n.disabled=e.disabled,n.required=e.required;const a=[];return(r=e.values)==null||r.forEach(i=>{a.push(Er.fromCustomFormValueDto(i))}),n.values=a,n.readonly=e.readonly,n.multiple=e.multiple,n.pattern=e.pattern,n.minlength=e.minlength,n.maxlength=e.maxlength,n.formatType=e.pattern?"regex":"none",n.externalId=e.externalId,n.help=e.help,n.placeholder=e.placeholder,n.bind=e.bind,n.bindGroup=e.bindGroup,n.value=De(e.value),n}static toFormDto(e){var r,n;const a=new fp;a.id=e.id,a.label=Re(e.label),a.title=Re(e.label),a.type=e.type,a.inputType=e.inputType,a.visible=e.visible,a.disabled=e.disabled,a.mandatory=e.required;const i=[];(r=e.values)==null||r.forEach(s=>{i.push(Er.toFormValueDto(s))}),a.values=i,a.valueFormat={type:e.formatType,maxLength:e.maxlength,minLength:e.minlength,regexValue:e.pattern};const o=[];return e.subItem&&((n=e.subItem)==null||n.forEach(s=>{o.push(zt.toFormDto(s))})),a.subItem=o,a.readonly=e.readonly,a.multiple=e.multiple,a.bind=e.bind,a.bindGroup=e.bindGroup,a.externalId=e.externalId,a.help=e.help,a.placeholder=e.placeholder,a.otherValue=e.otherValue,a.category=e.category,Array.isArray(e.value)?a.value=e.value.map(s=>Re(s)):typeof e.value=="string"?a.value=Re(e.value):a.value=e.value,a}static formItemToFormField(e){var r;return{id:e.id,inputType:e.inputType||e.type,label:e.label,mandatory:e.required,visible:e.visible,values:(r=e.values)==null?void 0:r.map(n=>({label:n.name,value:n.value})),bind:e.bind,multiple:e.multiple,value:e.value,pattern:e.pattern,disabled:e.disabled,minlength:e.minlength,maxlength:e.maxlength}}static formItemsToFormFields(e,r=!1){if(e&&e.length>0){const n=[];return e.forEach(a=>{var i;r&&a.subItem&&a.subItem.length>0?(i=a.subItem)==null||i.forEach(o=>{n.push(zt.formItemToFormField(o))}):n.push(zt.formItemToFormField(a))}),n}}}class fp{constructor(){g(this,"id"),g(this,"label"),g(this,"title"),g(this,"type"),g(this,"inputType"),g(this,"visible"),g(this,"disabled"),g(this,"mandatory"),g(this,"values"),g(this,"subItem"),g(this,"valueFormat"),g(this,"externalId"),g(this,"help"),g(this,"placeholder"),g(this,"otherValue"),g(this,"category"),g(this,"readonly"),g(this,"value"),g(this,"fileName"),g(this,"multiple"),g(this,"bind"),g(this,"bindGroup")}}class hp{constructor(){g(this,"id"),g(this,"name"),g(this,"value"),g(this,"values")}}class Yt{constructor(){g(this,"id"),g(this,"userId"),g(this,"company"),g(this,"firstName"),g(this,"lastName"),g(this,"gender"),g(this,"title"),g(this,"email"),g(this,"phone"),g(this,"otherPhone"),g(this,"description"),g(this,"vacations"),g(this,"role"),g(this,"workingHours"),g(this,"customWorkingHours"),g(this,"picture"),g(this,"servicesSkill"),g(this,"color"),g(this,"availableForWidget"),g(this,"externalId"),g(this,"additionalFields"),g(this,"externalCalendars"),g(this,"calendarLink")}static fromStaffDto(e){const r=new Yt;return r.id=e.id,e.company&&(r.company={id:e.company.id,name:e.company.name}),r.firstName=De(e.firstName),r.lastName=De(e.lastName),r.email=e.email,r.phone=e.phone,r.gender=e.gender,r.title=e.title,r.otherPhone=e.otherPhone,r.description=De(e.description),r.role=e.role,r.externalId=e.externalId,e.vacations&&(r.vacations=[],e.vacations.forEach(n=>{var a;return(a=r.vacations)==null?void 0:a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Pr.fromSettingsWorkingDayDto(n))})),e.customWorkingHours&&(r.customWorkingHours=[],e.customWorkingHours.forEach(n=>{var a;return(a=r.customWorkingHours)==null?void 0:a.push(Mr.fromSettingsPeriodWorkingDto(n))})),e.additionalFields&&(r.additionalFields=[],e.additionalFields.forEach(n=>{var a;return(a=r.additionalFields)==null?void 0:a.push(zt.fromFormDto(n))})),e.externalCalendars&&(r.externalCalendars=[],e.externalCalendars.forEach(n=>{var a;return(a=r.externalCalendars)==null?void 0:a.push(n)})),e.calendarLink&&(r.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(r.picture={mimeType:e.picture.mimeType,url:e.picture.url,data:e.picture.data}),e.services&&(r.servicesSkill=[],e.services.forEach(n=>{var a;(a=r.servicesSkill)==null||a.push(n.id)})),r.color=e.color,r.availableForWidget=e.availableForWidget,r}static toStaffDto(e){const r=new mp;return r.id=e.id,e.company&&(r.company={id:e.company.id,name:e.company.name}),r.firstName=Re(e.firstName),r.lastName=Re(e.lastName),r.email=e.email,r.phone=e.phone,r.gender=e.gender,r.title=e.title,r.otherPhone=e.otherPhone,r.description=Re(e.description),r.role=e.role,r.externalId=e.externalId,e.vacations&&(r.vacations=[],e.vacations.forEach(n=>{var a;return(a=r.vacations)==null?void 0:a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Pr.fromSettingsWorkingDayDto(n))})),e.customWorkingHours&&(r.customWorkingHours=[],e.customWorkingHours.forEach(n=>{var a;return(a=r.customWorkingHours)==null?void 0:a.push(Mr.fromSettingsPeriodWorkingDto(n))})),e.additionalFields&&(r.additionalFields=[],e.additionalFields.forEach(n=>{var a;return(a=r.additionalFields)==null?void 0:a.push(zt.fromFormDto(n))})),e.externalCalendars&&(r.externalCalendars=[],e.externalCalendars.forEach(n=>{var a;return(a=r.externalCalendars)==null?void 0:a.push(n)})),e.calendarLink&&(r.calendarLink={mineType:e.calendarLink.mineType,url:e.calendarLink.url}),e.picture&&(r.picture=new Fr(e.picture.mimeType,e.picture.url,e.picture.data)),e.servicesSkill&&(r.services=[],e.servicesSkill.forEach(n=>{var a;(a=r.services)==null||a.push({id:n})})),r.color=e.color,r.availableForWidget=e.availableForWidget,r}}class mp{constructor(){g(this,"id"),g(this,"company"),g(this,"firstName"),g(this,"lastName"),g(this,"gender"),g(this,"title"),g(this,"email"),g(this,"phone"),g(this,"otherPhone"),g(this,"description"),g(this,"vacations"),g(this,"role"),g(this,"workingHours"),g(this,"customWorkingHours"),g(this,"picture"),g(this,"services"),g(this,"color"),g(this,"availableForWidget"),g(this,"externalId"),g(this,"additionalFields"),g(this,"externalCalendars"),g(this,"calendarLink")}}class ar{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"description"),g(this,"capacity"),g(this,"price"),g(this,"bufferDuration"),g(this,"preparationDuration"),g(this,"validation"),g(this,"externalId"),g(this,"duration"),g(this,"locations"),g(this,"picture"),g(this,"staffsSkill"),g(this,"color"),g(this,"type"),g(this,"availability"),g(this,"i18n"),g(this,"resources")}static fromServiceDto(e){var r;const n=new ar;n.id=e.id,n.company=e.company?{id:e.company.id,name:De(e.company.name)}:void 0,n.name=De(e.name),n.duration=e.duration,n.description=De(e.description),n.capacity=e.capacity,n.price=e.price,n.bufferDuration=e.bufferDuration,n.preparationDuration=e.preparationDuration,n.validation=e.validation,n.externalId=e.externalId;const a=[];return(r=e.resource)==null||r.forEach(i=>{a.push({id:i.id,name:i.name,quantity:i.quantity})}),n.resources=a,n.type=e.bypassFreeBusyAvailabilities!==void 0&&e.bypassFreeBusyAvailabilities?"event":"default",n.locations=e.locations,n.picture=e.picture?new Fr(e.picture.mimeType,e.picture.url):void 0,e.staff&&(n.staffsSkill=[],e.staff.forEach(i=>{var o;(o=n.staffsSkill)==null||o.push(i.id)})),e.i18n&&(n.i18n={},e.i18n.fr&&(n.i18n.fr=e.i18n.fr),e.i18n.en&&(n.i18n.en=e.i18n.en),e.i18n.es&&(n.i18n.es=e.i18n.es),e.i18n.de&&(n.i18n.de=e.i18n.de),e.i18n.it&&(n.i18n.it=e.i18n.it),e.i18n.pt&&(n.i18n.pt=e.i18n.pt),e.i18n.jp&&(n.i18n.jp=e.i18n.jp),e.i18n.nl&&(n.i18n.nl=e.i18n.nl)),n.color=e.color,n.availability=e.availability,n}static toServiceDto(e){var r,n;const a=new pp;a.id=e.id,a.name=Re(e.name),a.duration=e.duration,a.description=Re(e.description),a.capacity=e.capacity,a.price=e.price,a.bufferDuration=e.bufferDuration,a.preparationDuration=e.preparationDuration,a.validation=e.validation,a.externalId=e.externalId,a.picture=(r=e.picture)!=null&&r.data?{url:"",mimeType:"",data:e.picture.data}:void 0;const i=[];return a.bypassFreeBusyAvailabilities=e.type==="event",(n=e.resources)==null||n.forEach(o=>{i.push({id:o.id,name:o.name,quantity:o.quantity})}),a.resource=i,a.locations=e.locations,e.staffsSkill&&(a.staff=[],e.staffsSkill.forEach(o=>{var s;(s=a.staff)==null||s.push({id:o})})),e.i18n&&(a.i18n={},e.i18n.fr&&(a.i18n.fr=e.i18n.fr),e.i18n.en&&(a.i18n.en=e.i18n.en),e.i18n.es&&(a.i18n.es=e.i18n.es),e.i18n.de&&(a.i18n.de=e.i18n.de),e.i18n.it&&(a.i18n.it=e.i18n.it),e.i18n.pt&&(a.i18n.pt=e.i18n.pt),e.i18n.jp&&(a.i18n.jp=e.i18n.jp),e.i18n.nl&&(a.i18n.nl=e.i18n.nl)),a.color=e.color,a.availability=e.availability,a}}class pp{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"duration"),g(this,"locations"),g(this,"picture"),g(this,"description"),g(this,"capacity"),g(this,"price"),g(this,"bufferDuration"),g(this,"preparationDuration"),g(this,"validation"),g(this,"externalId"),g(this,"staff"),g(this,"color"),g(this,"availability"),g(this,"resource"),g(this,"bypassFreeBusyAvailabilities"),g(this,"i18n")}}class ii{constructor(e){g(this,"text"),this.text=e}}class fn{constructor(){g(this,"street"),g(this,"otherStreet"),g(this,"zipCode"),g(this,"city"),g(this,"country"),g(this,"state")}static fromAddressDto(e){const r=new fn;return r.street=De(e.street),r.otherStreet=De(e.otherStreet),r.zipCode=De(e.zipCode),r.city=De(e.city),r.country=De(e.country),r.state=De(e.state),r}static toAddressDto(e){const r=new gp;return r.street=Re(e.street),r.otherStreet=Re(e.otherStreet),r.zipCode=Re(e.zipCode),r.city=Re(e.city),r.country=Re(e.country),r.state=Re(e.state),r}}class gp{constructor(){g(this,"street"),g(this,"otherStreet"),g(this,"zipCode"),g(this,"city"),g(this,"country"),g(this,"state")}}function vp(t){const e=t.replace("#",""),r=("rgb("+e.match(new RegExp("(.{"+e.length/3+"})","g")).map(function(a){return parseInt(e.length%2?a+a:a,16)}).join(",")+")").replace(/[^\d,]/g,"").split(",");var n=Math.floor((Number.parseInt(r[0])*299+Number.parseInt(r[1])*587+Number.parseInt(r[2])*114)/1e3);return n>125?"black":"white"}class Zt{constructor(){g(this,"id"),g(this,"owner"),g(this,"firstName"),g(this,"lastName"),g(this,"email"),g(this,"emailAddresses"),g(this,"phone"),g(this,"phoneNumbers"),g(this,"picture"),g(this,"externalId"),g(this,"marketingConsent"),g(this,"marketingOptins"),g(this,"title"),g(this,"gender"),g(this,"tags"),g(this,"companyName"),g(this,"jobTitle"),g(this,"address"),g(this,"birthDate"),g(this,"language"),g(this,"languageSpoken"),g(this,"languageUnderstood"),g(this,"additionalFieldsTitle"),g(this,"additionalFields"),g(this,"creationDate"),g(this,"timeZone"),g(this,"fax"),g(this,"notification"),g(this,"reminder"),g(this,"description")}static fromContactDto(e){var r,n,a,i;const o=new Zt;o.id=e.id,o.owner=e.owner,o.firstName=De(e.firstName),o.lastName=De(e.lastName);let s=[];(r=e.emailAddresses)==null||r.forEach(x=>{s.push(jn.fromContactEmailAddressDto(x))}),s.length>0?(o.emailAddresses=s,o.email=s[0].email):o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(x=>{l.push(Vn.fromContactPhoneNumberDto(x))}),l.length>0?(o.phoneNumbers=l,o.phone=l[0].number):o.phone=e.phone,e.picture&&(o.picture=new Fr(e.picture.mimeType,e.picture.url,e.picture.data)),o.externalId=e.externalId,o.marketingConsent=e.marketingConsent,o.title=e.title,o.gender=e.gender,e.marketingOptins&&(o.marketingOptins={},e.marketingOptins.email&&(o.marketingOptins.email={enabled:e.marketingOptins.email.enabled}));let u=[];(a=e.tags)==null||a.forEach(x=>{u.push(qn.fromContactTagDto(x))}),u.length>0&&(o.tags=u),o.companyName=e.companyName?De(e.companyName):void 0,o.jobTitle=e.jobTitle?De(e.jobTitle):void 0,e.address&&(o.address=fn.fromAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood;let f=[];if((i=e.additionalFields)==null||i.forEach(x=>{f.push(Hn.fromContactAdditionalFieldDto(x))}),f.length>0&&(o.additionalFields=f),o.additionalFieldsTitle=e.additionalFieldsTitle?De(e.additionalFieldsTitle):void 0,e.creationDate){const x=Xa(e.creationDate);x.setHours(0,0,0),o.creationDate=x}return o.timeZone=e.timeZone,o.fax=e.fax,o.notification=e.notificationType,o.reminder=e.reminderType,o.description=e.description,o}static toContactDto(e){var r,n,a,i;const o=new yp;o.id=e.id,o.owner=e.owner,o.firstName=Re(e.firstName),o.lastName=Re(e.lastName);let s=[];(r=e.emailAddresses)==null||r.forEach(x=>{s.push(jn.toContactEmailAddressDto(x))}),o.emailAddresses=s,o.email=e.email;let l=[];(n=e.phoneNumbers)==null||n.forEach(x=>{l.push(Vn.toContactPhoneNumberDto(x))}),o.phoneNumbers=l,o.phone=e.phone,e.picture&&(o.picture=new Fr(e.picture.mimeType,e.picture.url,e.picture.data)),o.externalId=e.externalId,e.marketingConsent&&(o.marketingConsent=new ii(e.marketingConsent.text)),o.title=e.title,o.gender=e.gender;let u=[];(a=e.tags)==null||a.forEach(x=>{u.push(qn.toContactTagDto(x))}),o.tags=u,o.companyName=Re(e.companyName),o.jobTitle=Re(e.jobTitle),e.address&&(o.address=fn.toAddressDto(e.address)),o.birthDate=e.birthDate,o.language=e.language,o.languageSpoken=e.languageSpoken,o.languageUnderstood=e.languageUnderstood,o.additionalFieldsTitle=Re(e.additionalFieldsTitle);let f=[];return(i=e.additionalFields)==null||i.forEach(x=>{f.push(Hn.toContactAdditionalFieldDto(x))}),o.additionalFields=f,o.fax=e.fax,o.timeZone=e.timeZone,o.notificationType=e.notification,o.reminderType=e.reminder,o.description=e.description,o}}class oi{constructor(){g(this,"items"),g(this,"nextPageToken"),g(this,"nextSyncToken"),g(this,"totalItems")}static fromContactSearchDto(e){const r=new oi;r.nextPageToken=e.nextPageToken,r.nextSyncToken=e.nextSyncToken,r.totalItems=e.totalItems;const n=[];return e.items.forEach(a=>n.push(Zt.fromContactDto(a))),r.items=n,r}}class Vn{constructor(){g(this,"number"),g(this,"primary"),g(this,"mobile")}static fromContactPhoneNumberDto(e){const r=new Vn;return r.number=e.number,r.primary=e.primary,r.mobile=e.mobile,r}static toContactPhoneNumberDto(e){const r=new bp;return r.number=e.number,r.primary=e.primary,r.mobile=e.mobile,r}}class jn{constructor(){g(this,"email"),g(this,"primary")}static fromContactEmailAddressDto(e){const r=new jn;return r.email=e.email,r.primary=e.primary,r}static toContactEmailAddressDto(e){const r=new Ep;return r.email=e.email,r.primary=e.primary,r}}class qn{constructor(){g(this,"id"),g(this,"tag"),g(this,"color"),g(this,"textColor")}static fromContactTagDto(e){const r=new qn;return r.id=e.id,r.tag=De(e.tag),r.color=e.color,e.color&&(r.textColor=vp(e.color)),r}static toContactTagDto(e){const r=new xp;return r.tag=Re(e.tag),r.color=e.color,r}}class Hn{constructor(){g(this,"id"),g(this,"name"),g(this,"mandatory"),g(this,"value")}static fromContactAdditionalFieldDto(e){const r=new Hn;return r.id=e.id,r.name=De(e.name),r.mandatory=e.mandatory,r.value=De(e.value),r}static toContactAdditionalFieldDto(e){const r=new wp;return r.id=e.id,r.name=Re(e.name),r.mandatory=e.mandatory,r.value=Re(e.value),r}}class yp{constructor(){g(this,"id"),g(this,"owner"),g(this,"firstName"),g(this,"lastName"),g(this,"email"),g(this,"emailAddresses"),g(this,"phone"),g(this,"phoneNumbers"),g(this,"picture"),g(this,"externalId"),g(this,"marketingConsent"),g(this,"marketingOptins"),g(this,"title"),g(this,"gender"),g(this,"tags"),g(this,"companyName"),g(this,"jobTitle"),g(this,"address"),g(this,"birthDate"),g(this,"language"),g(this,"languageSpoken"),g(this,"languageUnderstood"),g(this,"additionalFieldsTitle"),g(this,"additionalFields"),g(this,"creationDate"),g(this,"timeZone"),g(this,"fax"),g(this,"notificationType"),g(this,"reminderType"),g(this,"description")}}class bp{constructor(){g(this,"number"),g(this,"primary"),g(this,"mobile")}}class Ep{constructor(){g(this,"email"),g(this,"primary")}}class xp{constructor(){g(this,"id"),g(this,"tag"),g(this,"color")}}class wp{constructor(){g(this,"id"),g(this,"name"),g(this,"mandatory"),g(this,"value")}}var fl=(t=>(t.PRO="normal",t.PERSO="personal",t.EXTERNAL="external",t.ICS="ics",t))(fl||{});class Rt{constructor(){g(this,"id"),g(this,"owner"),g(this,"company"),g(this,"service"),g(this,"staff"),g(this,"client"),g(this,"start"),g(this,"end"),g(this,"status"),g(this,"type"),g(this,"source"),g(this,"price"),g(this,"paid"),g(this,"notes"),g(this,"summary"),g(this,"form"),g(this,"metaEvent"),g(this,"metaEventId"),g(this,"onlineMeeting"),g(this,"parameters"),g(this,"events"),g(this,"privacyConsent"),g(this,"marketingConsent"),g(this,"location"),g(this,"locationCustom"),g(this,"preparationDuration"),g(this,"bufferDuration")}static fromEventDto(e,r){var n;const a=new Rt;a.id=e.id,e.owner&&(a.owner={id:e.owner.id,userName:e.owner.userName}),e.company&&(a.company={id:e.company.id,name:De(e.company.name)}),e.service&&(a.service={id:e.service.id,name:De(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:De(e.staff.firstName),lastName:De(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:De(e.client.firstName),lastName:De(e.client.lastName),email:e.client.email}),a.start=Xa(e.start.dateTime,e.start.timeZone),a.end=Xa(e.end.dateTime,e.end.timeZone),a.status=e.status,a.paid=e.paid,a.type=r||e.type,a.source=e.source,a.price=e.price,a.notes=De(e.notes),a.summary=De(e.summary);const i=[];if((n=e.form)==null||n.forEach(o=>i.push(zt.fromFormDto(o))),a.form=i,a.metaEvent=e["meta-event"],a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,a.location=e.location,a.locationCustom=De(e.locationCustom),e.events){const o=[];e.events.forEach(s=>o.push(Rt.fromEventDto(s,r))),a.events=o}return a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}static toEventDto(e,r){var n;const a=new _p;a.id=e.id,e.company&&(a.company={id:e.company.id,name:Re(e.company.name)}),e.service&&(a.service={id:e.service.id,name:Re(e.service.name),color:e.service.color,preparationDuration:e.service.preparationDuration,bufferDuration:e.service.bufferDuration,capacity:e.service.capacity}),e.staff&&(a.staff={id:e.staff.id,firstName:Re(e.staff.firstName),lastName:Re(e.staff.lastName),phone:e.staff.phone,email:e.staff.email,externalId:e.staff.externalId,userId:e.staff.userId}),e.client&&(a.client={id:e.client.id,firstName:Re(e.client.firstName),lastName:Re(e.client.lastName),email:e.client.email}),a.start=il(e.start,r),a.end=il(e.end,r),a.status=e.status,a.paid=e.paid,a.type=e.type,a.source=e.source,a.price=e.price,a.notes=Re(e.notes),a.summary=Re(e.summary);const i=[];if((n=e.form)==null||n.forEach(o=>i.push(zt.toFormDto(o))),a.form=i,a["meta-event"]=e.metaEvent,a.metaEventId=e.metaEventId,e.onlineMeeting&&(a.onlineMeeting={provider:e.onlineMeeting.provider,videoLink:e.onlineMeeting.videoLink}),a.parameters=e.parameters,e.events){const o=[];e.events.forEach(s=>o.push(Rt.toEventDto(s,r))),a.events=o}return e.marketingConsent&&(a.marketingConsent=new ii(e.marketingConsent.text)),e.privacyConsent&&(a.privacyConsent=new ii(e.privacyConsent.text)),a.location=e.location,a.locationCustom=Re(e.locationCustom),a.preparationDuration=e.preparationDuration,a.bufferDuration=e.bufferDuration,a}}class _p{constructor(){g(this,"id"),g(this,"owner"),g(this,"company"),g(this,"service"),g(this,"staff"),g(this,"client"),g(this,"start"),g(this,"end"),g(this,"status"),g(this,"type"),g(this,"source"),g(this,"paid"),g(this,"price"),g(this,"notes"),g(this,"summary"),g(this,"form"),g(this,"meta-event"),g(this,"metaEventId"),g(this,"onlineMeeting"),g(this,"parameters"),g(this,"events"),g(this,"privacyConsent"),g(this,"marketingConsent"),g(this,"location"),g(this,"locationCustom"),g(this,"preparationDuration"),g(this,"bufferDuration")}}class ir{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"picture"),g(this,"members"),g(this,"parent"),g(this,"externalId"),g(this,"companyId")}static fromServiceGroupDto(e,r){const n=new ir;return n.id=e.id,n.name=De(e.name),n.color=e.color,n.picture=e.picture?new Fr(e.picture.mimeType,e.picture.url,e.picture.data):void 0,e.members&&(n.members=[],e.members.forEach(a=>{var i;(i=n.members)==null||i.push({id:a.id,name:De(a.name)})})),e.parent&&(n.parent={id:e.parent.id,name:De(e.parent.name)}),n.externalId=e.externalId,n.companyId=r,n}static toServiceGroupDto(e){var r,n,a;const i=new Sp;return i.id=e.id,i.name=Re(e.name),i.color=e.color,i.picture=e.picture?{url:(r=e.picture)==null?void 0:r.url,mimeType:(n=e.picture)==null?void 0:n.mimeType,data:(a=e.picture)==null?void 0:a.data}:void 0,e.members&&(i.members=[],e.members.forEach(o=>{var s;(s=i.members)==null||s.push({id:o.id,name:Re(o.name)})})),e.parent&&(i.parent={id:e.parent.id,name:Re(e.parent.name)}),i.externalId=e.externalId,i}}class Sp{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"picture"),g(this,"members"),g(this,"parent"),g(this,"externalId")}}class or{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"members"),g(this,"workingHours"),g(this,"externalId"),g(this,"companyId")}static fromStaffGroupDto(e,r){const n=new or;return n.id=e.id,n.name=De(e.name),n.color=e.color,e.members&&(n.members=[],e.members.forEach(a=>{var i;(i=n.members)==null||i.push(a)})),e.workingHours&&(n.workingHours=[],e.workingHours.forEach(a=>{var i;return(i=n.workingHours)==null?void 0:i.push(Pr.fromSettingsWorkingDayDto(a))})),n.externalId=e.externalId,n.companyId=r,n}static toStaffGroupDto(e){const r=new Ip;return r.id=e.id,r.name=Re(e.name),r.color=e.color,e.members&&(r.members=[],e.members.forEach(n=>{var a;(a=r.members)==null||a.push(n)})),e.workingHours&&(r.workingHours=[],e.workingHours.forEach(n=>{var a;return(a=r.workingHours)==null?void 0:a.push(Pr.fromSettingsWorkingDayDto(n))})),r.externalId=e.externalId,r}}class Ip{constructor(){g(this,"id"),g(this,"name"),g(this,"color"),g(this,"members"),g(this,"workingHours"),g(this,"externalId")}}var ke=(t=>(t[t.UNKOWN=0]="UNKOWN",t[t.INTERNAL_ERROR=1]="INTERNAL_ERROR",t[t.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",t[t.INVALID_PARAMETER=3]="INVALID_PARAMETER",t[t.CREDENTIAL_ERROR=100]="CREDENTIAL_ERROR",t[t.USER_ACCOUNT_LOCKED=101]="USER_ACCOUNT_LOCKED",t[t.PASSWORD_POLICY_ERROR=102]="PASSWORD_POLICY_ERROR",t[t.STAFF_NOT_AVAILABLE=1e3]="STAFF_NOT_AVAILABLE",t[t.MAX_APPOINTMENT_DAILY=1001]="MAX_APPOINTMENT_DAILY",t[t.MAX_APPOINTMENT_WEEKLY=1002]="MAX_APPOINTMENT_WEEKLY",t[t.APPOINTMENT_PERIOD_RULE=1003]="APPOINTMENT_PERIOD_RULE",t[t.RESOURCE_NOT_AVAILABLE=1004]="RESOURCE_NOT_AVAILABLE",t[t.DATE_NOT_AVAILABLE=1005]="DATE_NOT_AVAILABLE",t[t.USER_BLOCKED=1006]="USER_BLOCKED",t[t.ACCOUNT_NOT_FOUND=2e3]="ACCOUNT_NOT_FOUND",t))(ke||{});function Cp(t,e){if(e.errorCode)return ke[e.errorCode];if(t==="Appointment")switch(e.reason){case"notFound":return 1e3}return 0}class si{constructor(){g(this,"errorCode"),g(this,"reason"),g(this,"code"),g(this,"message")}}const sr=new si;sr.reason="notFound",sr.code=404,sr.message="Not Found";class Ne{constructor(e,r){g(this,"errorCode"),g(this,"e"),this.errorCode=e,this.e=r}}const Tp=36e5;var Je=(t=>(t[t.DELETE=0]="DELETE",t[t.UPDATE=1]="UPDATE",t[t.CREATE=2]="CREATE",t))(Je||{}),Le=(t=>(t[t.REMOTE_THEN_LOCAL=0]="REMOTE_THEN_LOCAL",t[t.LOCAL_THEN_REMOTE=1]="LOCAL_THEN_REMOTE",t[t.LOCAL_ONLY=2]="LOCAL_ONLY",t[t.REMOTE_ONLY=3]="REMOTE_ONLY",t))(Le||{});const li=class{constructor(t,e){g(this,"repositoryName"),g(this,"logger"),this.logger=e,this.repositoryName=t}async list(t,e,r){var n;let a;switch(+e){case 0:return this._listRemoteFirstThenLocal(t,r);case 1:return this._isExpired(li.lastRemoteList[this.repositoryName])?((n=this.logger)==null||n.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._listRemoteFirstThenLocal(t,r)):this._listLocalFirstThenRemote(t,r);case 2:return a=await this.localList(r),{local:!0,results:a};case 3:return a=await this.remoteList(t,r),await this.localSaveList(r,a),{local:!1,results:a}}throw new Error("Not implemented")}async update(t,e,r,n){switch(+e){case 0:return this._updateRemoteFirstThenLocal(t,r,n);case 3:return await this.remoteUpdate(t,r,n)}throw new Error("Not implemented")}async create(t,e,r,n){switch(+e){case 0:return this._createRemoteFirstThenLocal(t,r,n);case 3:return await this.remoteCreate(t,r,n);case 2:return await this.localBulkSave(r,[n]),n}throw new Error("Not implemented")}async getById(t,e,r){var n,a;let i=!0,o;switch(+e){case 0:const s=await this._getRemoteFirstThenLocal(t,r);o=s.result,i=s.local;break;case 3:i=!1,o=await this.remoteGet(t,r),await this.localSave(r,o);break;case 2:o=await this.localGet(r);break;case 1:try{o=await this.localGet(r)}catch(l){(n=this.logger)==null||n.debug("js-calendar-api","LocalThenRemote localGet error",l)}return!o||!o.lastRemote||this._isExpired(o.lastRemote)?((a=this.logger)==null||a.fine("js-calendar-api","LocalThenRemote has expired => execute RemoteThenLocal instead"),this._getRemoteFirstThenLocal(t,r)):this._getLocalFirstThenRemote(t,r);default:throw new Error("Not implemented")}return{local:i,result:o}}async deleteById(t,e){await this.remoteDelete(t,e),await this.localDelete(e)}async cascadeDeleteList(t,e){const r=await this.localList(t);if(r){const n=r.filter(e);await this.localBulkDelete(n)}}async cascadeDeleteItem(t){await this.localDelete(t)}async cascadeDelete(t,e,r=!0){r&&e?await this.cascadeDeleteList(t,e):r||await this.cascadeDeleteItem(t)}async _getLocalFirstThenRemote(t,e){var r,n,a,i=!0;try{a=await this.localGet(e)}catch(o){(r=this.logger)==null||r.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(!a){i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){throw(n=this.logger)==null||n.error("js-calendar-api",`Get ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{result:a,local:i}}async _getRemoteFirstThenLocal(t,e){var r,n;let a,i=!1;try{a=await this.remoteGet(t,e),await this.localSave(e,a)}catch(o){i=!0,(r=this.logger)==null||r.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localGet(e),a===void 0)throw o}catch(s){throw(n=this.logger)==null||n.error("js-calendar-api",`Get ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{result:a,local:i}}async _listRemoteFirstThenLocal(t,e){var r,n;let a=[],i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){i=!0,(r=this.logger)==null||r.warn("js-calendar-api",`Get ${this.repositoryName} remote failed: `,o);try{if(a=await this.localList(e),a===void 0||a.length===0)throw o}catch(s){throw(n=this.logger)==null||n.error("js-calendar-api",`List ${this.repositoryName} remote then local failed: `,s),this.getError(s)}}return{results:a,local:i}}async _listLocalFirstThenRemote(t,e){var r,n;let a=[],i=!0;try{a=await this.localList(e)}catch(o){(r=this.logger)==null||r.debug("js-calendar-api",`Get ${this.repositoryName} local failed: `,o)}if(a===void 0||a.length===0){i=!1;try{a=await this.remoteList(t,e),await this.localSaveList(e,a)}catch(o){throw(n=this.logger)==null||n.error("js-calendar-api",`List ${this.repositoryName} local then remote failed: `,o),this.getError(o)}}return{results:a,local:i}}async _createRemoteFirstThenLocal(t,e,r){var n;let a;try{a=await this.remoteCreate(t,e,r),await this.localSave(e,a)}catch(i){throw(n=this.logger)==null||n.error("js-calendar-api",`Create ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async _updateRemoteFirstThenLocal(t,e,r){var n;let a;try{a=await this.remoteUpdate(t,e,r),await this.localSave(e,a)}catch(i){throw(n=this.logger)==null||n.error("js-calendar-api",`Update ${this.repositoryName} remote then local failed: `,i),this.getError(i)}return a}async localSaveList(t,e){await this.localBulkSave(t,e),li.lastRemoteList[this.repositoryName]=new Date().getTime()}async localSave(t,e){await this.localBulkSave(t,[e])}_isExpired(t){return!(t&&t+Tp>new Date().getTime())}getError(t){let e=ke.UNKOWN;return t instanceof si&&(e=Cp(this.repositoryName,t)),new Ne(e,t)}};let lr=li;g(lr,"lastRemoteList",{});class cr{constructor(){g(this,"id"),g(this,"company"),g(this,"name"),g(this,"quantity"),g(this,"availability"),g(this,"services"),g(this,"customWorkingHours")}static fromServiceResourceDto(e,r){var n;const a=new cr;a.name=e.name,a.id=e.id,a.company={id:r},a.quantity=e.quantity,a.availability=e.availability,a.services=e.services;const i=[];return(n=e.customWorkingHours)==null||n.forEach(o=>{i.push(Mr.fromSettingsPeriodWorkingDto(o))}),a.customWorkingHours=i,a}static toServiceResourceDto(e){var r;const n=new kp;n.id=e.id,n.name=e.name,n.quantity=e.quantity,n.availability=e.availability,n.services=e.services;const a=[];return(r=e.customWorkingHours)==null||r.forEach(i=>{a.push(Mr.toSettingsPeriodWorkingDto(i))}),n.customWorkingHours=a,n}}class kp{constructor(){g(this,"id"),g(this,"name"),g(this,"quantity"),g(this,"availability"),g(this,"services"),g(this,"customWorkingHours")}}const zr="staff",Br="service",Ur="serviceResource",hn="contact",ur="event",Vr="serviceGroup",jr="staffGroup";var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ap(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dp(t){var e=t.default;if(typeof e=="function"){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var hl={exports:{}},ci={exports:{}},ml=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}},Np=ml,dr=Object.prototype.toString;function ui(t){return Array.isArray(t)}function di(t){return typeof t>"u"}function Op(t){return t!==null&&!di(t)&&t.constructor!==null&&!di(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function pl(t){return dr.call(t)==="[object ArrayBuffer]"}function Rp(t){return dr.call(t)==="[object FormData]"}function Lp(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&pl(t.buffer),e}function Mp(t){return typeof t=="string"}function Pp(t){return typeof t=="number"}function gl(t){return t!==null&&typeof t=="object"}function $n(t){if(dr.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Fp(t){return dr.call(t)==="[object Date]"}function zp(t){return dr.call(t)==="[object File]"}function Bp(t){return dr.call(t)==="[object Blob]"}function vl(t){return dr.call(t)==="[object Function]"}function Up(t){return gl(t)&&vl(t.pipe)}function Vp(t){return dr.call(t)==="[object URLSearchParams]"}function jp(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function qp(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function fi(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ui(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.call(null,t[a],a,t)}function hi(){var t={};function e(a,i){$n(t[i])&&$n(a)?t[i]=hi(t[i],a):$n(a)?t[i]=hi({},a):ui(a)?t[i]=a.slice():t[i]=a}for(var r=0,n=arguments.length;r<n;r++)fi(arguments[r],e);return t}function Hp(t,e,r){return fi(e,function(n,a){r&&typeof n=="function"?t[a]=Np(n,r):t[a]=n}),t}function $p(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var wt={isArray:ui,isArrayBuffer:pl,isBuffer:Op,isFormData:Rp,isArrayBufferView:Lp,isString:Mp,isNumber:Pp,isObject:gl,isPlainObject:$n,isUndefined:di,isDate:Fp,isFile:zp,isBlob:Bp,isFunction:vl,isStream:Up,isURLSearchParams:Vp,isStandardBrowserEnv:qp,forEach:fi,merge:hi,extend:Hp,trim:jp,stripBOM:$p},qr=wt;function yl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var bl=function(t,e,r){if(!e)return t;var n;if(r)n=r(e);else if(qr.isURLSearchParams(e))n=e.toString();else{var a=[];qr.forEach(e,function(o,s){o===null||typeof o>"u"||(qr.isArray(o)?s=s+"[]":o=[o],qr.forEach(o,function(l){qr.isDate(l)?l=l.toISOString():qr.isObject(l)&&(l=JSON.stringify(l)),a.push(yl(s)+"="+yl(l))}))}),n=a.join("&")}if(n){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t},Gp=wt;function Gn(){this.handlers=[]}Gn.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1},Gn.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},Gn.prototype.forEach=function(t){Gp.forEach(this.handlers,function(e){e!==null&&t(e)})};var Wp=Gn,Yp=wt,Zp=function(t,e){Yp.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})},El=function(t,e,r,n,a){return t.config=e,r&&(t.code=r),t.request=n,t.response=a,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,status:this.response&&this.response.status?this.response.status:null}},t},xl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mi,wl;function _l(){if(wl)return mi;wl=1;var t=El;return mi=function(e,r,n,a,i){var o=new Error(e);return t(o,r,n,a,i)},mi}var pi,Sl;function Kp(){if(Sl)return pi;Sl=1;var t=_l();return pi=function(e,r,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):r(t("Request failed with status code "+n.status,n.config,null,n.request,n))},pi}var gi,Il;function Jp(){if(Il)return gi;Il=1;var t=wt;return gi=t.isStandardBrowserEnv()?function(){return{write:function(e,r,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(r)),t.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),t.isString(a)&&s.push("path="+a),t.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),gi}var Cl,Tl;function Xp(){return Tl||(Tl=1,Cl=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),Cl}var kl,Al;function Qp(){return Al||(Al=1,kl=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),kl}var vi,Dl;function e1(){if(Dl)return vi;Dl=1;var t=Xp(),e=Qp();return vi=function(r,n){return r&&!t(n)?e(r,n):n},vi}var yi,Nl;function t1(){if(Nl)return yi;Nl=1;var t=wt,e=["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"];return yi=function(r){var n={},a,i,o;return r&&t.forEach(r.split(`
36
+ `),function(s){if(o=s.indexOf(":"),a=t.trim(s.substr(0,o)).toLowerCase(),i=t.trim(s.substr(o+1)),a){if(n[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([i]):n[a]=n[a]?n[a]+", "+i:i}}),n},yi}var bi,Ol;function r1(){if(Ol)return bi;Ol=1;var t=wt;return bi=t.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(i){var o=i;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{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(i){var o=t.isString(i)?a(i):i;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}(),bi}var Ei,Rl;function Wn(){if(Rl)return Ei;Rl=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Ei=t,Ei}var xi,Ll;function n1(){if(Ll)return xi;Ll=1;var t=wt,e=Kp(),r=Jp(),n=bl,a=e1(),i=t1(),o=r1(),s=_l(),l=xl,u=Wn();return xi=function(f){return new Promise(function(x,y){var w=f.data,S=f.headers,T=f.responseType,N;function C(){f.cancelToken&&f.cancelToken.unsubscribe(N),f.signal&&f.signal.removeEventListener("abort",N)}t.isFormData(w)&&delete S["Content-Type"];var E=new XMLHttpRequest;if(f.auth){var A=f.auth.username||"",I=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";S.Authorization="Basic "+btoa(A+":"+I)}var D=a(f.baseURL,f.url);E.open(f.method.toUpperCase(),n(D,f.params,f.paramsSerializer),!0),E.timeout=f.timeout;function P(){if(E){var Y="getAllResponseHeaders"in E?i(E.getAllResponseHeaders()):null,Q=!T||T==="text"||T==="json"?E.responseText:E.response,B={data:Q,status:E.status,statusText:E.statusText,headers:Y,config:f,request:E};e(function($){x($),C()},function($){y($),C()},B),E=null}}if("onloadend"in E?E.onloadend=P:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(P)},E.onabort=function(){!E||(y(s("Request aborted",f,"ECONNABORTED",E)),E=null)},E.onerror=function(){y(s("Network Error",f,null,E)),E=null},E.ontimeout=function(){var Y=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",Q=f.transitional||l;f.timeoutErrorMessage&&(Y=f.timeoutErrorMessage),y(s(Y,f,Q.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},t.isStandardBrowserEnv()){var z=(f.withCredentials||o(D))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;z&&(S[f.xsrfHeaderName]=z)}"setRequestHeader"in E&&t.forEach(S,function(Y,Q){typeof w>"u"&&Q.toLowerCase()==="content-type"?delete S[Q]:E.setRequestHeader(Q,Y)}),t.isUndefined(f.withCredentials)||(E.withCredentials=!!f.withCredentials),T&&T!=="json"&&(E.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&E.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(N=function(Y){!E||(y(!Y||Y&&Y.type?new u("canceled"):Y),E.abort(),E=null)},f.cancelToken&&f.cancelToken.subscribe(N),f.signal&&(f.signal.aborted?N():f.signal.addEventListener("abort",N))),w||(w=null),E.send(w)})},xi}var dt=wt,Ml=Zp,a1=El,i1=xl,o1={"Content-Type":"application/x-www-form-urlencoded"};function Pl(t,e){!dt.isUndefined(t)&&dt.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s1(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=n1()),t}function l1(t,e,r){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Yn={transitional:i1,adapter:s1(),transformRequest:[function(t,e){return Ml(e,"Accept"),Ml(e,"Content-Type"),dt.isFormData(t)||dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)?t:dt.isArrayBufferView(t)?t.buffer:dt.isURLSearchParams(t)?(Pl(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):dt.isObject(t)||e&&e["Content-Type"]==="application/json"?(Pl(e,"application/json"),l1(t)):t}],transformResponse:[function(t){var e=this.transitional||Yn.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,a=!r&&this.responseType==="json";if(a||n&&dt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?a1(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};dt.forEach(["delete","get","head"],function(t){Yn.headers[t]={}}),dt.forEach(["post","put","patch"],function(t){Yn.headers[t]=dt.merge(o1)});var wi=Yn,c1=wt,u1=wi,d1=function(t,e,r){var n=this||u1;return c1.forEach(r,function(a){t=a.call(n,t,e)}),t},Fl,zl;function Bl(){return zl||(zl=1,Fl=function(t){return!!(t&&t.__CANCEL__)}),Fl}var Ul=wt,_i=d1,f1=Bl(),h1=wi,m1=Wn();function Si(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new m1("canceled")}var p1=function(t){Si(t),t.headers=t.headers||{},t.data=_i.call(t,t.data,t.headers,t.transformRequest),t.headers=Ul.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ul.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var e=t.adapter||h1.adapter;return e(t).then(function(r){return Si(t),r.data=_i.call(t,r.data,r.headers,t.transformResponse),r},function(r){return f1(r)||(Si(t),r&&r.response&&(r.response.data=_i.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},It=wt,Vl=function(t,e){e=e||{};var r={};function n(u,f){return It.isPlainObject(u)&&It.isPlainObject(f)?It.merge(u,f):It.isPlainObject(f)?It.merge({},f):It.isArray(f)?f.slice():f}function a(u){if(It.isUndefined(e[u])){if(!It.isUndefined(t[u]))return n(void 0,t[u])}else return n(t[u],e[u])}function i(u){if(!It.isUndefined(e[u]))return n(void 0,e[u])}function o(u){if(It.isUndefined(e[u])){if(!It.isUndefined(t[u]))return n(void 0,t[u])}else return n(void 0,e[u])}function s(u){if(u in e)return n(t[u],e[u]);if(u in t)return n(void 0,t[u])}var l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return It.forEach(Object.keys(t).concat(Object.keys(e)),function(u){var f=l[u]||a,x=f(u);It.isUndefined(x)&&f!==s||(r[u]=x)}),r},jl,ql;function Hl(){return ql||(ql=1,jl={version:"0.26.1"}),jl}var g1=Hl().version,Ii={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Ii[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});var $l={};Ii.transitional=function(t,e,r){function n(a,i){return"[Axios v"+g1+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return function(a,i,o){if(t===!1)throw new Error(n(i," has been removed"+(e?" in "+e:"")));return e&&!$l[i]&&($l[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(a,i,o):!0}};function v1(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),a=n.length;a-- >0;){var i=n[a],o=e[i];if(o){var s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var y1={assertOptions:v1,validators:Ii},Gl=wt,b1=bl,Wl=Wp,Yl=p1,Zn=Vl,Zl=y1,Hr=Zl.validators;function mn(t){this.defaults=t,this.interceptors={request:new Wl,response:new Wl}}mn.prototype.request=function(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Zn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Zl.assertOptions(r,{silentJSONParsing:Hr.transitional(Hr.boolean),forcedJSONParsing:Hr.transitional(Hr.boolean),clarifyTimeoutError:Hr.transitional(Hr.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(e)===!1||(a=a&&x.synchronous,n.unshift(x.fulfilled,x.rejected))});var i=[];this.interceptors.response.forEach(function(x){i.push(x.fulfilled,x.rejected)});var o;if(!a){var s=[Yl,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(i),o=Promise.resolve(e);s.length;)o=o.then(s.shift(),s.shift());return o}for(var l=e;n.length;){var u=n.shift(),f=n.shift();try{l=u(l)}catch(x){f(x);break}}try{o=Yl(l)}catch(x){return Promise.reject(x)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},mn.prototype.getUri=function(t){return t=Zn(this.defaults,t),b1(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Gl.forEach(["delete","get","head","options"],function(t){mn.prototype[t]=function(e,r){return this.request(Zn(r||{},{method:t,url:e,data:(r||{}).data}))}}),Gl.forEach(["post","put","patch"],function(t){mn.prototype[t]=function(e,r,n){return this.request(Zn(n||{},{method:t,url:e,data:r}))}});var E1=mn,Ci,Kl;function x1(){if(Kl)return Ci;Kl=1;var t=Wn();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(i){n=i});var a=this;this.promise.then(function(i){if(a._listeners){var o,s=a._listeners.length;for(o=0;o<s;o++)a._listeners[o](i);a._listeners=null}}),this.promise.then=function(i){var o,s=new Promise(function(l){a.subscribe(l),o=l}).then(i);return s.cancel=function(){a.unsubscribe(o)},s},r(function(i){a.reason||(a.reason=new t(i),n(a.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},e.prototype.unsubscribe=function(r){if(this._listeners){var n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}},e.source=function(){var r,n=new e(function(a){r=a});return{token:n,cancel:r}},Ci=e,Ci}var Jl,Xl;function w1(){return Xl||(Xl=1,Jl=function(t){return function(e){return t.apply(null,e)}}),Jl}var Ti,Ql;function _1(){if(Ql)return Ti;Ql=1;var t=wt;return Ti=function(e){return t.isObject(e)&&e.isAxiosError===!0},Ti}var ec=wt,S1=ml,Kn=E1,I1=Vl,C1=wi;function tc(t){var e=new Kn(t),r=S1(Kn.prototype.request,e);return ec.extend(r,Kn.prototype,e),ec.extend(r,e),r.create=function(n){return tc(I1(t,n))},r}var qt=tc(C1);qt.Axios=Kn,qt.Cancel=Wn(),qt.CancelToken=x1(),qt.isCancel=Bl(),qt.VERSION=Hl().version,qt.all=function(t){return Promise.all(t)},qt.spread=w1(),qt.isAxiosError=_1(),ci.exports=qt,ci.exports.default=qt,function(t){t.exports=ci.exports}(hl);const rc=Ap(hl.exports);class T1{constructor(){g(this,"printQueue"),this.printQueue=[]}makeUrl(e,r){return e&&(r&&(e=this.combineURLs(r,e)),this.printQueue.push(e)),this}makeParams(e){return e&&this.printQueue.push(JSON.stringify(e)),this}makeMethod(e){return e&&this.printQueue.push(e.toUpperCase()),this}makeData(e){const r=typeof e=="string"?e:JSON.stringify(e);return e&&this.printQueue.push(r),this}makeStatus(e,r){return e&&r?this.printQueue.push(`${e}:${r}`):e?this.printQueue.push(`${e}`):r&&this.printQueue.push(r),this}build(){return this.printQueue.join(" ")}combineURLs(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}}class xr{constructor(e,r,n){g(this,"authenticationService"),g(this,"logger"),g(this,"bearerCall",!1),g(this,"instance"),g(this,"axiosLoggerBuilder"),g(this,"baseUrl"),g(this,"_initializeResponseInterceptor",()=>{this.instance.interceptors.response.use(this._handleResponse,this._handleRefreshToken)}),g(this,"_handleResponse",a=>{var i,o,s,l,u;if(this.logger){const f=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus(a.status,a.statusText).makeData(this.filteredDataLog((u=a.config)==null?void 0:u.data)).makeData(this.filteredDataLog(a.data)).build();this.logger.debug("js-calendar-api",f)}return a.data}),g(this,"_handleError",a=>{var i,o,s,l,u,f,x,y,w,S;if(this.logger){const T=this.axiosLoggerBuilder.makeMethod((i=a.config)==null?void 0:i.method).makeUrl((o=a.config)==null?void 0:o.url,(s=a.config)==null?void 0:s.baseURL).makeParams((l=a.config)==null?void 0:l.params).makeStatus((u=a.response)==null?void 0:u.status,(f=a.response)==null?void 0:f.statusText).makeData((x=a.config)==null?void 0:x.data).makeData((y=a.response)==null?void 0:y.data).build();this.logger.error("js-calendar-api",T)}if(rc.isAxiosError(a)&&((S=(w=a.response)==null?void 0:w.data)==null?void 0:S.error)){const T=Object.assign(new si,a.response.data.error);return Promise.reject(T)}else return Promise.reject(a)}),g(this,"_handleRefreshToken",async a=>{if(!this.bearerCall&&a.response){const i=a.config;if(a.response.status===401||a.response.status===400&&a.response.data&&a.response.data.error&&a.response.data.error.message&&a.response.data.error.message.indexOf("Required parameter apiKey not found")>-1)if(i._retry)this.authenticationService.logout().finally(()=>window.location.href="/");else{i._retry=!0;try{return await this.authenticationService.refreshToken(),this.instance(i)}catch{this.authenticationService.logout().finally(()=>window.location.href="/")}}}return this._handleError(a)}),this.authenticationService=r,this.logger=n,this.baseUrl=e,this.instance=rc.create({baseURL:e}),this.axiosLoggerBuilder=new T1,this._initializeResponseInterceptor()}filteredDataLog(e){return e}getAxiosConfig(e){var r={};return e?(this.bearerCall=!0,r={headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},params:{}}):(this.bearerCall=!1,r={headers:{"Content-Type":"application/json"},params:{},withCredentials:!0}),r}}var Me={};/*! *****************************************************************************
37
37
  Copyright (C) Microsoft. All rights reserved.
38
38
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
39
39
  this file except in compliance with the License. You may obtain a copy of the
@@ -46,7 +46,7 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placehold
46
46
 
47
47
  See the Apache Version 2.0 License for specific language governing permissions
48
48
  and limitations under the License.
49
- ***************************************************************************** */var rc;(function(t){(function(e){var r=typeof Ae=="object"?Ae:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=a(t);typeof r.Reflect>"u"?r.Reflect=t:n=a(r.Reflect,n),e(n);function a(i,o){return function(s,l){typeof i[s]!="function"&&Object.defineProperty(i,s,{configurable:!0,writable:!0,value:l}),o&&o(s,l)}}})(function(e){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",a=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,l=!o&&!s,u={create:o?function(){return m(Object.create(null))}:s?function(){return m({__proto__:null})}:function(){return m({})},has:l?function(h,p){return r.call(h,p)}:function(h,p){return p in h},get:l?function(h,p){return r.call(h,p)?h[p]:void 0}:function(h,p){return h[p]}},f=Object.getPrototypeOf(Function),w=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!w&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:c(),x=!w&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:v(),S=!w&&typeof WeakMap=="function"?WeakMap:d(),T=new S;function N(h,p,k,R){if(F(k)){if(!Ie(h))throw new TypeError;if(!ae(p))throw new TypeError;return B(h,p)}else{if(!Ie(h))throw new TypeError;if(!K(p))throw new TypeError;if(!K(R)&&!F(R)&&!ee(R))throw new TypeError;return ee(R)&&(R=void 0),k=Be(k),$(h,p,k,R)}}e("decorate",N);function C(h,p){function k(R,U){if(!K(R))throw new TypeError;if(!F(U)&&!_(U))throw new TypeError;V(h,p,R,U)}return k}e("metadata",C);function E(h,p,k,R){if(!K(k))throw new TypeError;return F(R)||(R=Be(R)),V(h,p,k,R)}e("defineMetadata",E);function A(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),L(h,p,k)}e("hasMetadata",A);function I(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),j(h,p,k)}e("hasOwnMetadata",I);function D(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),W(h,p,k)}e("getMetadata",D);function P(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),q(h,p,k)}e("getOwnMetadata",P);function z(h,p){if(!K(h))throw new TypeError;return F(p)||(p=Be(p)),Z(h,p)}e("getMetadataKeys",z);function Y(h,p){if(!K(h))throw new TypeError;return F(p)||(p=Be(p)),se(h,p)}e("getOwnMetadataKeys",Y);function Q(h,p,k){if(!K(p))throw new TypeError;F(k)||(k=Be(k));var R=re(p,k,!1);if(F(R)||!R.delete(h))return!1;if(R.size>0)return!0;var U=T.get(p);return U.delete(k),U.size>0||T.delete(p),!0}e("deleteMetadata",Q);function B(h,p){for(var k=h.length-1;k>=0;--k){var R=h[k],U=R(p);if(!F(U)&&!ee(U)){if(!ae(U))throw new TypeError;p=U}}return p}function $(h,p,k,R){for(var U=h.length-1;U>=0;--U){var H=h[U],J=H(p,k,R);if(!F(J)&&!ee(J)){if(!K(J))throw new TypeError;R=J}}return R}function re(h,p,k){var R=T.get(h);if(F(R)){if(!k)return;R=new y,T.set(h,R)}var U=R.get(p);if(F(U)){if(!k)return;U=new y,R.set(p,U)}return U}function L(h,p,k){var R=j(h,p,k);if(R)return!0;var U=M(p);return ee(U)?!1:L(h,U,k)}function j(h,p,k){var R=re(p,k,!1);return F(R)?!1:Oe(R.has(h))}function W(h,p,k){var R=j(h,p,k);if(R)return q(h,p,k);var U=M(p);if(!ee(U))return W(h,U,k)}function q(h,p,k){var R=re(p,k,!1);if(!F(R))return R.get(h)}function V(h,p,k,R){var U=re(k,R,!0);U.set(h,p)}function Z(h,p){var k=se(h,p),R=M(h);if(R===null)return k;var U=Z(R,p);if(U.length<=0)return k;if(k.length<=0)return U;for(var H=new x,J=[],X=0,oe=k;X<oe.length;X++){var fe=oe[X],pe=H.has(fe);pe||(H.add(fe),J.push(fe))}for(var ve=0,Se=U;ve<Se.length;ve++){var fe=Se[ve],pe=H.has(fe);pe||(H.add(fe),J.push(fe))}return J}function se(h,p){var k=[],R=re(h,p,!1);if(F(R))return k;for(var U=R.keys(),H=O(U),J=0;;){var X=le(H);if(!X)return k.length=J,k;var oe=te(X);try{k[J]=oe}catch(fe){try{de(H)}finally{throw fe}}J++}}function ie(h){if(h===null)return 1;switch(typeof h){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return h===null?1:6;default:return 6}}function F(h){return h===void 0}function ee(h){return h===null}function ne(h){return typeof h=="symbol"}function K(h){return typeof h=="object"?h!==null:typeof h=="function"}function xe(h,p){switch(ie(h)){case 0:return h;case 1:return h;case 2:return h;case 3:return h;case 4:return h;case 5:return h}var k=p===3?"string":p===5?"number":"default",R=b(h,a);if(R!==void 0){var U=R.call(h,k);if(K(U))throw new TypeError;return U}return _e(h,k==="default"?"number":k)}function _e(h,p){if(p==="string"){var k=h.toString;if(G(k)){var R=k.call(h);if(!K(R))return R}var U=h.valueOf;if(G(U)){var R=U.call(h);if(!K(R))return R}}else{var U=h.valueOf;if(G(U)){var R=U.call(h);if(!K(R))return R}var H=h.toString;if(G(H)){var R=H.call(h);if(!K(R))return R}}throw new TypeError}function Oe(h){return!!h}function ye(h){return""+h}function Be(h){var p=xe(h,3);return ne(p)?p:ye(p)}function Ie(h){return Array.isArray?Array.isArray(h):h instanceof Object?h instanceof Array:Object.prototype.toString.call(h)==="[object Array]"}function G(h){return typeof h=="function"}function ae(h){return typeof h=="function"}function _(h){switch(ie(h)){case 3:return!0;case 4:return!0;default:return!1}}function b(h,p){var k=h[p];if(k!=null){if(!G(k))throw new TypeError;return k}}function O(h){var p=b(h,i);if(!G(p))throw new TypeError;var k=p.call(h);if(!K(k))throw new TypeError;return k}function te(h){return h.value}function le(h){var p=h.next();return p.done?!1:p}function de(h){var p=h.return;p&&p.call(h)}function M(h){var p=Object.getPrototypeOf(h);if(typeof h!="function"||h===f||p!==f)return p;var k=h.prototype,R=k&&Object.getPrototypeOf(k);if(R==null||R===Object.prototype)return p;var U=R.constructor;return typeof U!="function"||U===h?p:U}function c(){var h={},p=[],k=function(){function J(X,oe,fe){this._index=0,this._keys=X,this._values=oe,this._selector=fe}return J.prototype["@@iterator"]=function(){return this},J.prototype[i]=function(){return this},J.prototype.next=function(){var X=this._index;if(X>=0&&X<this._keys.length){var oe=this._selector(this._keys[X],this._values[X]);return X+1>=this._keys.length?(this._index=-1,this._keys=p,this._values=p):this._index++,{value:oe,done:!1}}return{value:void 0,done:!0}},J.prototype.throw=function(X){throw this._index>=0&&(this._index=-1,this._keys=p,this._values=p),X},J.prototype.return=function(X){return this._index>=0&&(this._index=-1,this._keys=p,this._values=p),{value:X,done:!0}},J}();return function(){function J(){this._keys=[],this._values=[],this._cacheKey=h,this._cacheIndex=-2}return Object.defineProperty(J.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),J.prototype.has=function(X){return this._find(X,!1)>=0},J.prototype.get=function(X){var oe=this._find(X,!1);return oe>=0?this._values[oe]:void 0},J.prototype.set=function(X,oe){var fe=this._find(X,!0);return this._values[fe]=oe,this},J.prototype.delete=function(X){var oe=this._find(X,!1);if(oe>=0){for(var fe=this._keys.length,pe=oe+1;pe<fe;pe++)this._keys[pe-1]=this._keys[pe],this._values[pe-1]=this._values[pe];return this._keys.length--,this._values.length--,X===this._cacheKey&&(this._cacheKey=h,this._cacheIndex=-2),!0}return!1},J.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=h,this._cacheIndex=-2},J.prototype.keys=function(){return new k(this._keys,this._values,R)},J.prototype.values=function(){return new k(this._keys,this._values,U)},J.prototype.entries=function(){return new k(this._keys,this._values,H)},J.prototype["@@iterator"]=function(){return this.entries()},J.prototype[i]=function(){return this.entries()},J.prototype._find=function(X,oe){return this._cacheKey!==X&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=X)),this._cacheIndex<0&&oe&&(this._cacheIndex=this._keys.length,this._keys.push(X),this._values.push(void 0)),this._cacheIndex},J}();function R(J,X){return J}function U(J,X){return X}function H(J,X){return[J,X]}}function v(){return function(){function h(){this._map=new y}return Object.defineProperty(h.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),h.prototype.has=function(p){return this._map.has(p)},h.prototype.add=function(p){return this._map.set(p,p),this},h.prototype.delete=function(p){return this._map.delete(p)},h.prototype.clear=function(){this._map.clear()},h.prototype.keys=function(){return this._map.keys()},h.prototype.values=function(){return this._map.values()},h.prototype.entries=function(){return this._map.entries()},h.prototype["@@iterator"]=function(){return this.keys()},h.prototype[i]=function(){return this.keys()},h}()}function d(){var h=16,p=u.create(),k=R();return function(){function oe(){this._key=R()}return oe.prototype.has=function(fe){var pe=U(fe,!1);return pe!==void 0?u.has(pe,this._key):!1},oe.prototype.get=function(fe){var pe=U(fe,!1);return pe!==void 0?u.get(pe,this._key):void 0},oe.prototype.set=function(fe,pe){var ve=U(fe,!0);return ve[this._key]=pe,this},oe.prototype.delete=function(fe){var pe=U(fe,!1);return pe!==void 0?delete pe[this._key]:!1},oe.prototype.clear=function(){this._key=R()},oe}();function R(){var oe;do oe="@@WeakMap@@"+X();while(u.has(p,oe));return p[oe]=!0,oe}function U(oe,fe){if(!r.call(oe,k)){if(!fe)return;Object.defineProperty(oe,k,{value:u.create()})}return oe[k]}function H(oe,fe){for(var pe=0;pe<fe;++pe)oe[pe]=Math.random()*255|0;return oe}function J(oe){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(oe)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(oe)):H(new Uint8Array(oe),oe):H(new Array(oe),oe)}function X(){var oe=J(h);oe[6]=oe[6]&79|64,oe[8]=oe[8]&191|128;for(var fe="",pe=0;pe<h;++pe){var ve=oe[pe];(pe===4||pe===6||pe===8)&&(fe+="-"),ve<16&&(fe+="0"),fe+=ve.toString(16).toLowerCase()}return fe}}function m(h){return h.__=void 0,delete h.__,h}})})(rc||(rc={}));var mn={};Object.defineProperty(mn,"__esModule",{value:!0}),mn.Channel=void 0;var T1=function(){function t(){this.subscriptions=new Map}return t.prototype.publish=function(e,r){var n=this,a=this.subscriptions.get(e);a&&a.forEach(function(i){i(r,e,n,i)})},t.prototype.subscribe=function(e,r){var n=this.subscriptions.get(e);n||(n=[],this.subscriptions.set(e,n)),n.push(r)},t.prototype.unsubscribe=function(e,r){var n=this.subscriptions.get(e);n&&(n=n.filter(function(a){return a!==r}),n.length?this.subscriptions.set(e,n):this.subscriptions.delete(e))},t.prototype.unsubscribeAll=function(){this.subscriptions.clear()},t}();mn.Channel=T1;var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.PubSub=void 0;var k1=mn;pn.PubSub=new k1.Channel;var Kn={},fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.SUBSCRIPTIONS_METADATA_KEY=fr.CHANNEL_METADATA_KEY=void 0,fr.CHANNEL_METADATA_KEY=Symbol("pubsub:channel"),fr.SUBSCRIPTIONS_METADATA_KEY=Symbol("pubsub:subscriptions"),Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.Subscribe=void 0;var nc=fr;function A1(t){return function(e,r,n){var a=Reflect.getMetadata(nc.SUBSCRIPTIONS_METADATA_KEY,e)||new Set;a.add({message:t,handler:n.value}),Reflect.defineMetadata(nc.SUBSCRIPTIONS_METADATA_KEY,a,e)}}Kn.Subscribe=A1;var Jn={},D1=Ae&&Ae.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.Subscriber=void 0;var Ti=fr,N1=pn;function O1(t){var e=(t==null?void 0:t.channel)||N1.PubSub;return function(r){Reflect.defineMetadata(Ti.CHANNEL_METADATA_KEY,e,r.prototype);var n=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=r,s=new(o.bind.apply(o,D1([void 0],a))),l=Reflect.getMetadata(Ti.SUBSCRIPTIONS_METADATA_KEY,r.prototype);if(l){var u=[];Reflect.defineMetadata(Ti.SUBSCRIPTIONS_METADATA_KEY,u,s),l.forEach(function(f){var w=f.handler.bind(s);u.push({message:f.message,handler:w}),e.subscribe(f.message,w)})}return s};return n.prototype=r.prototype,t!=null&&t.createInstance&&new n(t.constructorParameters),n}}Jn.Subscriber=O1;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.Unsubscribe=void 0;var ac=fr;function R1(){return function(t,e,r){var n=r.value;return r.value=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=Reflect.getMetadata(ac.CHANNEL_METADATA_KEY,t),s=Reflect.getMetadata(ac.SUBSCRIPTIONS_METADATA_KEY,this);return o&&s&&s.forEach(function(l){o.unsubscribe(l.message,l.handler)}),n(a)},r}}Xn.Unsubscribe=R1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Unsubscribe=t.Subscriber=t.Subscribe=t.PubSub=t.Channel=void 0;var e=mn;Object.defineProperty(t,"Channel",{enumerable:!0,get:function(){return e.Channel}});var r=pn;Object.defineProperty(t,"PubSub",{enumerable:!0,get:function(){return r.PubSub}});var n=Kn;Object.defineProperty(t,"Subscribe",{enumerable:!0,get:function(){return n.Subscribe}});var a=Jn;Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return a.Subscriber}});var i=Xn;Object.defineProperty(t,"Unsubscribe",{enumerable:!0,get:function(){return i.Unsubscribe}})}(Me);const _t=new Me.Channel;class L1 extends Er{async getAllStaffs(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createStaff(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateStaff(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async patchAllStaff(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`;const o=this.instance.patch(i,a,this.getAxiosConfig(e));if(o!==null)try{await o;return}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class ic{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllStaffs(e){return(await this.indexedDb.getAllValue(Fr)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async getById(e,r){var n;const a=await this.indexedDb.getValue(Fr,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async saveAllStaffs(e){await this.indexedDb.putBulkValue(Fr,e)}async deleteById(e,r){await this.indexedDb.deleteValue(Fr,r)}async deleteByStaffIds(e){await this.indexedDb.deleteValues(Fr,e)}async drop(){await this.indexedDb.deleteAllValues(Fr)}updateServiceSkills(e,r,n){this.getAllStaffs(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.servicesSkill)==null?void 0:s.includes(r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.servicesSkill)==null?void 0:s.findIndex(w=>w===r);f!=null&&(n?(l=o.servicesSkill)==null||l.splice(f,1,n):(u=o.servicesSkill)==null||u.splice(f,1))}),await this.saveAllStaffs(i))})}}var M1=Object.defineProperty,P1=Object.getOwnPropertyDescriptor,ki=(t,e,r,n)=>{for(var a=n>1?void 0:n?P1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&M1(e,r,a),a};const gn=new Me.Channel;let Qn=class extends lr{constructor(t,e,r,n){super("staff",n),g(this,"staffDb"),g(this,"staffService"),this.staffDb=new ic(e),this.staffService=new L1(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllStaffs(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getStaff(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,staffId:n})}async createStaff(t,e,r,n){const a=await this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return gn.publish(Je.CREATE,{account:e,companyId:r,staff:a}),a}async updateStaff(t,e,r,n,a){const i=await this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,staffId:n},a);return gn.publish(Je.UPDATE,{account:e,companyId:r,staffId:n,staff:i}),i}async patchAllStaff(t,e,r,n,a){let i=new Yt;return n&&(i.workingHours=n),a&&(i.vacations=a),await this.staffService.patchAllStaff(t,e,r,i),this.getAllStaffs(t,e,r,Le.REMOTE_THEN_LOCAL)}async deleteStaff(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,staffId:n}),gn.publish(Je.DELETE,{account:e,companyId:r,staffId:n})}async remoteList(t,e){return(await this.staffService.getAllStaffs(t,e.account,e.companyId)).map(r=>Yt.fromStaffDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.staffService.getById(t,e.account,e.companyId,e.staffId);return Yt.fromStaffDto(r)}async remoteCreate(t,e,r){const n=Yt.toStaffDto(r),a=await this.staffService.createStaff(t,e.account,e.companyId,n);return Yt.fromStaffDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=Yt.toStaffDto(r),a=await this.staffService.updateStaff(t,e.account,e.companyId,e.staffId,n);return Yt.fromStaffDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.staffService.delete(t,e.account,e.companyId,e.staffId)}async localList(t){return this.staffDb.getAllStaffs(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffDb.getById(t.companyId,t.staffId)}async localBulkSave(t,e){await this.staffDb.saveAllStaffs(e)}async localDelete(t){this.checkNullable(t),await this.staffDb.deleteById(t.companyId,t.staffId)}async localBulkDelete(t){await this.staffDb.deleteByStaffIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffId)throw Error("Invalid state:"+JSON.stringify(t))}};ki([Me.Unsubscribe()],Qn.prototype,"dispose",1),ki([Me.Subscribe(Je.DELETE)],Qn.prototype,"onCascadeDelete",1),Qn=ki([Me.Subscriber({channel:_t})],Qn);class F1 extends Er{async getAllServices(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/services?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createService(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateService(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class oc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServiceGroups(e){return(await this.indexedDb.getAllValue(Ur)||[]).filter(r=>r.companyId===e)}async saveAllServiceGroups(e){await this.indexedDb.putBulkValue(Ur,e)}async getById(e,r){const n=await this.indexedDb.getValue(Ur,r);if((n==null?void 0:n.companyId)===e)return n;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Ur,r),new ic(this.indexedDb).updateServiceSkills(e,r,void 0)}async deleteByServiceGroupIds(e){await this.indexedDb.deleteValues(Ur,e)}async drop(){await this.indexedDb.deleteAllValues(Ur)}updateServices(e,r,n){this.getAllServiceGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.members)==null?void 0:s.findIndex(w=>w.id===r);f!=null&&(n?(l=o.members)==null||l.splice(f,1,n):(u=o.members)==null||u.splice(f,1))}),await this.saveAllServiceGroups(i))})}}class sc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServices(e){return(await this.indexedDb.getAllValue(zr)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async saveAllServices(e){await this.indexedDb.putBulkValue(zr,e)}async getById(e,r){var n;const a=await this.indexedDb.getValue(zr,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(zr,r),new oc(this.indexedDb).updateServices(e,r,void 0)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(zr,e)}async drop(){await this.indexedDb.deleteAllValues(zr)}updateStaffSkills(e,r,n){this.getAllServices(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.staffsSkill)==null?void 0:s.includes(r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.staffsSkill)==null?void 0:s.findIndex(w=>w===r);f!=null&&(n?(l=o.staffsSkill)==null||l.splice(f,1,n):(u=o.staffsSkill)==null||u.splice(f,1))}),await this.saveAllServices(i))})}}var z1=Object.defineProperty,B1=Object.getOwnPropertyDescriptor,Ai=(t,e,r,n)=>{for(var a=n>1?void 0:n?B1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&z1(e,r,a),a};const vn=new Me.Channel;let ea=class extends lr{constructor(t,e,r,n){super("service",n),g(this,"serviceDb"),g(this,"serviceService"),this.serviceDb=new sc(e),this.serviceService=new F1(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServices(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getService(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceId:n})}async createService(t,e,r,n){const a=await super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return vn.publish(Je.CREATE,{account:e,companyId:r,service:a}),a}async updateService(t,e,r,n,a){const i=await super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceId:n},a);return vn.publish(Je.UPDATE,{account:e,companyId:r,serviceId:n,service:i}),i}async deleteService(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,serviceId:n}),vn.publish(Je.DELETE,{account:e,companyId:r,serviceId:n})}async remoteList(t,e){return(await this.serviceService.getAllServices(t,e.account,e.companyId)).map(r=>ar.fromServiceDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceService.getById(t,e.account,e.companyId,e.serviceId);return ar.fromServiceDto(r)}async remoteCreate(t,e,r){const n=ar.toServiceDto(r),a=await this.serviceService.createService(t,e.account,e.companyId,n);return ar.fromServiceDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=ar.toServiceDto(r),a=await this.serviceService.updateService(t,e.account,e.companyId,e.serviceId,n);return ar.fromServiceDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceService.delete(t,e.account,e.companyId,e.serviceId)}async localList(t){return this.serviceDb.getAllServices(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceDb.getById(t.companyId,t.serviceId)}async localBulkSave(t,e){await this.serviceDb.saveAllServices(e)}async localDelete(t){this.checkNullable(t),await this.serviceDb.deleteById(t.companyId,t.serviceId)}async localBulkDelete(t){await this.serviceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceId)throw Error("Invalid state:"+JSON.stringify(t))}};Ai([Me.Unsubscribe()],ea.prototype,"dispose",1),Ai([Me.Subscribe(Je.DELETE)],ea.prototype,"onCascadeDelete",1),ea=Ai([Me.Subscriber({channel:_t})],ea);class U1 extends Er{async searchContacts(e,r,n,a=100,i=!0){let o="/api/2.3/clients",s=this.getAxiosConfig(e);s.params.q=r,s.params.maxResult=a,n&&(s.params.account=n);const l=this.instance.get(o,s);if(l!==null)try{const u=await l;return i?u.items:u}catch(u){throw u}else throw new Ne(ke.INTERNAL_ERROR)}async advancedSearchContacts(e,r,n,a=100,i=!0){let o="/api/2.3/clients/search",s=this.getAxiosConfig(e);s.params.maxResult=a,n&&(s.params.account=n);const l=this.instance.post(o,r,s);if(l!==null)try{const u=await l;return i?u.items:u}catch(u){throw u}else throw new Ne(ke.INTERNAL_ERROR)}async createContact(e,r,n){const a=this.instance.post(`/api/2.0/clients?account=${encodeURIComponent(r)}`,n,this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async updateContact(e,r,n,a){const i=this.instance.put(`/api/2.0/clients/${n}?account=${encodeURIComponent(r)}`,a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n){let a=`/api/2.3/clients/${n}?account=${encodeURIComponent(r)}`;const i=this.instance.get(a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async deleteBy(e,r,n){let a=`/api/2.0/clients/${n}?account=${encodeURIComponent(r)}`;const i=this.instance.delete(a,this.getAxiosConfig(e));if(i!==null)try{await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class V1{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllContacts(){return this.indexedDb.getAllValue(fn)}async saveAllContacts(e){await this.indexedDb.putBulkValue(fn,e)}async getById(e){return this.indexedDb.getValue(fn,e)}async deleteById(e){await this.indexedDb.deleteValue(fn,e)}async drop(){this.indexedDb.deleteAllValues(fn)}}function q1(t){t||(t=[]),H1(t);let e="",r="";for(const n of t)e+=r+n,r=",";return e}function j1(){const t=[];return t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.STAFF),t.push(Xe.SERVICE),t.push(Xe.STATUS),t.push(Xe.COMPANY),t.push(Xe.OWNER),t.push(Xe.CLIENT),t.push(Xe.ONLINE_MEETING),t.push(Xe.FORM),t.push(Xe.PRICE),t.push(Xe.SOURCE),t.push(Xe.SUMMARY),t.push(Xe.NOTES),t.push(Xe.PREPARATION_DURATION),t.push(Xe.BUFFER_DURATION),t}function H1(t){t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.SOURCE)}var Xe=(t=>(t.ID="id",t.START="start",t.END="end",t.OWNER="owner",t.NOTES="notes",t.CREATED="created",t.STAFF="staff",t.HISTORY="history",t.SOURCE="source",t.REFERENCE="reference",t.SERVICE="service",t.ENCRYPTED_ID="encryptedId",t.PAID="paid",t.CLIENT="client",t.COMPANY="company",t.STATUS="status",t.SUMMARY="summary",t.RESOURCE="resource",t.SERVICE_RESOURCE="service-resource",t.PARENT="parent",t.RESCHEDULE_LINK="rescheduleLink",t.ONLINE_MEETING="onlineMeeting",t.PRICE="price",t.FORM="form",t.PREPARATION_DURATION="preparationDuration",t.BUFFER_DURATION="bufferDuration",t))(Xe||{});class $1 extends Er{async createEvent(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/appointments?account=${encodeURIComponent(r)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.post(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async updateEvent(e,r,n,a,i=!1){let o=`/api/2.1/scheduling/companies/${n}/appointments/${a.id}?account=${encodeURIComponent(r)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.put(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async updateEventStatus(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/appointments/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,{status:i},this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async getExternalAppointments(e,r,n,a,i){let o=this.getAxiosConfig(e);o.params.userIds=r,o.params.start=n,o.params.end=a,o.params.timeZone=i;const s=this.instance.get("/api/2.1/scheduling/externalAppointments",o);if(s!==null)try{return(await s).items}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async getICS(e,r){let n=this.getAxiosConfig(e),a=r;if(r.indexOf("calendar.google.com/calendar")>0){const o=r.indexOf("://"),s=o>0?r.substring(o+3):r;a="/api/2.3/forward/https//"+s}const i=this.instance.get(a,n);if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async getAllEvents(e,r,n,a,i,o,s){let l=this.getAxiosConfig(e);l.params.userIds=r,l.params.start=n,l.params.end=a,l.params.levelDetail="full",i&&(l.params.personalAppointments=!0),l.params.showDeleted=o,s&&s.length>0?l.params.fields=q1(s):l.params.fields=j1().map(f=>`${f}`).join(",");const u=this.instance.get("/api/2.1/scheduling/appointments",l);if(u!==null)try{return(await u).items}catch(f){throw f}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n){let a=this.getAxiosConfig(e);a.params.levelDetail="full",n&&(a.params.personalAppointments=!0);let i=`/api/2.1/scheduling/appointments/${r}`;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async _prepareFormFields(e){var r;if(e){const n=e.filter(a=>a.inputType!=="file"||a.inputType==="file"&&a.value!==void 0);try{n.forEach(a=>{var i;a.values&&(a.values=(i=a.values)==null?void 0:i.filter(o=>typeof a.value=="string"&&a.value===o.value||Array.isArray(a.value)&&a.value.indexOf(o.value)!==-1),Array.isArray(a.value)&&(a.value=void 0))});for(const a of n.filter(i=>i.inputType==="rating"&&i.value!==void 0&&i.value!==""))a.values=[{id:a.value,value:a.value,name:a.value}];for(const a of n.filter(i=>i.inputType==="file"))a.fileName=a.value.name,a.value=await Km(a.value)}catch(a){(r=this.logger)==null||r.error("js-calendar-api","Error while prepared form fields",a)}return n}}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class G1{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(ur,e)}async saveEvent(e){await this.indexedDb.putValue(ur,e)}async deleteEvent(e){await this.indexedDb.deleteValue(ur,e)}async deleteByEventIds(e){await this.indexedDb.deleteValues(ur,e)}async getAllEvents(e,r,n){return(await this.indexedDb.getAllValue(ur)||[]).filter(a=>{var i,o,s;const l=e===void 0||e.includes(((i=a.staff)==null?void 0:i.userId)||"")||((o=a.staff)==null?void 0:o.userId)==="0"&&e.includes(a.staff.id);return((s=a.staff)==null?void 0:s.userId)!==void 0&&l&&(r===void 0||a.start.getTime()>=r.getTime())&&(n===void 0||a.end.getTime()<=n.getTime())})}async getFirstEventByChildEventId(e){const r=(await this.indexedDb.getAllValue(ur)||[]).filter(n=>{var a;return(a=n.events)==null?void 0:a.some(i=>i.id===e)});return(r==null?void 0:r.length)>0?r[0]:void 0}async getById(e){return this.indexedDb.getValue(ur,e)}async drop(){await this.indexedDb.deleteAllValues(ur)}}class ta extends Map{static fromStorage(e){let r=new ta;return e&&Object.entries(JSON.parse(e)).forEach(n=>{r.set(n[0],n[1])}),r}}class W1{constructor(){g(this,"STORAGE_KEY","eventCoverage")}getCoverage(e,r,n,a){return this.getLocalCoverage(e,new lc(Ct.fromDate(r),Ct.fromDate(n)),a)}getLocalCoverage(e,r,n){let a=ta.fromStorage(localStorage.getItem(this.STORAGE_KEY)),i=[],o=[],s=[];r.getRange().forEach(y=>{e.forEach(x=>{s.push({userId:x,year:y.year,month:y.month})})}),s.forEach(y=>{let x=a.get(y.userId);Z1(new Ct(y.year,y.month),x||[])?i.push(y):o.push(y)}),n==null||n.debug("js-calendar-api","Month to load (local): ",i),n==null||n.debug("js-calendar-api","Month to load (remote): ",o);let l=cc(i),u=cc(o),f=dc(l),w=dc(u);return{local:f,remote:w}}saveCoverage(e,r,n,a){return this.saveLocalCoverage(e,new lc(Ct.fromDate(r),Ct.fromDate(n)),a)}saveLocalCoverage(e,r,n){let a=ta.fromStorage(localStorage.getItem(this.STORAGE_KEY));e.forEach(i=>{let o=a==null?void 0:a.get(i),s=o?o.filter(l=>{r.isIn(l.month,l.year)}):[];r.getRange().forEach(l=>{s.push({userId:i,year:l.year,month:l.month})}),n==null||n.debug("js-calendar-api",`Add coverage ${i} ${JSON.stringify(s)}`),a==null||a.set(i,s)}),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(Object.fromEntries(a)))}clearStorage(){localStorage.removeItem(this.STORAGE_KEY)}}class lc{constructor(e,r){g(this,"start"),g(this,"end"),this.start=e,this.end=r}isIn(e,r){let n=Ct.toNumber(r,e);return this.start.toNumber()<=n&&this.end.toNumber()>=n}getRange(){let e=this.start.year,r=this.start.month,n=[];do n.push(new Ct(e,r)),r++,r==12&&(r=0,e++);while(Ct.toNumber(e,r)<=this.end.toNumber());return n}}class Ct{constructor(e,r){g(this,"month"),g(this,"year"),this.year=e,this.month=r}toNumber(){return Ct.toNumber(this.year,this.month)}static fromDate(e){return new Ct(e.getFullYear(),e.getMonth())}static toNumber(e,r){return e*12+r}}const ra=t=>{const e=t.month+1;return new Date(t.year+"-"+(e<10?"0"+e:e)+"-01")},Y1=(t,e,r,n)=>t===r&&Math.abs(e-n)===1||Math.abs(t-r)===1&&Math.abs(e-n)===11,Z1=(t,e)=>e.filter(r=>r.year===t.year&&r.month===t.month).length>0,cc=t=>{const e=(a,i)=>Ct.toNumber(a.year,a.month)-Ct.toNumber(i.year,i.month);t.sort(e);let r=[];if(t.length===0)return r;let n;return t.forEach((a,i)=>{i===0?n={userId:[a.userId],month:a.month,year:a.year}:a.month===n.month&&a.year===n.year?n.userId.push(a.userId):(r.push(n),n={userId:[a.userId],month:a.month,year:a.year}),i===t.length-1&&r.push(n)}),r};function uc(t,e,r){return{userId:t.userId,start:{year:e.year,month:e.month},end:{year:r.month==11?r.year+1:r.year,month:r.month==11?0:r.month+1}}}const dc=t=>{let e=[];if(t.length===0)return e;let r,n;return t.sort((a,i)=>a.year<i.year?-1:a.year>i.year||a.month>i.month?1:a.month<i.month?-1:0),t.forEach((a,i)=>{if(i===0)r=a,n=a;else if(Y1(a.year,a.month,n.year,n.month))n=a;else{let o=uc(a,r,n);e.push(o),r=a,n=a}if(i===t.length-1){let o=uc(a,r,n);e.push(o)}}),e};var K1=Object.defineProperty,J1=Object.getOwnPropertyDescriptor,Di=(t,e,r,n)=>{for(var a=n>1?void 0:n?J1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&K1(e,r,a),a};const yn=new Me.Channel;let na=class extends lr{constructor(t,e,r,n){super("event",n),g(this,"REPOSITORY_NAME","Appointment"),g(this,"USE_EVENT_COVERAGE",!1),g(this,"eventDb"),g(this,"eventService"),g(this,"eventMetaStorage"),this.eventDb=new G1(e),this.eventService=new $1(r,t,n),this.eventMetaStorage=new W1}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async createEvent(t,e,r,n,a,i){const o=await this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,timeZone:a,force:i},n);return yn.publish(Je.CREATE,{account:e,companyId:r,event:o}),o}async updateEvent(t,e,r,n,a,i){let o=await this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,timeZone:a,force:i},n);return yn.publish(Je.UPDATE,{account:e,companyId:r,event:o}),o}async updateEventStatus(t,e,r,n,a){let i=await this.remoteUpdateStatus(t,{account:e,companyId:r,eventId:n},a);return yn.publish(Je.UPDATE,{account:e,companyId:r,event:i}),i}async getEvent(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.getById(t,n,{eventId:e,showPersonal:r})}async getAllEvents(t,e,r,n,a,i,o,s,l=Le.LOCAL_THEN_REMOTE){let u=!0,f=[];if(l===Le.REMOTE_ONLY)f=await this.remoteList(t,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s}),await this.localBulkSave({},f),u=!1;else if(l===Le.LOCAL_ONLY)f=await this.localList({userIds:e.join(","),start:r,end:n,showPersonal:a,showDeleted:i});else if(l==Le.REMOTE_THEN_LOCAL){const w=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s});f=w.results,u=w.local}else if(l==Le.LOCAL_THEN_REMOTE)if(this.USE_EVENT_COVERAGE){let w=await this.getEventWithCoverage(t,e,r,n,a,i,o,s,l);u=w.local,f=w.results}else f=await this.remoteList(t,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s}),await this.localBulkSave({},f),u=!1;return{local:u,results:f}}async getEventWithCoverage(t,e,r,n,a,i,o,s,l=Le.LOCAL_THEN_REMOTE){var u,f;let w=!0,y=[],x=this.eventMetaStorage.getCoverage(e,r,n,this.logger);for(const S of x.local){(u=this.logger)==null||u.debug("js-calendar-api",`getAllEvents coverage local: ${JSON.stringify(S)}`);const T=await this.list(t,Le.LOCAL_THEN_REMOTE,{userIds:e.join(","),start:ra(S.start),end:ra(S.end),timeZone:o,showPersonal:a,showDeleted:i,fields:s});y=y.concat(T.results)}for(const S of x.remote){(f=this.logger)==null||f.debug("js-calendar-api",`getAllEvents coverage remote: ${JSON.stringify(S)}`);const T=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:ra(S.start),end:ra(S.end),timeZone:o,showPersonal:a,showDeleted:i,fields:s});y=y.concat(T.results)}return w=x.remote.length===0,{local:w,results:y}}async deleteAllEvents(){return this.eventDb.drop()}async getExternalEvent(t,e,r,n,a){const i=zn(r,a),o=zn(n,a);return(await this.eventService.getExternalAppointments(t,e.join(","),i,o,a)).map(s=>Rt.fromEventDto(s,dl.EXTERNAL))}async remoteList(t,e){if(!e.start||!e.end||!e.userIds)throw Error("Invalid state:"+JSON.stringify(e));const r=zn(e.start,e.timeZone),n=zn(e.end,e.timeZone),a=await this.eventService.getAllEvents(t,e.userIds,r,n,e.showPersonal,e.showDeleted,e.fields);return this.eventMetaStorage.saveCoverage(e.userIds.split(","),e.start,e.end,this.logger),a.map(i=>Rt.fromEventDto(i))}async remoteGet(t,e){if(!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const r=await this.eventService.getById(t,e.eventId,e.showPersonal);return Rt.fromEventDto(r)}async remoteCreate(t,e,r){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));const n=Rt.toEventDto(r,e.timeZone),a=await this.eventService.createEvent(t,e.account,e.companyId,n,e.force||!1);return Rt.fromEventDto(a)}async remoteUpdate(t,e,r){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));let n=Rt.toEventDto(r,e.timeZone);const a=await this.eventService.updateEvent(t,e.account,e.companyId,n,e.force);return Rt.fromEventDto(a)}async remoteUpdateStatus(t,e,r){if(!e.account||!e.companyId||!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const n=await this.eventService.updateEventStatus(t,e.account,e.companyId,e.eventId,r);return Rt.fromEventDto(n)}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){var e;return this.eventDb.getAllEvents((e=t.userIds)==null?void 0:e.split(","),t.start,t.end)}async localGet(t){if(!t.eventId)throw Error("Invalid state:"+JSON.stringify(t));return this.eventDb.getById(t.eventId)}async localBulkSave(t,e){await this.eventDb.saveAllEvents(e)}async localDelete(t){throw new Error("Method not implemented.")}async localBulkDelete(t){await this.eventDb.deleteByEventIds(t.map(e=>e.id||""))}};Di([Me.Unsubscribe()],na.prototype,"dispose",1),Di([Me.Subscribe(Je.DELETE)],na.prototype,"onCascadeDelete",1),na=Di([Me.Subscriber({channel:_t})],na);var X1=Object.defineProperty,Q1=Object.getOwnPropertyDescriptor,fc=(t,e,r,n)=>{for(var a=n>1?void 0:n?Q1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&X1(e,r,a),a};const hc=new Me.Channel;let Ni=class extends lr{constructor(t,e,r,n){super("contact",n),g(this,"contactDb"),g(this,"contactService"),this.contactDb=new V1(e),this.contactService=new U1(r,t,n)}async onCascadeChange(t,e,r,n){var a,i,o,s;r==yn&&(i=(a=t.event)==null?void 0:a.client)!=null&&i.id&&await this.cascadeDeleteItem({account:t.account,contactId:(s=(o=t.event)==null?void 0:o.client)==null?void 0:s.id})}async searchContacts(t,e,r){return this.list(t,Le.REMOTE_THEN_LOCAL,{account:r||"",query:e})}async searchContactWithPages(t,e,r,n){let a;return typeof e=="string"?a=await this.contactService.searchContacts(t,e||"",r,100,!1):a=await this.contactService.advancedSearchContacts(t,e,r,100,!1),ii.fromContactSearchDto(a)}async createContact(t,e,r){return r.address===void 0&&(r.address=new dn,r.address.country="FR"),this.create(t,Le.REMOTE_THEN_LOCAL,{account:e},r)}async updateContact(t,e,r,n){return this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,contactId:r},n)}async deleteContact(t,e,r){return this.deleteById(t,{account:e,contactId:r})}async getContact(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.getById(t,n,{account:e,contactId:r})}async remoteList(t,e){return(await this.contactService.searchContacts(t,e.query||"",e.account)).map(r=>Zt.fromContactDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.contactService.getById(t,e.account,e.contactId);return Zt.fromContactDto(r)}async remoteCreate(t,e,r){const n=Zt.toContactDto(r),a=await this.contactService.createContact(t,e.account,n);return Zt.fromContactDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=Zt.toContactDto(r),a=await this.contactService.updateContact(t,e.account,e.contactId,n);return Zt.fromContactDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.contactService.deleteBy(t,e.account,e.contactId)}async localList(t){return this.contactDb.getAllContacts()}async localGet(t){return this.checkNullable(t),this.contactDb.getById(t.contactId)}async localBulkSave(t,e){await this.contactDb.saveAllContacts(e)}async localDelete(t){this.checkNullable(t),await this.contactDb.deleteById(t.contactId)}localBulkDelete(t){return Promise.resolve(void 0)}checkNullable(t){if(!t.contactId)throw Error("Invalid state:"+JSON.stringify(t))}};fc([Me.Subscribe(Je.UPDATE),Me.Subscribe(Je.CREATE)],Ni.prototype,"onCascadeChange",1),Ni=fc([Me.Subscriber({channel:yn})],Ni);const mc=new Me.Channel;var e0={exports:{}};function t0(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pc={exports:{}};const r0={},n0=Object.freeze(Object.defineProperty({__proto__:null,default:r0},Symbol.toStringTag,{value:"Module"})),a0=Ap(n0);var gc;function ze(){return gc||(gc=1,function(t,e){(function(r,n){t.exports=n()})(Ae,function(){var r=r||function(n,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ae<"u"&&Ae.crypto&&(i=Ae.crypto),!i&&typeof t0=="function")try{i=a0}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function E(){}return function(A){var I;return E.prototype=A,I=new E,E.prototype=null,I}}(),l={},u=l.lib={},f=u.Base=function(){return{extend:function(E){var A=s(this);return E&&A.mixIn(E),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var A in E)E.hasOwnProperty(A)&&(this[A]=E[A]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),w=u.WordArray=f.extend({init:function(E,A){E=this.words=E||[],A!=a?this.sigBytes=A:this.sigBytes=E.length*4},toString:function(E){return(E||x).stringify(this)},concat:function(E){var A=this.words,I=E.words,D=this.sigBytes,P=E.sigBytes;if(this.clamp(),D%4)for(var z=0;z<P;z++){var Y=I[z>>>2]>>>24-z%4*8&255;A[D+z>>>2]|=Y<<24-(D+z)%4*8}else for(var Q=0;Q<P;Q+=4)A[D+Q>>>2]=I[Q>>>2];return this.sigBytes+=P,this},clamp:function(){var E=this.words,A=this.sigBytes;E[A>>>2]&=4294967295<<32-A%4*8,E.length=n.ceil(A/4)},clone:function(){var E=f.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var A=[],I=0;I<E;I+=4)A.push(o());return new w.init(A,E)}}),y=l.enc={},x=y.Hex={stringify:function(E){for(var A=E.words,I=E.sigBytes,D=[],P=0;P<I;P++){var z=A[P>>>2]>>>24-P%4*8&255;D.push((z>>>4).toString(16)),D.push((z&15).toString(16))}return D.join("")},parse:function(E){for(var A=E.length,I=[],D=0;D<A;D+=2)I[D>>>3]|=parseInt(E.substr(D,2),16)<<24-D%8*4;return new w.init(I,A/2)}},S=y.Latin1={stringify:function(E){for(var A=E.words,I=E.sigBytes,D=[],P=0;P<I;P++){var z=A[P>>>2]>>>24-P%4*8&255;D.push(String.fromCharCode(z))}return D.join("")},parse:function(E){for(var A=E.length,I=[],D=0;D<A;D++)I[D>>>2]|=(E.charCodeAt(D)&255)<<24-D%4*8;return new w.init(I,A)}},T=y.Utf8={stringify:function(E){try{return decodeURIComponent(escape(S.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return S.parse(unescape(encodeURIComponent(E)))}},N=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new w.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=T.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var A,I=this._data,D=I.words,P=I.sigBytes,z=this.blockSize,Y=z*4,Q=P/Y;E?Q=n.ceil(Q):Q=n.max((Q|0)-this._minBufferSize,0);var B=Q*z,$=n.min(B*4,P);if(B){for(var re=0;re<B;re+=z)this._doProcessBlock(D,re);A=D.splice(0,B),I.sigBytes-=$}return new w.init(A,$)},clone:function(){var E=f.clone.call(this);return E._data=this._data.clone(),E},_minBufferSize:0});u.Hasher=N.extend({cfg:f.extend(),init:function(E){this.cfg=this.cfg.extend(E),this.reset()},reset:function(){N.reset.call(this),this._doReset()},update:function(E){return this._append(E),this._process(),this},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(E){return function(A,I){return new E.init(I).finalize(A)}},_createHmacHelper:function(E){return function(A,I){return new C.HMAC.init(E,I).finalize(A)}}});var C=l.algo={};return l}(Math);return r})}(pc)),pc.exports}var vc={exports:{}},yc;function aa(){return yc||(yc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(u,f){this.high=u,this.low=f}}),l.WordArray=o.extend({init:function(u,f){u=this.words=u||[],f!=n?this.sigBytes=f:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,f=u.length,w=[],y=0;y<f;y++){var x=u[y];w.push(x.high),w.push(x.low)}return s.create(w,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),f=u.words=this.words.slice(0),w=f.length,y=0;y<w;y++)f[y]=f[y].clone();return u}})}(),r})}(vc)),vc.exports}var bc={exports:{}},Ec;function i0(){return Ec||(Ec=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,a=n.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,f=[],w=0;w<u;w++)f[w>>>2]|=l[w]<<24-w%4*8;o.call(this,f,u)}else o.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(bc)),bc.exports}var wc={exports:{}},xc;function o0(){return xc||(xc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var u=l.words,f=l.sigBytes,w=[],y=0;y<f;y+=2){var x=u[y>>>2]>>>16-y%4*8&65535;w.push(String.fromCharCode(x))}return w.join("")},parse:function(l){for(var u=l.length,f=[],w=0;w<u;w++)f[w>>>1]|=l.charCodeAt(w)<<16-w%2*16;return i.create(f,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,f=l.sigBytes,w=[],y=0;y<f;y+=2){var x=s(u[y>>>2]>>>16-y%4*8&65535);w.push(String.fromCharCode(x))}return w.join("")},parse:function(l){for(var u=l.length,f=[],w=0;w<u;w++)f[w>>>1]|=s(l.charCodeAt(w)<<16-w%2*16);return i.create(f,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(wc)),wc.exports}var _c={exports:{}},Sc;function Hr(){return Sc||(Sc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64={stringify:function(l){var u=l.words,f=l.sigBytes,w=this._map;l.clamp();for(var y=[],x=0;x<f;x+=3)for(var S=u[x>>>2]>>>24-x%4*8&255,T=u[x+1>>>2]>>>24-(x+1)%4*8&255,N=u[x+2>>>2]>>>24-(x+2)%4*8&255,C=S<<16|T<<8|N,E=0;E<4&&x+E*.75<f;E++)y.push(w.charAt(C>>>6*(3-E)&63));var A=w.charAt(64);if(A)for(;y.length%4;)y.push(A);return y.join("")},parse:function(l){var u=l.length,f=this._map,w=this._reverseMap;if(!w){w=this._reverseMap=[];for(var y=0;y<f.length;y++)w[f.charCodeAt(y)]=y}var x=f.charAt(64);if(x){var S=l.indexOf(x);S!==-1&&(u=S)}return s(l,u,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,f){for(var w=[],y=0,x=0;x<u;x++)if(x%4){var S=f[l.charCodeAt(x-1)]<<x%4*2,T=f[l.charCodeAt(x)]>>>6-x%4*2,N=S|T;w[y>>>2]|=N<<24-y%4*8,y++}return i.create(w,y)}}(),r.enc.Base64})}(_c)),_c.exports}var Ic={exports:{}},Cc;function s0(){return Cc||(Cc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64url={stringify:function(l,u=!0){var f=l.words,w=l.sigBytes,y=u?this._safe_map:this._map;l.clamp();for(var x=[],S=0;S<w;S+=3)for(var T=f[S>>>2]>>>24-S%4*8&255,N=f[S+1>>>2]>>>24-(S+1)%4*8&255,C=f[S+2>>>2]>>>24-(S+2)%4*8&255,E=T<<16|N<<8|C,A=0;A<4&&S+A*.75<w;A++)x.push(y.charAt(E>>>6*(3-A)&63));var I=y.charAt(64);if(I)for(;x.length%4;)x.push(I);return x.join("")},parse:function(l,u=!0){var f=l.length,w=u?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var x=0;x<w.length;x++)y[w.charCodeAt(x)]=x}var S=w.charAt(64);if(S){var T=l.indexOf(S);T!==-1&&(f=T)}return s(l,f,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,u,f){for(var w=[],y=0,x=0;x<u;x++)if(x%4){var S=f[l.charCodeAt(x-1)]<<x%4*2,T=f[l.charCodeAt(x)]>>>6-x%4*2,N=S|T;w[y>>>2]|=N<<24-y%4*8,y++}return i.create(w,y)}}(),r.enc.Base64url})}(Ic)),Ic.exports}var Tc={exports:{}},kc;function $r(){return kc||(kc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[];(function(){for(var T=0;T<64;T++)u[T]=n.abs(n.sin(T+1))*4294967296|0})();var f=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(T,N){for(var C=0;C<16;C++){var E=N+C,A=T[E];T[E]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var I=this._hash.words,D=T[N+0],P=T[N+1],z=T[N+2],Y=T[N+3],Q=T[N+4],B=T[N+5],$=T[N+6],re=T[N+7],L=T[N+8],j=T[N+9],W=T[N+10],q=T[N+11],V=T[N+12],Z=T[N+13],se=T[N+14],ie=T[N+15],F=I[0],ee=I[1],ne=I[2],K=I[3];F=w(F,ee,ne,K,D,7,u[0]),K=w(K,F,ee,ne,P,12,u[1]),ne=w(ne,K,F,ee,z,17,u[2]),ee=w(ee,ne,K,F,Y,22,u[3]),F=w(F,ee,ne,K,Q,7,u[4]),K=w(K,F,ee,ne,B,12,u[5]),ne=w(ne,K,F,ee,$,17,u[6]),ee=w(ee,ne,K,F,re,22,u[7]),F=w(F,ee,ne,K,L,7,u[8]),K=w(K,F,ee,ne,j,12,u[9]),ne=w(ne,K,F,ee,W,17,u[10]),ee=w(ee,ne,K,F,q,22,u[11]),F=w(F,ee,ne,K,V,7,u[12]),K=w(K,F,ee,ne,Z,12,u[13]),ne=w(ne,K,F,ee,se,17,u[14]),ee=w(ee,ne,K,F,ie,22,u[15]),F=y(F,ee,ne,K,P,5,u[16]),K=y(K,F,ee,ne,$,9,u[17]),ne=y(ne,K,F,ee,q,14,u[18]),ee=y(ee,ne,K,F,D,20,u[19]),F=y(F,ee,ne,K,B,5,u[20]),K=y(K,F,ee,ne,W,9,u[21]),ne=y(ne,K,F,ee,ie,14,u[22]),ee=y(ee,ne,K,F,Q,20,u[23]),F=y(F,ee,ne,K,j,5,u[24]),K=y(K,F,ee,ne,se,9,u[25]),ne=y(ne,K,F,ee,Y,14,u[26]),ee=y(ee,ne,K,F,L,20,u[27]),F=y(F,ee,ne,K,Z,5,u[28]),K=y(K,F,ee,ne,z,9,u[29]),ne=y(ne,K,F,ee,re,14,u[30]),ee=y(ee,ne,K,F,V,20,u[31]),F=x(F,ee,ne,K,B,4,u[32]),K=x(K,F,ee,ne,L,11,u[33]),ne=x(ne,K,F,ee,q,16,u[34]),ee=x(ee,ne,K,F,se,23,u[35]),F=x(F,ee,ne,K,P,4,u[36]),K=x(K,F,ee,ne,Q,11,u[37]),ne=x(ne,K,F,ee,re,16,u[38]),ee=x(ee,ne,K,F,W,23,u[39]),F=x(F,ee,ne,K,Z,4,u[40]),K=x(K,F,ee,ne,D,11,u[41]),ne=x(ne,K,F,ee,Y,16,u[42]),ee=x(ee,ne,K,F,$,23,u[43]),F=x(F,ee,ne,K,j,4,u[44]),K=x(K,F,ee,ne,V,11,u[45]),ne=x(ne,K,F,ee,ie,16,u[46]),ee=x(ee,ne,K,F,z,23,u[47]),F=S(F,ee,ne,K,D,6,u[48]),K=S(K,F,ee,ne,re,10,u[49]),ne=S(ne,K,F,ee,se,15,u[50]),ee=S(ee,ne,K,F,B,21,u[51]),F=S(F,ee,ne,K,V,6,u[52]),K=S(K,F,ee,ne,Y,10,u[53]),ne=S(ne,K,F,ee,W,15,u[54]),ee=S(ee,ne,K,F,P,21,u[55]),F=S(F,ee,ne,K,L,6,u[56]),K=S(K,F,ee,ne,ie,10,u[57]),ne=S(ne,K,F,ee,$,15,u[58]),ee=S(ee,ne,K,F,Z,21,u[59]),F=S(F,ee,ne,K,Q,6,u[60]),K=S(K,F,ee,ne,q,10,u[61]),ne=S(ne,K,F,ee,z,15,u[62]),ee=S(ee,ne,K,F,j,21,u[63]),I[0]=I[0]+F|0,I[1]=I[1]+ee|0,I[2]=I[2]+ne|0,I[3]=I[3]+K|0},_doFinalize:function(){var T=this._data,N=T.words,C=this._nDataBytes*8,E=T.sigBytes*8;N[E>>>5]|=128<<24-E%32;var A=n.floor(C/4294967296),I=C;N[(E+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,N[(E+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.sigBytes=(N.length+1)*4,this._process();for(var D=this._hash,P=D.words,z=0;z<4;z++){var Y=P[z];P[z]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return D},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function w(T,N,C,E,A,I,D){var P=T+(N&C|~N&E)+A+D;return(P<<I|P>>>32-I)+N}function y(T,N,C,E,A,I,D){var P=T+(N&E|C&~E)+A+D;return(P<<I|P>>>32-I)+N}function x(T,N,C,E,A,I,D){var P=T+(N^C^E)+A+D;return(P<<I|P>>>32-I)+N}function S(T,N,C,E,A,I,D){var P=T+(C^(N|~E))+A+D;return(P<<I|P>>>32-I)+N}a.MD5=s._createHelper(f),a.HmacMD5=s._createHmacHelper(f)}(Math),r.MD5})}(Tc)),Tc.exports}var Ac={exports:{}},Dc;function Oi(){return Dc||(Dc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.Hasher,s=n.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,w){for(var y=this._hash.words,x=y[0],S=y[1],T=y[2],N=y[3],C=y[4],E=0;E<80;E++){if(E<16)l[E]=f[w+E]|0;else{var A=l[E-3]^l[E-8]^l[E-14]^l[E-16];l[E]=A<<1|A>>>31}var I=(x<<5|x>>>27)+C+l[E];E<20?I+=(S&T|~S&N)+1518500249:E<40?I+=(S^T^N)+1859775393:E<60?I+=(S&T|S&N|T&N)-1894007588:I+=(S^T^N)-899497514,C=N,N=T,T=S<<30|S>>>2,S=x,x=I}y[0]=y[0]+x|0,y[1]=y[1]+S|0,y[2]=y[2]+T|0,y[3]=y[3]+N|0,y[4]=y[4]+C|0},_doFinalize:function(){var f=this._data,w=f.words,y=this._nDataBytes*8,x=f.sigBytes*8;return w[x>>>5]|=128<<24-x%32,w[(x+64>>>9<<4)+14]=Math.floor(y/4294967296),w[(x+64>>>9<<4)+15]=y,f.sigBytes=w.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u)}(),r.SHA1})}(Ac)),Ac.exports}var Nc={exports:{}},Oc;function Rc(){return Oc||(Oc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[],f=[];(function(){function x(C){for(var E=n.sqrt(C),A=2;A<=E;A++)if(!(C%A))return!1;return!0}function S(C){return(C-(C|0))*4294967296|0}for(var T=2,N=0;N<64;)x(T)&&(N<8&&(u[N]=S(n.pow(T,1/2))),f[N]=S(n.pow(T,1/3)),N++),T++})();var w=[],y=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(x,S){for(var T=this._hash.words,N=T[0],C=T[1],E=T[2],A=T[3],I=T[4],D=T[5],P=T[6],z=T[7],Y=0;Y<64;Y++){if(Y<16)w[Y]=x[S+Y]|0;else{var Q=w[Y-15],B=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,$=w[Y-2],re=($<<15|$>>>17)^($<<13|$>>>19)^$>>>10;w[Y]=B+w[Y-7]+re+w[Y-16]}var L=I&D^~I&P,j=N&C^N&E^C&E,W=(N<<30|N>>>2)^(N<<19|N>>>13)^(N<<10|N>>>22),q=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),V=z+q+L+f[Y]+w[Y],Z=W+j;z=P,P=D,D=I,I=A+V|0,A=E,E=C,C=N,N=V+Z|0}T[0]=T[0]+N|0,T[1]=T[1]+C|0,T[2]=T[2]+E|0,T[3]=T[3]+A|0,T[4]=T[4]+I|0,T[5]=T[5]+D|0,T[6]=T[6]+P|0,T[7]=T[7]+z|0},_doFinalize:function(){var x=this._data,S=x.words,T=this._nDataBytes*8,N=x.sigBytes*8;return S[N>>>5]|=128<<24-N%32,S[(N+64>>>9<<4)+14]=n.floor(T/4294967296),S[(N+64>>>9<<4)+15]=T,x.sigBytes=S.length*4,this._process(),this._hash},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});a.SHA256=s._createHelper(y),a.HmacSHA256=s._createHmacHelper(y)}(Math),r.SHA256})}(Nc)),Nc.exports}var Lc={exports:{}},Mc;function l0(){return Mc||(Mc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Rc())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(Lc)),Lc.exports}var Pc={exports:{}},Fc;function zc(){return Fc||(Fc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),aa())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Hasher,o=n.x64,s=o.Word,l=o.WordArray,u=n.algo;function f(){return s.create.apply(s,arguments)}var w=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],y=[];(function(){for(var S=0;S<80;S++)y[S]=f()})();var x=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(S,T){for(var N=this._hash.words,C=N[0],E=N[1],A=N[2],I=N[3],D=N[4],P=N[5],z=N[6],Y=N[7],Q=C.high,B=C.low,$=E.high,re=E.low,L=A.high,j=A.low,W=I.high,q=I.low,V=D.high,Z=D.low,se=P.high,ie=P.low,F=z.high,ee=z.low,ne=Y.high,K=Y.low,xe=Q,_e=B,Oe=$,ye=re,Be=L,Ie=j,G=W,ae=q,_=V,b=Z,O=se,te=ie,le=F,de=ee,M=ne,c=K,v=0;v<80;v++){var d,m,h=y[v];if(v<16)m=h.high=S[T+v*2]|0,d=h.low=S[T+v*2+1]|0;else{var p=y[v-15],k=p.high,R=p.low,U=(k>>>1|R<<31)^(k>>>8|R<<24)^k>>>7,H=(R>>>1|k<<31)^(R>>>8|k<<24)^(R>>>7|k<<25),J=y[v-2],X=J.high,oe=J.low,fe=(X>>>19|oe<<13)^(X<<3|oe>>>29)^X>>>6,pe=(oe>>>19|X<<13)^(oe<<3|X>>>29)^(oe>>>6|X<<26),ve=y[v-7],Se=ve.high,Ee=ve.low,be=y[v-16],ce=be.high,Ve=be.low;d=H+Ee,m=U+Se+(d>>>0<H>>>0?1:0),d=d+pe,m=m+fe+(d>>>0<pe>>>0?1:0),d=d+Ve,m=m+ce+(d>>>0<Ve>>>0?1:0),h.high=m,h.low=d}var we=_&O^~_&le,We=b&te^~b&de,Qe=xe&Oe^xe&Be^Oe&Be,mt=_e&ye^_e&Ie^ye&Ie,ge=(xe>>>28|_e<<4)^(xe<<30|_e>>>2)^(xe<<25|_e>>>7),nt=(_e>>>28|xe<<4)^(_e<<30|xe>>>2)^(_e<<25|xe>>>7),Ht=(_>>>14|b<<18)^(_>>>18|b<<14)^(_<<23|b>>>9),Tt=(b>>>14|_<<18)^(b>>>18|_<<14)^(b<<23|_>>>9),kt=w[v],At=kt.high,pt=kt.low,ct=c+Tt,ut=M+Ht+(ct>>>0<c>>>0?1:0),ct=ct+We,ut=ut+we+(ct>>>0<We>>>0?1:0),ct=ct+pt,ut=ut+At+(ct>>>0<pt>>>0?1:0),ct=ct+d,ut=ut+m+(ct>>>0<d>>>0?1:0),hr=nt+mt,Gr=ge+Qe+(hr>>>0<nt>>>0?1:0);M=le,c=de,le=O,de=te,O=_,te=b,b=ae+ct|0,_=G+ut+(b>>>0<ae>>>0?1:0)|0,G=Be,ae=Ie,Be=Oe,Ie=ye,Oe=xe,ye=_e,_e=ct+hr|0,xe=ut+Gr+(_e>>>0<ct>>>0?1:0)|0}B=C.low=B+_e,C.high=Q+xe+(B>>>0<_e>>>0?1:0),re=E.low=re+ye,E.high=$+Oe+(re>>>0<ye>>>0?1:0),j=A.low=j+Ie,A.high=L+Be+(j>>>0<Ie>>>0?1:0),q=I.low=q+ae,I.high=W+G+(q>>>0<ae>>>0?1:0),Z=D.low=Z+b,D.high=V+_+(Z>>>0<b>>>0?1:0),ie=P.low=ie+te,P.high=se+O+(ie>>>0<te>>>0?1:0),ee=z.low=ee+de,z.high=F+le+(ee>>>0<de>>>0?1:0),K=Y.low=K+c,Y.high=ne+M+(K>>>0<c>>>0?1:0)},_doFinalize:function(){var S=this._data,T=S.words,N=this._nDataBytes*8,C=S.sigBytes*8;T[C>>>5]|=128<<24-C%32,T[(C+128>>>10<<5)+30]=Math.floor(N/4294967296),T[(C+128>>>10<<5)+31]=N,S.sigBytes=T.length*4,this._process();var E=this._hash.toX32();return E},clone:function(){var S=i.clone.call(this);return S._hash=this._hash.clone(),S},blockSize:1024/32});n.SHA512=i._createHelper(x),n.HmacSHA512=i._createHmacHelper(x)}(),r.SHA512})}(Pc)),Pc.exports}var Bc={exports:{}},Uc;function c0(){return Uc||(Uc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),aa(),zc())})(Ae,function(r){return function(){var n=r,a=n.x64,i=a.Word,o=a.WordArray,s=n.algo,l=s.SHA512,u=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=l._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=l._createHelper(u),n.HmacSHA384=l._createHmacHelper(u)}(),r.SHA384})}(Bc)),Bc.exports}var Vc={exports:{}},qc;function u0(){return qc||(qc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),aa())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,u=l.Word,f=a.algo,w=[],y=[],x=[];(function(){for(var N=1,C=0,E=0;E<24;E++){w[N+5*C]=(E+1)*(E+2)/2%64;var A=C%5,I=(2*N+3*C)%5;N=A,C=I}for(var N=0;N<5;N++)for(var C=0;C<5;C++)y[N+5*C]=C+(2*N+3*C)%5*5;for(var D=1,P=0;P<24;P++){for(var z=0,Y=0,Q=0;Q<7;Q++){if(D&1){var B=(1<<Q)-1;B<32?Y^=1<<B:z^=1<<B-32}D&128?D=D<<1^113:D<<=1}x[P]=u.create(z,Y)}})();var S=[];(function(){for(var N=0;N<25;N++)S[N]=u.create()})();var T=f.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var N=this._state=[],C=0;C<25;C++)N[C]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(N,C){for(var E=this._state,A=this.blockSize/2,I=0;I<A;I++){var D=N[C+2*I],P=N[C+2*I+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var z=E[I];z.high^=P,z.low^=D}for(var Y=0;Y<24;Y++){for(var Q=0;Q<5;Q++){for(var B=0,$=0,re=0;re<5;re++){var z=E[Q+5*re];B^=z.high,$^=z.low}var L=S[Q];L.high=B,L.low=$}for(var Q=0;Q<5;Q++)for(var j=S[(Q+4)%5],W=S[(Q+1)%5],q=W.high,V=W.low,B=j.high^(q<<1|V>>>31),$=j.low^(V<<1|q>>>31),re=0;re<5;re++){var z=E[Q+5*re];z.high^=B,z.low^=$}for(var Z=1;Z<25;Z++){var B,$,z=E[Z],se=z.high,ie=z.low,F=w[Z];F<32?(B=se<<F|ie>>>32-F,$=ie<<F|se>>>32-F):(B=ie<<F-32|se>>>64-F,$=se<<F-32|ie>>>64-F);var ee=S[y[Z]];ee.high=B,ee.low=$}var ne=S[0],K=E[0];ne.high=K.high,ne.low=K.low;for(var Q=0;Q<5;Q++)for(var re=0;re<5;re++){var Z=Q+5*re,z=E[Z],xe=S[Z],_e=S[(Q+1)%5+5*re],Oe=S[(Q+2)%5+5*re];z.high=xe.high^~_e.high&Oe.high,z.low=xe.low^~_e.low&Oe.low}var z=E[0],ye=x[Y];z.high^=ye.high,z.low^=ye.low}},_doFinalize:function(){var N=this._data,C=N.words;this._nDataBytes*8;var E=N.sigBytes*8,A=this.blockSize*32;C[E>>>5]|=1<<24-E%32,C[(n.ceil((E+1)/A)*A>>>5)-1]|=128,N.sigBytes=C.length*4,this._process();for(var I=this._state,D=this.cfg.outputLength/8,P=D/8,z=[],Y=0;Y<P;Y++){var Q=I[Y],B=Q.high,$=Q.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,z.push($),z.push(B)}return new o.init(z,D)},clone:function(){for(var N=s.clone.call(this),C=N._state=this._state.slice(0),E=0;E<25;E++)C[E]=C[E].clone();return N}});a.SHA3=s._createHelper(T),a.HmacSHA3=s._createHmacHelper(T)}(Math),r.SHA3})}(Vc)),Vc.exports}var jc={exports:{}},Hc;function d0(){return Hc||(Hc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){/** @preserve
49
+ ***************************************************************************** */var nc;(function(t){(function(e){var r=typeof Ae=="object"?Ae:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=a(t);typeof r.Reflect>"u"?r.Reflect=t:n=a(r.Reflect,n),e(n);function a(i,o){return function(s,l){typeof i[s]!="function"&&Object.defineProperty(i,s,{configurable:!0,writable:!0,value:l}),o&&o(s,l)}}})(function(e){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",a=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",s={__proto__:[]}instanceof Array,l=!o&&!s,u={create:o?function(){return m(Object.create(null))}:s?function(){return m({__proto__:null})}:function(){return m({})},has:l?function(h,p){return r.call(h,p)}:function(h,p){return p in h},get:l?function(h,p){return r.call(h,p)?h[p]:void 0}:function(h,p){return h[p]}},f=Object.getPrototypeOf(Function),x=typeof process=="object"&&process.env&&{}.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!x&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:c(),w=!x&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:v(),S=!x&&typeof WeakMap=="function"?WeakMap:d(),T=new S;function N(h,p,k,R){if(F(k)){if(!Ie(h))throw new TypeError;if(!ae(p))throw new TypeError;return B(h,p)}else{if(!Ie(h))throw new TypeError;if(!K(p))throw new TypeError;if(!K(R)&&!F(R)&&!ee(R))throw new TypeError;return ee(R)&&(R=void 0),k=Be(k),$(h,p,k,R)}}e("decorate",N);function C(h,p){function k(R,U){if(!K(R))throw new TypeError;if(!F(U)&&!_(U))throw new TypeError;V(h,p,R,U)}return k}e("metadata",C);function E(h,p,k,R){if(!K(k))throw new TypeError;return F(R)||(R=Be(R)),V(h,p,k,R)}e("defineMetadata",E);function A(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),L(h,p,k)}e("hasMetadata",A);function I(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),q(h,p,k)}e("hasOwnMetadata",I);function D(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),W(h,p,k)}e("getMetadata",D);function P(h,p,k){if(!K(p))throw new TypeError;return F(k)||(k=Be(k)),j(h,p,k)}e("getOwnMetadata",P);function z(h,p){if(!K(h))throw new TypeError;return F(p)||(p=Be(p)),Z(h,p)}e("getMetadataKeys",z);function Y(h,p){if(!K(h))throw new TypeError;return F(p)||(p=Be(p)),se(h,p)}e("getOwnMetadataKeys",Y);function Q(h,p,k){if(!K(p))throw new TypeError;F(k)||(k=Be(k));var R=re(p,k,!1);if(F(R)||!R.delete(h))return!1;if(R.size>0)return!0;var U=T.get(p);return U.delete(k),U.size>0||T.delete(p),!0}e("deleteMetadata",Q);function B(h,p){for(var k=h.length-1;k>=0;--k){var R=h[k],U=R(p);if(!F(U)&&!ee(U)){if(!ae(U))throw new TypeError;p=U}}return p}function $(h,p,k,R){for(var U=h.length-1;U>=0;--U){var H=h[U],J=H(p,k,R);if(!F(J)&&!ee(J)){if(!K(J))throw new TypeError;R=J}}return R}function re(h,p,k){var R=T.get(h);if(F(R)){if(!k)return;R=new y,T.set(h,R)}var U=R.get(p);if(F(U)){if(!k)return;U=new y,R.set(p,U)}return U}function L(h,p,k){var R=q(h,p,k);if(R)return!0;var U=M(p);return ee(U)?!1:L(h,U,k)}function q(h,p,k){var R=re(p,k,!1);return F(R)?!1:Oe(R.has(h))}function W(h,p,k){var R=q(h,p,k);if(R)return j(h,p,k);var U=M(p);if(!ee(U))return W(h,U,k)}function j(h,p,k){var R=re(p,k,!1);if(!F(R))return R.get(h)}function V(h,p,k,R){var U=re(k,R,!0);U.set(h,p)}function Z(h,p){var k=se(h,p),R=M(h);if(R===null)return k;var U=Z(R,p);if(U.length<=0)return k;if(k.length<=0)return U;for(var H=new w,J=[],X=0,oe=k;X<oe.length;X++){var fe=oe[X],pe=H.has(fe);pe||(H.add(fe),J.push(fe))}for(var ve=0,Se=U;ve<Se.length;ve++){var fe=Se[ve],pe=H.has(fe);pe||(H.add(fe),J.push(fe))}return J}function se(h,p){var k=[],R=re(h,p,!1);if(F(R))return k;for(var U=R.keys(),H=O(U),J=0;;){var X=le(H);if(!X)return k.length=J,k;var oe=te(X);try{k[J]=oe}catch(fe){try{de(H)}finally{throw fe}}J++}}function ie(h){if(h===null)return 1;switch(typeof h){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return h===null?1:6;default:return 6}}function F(h){return h===void 0}function ee(h){return h===null}function ne(h){return typeof h=="symbol"}function K(h){return typeof h=="object"?h!==null:typeof h=="function"}function we(h,p){switch(ie(h)){case 0:return h;case 1:return h;case 2:return h;case 3:return h;case 4:return h;case 5:return h}var k=p===3?"string":p===5?"number":"default",R=b(h,a);if(R!==void 0){var U=R.call(h,k);if(K(U))throw new TypeError;return U}return _e(h,k==="default"?"number":k)}function _e(h,p){if(p==="string"){var k=h.toString;if(G(k)){var R=k.call(h);if(!K(R))return R}var U=h.valueOf;if(G(U)){var R=U.call(h);if(!K(R))return R}}else{var U=h.valueOf;if(G(U)){var R=U.call(h);if(!K(R))return R}var H=h.toString;if(G(H)){var R=H.call(h);if(!K(R))return R}}throw new TypeError}function Oe(h){return!!h}function ye(h){return""+h}function Be(h){var p=we(h,3);return ne(p)?p:ye(p)}function Ie(h){return Array.isArray?Array.isArray(h):h instanceof Object?h instanceof Array:Object.prototype.toString.call(h)==="[object Array]"}function G(h){return typeof h=="function"}function ae(h){return typeof h=="function"}function _(h){switch(ie(h)){case 3:return!0;case 4:return!0;default:return!1}}function b(h,p){var k=h[p];if(k!=null){if(!G(k))throw new TypeError;return k}}function O(h){var p=b(h,i);if(!G(p))throw new TypeError;var k=p.call(h);if(!K(k))throw new TypeError;return k}function te(h){return h.value}function le(h){var p=h.next();return p.done?!1:p}function de(h){var p=h.return;p&&p.call(h)}function M(h){var p=Object.getPrototypeOf(h);if(typeof h!="function"||h===f||p!==f)return p;var k=h.prototype,R=k&&Object.getPrototypeOf(k);if(R==null||R===Object.prototype)return p;var U=R.constructor;return typeof U!="function"||U===h?p:U}function c(){var h={},p=[],k=function(){function J(X,oe,fe){this._index=0,this._keys=X,this._values=oe,this._selector=fe}return J.prototype["@@iterator"]=function(){return this},J.prototype[i]=function(){return this},J.prototype.next=function(){var X=this._index;if(X>=0&&X<this._keys.length){var oe=this._selector(this._keys[X],this._values[X]);return X+1>=this._keys.length?(this._index=-1,this._keys=p,this._values=p):this._index++,{value:oe,done:!1}}return{value:void 0,done:!0}},J.prototype.throw=function(X){throw this._index>=0&&(this._index=-1,this._keys=p,this._values=p),X},J.prototype.return=function(X){return this._index>=0&&(this._index=-1,this._keys=p,this._values=p),{value:X,done:!0}},J}();return function(){function J(){this._keys=[],this._values=[],this._cacheKey=h,this._cacheIndex=-2}return Object.defineProperty(J.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),J.prototype.has=function(X){return this._find(X,!1)>=0},J.prototype.get=function(X){var oe=this._find(X,!1);return oe>=0?this._values[oe]:void 0},J.prototype.set=function(X,oe){var fe=this._find(X,!0);return this._values[fe]=oe,this},J.prototype.delete=function(X){var oe=this._find(X,!1);if(oe>=0){for(var fe=this._keys.length,pe=oe+1;pe<fe;pe++)this._keys[pe-1]=this._keys[pe],this._values[pe-1]=this._values[pe];return this._keys.length--,this._values.length--,X===this._cacheKey&&(this._cacheKey=h,this._cacheIndex=-2),!0}return!1},J.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=h,this._cacheIndex=-2},J.prototype.keys=function(){return new k(this._keys,this._values,R)},J.prototype.values=function(){return new k(this._keys,this._values,U)},J.prototype.entries=function(){return new k(this._keys,this._values,H)},J.prototype["@@iterator"]=function(){return this.entries()},J.prototype[i]=function(){return this.entries()},J.prototype._find=function(X,oe){return this._cacheKey!==X&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=X)),this._cacheIndex<0&&oe&&(this._cacheIndex=this._keys.length,this._keys.push(X),this._values.push(void 0)),this._cacheIndex},J}();function R(J,X){return J}function U(J,X){return X}function H(J,X){return[J,X]}}function v(){return function(){function h(){this._map=new y}return Object.defineProperty(h.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),h.prototype.has=function(p){return this._map.has(p)},h.prototype.add=function(p){return this._map.set(p,p),this},h.prototype.delete=function(p){return this._map.delete(p)},h.prototype.clear=function(){this._map.clear()},h.prototype.keys=function(){return this._map.keys()},h.prototype.values=function(){return this._map.values()},h.prototype.entries=function(){return this._map.entries()},h.prototype["@@iterator"]=function(){return this.keys()},h.prototype[i]=function(){return this.keys()},h}()}function d(){var h=16,p=u.create(),k=R();return function(){function oe(){this._key=R()}return oe.prototype.has=function(fe){var pe=U(fe,!1);return pe!==void 0?u.has(pe,this._key):!1},oe.prototype.get=function(fe){var pe=U(fe,!1);return pe!==void 0?u.get(pe,this._key):void 0},oe.prototype.set=function(fe,pe){var ve=U(fe,!0);return ve[this._key]=pe,this},oe.prototype.delete=function(fe){var pe=U(fe,!1);return pe!==void 0?delete pe[this._key]:!1},oe.prototype.clear=function(){this._key=R()},oe}();function R(){var oe;do oe="@@WeakMap@@"+X();while(u.has(p,oe));return p[oe]=!0,oe}function U(oe,fe){if(!r.call(oe,k)){if(!fe)return;Object.defineProperty(oe,k,{value:u.create()})}return oe[k]}function H(oe,fe){for(var pe=0;pe<fe;++pe)oe[pe]=Math.random()*255|0;return oe}function J(oe){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(oe)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(oe)):H(new Uint8Array(oe),oe):H(new Array(oe),oe)}function X(){var oe=J(h);oe[6]=oe[6]&79|64,oe[8]=oe[8]&191|128;for(var fe="",pe=0;pe<h;++pe){var ve=oe[pe];(pe===4||pe===6||pe===8)&&(fe+="-"),ve<16&&(fe+="0"),fe+=ve.toString(16).toLowerCase()}return fe}}function m(h){return h.__=void 0,delete h.__,h}})})(nc||(nc={}));var pn={};Object.defineProperty(pn,"__esModule",{value:!0}),pn.Channel=void 0;var k1=function(){function t(){this.subscriptions=new Map}return t.prototype.publish=function(e,r){var n=this,a=this.subscriptions.get(e);a&&a.forEach(function(i){i(r,e,n,i)})},t.prototype.subscribe=function(e,r){var n=this.subscriptions.get(e);n||(n=[],this.subscriptions.set(e,n)),n.push(r)},t.prototype.unsubscribe=function(e,r){var n=this.subscriptions.get(e);n&&(n=n.filter(function(a){return a!==r}),n.length?this.subscriptions.set(e,n):this.subscriptions.delete(e))},t.prototype.unsubscribeAll=function(){this.subscriptions.clear()},t}();pn.Channel=k1;var gn={};Object.defineProperty(gn,"__esModule",{value:!0}),gn.PubSub=void 0;var A1=pn;gn.PubSub=new A1.Channel;var Jn={},fr={};Object.defineProperty(fr,"__esModule",{value:!0}),fr.SUBSCRIPTIONS_METADATA_KEY=fr.CHANNEL_METADATA_KEY=void 0,fr.CHANNEL_METADATA_KEY=Symbol("pubsub:channel"),fr.SUBSCRIPTIONS_METADATA_KEY=Symbol("pubsub:subscriptions"),Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.Subscribe=void 0;var ac=fr;function D1(t){return function(e,r,n){var a=Reflect.getMetadata(ac.SUBSCRIPTIONS_METADATA_KEY,e)||new Set;a.add({message:t,handler:n.value}),Reflect.defineMetadata(ac.SUBSCRIPTIONS_METADATA_KEY,a,e)}}Jn.Subscribe=D1;var Xn={},N1=Ae&&Ae.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.Subscriber=void 0;var ki=fr,O1=gn;function R1(t){var e=(t==null?void 0:t.channel)||O1.PubSub;return function(r){Reflect.defineMetadata(ki.CHANNEL_METADATA_KEY,e,r.prototype);var n=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=r,s=new(o.bind.apply(o,N1([void 0],a))),l=Reflect.getMetadata(ki.SUBSCRIPTIONS_METADATA_KEY,r.prototype);if(l){var u=[];Reflect.defineMetadata(ki.SUBSCRIPTIONS_METADATA_KEY,u,s),l.forEach(function(f){var x=f.handler.bind(s);u.push({message:f.message,handler:x}),e.subscribe(f.message,x)})}return s};return n.prototype=r.prototype,t!=null&&t.createInstance&&new n(t.constructorParameters),n}}Xn.Subscriber=R1;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Unsubscribe=void 0;var ic=fr;function L1(){return function(t,e,r){var n=r.value;return r.value=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=Reflect.getMetadata(ic.CHANNEL_METADATA_KEY,t),s=Reflect.getMetadata(ic.SUBSCRIPTIONS_METADATA_KEY,this);return o&&s&&s.forEach(function(l){o.unsubscribe(l.message,l.handler)}),n(a)},r}}Qn.Unsubscribe=L1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Unsubscribe=t.Subscriber=t.Subscribe=t.PubSub=t.Channel=void 0;var e=pn;Object.defineProperty(t,"Channel",{enumerable:!0,get:function(){return e.Channel}});var r=gn;Object.defineProperty(t,"PubSub",{enumerable:!0,get:function(){return r.PubSub}});var n=Jn;Object.defineProperty(t,"Subscribe",{enumerable:!0,get:function(){return n.Subscribe}});var a=Xn;Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return a.Subscriber}});var i=Qn;Object.defineProperty(t,"Unsubscribe",{enumerable:!0,get:function(){return i.Unsubscribe}})}(Me);const _t=new Me.Channel;class M1 extends xr{async getAllStaffs(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createStaff(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateStaff(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async patchAllStaff(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff?account=${encodeURIComponent(r)}`;const o=this.instance.patch(i,a,this.getAxiosConfig(e));if(o!==null)try{await o;return}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staff/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class oc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllStaffs(e){return(await this.indexedDb.getAllValue(zr)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async getById(e,r){var n;const a=await this.indexedDb.getValue(zr,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async saveAllStaffs(e){await this.indexedDb.putBulkValue(zr,e)}async deleteById(e,r){await this.indexedDb.deleteValue(zr,r)}async deleteByStaffIds(e){await this.indexedDb.deleteValues(zr,e)}async drop(){await this.indexedDb.deleteAllValues(zr)}updateServiceSkills(e,r,n){this.getAllStaffs(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.servicesSkill)==null?void 0:s.includes(r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.servicesSkill)==null?void 0:s.findIndex(x=>x===r);f!=null&&(n?(l=o.servicesSkill)==null||l.splice(f,1,n):(u=o.servicesSkill)==null||u.splice(f,1))}),await this.saveAllStaffs(i))})}}var P1=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,Ai=(t,e,r,n)=>{for(var a=n>1?void 0:n?F1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&P1(e,r,a),a};const vn=new Me.Channel;let ea=class extends lr{constructor(t,e,r,n){super("staff",n),g(this,"staffDb"),g(this,"staffService"),this.staffDb=new oc(e),this.staffService=new M1(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllStaffs(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getStaff(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,staffId:n})}async createStaff(t,e,r,n){const a=await this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return vn.publish(Je.CREATE,{account:e,companyId:r,staff:a}),a}async updateStaff(t,e,r,n,a){const i=await this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,staffId:n},a);return vn.publish(Je.UPDATE,{account:e,companyId:r,staffId:n,staff:i}),i}async patchAllStaff(t,e,r,n,a){let i=new Yt;return n&&(i.workingHours=n),a&&(i.vacations=a),await this.staffService.patchAllStaff(t,e,r,i),this.getAllStaffs(t,e,r,Le.REMOTE_THEN_LOCAL)}async deleteStaff(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,staffId:n}),vn.publish(Je.DELETE,{account:e,companyId:r,staffId:n})}async remoteList(t,e){return(await this.staffService.getAllStaffs(t,e.account,e.companyId)).map(r=>Yt.fromStaffDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.staffService.getById(t,e.account,e.companyId,e.staffId);return Yt.fromStaffDto(r)}async remoteCreate(t,e,r){const n=Yt.toStaffDto(r),a=await this.staffService.createStaff(t,e.account,e.companyId,n);return Yt.fromStaffDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=Yt.toStaffDto(r),a=await this.staffService.updateStaff(t,e.account,e.companyId,e.staffId,n);return Yt.fromStaffDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.staffService.delete(t,e.account,e.companyId,e.staffId)}async localList(t){return this.staffDb.getAllStaffs(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffDb.getById(t.companyId,t.staffId)}async localBulkSave(t,e){await this.staffDb.saveAllStaffs(e)}async localDelete(t){this.checkNullable(t),await this.staffDb.deleteById(t.companyId,t.staffId)}async localBulkDelete(t){await this.staffDb.deleteByStaffIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffId)throw Error("Invalid state:"+JSON.stringify(t))}};Ai([Me.Unsubscribe()],ea.prototype,"dispose",1),Ai([Me.Subscribe(Je.DELETE)],ea.prototype,"onCascadeDelete",1),ea=Ai([Me.Subscriber({channel:_t})],ea);class z1 extends xr{async getAllServices(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/services?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createService(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateService(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/services/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class sc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServiceGroups(e){return(await this.indexedDb.getAllValue(Vr)||[]).filter(r=>r.companyId===e)}async saveAllServiceGroups(e){await this.indexedDb.putBulkValue(Vr,e)}async getById(e,r){const n=await this.indexedDb.getValue(Vr,r);if((n==null?void 0:n.companyId)===e)return n;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Vr,r),new oc(this.indexedDb).updateServiceSkills(e,r,void 0)}async deleteByServiceGroupIds(e){await this.indexedDb.deleteValues(Vr,e)}async drop(){await this.indexedDb.deleteAllValues(Vr)}updateServices(e,r,n){this.getAllServiceGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.members)==null?void 0:s.findIndex(x=>x.id===r);f!=null&&(n?(l=o.members)==null||l.splice(f,1,n):(u=o.members)==null||u.splice(f,1))}),await this.saveAllServiceGroups(i))})}}class lc{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServices(e){return(await this.indexedDb.getAllValue(Br)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async saveAllServices(e){await this.indexedDb.putBulkValue(Br,e)}async getById(e,r){var n;const a=await this.indexedDb.getValue(Br,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Br,r),new sc(this.indexedDb).updateServices(e,r,void 0)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Br,e)}async drop(){await this.indexedDb.deleteAllValues(Br)}updateStaffSkills(e,r,n){this.getAllServices(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.staffsSkill)==null?void 0:s.includes(r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.staffsSkill)==null?void 0:s.findIndex(x=>x===r);f!=null&&(n?(l=o.staffsSkill)==null||l.splice(f,1,n):(u=o.staffsSkill)==null||u.splice(f,1))}),await this.saveAllServices(i))})}}var B1=Object.defineProperty,U1=Object.getOwnPropertyDescriptor,Di=(t,e,r,n)=>{for(var a=n>1?void 0:n?U1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&B1(e,r,a),a};const yn=new Me.Channel;let ta=class extends lr{constructor(t,e,r,n){super("service",n),g(this,"serviceDb"),g(this,"serviceService"),this.serviceDb=new lc(e),this.serviceService=new z1(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServices(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getService(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceId:n})}async createService(t,e,r,n){const a=await super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return yn.publish(Je.CREATE,{account:e,companyId:r,service:a}),a}async updateService(t,e,r,n,a){const i=await super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceId:n},a);return yn.publish(Je.UPDATE,{account:e,companyId:r,serviceId:n,service:i}),i}async deleteService(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,serviceId:n}),yn.publish(Je.DELETE,{account:e,companyId:r,serviceId:n})}async remoteList(t,e){return(await this.serviceService.getAllServices(t,e.account,e.companyId)).map(r=>ar.fromServiceDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceService.getById(t,e.account,e.companyId,e.serviceId);return ar.fromServiceDto(r)}async remoteCreate(t,e,r){const n=ar.toServiceDto(r),a=await this.serviceService.createService(t,e.account,e.companyId,n);return ar.fromServiceDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=ar.toServiceDto(r),a=await this.serviceService.updateService(t,e.account,e.companyId,e.serviceId,n);return ar.fromServiceDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceService.delete(t,e.account,e.companyId,e.serviceId)}async localList(t){return this.serviceDb.getAllServices(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceDb.getById(t.companyId,t.serviceId)}async localBulkSave(t,e){await this.serviceDb.saveAllServices(e)}async localDelete(t){this.checkNullable(t),await this.serviceDb.deleteById(t.companyId,t.serviceId)}async localBulkDelete(t){await this.serviceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceId)throw Error("Invalid state:"+JSON.stringify(t))}};Di([Me.Unsubscribe()],ta.prototype,"dispose",1),Di([Me.Subscribe(Je.DELETE)],ta.prototype,"onCascadeDelete",1),ta=Di([Me.Subscriber({channel:_t})],ta);class V1 extends xr{async searchContacts(e,r,n,a=100,i=!0){let o="/api/2.3/clients",s=this.getAxiosConfig(e);s.params.q=r,s.params.maxResult=a,n&&(s.params.account=n);const l=this.instance.get(o,s);if(l!==null)try{const u=await l;return i?u.items:u}catch(u){throw u}else throw new Ne(ke.INTERNAL_ERROR)}async advancedSearchContacts(e,r,n,a=100,i=!0){let o="/api/2.3/clients/search",s=this.getAxiosConfig(e);s.params.maxResult=a,n&&(s.params.account=n);const l=this.instance.post(o,r,s);if(l!==null)try{const u=await l;return i?u.items:u}catch(u){throw u}else throw new Ne(ke.INTERNAL_ERROR)}async createContact(e,r,n){const a=this.instance.post(`/api/2.0/clients?account=${encodeURIComponent(r)}`,n,this.getAxiosConfig(e));if(a!==null)try{return await a}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async updateContact(e,r,n,a){const i=this.instance.put(`/api/2.0/clients/${n}?account=${encodeURIComponent(r)}`,a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n){let a=`/api/2.3/clients/${n}?account=${encodeURIComponent(r)}`;const i=this.instance.get(a,this.getAxiosConfig(e));if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async deleteBy(e,r,n){let a=`/api/2.0/clients/${n}?account=${encodeURIComponent(r)}`;const i=this.instance.delete(a,this.getAxiosConfig(e));if(i!==null)try{await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class j1{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllContacts(){return this.indexedDb.getAllValue(hn)}async saveAllContacts(e){await this.indexedDb.putBulkValue(hn,e)}async getById(e){return this.indexedDb.getValue(hn,e)}async deleteById(e){await this.indexedDb.deleteValue(hn,e)}async drop(){this.indexedDb.deleteAllValues(hn)}}function q1(t){t||(t=[]),$1(t);let e="",r="";for(const n of t)e+=r+n,r=",";return e}function H1(){const t=[];return t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.STAFF),t.push(Xe.SERVICE),t.push(Xe.STATUS),t.push(Xe.COMPANY),t.push(Xe.OWNER),t.push(Xe.CLIENT),t.push(Xe.ONLINE_MEETING),t.push(Xe.FORM),t.push(Xe.PRICE),t.push(Xe.SOURCE),t.push(Xe.SUMMARY),t.push(Xe.NOTES),t.push(Xe.PREPARATION_DURATION),t.push(Xe.BUFFER_DURATION),t}function $1(t){t.push(Xe.ID),t.push(Xe.START),t.push(Xe.END),t.push(Xe.SOURCE)}var Xe=(t=>(t.ID="id",t.START="start",t.END="end",t.OWNER="owner",t.NOTES="notes",t.CREATED="created",t.STAFF="staff",t.HISTORY="history",t.SOURCE="source",t.REFERENCE="reference",t.SERVICE="service",t.ENCRYPTED_ID="encryptedId",t.PAID="paid",t.CLIENT="client",t.COMPANY="company",t.STATUS="status",t.SUMMARY="summary",t.RESOURCE="resource",t.SERVICE_RESOURCE="service-resource",t.PARENT="parent",t.RESCHEDULE_LINK="rescheduleLink",t.ONLINE_MEETING="onlineMeeting",t.PRICE="price",t.FORM="form",t.PREPARATION_DURATION="preparationDuration",t.BUFFER_DURATION="bufferDuration",t))(Xe||{});class G1 extends xr{async createEvent(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/appointments?account=${encodeURIComponent(r)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.post(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async updateEvent(e,r,n,a,i=!1){let o=`/api/2.1/scheduling/companies/${n}/appointments/${a.id}?account=${encodeURIComponent(r)}`;i&&(o=o+"&force=true"),a.form=await this._prepareFormFields(a.form);const s=this.instance.put(o,a,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async updateEventStatus(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/appointments/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,{status:i},this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async getExternalAppointments(e,r,n,a,i){let o=this.getAxiosConfig(e);o.params.userIds=r,o.params.start=n,o.params.end=a,o.params.timeZone=i;const s=this.instance.get("/api/2.1/scheduling/externalAppointments",o);if(s!==null)try{return(await s).items}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async getICS(e,r){let n=this.getAxiosConfig(e),a=r;if(r.indexOf("calendar.google.com/calendar")>0){const o=r.indexOf("://"),s=o>0?r.substring(o+3):r;a="/api/2.3/forward/https//"+s}const i=this.instance.get(a,n);if(i!==null)try{return await i}catch(o){throw o}else throw new Ne(ke.INTERNAL_ERROR)}async getAllEvents(e,r,n,a,i,o,s){let l=this.getAxiosConfig(e);l.params.userIds=r,l.params.start=n,l.params.end=a,l.params.levelDetail="full",i&&(l.params.personalAppointments=!0),l.params.showDeleted=o,s&&s.length>0?l.params.fields=q1(s):l.params.fields=H1().map(f=>`${f}`).join(",");const u=this.instance.get("/api/2.1/scheduling/appointments",l);if(u!==null)try{return(await u).items}catch(f){throw f}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n){let a=this.getAxiosConfig(e);a.params.levelDetail="full",n&&(a.params.personalAppointments=!0);let i=`/api/2.1/scheduling/appointments/${r}`;const o=this.instance.get(i,a);if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async _prepareFormFields(e){var r;if(e){const n=e.filter(a=>a.inputType!=="file"||a.inputType==="file"&&a.value!==void 0);try{n.forEach(a=>{var i;a.values&&(a.values=(i=a.values)==null?void 0:i.filter(o=>typeof a.value=="string"&&a.value===o.value||Array.isArray(a.value)&&a.value.indexOf(o.value)!==-1),Array.isArray(a.value)&&(a.value=void 0))});for(const a of n.filter(i=>i.inputType==="rating"&&i.value!==void 0&&i.value!==""))a.values=[{id:a.value,value:a.value,name:a.value}];for(const a of n.filter(i=>i.inputType==="file"))a.fileName=a.value.name,a.value=await Jm(a.value)}catch(a){(r=this.logger)==null||r.error("js-calendar-api","Error while prepared form fields",a)}return n}}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class W1{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async saveAllEvents(e){await this.indexedDb.putBulkValue(ur,e)}async saveEvent(e){await this.indexedDb.putValue(ur,e)}async deleteEvent(e){await this.indexedDb.deleteValue(ur,e)}async deleteByEventIds(e){await this.indexedDb.deleteValues(ur,e)}async getAllEvents(e,r,n){return(await this.indexedDb.getAllValue(ur)||[]).filter(a=>{var i,o,s;const l=e===void 0||e.includes(((i=a.staff)==null?void 0:i.userId)||"")||((o=a.staff)==null?void 0:o.userId)==="0"&&e.includes(a.staff.id);return((s=a.staff)==null?void 0:s.userId)!==void 0&&l&&(r===void 0||a.start.getTime()>=r.getTime())&&(n===void 0||a.end.getTime()<=n.getTime())})}async getFirstEventByChildEventId(e){const r=(await this.indexedDb.getAllValue(ur)||[]).filter(n=>{var a;return(a=n.events)==null?void 0:a.some(i=>i.id===e)});return(r==null?void 0:r.length)>0?r[0]:void 0}async getById(e){return this.indexedDb.getValue(ur,e)}async drop(){await this.indexedDb.deleteAllValues(ur)}}class ra extends Map{static fromStorage(e){let r=new ra;return e&&Object.entries(JSON.parse(e)).forEach(n=>{r.set(n[0],n[1])}),r}}class Y1{constructor(){g(this,"STORAGE_KEY","eventCoverage")}getCoverage(e,r,n,a){return this.getLocalCoverage(e,new cc(Ct.fromDate(r),Ct.fromDate(n)),a)}getLocalCoverage(e,r,n){let a=ra.fromStorage(localStorage.getItem(this.STORAGE_KEY)),i=[],o=[],s=[];r.getRange().forEach(y=>{e.forEach(w=>{s.push({userId:w,year:y.year,month:y.month})})}),s.forEach(y=>{let w=a.get(y.userId);K1(new Ct(y.year,y.month),w||[])?i.push(y):o.push(y)}),n==null||n.debug("js-calendar-api","Month to load (local): ",i),n==null||n.debug("js-calendar-api","Month to load (remote): ",o);let l=uc(i),u=uc(o),f=fc(l),x=fc(u);return{local:f,remote:x}}saveCoverage(e,r,n,a){return this.saveLocalCoverage(e,new cc(Ct.fromDate(r),Ct.fromDate(n)),a)}saveLocalCoverage(e,r,n){let a=ra.fromStorage(localStorage.getItem(this.STORAGE_KEY));e.forEach(i=>{let o=a==null?void 0:a.get(i),s=o?o.filter(l=>{r.isIn(l.month,l.year)}):[];r.getRange().forEach(l=>{s.push({userId:i,year:l.year,month:l.month})}),n==null||n.debug("js-calendar-api",`Add coverage ${i} ${JSON.stringify(s)}`),a==null||a.set(i,s)}),localStorage.setItem(this.STORAGE_KEY,JSON.stringify(Object.fromEntries(a)))}clearStorage(){localStorage.removeItem(this.STORAGE_KEY)}}class cc{constructor(e,r){g(this,"start"),g(this,"end"),this.start=e,this.end=r}isIn(e,r){let n=Ct.toNumber(r,e);return this.start.toNumber()<=n&&this.end.toNumber()>=n}getRange(){let e=this.start.year,r=this.start.month,n=[];do n.push(new Ct(e,r)),r++,r==12&&(r=0,e++);while(Ct.toNumber(e,r)<=this.end.toNumber());return n}}class Ct{constructor(e,r){g(this,"month"),g(this,"year"),this.year=e,this.month=r}toNumber(){return Ct.toNumber(this.year,this.month)}static fromDate(e){return new Ct(e.getFullYear(),e.getMonth())}static toNumber(e,r){return e*12+r}}const na=t=>{const e=t.month+1;return new Date(t.year+"-"+(e<10?"0"+e:e)+"-01")},Z1=(t,e,r,n)=>t===r&&Math.abs(e-n)===1||Math.abs(t-r)===1&&Math.abs(e-n)===11,K1=(t,e)=>e.filter(r=>r.year===t.year&&r.month===t.month).length>0,uc=t=>{const e=(a,i)=>Ct.toNumber(a.year,a.month)-Ct.toNumber(i.year,i.month);t.sort(e);let r=[];if(t.length===0)return r;let n;return t.forEach((a,i)=>{i===0?n={userId:[a.userId],month:a.month,year:a.year}:a.month===n.month&&a.year===n.year?n.userId.push(a.userId):(r.push(n),n={userId:[a.userId],month:a.month,year:a.year}),i===t.length-1&&r.push(n)}),r};function dc(t,e,r){return{userId:t.userId,start:{year:e.year,month:e.month},end:{year:r.month==11?r.year+1:r.year,month:r.month==11?0:r.month+1}}}const fc=t=>{let e=[];if(t.length===0)return e;let r,n;return t.sort((a,i)=>a.year<i.year?-1:a.year>i.year||a.month>i.month?1:a.month<i.month?-1:0),t.forEach((a,i)=>{if(i===0)r=a,n=a;else if(Z1(a.year,a.month,n.year,n.month))n=a;else{let o=dc(a,r,n);e.push(o),r=a,n=a}if(i===t.length-1){let o=dc(a,r,n);e.push(o)}}),e};var J1=Object.defineProperty,X1=Object.getOwnPropertyDescriptor,Ni=(t,e,r,n)=>{for(var a=n>1?void 0:n?X1(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&J1(e,r,a),a};const bn=new Me.Channel;let aa=class extends lr{constructor(t,e,r,n){super("event",n),g(this,"REPOSITORY_NAME","Appointment"),g(this,"USE_EVENT_COVERAGE",!1),g(this,"eventDb"),g(this,"eventService"),g(this,"eventMetaStorage"),this.eventDb=new W1(e),this.eventService=new G1(r,t,n),this.eventMetaStorage=new Y1}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async createEvent(t,e,r,n,a,i){const o=await this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,timeZone:a,force:i},n);return bn.publish(Je.CREATE,{account:e,companyId:r,event:o}),o}async updateEvent(t,e,r,n,a,i){let o=await this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,timeZone:a,force:i},n);return bn.publish(Je.UPDATE,{account:e,companyId:r,event:o}),o}async updateEventStatus(t,e,r,n,a){let i=await this.remoteUpdateStatus(t,{account:e,companyId:r,eventId:n},a);return bn.publish(Je.UPDATE,{account:e,companyId:r,event:i}),i}async getEvent(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.getById(t,n,{eventId:e,showPersonal:r})}async getAllEvents(t,e,r,n,a,i,o,s,l=Le.LOCAL_THEN_REMOTE){let u=!0,f=[];if(l===Le.REMOTE_ONLY)f=await this.remoteList(t,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s}),await this.localBulkSave({},f),u=!1;else if(l===Le.LOCAL_ONLY)f=await this.localList({userIds:e.join(","),start:r,end:n,showPersonal:a,showDeleted:i});else if(l==Le.REMOTE_THEN_LOCAL){const x=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s});f=x.results,u=x.local}else if(l==Le.LOCAL_THEN_REMOTE)if(this.USE_EVENT_COVERAGE){let x=await this.getEventWithCoverage(t,e,r,n,a,i,o,s,l);u=x.local,f=x.results}else f=await this.remoteList(t,{userIds:e.join(","),start:r,end:n,timeZone:o,showPersonal:a,showDeleted:i,fields:s}),await this.localBulkSave({},f),u=!1;return{local:u,results:f}}async getEventWithCoverage(t,e,r,n,a,i,o,s,l=Le.LOCAL_THEN_REMOTE){var u,f;let x=!0,y=[],w=this.eventMetaStorage.getCoverage(e,r,n,this.logger);for(const S of w.local){(u=this.logger)==null||u.debug("js-calendar-api",`getAllEvents coverage local: ${JSON.stringify(S)}`);const T=await this.list(t,Le.LOCAL_THEN_REMOTE,{userIds:e.join(","),start:na(S.start),end:na(S.end),timeZone:o,showPersonal:a,showDeleted:i,fields:s});y=y.concat(T.results)}for(const S of w.remote){(f=this.logger)==null||f.debug("js-calendar-api",`getAllEvents coverage remote: ${JSON.stringify(S)}`);const T=await this.list(t,Le.REMOTE_THEN_LOCAL,{userIds:e.join(","),start:na(S.start),end:na(S.end),timeZone:o,showPersonal:a,showDeleted:i,fields:s});y=y.concat(T.results)}return x=w.remote.length===0,{local:x,results:y}}async deleteAllEvents(){return this.eventDb.drop()}async getExternalEvent(t,e,r,n,a){const i=Bn(r,a),o=Bn(n,a);return(await this.eventService.getExternalAppointments(t,e.join(","),i,o,a)).map(s=>Rt.fromEventDto(s,fl.EXTERNAL))}async remoteList(t,e){if(!e.start||!e.end||!e.userIds)throw Error("Invalid state:"+JSON.stringify(e));const r=Bn(e.start,e.timeZone),n=Bn(e.end,e.timeZone),a=await this.eventService.getAllEvents(t,e.userIds,r,n,e.showPersonal,e.showDeleted,e.fields);return this.eventMetaStorage.saveCoverage(e.userIds.split(","),e.start,e.end,this.logger),a.map(i=>Rt.fromEventDto(i))}async remoteGet(t,e){if(!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const r=await this.eventService.getById(t,e.eventId,e.showPersonal);return Rt.fromEventDto(r)}async remoteCreate(t,e,r){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));const n=Rt.toEventDto(r,e.timeZone),a=await this.eventService.createEvent(t,e.account,e.companyId,n,e.force||!1);return Rt.fromEventDto(a)}async remoteUpdate(t,e,r){if(!e.account||!e.companyId)throw Error("Invalid state:"+JSON.stringify(e));let n=Rt.toEventDto(r,e.timeZone);const a=await this.eventService.updateEvent(t,e.account,e.companyId,n,e.force);return Rt.fromEventDto(a)}async remoteUpdateStatus(t,e,r){if(!e.account||!e.companyId||!e.eventId)throw Error("Invalid state:"+JSON.stringify(e));const n=await this.eventService.updateEventStatus(t,e.account,e.companyId,e.eventId,r);return Rt.fromEventDto(n)}async remoteDelete(t,e){throw new Error("Method not implemented.")}async localList(t){var e;return this.eventDb.getAllEvents((e=t.userIds)==null?void 0:e.split(","),t.start,t.end)}async localGet(t){if(!t.eventId)throw Error("Invalid state:"+JSON.stringify(t));return this.eventDb.getById(t.eventId)}async localBulkSave(t,e){await this.eventDb.saveAllEvents(e)}async localDelete(t){throw new Error("Method not implemented.")}async localBulkDelete(t){await this.eventDb.deleteByEventIds(t.map(e=>e.id||""))}};Ni([Me.Unsubscribe()],aa.prototype,"dispose",1),Ni([Me.Subscribe(Je.DELETE)],aa.prototype,"onCascadeDelete",1),aa=Ni([Me.Subscriber({channel:_t})],aa);var Q1=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,hc=(t,e,r,n)=>{for(var a=n>1?void 0:n?e0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&Q1(e,r,a),a};const mc=new Me.Channel;let Oi=class extends lr{constructor(t,e,r,n){super("contact",n),g(this,"contactDb"),g(this,"contactService"),this.contactDb=new j1(e),this.contactService=new V1(r,t,n)}async onCascadeChange(t,e,r,n){var a,i,o,s;r==bn&&(i=(a=t.event)==null?void 0:a.client)!=null&&i.id&&await this.cascadeDeleteItem({account:t.account,contactId:(s=(o=t.event)==null?void 0:o.client)==null?void 0:s.id})}async searchContacts(t,e,r){return this.list(t,Le.REMOTE_THEN_LOCAL,{account:r||"",query:e})}async searchContactWithPages(t,e,r,n){let a;return typeof e=="string"?a=await this.contactService.searchContacts(t,e||"",r,100,!1):a=await this.contactService.advancedSearchContacts(t,e,r,100,!1),oi.fromContactSearchDto(a)}async createContact(t,e,r){return r.address===void 0&&(r.address=new fn,r.address.country="FR"),this.create(t,Le.REMOTE_THEN_LOCAL,{account:e},r)}async updateContact(t,e,r,n){return this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,contactId:r},n)}async deleteContact(t,e,r){return this.deleteById(t,{account:e,contactId:r})}async getContact(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.getById(t,n,{account:e,contactId:r})}async remoteList(t,e){return(await this.contactService.searchContacts(t,e.query||"",e.account)).map(r=>Zt.fromContactDto(r))}async remoteGet(t,e){this.checkNullable(e);const r=await this.contactService.getById(t,e.account,e.contactId);return Zt.fromContactDto(r)}async remoteCreate(t,e,r){const n=Zt.toContactDto(r),a=await this.contactService.createContact(t,e.account,n);return Zt.fromContactDto(a)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=Zt.toContactDto(r),a=await this.contactService.updateContact(t,e.account,e.contactId,n);return Zt.fromContactDto(a)}async remoteDelete(t,e){this.checkNullable(e),await this.contactService.deleteBy(t,e.account,e.contactId)}async localList(t){return this.contactDb.getAllContacts()}async localGet(t){return this.checkNullable(t),this.contactDb.getById(t.contactId)}async localBulkSave(t,e){await this.contactDb.saveAllContacts(e)}async localDelete(t){this.checkNullable(t),await this.contactDb.deleteById(t.contactId)}localBulkDelete(t){return Promise.resolve(void 0)}checkNullable(t){if(!t.contactId)throw Error("Invalid state:"+JSON.stringify(t))}};hc([Me.Subscribe(Je.UPDATE),Me.Subscribe(Je.CREATE)],Oi.prototype,"onCascadeChange",1),Oi=hc([Me.Subscriber({channel:bn})],Oi);const pc=new Me.Channel;var t0={exports:{}};function r0(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gc={exports:{}};const n0={},a0=Object.freeze(Object.defineProperty({__proto__:null,default:n0},Symbol.toStringTag,{value:"Module"})),i0=Dp(a0);var vc;function ze(){return vc||(vc=1,function(t,e){(function(r,n){t.exports=n()})(Ae,function(){var r=r||function(n,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ae<"u"&&Ae.crypto&&(i=Ae.crypto),!i&&typeof r0=="function")try{i=i0}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function E(){}return function(A){var I;return E.prototype=A,I=new E,E.prototype=null,I}}(),l={},u=l.lib={},f=u.Base=function(){return{extend:function(E){var A=s(this);return E&&A.mixIn(E),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var A in E)E.hasOwnProperty(A)&&(this[A]=E[A]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=f.extend({init:function(E,A){E=this.words=E||[],A!=a?this.sigBytes=A:this.sigBytes=E.length*4},toString:function(E){return(E||w).stringify(this)},concat:function(E){var A=this.words,I=E.words,D=this.sigBytes,P=E.sigBytes;if(this.clamp(),D%4)for(var z=0;z<P;z++){var Y=I[z>>>2]>>>24-z%4*8&255;A[D+z>>>2]|=Y<<24-(D+z)%4*8}else for(var Q=0;Q<P;Q+=4)A[D+Q>>>2]=I[Q>>>2];return this.sigBytes+=P,this},clamp:function(){var E=this.words,A=this.sigBytes;E[A>>>2]&=4294967295<<32-A%4*8,E.length=n.ceil(A/4)},clone:function(){var E=f.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var A=[],I=0;I<E;I+=4)A.push(o());return new x.init(A,E)}}),y=l.enc={},w=y.Hex={stringify:function(E){for(var A=E.words,I=E.sigBytes,D=[],P=0;P<I;P++){var z=A[P>>>2]>>>24-P%4*8&255;D.push((z>>>4).toString(16)),D.push((z&15).toString(16))}return D.join("")},parse:function(E){for(var A=E.length,I=[],D=0;D<A;D+=2)I[D>>>3]|=parseInt(E.substr(D,2),16)<<24-D%8*4;return new x.init(I,A/2)}},S=y.Latin1={stringify:function(E){for(var A=E.words,I=E.sigBytes,D=[],P=0;P<I;P++){var z=A[P>>>2]>>>24-P%4*8&255;D.push(String.fromCharCode(z))}return D.join("")},parse:function(E){for(var A=E.length,I=[],D=0;D<A;D++)I[D>>>2]|=(E.charCodeAt(D)&255)<<24-D%4*8;return new x.init(I,A)}},T=y.Utf8={stringify:function(E){try{return decodeURIComponent(escape(S.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return S.parse(unescape(encodeURIComponent(E)))}},N=u.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=T.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var A,I=this._data,D=I.words,P=I.sigBytes,z=this.blockSize,Y=z*4,Q=P/Y;E?Q=n.ceil(Q):Q=n.max((Q|0)-this._minBufferSize,0);var B=Q*z,$=n.min(B*4,P);if(B){for(var re=0;re<B;re+=z)this._doProcessBlock(D,re);A=D.splice(0,B),I.sigBytes-=$}return new x.init(A,$)},clone:function(){var E=f.clone.call(this);return E._data=this._data.clone(),E},_minBufferSize:0});u.Hasher=N.extend({cfg:f.extend(),init:function(E){this.cfg=this.cfg.extend(E),this.reset()},reset:function(){N.reset.call(this),this._doReset()},update:function(E){return this._append(E),this._process(),this},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(E){return function(A,I){return new E.init(I).finalize(A)}},_createHmacHelper:function(E){return function(A,I){return new C.HMAC.init(E,I).finalize(A)}}});var C=l.algo={};return l}(Math);return r})}(gc)),gc.exports}var yc={exports:{}},bc;function ia(){return bc||(bc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(u,f){this.high=u,this.low=f}}),l.WordArray=o.extend({init:function(u,f){u=this.words=u||[],f!=n?this.sigBytes=f:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,f=u.length,x=[],y=0;y<f;y++){var w=u[y];x.push(w.high),x.push(w.low)}return s.create(x,this.sigBytes)},clone:function(){for(var u=o.clone.call(this),f=u.words=this.words.slice(0),x=f.length,y=0;y<x;y++)f[y]=f[y].clone();return u}})}(),r})}(yc)),yc.exports}var Ec={exports:{}},xc;function o0(){return xc||(xc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,a=n.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,f=[],x=0;x<u;x++)f[x>>>2]|=l[x]<<24-x%4*8;o.call(this,f,u)}else o.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(Ec)),Ec.exports}var wc={exports:{}},_c;function s0(){return _c||(_c=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var u=l.words,f=l.sigBytes,x=[],y=0;y<f;y+=2){var w=u[y>>>2]>>>16-y%4*8&65535;x.push(String.fromCharCode(w))}return x.join("")},parse:function(l){for(var u=l.length,f=[],x=0;x<u;x++)f[x>>>1]|=l.charCodeAt(x)<<16-x%2*16;return i.create(f,u*2)}},o.Utf16LE={stringify:function(l){for(var u=l.words,f=l.sigBytes,x=[],y=0;y<f;y+=2){var w=s(u[y>>>2]>>>16-y%4*8&65535);x.push(String.fromCharCode(w))}return x.join("")},parse:function(l){for(var u=l.length,f=[],x=0;x<u;x++)f[x>>>1]|=s(l.charCodeAt(x)<<16-x%2*16);return i.create(f,u*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(wc)),wc.exports}var Sc={exports:{}},Ic;function $r(){return Ic||(Ic=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64={stringify:function(l){var u=l.words,f=l.sigBytes,x=this._map;l.clamp();for(var y=[],w=0;w<f;w+=3)for(var S=u[w>>>2]>>>24-w%4*8&255,T=u[w+1>>>2]>>>24-(w+1)%4*8&255,N=u[w+2>>>2]>>>24-(w+2)%4*8&255,C=S<<16|T<<8|N,E=0;E<4&&w+E*.75<f;E++)y.push(x.charAt(C>>>6*(3-E)&63));var A=x.charAt(64);if(A)for(;y.length%4;)y.push(A);return y.join("")},parse:function(l){var u=l.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var y=0;y<f.length;y++)x[f.charCodeAt(y)]=y}var w=f.charAt(64);if(w){var S=l.indexOf(w);S!==-1&&(u=S)}return s(l,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,u,f){for(var x=[],y=0,w=0;w<u;w++)if(w%4){var S=f[l.charCodeAt(w-1)]<<w%4*2,T=f[l.charCodeAt(w)]>>>6-w%4*2,N=S|T;x[y>>>2]|=N<<24-y%4*8,y++}return i.create(x,y)}}(),r.enc.Base64})}(Sc)),Sc.exports}var Cc={exports:{}},Tc;function l0(){return Tc||(Tc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.enc;o.Base64url={stringify:function(l,u=!0){var f=l.words,x=l.sigBytes,y=u?this._safe_map:this._map;l.clamp();for(var w=[],S=0;S<x;S+=3)for(var T=f[S>>>2]>>>24-S%4*8&255,N=f[S+1>>>2]>>>24-(S+1)%4*8&255,C=f[S+2>>>2]>>>24-(S+2)%4*8&255,E=T<<16|N<<8|C,A=0;A<4&&S+A*.75<x;A++)w.push(y.charAt(E>>>6*(3-A)&63));var I=y.charAt(64);if(I)for(;w.length%4;)w.push(I);return w.join("")},parse:function(l,u=!0){var f=l.length,x=u?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var w=0;w<x.length;w++)y[x.charCodeAt(w)]=w}var S=x.charAt(64);if(S){var T=l.indexOf(S);T!==-1&&(f=T)}return s(l,f,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,u,f){for(var x=[],y=0,w=0;w<u;w++)if(w%4){var S=f[l.charCodeAt(w-1)]<<w%4*2,T=f[l.charCodeAt(w)]>>>6-w%4*2,N=S|T;x[y>>>2]|=N<<24-y%4*8,y++}return i.create(x,y)}}(),r.enc.Base64url})}(Cc)),Cc.exports}var kc={exports:{}},Ac;function Gr(){return Ac||(Ac=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[];(function(){for(var T=0;T<64;T++)u[T]=n.abs(n.sin(T+1))*4294967296|0})();var f=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(T,N){for(var C=0;C<16;C++){var E=N+C,A=T[E];T[E]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var I=this._hash.words,D=T[N+0],P=T[N+1],z=T[N+2],Y=T[N+3],Q=T[N+4],B=T[N+5],$=T[N+6],re=T[N+7],L=T[N+8],q=T[N+9],W=T[N+10],j=T[N+11],V=T[N+12],Z=T[N+13],se=T[N+14],ie=T[N+15],F=I[0],ee=I[1],ne=I[2],K=I[3];F=x(F,ee,ne,K,D,7,u[0]),K=x(K,F,ee,ne,P,12,u[1]),ne=x(ne,K,F,ee,z,17,u[2]),ee=x(ee,ne,K,F,Y,22,u[3]),F=x(F,ee,ne,K,Q,7,u[4]),K=x(K,F,ee,ne,B,12,u[5]),ne=x(ne,K,F,ee,$,17,u[6]),ee=x(ee,ne,K,F,re,22,u[7]),F=x(F,ee,ne,K,L,7,u[8]),K=x(K,F,ee,ne,q,12,u[9]),ne=x(ne,K,F,ee,W,17,u[10]),ee=x(ee,ne,K,F,j,22,u[11]),F=x(F,ee,ne,K,V,7,u[12]),K=x(K,F,ee,ne,Z,12,u[13]),ne=x(ne,K,F,ee,se,17,u[14]),ee=x(ee,ne,K,F,ie,22,u[15]),F=y(F,ee,ne,K,P,5,u[16]),K=y(K,F,ee,ne,$,9,u[17]),ne=y(ne,K,F,ee,j,14,u[18]),ee=y(ee,ne,K,F,D,20,u[19]),F=y(F,ee,ne,K,B,5,u[20]),K=y(K,F,ee,ne,W,9,u[21]),ne=y(ne,K,F,ee,ie,14,u[22]),ee=y(ee,ne,K,F,Q,20,u[23]),F=y(F,ee,ne,K,q,5,u[24]),K=y(K,F,ee,ne,se,9,u[25]),ne=y(ne,K,F,ee,Y,14,u[26]),ee=y(ee,ne,K,F,L,20,u[27]),F=y(F,ee,ne,K,Z,5,u[28]),K=y(K,F,ee,ne,z,9,u[29]),ne=y(ne,K,F,ee,re,14,u[30]),ee=y(ee,ne,K,F,V,20,u[31]),F=w(F,ee,ne,K,B,4,u[32]),K=w(K,F,ee,ne,L,11,u[33]),ne=w(ne,K,F,ee,j,16,u[34]),ee=w(ee,ne,K,F,se,23,u[35]),F=w(F,ee,ne,K,P,4,u[36]),K=w(K,F,ee,ne,Q,11,u[37]),ne=w(ne,K,F,ee,re,16,u[38]),ee=w(ee,ne,K,F,W,23,u[39]),F=w(F,ee,ne,K,Z,4,u[40]),K=w(K,F,ee,ne,D,11,u[41]),ne=w(ne,K,F,ee,Y,16,u[42]),ee=w(ee,ne,K,F,$,23,u[43]),F=w(F,ee,ne,K,q,4,u[44]),K=w(K,F,ee,ne,V,11,u[45]),ne=w(ne,K,F,ee,ie,16,u[46]),ee=w(ee,ne,K,F,z,23,u[47]),F=S(F,ee,ne,K,D,6,u[48]),K=S(K,F,ee,ne,re,10,u[49]),ne=S(ne,K,F,ee,se,15,u[50]),ee=S(ee,ne,K,F,B,21,u[51]),F=S(F,ee,ne,K,V,6,u[52]),K=S(K,F,ee,ne,Y,10,u[53]),ne=S(ne,K,F,ee,W,15,u[54]),ee=S(ee,ne,K,F,P,21,u[55]),F=S(F,ee,ne,K,L,6,u[56]),K=S(K,F,ee,ne,ie,10,u[57]),ne=S(ne,K,F,ee,$,15,u[58]),ee=S(ee,ne,K,F,Z,21,u[59]),F=S(F,ee,ne,K,Q,6,u[60]),K=S(K,F,ee,ne,j,10,u[61]),ne=S(ne,K,F,ee,z,15,u[62]),ee=S(ee,ne,K,F,q,21,u[63]),I[0]=I[0]+F|0,I[1]=I[1]+ee|0,I[2]=I[2]+ne|0,I[3]=I[3]+K|0},_doFinalize:function(){var T=this._data,N=T.words,C=this._nDataBytes*8,E=T.sigBytes*8;N[E>>>5]|=128<<24-E%32;var A=n.floor(C/4294967296),I=C;N[(E+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,N[(E+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.sigBytes=(N.length+1)*4,this._process();for(var D=this._hash,P=D.words,z=0;z<4;z++){var Y=P[z];P[z]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return D},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function x(T,N,C,E,A,I,D){var P=T+(N&C|~N&E)+A+D;return(P<<I|P>>>32-I)+N}function y(T,N,C,E,A,I,D){var P=T+(N&E|C&~E)+A+D;return(P<<I|P>>>32-I)+N}function w(T,N,C,E,A,I,D){var P=T+(N^C^E)+A+D;return(P<<I|P>>>32-I)+N}function S(T,N,C,E,A,I,D){var P=T+(C^(N|~E))+A+D;return(P<<I|P>>>32-I)+N}a.MD5=s._createHelper(f),a.HmacMD5=s._createHmacHelper(f)}(Math),r.MD5})}(kc)),kc.exports}var Dc={exports:{}},Nc;function Ri(){return Nc||(Nc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.Hasher,s=n.algo,l=[],u=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var y=this._hash.words,w=y[0],S=y[1],T=y[2],N=y[3],C=y[4],E=0;E<80;E++){if(E<16)l[E]=f[x+E]|0;else{var A=l[E-3]^l[E-8]^l[E-14]^l[E-16];l[E]=A<<1|A>>>31}var I=(w<<5|w>>>27)+C+l[E];E<20?I+=(S&T|~S&N)+1518500249:E<40?I+=(S^T^N)+1859775393:E<60?I+=(S&T|S&N|T&N)-1894007588:I+=(S^T^N)-899497514,C=N,N=T,T=S<<30|S>>>2,S=w,w=I}y[0]=y[0]+w|0,y[1]=y[1]+S|0,y[2]=y[2]+T|0,y[3]=y[3]+N|0,y[4]=y[4]+C|0},_doFinalize:function(){var f=this._data,x=f.words,y=this._nDataBytes*8,w=f.sigBytes*8;return x[w>>>5]|=128<<24-w%32,x[(w+64>>>9<<4)+14]=Math.floor(y/4294967296),x[(w+64>>>9<<4)+15]=y,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=o._createHelper(u),n.HmacSHA1=o._createHmacHelper(u)}(),r.SHA1})}(Dc)),Dc.exports}var Oc={exports:{}},Rc;function Lc(){return Rc||(Rc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=[],f=[];(function(){function w(C){for(var E=n.sqrt(C),A=2;A<=E;A++)if(!(C%A))return!1;return!0}function S(C){return(C-(C|0))*4294967296|0}for(var T=2,N=0;N<64;)w(T)&&(N<8&&(u[N]=S(n.pow(T,1/2))),f[N]=S(n.pow(T,1/3)),N++),T++})();var x=[],y=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(u.slice(0))},_doProcessBlock:function(w,S){for(var T=this._hash.words,N=T[0],C=T[1],E=T[2],A=T[3],I=T[4],D=T[5],P=T[6],z=T[7],Y=0;Y<64;Y++){if(Y<16)x[Y]=w[S+Y]|0;else{var Q=x[Y-15],B=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,$=x[Y-2],re=($<<15|$>>>17)^($<<13|$>>>19)^$>>>10;x[Y]=B+x[Y-7]+re+x[Y-16]}var L=I&D^~I&P,q=N&C^N&E^C&E,W=(N<<30|N>>>2)^(N<<19|N>>>13)^(N<<10|N>>>22),j=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),V=z+j+L+f[Y]+x[Y],Z=W+q;z=P,P=D,D=I,I=A+V|0,A=E,E=C,C=N,N=V+Z|0}T[0]=T[0]+N|0,T[1]=T[1]+C|0,T[2]=T[2]+E|0,T[3]=T[3]+A|0,T[4]=T[4]+I|0,T[5]=T[5]+D|0,T[6]=T[6]+P|0,T[7]=T[7]+z|0},_doFinalize:function(){var w=this._data,S=w.words,T=this._nDataBytes*8,N=w.sigBytes*8;return S[N>>>5]|=128<<24-N%32,S[(N+64>>>9<<4)+14]=n.floor(T/4294967296),S[(N+64>>>9<<4)+15]=T,w.sigBytes=S.length*4,this._process(),this._hash},clone:function(){var w=s.clone.call(this);return w._hash=this._hash.clone(),w}});a.SHA256=s._createHelper(y),a.HmacSHA256=s._createHmacHelper(y)}(Math),r.SHA256})}(Oc)),Oc.exports}var Mc={exports:{}},Pc;function c0(){return Pc||(Pc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Lc())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=n.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=s._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(Mc)),Mc.exports}var Fc={exports:{}},zc;function Bc(){return zc||(zc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ia())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Hasher,o=n.x64,s=o.Word,l=o.WordArray,u=n.algo;function f(){return s.create.apply(s,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],y=[];(function(){for(var S=0;S<80;S++)y[S]=f()})();var w=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(S,T){for(var N=this._hash.words,C=N[0],E=N[1],A=N[2],I=N[3],D=N[4],P=N[5],z=N[6],Y=N[7],Q=C.high,B=C.low,$=E.high,re=E.low,L=A.high,q=A.low,W=I.high,j=I.low,V=D.high,Z=D.low,se=P.high,ie=P.low,F=z.high,ee=z.low,ne=Y.high,K=Y.low,we=Q,_e=B,Oe=$,ye=re,Be=L,Ie=q,G=W,ae=j,_=V,b=Z,O=se,te=ie,le=F,de=ee,M=ne,c=K,v=0;v<80;v++){var d,m,h=y[v];if(v<16)m=h.high=S[T+v*2]|0,d=h.low=S[T+v*2+1]|0;else{var p=y[v-15],k=p.high,R=p.low,U=(k>>>1|R<<31)^(k>>>8|R<<24)^k>>>7,H=(R>>>1|k<<31)^(R>>>8|k<<24)^(R>>>7|k<<25),J=y[v-2],X=J.high,oe=J.low,fe=(X>>>19|oe<<13)^(X<<3|oe>>>29)^X>>>6,pe=(oe>>>19|X<<13)^(oe<<3|X>>>29)^(oe>>>6|X<<26),ve=y[v-7],Se=ve.high,Ee=ve.low,be=y[v-16],ce=be.high,Ve=be.low;d=H+Ee,m=U+Se+(d>>>0<H>>>0?1:0),d=d+pe,m=m+fe+(d>>>0<pe>>>0?1:0),d=d+Ve,m=m+ce+(d>>>0<Ve>>>0?1:0),h.high=m,h.low=d}var xe=_&O^~_&le,We=b&te^~b&de,Qe=we&Oe^we&Be^Oe&Be,mt=_e&ye^_e&Ie^ye&Ie,ge=(we>>>28|_e<<4)^(we<<30|_e>>>2)^(we<<25|_e>>>7),nt=(_e>>>28|we<<4)^(_e<<30|we>>>2)^(_e<<25|we>>>7),Ht=(_>>>14|b<<18)^(_>>>18|b<<14)^(_<<23|b>>>9),Tt=(b>>>14|_<<18)^(b>>>18|_<<14)^(b<<23|_>>>9),kt=x[v],At=kt.high,pt=kt.low,ct=c+Tt,ut=M+Ht+(ct>>>0<c>>>0?1:0),ct=ct+We,ut=ut+xe+(ct>>>0<We>>>0?1:0),ct=ct+pt,ut=ut+At+(ct>>>0<pt>>>0?1:0),ct=ct+d,ut=ut+m+(ct>>>0<d>>>0?1:0),hr=nt+mt,Wr=ge+Qe+(hr>>>0<nt>>>0?1:0);M=le,c=de,le=O,de=te,O=_,te=b,b=ae+ct|0,_=G+ut+(b>>>0<ae>>>0?1:0)|0,G=Be,ae=Ie,Be=Oe,Ie=ye,Oe=we,ye=_e,_e=ct+hr|0,we=ut+Wr+(_e>>>0<ct>>>0?1:0)|0}B=C.low=B+_e,C.high=Q+we+(B>>>0<_e>>>0?1:0),re=E.low=re+ye,E.high=$+Oe+(re>>>0<ye>>>0?1:0),q=A.low=q+Ie,A.high=L+Be+(q>>>0<Ie>>>0?1:0),j=I.low=j+ae,I.high=W+G+(j>>>0<ae>>>0?1:0),Z=D.low=Z+b,D.high=V+_+(Z>>>0<b>>>0?1:0),ie=P.low=ie+te,P.high=se+O+(ie>>>0<te>>>0?1:0),ee=z.low=ee+de,z.high=F+le+(ee>>>0<de>>>0?1:0),K=Y.low=K+c,Y.high=ne+M+(K>>>0<c>>>0?1:0)},_doFinalize:function(){var S=this._data,T=S.words,N=this._nDataBytes*8,C=S.sigBytes*8;T[C>>>5]|=128<<24-C%32,T[(C+128>>>10<<5)+30]=Math.floor(N/4294967296),T[(C+128>>>10<<5)+31]=N,S.sigBytes=T.length*4,this._process();var E=this._hash.toX32();return E},clone:function(){var S=i.clone.call(this);return S._hash=this._hash.clone(),S},blockSize:1024/32});n.SHA512=i._createHelper(w),n.HmacSHA512=i._createHmacHelper(w)}(),r.SHA512})}(Fc)),Fc.exports}var Uc={exports:{}},Vc;function u0(){return Vc||(Vc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ia(),Bc())})(Ae,function(r){return function(){var n=r,a=n.x64,i=a.Word,o=a.WordArray,s=n.algo,l=s.SHA512,u=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=l._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=l._createHelper(u),n.HmacSHA384=l._createHmacHelper(u)}(),r.SHA384})}(Uc)),Uc.exports}var jc={exports:{}},qc;function d0(){return qc||(qc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ia())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,u=l.Word,f=a.algo,x=[],y=[],w=[];(function(){for(var N=1,C=0,E=0;E<24;E++){x[N+5*C]=(E+1)*(E+2)/2%64;var A=C%5,I=(2*N+3*C)%5;N=A,C=I}for(var N=0;N<5;N++)for(var C=0;C<5;C++)y[N+5*C]=C+(2*N+3*C)%5*5;for(var D=1,P=0;P<24;P++){for(var z=0,Y=0,Q=0;Q<7;Q++){if(D&1){var B=(1<<Q)-1;B<32?Y^=1<<B:z^=1<<B-32}D&128?D=D<<1^113:D<<=1}w[P]=u.create(z,Y)}})();var S=[];(function(){for(var N=0;N<25;N++)S[N]=u.create()})();var T=f.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var N=this._state=[],C=0;C<25;C++)N[C]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(N,C){for(var E=this._state,A=this.blockSize/2,I=0;I<A;I++){var D=N[C+2*I],P=N[C+2*I+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var z=E[I];z.high^=P,z.low^=D}for(var Y=0;Y<24;Y++){for(var Q=0;Q<5;Q++){for(var B=0,$=0,re=0;re<5;re++){var z=E[Q+5*re];B^=z.high,$^=z.low}var L=S[Q];L.high=B,L.low=$}for(var Q=0;Q<5;Q++)for(var q=S[(Q+4)%5],W=S[(Q+1)%5],j=W.high,V=W.low,B=q.high^(j<<1|V>>>31),$=q.low^(V<<1|j>>>31),re=0;re<5;re++){var z=E[Q+5*re];z.high^=B,z.low^=$}for(var Z=1;Z<25;Z++){var B,$,z=E[Z],se=z.high,ie=z.low,F=x[Z];F<32?(B=se<<F|ie>>>32-F,$=ie<<F|se>>>32-F):(B=ie<<F-32|se>>>64-F,$=se<<F-32|ie>>>64-F);var ee=S[y[Z]];ee.high=B,ee.low=$}var ne=S[0],K=E[0];ne.high=K.high,ne.low=K.low;for(var Q=0;Q<5;Q++)for(var re=0;re<5;re++){var Z=Q+5*re,z=E[Z],we=S[Z],_e=S[(Q+1)%5+5*re],Oe=S[(Q+2)%5+5*re];z.high=we.high^~_e.high&Oe.high,z.low=we.low^~_e.low&Oe.low}var z=E[0],ye=w[Y];z.high^=ye.high,z.low^=ye.low}},_doFinalize:function(){var N=this._data,C=N.words;this._nDataBytes*8;var E=N.sigBytes*8,A=this.blockSize*32;C[E>>>5]|=1<<24-E%32,C[(n.ceil((E+1)/A)*A>>>5)-1]|=128,N.sigBytes=C.length*4,this._process();for(var I=this._state,D=this.cfg.outputLength/8,P=D/8,z=[],Y=0;Y<P;Y++){var Q=I[Y],B=Q.high,$=Q.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,z.push($),z.push(B)}return new o.init(z,D)},clone:function(){for(var N=s.clone.call(this),C=N._state=this._state.slice(0),E=0;E<25;E++)C[E]=C[E].clone();return N}});a.SHA3=s._createHelper(T),a.HmacSHA3=s._createHmacHelper(T)}(Math),r.SHA3})}(jc)),jc.exports}var Hc={exports:{}},$c;function f0(){return $c||($c=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){/** @preserve
50
50
  (c) 2012 by Cédric Mesnil. All rights reserved.
51
51
 
52
52
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -55,8 +55,8 @@ Vous \xEAtes num\xE9ro {'{'}number_in_line{'}'} de la file d'attente.`,placehold
55
55
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
56
56
 
57
57
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58
- */return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),w=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=o.create([0,1518500249,1859775393,2400959708,2840853838]),S=o.create([1352829926,1548603684,1836072691,2053994217,0]),T=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,z){for(var Y=0;Y<16;Y++){var Q=z+Y,B=P[Q];P[Q]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var $=this._hash.words,re=x.words,L=S.words,j=u.words,W=f.words,q=w.words,V=y.words,Z,se,ie,F,ee,ne,K,xe,_e,Oe;ne=Z=$[0],K=se=$[1],xe=ie=$[2],_e=F=$[3],Oe=ee=$[4];for(var ye,Y=0;Y<80;Y+=1)ye=Z+P[z+j[Y]]|0,Y<16?ye+=N(se,ie,F)+re[0]:Y<32?ye+=C(se,ie,F)+re[1]:Y<48?ye+=E(se,ie,F)+re[2]:Y<64?ye+=A(se,ie,F)+re[3]:ye+=I(se,ie,F)+re[4],ye=ye|0,ye=D(ye,q[Y]),ye=ye+ee|0,Z=ee,ee=F,F=D(ie,10),ie=se,se=ye,ye=ne+P[z+W[Y]]|0,Y<16?ye+=I(K,xe,_e)+L[0]:Y<32?ye+=A(K,xe,_e)+L[1]:Y<48?ye+=E(K,xe,_e)+L[2]:Y<64?ye+=C(K,xe,_e)+L[3]:ye+=N(K,xe,_e)+L[4],ye=ye|0,ye=D(ye,V[Y]),ye=ye+Oe|0,ne=Oe,Oe=_e,_e=D(xe,10),xe=K,K=ye;ye=$[1]+ie+_e|0,$[1]=$[2]+F+Oe|0,$[2]=$[3]+ee+ne|0,$[3]=$[4]+Z+K|0,$[4]=$[0]+se+xe|0,$[0]=ye},_doFinalize:function(){var P=this._data,z=P.words,Y=this._nDataBytes*8,Q=P.sigBytes*8;z[Q>>>5]|=128<<24-Q%32,z[(Q+64>>>9<<4)+14]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,P.sigBytes=(z.length+1)*4,this._process();for(var B=this._hash,$=B.words,re=0;re<5;re++){var L=$[re];$[re]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return B},clone:function(){var P=s.clone.call(this);return P._hash=this._hash.clone(),P}});function N(P,z,Y){return P^z^Y}function C(P,z,Y){return P&z|~P&Y}function E(P,z,Y){return(P|~z)^Y}function A(P,z,Y){return P&Y|z&~Y}function I(P,z,Y){return P^(z|~Y)}function D(P,z){return P<<z|P>>>32-z}a.RIPEMD160=s._createHelper(T),a.HmacRIPEMD160=s._createHmacHelper(T)}(),r.RIPEMD160})}(jc)),jc.exports}var $c={exports:{}},Gc;function Ri(){return Gc||(Gc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){(function(){var n=r,a=n.lib,i=a.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=i.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=s.parse(f));var w=u.blockSize,y=w*4;f.sigBytes>y&&(f=u.finalize(f)),f.clamp();for(var x=this._oKey=f.clone(),S=this._iKey=f.clone(),T=x.words,N=S.words,C=0;C<w;C++)T[C]^=1549556828,N[C]^=909522486;x.sigBytes=S.sigBytes=y,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,w=f.finalize(u);f.reset();var y=f.finalize(this._oKey.clone().concat(w));return y}})})()})}($c)),$c.exports}var Wc={exports:{}},Yc;function f0(){return Yc||(Yc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Oi(),Ri())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.SHA1,u=s.HMAC,f=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(w){this.cfg=this.cfg.extend(w)},compute:function(w,y){for(var x=this.cfg,S=u.create(x.hasher,w),T=o.create(),N=o.create([1]),C=T.words,E=N.words,A=x.keySize,I=x.iterations;C.length<A;){var D=S.update(y).finalize(N);S.reset();for(var P=D.words,z=P.length,Y=D,Q=1;Q<I;Q++){Y=S.finalize(Y),S.reset();for(var B=Y.words,$=0;$<z;$++)P[$]^=B[$]}T.concat(D),E[0]++}return T.sigBytes=A*4,T}});n.PBKDF2=function(w,y,x){return f.create(x).compute(w,y)}}(),r.PBKDF2})}(Wc)),Wc.exports}var Zc={exports:{}},Kc;function wr(){return Kc||(Kc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Oi(),Ri())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,w){for(var y,x=this.cfg,S=x.hasher.create(),T=o.create(),N=T.words,C=x.keySize,E=x.iterations;N.length<C;){y&&S.update(y),y=S.update(f).finalize(w),S.reset();for(var A=1;A<E;A++)y=S.finalize(y),S.reset();T.concat(y)}return T.sigBytes=C*4,T}});n.EvpKDF=function(f,w,y){return u.create(y).compute(f,w)}}(),r.EvpKDF})}(Zc)),Zc.exports}var Jc={exports:{}},Xc;function ft(){return Xc||(Xc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),wr())})(Ae,function(r){r.lib.Cipher||function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var f=u.Base64,w=a.algo,y=w.EvpKDF,x=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(B,$){return this.create(this._ENC_XFORM_MODE,B,$)},createDecryptor:function(B,$){return this.create(this._DEC_XFORM_MODE,B,$)},init:function(B,$,re){this.cfg=this.cfg.extend(re),this._xformMode=B,this._key=$,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var $=this._doFinalize();return $},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B($){return typeof $=="string"?Q:P}return function($){return{encrypt:function(re,L,j){return B(L).encrypt($,re,L,j)},decrypt:function(re,L,j){return B(L).decrypt($,re,L,j)}}}}()});i.StreamCipher=x.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var S=a.mode={},T=i.BlockCipherMode=o.extend({createEncryptor:function(B,$){return this.Encryptor.create(B,$)},createDecryptor:function(B,$){return this.Decryptor.create(B,$)},init:function(B,$){this._cipher=B,this._iv=$}}),N=S.CBC=function(){var B=T.extend();B.Encryptor=B.extend({processBlock:function(re,L){var j=this._cipher,W=j.blockSize;$.call(this,re,L,W),j.encryptBlock(re,L),this._prevBlock=re.slice(L,L+W)}}),B.Decryptor=B.extend({processBlock:function(re,L){var j=this._cipher,W=j.blockSize,q=re.slice(L,L+W);j.decryptBlock(re,L),$.call(this,re,L,W),this._prevBlock=q}});function $(re,L,j){var W,q=this._iv;q?(W=q,this._iv=n):W=this._prevBlock;for(var V=0;V<j;V++)re[L+V]^=W[V]}return B}(),C=a.pad={},E=C.Pkcs7={pad:function(B,$){for(var re=$*4,L=re-B.sigBytes%re,j=L<<24|L<<16|L<<8|L,W=[],q=0;q<L;q+=4)W.push(j);var V=s.create(W,L);B.concat(V)},unpad:function(B){var $=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=$}};i.BlockCipher=x.extend({cfg:x.cfg.extend({mode:N,padding:E}),reset:function(){var B;x.reset.call(this);var $=this.cfg,re=$.iv,L=$.mode;this._xformMode==this._ENC_XFORM_MODE?B=L.createEncryptor:(B=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,re&&re.words):(this._mode=B.call(L,this,re&&re.words),this._mode.__creator=B)},_doProcessBlock:function(B,$){this._mode.processBlock(B,$)},_doFinalize:function(){var B,$=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?($.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),$.unpad(B)),B},blockSize:128/32});var A=i.CipherParams=o.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),I=a.format={},D=I.OpenSSL={stringify:function(B){var $,re=B.ciphertext,L=B.salt;return L?$=s.create([1398893684,1701076831]).concat(L).concat(re):$=re,$.toString(f)},parse:function(B){var $,re=f.parse(B),L=re.words;return L[0]==1398893684&&L[1]==1701076831&&($=s.create(L.slice(2,4)),L.splice(0,4),re.sigBytes-=16),A.create({ciphertext:re,salt:$})}},P=i.SerializableCipher=o.extend({cfg:o.extend({format:D}),encrypt:function(B,$,re,L){L=this.cfg.extend(L);var j=B.createEncryptor(re,L),W=j.finalize($),q=j.cfg;return A.create({ciphertext:W,key:re,iv:q.iv,algorithm:B,mode:q.mode,padding:q.padding,blockSize:B.blockSize,formatter:L.format})},decrypt:function(B,$,re,L){L=this.cfg.extend(L),$=this._parse($,L.format);var j=B.createDecryptor(re,L).finalize($.ciphertext);return j},_parse:function(B,$){return typeof B=="string"?$.parse(B,this):B}}),z=a.kdf={},Y=z.OpenSSL={execute:function(B,$,re,L){L||(L=s.random(64/8));var j=y.create({keySize:$+re}).compute(B,L),W=s.create(j.words.slice($),re*4);return j.sigBytes=$*4,A.create({key:j,iv:W,salt:L})}},Q=i.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:Y}),encrypt:function(B,$,re,L){L=this.cfg.extend(L);var j=L.kdf.execute(re,B.keySize,B.ivSize);L.iv=j.iv;var W=P.encrypt.call(this,B,$,j.key,L);return W.mixIn(j),W},decrypt:function(B,$,re,L){L=this.cfg.extend(L),$=this._parse($,L.format);var j=L.kdf.execute(re,B.keySize,B.ivSize,$.salt);L.iv=j.iv;var W=P.decrypt.call(this,B,$,j.key,L);return W}})}()})}(Jc)),Jc.exports}var Qc={exports:{}},eu;function h0(){return eu||(eu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),n.Decryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=u}});function a(i,o,s,l){var u,f=this._iv;f?(u=f.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var w=0;w<s;w++)i[o+w]^=u[w]}return n}(),r.mode.CFB})}(Qc)),Qc.exports}var tu={exports:{}},ru;function m0(){return ru||(ru=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0);var w=f.slice(0);s.encryptBlock(w,0),f[l-1]=f[l-1]+1|0;for(var y=0;y<l;y++)i[o+y]^=w[y]}});return n.Decryptor=a,n}(),r.mode.CTR})}(tu)),tu.exports}var nu={exports:{}},au;function p0(){return au||(au=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){/** @preserve
58
+ */return function(n){var a=r,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,u=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),w=o.create([0,1518500249,1859775393,2400959708,2840853838]),S=o.create([1352829926,1548603684,1836072691,2053994217,0]),T=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,z){for(var Y=0;Y<16;Y++){var Q=z+Y,B=P[Q];P[Q]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var $=this._hash.words,re=w.words,L=S.words,q=u.words,W=f.words,j=x.words,V=y.words,Z,se,ie,F,ee,ne,K,we,_e,Oe;ne=Z=$[0],K=se=$[1],we=ie=$[2],_e=F=$[3],Oe=ee=$[4];for(var ye,Y=0;Y<80;Y+=1)ye=Z+P[z+q[Y]]|0,Y<16?ye+=N(se,ie,F)+re[0]:Y<32?ye+=C(se,ie,F)+re[1]:Y<48?ye+=E(se,ie,F)+re[2]:Y<64?ye+=A(se,ie,F)+re[3]:ye+=I(se,ie,F)+re[4],ye=ye|0,ye=D(ye,j[Y]),ye=ye+ee|0,Z=ee,ee=F,F=D(ie,10),ie=se,se=ye,ye=ne+P[z+W[Y]]|0,Y<16?ye+=I(K,we,_e)+L[0]:Y<32?ye+=A(K,we,_e)+L[1]:Y<48?ye+=E(K,we,_e)+L[2]:Y<64?ye+=C(K,we,_e)+L[3]:ye+=N(K,we,_e)+L[4],ye=ye|0,ye=D(ye,V[Y]),ye=ye+Oe|0,ne=Oe,Oe=_e,_e=D(we,10),we=K,K=ye;ye=$[1]+ie+_e|0,$[1]=$[2]+F+Oe|0,$[2]=$[3]+ee+ne|0,$[3]=$[4]+Z+K|0,$[4]=$[0]+se+we|0,$[0]=ye},_doFinalize:function(){var P=this._data,z=P.words,Y=this._nDataBytes*8,Q=P.sigBytes*8;z[Q>>>5]|=128<<24-Q%32,z[(Q+64>>>9<<4)+14]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360,P.sigBytes=(z.length+1)*4,this._process();for(var B=this._hash,$=B.words,re=0;re<5;re++){var L=$[re];$[re]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return B},clone:function(){var P=s.clone.call(this);return P._hash=this._hash.clone(),P}});function N(P,z,Y){return P^z^Y}function C(P,z,Y){return P&z|~P&Y}function E(P,z,Y){return(P|~z)^Y}function A(P,z,Y){return P&Y|z&~Y}function I(P,z,Y){return P^(z|~Y)}function D(P,z){return P<<z|P>>>32-z}a.RIPEMD160=s._createHelper(T),a.HmacRIPEMD160=s._createHmacHelper(T)}(),r.RIPEMD160})}(Hc)),Hc.exports}var Gc={exports:{}},Wc;function Li(){return Wc||(Wc=1,function(t,e){(function(r,n){t.exports=n(ze())})(Ae,function(r){(function(){var n=r,a=n.lib,i=a.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=i.extend({init:function(u,f){u=this._hasher=new u.init,typeof f=="string"&&(f=s.parse(f));var x=u.blockSize,y=x*4;f.sigBytes>y&&(f=u.finalize(f)),f.clamp();for(var w=this._oKey=f.clone(),S=this._iKey=f.clone(),T=w.words,N=S.words,C=0;C<x;C++)T[C]^=1549556828,N[C]^=909522486;w.sigBytes=S.sigBytes=y,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var f=this._hasher,x=f.finalize(u);f.reset();var y=f.finalize(this._oKey.clone().concat(x));return y}})})()})}(Gc)),Gc.exports}var Yc={exports:{}},Zc;function h0(){return Zc||(Zc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Ri(),Li())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.SHA1,u=s.HMAC,f=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,y){for(var w=this.cfg,S=u.create(w.hasher,x),T=o.create(),N=o.create([1]),C=T.words,E=N.words,A=w.keySize,I=w.iterations;C.length<A;){var D=S.update(y).finalize(N);S.reset();for(var P=D.words,z=P.length,Y=D,Q=1;Q<I;Q++){Y=S.finalize(Y),S.reset();for(var B=Y.words,$=0;$<z;$++)P[$]^=B[$]}T.concat(D),E[0]++}return T.sigBytes=A*4,T}});n.PBKDF2=function(x,y,w){return f.create(w).compute(x,y)}}(),r.PBKDF2})}(Yc)),Yc.exports}var Kc={exports:{}},Jc;function wr(){return Jc||(Jc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Ri(),Li())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.MD5,u=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var y,w=this.cfg,S=w.hasher.create(),T=o.create(),N=T.words,C=w.keySize,E=w.iterations;N.length<C;){y&&S.update(y),y=S.update(f).finalize(x),S.reset();for(var A=1;A<E;A++)y=S.finalize(y),S.reset();T.concat(y)}return T.sigBytes=C*4,T}});n.EvpKDF=function(f,x,y){return u.create(y).compute(f,x)}}(),r.EvpKDF})}(Kc)),Kc.exports}var Xc={exports:{}},Qc;function ft(){return Qc||(Qc=1,function(t,e){(function(r,n,a){t.exports=n(ze(),wr())})(Ae,function(r){r.lib.Cipher||function(n){var a=r,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var f=u.Base64,x=a.algo,y=x.EvpKDF,w=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(B,$){return this.create(this._ENC_XFORM_MODE,B,$)},createDecryptor:function(B,$){return this.create(this._DEC_XFORM_MODE,B,$)},init:function(B,$,re){this.cfg=this.cfg.extend(re),this._xformMode=B,this._key=$,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var $=this._doFinalize();return $},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B($){return typeof $=="string"?Q:P}return function($){return{encrypt:function(re,L,q){return B(L).encrypt($,re,L,q)},decrypt:function(re,L,q){return B(L).decrypt($,re,L,q)}}}}()});i.StreamCipher=w.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var S=a.mode={},T=i.BlockCipherMode=o.extend({createEncryptor:function(B,$){return this.Encryptor.create(B,$)},createDecryptor:function(B,$){return this.Decryptor.create(B,$)},init:function(B,$){this._cipher=B,this._iv=$}}),N=S.CBC=function(){var B=T.extend();B.Encryptor=B.extend({processBlock:function(re,L){var q=this._cipher,W=q.blockSize;$.call(this,re,L,W),q.encryptBlock(re,L),this._prevBlock=re.slice(L,L+W)}}),B.Decryptor=B.extend({processBlock:function(re,L){var q=this._cipher,W=q.blockSize,j=re.slice(L,L+W);q.decryptBlock(re,L),$.call(this,re,L,W),this._prevBlock=j}});function $(re,L,q){var W,j=this._iv;j?(W=j,this._iv=n):W=this._prevBlock;for(var V=0;V<q;V++)re[L+V]^=W[V]}return B}(),C=a.pad={},E=C.Pkcs7={pad:function(B,$){for(var re=$*4,L=re-B.sigBytes%re,q=L<<24|L<<16|L<<8|L,W=[],j=0;j<L;j+=4)W.push(q);var V=s.create(W,L);B.concat(V)},unpad:function(B){var $=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=$}};i.BlockCipher=w.extend({cfg:w.cfg.extend({mode:N,padding:E}),reset:function(){var B;w.reset.call(this);var $=this.cfg,re=$.iv,L=$.mode;this._xformMode==this._ENC_XFORM_MODE?B=L.createEncryptor:(B=L.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,re&&re.words):(this._mode=B.call(L,this,re&&re.words),this._mode.__creator=B)},_doProcessBlock:function(B,$){this._mode.processBlock(B,$)},_doFinalize:function(){var B,$=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?($.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),$.unpad(B)),B},blockSize:128/32});var A=i.CipherParams=o.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),I=a.format={},D=I.OpenSSL={stringify:function(B){var $,re=B.ciphertext,L=B.salt;return L?$=s.create([1398893684,1701076831]).concat(L).concat(re):$=re,$.toString(f)},parse:function(B){var $,re=f.parse(B),L=re.words;return L[0]==1398893684&&L[1]==1701076831&&($=s.create(L.slice(2,4)),L.splice(0,4),re.sigBytes-=16),A.create({ciphertext:re,salt:$})}},P=i.SerializableCipher=o.extend({cfg:o.extend({format:D}),encrypt:function(B,$,re,L){L=this.cfg.extend(L);var q=B.createEncryptor(re,L),W=q.finalize($),j=q.cfg;return A.create({ciphertext:W,key:re,iv:j.iv,algorithm:B,mode:j.mode,padding:j.padding,blockSize:B.blockSize,formatter:L.format})},decrypt:function(B,$,re,L){L=this.cfg.extend(L),$=this._parse($,L.format);var q=B.createDecryptor(re,L).finalize($.ciphertext);return q},_parse:function(B,$){return typeof B=="string"?$.parse(B,this):B}}),z=a.kdf={},Y=z.OpenSSL={execute:function(B,$,re,L){L||(L=s.random(64/8));var q=y.create({keySize:$+re}).compute(B,L),W=s.create(q.words.slice($),re*4);return q.sigBytes=$*4,A.create({key:q,iv:W,salt:L})}},Q=i.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:Y}),encrypt:function(B,$,re,L){L=this.cfg.extend(L);var q=L.kdf.execute(re,B.keySize,B.ivSize);L.iv=q.iv;var W=P.encrypt.call(this,B,$,q.key,L);return W.mixIn(q),W},decrypt:function(B,$,re,L){L=this.cfg.extend(L),$=this._parse($,L.format);var q=L.kdf.execute(re,B.keySize,B.ivSize,$.salt);L.iv=q.iv;var W=P.decrypt.call(this,B,$,q.key,L);return W}})}()})}(Xc)),Xc.exports}var eu={exports:{}},tu;function m0(){return tu||(tu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),n.Decryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=u}});function a(i,o,s,l){var u,f=this._iv;f?(u=f.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var x=0;x<s;x++)i[o+x]^=u[x]}return n}(),r.mode.CFB})}(eu)),eu.exports}var ru={exports:{}},nu;function p0(){return nu||(nu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,f=this._counter;u&&(f=this._counter=u.slice(0),this._iv=void 0);var x=f.slice(0);s.encryptBlock(x,0),f[l-1]=f[l-1]+1|0;for(var y=0;y<l;y++)i[o+y]^=x[y]}});return n.Decryptor=a,n}(),r.mode.CTR})}(ru)),ru.exports}var au={exports:{}},iu;function g0(){return iu||(iu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){/** @preserve
59
59
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
60
60
  * derived from CryptoJS.mode.CTR
61
61
  * Jan Hruby jhruby.web@gmail.com
62
- */return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,u=s>>8&255,f=s&255;l===255?(l=0,u===255?(u=0,f===255?f=0:++f):++u):++l,s=0,s+=l<<16,s+=u<<8,s+=f}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=n.Encryptor=n.extend({processBlock:function(s,l){var u=this._cipher,f=u.blockSize,w=this._iv,y=this._counter;w&&(y=this._counter=w.slice(0),this._iv=void 0),i(y);var x=y.slice(0);u.encryptBlock(x,0);for(var S=0;S<f;S++)s[l+S]^=x[S]}});return n.Decryptor=o,n}(),r.mode.CTRGladman})}(nu)),nu.exports}var iu={exports:{}},ou;function g0(){return ou||(ou=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,f=this._keystream;u&&(f=this._keystream=u.slice(0),this._iv=void 0),s.encryptBlock(f,0);for(var w=0;w<l;w++)i[o+w]^=f[w]}});return n.Decryptor=a,n}(),r.mode.OFB})}(iu)),iu.exports}var su={exports:{}},lu;function v0(){return lu||(lu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),n.Decryptor=n.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),n}(),r.mode.ECB})}(su)),su.exports}var cu={exports:{}},uu;function y0(){return uu||(uu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.AnsiX923={pad:function(n,a){var i=n.sigBytes,o=a*4,s=o-i%o,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Ansix923})}(cu)),cu.exports}var du={exports:{}},fu;function b0(){return fu||(fu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.Iso10126={pad:function(n,a){var i=a*4,o=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Iso10126})}(du)),du.exports}var hu={exports:{}},mu;function E0(){return mu||(mu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.Iso97971={pad:function(n,a){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,a)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(hu)),hu.exports}var pu={exports:{}},gu;function w0(){return gu||(gu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.ZeroPadding={pad:function(n,a){var i=a*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var a=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(pu)),pu.exports}var vu={exports:{}},yu;function x0(){return yu||(yu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(vu)),vu.exports}var bu={exports:{}},Eu;function _0(){return Eu||(Eu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,u=a.format;u.Hex={stringify:function(f){return f.ciphertext.toString(l)},parse:function(f){var w=l.parse(f);return o.create({ciphertext:w})}}}(),r.format.Hex})}(bu)),bu.exports}var wu={exports:{}},xu;function S0(){return xu||(xu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Hr(),$r(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,o=n.algo,s=[],l=[],u=[],f=[],w=[],y=[],x=[],S=[],T=[],N=[];(function(){for(var A=[],I=0;I<256;I++)I<128?A[I]=I<<1:A[I]=I<<1^283;for(var D=0,P=0,I=0;I<256;I++){var z=P^P<<1^P<<2^P<<3^P<<4;z=z>>>8^z&255^99,s[D]=z,l[z]=D;var Y=A[D],Q=A[Y],B=A[Q],$=A[z]*257^z*16843008;u[D]=$<<24|$>>>8,f[D]=$<<16|$>>>16,w[D]=$<<8|$>>>24,y[D]=$;var $=B*16843009^Q*65537^Y*257^D*16843008;x[z]=$<<24|$>>>8,S[z]=$<<16|$>>>16,T[z]=$<<8|$>>>24,N[z]=$,D?(D=Y^A[A[A[B^Y]]],P^=A[A[P]]):D=P=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],E=o.AES=i.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,D=I.words,P=I.sigBytes/4,z=this._nRounds=P+6,Y=(z+1)*4,Q=this._keySchedule=[],B=0;B<Y;B++)B<P?Q[B]=D[B]:(A=Q[B-1],B%P?P>6&&B%P==4&&(A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255]):(A=A<<8|A>>>24,A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255],A^=C[B/P|0]<<24),Q[B]=Q[B-P]^A);for(var $=this._invKeySchedule=[],re=0;re<Y;re++){var B=Y-re;if(re%4)var A=Q[B];else var A=Q[B-4];re<4||B<=4?$[re]=A:$[re]=x[s[A>>>24]]^S[s[A>>>16&255]]^T[s[A>>>8&255]]^N[s[A&255]]}}},encryptBlock:function(A,I){this._doCryptBlock(A,I,this._keySchedule,u,f,w,y,s)},decryptBlock:function(A,I){var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D,this._doCryptBlock(A,I,this._invKeySchedule,x,S,T,N,l);var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D},_doCryptBlock:function(A,I,D,P,z,Y,Q,B){for(var $=this._nRounds,re=A[I]^D[0],L=A[I+1]^D[1],j=A[I+2]^D[2],W=A[I+3]^D[3],q=4,V=1;V<$;V++){var Z=P[re>>>24]^z[L>>>16&255]^Y[j>>>8&255]^Q[W&255]^D[q++],se=P[L>>>24]^z[j>>>16&255]^Y[W>>>8&255]^Q[re&255]^D[q++],ie=P[j>>>24]^z[W>>>16&255]^Y[re>>>8&255]^Q[L&255]^D[q++],F=P[W>>>24]^z[re>>>16&255]^Y[L>>>8&255]^Q[j&255]^D[q++];re=Z,L=se,j=ie,W=F}var Z=(B[re>>>24]<<24|B[L>>>16&255]<<16|B[j>>>8&255]<<8|B[W&255])^D[q++],se=(B[L>>>24]<<24|B[j>>>16&255]<<16|B[W>>>8&255]<<8|B[re&255])^D[q++],ie=(B[j>>>24]<<24|B[W>>>16&255]<<16|B[re>>>8&255]<<8|B[L&255])^D[q++],F=(B[W>>>24]<<24|B[re>>>16&255]<<16|B[L>>>8&255]<<8|B[j&255])^D[q++];A[I]=Z,A[I+1]=se,A[I+2]=ie,A[I+3]=F},keySize:256/32});n.AES=i._createHelper(E)}(),r.AES})}(wu)),wu.exports}var _u={exports:{}},Su;function I0(){return Su||(Su=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Hr(),$r(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],w=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=s.DES=o.extend({_doReset:function(){for(var C=this._key,E=C.words,A=[],I=0;I<56;I++){var D=l[I]-1;A[I]=E[D>>>5]>>>31-D%32&1}for(var P=this._subKeys=[],z=0;z<16;z++){for(var Y=P[z]=[],Q=f[z],I=0;I<24;I++)Y[I/6|0]|=A[(u[I]-1+Q)%28]<<31-I%6,Y[4+(I/6|0)]|=A[28+(u[I+24]-1+Q)%28]<<31-I%6;Y[0]=Y[0]<<1|Y[0]>>>31;for(var I=1;I<7;I++)Y[I]=Y[I]>>>(I-1)*4+3;Y[7]=Y[7]<<5|Y[7]>>>27}for(var B=this._invSubKeys=[],I=0;I<16;I++)B[I]=P[15-I]},encryptBlock:function(C,E){this._doCryptBlock(C,E,this._subKeys)},decryptBlock:function(C,E){this._doCryptBlock(C,E,this._invSubKeys)},_doCryptBlock:function(C,E,A){this._lBlock=C[E],this._rBlock=C[E+1],S.call(this,4,252645135),S.call(this,16,65535),T.call(this,2,858993459),T.call(this,8,16711935),S.call(this,1,1431655765);for(var I=0;I<16;I++){for(var D=A[I],P=this._lBlock,z=this._rBlock,Y=0,Q=0;Q<8;Q++)Y|=w[Q][((z^D[Q])&y[Q])>>>0];this._lBlock=z,this._rBlock=P^Y}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,S.call(this,1,1431655765),T.call(this,8,16711935),T.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),C[E]=this._lBlock,C[E+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(C,E){var A=(this._lBlock>>>C^this._rBlock)&E;this._rBlock^=A,this._lBlock^=A<<C}function T(C,E){var A=(this._rBlock>>>C^this._lBlock)&E;this._lBlock^=A,this._rBlock^=A<<C}n.DES=o._createHelper(x);var N=s.TripleDES=o.extend({_doReset:function(){var C=this._key,E=C.words;if(E.length!==2&&E.length!==4&&E.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=E.slice(0,2),I=E.length<4?E.slice(0,2):E.slice(2,4),D=E.length<6?E.slice(0,2):E.slice(4,6);this._des1=x.createEncryptor(i.create(A)),this._des2=x.createEncryptor(i.create(I)),this._des3=x.createEncryptor(i.create(D))},encryptBlock:function(C,E){this._des1.encryptBlock(C,E),this._des2.decryptBlock(C,E),this._des3.encryptBlock(C,E)},decryptBlock:function(C,E){this._des3.decryptBlock(C,E),this._des2.encryptBlock(C,E),this._des1.decryptBlock(C,E)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=o._createHelper(N)}(),r.TripleDES})}(_u)),_u.exports}var Iu={exports:{}},Cu;function C0(){return Cu||(Cu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Hr(),$r(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=o.RC4=i.extend({_doReset:function(){for(var f=this._key,w=f.words,y=f.sigBytes,x=this._S=[],S=0;S<256;S++)x[S]=S;for(var S=0,T=0;S<256;S++){var N=S%y,C=w[N>>>2]>>>24-N%4*8&255;T=(T+x[S]+C)%256;var E=x[S];x[S]=x[T],x[T]=E}this._i=this._j=0},_doProcessBlock:function(f,w){f[w]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var f=this._S,w=this._i,y=this._j,x=0,S=0;S<4;S++){w=(w+1)%256,y=(y+f[w])%256;var T=f[w];f[w]=f[y],f[y]=T,x|=f[(f[w]+f[y])%256]<<24-S*8}return this._i=w,this._j=y,x}n.RC4=i._createHelper(s);var u=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)l.call(this)}});n.RC4Drop=i._createHelper(u)}(),r.RC4})}(Iu)),Iu.exports}var Tu={exports:{}},ku;function T0(){return ku||(ku=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Hr(),$r(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],f=o.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,x=this.cfg.iv,S=0;S<4;S++)y[S]=(y[S]<<8|y[S]>>>24)&16711935|(y[S]<<24|y[S]>>>8)&4278255360;var T=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],N=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)w.call(this);for(var S=0;S<8;S++)N[S]^=T[S+4&7];if(x){var C=x.words,E=C[0],A=C[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=I>>>16|D&4294901760,z=D<<16|I&65535;N[0]^=I,N[1]^=P,N[2]^=D,N[3]^=z,N[4]^=I,N[5]^=P,N[6]^=D,N[7]^=z;for(var S=0;S<4;S++)w.call(this)}},_doProcessBlock:function(y,x){var S=this._X;w.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)s[T]=(s[T]<<8|s[T]>>>24)&16711935|(s[T]<<24|s[T]>>>8)&4278255360,y[x+T]^=s[T]},blockSize:128/32,ivSize:64/32});function w(){for(var y=this._X,x=this._C,S=0;S<8;S++)l[S]=x[S];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<l[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<l[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<l[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<l[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<l[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<l[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<l[6]>>>0?1:0)|0,this._b=x[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+x[S],N=T&65535,C=T>>>16,E=((N*N>>>17)+N*C>>>15)+C*C,A=((T&4294901760)*T|0)+((T&65535)*T|0);u[S]=E^A}y[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,y[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,y[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,y[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,y[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,y[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,y[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,y[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=i._createHelper(f)}(),r.Rabbit})}(Tu)),Tu.exports}var Au={exports:{}},Du;function k0(){return Du||(Du=1,function(t,e){(function(r,n,a){t.exports=n(ze(),Hr(),$r(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],f=o.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,x=this.cfg.iv,S=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],T=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var N=0;N<4;N++)w.call(this);for(var N=0;N<8;N++)T[N]^=S[N+4&7];if(x){var C=x.words,E=C[0],A=C[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=I>>>16|D&4294901760,z=D<<16|I&65535;T[0]^=I,T[1]^=P,T[2]^=D,T[3]^=z,T[4]^=I,T[5]^=P,T[6]^=D,T[7]^=z;for(var N=0;N<4;N++)w.call(this)}},_doProcessBlock:function(y,x){var S=this._X;w.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)s[T]=(s[T]<<8|s[T]>>>24)&16711935|(s[T]<<24|s[T]>>>8)&4278255360,y[x+T]^=s[T]},blockSize:128/32,ivSize:64/32});function w(){for(var y=this._X,x=this._C,S=0;S<8;S++)l[S]=x[S];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<l[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<l[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<l[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<l[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<l[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<l[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<l[6]>>>0?1:0)|0,this._b=x[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+x[S],N=T&65535,C=T>>>16,E=((N*N>>>17)+N*C>>>15)+C*C,A=((T&4294901760)*T|0)+((T&65535)*T|0);u[S]=E^A}y[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,y[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,y[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,y[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,y[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,y[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,y[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,y[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=i._createHelper(f)}(),r.RabbitLegacy})}(Au)),Au.exports}(function(t,e){(function(r,n,a){t.exports=n(ze(),aa(),i0(),o0(),Hr(),s0(),$r(),Oi(),Rc(),l0(),zc(),c0(),u0(),d0(),Ri(),f0(),wr(),ft(),h0(),m0(),p0(),g0(),v0(),y0(),b0(),E0(),w0(),x0(),_0(),S0(),I0(),C0(),T0(),k0())})(Ae,function(r){return r})})(e0);class A0 extends Er{async getAllServiceGroups(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/serviceGroups?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createServiceGroup(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateServiceGroup(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}var D0=Object.defineProperty,N0=Object.getOwnPropertyDescriptor,Li=(t,e,r,n)=>{for(var a=n>1?void 0:n?N0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&D0(e,r,a),a};let ia=class extends lr{constructor(t,e,r,n){super("serviceGroup",n),g(this,"serviceGroupDb"),g(this,"serviceGroupService"),this.serviceGroupDb=new oc(e),this.serviceGroupService=new A0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllServiceGroups(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getServiceGroup(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceGroupId:n})}async createServiceGroup(t,e,r,n){return super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n)}async updateServiceGroup(t,e,r,n,a){return super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceGroupId:n},a)}async deleteServiceGroup(t,e,r,n){return this.deleteById(t,{account:e,companyId:r,serviceGroupId:n})}async remoteList(t,e){return(await this.serviceGroupService.getAllServiceGroups(t,e.account,e.companyId)).map(r=>ir.fromServiceGroupDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceGroupService.getById(t,e.account,e.companyId,e.serviceGroupId);return ir.fromServiceGroupDto(r,e.companyId)}async remoteCreate(t,e,r){const n=ir.toServiceGroupDto(r),a=await this.serviceGroupService.createServiceGroup(t,e.account,e.companyId,n);return ir.fromServiceGroupDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=ir.toServiceGroupDto(r),a=await this.serviceGroupService.updateServiceGroup(t,e.account,e.companyId,e.serviceGroupId,n);return ir.fromServiceGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceGroupService.delete(t,e.account,e.companyId,e.serviceGroupId)}async localList(t){return this.serviceGroupDb.getAllServiceGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceGroupDb.getById(t.companyId,t.serviceGroupId)}async localBulkSave(t,e){await this.serviceGroupDb.saveAllServiceGroups(e)}async localDelete(t){this.checkNullable(t),await this.serviceGroupDb.deleteById(t.companyId,t.serviceGroupId)}async localBulkDelete(t){await this.serviceGroupDb.deleteByServiceGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Li([Me.Unsubscribe()],ia.prototype,"dispose",1),Li([Me.Subscribe(Je.DELETE)],ia.prototype,"onCascadeDelete",1),ia=Li([Me.Subscriber({channel:_t})],ia);class O0 extends Er{async getAllStaffGroups(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/staffGroups?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createStaffGroup(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateStaffGroup(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class R0{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllStaffGroups(e){return(await this.indexedDb.getAllValue(Vr)||[]).filter(r=>r.companyId===e)}async saveAllStaffGroups(e){await this.indexedDb.putBulkValue(Vr,e)}async getById(e,r){const n=await this.indexedDb.getValue(Vr,r);if((n==null?void 0:n.companyId)===e)return n;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Vr,r),await new sc(this.indexedDb).updateStaffSkills(e,r,void 0)}async deleteByStaffGroupIds(e){await this.indexedDb.deleteValues(Vr,e)}async drop(){await this.indexedDb.deleteAllValues(Vr)}updateStaffs(e,r,n){this.getAllStaffGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.members)==null?void 0:s.findIndex(w=>w.id===r);f!=null&&(n?(l=o.members)==null||l.splice(f,1,n):(u=o.members)==null||u.splice(f,1))}),await this.saveAllStaffGroups(i))})}}var L0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,Mi=(t,e,r,n)=>{for(var a=n>1?void 0:n?M0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&L0(e,r,a),a};let oa=class extends lr{constructor(t,e,r,n){super("staffGroup",n),g(this,"staffGroupDb"),g(this,"staffGroupService"),this.staffGroupDb=new R0(e),this.staffGroupService=new O0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllStaffGroups(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getStaffGroup(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,staffGroupId:n})}async createStaffGroup(t,e,r,n){return this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n)}async updateStaffGroup(t,e,r,n,a){return this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,staffGroupId:n},a)}async deleteStaffGroup(t,e,r,n){return this.deleteById(t,{account:e,companyId:r,staffGroupId:n})}async remoteList(t,e){return(await this.staffGroupService.getAllStaffGroups(t,e.account,e.companyId)).map(r=>or.fromStaffGroupDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.staffGroupService.getById(t,e.account,e.companyId,e.staffGroupId);return or.fromStaffGroupDto(r,e.companyId)}async remoteCreate(t,e,r){const n=or.toStaffGroupDto(r),a=await this.staffGroupService.createStaffGroup(t,e.account,e.companyId,n);return or.fromStaffGroupDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=or.toStaffGroupDto(r),a=await this.staffGroupService.updateStaffGroup(t,e.account,e.companyId,e.staffGroupId,n);return or.fromStaffGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.staffGroupService.delete(t,e.account,e.companyId,e.staffGroupId)}async localList(t){return this.staffGroupDb.getAllStaffGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffGroupDb.getById(t.companyId,t.staffGroupId)}async localBulkSave(t,e){await this.staffGroupDb.saveAllStaffGroups(e)}async localDelete(t){this.checkNullable(t),await this.staffGroupDb.deleteById(t.companyId,t.staffGroupId)}async localBulkDelete(t){await this.staffGroupDb.deleteByStaffGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Mi([Me.Unsubscribe()],oa.prototype,"dispose",1),Mi([Me.Subscribe(Je.DELETE)],oa.prototype,"onCascadeDelete",1),oa=Mi([Me.Subscriber({channel:_t})],oa);class P0 extends Er{async getAllServiceResources(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/service-resources?account=${r}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createService(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources?account=${r}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateService(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class F0{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServiceResources(e){return(await this.indexedDb.getAllValue(Br)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async saveAllServiceResources(e){await this.indexedDb.putBulkValue(Br,e)}async getById(e,r){var n;const a=await this.indexedDb.getValue(Br,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Br,r)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Br,e)}async drop(){await this.indexedDb.deleteAllValues(Br)}}var z0=Object.defineProperty,B0=Object.getOwnPropertyDescriptor,Pi=(t,e,r,n)=>{for(var a=n>1?void 0:n?B0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&z0(e,r,a),a};const Fi=new Me.Channel;let sa=class extends lr{constructor(t,e,r,n){super("serviceResource",n),g(this,"serviceResourceDb"),g(this,"serviceResourceService"),this.serviceResourceDb=new F0(e),this.serviceResourceService=new P0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServiceResources(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getServiceResource(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceResourceId:n})}async createServiceResource(t,e,r,n){const a=await super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return Fi.publish(Je.CREATE,{account:e,companyId:r,resource:a}),a}async updateServiceResource(t,e,r,n,a){const i=await super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceResourceId:n},a);return Fi.publish(Je.UPDATE,{account:e,companyId:r,serviceResourceId:n,resource:i}),i}async deleteServiceResource(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,serviceResourceId:n}),Fi.publish(Je.DELETE,{account:e,companyId:r,serviceResourceId:n})}async remoteList(t,e){return(await this.serviceResourceService.getAllServiceResources(t,e.account,e.companyId)).map(r=>cr.fromServiceResourceDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceResourceService.getById(t,e.account,e.companyId,e.serviceResourceId);return cr.fromServiceResourceDto(r,e.companyId)}async remoteCreate(t,e,r){const n=cr.toServiceResourceDto(r),a=await this.serviceResourceService.createService(t,e.account,e.companyId,n);return cr.fromServiceResourceDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=cr.toServiceResourceDto(r),a=await this.serviceResourceService.updateService(t,e.account,e.companyId,e.serviceResourceId,n);return cr.fromServiceResourceDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceResourceService.delete(t,e.account,e.companyId,e.serviceResourceId)}async localList(t){return this.serviceResourceDb.getAllServiceResources(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceResourceDb.getById(t.companyId,t.serviceResourceId)}async localBulkSave(t,e){await this.serviceResourceDb.saveAllServiceResources(e)}async localDelete(t){this.checkNullable(t),await this.serviceResourceDb.deleteById(t.companyId,t.serviceResourceId)}async localBulkDelete(t){await this.serviceResourceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceResourceId)throw Error("Invalid state:"+JSON.stringify(t))}};Pi([Me.Unsubscribe()],sa.prototype,"dispose",1),Pi([Me.Subscribe(Je.DELETE)],sa.prototype,"onCascadeDelete",1),sa=Pi([Me.Subscriber({channel:_t})],sa);var U0=Object.defineProperty,V0=Object.getOwnPropertyDescriptor,zi=(t,e,r,n)=>{for(var a=n>1?void 0:n?V0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&U0(e,r,a),a};let la=class{constructor(t){g(this,"logger"),this.logger=t}dispose(){}getItem(t){return localStorage.getItem(t)}setItem(t,e){localStorage.setItem(t,e)}clear(){localStorage.clear()}removeItem(t){localStorage.removeItem(t)}getItems(t){const e=localStorage.getItem(t);return e&&JSON.parse(e)}setItems(t,e){localStorage.setItem(t,JSON.stringify(e))}async _onCascadeDelete(t,e,r,n){var a,i,o,s,l;switch(r){case _t:(a=this.logger)==null||a.debug("js-calendar-api","Company deleted (clean localStorage)",t),this._cleanRecentsCompanies(t.companyId);break;case vn:(i=this.logger)==null||i.debug("js-calendar-api","Service deleted (clean localStorage)",t),this._cleanRecentsServices(t.serviceId);break;case gn:(o=this.logger)==null||o.debug("js-calendar-api","Staff deleted (clean localStorage)",t),this._cleanRecentsStaffs(t.staffId);break;case hc:(s=this.logger)==null||s.debug("js-calendar-api","Contact deleted (clean localStorage)",t),this._cleanRecentsContacts(t.contactId);break;case mc:(l=this.logger)==null||l.debug("js-calendar-api","User deleted (clean localStorage)",t),this._cleanRecentsUsers(t.userId);break}}_cleanRecentsCompanies(t){const e=this.getItems(Bt.RECENT_COMPANIES),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_COMPANIES,r||[])}_cleanRecentsServices(t){const e=this.getItems(Bt.RECENT_SERVICES),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_SERVICES,r||[])}_cleanRecentsStaffs(t){const e=this.getItems(Bt.RECENT_STAFFS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_STAFFS,r||[])}_cleanRecentsContacts(t){const e=this.getItems(Bt.RECENT_CONTACTS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_CONTACTS,r||[])}_cleanRecentsUsers(t){const e=this.getItems(Bt.RECENT_USERS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_USERS,r||[])}};zi([Me.Unsubscribe()],la.prototype,"dispose",1),zi([Me.Subscribe(Je.DELETE)],la.prototype,"_onCascadeDelete",1),la=zi([Me.Subscriber({channel:_t}),Me.Subscriber({channel:vn}),Me.Subscriber({channel:gn}),Me.Subscriber({channel:hc}),Me.Subscriber({channel:mc})],la);var Bt=(t=>(t.RECENT_SERVICES="recent_services",t.RECENT_STAFFS="recent_staffs",t.RECENT_CONTACTS="recent_contacts",t.RECENT_COMPANIES="recent_companies",t.RECENT_USERS="recent_users",t))(Bt||{});let ca;const q0=t=>(ca=t,Kt.createPinia()),j0=Kt.defineStore({id:"account",state:()=>({account:{}}),actions:{async updateAccount(t){if(!!t)return ca.updateAccount(t).then(e=>{const r=e;r.picture&&(r.picture=new Pr(r.picture.mimeType,r.picture.url.length>0?r.picture.url+"?"+Math.random().toString(32):r.picture.url)),this.account=r})},fetchAccount(){ca.getAccount().then(t=>{t.result&&(this.account=t.result)})},async updatePassword(t,e){return ca.updatePassword(t,e)}}});class H0{constructor(e){Bi(this,"internalState");Bi(this,"listeners",[]);this.internalState=e}get state(){return this.internalState}changeState(e){this.internalState=e,this.listeners.length>0&&this.listeners.forEach(r=>r(this.state))}subscribe(e){this.listeners.push(e)}unsubscribe(e){const r=this.listeners.indexOf(e);r>-1&&this.listeners.splice(r,1)}}const $0=[{label:"English",value:"en"},{label:"Fran\xE7ais",value:"fr"},{label:"Espa\xF1ol",value:"es"},{label:"Portugu\xEAs",value:"pt"},{label:"Deutsch",value:"de"},{label:"Nederlands",value:"nl"},{label:"Italiano",value:"it"},{label:"\u65E5\u672C\u8A9E",value:"ja"}];He.Bloc=H0,He.QRCode=Yf,He.createStore=q0,He.dateToString=Ou,He.languages=$0,He.onPictureUpdated=Ru,He.pad=Fu,He.parseToInt=Pu,He.readBlobFromUrl=Mu,He.useAccountStore=j0,He.useBlocState=Nu,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
62
+ */return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,u=s>>8&255,f=s&255;l===255?(l=0,u===255?(u=0,f===255?f=0:++f):++u):++l,s=0,s+=l<<16,s+=u<<8,s+=f}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=n.Encryptor=n.extend({processBlock:function(s,l){var u=this._cipher,f=u.blockSize,x=this._iv,y=this._counter;x&&(y=this._counter=x.slice(0),this._iv=void 0),i(y);var w=y.slice(0);u.encryptBlock(w,0);for(var S=0;S<f;S++)s[l+S]^=w[S]}});return n.Decryptor=o,n}(),r.mode.CTRGladman})}(au)),au.exports}var ou={exports:{}},su;function v0(){return su||(su=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,u=this._iv,f=this._keystream;u&&(f=this._keystream=u.slice(0),this._iv=void 0),s.encryptBlock(f,0);for(var x=0;x<l;x++)i[o+x]^=f[x]}});return n.Decryptor=a,n}(),r.mode.OFB})}(ou)),ou.exports}var lu={exports:{}},cu;function y0(){return cu||(cu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),n.Decryptor=n.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),n}(),r.mode.ECB})}(lu)),lu.exports}var uu={exports:{}},du;function b0(){return du||(du=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.AnsiX923={pad:function(n,a){var i=n.sigBytes,o=a*4,s=o-i%o,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Ansix923})}(uu)),uu.exports}var fu={exports:{}},hu;function E0(){return hu||(hu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.Iso10126={pad:function(n,a){var i=a*4,o=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Iso10126})}(fu)),fu.exports}var mu={exports:{}},pu;function x0(){return pu||(pu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.Iso97971={pad:function(n,a){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,a)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(mu)),mu.exports}var gu={exports:{}},vu;function w0(){return vu||(vu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.ZeroPadding={pad:function(n,a){var i=a*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var a=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})}(gu)),gu.exports}var yu={exports:{}},bu;function _0(){return bu||(bu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(yu)),yu.exports}var Eu={exports:{}},xu;function S0(){return xu||(xu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),ft())})(Ae,function(r){return function(n){var a=r,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,u=a.format;u.Hex={stringify:function(f){return f.ciphertext.toString(l)},parse:function(f){var x=l.parse(f);return o.create({ciphertext:x})}}}(),r.format.Hex})}(Eu)),Eu.exports}var wu={exports:{}},_u;function I0(){return _u||(_u=1,function(t,e){(function(r,n,a){t.exports=n(ze(),$r(),Gr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.BlockCipher,o=n.algo,s=[],l=[],u=[],f=[],x=[],y=[],w=[],S=[],T=[],N=[];(function(){for(var A=[],I=0;I<256;I++)I<128?A[I]=I<<1:A[I]=I<<1^283;for(var D=0,P=0,I=0;I<256;I++){var z=P^P<<1^P<<2^P<<3^P<<4;z=z>>>8^z&255^99,s[D]=z,l[z]=D;var Y=A[D],Q=A[Y],B=A[Q],$=A[z]*257^z*16843008;u[D]=$<<24|$>>>8,f[D]=$<<16|$>>>16,x[D]=$<<8|$>>>24,y[D]=$;var $=B*16843009^Q*65537^Y*257^D*16843008;w[z]=$<<24|$>>>8,S[z]=$<<16|$>>>16,T[z]=$<<8|$>>>24,N[z]=$,D?(D=Y^A[A[A[B^Y]]],P^=A[A[P]]):D=P=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],E=o.AES=i.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var I=this._keyPriorReset=this._key,D=I.words,P=I.sigBytes/4,z=this._nRounds=P+6,Y=(z+1)*4,Q=this._keySchedule=[],B=0;B<Y;B++)B<P?Q[B]=D[B]:(A=Q[B-1],B%P?P>6&&B%P==4&&(A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255]):(A=A<<8|A>>>24,A=s[A>>>24]<<24|s[A>>>16&255]<<16|s[A>>>8&255]<<8|s[A&255],A^=C[B/P|0]<<24),Q[B]=Q[B-P]^A);for(var $=this._invKeySchedule=[],re=0;re<Y;re++){var B=Y-re;if(re%4)var A=Q[B];else var A=Q[B-4];re<4||B<=4?$[re]=A:$[re]=w[s[A>>>24]]^S[s[A>>>16&255]]^T[s[A>>>8&255]]^N[s[A&255]]}}},encryptBlock:function(A,I){this._doCryptBlock(A,I,this._keySchedule,u,f,x,y,s)},decryptBlock:function(A,I){var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D,this._doCryptBlock(A,I,this._invKeySchedule,w,S,T,N,l);var D=A[I+1];A[I+1]=A[I+3],A[I+3]=D},_doCryptBlock:function(A,I,D,P,z,Y,Q,B){for(var $=this._nRounds,re=A[I]^D[0],L=A[I+1]^D[1],q=A[I+2]^D[2],W=A[I+3]^D[3],j=4,V=1;V<$;V++){var Z=P[re>>>24]^z[L>>>16&255]^Y[q>>>8&255]^Q[W&255]^D[j++],se=P[L>>>24]^z[q>>>16&255]^Y[W>>>8&255]^Q[re&255]^D[j++],ie=P[q>>>24]^z[W>>>16&255]^Y[re>>>8&255]^Q[L&255]^D[j++],F=P[W>>>24]^z[re>>>16&255]^Y[L>>>8&255]^Q[q&255]^D[j++];re=Z,L=se,q=ie,W=F}var Z=(B[re>>>24]<<24|B[L>>>16&255]<<16|B[q>>>8&255]<<8|B[W&255])^D[j++],se=(B[L>>>24]<<24|B[q>>>16&255]<<16|B[W>>>8&255]<<8|B[re&255])^D[j++],ie=(B[q>>>24]<<24|B[W>>>16&255]<<16|B[re>>>8&255]<<8|B[L&255])^D[j++],F=(B[W>>>24]<<24|B[re>>>16&255]<<16|B[L>>>8&255]<<8|B[q&255])^D[j++];A[I]=Z,A[I+1]=se,A[I+2]=ie,A[I+3]=F},keySize:256/32});n.AES=i._createHelper(E)}(),r.AES})}(wu)),wu.exports}var Su={exports:{}},Iu;function C0(){return Iu||(Iu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),$r(),Gr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.WordArray,o=a.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],w=s.DES=o.extend({_doReset:function(){for(var C=this._key,E=C.words,A=[],I=0;I<56;I++){var D=l[I]-1;A[I]=E[D>>>5]>>>31-D%32&1}for(var P=this._subKeys=[],z=0;z<16;z++){for(var Y=P[z]=[],Q=f[z],I=0;I<24;I++)Y[I/6|0]|=A[(u[I]-1+Q)%28]<<31-I%6,Y[4+(I/6|0)]|=A[28+(u[I+24]-1+Q)%28]<<31-I%6;Y[0]=Y[0]<<1|Y[0]>>>31;for(var I=1;I<7;I++)Y[I]=Y[I]>>>(I-1)*4+3;Y[7]=Y[7]<<5|Y[7]>>>27}for(var B=this._invSubKeys=[],I=0;I<16;I++)B[I]=P[15-I]},encryptBlock:function(C,E){this._doCryptBlock(C,E,this._subKeys)},decryptBlock:function(C,E){this._doCryptBlock(C,E,this._invSubKeys)},_doCryptBlock:function(C,E,A){this._lBlock=C[E],this._rBlock=C[E+1],S.call(this,4,252645135),S.call(this,16,65535),T.call(this,2,858993459),T.call(this,8,16711935),S.call(this,1,1431655765);for(var I=0;I<16;I++){for(var D=A[I],P=this._lBlock,z=this._rBlock,Y=0,Q=0;Q<8;Q++)Y|=x[Q][((z^D[Q])&y[Q])>>>0];this._lBlock=z,this._rBlock=P^Y}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,S.call(this,1,1431655765),T.call(this,8,16711935),T.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),C[E]=this._lBlock,C[E+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(C,E){var A=(this._lBlock>>>C^this._rBlock)&E;this._rBlock^=A,this._lBlock^=A<<C}function T(C,E){var A=(this._rBlock>>>C^this._lBlock)&E;this._lBlock^=A,this._rBlock^=A<<C}n.DES=o._createHelper(w);var N=s.TripleDES=o.extend({_doReset:function(){var C=this._key,E=C.words;if(E.length!==2&&E.length!==4&&E.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=E.slice(0,2),I=E.length<4?E.slice(0,2):E.slice(2,4),D=E.length<6?E.slice(0,2):E.slice(4,6);this._des1=w.createEncryptor(i.create(A)),this._des2=w.createEncryptor(i.create(I)),this._des3=w.createEncryptor(i.create(D))},encryptBlock:function(C,E){this._des1.encryptBlock(C,E),this._des2.decryptBlock(C,E),this._des3.encryptBlock(C,E)},decryptBlock:function(C,E){this._des3.decryptBlock(C,E),this._des2.encryptBlock(C,E),this._des1.decryptBlock(C,E)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=o._createHelper(N)}(),r.TripleDES})}(Su)),Su.exports}var Cu={exports:{}},Tu;function T0(){return Tu||(Tu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),$r(),Gr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=o.RC4=i.extend({_doReset:function(){for(var f=this._key,x=f.words,y=f.sigBytes,w=this._S=[],S=0;S<256;S++)w[S]=S;for(var S=0,T=0;S<256;S++){var N=S%y,C=x[N>>>2]>>>24-N%4*8&255;T=(T+w[S]+C)%256;var E=w[S];w[S]=w[T],w[T]=E}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var f=this._S,x=this._i,y=this._j,w=0,S=0;S<4;S++){x=(x+1)%256,y=(y+f[x])%256;var T=f[x];f[x]=f[y],f[y]=T,w|=f[(f[x]+f[y])%256]<<24-S*8}return this._i=x,this._j=y,w}n.RC4=i._createHelper(s);var u=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)l.call(this)}});n.RC4Drop=i._createHelper(u)}(),r.RC4})}(Cu)),Cu.exports}var ku={exports:{}},Au;function k0(){return Au||(Au=1,function(t,e){(function(r,n,a){t.exports=n(ze(),$r(),Gr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],f=o.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,w=this.cfg.iv,S=0;S<4;S++)y[S]=(y[S]<<8|y[S]>>>24)&16711935|(y[S]<<24|y[S]>>>8)&4278255360;var T=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],N=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)x.call(this);for(var S=0;S<8;S++)N[S]^=T[S+4&7];if(w){var C=w.words,E=C[0],A=C[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=I>>>16|D&4294901760,z=D<<16|I&65535;N[0]^=I,N[1]^=P,N[2]^=D,N[3]^=z,N[4]^=I,N[5]^=P,N[6]^=D,N[7]^=z;for(var S=0;S<4;S++)x.call(this)}},_doProcessBlock:function(y,w){var S=this._X;x.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)s[T]=(s[T]<<8|s[T]>>>24)&16711935|(s[T]<<24|s[T]>>>8)&4278255360,y[w+T]^=s[T]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,S=0;S<8;S++)l[S]=w[S];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<l[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<l[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<l[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<l[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<l[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<l[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<l[6]>>>0?1:0)|0,this._b=w[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+w[S],N=T&65535,C=T>>>16,E=((N*N>>>17)+N*C>>>15)+C*C,A=((T&4294901760)*T|0)+((T&65535)*T|0);u[S]=E^A}y[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,y[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,y[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,y[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,y[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,y[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,y[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,y[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=i._createHelper(f)}(),r.Rabbit})}(ku)),ku.exports}var Du={exports:{}},Nu;function A0(){return Nu||(Nu=1,function(t,e){(function(r,n,a){t.exports=n(ze(),$r(),Gr(),wr(),ft())})(Ae,function(r){return function(){var n=r,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],u=[],f=o.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,w=this.cfg.iv,S=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],T=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var N=0;N<4;N++)x.call(this);for(var N=0;N<8;N++)T[N]^=S[N+4&7];if(w){var C=w.words,E=C[0],A=C[1],I=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,P=I>>>16|D&4294901760,z=D<<16|I&65535;T[0]^=I,T[1]^=P,T[2]^=D,T[3]^=z,T[4]^=I,T[5]^=P,T[6]^=D,T[7]^=z;for(var N=0;N<4;N++)x.call(this)}},_doProcessBlock:function(y,w){var S=this._X;x.call(this),s[0]=S[0]^S[5]>>>16^S[3]<<16,s[1]=S[2]^S[7]>>>16^S[5]<<16,s[2]=S[4]^S[1]>>>16^S[7]<<16,s[3]=S[6]^S[3]>>>16^S[1]<<16;for(var T=0;T<4;T++)s[T]=(s[T]<<8|s[T]>>>24)&16711935|(s[T]<<24|s[T]>>>8)&4278255360,y[w+T]^=s[T]},blockSize:128/32,ivSize:64/32});function x(){for(var y=this._X,w=this._C,S=0;S<8;S++)l[S]=w[S];w[0]=w[0]+1295307597+this._b|0,w[1]=w[1]+3545052371+(w[0]>>>0<l[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<l[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<l[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<l[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<l[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<l[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<l[6]>>>0?1:0)|0,this._b=w[7]>>>0<l[7]>>>0?1:0;for(var S=0;S<8;S++){var T=y[S]+w[S],N=T&65535,C=T>>>16,E=((N*N>>>17)+N*C>>>15)+C*C,A=((T&4294901760)*T|0)+((T&65535)*T|0);u[S]=E^A}y[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,y[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,y[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,y[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,y[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,y[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,y[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,y[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=i._createHelper(f)}(),r.RabbitLegacy})}(Du)),Du.exports}(function(t,e){(function(r,n,a){t.exports=n(ze(),ia(),o0(),s0(),$r(),l0(),Gr(),Ri(),Lc(),c0(),Bc(),u0(),d0(),f0(),Li(),h0(),wr(),ft(),m0(),p0(),g0(),v0(),y0(),b0(),E0(),x0(),w0(),_0(),S0(),I0(),C0(),T0(),k0(),A0())})(Ae,function(r){return r})})(t0);class D0 extends xr{async getAllServiceGroups(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/serviceGroups?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createServiceGroup(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateServiceGroup(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/serviceGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}var N0=Object.defineProperty,O0=Object.getOwnPropertyDescriptor,Mi=(t,e,r,n)=>{for(var a=n>1?void 0:n?O0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&N0(e,r,a),a};let oa=class extends lr{constructor(t,e,r,n){super("serviceGroup",n),g(this,"serviceGroupDb"),g(this,"serviceGroupService"),this.serviceGroupDb=new sc(e),this.serviceGroupService=new D0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllServiceGroups(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getServiceGroup(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceGroupId:n})}async createServiceGroup(t,e,r,n){return super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n)}async updateServiceGroup(t,e,r,n,a){return super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceGroupId:n},a)}async deleteServiceGroup(t,e,r,n){return this.deleteById(t,{account:e,companyId:r,serviceGroupId:n})}async remoteList(t,e){return(await this.serviceGroupService.getAllServiceGroups(t,e.account,e.companyId)).map(r=>ir.fromServiceGroupDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceGroupService.getById(t,e.account,e.companyId,e.serviceGroupId);return ir.fromServiceGroupDto(r,e.companyId)}async remoteCreate(t,e,r){const n=ir.toServiceGroupDto(r),a=await this.serviceGroupService.createServiceGroup(t,e.account,e.companyId,n);return ir.fromServiceGroupDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=ir.toServiceGroupDto(r),a=await this.serviceGroupService.updateServiceGroup(t,e.account,e.companyId,e.serviceGroupId,n);return ir.fromServiceGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceGroupService.delete(t,e.account,e.companyId,e.serviceGroupId)}async localList(t){return this.serviceGroupDb.getAllServiceGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceGroupDb.getById(t.companyId,t.serviceGroupId)}async localBulkSave(t,e){await this.serviceGroupDb.saveAllServiceGroups(e)}async localDelete(t){this.checkNullable(t),await this.serviceGroupDb.deleteById(t.companyId,t.serviceGroupId)}async localBulkDelete(t){await this.serviceGroupDb.deleteByServiceGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Mi([Me.Unsubscribe()],oa.prototype,"dispose",1),Mi([Me.Subscribe(Je.DELETE)],oa.prototype,"onCascadeDelete",1),oa=Mi([Me.Subscriber({channel:_t})],oa);class R0 extends xr{async getAllStaffGroups(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/staffGroups?account=${encodeURIComponent(r)}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createStaffGroup(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups?account=${encodeURIComponent(r)}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateStaffGroup(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/staffGroups/${a}?account=${encodeURIComponent(r)}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class L0{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllStaffGroups(e){return(await this.indexedDb.getAllValue(jr)||[]).filter(r=>r.companyId===e)}async saveAllStaffGroups(e){await this.indexedDb.putBulkValue(jr,e)}async getById(e,r){const n=await this.indexedDb.getValue(jr,r);if((n==null?void 0:n.companyId)===e)return n;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(jr,r),await new lc(this.indexedDb).updateStaffSkills(e,r,void 0)}async deleteByStaffGroupIds(e){await this.indexedDb.deleteValues(jr,e)}async drop(){await this.indexedDb.deleteAllValues(jr)}updateStaffs(e,r,n){this.getAllStaffGroups(e).then(async a=>{const i=a.filter(o=>{var s;return(s=o.members)==null?void 0:s.find(l=>l.id===r)});i&&i.length>0&&(i.forEach(o=>{var s,l,u;const f=(s=o.members)==null?void 0:s.findIndex(x=>x.id===r);f!=null&&(n?(l=o.members)==null||l.splice(f,1,n):(u=o.members)==null||u.splice(f,1))}),await this.saveAllStaffGroups(i))})}}var M0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,Pi=(t,e,r,n)=>{for(var a=n>1?void 0:n?P0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&M0(e,r,a),a};let sa=class extends lr{constructor(t,e,r,n){super("staffGroup",n),g(this,"staffGroupDb"),g(this,"staffGroupService"),this.staffGroupDb=new L0(e),this.staffGroupService=new R0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>(a==null?void 0:a.companyId)===t.companyId)}async getAllStaffGroups(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getStaffGroup(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,staffGroupId:n})}async createStaffGroup(t,e,r,n){return this.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n)}async updateStaffGroup(t,e,r,n,a){return this.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,staffGroupId:n},a)}async deleteStaffGroup(t,e,r,n){return this.deleteById(t,{account:e,companyId:r,staffGroupId:n})}async remoteList(t,e){return(await this.staffGroupService.getAllStaffGroups(t,e.account,e.companyId)).map(r=>or.fromStaffGroupDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.staffGroupService.getById(t,e.account,e.companyId,e.staffGroupId);return or.fromStaffGroupDto(r,e.companyId)}async remoteCreate(t,e,r){const n=or.toStaffGroupDto(r),a=await this.staffGroupService.createStaffGroup(t,e.account,e.companyId,n);return or.fromStaffGroupDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=or.toStaffGroupDto(r),a=await this.staffGroupService.updateStaffGroup(t,e.account,e.companyId,e.staffGroupId,n);return or.fromStaffGroupDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.staffGroupService.delete(t,e.account,e.companyId,e.staffGroupId)}async localList(t){return this.staffGroupDb.getAllStaffGroups(t.companyId)}async localGet(t){return this.checkNullable(t),this.staffGroupDb.getById(t.companyId,t.staffGroupId)}async localBulkSave(t,e){await this.staffGroupDb.saveAllStaffGroups(e)}async localDelete(t){this.checkNullable(t),await this.staffGroupDb.deleteById(t.companyId,t.staffGroupId)}async localBulkDelete(t){await this.staffGroupDb.deleteByStaffGroupIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.staffGroupId)throw Error("Invalid state:"+JSON.stringify(t))}};Pi([Me.Unsubscribe()],sa.prototype,"dispose",1),Pi([Me.Subscribe(Je.DELETE)],sa.prototype,"onCascadeDelete",1),sa=Pi([Me.Subscriber({channel:_t})],sa);class F0 extends xr{async getAllServiceResources(e,r,n){const a=this.instance.get(`/api/2.1/scheduling/companies/${n}/service-resources?account=${r}`,this.getAxiosConfig(e));if(a!==null)try{return(await a).items}catch(i){throw i}else throw new Ne(ke.INTERNAL_ERROR)}async getById(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const o=this.instance.get(i,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async createService(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources?account=${r}`;const o=this.instance.post(i,a,this.getAxiosConfig(e));if(o!==null)try{return await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}async updateService(e,r,n,a,i){let o=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const s=this.instance.put(o,i,this.getAxiosConfig(e));if(s!==null)try{return await s}catch(l){throw l}else throw new Ne(ke.INTERNAL_ERROR)}async delete(e,r,n,a){let i=`/api/2.1/scheduling/companies/${n}/service-resources/${a}?account=${r}`;const o=this.instance.delete(i,this.getAxiosConfig(e));if(o!==null)try{await o}catch(s){throw s}else throw new Ne(ke.INTERNAL_ERROR)}filteredDataLog(e){return e!=null&&e.items?e==null?void 0:e.items.map(r=>({id:r.id})):e}}class z0{constructor(e){g(this,"indexedDb"),this.indexedDb=e}async getAllServiceResources(e){return(await this.indexedDb.getAllValue(Ur)||[]).filter(r=>{var n;return((n=r.company)==null?void 0:n.id)===e})}async saveAllServiceResources(e){await this.indexedDb.putBulkValue(Ur,e)}async getById(e,r){var n;const a=await this.indexedDb.getValue(Ur,r);if(((n=a==null?void 0:a.company)==null?void 0:n.id)===e)return a;throw sr}async deleteById(e,r){await this.getById(e,r),await this.indexedDb.deleteValue(Ur,r)}async deleteByServiceIds(e){await this.indexedDb.deleteValues(Ur,e)}async drop(){await this.indexedDb.deleteAllValues(Ur)}}var B0=Object.defineProperty,U0=Object.getOwnPropertyDescriptor,Fi=(t,e,r,n)=>{for(var a=n>1?void 0:n?U0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&B0(e,r,a),a};const zi=new Me.Channel;let la=class extends lr{constructor(t,e,r,n){super("serviceResource",n),g(this,"serviceResourceDb"),g(this,"serviceResourceService"),this.serviceResourceDb=new z0(e),this.serviceResourceService=new F0(r,t,n)}dispose(){}async onCascadeDelete(t,e,r,n){r==_t&&await this.cascadeDelete({account:t.account,companyId:t.companyId},a=>{var i;return((i=a==null?void 0:a.company)==null?void 0:i.id)===t.companyId})}async getAllServiceResources(t,e,r,n=Le.LOCAL_THEN_REMOTE){return this.list(t,n,{account:e,companyId:r})}async getServiceResource(t,e,r,n,a=Le.LOCAL_THEN_REMOTE){return this.getById(t,a,{account:e,companyId:r,serviceResourceId:n})}async createServiceResource(t,e,r,n){const a=await super.create(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r},n);return zi.publish(Je.CREATE,{account:e,companyId:r,resource:a}),a}async updateServiceResource(t,e,r,n,a){const i=await super.update(t,Le.REMOTE_THEN_LOCAL,{account:e,companyId:r,serviceResourceId:n},a);return zi.publish(Je.UPDATE,{account:e,companyId:r,serviceResourceId:n,resource:i}),i}async deleteServiceResource(t,e,r,n){await this.deleteById(t,{account:e,companyId:r,serviceResourceId:n}),zi.publish(Je.DELETE,{account:e,companyId:r,serviceResourceId:n})}async remoteList(t,e){return(await this.serviceResourceService.getAllServiceResources(t,e.account,e.companyId)).map(r=>cr.fromServiceResourceDto(r,e.companyId))}async remoteGet(t,e){this.checkNullable(e);const r=await this.serviceResourceService.getById(t,e.account,e.companyId,e.serviceResourceId);return cr.fromServiceResourceDto(r,e.companyId)}async remoteCreate(t,e,r){const n=cr.toServiceResourceDto(r),a=await this.serviceResourceService.createService(t,e.account,e.companyId,n);return cr.fromServiceResourceDto(a,e.companyId)}async remoteUpdate(t,e,r){this.checkNullable(e);const n=cr.toServiceResourceDto(r),a=await this.serviceResourceService.updateService(t,e.account,e.companyId,e.serviceResourceId,n);return cr.fromServiceResourceDto(a,e.companyId)}async remoteDelete(t,e){this.checkNullable(e),await this.serviceResourceService.delete(t,e.account,e.companyId,e.serviceResourceId)}async localList(t){return this.serviceResourceDb.getAllServiceResources(t.companyId)}async localGet(t){return this.checkNullable(t),this.serviceResourceDb.getById(t.companyId,t.serviceResourceId)}async localBulkSave(t,e){await this.serviceResourceDb.saveAllServiceResources(e)}async localDelete(t){this.checkNullable(t),await this.serviceResourceDb.deleteById(t.companyId,t.serviceResourceId)}async localBulkDelete(t){await this.serviceResourceDb.deleteByServiceIds(t.map(e=>e.id||""))}checkNullable(t){if(!t.serviceResourceId)throw Error("Invalid state:"+JSON.stringify(t))}};Fi([Me.Unsubscribe()],la.prototype,"dispose",1),Fi([Me.Subscribe(Je.DELETE)],la.prototype,"onCascadeDelete",1),la=Fi([Me.Subscriber({channel:_t})],la);var V0=Object.defineProperty,j0=Object.getOwnPropertyDescriptor,Bi=(t,e,r,n)=>{for(var a=n>1?void 0:n?j0(e,r):e,i=t.length-1,o;i>=0;i--)(o=t[i])&&(a=(n?o(e,r,a):o(a))||a);return n&&a&&V0(e,r,a),a};let ca=class{constructor(t){g(this,"logger"),this.logger=t}dispose(){}getItem(t){return localStorage.getItem(t)}setItem(t,e){localStorage.setItem(t,e)}clear(){localStorage.clear()}removeItem(t){localStorage.removeItem(t)}getItems(t){const e=localStorage.getItem(t);return e&&JSON.parse(e)}setItems(t,e){localStorage.setItem(t,JSON.stringify(e))}async _onCascadeDelete(t,e,r,n){var a,i,o,s,l;switch(r){case _t:(a=this.logger)==null||a.debug("js-calendar-api","Company deleted (clean localStorage)",t),this._cleanRecentsCompanies(t.companyId);break;case yn:(i=this.logger)==null||i.debug("js-calendar-api","Service deleted (clean localStorage)",t),this._cleanRecentsServices(t.serviceId);break;case vn:(o=this.logger)==null||o.debug("js-calendar-api","Staff deleted (clean localStorage)",t),this._cleanRecentsStaffs(t.staffId);break;case mc:(s=this.logger)==null||s.debug("js-calendar-api","Contact deleted (clean localStorage)",t),this._cleanRecentsContacts(t.contactId);break;case pc:(l=this.logger)==null||l.debug("js-calendar-api","User deleted (clean localStorage)",t),this._cleanRecentsUsers(t.userId);break}}_cleanRecentsCompanies(t){const e=this.getItems(Bt.RECENT_COMPANIES),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_COMPANIES,r||[])}_cleanRecentsServices(t){const e=this.getItems(Bt.RECENT_SERVICES),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_SERVICES,r||[])}_cleanRecentsStaffs(t){const e=this.getItems(Bt.RECENT_STAFFS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_STAFFS,r||[])}_cleanRecentsContacts(t){const e=this.getItems(Bt.RECENT_CONTACTS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_CONTACTS,r||[])}_cleanRecentsUsers(t){const e=this.getItems(Bt.RECENT_USERS),r=e==null?void 0:e.filter(n=>n.id!==t);this.setItems(Bt.RECENT_USERS,r||[])}};Bi([Me.Unsubscribe()],ca.prototype,"dispose",1),Bi([Me.Subscribe(Je.DELETE)],ca.prototype,"_onCascadeDelete",1),ca=Bi([Me.Subscriber({channel:_t}),Me.Subscriber({channel:yn}),Me.Subscriber({channel:vn}),Me.Subscriber({channel:mc}),Me.Subscriber({channel:pc})],ca);var Bt=(t=>(t.RECENT_SERVICES="recent_services",t.RECENT_STAFFS="recent_staffs",t.RECENT_CONTACTS="recent_contacts",t.RECENT_COMPANIES="recent_companies",t.RECENT_USERS="recent_users",t))(Bt||{});let ua;const q0=t=>(ua=t,Kt.createPinia()),H0=Kt.defineStore({id:"account",state:()=>({account:{}}),actions:{async updateAccount(t){if(!!t)return ua.updateAccount(t).then(e=>{const r=e;r.picture&&(r.picture=new Fr(r.picture.mimeType,r.picture.url.length>0?r.picture.url+"?"+Math.random().toString(32):r.picture.url)),this.account=r})},fetchAccount(t,e){return ua.getAccount().then(r=>{r.result?(this.account=r.result,t&&t(r.result)):e&&e()}).catch(()=>{e&&e()})},async updatePassword(t,e){return ua.updatePassword(t,e)}}});class $0{constructor(e){Ui(this,"internalState");Ui(this,"listeners",[]);this.internalState=e}get state(){return this.internalState}changeState(e){this.internalState=e,this.listeners.length>0&&this.listeners.forEach(r=>r(this.state))}subscribe(e){this.listeners.push(e)}unsubscribe(e){const r=this.listeners.indexOf(e);r>-1&&this.listeners.splice(r,1)}}const G0=[{label:"English",value:"en"},{label:"Fran\xE7ais",value:"fr"},{label:"Espa\xF1ol",value:"es"},{label:"Portugu\xEAs",value:"pt"},{label:"Deutsch",value:"de"},{label:"Nederlands",value:"nl"},{label:"Italiano",value:"it"},{label:"\u65E5\u672C\u8A9E",value:"ja"}];He.Bloc=$0,He.QRCode=Zf,He.createStore=q0,He.dateToString=Ru,He.languages=G0,He.onPictureUpdated=Lu,He.pad=zu,He.parseToInt=Fu,He.readBlobFromUrl=Pu,He.useAccountStore=H0,He.useBlocState=Ou,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});