@nylas/react 1.0.2-prealpha1 → 1.1.0-canary.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/add-circle-icon_22.entry-077661c3.cjs +1 -0
  2. package/dist/add-circle-icon_22.entry-f699d91e.js +1733 -0
  3. package/dist/{archive-icon_7.entry-91aaa1aa.js → archive-icon_7.entry-40b7ef3b.js} +20 -20
  4. package/dist/{archive-icon_7.entry-84d70dbf.cjs → archive-icon_7.entry-e8630de9.cjs} +1 -1
  5. package/dist/arrow-icon.entry-58246303.js +15 -0
  6. package/dist/{arrow-icon.entry-400a08fa.cjs → arrow-icon.entry-ffa53114.cjs} +1 -1
  7. package/dist/{bold-icon_3.entry-9ad35153.cjs → bold-icon_3.entry-106a4e77.cjs} +1 -1
  8. package/dist/{bold-icon_3.entry-4b2798a8.js → bold-icon_3.entry-f5f1643d.js} +4 -4
  9. package/dist/{calendar-cancel-icon.entry-fcb66929.cjs → calendar-cancel-icon.entry-6ae0fd0f.cjs} +1 -1
  10. package/dist/{calendar-cancel-icon.entry-83ba884a.js → calendar-cancel-icon.entry-75b15b19.js} +4 -4
  11. package/dist/calendar-check-icon_2.entry-57339318.js +25 -0
  12. package/dist/calendar-check-icon_2.entry-c57f83f3.cjs +1 -0
  13. package/dist/{calendar-icon.entry-8f38af4a.js → calendar-icon.entry-2069fec6.js} +2 -2
  14. package/dist/{calendar-icon.entry-7bae38d7.cjs → calendar-icon.entry-492c2630.cjs} +1 -1
  15. package/dist/chevron-icon_3.entry-83df50c3.js +117 -0
  16. package/dist/chevron-icon_3.entry-878ff6df.cjs +1 -0
  17. package/dist/close-icon.entry-480c199d.js +15 -0
  18. package/dist/close-icon.entry-8015ca05.cjs +1 -0
  19. package/dist/{nylas-booked-event-card_10.entry-7e66a648.js → constants-6ee60d6d-4cd16450.js} +1656 -2374
  20. package/dist/{nylas-booked-event-card_10.entry-ed515326.cjs → constants-6ee60d6d-6c0540db.cjs} +6 -6
  21. package/dist/document-refresh-icon.entry-06f7972b.cjs +1 -0
  22. package/dist/document-refresh-icon.entry-09870b14.js +15 -0
  23. package/dist/elements/index.d.ts +31 -2
  24. package/dist/{forward-icon_6.entry-b60fcb35.js → forward-icon_6.entry-8bb201eb.js} +127 -127
  25. package/dist/{forward-icon_6.entry-3345af84.cjs → forward-icon_6.entry-eeecf2a2.cjs} +3 -3
  26. package/dist/{globe-icon.entry-8325e73e.cjs → globe-icon.entry-a690028c.cjs} +1 -1
  27. package/dist/{globe-icon.entry-e3fd373f.js → globe-icon.entry-d515cbfa.js} +4 -4
  28. package/dist/google-logo-icon_3.entry-2164cec1.js +258 -0
  29. package/dist/google-logo-icon_3.entry-b2b85284.cjs +1 -0
  30. package/dist/index-2b8437d6.cjs +30 -0
  31. package/dist/index-db0c5017.js +1824 -0
  32. package/dist/index.d.ts +3 -1
  33. package/dist/index.es-2578c6a5-098d48d0.cjs +7 -0
  34. package/dist/{index-b30d446a-a90f84b2.js → index.es-2578c6a5-71441142.js} +833 -933
  35. package/dist/info-icon_2.entry-300ef196.js +34 -0
  36. package/dist/info-icon_2.entry-e286aaa5.cjs +1 -0
  37. package/dist/{loading-icon.entry-27410cf8.js → loading-icon.entry-6d8adaa4.js} +4 -4
  38. package/dist/{loading-icon.entry-b2096d2b.cjs → loading-icon.entry-dc40e97d.cjs} +1 -1
  39. package/dist/{mailbox-store-19f0c6c9-e3e8b4e5.js → mailbox-store-bb21512c-649a374c.js} +17 -16
  40. package/dist/mailbox-store-bb21512c-fc3c8c03.cjs +1 -0
  41. package/dist/nylas-additional-participants.entry-4afba192.js +83 -0
  42. package/dist/nylas-additional-participants.entry-db05e510.cjs +1 -0
  43. package/dist/nylas-booked-event-card_10.entry-1ebbe0c0.js +784 -0
  44. package/dist/nylas-booked-event-card_10.entry-6b6fdfae.cjs +1 -0
  45. package/dist/nylas-form-card.entry-70b20571.cjs +1 -0
  46. package/dist/nylas-form-card.entry-7bc23695.js +56 -0
  47. package/dist/nylas-if-state.entry-3829cb3d.js +96 -0
  48. package/dist/nylas-if-state.entry-ebeffe22.cjs +1 -0
  49. package/dist/nylas-list-folders.entry-191688f2.cjs +1 -0
  50. package/dist/{nylas-list-folders.entry-a5437201.js → nylas-list-folders.entry-7347e78d.js} +9 -8
  51. package/dist/{nylas-list-threads.entry-fd6cda61.js → nylas-list-threads.entry-432a8d8c.js} +5 -4
  52. package/dist/nylas-list-threads.entry-44658578.cjs +1 -0
  53. package/dist/nylas-login.entry-5311f0a7.js +75 -0
  54. package/dist/nylas-login.entry-db17a3d2.cjs +1 -0
  55. package/dist/{nylas-mailbox-pagination.entry-988214bc.js → nylas-mailbox-pagination.entry-20150fb2.js} +4 -3
  56. package/dist/nylas-mailbox-pagination.entry-9d3f5baa.cjs +1 -0
  57. package/dist/nylas-mailbox-toolbar-button.entry-6c0f7299.cjs +1 -0
  58. package/dist/{nylas-mailbox-toolbar-button.entry-c720e22a.js → nylas-mailbox-toolbar-button.entry-eec426d5.js} +11 -10
  59. package/dist/nylas-mailbox.entry-b6c758b9.js +136 -0
  60. package/dist/nylas-mailbox.entry-d41401e0.cjs +1 -0
  61. package/dist/{nylas-provider.entry-70721009.js → nylas-provider.entry-271cafd2.js} +46 -33
  62. package/dist/nylas-provider.entry-6173b721.cjs +1 -0
  63. package/dist/nylas-scheduler-editor.entry-0c75d39e.cjs +7 -0
  64. package/dist/nylas-scheduler-editor.entry-b51ad4b1.js +2192 -0
  65. package/dist/nylas-scheduling.entry-081c8825.cjs +1 -0
  66. package/dist/nylas-scheduling.entry-0a8d1da8.js +237 -0
  67. package/dist/{nylas-threads-refresh.entry-b7f9e93f.js → nylas-threads-refresh.entry-72dd854e.js} +6 -5
  68. package/dist/nylas-threads-refresh.entry-c3509e6a.cjs +1 -0
  69. package/dist/nylas-threads-search.entry-16a59ef6.cjs +1 -0
  70. package/dist/{nylas-threads-search.entry-95afea9c.js → nylas-threads-search.entry-4750a187.js} +15 -14
  71. package/dist/nylas-view-thread.entry-27df3349.cjs +1 -0
  72. package/dist/{nylas-view-thread.entry-165173b1.js → nylas-view-thread.entry-c6adce43.js} +5 -4
  73. package/dist/people-icon.entry-342be0c8.js +15 -0
  74. package/dist/people-icon.entry-35252ca9.cjs +1 -0
  75. package/dist/play-icon_2.entry-0787352c.js +25 -0
  76. package/dist/play-icon_2.entry-f83fa92a.cjs +1 -0
  77. package/dist/react.cjs +1 -1
  78. package/dist/react.js +92 -61
  79. package/dist/{refresh-icon.entry-e48a338f.js → refresh-icon.entry-8fbabfe7.js} +2 -2
  80. package/dist/{refresh-icon.entry-601cac89.cjs → refresh-icon.entry-ddbc5446.cjs} +1 -1
  81. package/dist/{register-component-152c6ad2-a06f58c2.js → register-component-dc659dc3-e43e8fae.js} +2 -2
  82. package/dist/{register-component-152c6ad2-0df7215b.cjs → register-component-dc659dc3-fb85ee68.cjs} +1 -1
  83. package/dist/scheduler-config-store-51ee4f42-66f8c2ac.js +14 -0
  84. package/dist/scheduler-config-store-51ee4f42-d7d9c25d.cjs +1 -0
  85. package/dist/scheduler-store-72116723-ce4c7a69.cjs +1 -0
  86. package/dist/{scheduler-store-7d48e682-0c0c3991.js → scheduler-store-72116723-e5f87122.js} +100 -95
  87. package/dist/time-period-selector.entry-333942a8.js +78 -0
  88. package/dist/time-period-selector.entry-78d5b3c2.cjs +1 -0
  89. package/dist/translate-icon.entry-87a62108.js +15 -0
  90. package/dist/translate-icon.entry-cb19864c.cjs +1 -0
  91. package/dist/utils-c00bdc3c-89ab163d.js +2111 -0
  92. package/dist/utils-c00bdc3c-94b9c3b6.cjs +8 -0
  93. package/dist/warning-icon.entry-50755d91.cjs +1 -0
  94. package/dist/warning-icon.entry-7a72e24a.js +15 -0
  95. package/package.json +7 -4
  96. package/dist/add-circle-icon.entry-2ccb238b.cjs +0 -1
  97. package/dist/add-circle-icon.entry-35d6aa07.js +0 -15
  98. package/dist/arrow-icon.entry-8b2e96a6.js +0 -15
  99. package/dist/calendar-check-icon_3.entry-903e2d82.js +0 -35
  100. package/dist/calendar-check-icon_3.entry-a16ce05e.cjs +0 -1
  101. package/dist/chevron-icon.entry-58366662.cjs +0 -1
  102. package/dist/chevron-icon.entry-5e11cef5.js +0 -15
  103. package/dist/close-icon_2.entry-011d9cf4.js +0 -25
  104. package/dist/close-icon_2.entry-83088b9a.cjs +0 -1
  105. package/dist/document-refresh-icon.entry-071ffd66.cjs +0 -1
  106. package/dist/document-refresh-icon.entry-9083a2e9.js +0 -15
  107. package/dist/duration-bddc4a13-05d3e3e2.cjs +0 -1
  108. package/dist/duration-bddc4a13-179ce826.js +0 -41
  109. package/dist/index-3b6f5cd5.cjs +0 -30
  110. package/dist/index-630f4e87.js +0 -1498
  111. package/dist/index-b30d446a-cbbef925.cjs +0 -7
  112. package/dist/mailbox-store-19f0c6c9-a0cbfa97.cjs +0 -1
  113. package/dist/nylas-if-state_3.entry-504be976.cjs +0 -1
  114. package/dist/nylas-if-state_3.entry-e96d01f1.js +0 -291
  115. package/dist/nylas-list-folders.entry-866361cc.cjs +0 -1
  116. package/dist/nylas-list-threads.entry-04989295.cjs +0 -1
  117. package/dist/nylas-mailbox-pagination.entry-e0bd4aef.cjs +0 -1
  118. package/dist/nylas-mailbox-toolbar-button.entry-3d772b26.cjs +0 -1
  119. package/dist/nylas-open-hours-picker.entry-6bdc7c73.js +0 -186
  120. package/dist/nylas-open-hours-picker.entry-881b6db7.cjs +0 -1
  121. package/dist/nylas-provider.entry-8d9a844b.cjs +0 -1
  122. package/dist/nylas-scheduler.entry-7321e18f.js +0 -230
  123. package/dist/nylas-scheduler.entry-e82977fb.cjs +0 -1
  124. package/dist/nylas-threads-refresh.entry-477e68e4.cjs +0 -1
  125. package/dist/nylas-threads-search.entry-c5854641.cjs +0 -1
  126. package/dist/nylas-view-thread.entry-8b72cbdb.cjs +0 -1
  127. package/dist/play-icon_2.entry-ed5877e3.js +0 -25
  128. package/dist/play-icon_2.entry-f23ed6c1.cjs +0 -1
  129. package/dist/scheduler-store-7d48e682-674705ef.cjs +0 -1
  130. package/dist/search-icon_3.entry-292138c3.js +0 -101
  131. package/dist/search-icon_3.entry-8e555357.cjs +0 -1
  132. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  133. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
@@ -0,0 +1,8 @@
1
+ "use strict";const be=require("./_commonjsHelpers-57e89916-4a3ae7d8.cjs");var se={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be.commonjsGlobal,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",u="hour",f="day",l="week",m="month",h="quarter",d="year",w="date",M="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var v=["th","st","nd","rd"],y=g%100;return"["+g+(v[(y-20)%10]||v[y]||v[0])+"]"}},B=function(g,v,y){var T=String(g);return!T||T.length>=v?g:""+Array(v+1-T.length).join(y)+g},ot={s:B,z:function(g){var v=-g.utcOffset(),y=Math.abs(v),T=Math.floor(y/60),p=y%60;return(v<=0?"+":"-")+B(T,2,"0")+":"+B(p,2,"0")},m:function g(v,y){if(v.date()<y.date())return-g(y,v);var T=12*(y.year()-v.year())+(y.month()-v.month()),p=v.clone().add(T,m),E=y-p<0,k=v.clone().add(T+(E?-1:1),m);return+(-(T+(y-p)/(E?p-k:k-p))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:m,y:d,w:l,d:f,D:w,h:u,m:o,s,ms:a,Q:h}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},Q="en",H={};H[Q]=j;var dt=function(g){return g instanceof gt},wt=function g(v,y,T){var p;if(!v)return Q;if(typeof v=="string"){var E=v.toLowerCase();H[E]&&(p=E),y&&(H[E]=y,p=E);var k=v.split("-");if(!p&&k.length>1)return g(k[0])}else{var O=v.name;H[O]=v,p=O}return!T&&p&&(Q=p),p||!T&&Q},N=function(g,v){if(dt(g))return g.clone();var y=typeof v=="object"?v:{};return y.date=g,y.args=arguments,new gt(y)},Y=ot;Y.l=wt,Y.i=dt,Y.w=function(g,v){return N(g,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var gt=function(){function g(y){this.$L=wt(y.locale,null,!0),this.parse(y)}var v=g.prototype;return v.parse=function(y){this.$d=function(T){var p=T.date,E=T.utc;if(p===null)return new Date(NaN);if(Y.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var k=p.match(D);if(k){var O=k[2]-1||0,_=(k[7]||"0").substring(0,3);return E?new Date(Date.UTC(k[1],O,k[3]||1,k[4]||0,k[5]||0,k[6]||0,_)):new Date(k[1],O,k[3]||1,k[4]||0,k[5]||0,k[6]||0,_)}}return new Date(p)}(y),this.$x=y.x||{},this.init()},v.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},v.$utils=function(){return Y},v.isValid=function(){return this.$d.toString()!==M},v.isSame=function(y,T){var p=N(y);return this.startOf(T)<=p&&p<=this.endOf(T)},v.isAfter=function(y,T){return N(y)<this.startOf(T)},v.isBefore=function(y,T){return this.endOf(T)<N(y)},v.$g=function(y,T,p){return Y.u(y)?this[T]:this.set(p,y)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(y,T){var p=this,E=!!Y.u(T)||T,k=Y.p(y),O=function(ut,P){var nt=Y.w(p.$u?Date.UTC(p.$y,P,ut):new Date(p.$y,P,ut),p);return E?nt:nt.endOf(f)},_=function(ut,P){return Y.w(p.toDate()[ut].apply(p.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(P)),p)},I=this.$W,C=this.$M,rt=this.$D,V="set"+(this.$u?"UTC":"");switch(k){case d:return E?O(1,0):O(31,11);case m:return E?O(1,C):O(0,C+1);case l:var yt=this.$locale().weekStart||0,mt=(I<yt?I+7:I)-yt;return O(E?rt-mt:rt+(6-mt),C);case f:case w:return _(V+"Hours",0);case u:return _(V+"Minutes",1);case o:return _(V+"Seconds",2);case s:return _(V+"Milliseconds",3);default:return this.clone()}},v.endOf=function(y){return this.startOf(y,!1)},v.$set=function(y,T){var p,E=Y.p(y),k="set"+(this.$u?"UTC":""),O=(p={},p[f]=k+"Date",p[w]=k+"Date",p[m]=k+"Month",p[d]=k+"FullYear",p[u]=k+"Hours",p[o]=k+"Minutes",p[s]=k+"Seconds",p[a]=k+"Milliseconds",p)[E],_=E===f?this.$D+(T-this.$W):T;if(E===m||E===d){var I=this.clone().set(w,1);I.$d[O](_),I.init(),this.$d=I.set(w,Math.min(this.$D,I.daysInMonth())).$d}else O&&this.$d[O](_);return this.init(),this},v.set=function(y,T){return this.clone().$set(y,T)},v.get=function(y){return this[Y.p(y)]()},v.add=function(y,T){var p,E=this;y=Number(y);var k=Y.p(T),O=function(C){var rt=N(E);return Y.w(rt.date(rt.date()+Math.round(C*y)),E)};if(k===m)return this.set(m,this.$M+y);if(k===d)return this.set(d,this.$y+y);if(k===f)return O(1);if(k===l)return O(7);var _=(p={},p[o]=n,p[u]=i,p[s]=r,p)[k]||1,I=this.$d.getTime()+y*_;return Y.w(I,this)},v.subtract=function(y,T){return this.add(-1*y,T)},v.format=function(y){var T=this,p=this.$locale();if(!this.isValid())return p.invalidDate||M;var E=y||"YYYY-MM-DDTHH:mm:ssZ",k=Y.z(this),O=this.$H,_=this.$m,I=this.$M,C=p.weekdays,rt=p.months,V=function(P,nt,St,Tt){return P&&(P[nt]||P(T,E))||St[nt].slice(0,Tt)},yt=function(P){return Y.s(O%12||12,P,"0")},mt=p.meridiem||function(P,nt,St){var Tt=P<12?"AM":"PM";return St?Tt.toLowerCase():Tt},ut={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:Y.s(I+1,2,"0"),MMM:V(p.monthsShort,I,rt,3),MMMM:V(rt,I),D:this.$D,DD:Y.s(this.$D,2,"0"),d:String(this.$W),dd:V(p.weekdaysMin,this.$W,C,2),ddd:V(p.weekdaysShort,this.$W,C,3),dddd:C[this.$W],H:String(O),HH:Y.s(O,2,"0"),h:yt(1),hh:yt(2),a:mt(O,_,!0),A:mt(O,_,!1),m:String(_),mm:Y.s(_,2,"0"),s:String(this.$s),ss:Y.s(this.$s,2,"0"),SSS:Y.s(this.$ms,3,"0"),Z:k};return E.replace(U,function(P,nt){return nt||ut[P]||k.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(y,T,p){var E,k=Y.p(T),O=N(y),_=(O.utcOffset()-this.utcOffset())*n,I=this-O,C=Y.m(this,O);return C=(E={},E[d]=C/12,E[m]=C,E[h]=C/3,E[l]=(I-_)/6048e5,E[f]=(I-_)/864e5,E[u]=I/i,E[o]=I/n,E[s]=I/r,E)[k]||I,p?C:Y.a(C)},v.daysInMonth=function(){return this.endOf(m).$D},v.$locale=function(){return H[this.$L]},v.locale=function(y,T){if(!y)return this.$L;var p=this.clone(),E=wt(y,T,!0);return E&&(p.$L=E),p},v.clone=function(){return Y.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),Ft=gt.prototype;return N.prototype=Ft,[["$ms",a],["$s",s],["$m",o],["$H",u],["$W",f],["$M",m],["$y",d],["$D",w]].forEach(function(g){Ft[g[1]]=function(v){return this.$g(v,g[0],g[1])}}),N.extend=function(g,v){return g.$i||(g(v,gt,N),g.$i=!0),N},N.locale=wt,N.isDayjs=dt,N.unix=function(g){return N(1e3*g)},N.en=H[Q],N.Ls=H,N.p={},N})})(se);const Nt=se.exports;var Yt=["MO","TU","WE","TH","FR","SA","SU"],F=function(){function e(t,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=r}return e.fromStr=function(t){return new e(Yt.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},e.prototype.toString=function(){var t=Yt[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},e.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},e}(),A=function(e){return e!=null},G=function(e){return typeof e=="number"},Pt=function(e){return typeof e=="string"&&Yt.includes(e)},z=Array.isArray,X=function(e,t){t===void 0&&(t=e),arguments.length===1&&(t=e,e=0);for(var r=[],n=e;n<t;n++)r.push(n);return r},S=function(e,t){var r=0,n=[];if(z(e))for(;r<t;r++)n[r]=[].concat(e);else for(;r<t;r++)n[r]=e;return n},we=function(e){return z(e)?e:[e]};function ft(e,t,r){r===void 0&&(r=" ");var n=String(e);return t=t>>0,n.length>t?String(n):(t=t-n.length,t>r.length&&(r+=S(r,t/r.length)),r.slice(0,t)+String(n))}var ge=function(e,t,r){var n=e.split(t);return r?n.slice(0,r).concat([n.slice(r).join(t)]):n},q=function(e,t){var r=e%t;return r*t<0?r+t:r},xt=function(e,t){return{div:Math.floor(e/t),mod:q(e,t)}},J=function(e){return!A(e)||e.length===0},$=function(e){return!J(e)},L=function(e,t){return $(e)&&e.indexOf(t)!==-1},st=function(e,t,r,n,i,a){return n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),new Date(Date.UTC(e,t-1,r,n,i,a))},Te=[31,28,31,30,31,30,31,31,30,31,30,31],ue=1e3*60*60*24,fe=9999,he=st(1970,1,1),ke=[6,0,1,2,3,4,5],vt=function(e){return e%4===0&&e%100!==0||e%400===0},ce=function(e){return e instanceof Date},pt=function(e){return ce(e)&&!isNaN(e.getTime())},jt=function(e){return e.getTimezoneOffset()*60*1e3},Ee=function(e,t){var r=e.getTime()-jt(e),n=t.getTime()-jt(t),i=r-n;return Math.round(i/ue)},Lt=function(e){return Ee(e,he)},le=function(e){return new Date(he.getTime()+e*ue)},Me=function(e){var t=e.getUTCMonth();return t===1&&vt(e.getUTCFullYear())?29:Te[t]},ct=function(e){return ke[e.getUTCDay()]},zt=function(e,t){var r=st(e,t+1,1);return[ct(r),Me(r)]},de=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},Ut=function(e){var t=new Date(e.getTime());return t},Kt=function(e){for(var t=[],r=0;r<e.length;r++)t.push(Ut(e[r]));return t},bt=function(e){e.sort(function(t,r){return t.getTime()-r.getTime()})},$t=function(e,t){t===void 0&&(t=!0);var r=new Date(e);return[ft(r.getUTCFullYear().toString(),4,"0"),ft(r.getUTCMonth()+1,2,"0"),ft(r.getUTCDate(),2,"0"),"T",ft(r.getUTCHours(),2,"0"),ft(r.getUTCMinutes(),2,"0"),ft(r.getUTCSeconds(),2,"0"),t?"Z":""].join("")},Ct=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,r=t.exec(e);if(!r)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[5],10)||0,parseInt(r[6],10)||0,parseInt(r[7],10)||0))},qt=function(e,t){var r=e.toLocaleString("sv-SE",{timeZone:t});return r.replace(" ","T")+"Z"},De=function(e,t){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(qt(e,r)),i=new Date(qt(e,t??"UTC")),a=i.getTime()-n.getTime();return new Date(e.getTime()-a)},ht=function(){function e(t,r){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=r,t==="between"?(this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1),this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)):t==="before"?this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1):t==="after"&&(this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1))}return e.prototype.accept=function(t){++this.total;var r=this.minDate&&t<this.minDate,n=this.maxDate&&t>this.maxDate;if(this.method==="between"){if(r)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return r?!0:(this.add(t),!1);return this.add(t)},e.prototype.add=function(t){return this._result.push(t),!0},e.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;case"before":case"after":default:return t.length?t[t.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),It=function(e,t){return It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},It(e,t)};function Rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");It(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var K=function(){return K=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},K.apply(this,arguments)};function c(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Zt=function(e){Rt(t,e);function t(r,n,i){var a=e.call(this,r,n)||this;return a.iterator=i,a}return t.prototype.add=function(r){return this.iterator(r,this._result.length)?(this._result.push(r),!0):!1},t}(ht),kt={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Bt=function(e,t){return e.indexOf(t)!==-1},Se=function(e){return e.toString()},xe=function(e,t,r){return"".concat(t," ").concat(r,", ").concat(e)},et=function(){function e(t,r,n,i){if(r===void 0&&(r=Se),n===void 0&&(n=kt),i===void 0&&(i=xe),this.text=[],this.language=n||kt,this.gettext=r,this.dateFormatter=i,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var a=[].concat(this.options.bymonthday),s=[].concat(this.options.bynmonthday);a.sort(function(l,m){return l-m}),s.sort(function(l,m){return m-l}),this.bymonthday=a.concat(s),this.bymonthday.length||(this.bymonthday=null)}if(A(this.origOptions.byweekday)){var o=z(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(o);this.byweekday={allWeeks:o.filter(function(l){return!l.n}),someWeeks:o.filter(function(l){return!!l.n}),isWeekdays:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")===-1&&u.indexOf("SU")===-1,isEveryDay:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")!==-1&&u.indexOf("SU")!==-1};var f=function(l,m){return l.weekday-m.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){var r=!0;if(!(t.options.freq in e.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(Bt(["dtstart","wkst","freq"],n))return!0;if(!Bt(e.IMPLEMENTED[t.options.freq],n))return!1}return r},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[b.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},e.prototype.MINUTELY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},e.prototype.DAILY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var t=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(this.options.interval===1&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},e.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},e.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},e.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},e.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(t){t=parseInt(t.toString(),10);var r,n=this.gettext;if(t===-1)return n("last");var i=Math.abs(t);switch(i){case 1:case 21:case 31:r=i+n("st");break;case 2:case 22:r=i+n("nd");break;case 3:case 23:r=i+n("rd");break;default:r=i+n("th")}return t<0?r+" "+n("last"):r},e.prototype.monthtext=function(t){return this.language.monthNames[t-1]},e.prototype.weekdaytext=function(t){var r=G(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[r]},e.prototype.plural=function(t){return t%100!==1},e.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},e.prototype.list=function(t,r,n,i){var a=this;i===void 0&&(i=","),z(t)||(t=[t]);var s=function(u,f,l){for(var m="",h=0;h<u.length;h++)h!==0&&(h===u.length-1?m+=" "+l+" ":m+=f+" "),m+=u[h];return m};r=r||function(u){return u.toString()};var o=function(u){return r&&r.call(a,u)};return n?s(t.map(o),i,n):t.map(o).join(i+" ")},e}(),Oe=function(){function e(t){this.done=!0,this.rules=t}return e.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&this.symbol===null},e.prototype.nextSymbol=function(){var t,r;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;t=null;for(var i in this.rules){n=this.rules[i];var a=n.exec(this.text);a&&(t===null||a[0].length>t[0].length)&&(t=a,r=i)}if(t!=null&&(this.text=this.text.substr(t[0].length),this.text===""&&(this.done=!0)),t==null){this.done=!0,this.symbol=null,this.value=null;return}}while(r==="SKIP");return this.symbol=r,this.value=t,!0},e.prototype.accept=function(t){if(this.symbol===t){if(this.value){var r=this.value;return this.nextSymbol(),r}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},e}();function ye(e,t){t===void 0&&(t=kt);var r={},n=new Oe(t.tokens);if(!n.start(e))return null;return i(),r;function i(){n.expect("every");var h=n.acceptNumber();if(h&&(r.interval=parseInt(h[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=b.DAILY,n.nextSymbol()&&(s(),m());break;case"weekday(s)":r.freq=b.WEEKLY,r.byweekday=[b.MO,b.TU,b.WE,b.TH,b.FR],n.nextSymbol(),m();break;case"week(s)":r.freq=b.WEEKLY,n.nextSymbol()&&(a(),m());break;case"hour(s)":r.freq=b.HOURLY,n.nextSymbol()&&(a(),m());break;case"minute(s)":r.freq=b.MINUTELY,n.nextSymbol()&&(a(),m());break;case"month(s)":r.freq=b.MONTHLY,n.nextSymbol()&&(a(),m());break;case"year(s)":r.freq=b.YEARLY,n.nextSymbol()&&(a(),m());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=b.WEEKLY;var d=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[b[d]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var w=u();if(!w)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(b[w]),n.nextSymbol()}l(),m();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=b.YEARLY,r.bymonth=[o()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var M=o();if(!M)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(M),n.nextSymbol()}a(),m();break;default:throw new Error("Unknown symbol")}}function a(){var h=n.accept("on"),d=n.accept("the");if(h||d)do{var w=f(),M=u(),D=o();if(w)M?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(b[M].nth(w))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(w),n.accept("day(s)"));else if(M)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(b[M]);else if(n.symbol==="weekday(s)")n.nextSymbol(),r.byweekday||(r.byweekday=[b.MO,b.TU,b.WE,b.TH,b.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var U=n.acceptNumber();if(!U)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(U[0],10)];n.accept("comma");){if(U=n.acceptNumber(),!U)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(U[0],10))}}else if(D)n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(D);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function s(){var h=n.accept("at");if(h)do{var d=n.acceptNumber();if(!d)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(d[0],10)];n.accept("comma");){if(d=n.acceptNumber(),!d)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(d[0],10))}}while(n.accept("comma")||n.accept("at"))}function o(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function u(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var h=parseInt(n.value[1],10);if(h<-366||h>366)throw new Error("Nth out of range: "+h);return n.nextSymbol(),n.accept("last")?-h:h;default:return!1}}function l(){n.accept("on"),n.accept("the");var h=f();if(h)for(r.bymonthday=[h],n.nextSymbol();n.accept("comma");){if(h=f(),!h)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(h),n.nextSymbol()}}function m(){if(n.symbol==="until"){var h=Date.parse(n.text);if(!h)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(h)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}var x;(function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"})(x||(x={}));function Wt(e){return e<x.HOURLY}var Ye=function(e,t){return t===void 0&&(t=kt),new b(ye(e,t)||void 0)},lt=["count","until","interval","byweekday","bymonthday","bymonth"];et.IMPLEMENTED=[];et.IMPLEMENTED[x.HOURLY]=lt;et.IMPLEMENTED[x.MINUTELY]=lt;et.IMPLEMENTED[x.DAILY]=["byhour"].concat(lt);et.IMPLEMENTED[x.WEEKLY]=lt;et.IMPLEMENTED[x.MONTHLY]=lt;et.IMPLEMENTED[x.YEARLY]=["byweekno","byyearday"].concat(lt);var Le=function(e,t,r,n){return new et(e,t,r,n).toString()},Ue=et.isFullyConvertible,Et=function(){function e(t,r,n,i){this.hour=t,this.minute=r,this.second=n,this.millisecond=i||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},e}(),Ie=function(e){Rt(t,e);function t(r,n,i,a,s,o,u){var f=e.call(this,a,s,o,u)||this;return f.year=r,f.month=n,f.day=i,f}return t.fromDate=function(r){return new this(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.valueOf()%1e3)},t.prototype.getWeekday=function(){return ct(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(r){this.year+=r},t.prototype.addMonths=function(r){if(this.month+=r,this.month>12){var n=Math.floor(this.month/12),i=q(this.month,12);this.month=i,this.year+=n,this.month===0&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(r,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+r*7:this.day+=-(this.getWeekday()-n)+r*7,this.fixDay()},t.prototype.addDaily=function(r){this.day+=r,this.fixDay()},t.prototype.addHours=function(r,n,i){for(n&&(this.hour+=Math.floor((23-this.hour)/r)*r);;){this.hour+=r;var a=xt(this.hour,24),s=a.div,o=a.mod;if(s&&(this.hour=o,this.addDaily(s)),J(i)||L(i,this.hour))break}},t.prototype.addMinutes=function(r,n,i,a){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/r)*r);;){this.minute+=r;var s=xt(this.minute,60),o=s.div,u=s.mod;if(o&&(this.minute=u,this.addHours(o,!1,i)),(J(i)||L(i,this.hour))&&(J(a)||L(a,this.minute)))break}},t.prototype.addSeconds=function(r,n,i,a,s){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/r)*r);;){this.second+=r;var o=xt(this.second,60),u=o.div,f=o.mod;if(u&&(this.second=f,this.addMinutes(u,!1,i,a)),(J(i)||L(i,this.hour))&&(J(a)||L(a,this.minute))&&(J(s)||L(s,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var r=zt(this.year,this.month-1)[1];if(!(this.day<=r))for(;this.day>r;){if(this.day-=r,++this.month,this.month===13&&(this.month=1,++this.year,this.year>fe))return;r=zt(this.year,this.month-1)[1]}}},t.prototype.add=function(r,n){var i=r.freq,a=r.interval,s=r.wkst,o=r.byhour,u=r.byminute,f=r.bysecond;switch(i){case x.YEARLY:return this.addYears(a);case x.MONTHLY:return this.addMonths(a);case x.WEEKLY:return this.addWeekly(a,s);case x.DAILY:return this.addDaily(a);case x.HOURLY:return this.addHours(a,n,o);case x.MINUTELY:return this.addMinutes(a,n,o,u);case x.SECONDLY:return this.addSeconds(a,n,o,u,f)}},t}(Et);function me(e){for(var t=[],r=Object.keys(e),n=0,i=r;n<i.length;n++){var a=i[n];L(ur,a)||t.push(a),ce(e[a])&&!pt(e[a])&&t.push(a)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return K({},e)}function _e(e){var t=K(K({},Ht),me(e));if(A(t.byeaster)&&(t.freq=b.YEARLY),!(A(t.freq)&&b.FREQUENCIES[t.freq]))throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),A(t.wkst)?G(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=b.MO.weekday,A(t.bysetpos)){G(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var r=0;r<t.bysetpos.length;r++){var n=t.bysetpos[r];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||$(t.byweekno)||$(t.byyearday)||t.bymonthday||$(t.bymonthday)||A(t.byweekday)||A(t.byeaster)))switch(t.freq){case b.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case b.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case b.WEEKLY:t.byweekday=[ct(t.dtstart)];break}if(A(t.bymonth)&&!z(t.bymonth)&&(t.bymonth=[t.bymonth]),A(t.byyearday)&&!z(t.byyearday)&&G(t.byyearday)&&(t.byyearday=[t.byyearday]),!A(t.bymonthday))t.bymonthday=[],t.bynmonthday=[];else if(z(t.bymonthday)){for(var i=[],a=[],r=0;r<t.bymonthday.length;r++){var n=t.bymonthday[r];n>0?i.push(n):n<0&&a.push(n)}t.bymonthday=i,t.bynmonthday=a}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);if(A(t.byweekno)&&!z(t.byweekno)&&(t.byweekno=[t.byweekno]),!A(t.byweekday))t.bynweekday=null;else if(G(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(Pt(t.byweekday))t.byweekday=[F.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof F)!t.byweekday.n||t.freq>b.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var s=[],o=[],r=0;r<t.byweekday.length;r++){var u=t.byweekday[r];if(G(u)){s.push(u);continue}else if(Pt(u)){s.push(F.fromStr(u).weekday);continue}!u.n||t.freq>b.MONTHLY?s.push(u.weekday):o.push([u.weekday,u.n])}t.byweekday=$(s)?s:null,t.bynweekday=$(o)?o:null}return A(t.byhour)?G(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<b.HOURLY?[t.dtstart.getUTCHours()]:null,A(t.byminute)?G(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<b.MINUTELY?[t.dtstart.getUTCMinutes()]:null,A(t.bysecond)?G(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<b.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function Ae(e){var t=e.dtstart.getTime()%1e3;if(!Wt(e.freq))return[];var r=[];return e.byhour.forEach(function(n){e.byminute.forEach(function(i){e.bysecond.forEach(function(a){r.push(new Et(n,i,a,t))})})}),r}function _t(e){var t=e.split(`
2
+ `).map(Ne).filter(function(r){return r!==null});return K(K({},t[0]),t[1])}function Mt(e){var t={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!r)return t;var n=r[1],i=r[2];return n&&(t.tzid=n),t.dtstart=Ct(i),t}function Ne(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return Gt(e);var r=t[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return Gt(e);case"DTSTART":return Mt(e);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(e))}}function Gt(e){var t=e.replace(/^RRULE:/i,""),r=Mt(t),n=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(i){var a=i.split("="),s=a[0],o=a[1];switch(s.toUpperCase()){case"FREQ":r.freq=x[o.toUpperCase()];break;case"WKST":r.wkst=Z[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=$e(o),f=s.toLowerCase();r[f]=u;break;case"BYWEEKDAY":case"BYDAY":r.byweekday=Ce(o);break;case"DTSTART":case"TZID":var l=Mt(e);r.tzid=l.tzid,r.dtstart=l.dtstart;break;case"UNTIL":r.until=Ct(o);break;case"BYEASTER":r.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+s+"'")}}),r}function $e(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(Jt)}return Jt(e)}function Jt(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function Ce(e){var t=e.split(",");return t.map(function(r){if(r.length===2)return Z[r];var n=r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(r));var i=Number(n[1]),a=n[2],s=Z[a].weekday;return new F(s,i)})}var Dt=function(){function e(t,r){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=r}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=$t(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:De(this.date,this.tzid)},e}();function At(e){for(var t=[],r="",n=Object.keys(e),i=Object.keys(Ht),a=0;a<n.length;a++)if(n[a]!=="tzid"&&L(i,n[a])){var s=n[a].toUpperCase(),o=e[n[a]],u="";if(!(!A(o)||z(o)&&!o.length)){switch(s){case"FREQ":u=b.FREQUENCIES[e.freq];break;case"WKST":G(o)?u=new F(o).toString():u=o.toString();break;case"BYWEEKDAY":s="BYDAY",u=we(o).map(function(d){return d instanceof F?d:z(d)?new F(d[0],d[1]):new F(d)}).toString();break;case"DTSTART":r=Re(o,e.tzid);break;case"UNTIL":u=$t(o,!e.tzid);break;default:if(z(o)){for(var f=[],l=0;l<o.length;l++)f[l]=String(o[l]);u=f.toString()}else u=String(o)}u&&t.push([s,u])}}var m=t.map(function(d){var w=d[0],M=d[1];return"".concat(w,"=").concat(M.toString())}).join(";"),h="";return m!==""&&(h="RRULE:".concat(m)),[r,h].filter(function(d){return!!d}).join(`
3
+ `)}function Re(e,t){return e?"DTSTART"+new Dt(new Date(e),t).toString():""}function We(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(r,n){return r.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var He=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,r,n){r&&(r=r instanceof Date?Ut(r):Kt(r)),t==="all"?this.all=r:(n._value=r,this[t].push(n))},e.prototype._cacheGet=function(t,r){var n=!1,i=r?Object.keys(r):[],a=function(l){for(var m=0;m<i.length;m++){var h=i[m];if(!We(r[h],l[h]))return!0}return!1},s=this[t];if(t==="all")n=this.all;else if(z(s))for(var o=0;o<s.length;o++){var u=s[o];if(!(i.length&&a(u))){n=u._value;break}}if(!n&&this.all){for(var f=new ht(t,r),o=0;o<this.all.length&&f.accept(this.all[o]);o++);n=f.getValue(),this._cacheAdd(t,n,r)}return z(n)?Kt(n):n instanceof Date?Ut(n):n},e}(),Fe=c(c(c(c(c(c(c(c(c(c(c(c(c([],S(1,31),!0),S(2,28),!0),S(3,31),!0),S(4,30),!0),S(5,31),!0),S(6,30),!0),S(7,31),!0),S(8,31),!0),S(9,30),!0),S(10,31),!0),S(11,30),!0),S(12,31),!0),S(1,7),!0),Pe=c(c(c(c(c(c(c(c(c(c(c(c(c([],S(1,31),!0),S(2,29),!0),S(3,31),!0),S(4,30),!0),S(5,31),!0),S(6,30),!0),S(7,31),!0),S(8,31),!0),S(9,30),!0),S(10,31),!0),S(11,30),!0),S(12,31),!0),S(1,7),!0),je=X(1,29),ze=X(1,30),it=X(1,31),R=X(1,32),Ke=c(c(c(c(c(c(c(c(c(c(c(c(c([],R,!0),ze,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R.slice(0,7),!0),qe=c(c(c(c(c(c(c(c(c(c(c(c(c([],R,!0),je,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R,!0),it,!0),R,!0),it,!0),R,!0),R.slice(0,7),!0),Ze=X(-28,0),Be=X(-29,0),at=X(-30,0),W=X(-31,0),Ge=c(c(c(c(c(c(c(c(c(c(c(c(c([],W,!0),Be,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W.slice(0,7),!0),Je=c(c(c(c(c(c(c(c(c(c(c(c(c([],W,!0),Ze,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W,!0),at,!0),W,!0),at,!0),W,!0),W.slice(0,7),!0),Xe=[0,31,60,91,121,152,182,213,244,274,305,335,366],Qe=[0,31,59,90,120,151,181,212,243,273,304,334,365],Xt=function(){for(var e=[],t=0;t<55;t++)e=e.concat(X(7));return e}();function Ve(e,t){var r=st(e,1,1),n=vt(e)?366:365,i=vt(e+1)?366:365,a=Lt(r),s=ct(r),o=K(K({yearlen:n,nextyearlen:i,yearordinal:a,yearweekday:s},tr(e)),{wnomask:null});if(J(t.byweekno))return o;o.wnomask=S(0,n+7);var u,f,l=u=q(7-s+t.wkst,7);l>=4?(l=0,f=o.yearlen+q(s-t.wkst,7)):f=n-l;for(var m=Math.floor(f/7),h=q(f,7),d=Math.floor(m+h/4),w=0;w<t.byweekno.length;w++){var M=t.byweekno[w];if(M<0&&(M+=d+1),M>0&&M<=d){var D=void 0;M>1?(D=l+(M-1)*7,l!==u&&(D-=7-u)):D=l;for(var U=0;U<7&&(o.wnomask[D]=1,D++,o.wdaymask[D]!==t.wkst);U++);}}if(L(t.byweekno,1)){var D=l+d*7;if(l!==u&&(D-=7-u),D<n)for(var w=0;w<7&&(o.wnomask[D]=1,D+=1,o.wdaymask[D]!==t.wkst);w++);}if(l){var j=void 0;if(L(t.byweekno,-1))j=-1;else{var B=ct(st(e-1,1,1)),ot=q(7-B.valueOf()+t.wkst,7),Q=vt(e-1)?366:365,H=void 0;ot>=4?(ot=0,H=Q+q(B-t.wkst,7)):H=n-l,j=Math.floor(52+q(H,7)/4)}if(L(t.byweekno,j))for(var D=0;D<l;D++)o.wnomask[D]=1}return o}function tr(e){var t=vt(e)?366:365,r=st(e,1,1),n=ct(r);return t===365?{mmask:Fe,mdaymask:qe,nmdaymask:Je,wdaymask:Xt.slice(n),mrange:Qe}:{mmask:Pe,mdaymask:Ke,nmdaymask:Ge,wdaymask:Xt.slice(n),mrange:Xe}}function er(e,t,r,n,i,a){var s={lastyear:e,lastmonth:t,nwdaymask:[]},o=[];if(a.freq===b.YEARLY)if(J(a.bymonth))o=[[0,r]];else for(var u=0;u<a.bymonth.length;u++)t=a.bymonth[u],o.push(n.slice(t-1,t+1));else a.freq===b.MONTHLY&&(o=[n.slice(t-1,t+1)]);if(J(o))return s;s.nwdaymask=S(0,r);for(var u=0;u<o.length;u++)for(var f=o[u],l=f[0],m=f[1]-1,h=0;h<a.bynweekday.length;h++){var d=void 0,w=a.bynweekday[h],M=w[0],D=w[1];D<0?(d=m+(D+1)*7,d-=q(i[d]-M,7)):(d=l+(D-1)*7,d+=q(7-i[d]+M,7)),l<=d&&d<=m&&(s.nwdaymask[d]=1)}return s}function rr(e,t){t===void 0&&(t=0);var r=e%19,n=Math.floor(e/100),i=e%100,a=Math.floor(n/4),s=n%4,o=Math.floor((n+8)/25),u=Math.floor((n-o+1)/3),f=Math.floor(19*r+n-a-u+15)%30,l=Math.floor(i/4),m=i%4,h=Math.floor(32+2*s+2*l-f-m)%7,d=Math.floor((r+11*f+22*h)/451),w=Math.floor((f+h-7*d+114)/31),M=(f+h-7*d+114)%31+1,D=Date.UTC(e,w-1,M+t),U=Date.UTC(e,0,1);return[Math.ceil((D-U)/(1e3*60*60*24))]}var nr=function(){function e(t){this.options=t}return e.prototype.rebuild=function(t,r){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=Ve(t,n)),$(n.bynweekday)&&(r!==this.lastmonth||t!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,s=i.mrange,o=i.wdaymask;this.monthinfo=er(t,r,a,s,o,n)}A(n.byeaster)&&(this.eastermask=rr(t,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[X(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(t,r){for(var n=this.mrange[r-1],i=this.mrange[r],a=S(null,this.yearlen),s=n;s<i;s++)a[s]=s;return[a,n,i]},e.prototype.wdayset=function(t,r,n){for(var i=S(null,this.yearlen+7),a=Lt(st(t,r,n))-this.yearordinal,s=a,o=0;o<7&&(i[a]=a,++a,this.wdaymask[a]!==this.options.wkst);o++);return[i,s,a]},e.prototype.ddayset=function(t,r,n){var i=S(null,this.yearlen),a=Lt(st(t,r,n))-this.yearordinal;return i[a]=a,[i,a,a+1]},e.prototype.htimeset=function(t,r,n,i){var a=this,s=[];return this.options.byminute.forEach(function(o){s=s.concat(a.mtimeset(t,o,n,i))}),bt(s),s},e.prototype.mtimeset=function(t,r,n,i){var a=this.options.bysecond.map(function(s){return new Et(t,r,s,i)});return bt(a),a},e.prototype.stimeset=function(t,r,n,i){return[new Et(t,r,n,i)]},e.prototype.getdayset=function(t){switch(t){case x.YEARLY:return this.ydayset.bind(this);case x.MONTHLY:return this.mdayset.bind(this);case x.WEEKLY:return this.wdayset.bind(this);case x.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(t){switch(t){case x.HOURLY:return this.htimeset.bind(this);case x.MINUTELY:return this.mtimeset.bind(this);case x.SECONDLY:return this.stimeset.bind(this)}},e}();function ir(e,t,r,n,i,a){for(var s=[],o=0;o<e.length;o++){var u=void 0,f=void 0,l=e[o];l<0?(u=Math.floor(l/t.length),f=q(l,t.length)):(u=Math.floor((l-1)/t.length),f=q(l-1,t.length));for(var m=[],h=r;h<n;h++){var d=a[h];A(d)&&m.push(d)}var w=void 0;u<0?w=m.slice(u)[0]:w=m[u];var M=t[f],D=le(i.yearordinal+w),U=de(D,M);L(s,U)||s.push(U)}return bt(s),s}function pe(e,t){var r=t.dtstart,n=t.freq,i=t.interval,a=t.until,s=t.bysetpos,o=t.count;if(o===0||i===0)return tt(e);var u=Ie.fromDate(r),f=new nr(t);f.rebuild(u.year,u.month);for(var l=sr(f,u,t);;){var m=f.getdayset(n)(u.year,u.month,u.day),h=m[0],d=m[1],w=m[2],M=or(h,d,w,f,t);if($(s))for(var D=ir(s,l,d,w,f,h),U=0;U<D.length;U++){var j=D[U];if(a&&j>a)return tt(e);if(j>=r){var B=Qt(j,t);if(!e.accept(B)||o&&(--o,!o))return tt(e)}}else for(var U=d;U<w;U++){var ot=h[U];if(A(ot))for(var Q=le(f.yearordinal+ot),H=0;H<l.length;H++){var dt=l[H],j=de(Q,dt);if(a&&j>a)return tt(e);if(j>=r){var B=Qt(j,t);if(!e.accept(B)||o&&(--o,!o))return tt(e)}}}if(t.interval===0||(u.add(t,M),u.year>fe))return tt(e);Wt(n)||(l=f.gettimeset(n)(u.hour,u.minute,u.second,0)),f.rebuild(u.year,u.month)}}function ar(e,t,r){var n=r.bymonth,i=r.byweekno,a=r.byweekday,s=r.byeaster,o=r.bymonthday,u=r.bynmonthday,f=r.byyearday;return $(n)&&!L(n,e.mmask[t])||$(i)&&!e.wnomask[t]||$(a)&&!L(a,e.wdaymask[t])||$(e.nwdaymask)&&!e.nwdaymask[t]||s!==null&&!L(e.eastermask,t)||($(o)||$(u))&&!L(o,e.mdaymask[t])&&!L(u,e.nmdaymask[t])||$(f)&&(t<e.yearlen&&!L(f,t+1)&&!L(f,-e.yearlen+t)||t>=e.yearlen&&!L(f,t+1-e.yearlen)&&!L(f,-e.nextyearlen+t-e.yearlen))}function Qt(e,t){return new Dt(e,t.tzid).rezonedDate()}function tt(e){return e.getValue()}function or(e,t,r,n,i){for(var a=!1,s=t;s<r;s++){var o=e[s];a=ar(n,o,i),a&&(e[o]=null)}return a}function sr(e,t,r){var n=r.freq,i=r.byhour,a=r.byminute,s=r.bysecond;return Wt(n)?Ae(r):n>=b.HOURLY&&$(i)&&!L(i,t.hour)||n>=b.MINUTELY&&$(a)&&!L(a,t.minute)||n>=b.SECONDLY&&$(s)&&!L(s,t.second)?[]:e.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}var Z={MO:new F(0),TU:new F(1),WE:new F(2),TH:new F(3),FR:new F(4),SA:new F(5),SU:new F(6)},Ht={freq:x.YEARLY,dtstart:null,interval:1,wkst:Z.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},ur=Object.keys(Ht),b=function(){function e(t,r){t===void 0&&(t={}),r===void 0&&(r=!1),this._cache=r?null:new He,this.origOptions=me(t);var n=_e(t).parsedOptions;this.options=n}return e.parseText=function(t,r){return ye(t,r)},e.fromText=function(t,r){return Ye(t,r)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(t){return pe(t,this.options)},e.prototype._cacheGet=function(t,r){return this._cache?this._cache._cacheGet(t,r):!1},e.prototype._cacheAdd=function(t,r,n){if(this._cache)return this._cache._cacheAdd(t,r,n)},e.prototype.all=function(t){if(t)return this._iter(new Zt("all",{},t));var r=this._cacheGet("all");return r===!1&&(r=this._iter(new ht("all",{})),this._cacheAdd("all",r)),r},e.prototype.between=function(t,r,n,i){if(n===void 0&&(n=!1),!pt(t)||!pt(r))throw new Error("Invalid date passed in to RRule.between");var a={before:r,after:t,inc:n};if(i)return this._iter(new Zt("between",a,i));var s=this._cacheGet("between",a);return s===!1&&(s=this._iter(new ht("between",a)),this._cacheAdd("between",s,a)),s},e.prototype.before=function(t,r){if(r===void 0&&(r=!1),!pt(t))throw new Error("Invalid date passed in to RRule.before");var n={dt:t,inc:r},i=this._cacheGet("before",n);return i===!1&&(i=this._iter(new ht("before",n)),this._cacheAdd("before",i,n)),i},e.prototype.after=function(t,r){if(r===void 0&&(r=!1),!pt(t))throw new Error("Invalid date passed in to RRule.after");var n={dt:t,inc:r},i=this._cacheGet("after",n);return i===!1&&(i=this._iter(new ht("after",n)),this._cacheAdd("after",i,n)),i},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return At(this.origOptions)},e.prototype.toText=function(t,r,n){return Le(this,t,r,n)},e.prototype.isFullyConvertibleToText=function(){return Ue(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=x.YEARLY,e.MONTHLY=x.MONTHLY,e.WEEKLY=x.WEEKLY,e.DAILY=x.DAILY,e.HOURLY=x.HOURLY,e.MINUTELY=x.MINUTELY,e.SECONDLY=x.SECONDLY,e.MO=Z.MO,e.TU=Z.TU,e.WE=Z.WE,e.TH=Z.TH,e.FR=Z.FR,e.SA=Z.SA,e.SU=Z.SU,e.parseString=_t,e.optionsToString=At,e}();function fr(e,t,r,n,i,a){var s={},o=e.accept;function u(h,d){r.forEach(function(w){w.between(h,d,!0).forEach(function(M){s[Number(M)]=!0})})}i.forEach(function(h){var d=new Dt(h,a).rezonedDate();s[Number(d)]=!0}),e.accept=function(h){var d=Number(h);return isNaN(d)?o.call(this,h):!s[d]&&(u(new Date(d-1),new Date(d+1)),!s[d])?(s[d]=!0,o.call(this,h)):!0},e.method==="between"&&(u(e.args.after,e.args.before),e.accept=function(h){var d=Number(h);return s[d]?!0:(s[d]=!0,o.call(this,h))});for(var f=0;f<n.length;f++){var l=new Dt(n[f],a).rezonedDate();if(!e.accept(new Date(l.getTime())))break}t.forEach(function(h){pe(e,h.options)});var m=e._result;switch(bt(m),e.method){case"all":case"between":return m;case"before":return m.length&&m[m.length-1]||null;case"after":default:return m.length&&m[0]||null}}var Vt={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function hr(e,t){var r=[],n=[],i=[],a=[],s=Mt(e),o=s.dtstart,u=s.tzid,f=mr(e,t.unfold);return f.forEach(function(l){var m;if(l){var h=yr(l),d=h.name,w=h.parms,M=h.value;switch(d.toUpperCase()){case"RRULE":if(w.length)throw new Error("unsupported RRULE parm: ".concat(w.join(",")));r.push(_t(l));break;case"RDATE":var D=(m=/RDATE(?:;TZID=([^:=]+))?/i.exec(l))!==null&&m!==void 0?m:[],U=D[1];U&&!u&&(u=U),n=n.concat(ee(M,w));break;case"EXRULE":if(w.length)throw new Error("unsupported EXRULE parm: ".concat(w.join(",")));i.push(_t(M));break;case"EXDATE":a=a.concat(ee(M,w));break;case"DTSTART":break;default:throw new Error("unsupported property: "+d)}}}),{dtstart:o,tzid:u,rrulevals:r,rdatevals:n,exrulevals:i,exdatevals:a}}function cr(e,t){var r=hr(e,t),n=r.rrulevals,i=r.rdatevals,a=r.exrulevals,s=r.exdatevals,o=r.dtstart,u=r.tzid,f=t.cache===!1;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||n.length>1||i.length||a.length||s.length){var l=new vr(f);return l.dtstart(o),l.tzid(u||void 0),n.forEach(function(h){l.rrule(new b(Ot(h,o,u),f))}),i.forEach(function(h){l.rdate(h)}),a.forEach(function(h){l.exrule(new b(Ot(h,o,u),f))}),s.forEach(function(h){l.exdate(h)}),t.compatible&&t.dtstart&&l.rdate(o),l}var m=n[0]||{};return new b(Ot(m,m.dtstart||t.dtstart||o,m.tzid||t.tzid||u),f)}function te(e,t){return t===void 0&&(t={}),cr(e,lr(t))}function Ot(e,t,r){return K(K({},e),{dtstart:t,tzid:r})}function lr(e){var t=[],r=Object.keys(e),n=Object.keys(Vt);if(r.forEach(function(i){L(n,i)||t.push(i)}),t.length)throw new Error("Invalid options: "+t.join(", "));return K(K({},Vt),e)}function dr(e){if(e.indexOf(":")===-1)return{name:"RRULE",value:e};var t=ge(e,":",1),r=t[0],n=t[1];return{name:r,value:n}}function yr(e){var t=dr(e),r=t.name,n=t.value,i=r.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}function mr(e,t){if(t===void 0&&(t=!1),e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);for(var r=e.split(`
4
+ `),n=0;n<r.length;){var i=r[n]=r[n].replace(/\s+$/g,"");i?n>0&&i[0]===" "?(r[n-1]+=i.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}function pr(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function ee(e,t){return pr(t),e.split(",").map(function(r){return Ct(r)})}function re(e){var t=this;return function(r){if(r!==void 0&&(t["_".concat(e)]=r),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var vr=function(e){Rt(t,e);function t(r){r===void 0&&(r=!1);var n=e.call(this,{},r)||this;return n.dtstart=re.apply(n,["dtstart"]),n.tzid=re.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return t.prototype._iter=function(r){return fr(r,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(r){ne(r,this._rrule)},t.prototype.exrule=function(r){ne(r,this._exrule)},t.prototype.rdate=function(r){ie(r,this._rdate)},t.prototype.exdate=function(r){ie(r,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(r){return te(r.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(r){return te(r.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(r){return new Date(r.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(r){return new Date(r.getTime())})},t.prototype.valueOf=function(){var r=[];return!this._rrule.length&&this._dtstart&&(r=r.concat(At({dtstart:this._dtstart}))),this._rrule.forEach(function(n){r=r.concat(n.toString().split(`
5
+ `))}),this._exrule.forEach(function(n){r=r.concat(n.toString().split(`
6
+ `).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&r.push(ae("RDATE",this._rdate,this.tzid())),this._exdate.length&&r.push(ae("EXDATE",this._exdate,this.tzid())),r},t.prototype.toString=function(){return this.valueOf().join(`
7
+ `)},t.prototype.clone=function(){var r=new t(!!this._cache);return this._rrule.forEach(function(n){return r.rrule(n.clone())}),this._exrule.forEach(function(n){return r.exrule(n.clone())}),this._rdate.forEach(function(n){return r.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return r.exdate(new Date(n.getTime()))}),r},t}(b);function ne(e,t){if(!(e instanceof b))throw new TypeError(String(e)+" is not RRule instance");L(t.map(String),String(e))||t.push(e)}function ie(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");L(t.map(Number),Number(e))||(t.push(e),bt(t))}function ae(e,t,r){var n=!r||r.toUpperCase()==="UTC",i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(r,":"),a=t.map(function(s){return $t(s.valueOf(),n)}).join(",");return"".concat(i).concat(a)}function br(...e){window&&window.localStorage&&window.localStorage.getItem("debug")&&console.debug(...e)}function wr(...e){console.error(...e)}function gr(){return Math.random().toString(36).substr(2,9)}function Tr(e){return e.toString().replace(/^on/,"")}function kr(e){const t=new Date(e*1e3),r=new Date,n=new Date(r.getFullYear(),r.getMonth(),r.getDate());return t>=n?new Intl.DateTimeFormat("default",{hour:"numeric",minute:"numeric",hour12:!0}).format(t):new Intl.DateTimeFormat("default",{month:"short",day:"numeric"}).format(t)}function Er(e){return e.name?`${e.name} - ${e.email}`:e.email}function Mr(e,t="",r=1,n=3){const i=e.find(u=>{var f;return((f=u.email)==null?void 0:f.toLowerCase())===t.toLowerCase()}),a=e.filter(u=>{var f;return((f=u.email)==null?void 0:f.toLowerCase())!==t.toLowerCase()}),s=a.length,o=a.slice(0,n).map(u=>u.name||u.email).join(", ");return s===0?i?"me":"":s===1?i&&r>1?`me, ${o}`:o:s===2?i?`me, ${o}`:`${o}`:i?`me, ${o}, +${s-n}`:`${o}, +${s-n}`}const oe=[{amount:60,name:"seconds"},{amount:60,name:"minutes"},{amount:24,name:"hours"},{amount:7,name:"days"},{amount:4.34524,name:"weeks"},{amount:12,name:"months"},{amount:Number.POSITIVE_INFINITY,name:"years"}],Dr=e=>{const t=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),r=new Date;let n=(e.getTime()-r.getTime())/1e3;for(let i=0;i<=oe.length;i++){const a=oe[i];if(Math.abs(n)<a.amount)return t.format(Math.round(n),a.name);n/=a.amount}};function Sr(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function xr(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Or(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Yr(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Lr(e){return e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase())}function Ur(e){return e.replace("CATEGORY_","").replace(/_/g," ")}function ve(e){return/<[^>]*>/g.test(e)?"html":"plain"}function Ir(e){var i,a;const t=e.headers,r=t&&((i=t.find(s=>s.name==="Content-Type"))==null?void 0:i.value)||"",n=t&&((a=t.find(s=>s.name==="Content-Disposition"))==null?void 0:a.value)||"";return!!(r.includes("text/html")||n.includes("inline")||e.body&&ve(e.body)==="html")}function _r(e){let n=e.split(`
8
+ `).filter(a=>a.trim().length>0).map(a=>`<p>${a}</p>`).join("");const i=/((?:https?|ftp):\/\/[^\s]+)/g;return n=n.replace(i,'<a href="$1">$1</a>'),n}function Ar(e){return new DOMParser().parseFromString(e,"text/html").body.textContent||""}const Nr=e=>e===""?!0:/^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i.test(e),$r=e=>/^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i.test(e);function Cr(e=null){let t=Nt();e&&(t=e);const r=t.minute()%15;let n;return r!==0?n=t.add(15-r,"minute"):n=t,n}function Rr(e){const t=Nt();let r="";const[n,i]=e.split(":");n.length===1?r+="0"+n:n.length===2&&(r+=n),r+=":",i===void 0||i==""?r+="00":i.length===1?r+=i+"0":r+=i;const a=r.slice(-1);return a==="a"&&(r+="m"),a==="p"&&(r+="m"),r.slice(-1)!=="m"&&(r.split(":")[0]=="00"?r+="am":r+=t.format("a")),r}function Wr(e){const[t,r]=e.split(":").map(o=>parseInt(o,10));let n=t;const i=n>=12?"pm":"am";n=n%12,n=n||12;const a=n.toString().padStart(2,"0"),s=r.toString().padStart(2,"0");return`${a}:${s}${i}`}function Hr(e){const[t,r]=e.split(/(am|pm)/i),[n,i]=t.split(":").map(s=>parseInt(s,10));let a=n;return r.toLowerCase()==="pm"&&a<12?a+=12:r.toLowerCase()==="am"&&a===12&&(a=0),`${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}function Fr(e){const[t,r]=e.match(/(\d+):(\d+)(am|pm)/).slice(1);let n=parseInt(t,10)*60+parseInt(r,10);return e.includes("pm")&&parseInt(t,10)<12&&(n+=12*60),e.includes("am")&&parseInt(t,10)===12&&(n-=12*60),n}function Pr(e){const t=Math.floor(e/60),r=e%60;return`${t}:${r<10?"0":""}${r}`}function jr(){const e=navigator.userAgent,t=/Chrome/.test(e)&&/Google Inc/.test(navigator.vendor),r=/Safari/.test(e)&&/Apple Computer/.test(navigator.vendor),n=/Firefox/.test(e),i=/Trident/.test(e),a=/Edge/.test(e);return t&&/Edg/.test(e)?"Edge (Chromium)":t?"Chrome":r?"Safari":n?"Firefox":i?"Internet Explorer":a?"Edge (Legacy)":"Unknown"}exports.autocompleteTimeFormat=Rr;exports.convertTo12HourFormat=Wr;exports.convertTo24HourFormat=Hr;exports.dayjs=Nt;exports.debug=br;exports.detectHTMLOrPlainText=ve;exports.detectIfMessageIsHTML=Ir;exports.error=wr;exports.formatDateTime=kr;exports.formatEventName=Tr;exports.formatFolderName=Ur;exports.formatParticipants=Mr;exports.formatRecipient=Er;exports.formatTimeAgo=Dr;exports.getBrowser=jr;exports.getFirstDayOfMonth=xr;exports.getLastDayOfMonth=Sr;exports.htmlToPlainText=Ar;exports.isSameDay=Or;exports.isSameMonth=Yr;exports.minutesToTime=Pr;exports.parsePlainTextToHTML=_r;exports.roundToNearest15Minutes=Cr;exports.timeToMinutes=Fr;exports.toTitleCase=Lr;exports.uniqueID=gr;exports.validateExactTimeFormat=$r;exports.validateTimeFormatInput=Nr;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b8437d6.cjs");require("react");require("react-dom");const t=".sc-warning-icon-h{display:flex}",r=t,c=class{constructor(n){e.registerInstance(this,n),this.width="16",this.height="16"}render(){return e.h("svg",{key:"17a6924f3361b1cfc5d64fb4c07e8ec769617bb3",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"cc403a3f0c8ec9bdb7c497de7235d24cc5c5cae7",d:"M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z",fill:"currentColor"}))}};c.style=r;exports.warning_icon=c;
@@ -0,0 +1,15 @@
1
+ import { r as t, h as c } from "./index-db0c5017.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const a = ".sc-warning-icon-h{display:flex}", r = a, e = class {
5
+ constructor(n) {
6
+ t(this, n), this.width = "16", this.height = "16";
7
+ }
8
+ render() {
9
+ return c("svg", { key: "17a6924f3361b1cfc5d64fb4c07e8ec769617bb3", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "cc403a3f0c8ec9bdb7c497de7235d24cc5c5cae7", d: "M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z", fill: "currentColor" }));
10
+ }
11
+ };
12
+ e.style = r;
13
+ export {
14
+ e as warning_icon
15
+ };
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@nylas/react",
3
- "version": "1.0.2-prealpha1",
3
+ "version": "1.1.0-canary.4",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/nylas/nylas.git"
8
8
  },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
9
12
  "files": [
10
13
  "dist"
11
14
  ],
@@ -17,10 +20,10 @@
17
20
  "module": "dist/react.js",
18
21
  "types": "dist/index.d.ts",
19
22
  "dependencies": {
20
- "@nylas/web-elements": "*",
21
- "@nylas/core": "*",
22
23
  "react": "^18.2.0",
23
- "react-dom": "^18.2.0"
24
+ "react-dom": "^18.2.0",
25
+ "@nylas/web-elements": "^1.1.0-canary.4",
26
+ "@nylas/core": "^1.1.0-canary.1"
24
27
  },
25
28
  "devDependencies": {
26
29
  "@types/node": "^20.8.10",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const i=".sc-add-circle-icon-h{display:flex}",r=i,t=class{constructor(c){e.registerInstance(this,c),this.width="24",this.height="25"}render(){return e.h("svg",{key:"7e962445ef152ab26c944069ba66c3b8f1138fb5",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"e9ea9c43495a1d3414500764462573a8f74a7ccc",d:"M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z",fill:"currentColor"}))}};t.style=r;exports.add_circle_icon=t;
@@ -1,15 +0,0 @@
1
- import { r as e, h as t } from "./index-630f4e87.js";
2
- import "react";
3
- import "react-dom";
4
- const i = ".sc-add-circle-icon-h{display:flex}", s = i, h = class {
5
- constructor(c) {
6
- e(this, c), this.width = "24", this.height = "25";
7
- }
8
- render() {
9
- return t("svg", { key: "7e962445ef152ab26c944069ba66c3b8f1138fb5", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "e9ea9c43495a1d3414500764462573a8f74a7ccc", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
10
- }
11
- };
12
- h.style = s;
13
- export {
14
- h as add_circle_icon
15
- };
@@ -1,15 +0,0 @@
1
- import { r as e, h as t } from "./index-630f4e87.js";
2
- import "react";
3
- import "react-dom";
4
- const o = ".sc-arrow-icon-h{display:flex}", s = o, i = class {
5
- constructor(r) {
6
- e(this, r), this.width = "15", this.height = "15";
7
- }
8
- render() {
9
- return t("svg", { key: "7ecb2aa37cd1616a23586de622a6038db4543f96", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "426debbbc4f816b6c62cee4b9e6f817d35f3cabe", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
10
- }
11
- };
12
- i.style = s;
13
- export {
14
- i as arrow_icon
15
- };
@@ -1,35 +0,0 @@
1
- import { r as t, h as e } from "./index-630f4e87.js";
2
- import "react";
3
- import "react-dom";
4
- const h = ".sc-calendar-check-icon-h{display:flex}", s = h, i = class {
5
- constructor(c) {
6
- t(this, c), this.width = "20", this.height = "20";
7
- }
8
- render() {
9
- return e("svg", { key: "2f35e2fc19892e674d210d56631fc2a338f16045", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "adccb3d5106fbcd47d12333e3f3cd3206c9fad09", fill: "currentColor", d: "M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z" }));
10
- }
11
- };
12
- i.style = s;
13
- const a = ".sc-checkmark-circle-icon-h{display:flex}", o = a, n = class {
14
- constructor(c) {
15
- t(this, c), this.width = "20", this.height = "20";
16
- }
17
- render() {
18
- return e("svg", { key: "6206e286f28985f5de51e1a24a869a90843dcca5", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, e("path", { key: "be5d89b4e6b215257483e4b0247b63e6e60ab10d", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
19
- }
20
- };
21
- n.style = o;
22
- const l = ".sc-people-icon-h{display:flex}", r = l, d = class {
23
- constructor(c) {
24
- t(this, c), this.width = "20", this.height = "20";
25
- }
26
- render() {
27
- return e("svg", { key: "a695d7799ae8a2fa17281631670c98c7b47c3272", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, e("path", { key: "602658c3404abc9bc6b780403e370f55937830a5", fill: "currentColor", d: "M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" }));
28
- }
29
- };
30
- d.style = r;
31
- export {
32
- i as calendar_check_icon,
33
- n as checkmark_circle_icon,
34
- d as people_icon
35
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const s=".sc-calendar-check-icon-h{display:flex}",n=s,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"2f35e2fc19892e674d210d56631fc2a338f16045",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"adccb3d5106fbcd47d12333e3f3cd3206c9fad09",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};t.style=n;const r=".sc-checkmark-circle-icon-h{display:flex}",a=r,h=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"6206e286f28985f5de51e1a24a869a90843dcca5",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"be5d89b4e6b215257483e4b0247b63e6e60ab10d",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};h.style=a;const l=".sc-people-icon-h{display:flex}",o=l,i=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"a695d7799ae8a2fa17281631670c98c7b47c3272",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"602658c3404abc9bc6b780403e370f55937830a5",fill:"currentColor",d:"M11 10a2 2 0 0 1 2 2v1.5c0 2.054-2.088 3.5-5.5 3.5S2 15.554 2 13.5V12a2 2 0 0 1 2-2h7Zm0 1H4a1 1 0 0 0-1 1v1.5C3 14.907 4.579 16 7.5 16c2.921 0 4.5-1.093 4.5-2.5V12a1 1 0 0 0-1-1Zm5-1a2 2 0 0 1 2 2v.5c0 2.089-1.568 3.5-4.5 3.5-.141 0-.28-.003-.414-.01.208-.242.382-.502.522-.781l.097-.213h.039C15.976 14.931 17 13.96 17 12.5V12a1 1 0 0 0-1-1h-2.171a3 3 0 0 0-.594-1H16ZM7.5 2a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm7 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-7-1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm7 2a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"}))}};i.style=o;exports.calendar_check_icon=t;exports.checkmark_circle_icon=h;exports.people_icon=i;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const r=".sc-chevron-icon-h{display:flex}",n=r,t=class{constructor(i){e.registerInstance(this,i),this.width="24",this.height="24"}render(){return e.h("svg",{key:"dcb758ef1675366699ff0ecd873d03f0a67d983b",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},e.h("path",{key:"2209cbd4be943d52eeb4d7995f8c9ec8e685288e",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};t.style=n;exports.chevron_icon=t;
@@ -1,15 +0,0 @@
1
- import { r as o, h as e } from "./index-630f4e87.js";
2
- import "react";
3
- import "react-dom";
4
- const s = ".sc-chevron-icon-h{display:flex}", h = s, i = class {
5
- constructor(t) {
6
- o(this, t), this.width = "24", this.height = "24";
7
- }
8
- render() {
9
- return e("svg", { key: "dcb758ef1675366699ff0ecd873d03f0a67d983b", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, e("path", { key: "2209cbd4be943d52eeb4d7995f8c9ec8e685288e", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
10
- }
11
- };
12
- i.style = h;
13
- export {
14
- i as chevron_icon
15
- };
@@ -1,25 +0,0 @@
1
- import { r as c, h as e } from "./index-630f4e87.js";
2
- import "react";
3
- import "react-dom";
4
- const t = ".sc-close-icon-h{display:flex}", s = t, n = class {
5
- constructor(a) {
6
- c(this, a), this.width = "16", this.height = "16";
7
- }
8
- render() {
9
- return e("svg", { key: "e4f9de77995d976ac6125eacbd8f2ab066955906", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "031cdb32a4be39a2a1957c13d9773d724e36986f", "clip-path": "url(#a)" }, e("path", { key: "16feac84265be719e9815cfc426c9ffe5040dc4b", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), e("defs", { key: "49eb970af382aee0e5cc57e70fa143666c56a0cf" }, e("clipPath", { key: "e44af07a4cb0bd9c18505e8bd81d2a89c97f4e0d", id: "a" }, e("path", { key: "c85e468e43e4ea7474312073f63a937cfa5e462c", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
10
- }
11
- };
12
- n.style = s;
13
- const i = ".sc-warning-icon-h{display:flex}", l = i, o = class {
14
- constructor(a) {
15
- c(this, a), this.width = "16", this.height = "16";
16
- }
17
- render() {
18
- return e("svg", { key: "ae11b2ed6bec3457a98409f686027de0795609aa", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "3157f8eb65d3921f85af442f331952638c5af3fc", d: "M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z", fill: "currentColor" }));
19
- }
20
- };
21
- o.style = l;
22
- export {
23
- n as close_icon,
24
- o as warning_icon
25
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const n=".sc-close-icon-h{display:flex}",s=n,c=class{constructor(a){e.registerInstance(this,a),this.width="16",this.height="16"}render(){return e.h("svg",{key:"e4f9de77995d976ac6125eacbd8f2ab066955906",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"031cdb32a4be39a2a1957c13d9773d724e36986f","clip-path":"url(#a)"},e.h("path",{key:"16feac84265be719e9815cfc426c9ffe5040dc4b",d:"M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z",fill:"currentColor"})),e.h("defs",{key:"49eb970af382aee0e5cc57e70fa143666c56a0cf"},e.h("clipPath",{key:"e44af07a4cb0bd9c18505e8bd81d2a89c97f4e0d",id:"a"},e.h("path",{key:"c85e468e43e4ea7474312073f63a937cfa5e462c",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};c.style=s;const i=".sc-warning-icon-h{display:flex}",r=i,t=class{constructor(a){e.registerInstance(this,a),this.width="16",this.height="16"}render(){return e.h("svg",{key:"ae11b2ed6bec3457a98409f686027de0795609aa",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"3157f8eb65d3921f85af442f331952638c5af3fc",d:"M10.149 7.054a.5.5 0 0 1 .5.5v4a.5.5 0 1 1-1 0v-4a.5.5 0 0 1 .5-.5Zm0 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM8.834 2.906a1.5 1.5 0 0 1 2.63 0l6.558 11.925a1.5 1.5 0 0 1-1.314 2.223H3.59a1.5 1.5 0 0 1-1.314-2.223L8.834 2.906Zm1.753.482a.5.5 0 0 0-.876 0L3.15 15.313a.5.5 0 0 0 .439.741h13.117a.5.5 0 0 0 .439-.741l-6.56-11.925Z",fill:"currentColor"}))}};t.style=r;exports.close_icon=c;exports.warning_icon=t;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const a=".sc-document-refresh-icon-h{display:flex}",d=a,c=class{constructor(t){e.registerInstance(this,t),this.width="18",this.height="18"}render(){return e.h("svg",{key:"bd5278d5e84a3a254a73385c6bb36072dcf09fd1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:this.width,height:this.height},e.h("rect",{key:"6cc0bd89bf9bf378550ba51d79c769f28e5453f2",id:"Canvas",fill:"#ff13dc",opacity:"0"}),e.h("path",{key:"e1af06a0086c053ba81c4794cc590b27051ec3e8",d:"M9.19763,12.26283A4.44131,4.44131,0,0,1,16.948,10.71741l.62524-.62524a.24433.24433,0,0,1,.1748-.07373.25035.25035,0,0,1,.252.24875v2.50143a.25.25,0,0,1-.25.25l-2.4995-.00016A.25088.25088,0,0,1,15,12.76721v-.00054a.24436.24436,0,0,1,.07373-.175l.86988-.86987a3.02827,3.02827,0,0,0-5.29847.71808.48835.48835,0,0,1-.46081.30981H9.55908a.37949.37949,0,0,1-.36145-.48686Z"}),e.h("path",{key:"e2cbbf7d7072aad08b71763c93e2f12083f88e26",d:"M17.80237,14.77441A4.4413,4.4413,0,0,1,10.052,16.31982l-.62524.62524a.24429.24429,0,0,1-.1748.07373A.25036.25036,0,0,1,9,16.77V14.26863a.25.25,0,0,1,.25-.25l2.4995.00016A.25087.25087,0,0,1,12,14.27v.00052a.24434.24434,0,0,1-.07373.175l-.86988.86988a3.02828,3.02828,0,0,0,5.29847-.71808.48836.48836,0,0,1,.46081-.30982h.62525a.3795.3795,0,0,1,.36145.48687Z"}),e.h("path",{key:"cd2af8f0b4bdceb4745503d8d4ca1ed8539e4315",d:"M7,13.5A6.5,6.5,0,0,1,13.5,7c.16883,0,.33447.01264.5.02527V5H9.5A.5.5,0,0,1,9,4.5V0H2.5A.5.5,0,0,0,2,.5v15a.5.5,0,0,0,.5.5H7.49981A6.4779,6.4779,0,0,1,7,13.5Z"}),e.h("path",{key:"2bc57289fddba169f845c6eb31f4fd00d80ed2cb",d:"M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z"}))}};c.style=d;exports.document_refresh_icon=c;
@@ -1,15 +0,0 @@
1
- import { r as t, h as e } from "./index-630f4e87.js";
2
- import "react";
3
- import "react-dom";
4
- const a = ".sc-document-refresh-icon-h{display:flex}", d = a, s = class {
5
- constructor(c) {
6
- t(this, c), this.width = "18", this.height = "18";
7
- }
8
- render() {
9
- return e("svg", { key: "bd5278d5e84a3a254a73385c6bb36072dcf09fd1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: this.width, height: this.height }, e("rect", { key: "6cc0bd89bf9bf378550ba51d79c769f28e5453f2", id: "Canvas", fill: "#ff13dc", opacity: "0" }), e("path", { key: "e1af06a0086c053ba81c4794cc590b27051ec3e8", d: "M9.19763,12.26283A4.44131,4.44131,0,0,1,16.948,10.71741l.62524-.62524a.24433.24433,0,0,1,.1748-.07373.25035.25035,0,0,1,.252.24875v2.50143a.25.25,0,0,1-.25.25l-2.4995-.00016A.25088.25088,0,0,1,15,12.76721v-.00054a.24436.24436,0,0,1,.07373-.175l.86988-.86987a3.02827,3.02827,0,0,0-5.29847.71808.48835.48835,0,0,1-.46081.30981H9.55908a.37949.37949,0,0,1-.36145-.48686Z" }), e("path", { key: "e2cbbf7d7072aad08b71763c93e2f12083f88e26", d: "M17.80237,14.77441A4.4413,4.4413,0,0,1,10.052,16.31982l-.62524.62524a.24429.24429,0,0,1-.1748.07373A.25036.25036,0,0,1,9,16.77V14.26863a.25.25,0,0,1,.25-.25l2.4995.00016A.25087.25087,0,0,1,12,14.27v.00052a.24434.24434,0,0,1-.07373.175l-.86988.86988a3.02828,3.02828,0,0,0,5.29847-.71808.48836.48836,0,0,1,.46081-.30982h.62525a.3795.3795,0,0,1,.36145.48687Z" }), e("path", { key: "cd2af8f0b4bdceb4745503d8d4ca1ed8539e4315", d: "M7,13.5A6.5,6.5,0,0,1,13.5,7c.16883,0,.33447.01264.5.02527V5H9.5A.5.5,0,0,1,9,4.5V0H2.5A.5.5,0,0,0,2,.5v15a.5.5,0,0,0,.5.5H7.49981A6.4779,6.4779,0,0,1,7,13.5Z" }), e("path", { key: "2bc57289fddba169f845c6eb31f4fd00d80ed2cb", d: "M10,0h.043a.5.5,0,0,1,.353.146L13.854,3.6A.5.5,0,0,1,14,3.957V4H10Z" }));
10
- }
11
- };
12
- s.style = d;
13
- export {
14
- s as document_refresh_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";const c=new Date,w=new Date;function M(e,l,h,D){function u(n){return e(n=arguments.length===0?new Date:new Date(+n)),n}return u.floor=n=>(e(n=new Date(+n)),n),u.ceil=n=>(e(n=new Date(n-1)),l(n,1),e(n),n),u.round=n=>{const r=u(n),i=u.ceil(n);return n-r<i-n?r:i},u.offset=(n,r)=>(l(n=new Date(+n),r==null?1:Math.floor(r)),n),u.range=(n,r,i)=>{const o=[];if(n=u.ceil(n),i=i==null?1:Math.floor(i),!(n<r)||!(i>0))return o;let m;do o.push(m=new Date(+n)),l(n,i),e(n);while(m<n&&n<r);return o},u.filter=n=>M(r=>{if(r>=r)for(;e(r),!n(r);)r.setTime(r-1)},(r,i)=>{if(r>=r)if(i<0)for(;++i<=0;)for(;l(r,-1),!n(r););else for(;--i>=0;)for(;l(r,1),!n(r););}),h&&(u.count=(n,r)=>(c.setTime(+n),w.setTime(+r),e(c),e(w),Math.floor(h(c,w))),u.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?u.filter(D?r=>D(r)%n===0:r=>u.count(0,r)%n===0):u)),u}const v=1e3,g=v*60,t=g*60,y=t*24;exports.durationDay=y;exports.durationHour=t;exports.durationMinute=g;exports.durationSecond=v;exports.timeInterval=M;
@@ -1,41 +0,0 @@
1
- const w = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
2
- function M(e, l, o, D) {
3
- function u(n) {
4
- return e(n = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+n)), n;
5
- }
6
- return u.floor = (n) => (e(n = /* @__PURE__ */ new Date(+n)), n), u.ceil = (n) => (e(n = new Date(n - 1)), l(n, 1), e(n), n), u.round = (n) => {
7
- const r = u(n), i = u.ceil(n);
8
- return n - r < i - n ? r : i;
9
- }, u.offset = (n, r) => (l(n = /* @__PURE__ */ new Date(+n), r == null ? 1 : Math.floor(r)), n), u.range = (n, r, i) => {
10
- const c = [];
11
- if (n = u.ceil(n), i = i == null ? 1 : Math.floor(i), !(n < r) || !(i > 0))
12
- return c;
13
- let m;
14
- do
15
- c.push(m = /* @__PURE__ */ new Date(+n)), l(n, i), e(n);
16
- while (m < n && n < r);
17
- return c;
18
- }, u.filter = (n) => M((r) => {
19
- if (r >= r)
20
- for (; e(r), !n(r); )
21
- r.setTime(r - 1);
22
- }, (r, i) => {
23
- if (r >= r)
24
- if (i < 0)
25
- for (; ++i <= 0; )
26
- for (; l(r, -1), !n(r); )
27
- ;
28
- else
29
- for (; --i >= 0; )
30
- for (; l(r, 1), !n(r); )
31
- ;
32
- }), o && (u.count = (n, r) => (w.setTime(+n), h.setTime(+r), e(w), e(h), Math.floor(o(w, h))), u.every = (n) => (n = Math.floor(n), !isFinite(n) || !(n > 0) ? null : n > 1 ? u.filter(D ? (r) => D(r) % n === 0 : (r) => u.count(0, r) % n === 0) : u)), u;
33
- }
34
- const g = 1e3, v = g * 60, T = v * 60, y = T * 24;
35
- export {
36
- g as a,
37
- T as b,
38
- y as c,
39
- v as d,
40
- M as t
41
- };
@@ -1,30 +0,0 @@
1
- "use strict";var un=Object.defineProperty;var dn=(e,t,s)=>t in e?un(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var ve=(e,t,s)=>(dn(e,typeof t!="symbol"?t+"":t,s),s);const N=require("react");require("react-dom");function fn(){var e=[];if(typeof window<"u"){var t=window;(!t.customElements||t.Element&&(!t.Element.prototype.closest||!t.Element.prototype.matches||!t.Element.prototype.remove||!t.Element.prototype.getRootNode))&&e.push(Promise.resolve().then(()=>require("./dom-68f08be9.cjs")));var s=function(){try{var r=new URL("b","http://a");return r.pathname="c%20d",r.href==="http://a/c%20d"&&r.searchParams}catch{return!1}};(typeof Object.assign!="function"||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||t.NodeList&&!t.NodeList.prototype.forEach||!t.fetch||!s()||typeof WeakMap>"u")&&e.push(Promise.resolve().then(()=>require("./core-js-38e53e34.cjs")))}return Promise.all(e)}const hn="nylas-web-elements";let se,Pe,L=!1,Ee=null,Se=!1;const M=(e,t="")=>()=>{},pn=(e,t)=>()=>{},$n="{visibility:hidden}.hydrated{visibility:inherit}",ht="slot-fb{display:contents}slot-fb[hidden]{display:none}",tt={},gn="http://www.w3.org/2000/svg",yn="http://www.w3.org/1999/xhtml",vn=e=>e!=null,Te=e=>(e=typeof e,e==="object"||e==="function");function pt(e){var t,s,r;return(r=(s=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||s===void 0?void 0:s.getAttribute("content"))!==null&&r!==void 0?r:void 0}const _e=(e,t,...s)=>{let r=null,o=null,l=!1,a=!1;const u=[],c=$=>{for(let p=0;p<$.length;p++)r=$[p],Array.isArray(r)?c(r):r!=null&&typeof r!="boolean"&&((l=typeof e!="function"&&!Te(r))&&(r=String(r)),l&&a?u[u.length-1].$text$+=r:u.push(l?oe(null,r):r),a=l)};if(c(s),t){t.key&&(o=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(p=>$[p]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,u,bn);const f=oe(e,null);return f.$attrs$=t,u.length>0&&(f.$children$=u),f.$key$=o,f},oe=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},$t={},mn=e=>e&&e.$tag$===$t,bn={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(En)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),En=e=>{if(typeof e.vtag=="function"){const s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),_e(e.vtag,s,...e.vchildren||[])}const t=oe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Sn=(e,t)=>e!=null&&!Te(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,gt=e=>q(e).$hostElement$,wn=(e,t,s)=>{const r=gt(e);return{emit:o=>yt(r,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:o})}},yt=(e,t,s)=>{const r=x.ce(t,s);return e.dispatchEvent(r),r},rt=new WeakMap,Cn=(e,t,s)=>{let r=ie.get(e);Vn&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,ie.set(e,r)},kn=(e,t,s)=>{var r;const o=vt(t),l=ie.get(o);if(e=e.nodeType===11?e:A,l)if(typeof l=="string"){e=e.head||e;let a=rt.get(e),u;if(a||rt.set(e,a=new Set),!a.has(o)){{u=A.createElement("style"),u.innerHTML=l;const c=(r=x.$nonce$)!==null&&r!==void 0?r:pt(A);c!=null&&u.setAttribute("nonce",c),e.insertBefore(u,e.querySelector("link"))}t.$flags$&4&&(u.innerHTML+=ht),a&&a.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o},Pn=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=t.$flags$,o=M("attachStyles",t.$tagName$),l=kn(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);r&10&&(s["s-sc"]=l,s.classList.add(l+"-h"),r&2&&s.classList.add(l+"-s")),o()},vt=(e,t)=>"sc-"+e.$tagName$,st=(e,t,s,r,o,l)=>{if(s!==r){let a=lt(e,t),u=t.toLowerCase();if(t==="class"){const c=e.classList,f=ot(s),$=ot(r);c.remove(...f.filter(p=>p&&!$.includes(p))),c.add(...$.filter(p=>p&&!f.includes(p)))}else if(t==="style"){for(const c in s)(!r||r[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(const c in r)(!s||r[c]!==s[c])&&(c.includes("-")?e.style.setProperty(c,r[c]):e.style[c]=r[c])}else if(t!=="key")if(t==="ref")r&&r(e);else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):lt(Q,u)?t=u.slice(2):t=u[2]+t.slice(3),s||r){const c=t.endsWith(mt);t=t.replace(_n,""),s&&x.rel(e,t,s,c),r&&x.ael(e,t,r,c)}}else{const c=Te(r);if((a||c&&r!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{const f=r??"";t==="list"?a=!1:(s==null||e[t]!=f)&&(e[t]=f)}}catch{}r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!a||l&4||o)&&!c&&(r=r===!0?"":r,e.setAttribute(t,r))}}},Tn=/\s/,ot=e=>e?e.split(Tn):[],mt="Capture",_n=new RegExp(mt+"$"),bt=(e,t,s,r)=>{const o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,l=e&&e.$attrs$||tt,a=t.$attrs$||tt;for(r in l)r in a||st(o,r,l[r],void 0,s,t.$flags$);for(r in a)st(o,r,l[r],a[r],s,t.$flags$)},ae=(e,t,s,r)=>{const o=t.$children$[s];let l=0,a,u;if(o.$text$!==null)a=o.$elm$=A.createTextNode(o.$text$);else{if(L||(L=o.$tag$==="svg"),a=o.$elm$=A.createElementNS(L?gn:yn,o.$tag$),L&&o.$tag$==="foreignObject"&&(L=!1),bt(null,o,L),vn(se)&&a["s-si"]!==se&&a.classList.add(a["s-si"]=se),o.$children$)for(l=0;l<o.$children$.length;++l)u=ae(e,o,l),u&&a.appendChild(u);o.$tag$==="svg"?L=!1:a.tagName==="foreignObject"&&(L=!0)}return a["s-hn"]=Pe,a},Et=(e,t,s,r,o,l)=>{let a=e,u;for(a.shadowRoot&&a.tagName===Pe&&(a=a.shadowRoot);o<=l;++o)r[o]&&(u=ae(null,s,o),u&&(r[o].$elm$=u,a.insertBefore(u,t)))},St=(e,t,s)=>{for(let r=t;r<=s;++r){const o=e[r];if(o){const l=o.$elm$;wt(o),l&&l.remove()}}},Rn=(e,t,s,r,o=!1)=>{let l=0,a=0,u=0,c=0,f=t.length-1,$=t[0],p=t[f],S=r.length-1,b=r[0],k=r[S],P,T;for(;l<=f&&a<=S;)if($==null)$=t[++l];else if(p==null)p=t[--f];else if(b==null)b=r[++a];else if(k==null)k=r[--S];else if(re($,b,o))z($,b,o),$=t[++l],b=r[++a];else if(re(p,k,o))z(p,k,o),p=t[--f],k=r[--S];else if(re($,k,o))z($,k,o),e.insertBefore($.$elm$,p.$elm$.nextSibling),$=t[++l],k=r[--S];else if(re(p,b,o))z(p,b,o),e.insertBefore(p.$elm$,$.$elm$),p=t[--f],b=r[++a];else{for(u=-1,c=l;c<=f;++c)if(t[c]&&t[c].$key$!==null&&t[c].$key$===b.$key$){u=c;break}u>=0?(T=t[u],T.$tag$!==b.$tag$?P=ae(t&&t[a],s,u):(z(T,b,o),t[u]=void 0,P=T.$elm$),b=r[++a]):(P=ae(t&&t[a],s,a),b=r[++a]),P&&$.$elm$.parentNode.insertBefore(P,$.$elm$)}l>f?Et(e,r[S+1]==null?null:r[S+1].$elm$,s,r,a,S):a>S&&St(t,l,f)},re=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,z=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,a=t.$tag$,u=t.$text$;u===null?(L=a==="svg"?!0:a==="foreignObject"?!1:L,a==="slot"||bt(e,t,L),o!==null&&l!==null?Rn(r,o,t,l,s):l!==null?(e.$text$!==null&&(r.textContent=""),Et(r,null,t,l,0,l.length-1)):o!==null&&St(o,0,o.length-1),L&&a==="svg"&&(L=!1)):e.$text$!==u&&(r.data=u)},wt=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(wt)},In=(e,t,s=!1)=>{const r=e.$hostElement$,o=e.$vnode$||oe(null,null),l=mn(t)?t:_e(null,null,t);if(Pe=r.tagName,s&&l.$attrs$)for(const a of Object.keys(l.$attrs$))r.hasAttribute(a)&&!["key","ref","style","class"].includes(a)&&(l.$attrs$[a]=r[a]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=o.$elm$=r.shadowRoot||r,se=r["s-sc"],z(o,l,s)},Ct=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},le=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Ct(e,e.$ancestorComponent$),tr(()=>xn(e,t))},xn=(e,t)=>{const s=M("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;let o;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([l,a])=>Y(r,l,a)),e.$queuedListeners$=void 0),o=Y(r,"componentWillLoad")),o=at(o,()=>Y(r,"componentWillRender")),s(),at(o,()=>Ln(e,r,t))},at=(e,t)=>On(e)?e.then(t):t(),On=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ln=async(e,t,s)=>{var r;const o=e.$hostElement$,l=M("update",e.$cmpMeta$.$tagName$),a=o["s-rc"];s&&Pn(e);const u=M("render",e.$cmpMeta$.$tagName$);An(e,t,o,s),a&&(a.map(c=>c()),o["s-rc"]=void 0),u(),l();{const c=(r=o["s-p"])!==null&&r!==void 0?r:[],f=()=>Nn(e);c.length===0?f():(Promise.all(c).then(f),e.$flags$|=4,c.length=0)}},An=(e,t,s,r)=>{try{Ee=t,t=t.render(),e.$flags$&=-17,e.$flags$|=2,In(e,t,r)}catch(o){v(o,e.$hostElement$)}return Ee=null,null},jn=()=>Ee,Nn=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=M("postUpdate",t),o=e.$lazyInstance$,l=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,Pt(s),Y(o,"componentDidLoad"),r(),e.$onReadyResolve$(s),l||kt()),e.$onInstanceResolve$(s),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Ie(()=>le(e,!1)),e.$flags$&=-517},Dn=e=>{{const t=q(e),s=t.$hostElement$.isConnected;return s&&(t.$flags$&18)===2&&le(t,!1),s}},kt=e=>{Pt(A.documentElement),Ie(()=>yt(Q,"appload",{detail:{namespace:hn}}))},Y=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(r){v(r)}},Pt=e=>e.classList.add("hydrated"),Fn=(e,t)=>q(e).$instanceValues$.get(t),Mn=(e,t,s,r)=>{const o=q(e),l=o.$hostElement$,a=o.$instanceValues$.get(t),u=o.$flags$,c=o.$lazyInstance$;s=Sn(s,r.$members$[t][0]);const f=Number.isNaN(a)&&Number.isNaN(s),$=s!==a&&!f;if((!(u&8)||a===void 0)&&$&&(o.$instanceValues$.set(t,s),c)){if(r.$watchers$&&u&128){const p=r.$watchers$[t];p&&p.map(S=>{try{c[S](s,a,t)}catch(b){v(b,l)}})}(u&18)===2&&le(o,!1)}},Tt=(e,t,s)=>{var r;const o=e.prototype;if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const l=Object.entries(t.$members$);if(l.map(([a,[u]])=>{u&31||s&2&&u&32?Object.defineProperty(o,a,{get(){return Fn(this,a)},set(c){Mn(this,a,c,t)},configurable:!0,enumerable:!0}):s&1&&u&64&&Object.defineProperty(o,a,{value(...c){var f;const $=q(this);return(f=$==null?void 0:$.$onInstancePromise$)===null||f===void 0?void 0:f.then(()=>{var p;return(p=$.$lazyInstance$)===null||p===void 0?void 0:p[a](...c)})}})}),s&1){const a=new Map;o.attributeChangedCallback=function(u,c,f){x.jmp(()=>{var $;const p=a.get(u);if(this.hasOwnProperty(p))f=this[p],delete this[p];else{if(o.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==f)return;if(p==null){const S=q(this),b=S==null?void 0:S.$flags$;if(b&&!(b&8)&&b&128&&f!==c){const k=S.$lazyInstance$,P=($=t.$watchers$)===null||$===void 0?void 0:$[u];P==null||P.forEach(T=>{k[T]!=null&&k[T].call(k,f,c,u)})}return}}this[p]=f===null&&typeof this[p]=="boolean"?!1:f})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!==null&&r!==void 0?r:{}),...l.filter(([u,c])=>c[0]&15).map(([u,c])=>{const f=c[1]||u;return a.set(f,u),f})]))}}return e},qn=async(e,t,s,r)=>{let o;if(!(t.$flags$&32)){t.$flags$|=32;{if(o=Kn(s),o.then){const c=pn();o=await o,c()}o.isProxied||(s.$watchers$=o.watchers,Tt(o,s,2),o.isProxied=!0);const u=M("createInstance",s.$tagName$);t.$flags$|=8;try{new o(t)}catch(c){v(c)}t.$flags$&=-9,t.$flags$|=128,u(),we(t.$lazyInstance$)}if(o.style){let u=o.style;const c=vt(s);if(!ie.has(c)){const f=M("registerStyles",s.$tagName$);Cn(c,u,!!(s.$flags$&1)),f()}}}const l=t.$ancestorComponent$,a=()=>le(t,!0);l&&l["s-rc"]?l["s-rc"].push(a):a()},we=e=>{Y(e,"connectedCallback")},Un=e=>{if(!(x.$flags$&1)){const t=q(e),s=t.$cmpMeta$,r=M("connectedCallback",s.$tagName$);if(t.$flags$&1)_t(e,t,s.$listeners$),t!=null&&t.$lazyInstance$?we(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>we(t.$lazyInstance$));else{t.$flags$|=1;{let o=e;for(;o=o.parentNode||o.host;)if(o["s-p"]){Ct(t,t.$ancestorComponent$=o);break}}s.$members$&&Object.entries(s.$members$).map(([o,[l]])=>{if(l&31&&e.hasOwnProperty(o)){const a=e[o];delete e[o],e[o]=a}}),qn(e,t,s)}r()}},it=e=>{Y(e,"disconnectedCallback")},Bn=async e=>{if(!(x.$flags$&1)){const t=q(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?it(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>it(t.$lazyInstance$))}},Hn=(e,t={})=>{var s;const r=M(),o=[],l=t.exclude||[],a=Q.customElements,u=A.head,c=u.querySelector("meta[charset]"),f=A.createElement("style"),$=[];let p,S=!0;Object.assign(x,t),x.$resourcesUrl$=new URL(t.resourcesUrl||"./",A.baseURI).href;let b=!1;if(e.map(k=>{k[1].map(P=>{var T;const R={$flags$:P[0],$tagName$:P[1],$members$:P[2],$listeners$:P[3]};R.$flags$&4&&(b=!0),R.$members$=P[2],R.$listeners$=P[3],R.$watchers$=(T=P[4])!==null&&T!==void 0?T:{};const C=R.$tagName$,ce=class extends HTMLElement{constructor(B){super(B),B=this,Xn(B,R),R.$flags$&1&&B.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),S?$.push(this):x.jmp(()=>Un(this))}disconnectedCallback(){x.jmp(()=>Bn(this))}componentOnReady(){return q(this).$onReadyPromise$}};R.$lazyBundleId$=k[0],!l.includes(C)&&!a.get(C)&&(o.push(C),a.define(C,Tt(ce,R,1)))})}),b&&(f.innerHTML+=ht),f.innerHTML+=o+$n,f.innerHTML.length){f.setAttribute("data-styles","");const k=(s=x.$nonce$)!==null&&s!==void 0?s:pt(A);k!=null&&f.setAttribute("nonce",k),u.insertBefore(f,c?c.nextSibling:u.firstChild)}S=!1,$.length?$.map(k=>k.connectedCallback()):x.jmp(()=>p=setTimeout(kt,30)),r()},Wn=(e,t)=>t,_t=(e,t,s,r)=>{s&&s.map(([o,l,a])=>{const u=Yn(e,o),c=zn(t,a),f=Gn(o);x.ael(u,l,c,f),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>x.rel(u,l,c,f))})},zn=(e,t)=>s=>{try{e.$flags$&256?e.$lazyInstance$[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(r){v(r)}},Yn=(e,t)=>t&4?A:t&8?Q:t&16?A.body:e,Gn=e=>Qn?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Re=new WeakMap,q=e=>Re.get(e),Jn=(e,t)=>Re.set(t.$lazyInstance$=e,t),Xn=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onInstancePromise$=new Promise(r=>s.$onInstanceResolve$=r),s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],_t(e,s,t.$listeners$),Re.set(e,s)},lt=(e,t)=>t in e,v=(e,t)=>(0,console.error)(e,t),me=new Map,Kn=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,l=me.get(o);if(l)return l[r];if(!s||!BUILD.hotModuleReplacement){const a=u=>(me.set(o,u),u[r]);switch(o){case"nylas-if-state_3":return Promise.resolve().then(()=>require("./nylas-if-state_3.entry-504be976.cjs")).then(a,v);case"document-refresh-icon":return Promise.resolve().then(()=>require("./document-refresh-icon.entry-071ffd66.cjs")).then(a,v);case"nylas-list-folders":return Promise.resolve().then(()=>require("./nylas-list-folders.entry-866361cc.cjs")).then(a,v);case"nylas-list-threads":return Promise.resolve().then(()=>require("./nylas-list-threads.entry-04989295.cjs")).then(a,v);case"nylas-mailbox-pagination":return Promise.resolve().then(()=>require("./nylas-mailbox-pagination.entry-e0bd4aef.cjs")).then(a,v);case"nylas-mailbox-toolbar-button":return Promise.resolve().then(()=>require("./nylas-mailbox-toolbar-button.entry-3d772b26.cjs")).then(a,v);case"nylas-open-hours-picker":return Promise.resolve().then(()=>require("./nylas-open-hours-picker.entry-881b6db7.cjs")).then(a,v);case"nylas-provider":return Promise.resolve().then(()=>require("./nylas-provider.entry-8d9a844b.cjs")).then(a,v);case"nylas-scheduler":return Promise.resolve().then(()=>require("./nylas-scheduler.entry-e82977fb.cjs")).then(a,v);case"nylas-threads-refresh":return Promise.resolve().then(()=>require("./nylas-threads-refresh.entry-477e68e4.cjs")).then(a,v);case"nylas-threads-search":return Promise.resolve().then(()=>require("./nylas-threads-search.entry-c5854641.cjs")).then(a,v);case"nylas-view-thread":return Promise.resolve().then(()=>require("./nylas-view-thread.entry-8b72cbdb.cjs")).then(a,v);case"archive-icon_7":return Promise.resolve().then(()=>require("./archive-icon_7.entry-84d70dbf.cjs")).then(a,v);case"arrow-icon":return Promise.resolve().then(()=>require("./arrow-icon.entry-400a08fa.cjs")).then(a,v);case"forward-icon_6":return Promise.resolve().then(()=>require("./forward-icon_6.entry-3345af84.cjs")).then(a,v);case"nylas-booked-event-card_10":return Promise.resolve().then(()=>require("./nylas-booked-event-card_10.entry-ed515326.cjs")).then(a,v);case"add-circle-icon":return Promise.resolve().then(()=>require("./add-circle-icon.entry-2ccb238b.cjs")).then(a,v);case"bold-icon_3":return Promise.resolve().then(()=>require("./bold-icon_3.entry-9ad35153.cjs")).then(a,v);case"calendar-check-icon_3":return Promise.resolve().then(()=>require("./calendar-check-icon_3.entry-a16ce05e.cjs")).then(a,v);case"calendar-icon":return Promise.resolve().then(()=>require("./calendar-icon.entry-7bae38d7.cjs")).then(a,v);case"close-icon_2":return Promise.resolve().then(()=>require("./close-icon_2.entry-83088b9a.cjs")).then(a,v);case"play-icon_2":return Promise.resolve().then(()=>require("./play-icon_2.entry-f23ed6c1.cjs")).then(a,v);case"refresh-icon":return Promise.resolve().then(()=>require("./refresh-icon.entry-601cac89.cjs")).then(a,v);case"search-icon_3":return Promise.resolve().then(()=>require("./search-icon_3.entry-8e555357.cjs")).then(a,v);case"calendar-cancel-icon":return Promise.resolve().then(()=>require("./calendar-cancel-icon.entry-fcb66929.cjs")).then(a,v);case"globe-icon":return Promise.resolve().then(()=>require("./globe-icon.entry-8325e73e.cjs")).then(a,v);case"loading-icon":return Promise.resolve().then(()=>require("./loading-icon.entry-b2096d2b.cjs")).then(a,v);case"chevron-icon":return Promise.resolve().then(()=>require("./chevron-icon.entry-58366662.cjs")).then(a,v)}}return import(`./${o}.entry.js`).then(a=>(me.set(o,a),a[r]),v)},ie=new Map,Q=typeof window<"u"?window:{},A=Q.document||{head:{}},x={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},Qn=(()=>{let e=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Zn=e=>Promise.resolve(e),Vn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),ct=[],Rt=[],er=(e,t)=>s=>{e.push(s),Se||(Se=!0,t&&x.$flags$&4?Ie(Ce):x.raf(Ce))},ut=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){v(s)}e.length=0},Ce=()=>{ut(ct),ut(Rt),(Se=ct.length>0)&&x.raf(Ce)},Ie=e=>Zn().then(e),tr=er(Rt,!0);async function nr(){await Promise.resolve().then(()=>require("./elements-dc5b338e-81a0319c.cjs"))}const rr=nr,sr=(e,t)=>{if(!(typeof window>"u"))return rr(),Hn([["nylas-scheduler",[[1,"nylas-scheduler",{mode:[1],defaultSchedulerStoreState:[16],sessionId:[1,"session-id"],schedulerApiUrl:[1,"scheduler-api-url"],bookingInfo:[16],rescheduleBookingId:[1,"reschedule-booking-id"],cancelBookingId:[1,"cancel-booking-id"],eventOverrides:[16],isLoading:[4,"is-loading"],themeConfig:[16],showNotification:[4,"show-notification"],automaticComponentRegistration:[32],selectedDateLabel:[32],getNylasSchedulerStore:[64],getNylasSchedulerConnector:[64],getRef:[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{bookingInfo:["bookingInfoChanged"]}]]],["nylas-view-thread",[[1,"nylas-view-thread",{draft:[16],thread:[16],messages:[16],attachments:[16],state:[32],internalMessages:[32],showAllEmails:[32],showComposer:[32]},null,{thread:["threadChanged"],messages:["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{folders:[16],selectedFolder:[1,"selected-folder"],defaultFolders:[32],otherFolders:[32]},null,{folders:["watchFolders"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{state:[1],hasNextPage:[4,"has-next-page"],hasPreviousPage:[4,"has-previous-page"],scrollTarget:[1,"scroll-target"],mobileOnlyInfiniteScroll:[4,"mobile-only-infinite-scroll"],mobileViewPortWidth:[2,"mobile-view-port-width"],nextPage:[64],previousPage:[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{start:[32],state:[32],pulling:[32],updateState:[64]}]]],["nylas-if-state_3",[[1,"nylas-if-state",{state:[1],isStateSet:[4,"is-state-set"],isBoolean:[4,"is-boolean"],getStore:[16],transition:[1],show:[32],classes:[32]},null,{getStore:["onGetStoreChange"]}],[1,"nylas-login",{isAuthenticated:[4,"is-authenticated"],nylasConnector:[16],scopes:[16],loginMethod:[1,"login-method"],companyName:[1,"company-name"],logoUrl:[1,"logo-url"],logoWidth:[1,"logo-width"],providers:[1],buttonText:[1,"button-text"],email:[32]}],[1,"nylas-mailbox",{automaticComponentRegistration:[4,"automatic-component-registration"],eventOverrides:[16],authConfig:[16],defaultAuthStoreState:[16],defaultMailboxStoreState:[16],getMailboxStore:[64],getAuthStore:[64],getNylasAuth:[64],getNylasMailboxConnector:[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["document-refresh-icon",[[2,"document-refresh-icon",{width:[1],height:[1]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{threads:[16],isAuthenticated:[4,"is-authenticated"],tokenInfo:[16],state:[1],showCheckbox:[4,"show-checkbox"]}]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{method:[1],dataState:[1,"data-state"],iconOnly:[4,"icon-only"],mailboxConnector:[16]}]]],["nylas-open-hours-picker",[[1,"nylas-open-hours-picker",{openHours:[16],startTime:[1040],endTime:[1040],stepMinutes:[2,"step-minutes"],dragThreshold:[2,"drag-threshold"],mobileViewPortWidth:[2,"mobile-view-port-width"],intervalMinutes:[32],times:[32],availableTimes:[32],draggingStartDate:[32],draggingEndDate:[32],inverse:[32],isMobile:[32]},[[9,"resize","onResize"]],{openHours:["whenOpenHoursChanged"],availableTimes:["availableTimesChanged"],inverse:["inverseChanged"]}]]],["nylas-provider",[[1,"nylas-provider",{authConfig:[16],eventOverrides:[16],automaticComponentRegistration:[4,"automatic-component-registration"],getNylasAuth:[64],getNylasConnector:[64],getMailboxStore:[64],getAuthStore:[64],getNylasSchedulerStore:[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{query:[1],internalQuery:[32]},null,{query:["onQueryChange"]}]]],["arrow-icon",[[2,"arrow-icon",{width:[1],height:[1]}]]],["add-circle-icon",[[2,"add-circle-icon",{width:[1],height:[1]}]]],["calendar-icon",[[2,"calendar-icon",{width:[1],height:[1]}]]],["refresh-icon",[[2,"refresh-icon",{width:[1],height:[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{width:[1],height:[1]}]]],["close-icon_2",[[2,"close-icon",{width:[1],height:[1]}],[2,"warning-icon",{width:[1],height:[1]}]]],["play-icon_2",[[2,"play-icon",{width:[1],height:[1]}],[2,"stop-icon",{width:[1],height:[1]}]]],["globe-icon",[[2,"globe-icon",{width:[1],height:[1]}]]],["loading-icon",[[1,"loading-icon",{width:[1],height:[1]}]]],["bold-icon_3",[[2,"bold-icon",{width:[1],height:[1]}],[2,"italic-icon",{width:[1],height:[1]}],[2,"underline-icon",{width:[1],height:[1]}]]],["forward-icon_6",[[1,"nylas-composer",{message:[16],viewEmailElement:[16]},null,{message:["watchBody"]}],[1,"nylas-summarize-message-button",{message:[16],state:[32],updateState:[64],playAudio:[64]}],[2,"forward-icon",{width:[1],height:[1]}],[1,"nylas-view-email",{message:[16],parent:[16],attachments:[16],detectDarkMode:[4,"detect-dark-mode"],state:[32],sanitizedBody:[32],styles:[32],viewEmailElement:[32],hoistedFontURLs:[32]},[[9,"resize","handleScroll"]],{message:["messageChanged"],viewEmailElement:["viewEmailElementChanged"]}],[2,"reply-all-icon",{width:[1],height:[1]}],[2,"reply-icon",{width:[1],height:[1]}]]],["calendar-check-icon_3",[[2,"calendar-check-icon",{width:[1],height:[1]}],[2,"checkmark-circle-icon",{width:[1],height:[1]}],[2,"people-icon",{width:[1],height:[1]}]]],["chevron-icon",[[2,"chevron-icon",{width:[1],height:[1]}]]],["search-icon_3",[[1,"select-dropdown",{name:[1],options:[16],defaultSelectedOption:[16],selectedOption:[32],isOpen:[32],searchValue:[32],filteredOptions:[32],ariaActivedescendant:[32]},[[4,"click","handleOutsideClick"]]],[2,"translate-icon",{width:[1],height:[1]}],[2,"search-icon",{width:[1],height:[1]}]]],["archive-icon_7",[[2,"archive-icon",{width:[1],height:[1]}],[2,"folder-icon",{width:[1],height:[1]}],[2,"inbox-icon",{width:[1],height:[1]}],[2,"sent-icon",{width:[1],height:[1]}],[2,"spam-icon",{width:[1],height:[1]}],[2,"star-icon",{width:[1],height:[1]}],[2,"trash-icon",{width:[1],height:[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-locale-switch",{selectedTimezone:[1025,"selected-timezone"],selectedLanguage:[1025,"selected-language"]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]]],[1,"nylas-booked-event-card",{eventInfo:[16],bookingFlow:[1,"booking-flow"],bookingInfo:[8,"booking-info"]}],[1,"nylas-booking-form",{isLoading:[4,"is-loading"],bookingInfo:[8,"booking-info"],eventInfo:[16],name:[32],email:[32],guestEmails:[32],guestEmailErrors:[32],isNameValid:[32],isEmailValid:[32],validationError:[32]},null,{bookingInfo:["bookingInfoChangedHandler"]}],[1,"nylas-notification",{ttl:[2],allowedCategories:[16],notifications:[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{selectedDate:[16],selectedTimeslot:[16],selectedTimezone:[1,"selected-timezone"],startTime:[32],endTime:[32]},null,{selectedTimeslot:["handleSelectedTimeslotChange"]}],[1,"nylas-cancel-booking-form",{cancelBookingId:[1,"cancel-booking-id"],cancellationReason:[32],cancellationError:[32]}],[1,"nylas-cancelled-event-card",{cancelledEvent:[16]}],[1,"nylas-date-picker",{selectableDates:[16],selectedDate:[16],isLoading:[4,"is-loading"],month:[32],dates:[32]}],[2,"nylas-logo",{width:[1],height:[1]}],[1,"nylas-timeslot-picker",{selectedDate:[16],availability:[16],selectedTimeslot:[16],isLoading:[4,"loading-state"],selectedTimezone:[1,"selected-timezone"],times:[32],hoveredTimeslotIndex:[32],selectedTimeslotIndex:[32]},null,{selectedDate:["selectedDateChanged"],availability:["availabilityChanged"]}]]]],t)};(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var ke={exports:{}},X={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var dt;function or(){if(dt)return X;dt=1;var e=N,t=Symbol.for("react.element"),s=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function a(u,c,f){var $,p={},S=null,b=null;f!==void 0&&(S=""+f),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(b=c.ref);for($ in c)r.call(c,$)&&!l.hasOwnProperty($)&&(p[$]=c[$]);if(u&&u.defaultProps)for($ in c=u.defaultProps,c)p[$]===void 0&&(p[$]=c[$]);return{$$typeof:t,type:u,key:S,ref:b,props:p,_owner:o.current}}return X.Fragment=s,X.jsx=a,X.jsxs=a,X}var K={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ft;function ar(){return ft||(ft=1,process.env.NODE_ENV!=="production"&&function(){var e=N,t=Symbol.for("react.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k=Symbol.iterator,P="@@iterator";function T(n){if(n===null||typeof n!="object")return null;var i=k&&n[k]||n[P];return typeof i=="function"?i:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(n){{for(var i=arguments.length,d=new Array(i>1?i-1:0),g=1;g<i;g++)d[g-1]=arguments[g];ce("error",n,d)}}function ce(n,i,d){{var g=R.ReactDebugCurrentFrame,E=g.getStackAddendum();E!==""&&(i+="%s",d=d.concat([E]));var w=d.map(function(m){return String(m)});w.unshift("Warning: "+i),Function.prototype.apply.call(console[n],console,w)}}var B=!1,Ot=!1,Lt=!1,At=!1,jt=!1,xe;xe=Symbol.for("react.module.reference");function Nt(n){return!!(typeof n=="string"||typeof n=="function"||n===r||n===l||jt||n===o||n===f||n===$||At||n===b||B||Ot||Lt||typeof n=="object"&&n!==null&&(n.$$typeof===S||n.$$typeof===p||n.$$typeof===a||n.$$typeof===u||n.$$typeof===c||n.$$typeof===xe||n.getModuleId!==void 0))}function Dt(n,i,d){var g=n.displayName;if(g)return g;var E=i.displayName||i.name||"";return E!==""?d+"("+E+")":d}function Oe(n){return n.displayName||"Context"}function D(n){if(n==null)return null;if(typeof n.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case r:return"Fragment";case s:return"Portal";case l:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case $:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case u:var i=n;return Oe(i)+".Consumer";case a:var d=n;return Oe(d._context)+".Provider";case c:return Dt(n,n.render,"ForwardRef");case p:var g=n.displayName||null;return g!==null?g:D(n.type)||"Memo";case S:{var E=n,w=E._payload,m=E._init;try{return D(m(w))}catch{return null}}}return null}var U=Object.assign,G=0,Le,Ae,je,Ne,De,Fe,Me;function qe(){}qe.__reactDisabledLog=!0;function Ft(){{if(G===0){Le=console.log,Ae=console.info,je=console.warn,Ne=console.error,De=console.group,Fe=console.groupCollapsed,Me=console.groupEnd;var n={configurable:!0,enumerable:!0,value:qe,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}G++}}function Mt(){{if(G--,G===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},n,{value:Le}),info:U({},n,{value:Ae}),warn:U({},n,{value:je}),error:U({},n,{value:Ne}),group:U({},n,{value:De}),groupCollapsed:U({},n,{value:Fe}),groupEnd:U({},n,{value:Me})})}G<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=R.ReactCurrentDispatcher,de;function Z(n,i,d){{if(de===void 0)try{throw Error()}catch(E){var g=E.stack.trim().match(/\n( *(at )?)/);de=g&&g[1]||""}return`
18
- `+de+n}}var fe=!1,V;{var qt=typeof WeakMap=="function"?WeakMap:Map;V=new qt}function Ue(n,i){if(!n||fe)return"";{var d=V.get(n);if(d!==void 0)return d}var g;fe=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=ue.current,ue.current=null,Ft();try{if(i){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(F){g=F}Reflect.construct(n,[],m)}else{try{m.call()}catch(F){g=F}n.call(m.prototype)}}else{try{throw Error()}catch(F){g=F}n()}}catch(F){if(F&&g&&typeof F.stack=="string"){for(var y=F.stack.split(`
19
- `),O=g.stack.split(`
20
- `),_=y.length-1,I=O.length-1;_>=1&&I>=0&&y[_]!==O[I];)I--;for(;_>=1&&I>=0;_--,I--)if(y[_]!==O[I]){if(_!==1||I!==1)do if(_--,I--,I<0||y[_]!==O[I]){var j=`
21
- `+y[_].replace(" at new "," at ");return n.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",n.displayName)),typeof n=="function"&&V.set(n,j),j}while(_>=1&&I>=0);break}}}finally{fe=!1,ue.current=w,Mt(),Error.prepareStackTrace=E}var W=n?n.displayName||n.name:"",et=W?Z(W):"";return typeof n=="function"&&V.set(n,et),et}function Ut(n,i,d){return Ue(n,!1)}function Bt(n){var i=n.prototype;return!!(i&&i.isReactComponent)}function ee(n,i,d){if(n==null)return"";if(typeof n=="function")return Ue(n,Bt(n));if(typeof n=="string")return Z(n);switch(n){case f:return Z("Suspense");case $:return Z("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case c:return Ut(n.render);case p:return ee(n.type,i,d);case S:{var g=n,E=g._payload,w=g._init;try{return ee(w(E),i,d)}catch{}}}return""}var te=Object.prototype.hasOwnProperty,Be={},He=R.ReactDebugCurrentFrame;function ne(n){if(n){var i=n._owner,d=ee(n.type,n._source,i?i.type:null);He.setExtraStackFrame(d)}else He.setExtraStackFrame(null)}function Ht(n,i,d,g,E){{var w=Function.call.bind(te);for(var m in n)if(w(n,m)){var y=void 0;try{if(typeof n[m]!="function"){var O=Error((g||"React class")+": "+d+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}y=n[m](i,m,g,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){y=_}y&&!(y instanceof Error)&&(ne(E),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",d,m,typeof y),ne(null)),y instanceof Error&&!(y.message in Be)&&(Be[y.message]=!0,ne(E),C("Failed %s type: %s",d,y.message),ne(null))}}}var Wt=Array.isArray;function he(n){return Wt(n)}function zt(n){{var i=typeof Symbol=="function"&&Symbol.toStringTag,d=i&&n[Symbol.toStringTag]||n.constructor.name||"Object";return d}}function Yt(n){try{return We(n),!1}catch{return!0}}function We(n){return""+n}function ze(n){if(Yt(n))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(n)),We(n)}var J=R.ReactCurrentOwner,Gt={key:!0,ref:!0,__self:!0,__source:!0},Ye,Ge,pe;pe={};function Jt(n){if(te.call(n,"ref")){var i=Object.getOwnPropertyDescriptor(n,"ref").get;if(i&&i.isReactWarning)return!1}return n.ref!==void 0}function Xt(n){if(te.call(n,"key")){var i=Object.getOwnPropertyDescriptor(n,"key").get;if(i&&i.isReactWarning)return!1}return n.key!==void 0}function Kt(n,i){if(typeof n.ref=="string"&&J.current&&i&&J.current.stateNode!==i){var d=D(J.current.type);pe[d]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(J.current.type),n.ref),pe[d]=!0)}}function Qt(n,i){{var d=function(){Ye||(Ye=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};d.isReactWarning=!0,Object.defineProperty(n,"key",{get:d,configurable:!0})}}function Zt(n,i){{var d=function(){Ge||(Ge=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};d.isReactWarning=!0,Object.defineProperty(n,"ref",{get:d,configurable:!0})}}var Vt=function(n,i,d,g,E,w,m){var y={$$typeof:t,type:n,key:i,ref:d,props:m,_owner:w};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function en(n,i,d,g,E){{var w,m={},y=null,O=null;d!==void 0&&(ze(d),y=""+d),Xt(i)&&(ze(i.key),y=""+i.key),Jt(i)&&(O=i.ref,Kt(i,E));for(w in i)te.call(i,w)&&!Gt.hasOwnProperty(w)&&(m[w]=i[w]);if(n&&n.defaultProps){var _=n.defaultProps;for(w in _)m[w]===void 0&&(m[w]=_[w])}if(y||O){var I=typeof n=="function"?n.displayName||n.name||"Unknown":n;y&&Qt(m,I),O&&Zt(m,I)}return Vt(n,y,O,E,g,J.current,m)}}var $e=R.ReactCurrentOwner,Je=R.ReactDebugCurrentFrame;function H(n){if(n){var i=n._owner,d=ee(n.type,n._source,i?i.type:null);Je.setExtraStackFrame(d)}else Je.setExtraStackFrame(null)}var ge;ge=!1;function ye(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function Xe(){{if($e.current){var n=D($e.current.type);if(n)return`
22
-
23
- Check the render method of \``+n+"`."}return""}}function tn(n){{if(n!==void 0){var i=n.fileName.replace(/^.*[\\\/]/,""),d=n.lineNumber;return`
24
-
25
- Check your code at `+i+":"+d+"."}return""}}var Ke={};function nn(n){{var i=Xe();if(!i){var d=typeof n=="string"?n:n.displayName||n.name;d&&(i=`
26
-
27
- Check the top-level render call using <`+d+">.")}return i}}function Qe(n,i){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var d=nn(i);if(Ke[d])return;Ke[d]=!0;var g="";n&&n._owner&&n._owner!==$e.current&&(g=" It was passed a child from "+D(n._owner.type)+"."),H(n),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,g),H(null)}}function Ze(n,i){{if(typeof n!="object")return;if(he(n))for(var d=0;d<n.length;d++){var g=n[d];ye(g)&&Qe(g,i)}else if(ye(n))n._store&&(n._store.validated=!0);else if(n){var E=T(n);if(typeof E=="function"&&E!==n.entries)for(var w=E.call(n),m;!(m=w.next()).done;)ye(m.value)&&Qe(m.value,i)}}}function rn(n){{var i=n.type;if(i==null||typeof i=="string")return;var d;if(typeof i=="function")d=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===c||i.$$typeof===p))d=i.propTypes;else return;if(d){var g=D(i);Ht(d,n.props,"prop",g,n)}else if(i.PropTypes!==void 0&&!ge){ge=!0;var E=D(i);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sn(n){{for(var i=Object.keys(n.props),d=0;d<i.length;d++){var g=i[d];if(g!=="children"&&g!=="key"){H(n),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g),H(null);break}}n.ref!==null&&(H(n),C("Invalid attribute `ref` supplied to `React.Fragment`."),H(null))}}function Ve(n,i,d,g,E,w){{var m=Nt(n);if(!m){var y="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=tn(E);O?y+=O:y+=Xe();var _;n===null?_="null":he(n)?_="array":n!==void 0&&n.$$typeof===t?(_="<"+(D(n.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):_=typeof n,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,y)}var I=en(n,i,d,E,w);if(I==null)return I;if(m){var j=i.children;if(j!==void 0)if(g)if(he(j)){for(var W=0;W<j.length;W++)Ze(j[W],n);Object.freeze&&Object.freeze(j)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ze(j,n)}return n===r?sn(I):rn(I),I}}function on(n,i,d){return Ve(n,i,d,!0)}function an(n,i,d){return Ve(n,i,d,!1)}var ln=an,cn=on;K.Fragment=r,K.jsx=ln,K.jsxs=cn}()),K}process.env.NODE_ENV==="production"?ke.exports=or():ke.exports=ar();var ir=ke.exports;const lr=e=>e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),It=e=>e.replace(/([A-Z])/g,t=>`-${t[0].toLowerCase()}`),cr=(e,t,s={})=>{if(e instanceof Element){const r=ur(e.classList,t,s);r!==""&&(e.className=r),Object.keys(t).forEach(o=>{if(!(o==="children"||o==="style"||o==="ref"||o==="class"||o==="className"||o==="forwardedRef"))if(o.indexOf("on")===0&&o[2]===o[2].toUpperCase()){const l=o.substring(2),a=l[0].toLowerCase()+l.substring(1);xt(a)||fr(e,a,t[o])}else e[o]=t[o],typeof t[o]==="string"&&e.setAttribute(It(o),t[o])})}},ur=(e,t,s)=>{const r=t.className||t.class,o=s.className||s.class,l=be(e),a=be(r?r.split(" "):[]),u=be(o?o.split(" "):[]),c=[];return l.forEach(f=>{a.has(f)?(c.push(f),a.delete(f)):u.has(f)||c.push(f)}),a.forEach(f=>c.push(f)),c.join(" ")},dr=e=>{switch(e){case"doubleclick":return"dblclick"}return e};/**
28
- * Checks if an event is supported in the current execution environment.
29
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
30
- */const xt=e=>{if(typeof document>"u")return!0;{const t="on"+dr(e);let s=t in document;if(!s){const r=document.createElement("div");r.setAttribute(t,"return;"),s=typeof r[t]=="function"}return s}},fr=(e,t,s)=>{const r=e.__events||(e.__events={}),o=r[t];o&&e.removeEventListener(t,o),e.addEventListener(t,r[t]=function(a){s&&s.call(this,a)})},be=e=>{const t=new Map;return e.forEach(s=>t.set(s,s)),t},hr=(e,t)=>{typeof e=="function"?e(t):e!=null&&(e.current=t)},pr=(...e)=>t=>{e.forEach(s=>{hr(s,t)})},$r=(e,t)=>{const s=(r,o)=>ir.jsx(e,{...r,forwardedRef:o});return s.displayName=t,N.forwardRef(s)},h=(e,t,s,r)=>{r!==void 0&&r();const o=lr(e),l=class extends N.Component{constructor(u){super(u);ve(this,"componentEl");ve(this,"setComponentElRef",u=>{this.componentEl=u})}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(u){cr(this.componentEl,this.props,u)}render(){const{children:u,forwardedRef:c,style:f,className:$,ref:p,...S}=this.props;let b=Object.keys(S).reduce((P,T)=>{const R=S[T];if(T.indexOf("on")===0&&T[2]===T[2].toUpperCase()){const C=T.substring(2).toLowerCase();typeof document<"u"&&xt(C)&&(P[T]=R)}else{const C=typeof R;(C==="string"||C==="boolean"||C==="number")&&(P[It(T)]=R)}return P},{});s&&(b=s(this.props,b));const k={...b,ref:pr(c,this.setComponentElRef),style:f};return N.createElement(e,k,u)}static get displayName(){return o}};return t&&(l.contextType=t),$r(l,o)},gr=h("add-circle-icon"),yr=h("archive-icon"),vr=h("arrow-icon"),mr=h("bold-icon"),br=h("calendar-cancel-icon"),Er=h("calendar-check-icon"),Sr=h("calendar-icon"),wr=h("checkmark-circle-icon"),Cr=h("chevron-icon"),kr=h("close-icon"),Pr=h("document-refresh-icon"),Tr=h("folder-icon"),_r=h("forward-icon"),Rr=h("globe-icon"),Ir=h("inbox-icon"),xr=h("italic-icon"),Or=h("loading-icon"),Lr=h("nylas-booked-event-card"),Ar=h("nylas-booking-form"),jr=h("nylas-cancel-booking-form"),Nr=h("nylas-cancelled-event-card"),Dr=h("nylas-composer"),Fr=h("nylas-date-picker"),Mr=h("nylas-if-state"),qr=h("nylas-list-folders"),Ur=h("nylas-list-threads"),Br=h("nylas-locale-switch"),Hr=h("nylas-login"),Wr=h("nylas-logo"),zr=h("nylas-mailbox"),Yr=h("nylas-mailbox-pagination"),Gr=h("nylas-mailbox-toolbar-button"),Jr=h("nylas-notification"),Xr=h("nylas-open-hours-picker"),Kr=h("nylas-provider"),Qr=h("nylas-scheduler"),Zr=h("nylas-selected-event-card"),Vr=h("nylas-summarize-message-button"),es=h("nylas-threads-refresh"),ts=h("nylas-threads-search"),ns=h("nylas-timeslot-picker"),rs=h("nylas-view-email"),ss=h("nylas-view-thread"),os=h("people-icon"),as=h("play-icon"),is=h("refresh-icon"),ls=h("reply-all-icon"),cs=h("reply-icon"),us=h("search-icon"),ds=h("select-dropdown"),fs=h("sent-icon"),hs=h("spam-icon"),ps=h("star-icon"),$s=h("stop-icon"),gs=h("translate-icon"),ys=h("trash-icon"),vs=h("underline-icon"),ms=h("warning-icon");function bs(){const[,e]=N.useReducer(o=>o+1,0),t=N.useRef(),s=N.useRef(null),r=N.useRef(null);return N.useEffect(()=>{t.current&&(s.current||t.current.getNylasMailboxConnector().then(o=>{o&&(s.current=o,r.current=s.current.nylasAuthStore,o.nylasAuthStore.on("set",e),e())}))},[]),[t,r.current]}exports.AddCircleIcon=gr;exports.ArchiveIcon=yr;exports.ArrowIcon=vr;exports.BoldIcon=mr;exports.CalendarCancelIcon=br;exports.CalendarCheckIcon=Er;exports.CalendarIcon=Sr;exports.CheckmarkCircleIcon=wr;exports.ChevronIcon=Cr;exports.CloseIcon=kr;exports.DocumentRefreshIcon=Pr;exports.FolderIcon=Tr;exports.ForwardIcon=_r;exports.Fragment=Wn;exports.GlobeIcon=Rr;exports.Host=$t;exports.InboxIcon=Ir;exports.ItalicIcon=xr;exports.LoadingIcon=Or;exports.NylasBookedEventCard=Lr;exports.NylasBookingForm=Ar;exports.NylasCancelBookingForm=jr;exports.NylasCancelledEventCard=Nr;exports.NylasComposer=Dr;exports.NylasDatePicker=Fr;exports.NylasIfState=Mr;exports.NylasListFolders=qr;exports.NylasListThreads=Ur;exports.NylasLocaleSwitch=Br;exports.NylasLogin=Hr;exports.NylasLogo=Wr;exports.NylasMailbox=zr;exports.NylasMailboxPagination=Yr;exports.NylasMailboxToolbarButton=Gr;exports.NylasNotification=Jr;exports.NylasOpenHoursPicker=Xr;exports.NylasProvider=Kr;exports.NylasScheduler=Qr;exports.NylasSelectedEventCard=Zr;exports.NylasSummarizeMessageButton=Vr;exports.NylasThreadsRefresh=es;exports.NylasThreadsSearch=ts;exports.NylasTimeslotPicker=ns;exports.NylasViewEmail=rs;exports.NylasViewThread=ss;exports.PeopleIcon=os;exports.PlayIcon=as;exports.RefreshIcon=is;exports.ReplyAllIcon=ls;exports.ReplyIcon=cs;exports.SearchIcon=us;exports.SelectDropdown=ds;exports.SentIcon=fs;exports.SpamIcon=hs;exports.StarIcon=ps;exports.StopIcon=$s;exports.TranslateIcon=gs;exports.TrashIcon=ys;exports.UnderlineIcon=vs;exports.WarningIcon=ms;exports.applyPolyfills=fn;exports.createEvent=wn;exports.defineCustomElements=sr;exports.forceUpdate=Dn;exports.getElement=gt;exports.getRenderingRef=jn;exports.h=_e;exports.registerInstance=Jn;exports.useNylasMailboxElement=bs;