@nylas/react 1.1.0-canary.12 → 1.1.0-canary.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/add-circle-icon_22.entry-26980c9f.cjs +1 -0
  2. package/dist/add-circle-icon_22.entry-a63de90d.js +1895 -0
  3. package/dist/{archive-icon_7.entry-e892a458.js → archive-icon_7.entry-561a5deb.js} +13 -13
  4. package/dist/{archive-icon_7.entry-59d9e24f.cjs → archive-icon_7.entry-97628ff8.cjs} +1 -1
  5. package/dist/{arrow-icon.entry-834b8066.cjs → arrow-icon.entry-68a3ba5b.cjs} +1 -1
  6. package/dist/arrow-icon.entry-c9b46bbc.js +15 -0
  7. package/dist/{bold-icon_3.entry-0f038db3.js → bold-icon_3.entry-e5a6fea9.js} +4 -4
  8. package/dist/{bold-icon_3.entry-eb0fcdaa.cjs → bold-icon_3.entry-f8473940.cjs} +1 -1
  9. package/dist/{calendar-cancel-icon.entry-27a6f628.cjs → calendar-cancel-icon.entry-1fd6b27a.cjs} +1 -1
  10. package/dist/{calendar-cancel-icon.entry-96156441.js → calendar-cancel-icon.entry-4bc3ceb1.js} +2 -2
  11. package/dist/{calendar-check-icon_2.entry-b6d6d220.cjs → calendar-check-icon_2.entry-3f734e43.cjs} +1 -1
  12. package/dist/{calendar-check-icon_2.entry-c7c13e3e.js → calendar-check-icon_2.entry-a7033bf7.js} +11 -11
  13. package/dist/{calendar-icon.entry-e7f6a9a8.cjs → calendar-icon.entry-2943ea63.cjs} +1 -1
  14. package/dist/{calendar-icon.entry-f088fb14.js → calendar-icon.entry-2f963a7d.js} +4 -4
  15. package/dist/{chevron-icon_3.entry-8c6e6f74.cjs → chevron-icon_3.entry-ac1be504.cjs} +1 -1
  16. package/dist/{chevron-icon_3.entry-90a3e89c.js → chevron-icon_3.entry-d10c854b.js} +5 -5
  17. package/dist/clock-icon_2.entry-7c576457.cjs +1 -0
  18. package/dist/clock-icon_2.entry-c8b0693e.js +25 -0
  19. package/dist/close-icon.entry-5cc5ae00.cjs +1 -0
  20. package/dist/close-icon.entry-e01b32cc.js +15 -0
  21. package/dist/{constants-f34b9c6e-593e21cc.cjs → constants-f34b9c6e-0e1cb070.cjs} +1 -1
  22. package/dist/{constants-f34b9c6e-91f6ad05.js → constants-f34b9c6e-ada541f4.js} +1 -1
  23. package/dist/{document-refresh-icon.entry-ca98d879.js → document-refresh-icon.entry-a18e5222.js} +5 -5
  24. package/dist/document-refresh-icon.entry-b0927573.cjs +1 -0
  25. package/dist/elements/index.d.ts +4 -1
  26. package/dist/{elements-dc5b338e-60f95088.cjs → elements-dc5b338e-272b5dff.cjs} +1 -1
  27. package/dist/{elements-dc5b338e-68eab1e5.js → elements-dc5b338e-d6cbe948.js} +1 -1
  28. package/dist/{focus-visible-e8093c16-a0869441.cjs → focus-visible-e8093c16-6991ac1b.cjs} +1 -1
  29. package/dist/{focus-visible-e8093c16-b5d785fc.js → focus-visible-e8093c16-d239362e.js} +1 -1
  30. package/dist/{forward-icon_6.entry-84ac76ac.js → forward-icon_6.entry-230c7ab2.js} +9 -9
  31. package/dist/{forward-icon_6.entry-4b321b9a.cjs → forward-icon_6.entry-ee238c52.cjs} +3 -3
  32. package/dist/{globe-icon.entry-ef04c8bf.cjs → globe-icon.entry-539f0052.cjs} +1 -1
  33. package/dist/{globe-icon.entry-14a60f32.js → globe-icon.entry-e8c272c0.js} +2 -2
  34. package/dist/{google-logo-icon_4.entry-4fa3cb8e.js → google-logo-icon_4.entry-0c46cddd.js} +103 -93
  35. package/dist/google-logo-icon_4.entry-a5add4b4.cjs +1 -0
  36. package/dist/index-53420959-71fdd6ef.js +5 -0
  37. package/dist/index-53420959-f15601a9.cjs +1 -0
  38. package/dist/index-553c0327.cjs +42 -0
  39. package/dist/index-cd0e2d77.js +4977 -0
  40. package/dist/index-ef01c714-839c3029.cjs +41 -0
  41. package/dist/index-ef01c714-d85134a4.js +4971 -0
  42. package/dist/{index.es-9190f785-60475c4c.cjs → index.es-74f70f7d-1d137fdb.cjs} +5 -5
  43. package/dist/{index.es-9190f785-69269065.js → index.es-74f70f7d-960f947f.js} +11 -12
  44. package/dist/{info-icon_2.entry-fb099090.cjs → info-icon_2.entry-00ea6504.cjs} +1 -1
  45. package/dist/{info-icon_2.entry-45f6f01f.js → info-icon_2.entry-42f77d4b.js} +5 -5
  46. package/dist/{loading-icon.entry-67c8b1fa.js → loading-icon.entry-0692e093.js} +4 -4
  47. package/dist/{loading-icon.entry-eaabff41.cjs → loading-icon.entry-fb7464c3.cjs} +1 -1
  48. package/dist/{mailbox-store-29139d89-dd9d3d1b.cjs → mailbox-store-050a2914-9c975586.cjs} +1 -1
  49. package/dist/{mailbox-store-29139d89-e3513416.js → mailbox-store-050a2914-cfb1b1c0.js} +2 -2
  50. package/dist/{nylas-additional-participants.entry-a1fb4ef4.js → nylas-additional-participants.entry-1d7bda06.js} +12 -12
  51. package/dist/{nylas-additional-participants.entry-6413fc87.cjs → nylas-additional-participants.entry-d97b8bb4.cjs} +1 -1
  52. package/dist/{nylas-booked-event-card_10.entry-e435ff63.js → nylas-booked-event-card_10.entry-041a10c7.js} +255 -252
  53. package/dist/nylas-booked-event-card_10.entry-dfec7c8d.cjs +1 -0
  54. package/dist/{nylas-custom-booking-flow.entry-3e690bb7.cjs → nylas-custom-booking-flow.entry-3ec838df.cjs} +1 -1
  55. package/dist/{nylas-custom-booking-flow.entry-56075ecd.js → nylas-custom-booking-flow.entry-ced72cc5.js} +3 -3
  56. package/dist/nylas-form-card.entry-8d594514.cjs +1 -0
  57. package/dist/nylas-form-card.entry-9b8176ad.js +57 -0
  58. package/dist/{nylas-if-state.entry-1e4b0a58.cjs → nylas-if-state.entry-445ec109.cjs} +1 -1
  59. package/dist/{nylas-if-state.entry-3d22bca7.js → nylas-if-state.entry-eb11630d.js} +3 -3
  60. package/dist/{nylas-list-folders.entry-3da37b1c.cjs → nylas-list-folders.entry-32a1e254.cjs} +1 -1
  61. package/dist/{nylas-list-folders.entry-e634780d.js → nylas-list-folders.entry-822436d4.js} +3 -3
  62. package/dist/{nylas-list-threads.entry-26dbb8ff.js → nylas-list-threads.entry-0186e9e7.js} +4 -4
  63. package/dist/{nylas-list-threads.entry-ef4743af.cjs → nylas-list-threads.entry-181872dd.cjs} +1 -1
  64. package/dist/{nylas-login.entry-a76e4aae.cjs → nylas-login.entry-0261e74e.cjs} +1 -1
  65. package/dist/{nylas-login.entry-ff7d9db5.js → nylas-login.entry-7460c1d4.js} +3 -3
  66. package/dist/{nylas-mailbox-pagination.entry-fcb3cc47.js → nylas-mailbox-pagination.entry-107b3fbc.js} +2 -2
  67. package/dist/{nylas-mailbox-pagination.entry-565ee29b.cjs → nylas-mailbox-pagination.entry-eaf08163.cjs} +1 -1
  68. package/dist/{nylas-mailbox-toolbar-button.entry-3a94b1e9.cjs → nylas-mailbox-toolbar-button.entry-23fc08a6.cjs} +1 -1
  69. package/dist/{nylas-mailbox-toolbar-button.entry-ae13c538.js → nylas-mailbox-toolbar-button.entry-40e8d9ad.js} +8 -8
  70. package/dist/{nylas-mailbox.entry-6d86abe9.js → nylas-mailbox.entry-2199a6b4.js} +9 -10
  71. package/dist/nylas-mailbox.entry-de8618eb.cjs +1 -0
  72. package/dist/nylas-provider.entry-11a95d86.cjs +1 -0
  73. package/dist/{nylas-provider.entry-01e0944e.js → nylas-provider.entry-a8f8bad2.js} +9 -10
  74. package/dist/nylas-scheduler-editor.entry-73794266.cjs +2 -0
  75. package/dist/{nylas-scheduler-editor.entry-8f62880a.js → nylas-scheduler-editor.entry-c58c813c.js} +28 -14
  76. package/dist/nylas-scheduling.entry-b449ab24.cjs +1 -0
  77. package/dist/{nylas-scheduling.entry-f15b3106.js → nylas-scheduling.entry-fe9d6b69.js} +91 -68
  78. package/dist/{nylas-threads-refresh.entry-d62d0574.cjs → nylas-threads-refresh.entry-4f17fa6c.cjs} +1 -1
  79. package/dist/{nylas-threads-refresh.entry-d7727ccb.js → nylas-threads-refresh.entry-c8438752.js} +4 -4
  80. package/dist/{nylas-threads-search.entry-eec50b1b.cjs → nylas-threads-search.entry-0ed36372.cjs} +1 -1
  81. package/dist/{nylas-threads-search.entry-4803d20b.js → nylas-threads-search.entry-b1f88916.js} +4 -4
  82. package/dist/{nylas-view-thread.entry-2b85f8e2.js → nylas-view-thread.entry-8dfe1352.js} +3 -3
  83. package/dist/{nylas-view-thread.entry-5da789da.cjs → nylas-view-thread.entry-c50bea78.cjs} +1 -1
  84. package/dist/{people-icon.entry-b6426fe6.cjs → people-icon.entry-0875cac0.cjs} +1 -1
  85. package/dist/{people-icon.entry-63f63064.js → people-icon.entry-8392a21c.js} +6 -6
  86. package/dist/{play-icon_2.entry-a3262db3.js → play-icon_2.entry-4a15f215.js} +8 -8
  87. package/dist/play-icon_2.entry-d6ff1cc3.cjs +1 -0
  88. package/dist/react.cjs +1 -1
  89. package/dist/react.js +87 -84
  90. package/dist/{refresh-icon.entry-542f680c.cjs → refresh-icon.entry-1ebb9376.cjs} +1 -1
  91. package/dist/{refresh-icon.entry-64679ef7.js → refresh-icon.entry-76b2d888.js} +4 -4
  92. package/dist/{register-component-83e24412-51af5293.js → register-component-e4dc8778-408dc241.js} +1 -1
  93. package/dist/{register-component-83e24412-d76a2962.cjs → register-component-e4dc8778-99eb91ca.cjs} +1 -1
  94. package/dist/{scheduler-config-store-ec3b6190-2710b76a.cjs → scheduler-config-store-ec3b6190-4abd56df.cjs} +1 -1
  95. package/dist/{scheduler-config-store-ec3b6190-df09ddc0.js → scheduler-config-store-ec3b6190-f292fe19.js} +1 -1
  96. package/dist/scheduler-store-3afbcda0-166e84ff.cjs +1 -0
  97. package/dist/{scheduler-store-dabdbc4f-6f6096d6.js → scheduler-store-3afbcda0-53680387.js} +130 -89
  98. package/dist/time-period-selector.entry-846b64bd.cjs +1 -0
  99. package/dist/{time-period-selector.entry-8e6954f5.js → time-period-selector.entry-f6128367.js} +3 -3
  100. package/dist/{translate-icon.entry-57dedacf.js → translate-icon.entry-84778350.js} +6 -6
  101. package/dist/{translate-icon.entry-49a653f0.cjs → translate-icon.entry-f3060124.cjs} +1 -1
  102. package/dist/warning-icon.entry-246eb6fb.cjs +1 -0
  103. package/dist/warning-icon.entry-eeaae1a7.js +15 -0
  104. package/package.json +2 -2
  105. package/dist/add-circle-icon_21.entry-172d31c3.js +0 -6726
  106. package/dist/add-circle-icon_21.entry-71af48f1.cjs +0 -41
  107. package/dist/arrow-icon.entry-060b9b4f.js +0 -15
  108. package/dist/close-icon.entry-175b9674.cjs +0 -1
  109. package/dist/close-icon.entry-e694948f.js +0 -15
  110. package/dist/document-refresh-icon.entry-a54c74b9.cjs +0 -1
  111. package/dist/global-37eeb0cd-6c5934cf.cjs +0 -1
  112. package/dist/global-37eeb0cd-b42e0abc.js +0 -4
  113. package/dist/google-logo-icon_4.entry-ffeec491.cjs +0 -1
  114. package/dist/index-3a004ec1.cjs +0 -37
  115. package/dist/index-4c7e8f2f.js +0 -4045
  116. package/dist/index-92989ac4-69175657.js +0 -902
  117. package/dist/index-92989ac4-6f32ff2a.cjs +0 -6
  118. package/dist/nylas-booked-event-card_10.entry-ce660783.cjs +0 -1
  119. package/dist/nylas-form-card.entry-33ff95e1.js +0 -54
  120. package/dist/nylas-form-card.entry-64d7be4d.cjs +0 -1
  121. package/dist/nylas-mailbox.entry-8f41c35a.cjs +0 -1
  122. package/dist/nylas-provider.entry-65f0f8da.cjs +0 -1
  123. package/dist/nylas-scheduler-editor.entry-7dc20e4d.cjs +0 -2
  124. package/dist/nylas-scheduling.entry-1b6628a3.cjs +0 -1
  125. package/dist/play-icon_2.entry-2b8094d7.cjs +0 -1
  126. package/dist/scheduler-store-dabdbc4f-404dc261.cjs +0 -1
  127. package/dist/time-period-selector.entry-c5faae46.cjs +0 -1
  128. package/dist/warning-icon.entry-a7977526.js +0 -15
  129. package/dist/warning-icon.entry-bce861bd.cjs +0 -1
@@ -1,41 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-3a004ec1.cjs"),ee=require("./register-component-83e24412-d76a2962.cjs"),Ke=require("./constants-f34b9c6e-593e21cc.cjs"),me=require("./index-92989ac4-6f32ff2a.cjs");require("react");require("react-dom");require("./global-37eeb0cd-6c5934cf.cjs");const Au=".sc-add-circle-icon-h{display:flex}",Iu=Au,si=class{constructor(t){s.registerInstance(this,t),this.width="24",this.height="25"}render(){return s.h("svg",{key:"58ce81214aeed7ddc1ce5f76d674aba576422d48",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"2a47ed74601a5370f0300da06295a2b5969d7e5f",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"}))}};si.style=Iu;const Ou="button.sc-button-component{height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}",Nu=Ou,ri=class{constructor(t){s.registerInstance(this,t),this.variant="primary",this.disabled=!1,this.type="button",this.clickHandler=void 0,this.mouseOverHandler=void 0,this.mouseOutHandler=void 0,this.focusHandler=void 0,this.blurHandler=void 0}render(){const t=`button-${this.variant}`+(this.disabled?" disabled":"");return s.h("button",{key:"3ac840e8b65854c2e4bdabe93b21b5bcda99e4db",class:t,disabled:this.disabled,type:"type",onClick:this.clickHandler,onMouseOver:this.mouseOverHandler,onMouseOut:this.mouseOutHandler,onFocus:this.focusHandler,onBlur:this.blurHandler},s.h("slot",{key:"110df0711566be0df89f2e04aed008dcaf91e9f3"}))}};ri.style=Nu;const Du=".sc-calendar-info-icon-h{display:flex}",Lu=Du,oi=class{constructor(t){s.registerInstance(this,t),this.width="20",this.height="20"}render(){return s.h("svg",{key:"4c290eae1d55ec9df96cbe6d9ba85d5d8b7ee102",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"a2a76a5d0183952d59f1d2f448dc7c460694e410",d:"M12 0C13.3807 0 14.5 1.11929 14.5 2.5V6.59971C14.1832 6.43777 13.8486 6.30564 13.5 6.20703V4H1.5V11.5C1.5 12.3284 2.17157 13 3 13H6.70703C6.80564 13.3486 6.93777 13.6832 7.09971 14H3C1.61929 14 0.5 12.8807 0.5 11.5V2.5C0.5 1.11929 1.61929 0 3 0H12ZM12 1H3C2.17157 1 1.5 1.67157 1.5 2.5V3H13.5V2.5C13.5 1.67157 12.8284 1 12 1ZM11.375 9.5C11.375 9.15482 11.6548 8.875 12 8.875C12.3452 8.875 12.625 9.15482 12.625 9.5C12.625 9.84518 12.3452 10.125 12 10.125C11.6548 10.125 11.375 9.84518 11.375 9.5ZM12.5 13.5C12.5 13.7761 12.2761 14 12 14C11.7239 14 11.5 13.7761 11.5 13.5V11.5C11.5 11.2239 11.7239 11 12 11C12.2761 11 12.5 11.2239 12.5 11.5V13.5ZM7.5 11.5C7.5 9.01472 9.51472 7 12 7C14.4853 7 16.5 9.01472 16.5 11.5C16.5 13.9853 14.4853 16 12 16C9.51472 16 7.5 13.9853 7.5 11.5ZM8.5 11.5C8.5 13.433 10.067 15 12 15C13.933 15 15.5 13.433 15.5 11.5C15.5 9.567 13.933 8 12 8C10.067 8 8.5 9.567 8.5 11.5Z",fill:"currentColor"}))}};oi.style=Lu;const Mu=".sc-calendar-patterns-icon-h{display:flex}",Ru=Mu,li=class{constructor(t){s.registerInstance(this,t),this.width="20",this.height="20"}render(){return s.h("svg",{key:"cf8071f578ad04793f5bd5b446dccaa1f6d4c1a3",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"8e8a3c7d87bc41c6d6973a34863d05d996155c1d",d:"M3.25 0H11.75C13.2688 0 14.5 1.23122 14.5 2.75V11.25C14.5 12.7688 13.2688 14 11.75 14H3.25C1.73122 14 0.5 12.7688 0.5 11.25V2.75C0.5 1.23122 1.73122 0 3.25 0ZM2 2.75V4H13V2.75C13 2.05964 12.4404 1.5 11.75 1.5H3.25C2.55964 1.5 2 2.05964 2 2.75ZM12.2071 5L8.20711 9H10.7929L13 6.79289V5H12.2071ZM10.7929 5H8.20711L4.20711 9H6.79289L10.7929 5ZM2.79289 9L6.79289 5H4.20711L2 7.20711V9H2.79289ZM2 5.79289L2.79289 5H2V5.79289ZM12.2071 9H13V8.20711L12.2071 9Z",fill:"currentColor"}))}};li.style=Ru;const $u=".sc-flow-icon-h{display:flex}",Pu=$u,ci=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="12"}render(){return s.h("svg",{key:"e0f4da46b751754406e8b0551890a1bffb1100e4",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"21997cb261d91c8589c3e87a01036dc8f91a8d9b",d:"M13 1.66211C11.8954 1.66211 11 2.55754 11 3.66211C11 4.76668 11.8954 5.66211 13 5.66211C14.1046 5.66211 15 4.76668 15 3.66211C15 2.55754 14.1046 1.66211 13 1.66211ZM10.0407 3.16678C10.2768 1.74563 11.5119 0.662109 13 0.662109C14.6569 0.662109 16 2.00526 16 3.66211C16 5.31896 14.6569 6.66211 13 6.66211C11.5162 6.66211 10.2839 5.58482 10.0428 4.16971C9.37629 4.23688 8.82682 4.7426 8.71466 5.41551L8.27173 8.07311C8.07929 9.22776 7.11428 10.087 5.9593 10.1574C5.72319 11.5786 4.48813 12.6621 3 12.6621C1.34315 12.6621 0 11.319 0 9.66211C0 8.00526 1.34315 6.66211 3 6.66211C4.48384 6.66211 5.71607 7.73939 5.95724 9.15451C6.62371 9.08734 7.17318 8.58162 7.28534 7.90871L7.72827 5.25111C7.92071 4.09646 8.88571 3.23718 10.0407 3.16678ZM3 7.66211C1.89543 7.66211 1 8.55754 1 9.66211C1 10.7667 1.89543 11.6621 3 11.6621C4.10457 11.6621 5 10.7667 5 9.66211C5 8.55754 4.10457 7.66211 3 7.66211Z",fill:"currentColor"}))}};ci.style=Pu;const Hu=".sc-location-icon-h{display:flex}",Fu=Hu,di=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="18"}render(){return s.h("svg",{key:"4888ed340800392ac9bb38eb4b868fca595db537",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"20cfaacf5cb828569e0b4ec6d2e83fe3b5264b32",d:"M10 7.66211C10 9.31896 8.65685 10.6621 7 10.6621C5.34315 10.6621 4 9.31896 4 7.66211C4 6.00526 5.34315 4.66211 7 4.66211C8.65685 4.66211 10 6.00526 10 7.66211ZM9 7.66211C9 6.55754 8.10457 5.66211 7 5.66211C5.89543 5.66211 5 6.55754 5 7.66211C5 8.76668 5.89543 9.66211 7 9.66211C8.10457 9.66211 9 8.76668 9 7.66211ZM11.9497 12.6171C14.6834 9.88221 14.6834 5.44812 11.9497 2.71326C9.21608 -0.0216067 4.78392 -0.0216067 2.05025 2.71326C-0.683418 5.44812 -0.683418 9.88221 2.05025 12.6171L3.57128 14.1159L5.61408 16.101L5.74691 16.2188C6.52168 16.8468 7.65623 16.8076 8.38611 16.1012L10.8223 13.7312L11.9497 12.6171ZM2.75499 3.4183C5.09944 1.07282 8.90055 1.07282 11.245 3.4183C13.5294 5.70364 13.5879 9.3725 11.4207 11.7288L11.245 11.912L9.92371 13.216L7.69315 15.3846L7.60016 15.4642C7.24594 15.732 6.7543 15.732 6.40012 15.4642L6.30713 15.3845L3.3263 12.4791L2.75499 11.912L2.57927 11.7288C0.412077 9.3725 0.47065 5.70364 2.75499 3.4183Z",fill:"currentColor"}))}};di.style=Fu;const Bu=".sc-location-off-icon-h{display:flex}",qu=Bu,fi=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="18"}render(){return s.h("svg",{key:"b61c56b0a012359592a4c2575f130ece6fd412c6",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"6be791c9a59fa3634f65881dfbca7adc5e3355d3",d:"M0.146447 0.808556C0.341709 0.613294 0.658291 0.613294 0.853553 0.808556L15.8536 15.8086C16.0488 16.0038 16.0488 16.3204 15.8536 16.5157C15.6583 16.7109 15.3417 16.7109 15.1464 16.5157L12.0938 13.463L11.8223 13.7312L9.38611 16.1012C8.65623 16.8076 7.52168 16.8468 6.74691 16.2188L6.61408 16.101L4.57128 14.1159L3.05025 12.6171C0.607421 10.1732 0.347525 6.37239 2.27056 3.63976L0.146447 1.51566C-0.0488155 1.3204 -0.0488155 1.00382 0.146447 0.808556ZM9.07768 10.4469C8.74346 10.576 8.38024 10.6468 8.0005 10.6468C6.34839 10.6468 5.00909 9.30689 5.00909 7.65406C5.00909 7.27461 5.07967 6.91166 5.20843 6.57763L2.98793 4.35713C1.49206 6.62038 1.68917 9.67377 3.57927 11.7288L3.75499 11.912L4.3263 12.4791L7.30713 15.3845L7.40012 15.4642C7.7543 15.732 8.24594 15.732 8.60016 15.4642L8.69315 15.3846L10.9237 13.216L11.3883 12.7575L9.07768 10.4469ZM9.85409 8.39486L10.5983 9.13904C10.8487 8.70143 10.9919 8.19447 10.9919 7.65406C10.9919 6.00122 9.65261 4.66134 8.0005 4.66134C7.45986 4.66134 6.95271 4.80482 6.51504 5.05581L7.25921 5.79998C7.48839 5.70819 7.73855 5.6577 8.0005 5.6577C9.10258 5.6577 9.99599 6.5515 9.99599 7.65406C9.99599 7.91581 9.94564 8.16581 9.85409 8.39486ZM4.35291 2.89368C6.70671 1.08827 10.0908 1.26314 12.245 3.4183C14.3986 5.57283 14.5739 8.95702 12.771 11.3118L13.4812 12.022C15.6702 9.27273 15.493 5.25762 12.9497 2.71326C10.4058 0.168159 6.39081 -0.00843871 3.64269 2.18347L4.35291 2.89368Z",fill:"currentColor"}))}};fi.style=qu;const ju=':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.dropdown{display:inline-block;width:100%;position:relative}.dropdown .dropdown-label{display:flex;align-items:center;gap:0.25rem;color:var(--nylas-base-800)}.dropbtn{width:inherit;height:48px;color:black;padding:0.5rem;font-size:1rem;cursor:pointer;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{border:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content ul li label{display:flex;align-items:center;gap:0.5rem}.dropdown-content ul li label input{margin:0}.selected-options{display:flex;flex-wrap:wrap;gap:0.5rem;padding:0.5rem 0;margin-top:0.25rem;background:var(--nylas-base-0)}.selected-options .selected-option{display:flex;align-items:center;gap:0.5rem;padding:4px 8px;border-radius:var(--nylas-border-radius-2x);background:var(--nylas-base-100);color:var(--nylas-base-800);font-size:16px;font-weight:500;line-height:1.5rem;letter-spacing:0.5px}.selected-options .selected-option button{background:transparent;border:none;cursor:pointer;padding:0}.selected-options .selected-option button:hover{color:var(--nylas-primary)}',Uu=ju,hi=class{constructor(t){s.registerInstance(this,t),this.selectedOptionsChanged=s.createEvent(this,"selectedOptionsChanged",7),this.name=void 0,this.label=void 0,this.options=[],this.availableOptions=this.options,this.isOpen=!1,this.ariaActivedescendant="",this.shouldFocusFirstOption=!1}componentDidRender(){s.debug("multi-select-dropdown","componentDidRender"),this.isOpen&&this.shouldFocusFirstOption&&(this.ariaActivedescendant=this.availableOptions[0].value,this.focusOption(0),this.shouldFocusFirstOption=!1)}handleOutsideClick(t){!t.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}selectOption(t){this.availableOptions=this.availableOptions.map(n=>(n.value===t.value&&(n.selected=!t.selected),n));const e=this.availableOptions.filter(n=>n.selected).map(n=>n.value);this.selectedOptionsChanged.emit({value:e,name:this.name})}toggleDropdown(){this.isOpen=!this.isOpen,this.isOpen?this.shouldFocusFirstOption=!0:this.ariaActivedescendant=""}handleSelectButtonKeyDown(t){switch(t.key){case"ArrowDown":case"Enter":t.preventDefault(),this.isOpen||this.toggleDropdown();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(t){const e=this.availableOptions,n=e.findIndex(i=>i.value===this.ariaActivedescendant);switch(t.key){case"ArrowDown":case"Tab":if(t.shiftKey){t.preventDefault();const u=n-1>=0?n-1:e.length-1;this.ariaActivedescendant=e[u].value,this.focusOption(u)}else{t.preventDefault();const u=n+1<e.length?n+1:0;this.ariaActivedescendant=e[u].value,this.focusOption(u)}break;case"ArrowUp":t.preventDefault();const i=n-1>=0?n-1:e.length-1;this.ariaActivedescendant=e[i].value,this.focusOption(i);break;case"Enter":t.preventDefault(),this.ariaActivedescendant&&this.selectOption(e[n]);break;case"Escape":this.isOpen=!1;break}}focusOption(t){var u;const e=this.availableOptions[t];if(!e)return;const n=e.value,i=(u=this.el.shadowRoot)==null?void 0:u.getElementById(n);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}getSelectedOptions(){return this.availableOptions.filter(t=>t.selected)}renderOption(t){return s.h("li",{key:t.value,id:t.value,role:"option",tabindex:"0","aria-selected":t.selected?"true":"false",onClick:e=>{e.stopImmediatePropagation(),this.selectOption(t)},class:{selected:!!t.selected}},s.h("label",{htmlFor:t.value},s.h("input",{"aria-hidden":"true",id:t.value,type:"checkbox",checked:t.selected}),s.h("span",null,t.label)))}render(){var t,e;return s.h(s.Host,{key:"4ef13670e3dfbf55e023ac7532d93c48d21f3004"},s.h("div",{key:"8626f138f5be677421697067460ef76d0a7cc697",class:"dropdown",part:"msd_dropdown"},s.h("label",{key:"b723c488dac91c39f285aae1a3f7928844753bf1",class:"dropdown-label"},this.label,s.h("slot",{key:"5bdec320647a41de57671c75523a453ccb07af2a",name:"label-icon","aria-hidden":"true"})),s.h("button",{key:"f7d7cf144ac2fec93171b5ac6cd42be4be6b5c93",part:"msd_dropdown-button",class:{dropbtn:!0,open:this.isOpen},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:n=>this.handleSelectButtonKeyDown(n)},s.h("slot",{key:"021e59628b8da260b308819614297c177a666334",name:"select-icon","aria-hidden":"true"}),s.h("span",{key:"4a8c921538a23abe4c7efbeb176fb806587092c9",class:"selected-option",part:"msd_dropdown-button-selected-label"},this.getSelectedOptions().length>1?`Multiple ${this.name}s selected`:((t=this.availableOptions.filter(n=>n.selected)[0])==null?void 0:t.label)??((e=this.availableOptions[0])==null?void 0:e.label)),s.h("span",{key:"fc771549d102fb27e33d128504d09fa6151154e9",class:this.isOpen?"open":"closed","aria-hidden":"true"},s.h("chevron-icon",{key:"bd8282695d11bcfb617da05a75d0a2335650f705",width:"16",height:"16"}))),this.isOpen?null:s.h("div",{class:"selected-options"},this.getSelectedOptions().map(n=>s.h("span",{class:"selected-option"},n.label,s.h("button",{key:n.label,onClick:()=>this.selectOption(n)},s.h("close-icon",null))))),this.isOpen?s.h("div",{class:"dropdown-content",part:"msd_dropdown-content"},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-multiselectable":!0,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:n=>this.handleListboxKeydown(n)},this.availableOptions.map(n=>this.renderOption(n)))):null))}get el(){return s.getElement(this)}};hi.style=Uu;const zu=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-availability-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-availability-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-availability-picker .header h3{margin:0;font-size:16px;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-availability-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-availability-picker .content{padding:1rem;color:var(--nylas-base-900);font-size:16px;font-family:var(--nylas-font-family)}@media screen and (max-width: 504px){.nylas-availability-picker .content{font-size:15px}}.nylas-availability-picker .content .select-timezone{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--nylas-base-200);padding-bottom:1rem;gap:1rem}.nylas-availability-picker .content .select-timezone h4{display:flex;gap:0.5rem;align-items:center;margin:0;font-size:16px;font-weight:500;line-height:20px}@media screen and (max-width: 504px){.nylas-availability-picker .content .select-timezone h4{font-size:15px}}.nylas-availability-picker .content .select-timezone select-dropdown{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-availability-picker .content .availability{display:flex;flex-direction:column;gap:1rem;padding:0 0.5rem;margin:1rem 0}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability{gap:0.5rem;padding:0}}.nylas-availability-picker .content .availability .availability-day{display:grid;grid-template-columns:minmax(auto, 65px) 1fr minmax(auto, 40px);gap:1rem;align-items:baseline}@media screen and (max-width: 768px){.nylas-availability-picker .content .availability .availability-day{grid-template-columns:78px 1fr auto}}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day{display:inline-grid;gap:8px;grid-template-columns:60px 1fr auto}}.nylas-availability-picker .content .availability .availability-day .day{display:flex;gap:0.5rem;align-items:center}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .day{gap:0.25rem}}.nylas-availability-picker .content .availability .availability-day .day input[type=checkbox]{transform:scale(1.3)}.nylas-availability-picker .content .availability .availability-day .time-ranges span.unavailable{height:48px;display:flex;align-items:center;justify-content:center}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{display:flex;gap:1.5rem;justify-content:space-between;align-items:baseline}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range{justify-content:unset;gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{display:flex;gap:1rem}@media screen and (max-width: 504px){.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers{gap:0.5rem}}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range .pickers span{margin-top:0.75rem}.nylas-availability-picker .content .availability .availability-day .time-ranges .time-range:not(:last-of-type){margin-bottom:1rem}.nylas-availability-picker .content .availability .availability-day .time-ranges p.error{color:var(--nylas-error)}.nylas-availability-picker .content .availability .availability-day button{border:none;background:transparent;height:40px;cursor:pointer;color:var(--nylas-base-800)}.nylas-availability-picker .content .availability .availability-day button:hover,.nylas-availability-picker .content .availability .availability-day button:active{color:var(--nylas-primary)}',Vu=zu;var Wu=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},mt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Qt=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.openHours=void 0,this.name="availability",this.defaultTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.schedule={SUN:[],MON:[{start:"09:00am",end:"05:00pm"}],TUE:[{start:"09:00am",end:"05:00pm"}],WED:[{start:"09:00am",end:"05:00pm"}],THU:[{start:"09:00am",end:"05:00pm"}],FRI:[{start:"09:00am",end:"05:00pm"}],SAT:[]},this.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.overlapDays={}}elementNameChangedHandler(t){s.debug("nylas-calendar-picker","elementNameChangedHandler",t),this.host.setAttribute("name",t)}configChangedHandler(t){var n,i,u;const e=(n=t==null?void 0:t.participants)==null?void 0:n.find(a=>a.is_organizer);e&&((i=e==null?void 0:e.availability)!=null&&i.open_hours)&&this.openHoursToSchedule((u=e==null?void 0:e.availability)==null?void 0:u.open_hours)}scheduleChanged(t,e){var n;if(t!==e){this.valueChanged.emit({value:{openHours:this.scheduleToOpenHours(t),timezone:this.timezone},name:this.name});let i={};if(Object.keys(t).forEach(u=>{const a=t[u];if(a.length>0){const r=this.getOverlaps(a);r.length>0&&(i[u]=r)}}),this.overlapDays=i,typeof this.internals.setFormValue!="function")return;if(Object.keys(i).length>0){const u=(n=this.host.shadowRoot)==null?void 0:n.getElementById(Object.keys(i)[0]);u&&this.internals.setValidity({customError:!0},"Overlapping time ranges found",u)}else this.internals.setValidity({customError:!1}),this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}}selectedOptionChangedHandler(t){const{name:e,value:n}=t.detail;if(e==="timezone"){if(this.timezone=n,typeof this.internals.setFormValue!="function")return;this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}}connectedCallback(){s.debug("nylas-availability-picker","connectedCallback")}disconnectedCallback(){s.debug("nylas-availability-picker","disconnectedCallback")}componentWillLoad(){s.debug("nylas-availability-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){s.debug("nylas-availability-picker","componentDidLoad"),this.openHours&&this.openHours.length>0&&this.openHoursToSchedule(this.openHours),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(JSON.stringify({openHours:this.scheduleToOpenHours(this.schedule),timezone:this.timezone}))}getOverlaps(t){let e=t.map((i,u)=>({start:s.timeToMinutes(i.start),end:s.timeToMinutes(i.end),originalIndex:u}));e.sort((i,u)=>i.start-u.start);let n=[];for(let i=1;i<e.length;i++)e[i].start<e[i-1].end&&(n.includes(e[i].originalIndex)||n.push(e[i].originalIndex),n.includes(e[i-1].originalIndex)||n.push(e[i-1].originalIndex));return n.sort((i,u)=>i-u)}addTimeRange(t){const e=this.schedule[t],n=0,i=1425;if(e.length===0)this.schedule[t]=[{start:"09:00am",end:"05:00pm"}];else{const u=e.map(r=>({start:s.timeToMinutes(r.start),end:s.timeToMinutes(r.end)})).sort((r,o)=>r.start-o.start),a=u[u.length-1].end;if(a+60<=i)this.schedule[t].push({start:s.convertTo12HourFormat(s.minutesToTime(a)),end:s.convertTo12HourFormat(s.minutesToTime(a+60))});else{let r=!1;if(u[0].start>n+60&&(this.schedule[t].push({start:s.convertTo12HourFormat(s.minutesToTime(n)),end:s.convertTo12HourFormat(s.minutesToTime(n+60))}),r=!0),!r)for(let o=0;o<u.length-1;o++){const l=u[o].end;if(u[o+1].start-l>=60){this.schedule[t].push({start:s.convertTo12HourFormat(s.minutesToTime(l)),end:s.convertTo12HourFormat(s.minutesToTime(l+60))});break}}}}this.schedule[t].sort((u,a)=>s.timeToMinutes(u.start)-s.timeToMinutes(a.start)),this.schedule={...this.schedule}}removeTimeRange(t,e){this.schedule[t].splice(e,1),this.schedule={...this.schedule}}setTime(t){console.log("timeChanged",t);const{key:e,value:n}=t.detail;console.log({key:e,value:n});const[i,u]=e.split("_"),[a,r]=i.split(":");u==="start"?this.schedule[a][r].start=n:u==="end"&&(this.schedule[a][r].end=n),this.internals.setValidity({customError:!1}),this.schedule={...this.schedule}}setFormError(t){var a;const{key:e}=t.detail,[n,i]=e.split("_"),u=(a=this.host.shadowRoot)==null?void 0:a.getElementById(e);u&&this.internals.setValidity({customError:!0},`Invalid ${i} time`,u)}openHoursToSchedule(t){const e={SUN:[],MON:[],TUE:[],WED:[],THU:[],FRI:[],SAT:[]};t.forEach(n=>{n.days.forEach(i=>{const u=this.getDayKey(i),a=s.convertTo12HourFormat(n.start),r=s.convertTo12HourFormat(n.end),o={start:a,end:r};let l=!1;e[u]&&(l=e[u].some(c=>c.start===o.start&&c.end===o.end)),l||(e[u]?e[u].push(o):e[u]=[o])})}),this.timezone=this.defaultTimezone,this.schedule=e}getDayKey(t){return["SUN","MON","TUE","WED","THU","FRI","SAT"][t]}scheduleToOpenHours(t){const e=["SUN","MON","TUE","WED","THU","FRI","SAT"];let n=new Map;e.forEach((u,a)=>{t[u]&&t[u].forEach(r=>{const o=s.convertTo24HourFormat(r.start),l=s.convertTo24HourFormat(r.end),c=`${o}-${l}`;if(!n.has(c))n.set(c,{days:[a],start:o,end:l});else{let p=n.get(c);p&&(p.days.push(a),n.set(c,p))}})});let i=[];return n.forEach((u,a)=>{i.push({days:u.days,start:u.start,end:u.end,timezone:this.timezone})}),i}render(){const t=Object.keys(Ke.TIMEZONE_MAP).map(e=>({label:Ke.TIMEZONE_MAP[e],value:e}));return s.h(s.Host,{key:"ebdf308b5d2e38cbbe9c01915a8704cdc137b56f"},s.h("div",{key:"81557accec232465b3e86d5d0bdc1ae25aa8d6de",class:"nylas-availability-picker"},s.h("div",{key:"f5c2a5ef92fc59568672b536a9e604547561b8d6",class:"header",part:"nap__header"},s.h("h3",{key:"cbccae32847e68a5fe47f9f1f901e55546621c36"},"General availability"),s.h("p",{key:"34600ddd459b5d681574458f4f4acdb5ed26f7ac"},"Set your availability for scheduling meetings.")),s.h("div",{key:"65785316b94376cf4d79de9c875e39060226ca31",class:"content"},s.h("div",{key:"5c30c0bd916460f668dc3f881b4b01a1792e59b0",class:"select-timezone",part:"nap__select-timezone"},s.h("h4",{key:"0638898cae070a5d9eae8cd1dca83e39e5bb735f",class:"sub-header"},"Select timezone",s.h("span",{key:"d6746b3329ba92bf5c759895444d08924ba7769c",class:"icon"},s.h("tooltip-component",{key:"76dbc460bd91fa0f33a65c65ce092ad966ce6535"},s.h("info-icon",{key:"5778fb41c006172a125a4430186ad85d4cdbaf3c",slot:"tooltip-icon"}),s.h("span",{key:"76132f33db5dce9d7d7e5e111065ad9d1ec64d3f",slot:"tooltip-content"},"Select your timezone for displaying availability.")))),s.h("select-dropdown",{key:"9a0a3702b4868109ccc8f77e1143727de1e3f1fa",name:"timezone",exportparts:"sd_dropdown: nap__timezone-container, sd_dropdown-button: nap__timezone-button, sd_dropdown-content: nap__timezone-dropdown-content",options:t,defaultSelectedOption:t.find(e=>e.value===this.defaultTimezone)},s.h("span",{key:"ed0756090602c8a52ffdae493f09cfa7d61dd1e9",slot:"select-icon"},s.h("globe-icon",{key:"6e5e5234210ba8cc50ef57338a2f4e926521cb70",width:"20",height:"20"})))),s.h("div",{key:"eac4322bf2aa8f5ea84e4d7ccee293803c70b2ac",class:"availability",part:"nap__availability"},Object.keys(this.schedule).map(e=>{const n=e,i=this.schedule[e];return s.h("div",{class:"availability-day"},s.h("div",{class:"day",part:"nap__day"},s.h("input",{type:"checkbox",name:n,id:n,checked:i.length>0,onClick:()=>{i.length>0?this.schedule[n]=[]:this.schedule[n]=[{start:"09:00am",end:"05:00pm"}],this.schedule={...this.schedule}}}),s.h("label",{htmlFor:n,"aria-label":"Select day"},n)),s.h("div",{class:"time-ranges",part:"nap__time-ranges"},i.length?null:s.h("span",{class:"unavailable"},"Unavailable"),i.length>0&&i.map((u,a)=>{var l,c;const r=`${e}:${a}_start`,o=`${e}:${a}_end`;return s.h("div",{class:"time-range",part:"nap__time-range"},s.h("div",{class:"pickers"},s.h("nylas-time-window-picker",{id:r,hasError:(l=this.overlapDays[n])==null?void 0:l.includes(a),time:u.start,name:r,key:r,exportparts:"time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times"}),s.h("span",null," - "),s.h("nylas-time-window-picker",{id:o,hasError:(c=this.overlapDays[n])==null?void 0:c.includes(a),time:u.end,name:o,key:o,minimumStartTime:u.start,exportparts:"time-picker: nap__time-picker-container, time-input: nap__time-picker-input, times: nap__time-picker-times"})),s.h("button",{onClick:()=>this.removeTimeRange(n,a)},s.h("close-icon",null)))}),s.h("p",{class:"error"},this.overlapDays[n]?"Overlapping time ranges":"")),s.h("div",null,i.length>0?s.h("button",{onClick:()=>this.addTimeRange(n),part:"nap__add-time-range"},s.h("add-circle-icon",null)):null))})))))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["configChangedHandler"],schedule:["scheduleChanged"]}}};Wu([ee.RegisterComponent({name:"nylas-availability-picker",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),fireRegisterEvent:!0}),mt("design:type",Function),mt("design:paramtypes",[]),mt("design:returntype",void 0)],Qt.prototype,"render",null);Qt.style=Vu;const Gu=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-booking-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-booking-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-booking-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown{padding:1rem;display:flex;flex-direction:column;gap:4px}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label{display:flex;align-items:center;gap:4px;color:var(--nylas-base-800)}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown span.label tooltip-component{display:flex}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown){width:100%}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-content){width:100%;max-width:unset}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-booking-calendar-picker .nylas-booking-calendar-picker__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',Zu=Gu;var Yu=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},yt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Jt=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.calendars=void 0,this.currentUser=void 0,this.name="booking-calendar",this.defaultBookingCalendar="",this.selectedCalendar=""}connectedCallback(){s.debug("nylas-booking-calendar-picker","connectedCallback")}disconnectedCallback(){s.debug("nylas-booking-calendar-picker","disconnectedCallback")}componentWillLoad(){s.debug("nylas-booking-calendar-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var t,e;s.debug("nylas-booking-calendar-picker","componentDidLoad"),this.defaultBookingCalendar=this.defaultBookingCalendar||((t=this.currentUser)==null?void 0:t.email)||"",typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultBookingCalendar.toString(),"booking-calendar"),this.selectedCalendar=this.defaultBookingCalendar||((e=this.currentUser)==null?void 0:e.email)||""}componentWillUpdate(){s.debug("nylas-booking-calendar-picker","componentWillUpdate")}componentDidUpdate(){s.debug("nylas-booking-calendar-picker","componentDidUpdate")}componentWillRender(){s.debug("nylas-booking-calendar-picker","componentWillRender")}componentDidRender(){s.debug("nylas-booking-calendar-picker","componentDidRender")}elementNameChangedHandler(t){s.debug("nylas-booking-calendar-picker","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedOptionChangedHandler(t){s.debug("nylas-booking-calendar-picker","selectedOptionChangedHandler",t.detail);const e=n=>{const{value:i}=n.detail;this.selectedCalendar=i,this.internals.setFormValue(i.toString(),this.name)};this.valueChanged.emit({value:t.detail.value,name:this.name,valueChanged:e})}render(){var e;const t=((e=this.calendars)==null?void 0:e.map(n=>({value:n.id,label:n.name})))??[];return s.h(s.Host,null,s.h("div",{class:"nylas-booking-calendar-picker",part:"nbcp"},s.h("div",{class:"header",part:"nbcp__header"},s.h("h3",null,"Calendar booking"),s.h("p",null,"Choose calendar where you’d like the event bookings to show up.")),t.length>0?s.h("div",{class:"nylas-booking-calendar-picker__dropdown"},s.h("span",{class:"label",part:"nbcp__input-label"},"Select a calendar to book meetings on",s.h("tooltip-component",null,s.h("info-icon",{slot:"tooltip-icon"}),s.h("span",{slot:"tooltip-content"},"Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available."))),s.h("select-dropdown",{name:"booking-calendar",options:t,withSearch:!1,exportparts:"sd_dropdown: nbcp__dropdown, sd_dropdown-button: nbcp__dropdown-button, sd_dropdown-content: nbcp__dropdown-content",defaultSelectedOption:t.find(n=>n.value==this.defaultBookingCalendar)??t[0]})):s.h("div",{class:"nylas-booking-calendar-picker__loading"},s.h("span",{class:"label"},"Select a calendar to book meetings on ",s.h("info-icon",null)),s.h("div",{class:"loading-button"},s.h("span",null,"Loading...")))))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};Yu([ee.RegisterComponent({name:"nylas-booking-calendar-picker",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{valueChanged:async(t,e)=>{const{valueChanged:n}=t.detail;n&&n(t)}},fireRegisterEvent:!0}),yt("design:type",Function),yt("design:paramtypes",[]),yt("design:returntype",void 0)],Jt.prototype,"render",null);Jt.style=Zu;const Ku=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-buffer-time{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200);text-align:left}.nylas-buffer-time .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-buffer-time .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-buffer-time .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-buffer-time .nylas-buffer-time__body{display:grid;grid-template-columns:1fr auto}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body{grid-template-columns:1fr}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{padding:1rem;display:flex;flex-direction:column;gap:1rem;border-right:1px solid var(--nylas-base-200);color:var(--nylas-base-800)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown{border:none}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row label{width:200px}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__dropdown .nylas-buffer-time__row .dropdown-container{display:flex;gap:1rem;align-items:center;justify-content:flex-end}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:208px;background:var(--nylas-base-25);border-bottom-right-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview{width:inherit;border-bottom-left-radius:var(--nylas-border-radius-2x)}}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview h4{font-size:14px;line-height:24px;color:var(--nylas-base-600);font-family:var(--nylas-font-family);font-weight:500;text-align:center;margin:0.75rem 0}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container{padding:0 2rem 1rem}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot{background-color:transparent;border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot.active{background-color:var(--nylas-base-100)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .slot:last-of-type{border-bottom:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__body .nylas-buffer-time__preview .preview-container .event-slot{background-color:var(--nylas-base-600);border-top:1px solid var(--nylas-base-300)}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button){width:104px;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-content){width:100%}.nylas-buffer-time .nylas-buffer-time__dropdown select-dropdown::part(sd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',Qu=Ku;var Ju=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},gt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Xt=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.name="buffer-time",this.buffer={before:0,after:0},this.selectedBeforeBufferTime=this.buffer.before,this.selectedAfterBufferTime=this.buffer.after}connectedCallback(){s.debug("nylas-buffer-time","connectedCallback")}disconnectedCallback(){s.debug("nylas-buffer-time","disconnectedCallback")}componentWillLoad(){s.debug("nylas-buffer-time","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){if(s.debug("nylas-buffer-time","componentDidLoad"),typeof this.internals.setFormValue=="function"){const t={before:this.selectedBeforeBufferTime,after:this.selectedAfterBufferTime};this.internals.setFormValue(JSON.stringify(t),this.name)}this.selectedAfterBufferTime=this.buffer.after,this.selectedBeforeBufferTime=this.buffer.before}componentWillUpdate(){s.debug("nylas-buffer-time","componentWillUpdate")}componentDidUpdate(){s.debug("nylas-buffer-time","componentDidUpdate")}componentWillRender(){s.debug("nylas-buffer-time","componentWillRender")}componentDidRender(){s.debug("nylas-buffer-time","componentDidRender")}elementNameChangedHandler(t){s.debug("nylas-buffer-time","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedOptionChangedHandler(t){s.debug("nylas-buffer-time","selectedOptionChangedHandler",t.detail);const e=n=>{const{value:i,name:u}=n.detail;u==="before-buffer-time"?this.selectedBeforeBufferTime=parseInt(i):u==="after-buffer-time"&&(this.selectedAfterBufferTime=parseInt(i));const a={before:this.selectedBeforeBufferTime,after:this.selectedAfterBufferTime};this.internals.setFormValue(JSON.stringify(a),"booking-calendar")};this.valueChanged.emit({...t.detail,valueChanged:e})}renderPreview(){const i=r=>{const o=Math.floor(r/30),l=r%30/30*10;return{fullSlots:o,partialFillHeight:l}},u=()=>{const{fullSlots:r,partialFillHeight:o}=i(this.selectedBeforeBufferTime);return Array.from({length:4},(l,c)=>{const p=this.selectedBeforeBufferTime>0&&c>4-r-1,w=this.selectedBeforeBufferTime>0&&c===4-r-1&&o>0;let k={};return p&&!w?k.backgroundColor="var(--nylas-base-100)":w&&(k.background=`linear-gradient(to top, var(--nylas-base-100) ${o}px, transparent 0)`),s.h("div",{key:c,class:`slot ${p?"active":""}`,style:{height:"10px",...k}})})},a=()=>{const{fullSlots:r,partialFillHeight:o}=i(this.selectedAfterBufferTime);return Array.from({length:4},(l,c)=>{const p=this.selectedAfterBufferTime>0&&c<r,w=c===r&&o>0;let k={};return p&&!w?k.backgroundColor="var(--nylas-base-100)":w&&(k.background=`linear-gradient(to bottom, var(--nylas-base-100) ${o}px, transparent 0)`),s.h("div",{key:c,class:`slot ${p?"active":""}`,style:{height:"10px",...k}})})};return s.h("div",{class:"preview-container"},u(),s.h("div",{class:"event-slot",style:{height:"20px"}}),a())}render(){const t=Array.from({length:24},(e,n)=>{const i=n*5;return{label:i.toString(),value:i}});return s.h(s.Host,null,s.h("div",{class:"nylas-buffer-time",part:"nbt"},s.h("div",{class:"header",part:"nbt__header"},s.h("h3",null,"Buffer time"),s.h("p",null,"Add buffer time before and after the event.")),s.h("div",{class:"nylas-buffer-time__body",part:"nbt__body"},s.h("div",{class:"nylas-buffer-time__dropdown"},s.h("div",{class:"nylas-buffer-time__row"},s.h("label",null,"Before the event"),s.h("div",{class:"dropdown-container"},s.h("select-dropdown",{id:"before-buffer-time",withSearch:!1,name:"before-buffer-time",exportparts:"sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before",options:t,defaultSelectedOption:t.find(e=>e.value==this.selectedBeforeBufferTime)??t[0]}),s.h("span",null,"mins"))),s.h("div",{class:"nylas-buffer-time__row"},s.h("label",null,"After the event"),s.h("div",{class:"dropdown-container"},s.h("select-dropdown",{id:"after-buffer-time",withSearch:!1,name:"after-buffer-time",exportparts:"sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after",options:t,defaultSelectedOption:t.find(e=>e.value==this.selectedAfterBufferTime)??t[0]}),s.h("span",null,"mins")))),s.h("div",{class:"nylas-buffer-time__preview",part:"nbt__preview"},s.h("h4",null,"PREVIEW"),this.renderPreview()))))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};Ju([ee.RegisterComponent({name:"nylas-buffer-time",eventToProps:{valueChanged:async(t,e)=>{const{valueChanged:n}=t.detail;n&&n(t)}},fireRegisterEvent:!0}),gt("design:type",Function),gt("design:paramtypes",[]),gt("design:returntype",void 0)],Xt.prototype,"render",null);Xt.style=Qu;const Xu=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:inherit}.nylas-calendar-picker{width:inherit;display:flex;flex-direction:column;margin:1rem;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}.nylas-calendar-picker .header h3{margin:0;font-size:1rem;font-weight:600;line-height:20px;color:var(--nylas-base-900);text-align:left}.nylas-calendar-picker .header p{margin:0.25rem 0 0 0;font-size:0.875rem;font-weight:400;line-height:20px;color:var(--nylas-base-600);text-align:left}.nylas-calendar-picker .nylas-calendar-picker__loading{padding-bottom:1rem;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__loading .label{display:flex;align-items:center;gap:0.5rem;margin:1rem 1rem 0;color:var(--nylas-base-800)}.nylas-calendar-picker .nylas-calendar-picker__loading .label tooltip-component{display:flex}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button{margin:0 1rem;padding:0;width:inherit;height:48px;color:black;font-size:1rem;cursor:not-allowed;display:flex;gap:0.5rem;justify-content:space-between;align-items:center;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.nylas-calendar-picker .nylas-calendar-picker__loading .loading-button span{padding:0 1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown{padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown){width:100%;display:flex;flex-direction:column;gap:4px}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:1rem}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-content){width:100%;max-width:unset}.nylas-calendar-picker .nylas-calendar-picker__dropdown multi-select-dropdown::part(msd_dropdown-button-selected-label){max-width:calc(100% - 2rem);font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',ea=Xu;var ta=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},xt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const en=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.calendars=void 0,this.currentUser=void 0,this.name="calendar",this.defaultSelectedCalendars=[],this.selectedCalendars=[]}elementNameChangedHandler(t){s.debug("nylas-calendar-picker","elementNameChangedHandler",t),this.host.setAttribute("name",t)}connectedCallback(){s.debug("nylas-calendar-picker","connectedCallback")}disconnectedCallback(){s.debug("nylas-calendar-picker","disconnectedCallback")}componentWillLoad(){s.debug("nylas-calendar-picker","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){s.debug("nylas-calendar-picker","componentDidLoad"),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(this.defaultSelectedCalendars.toString(),"calendar")}componentWillUpdate(){s.debug("nylas-calendar-picker","componentWillUpdate")}componentDidUpdate(){s.debug("nylas-calendar-picker","componentDidUpdate")}componentWillRender(){s.debug("nylas-calendar-picker","componentWillRender")}componentDidRender(){s.debug("nylas-calendar-picker","componentDidRender")}selectedOptionsChangedHandler(t){s.debug("nylas-calendar-picker","selectedOptionChangedHandler",t.detail);const e=n=>{const{value:i}=n.detail;this.selectedCalendars=[...i],this.internals.setFormValue(i.toString(),"calendar")};this.valueChanged.emit({...t.detail,name:this.name,valueChangedHandler:e})}render(){var e;const t=((e=this.calendars)==null?void 0:e.map(n=>{var i,u,a,r;return{value:n.id,label:n.name,selected:((i=this.defaultSelectedCalendars)==null?void 0:i.includes(n.id))||((u=this.defaultSelectedCalendars)!=null&&u.includes("primary")||((a=this.defaultSelectedCalendars)==null?void 0:a.length)===0?n.id===((r=this.currentUser)==null?void 0:r.email):!1)}}))??[];return s.h(s.Host,null,s.h("div",{class:"nylas-calendar-picker",part:"ncp"},s.h("div",{class:"header",part:"ncp__header"},s.h("h3",null,"Calendar availability"),s.h("p",null,"Select calendars that you’d like to use for checking your availability.")),t.length>0?s.h("div",{class:"nylas-calendar-picker__dropdown"},s.h("multi-select-dropdown",{name:"calendar",label:"Select calendars that will be checked for availability",options:t,exportparts:"msd__dropdown: ncp__dropdown, msd__dropdown-button: ncp__dropdown-button, msd__dropdown-content: ncp__dropdown-content"},s.h("span",{slot:"label-icon"},s.h("tooltip-component",null,s.h("info-icon",{slot:"tooltip-icon"}),s.h("span",{slot:"tooltip-content"},"Check availability across one or multiple calendars. If multiple calendars are selected, you must be available across all of them to be considered available. The default is your primary calendar if none are selected."))))):s.h("div",{class:"nylas-calendar-picker__loading"},s.h("span",{class:"label"},"Select calendars that will be checked for availability ",s.h("info-icon",null)),s.h("div",{class:"loading-button"},s.h("span",null,"Loading...")))))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"]}}};ta([ee.RegisterComponent({name:"nylas-calendar-picker",stateToProps:new Map([["schedulerConfig.calendars","calendars"],["schedulerConfig.currentUser","currentUser"]]),eventToProps:{valueChanged:async(t,e)=>{const{valueChangedHandler:n}=t.detail;n&&n(t)}},fireRegisterEvent:!0}),xt("design:type",Function),xt("design:paramtypes",[]),xt("design:returntype",void 0)],en.prototype,"render",null);en.style=ea;var ue={},tn={};Object.defineProperty(tn,"__esModule",{value:!0});tn.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var nn={};Object.defineProperty(nn,"__esModule",{value:!0});nn.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var Lt={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var r="";return a>65535&&(a-=65536,r+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),r+=String.fromCharCode(a),r};function i(a){var r;return a>=55296&&a<=57343||a>1114111?65533:(r=n.get(a))!==null&&r!==void 0?r:a}t.replaceCodePoint=i;function u(a){return(0,t.fromCodePoint)(i(a))}t.default=u})(Lt);(function(t){var e=s.commonjsGlobal&&s.commonjsGlobal.__createBinding||(Object.create?function(f,y,x,S){S===void 0&&(S=x);var d=Object.getOwnPropertyDescriptor(y,x);(!d||("get"in d?!y.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return y[x]}}),Object.defineProperty(f,S,d)}:function(f,y,x,S){S===void 0&&(S=x),f[S]=y[x]}),n=s.commonjsGlobal&&s.commonjsGlobal.__setModuleDefault||(Object.create?function(f,y){Object.defineProperty(f,"default",{enumerable:!0,value:y})}:function(f,y){f.default=y}),i=s.commonjsGlobal&&s.commonjsGlobal.__importStar||function(f){if(f&&f.__esModule)return f;var y={};if(f!=null)for(var x in f)x!=="default"&&Object.prototype.hasOwnProperty.call(f,x)&&e(y,f,x);return n(y,f),y},u=s.commonjsGlobal&&s.commonjsGlobal.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=u(tn);t.htmlDecodeTree=a.default;var r=u(nn);t.xmlDecodeTree=r.default;var o=i(Lt);t.decodeCodePoint=o.default;var l=Lt;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}});var c;(function(f){f[f.NUM=35]="NUM",f[f.SEMI=59]="SEMI",f[f.EQUALS=61]="EQUALS",f[f.ZERO=48]="ZERO",f[f.NINE=57]="NINE",f[f.LOWER_A=97]="LOWER_A",f[f.LOWER_F=102]="LOWER_F",f[f.LOWER_X=120]="LOWER_X",f[f.LOWER_Z=122]="LOWER_Z",f[f.UPPER_A=65]="UPPER_A",f[f.UPPER_F=70]="UPPER_F",f[f.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var p=32,w;(function(f){f[f.VALUE_LENGTH=49152]="VALUE_LENGTH",f[f.BRANCH_LENGTH=16256]="BRANCH_LENGTH",f[f.JUMP_TABLE=127]="JUMP_TABLE"})(w=t.BinTrieFlags||(t.BinTrieFlags={}));function k(f){return f>=c.ZERO&&f<=c.NINE}function E(f){return f>=c.UPPER_A&&f<=c.UPPER_F||f>=c.LOWER_A&&f<=c.LOWER_F}function T(f){return f>=c.UPPER_A&&f<=c.UPPER_Z||f>=c.LOWER_A&&f<=c.LOWER_Z||k(f)}function v(f){return f===c.EQUALS||T(f)}var h;(function(f){f[f.EntityStart=0]="EntityStart",f[f.NumericStart=1]="NumericStart",f[f.NumericDecimal=2]="NumericDecimal",f[f.NumericHex=3]="NumericHex",f[f.NamedEntity=4]="NamedEntity"})(h||(h={}));var A;(function(f){f[f.Legacy=0]="Legacy",f[f.Strict=1]="Strict",f[f.Attribute=2]="Attribute"})(A=t.DecodingMode||(t.DecodingMode={}));var O=function(){function f(y,x,S){this.decodeTree=y,this.emitCodePoint=x,this.errors=S,this.state=h.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=A.Strict}return f.prototype.startEntity=function(y){this.decodeMode=y,this.state=h.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},f.prototype.write=function(y,x){switch(this.state){case h.EntityStart:return y.charCodeAt(x)===c.NUM?(this.state=h.NumericStart,this.consumed+=1,this.stateNumericStart(y,x+1)):(this.state=h.NamedEntity,this.stateNamedEntity(y,x));case h.NumericStart:return this.stateNumericStart(y,x);case h.NumericDecimal:return this.stateNumericDecimal(y,x);case h.NumericHex:return this.stateNumericHex(y,x);case h.NamedEntity:return this.stateNamedEntity(y,x)}},f.prototype.stateNumericStart=function(y,x){return x>=y.length?-1:(y.charCodeAt(x)|p)===c.LOWER_X?(this.state=h.NumericHex,this.consumed+=1,this.stateNumericHex(y,x+1)):(this.state=h.NumericDecimal,this.stateNumericDecimal(y,x))},f.prototype.addToNumericResult=function(y,x,S,d){if(x!==S){var g=S-x;this.result=this.result*Math.pow(d,g)+parseInt(y.substr(x,g),d),this.consumed+=g}},f.prototype.stateNumericHex=function(y,x){for(var S=x;x<y.length;){var d=y.charCodeAt(x);if(k(d)||E(d))x+=1;else return this.addToNumericResult(y,S,x,16),this.emitNumericEntity(d,3)}return this.addToNumericResult(y,S,x,16),-1},f.prototype.stateNumericDecimal=function(y,x){for(var S=x;x<y.length;){var d=y.charCodeAt(x);if(k(d))x+=1;else return this.addToNumericResult(y,S,x,10),this.emitNumericEntity(d,2)}return this.addToNumericResult(y,S,x,10),-1},f.prototype.emitNumericEntity=function(y,x){var S;if(this.consumed<=x)return(S=this.errors)===null||S===void 0||S.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(y===c.SEMI)this.consumed+=1;else if(this.decodeMode===A.Strict)return 0;return this.emitCodePoint((0,o.replaceCodePoint)(this.result),this.consumed),this.errors&&(y!==c.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},f.prototype.stateNamedEntity=function(y,x){for(var S=this.decodeTree,d=S[this.treeIndex],g=(d&w.VALUE_LENGTH)>>14;x<y.length;x++,this.excess++){var m=y.charCodeAt(x);if(this.treeIndex=I(S,d,this.treeIndex+Math.max(1,g),m),this.treeIndex<0)return this.result===0||this.decodeMode===A.Attribute&&(g===0||v(m))?0:this.emitNotTerminatedNamedEntity();if(d=S[this.treeIndex],g=(d&w.VALUE_LENGTH)>>14,g!==0){if(m===c.SEMI)return this.emitNamedEntityData(this.treeIndex,g,this.consumed+this.excess);this.decodeMode!==A.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},f.prototype.emitNotTerminatedNamedEntity=function(){var y,x=this,S=x.result,d=x.decodeTree,g=(d[S]&w.VALUE_LENGTH)>>14;return this.emitNamedEntityData(S,g,this.consumed),(y=this.errors)===null||y===void 0||y.missingSemicolonAfterCharacterReference(),this.consumed},f.prototype.emitNamedEntityData=function(y,x,S){var d=this.decodeTree;return this.emitCodePoint(x===1?d[y]&~w.VALUE_LENGTH:d[y+1],S),x===3&&this.emitCodePoint(d[y+2],S),S},f.prototype.end=function(){var y;switch(this.state){case h.NamedEntity:return this.result!==0&&(this.decodeMode!==A.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case h.NumericDecimal:return this.emitNumericEntity(0,2);case h.NumericHex:return this.emitNumericEntity(0,3);case h.NumericStart:return(y=this.errors)===null||y===void 0||y.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case h.EntityStart:return 0}},f}();t.EntityDecoder=O;function B(f){var y="",x=new O(f,function(S){return y+=(0,o.fromCodePoint)(S)});return function(d,g){for(var m=0,_=0;(_=d.indexOf("&",_))>=0;){y+=d.slice(m,_),x.startEntity(g);var N=x.write(d,_+1);if(N<0){m=_+x.end();break}m=_+N,_=N===0?m+1:m}var H=y+d.slice(m);return y="",H}}function I(f,y,x,S){var d=(y&w.BRANCH_LENGTH)>>7,g=y&w.JUMP_TABLE;if(d===0)return g!==0&&S===g?x:-1;if(g){var m=S-g;return m<0||m>=d?-1:f[x+m]-1}for(var _=x,N=_+d-1;_<=N;){var H=_+N>>>1,L=f[H];if(L<S)_=H+1;else if(L>S)N=H-1;else return f[H+d]}return-1}t.determineBranch=I;var j=B(a.default),z=B(r.default);function W(f,y){return y===void 0&&(y=A.Legacy),j(f,y)}t.decodeHTML=W;function P(f){return j(f,A.Attribute)}t.decodeHTMLAttribute=P;function G(f){return j(f,A.Strict)}t.decodeHTMLStrict=G;function V(f){return z(f,A.Strict)}t.decodeXML=V})(ue);var C;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(C||(C={}));var b;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"})(b||(b={}));function re(t){return t===C.Space||t===C.NewLine||t===C.Tab||t===C.FormFeed||t===C.CarriageReturn}function Pe(t){return t===C.Slash||t===C.Gt||re(t)}function On(t){return t>=C.Zero&&t<=C.Nine}function na(t){return t>=C.LowerA&&t<=C.LowerZ||t>=C.UpperA&&t<=C.UpperZ}function ia(t){return t>=C.UpperA&&t<=C.UpperF||t>=C.LowerA&&t<=C.LowerF}var ae;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(ae||(ae={}));const Y={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class bi{constructor({xmlMode:e=!1,decodeEntities:n=!0},i){this.cbs=i,this.state=b.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=b.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=n,this.entityTrie=e?ue.xmlDecodeTree:ue.htmlDecodeTree}reset(){this.state=b.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=b.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===C.Lt||!this.decodeEntities&&this.fastForwardTo(C.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=b.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===C.Amp&&(this.state=b.BeforeEntity)}stateSpecialStartSequence(e){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Pe(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=b.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===C.Gt||re(e)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const i=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=i}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Y.TitleEnd?this.decodeEntities&&e===C.Amp&&(this.state=b.BeforeEntity):this.fastForwardTo(C.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===C.Lt)}stateCDATASequence(e){e===Y.Cdata[this.sequenceIndex]?++this.sequenceIndex===Y.Cdata.length&&(this.state=b.InCommentLike,this.currentSequence=Y.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=b.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Y.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=b.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Pe(e):na(e)}startSpecial(e,n){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=n,this.state=b.SpecialStartSequence}stateBeforeTagName(e){if(e===C.ExclamationMark)this.state=b.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===C.Questionmark)this.state=b.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const n=e|32;this.sectionStart=this.index,!this.xmlMode&&n===Y.TitleEnd[2]?this.startSpecial(Y.TitleEnd,3):this.state=!this.xmlMode&&n===Y.ScriptEnd[2]?b.BeforeSpecialS:b.InTagName}else e===C.Slash?this.state=b.BeforeClosingTagName:(this.state=b.Text,this.stateText(e))}stateInTagName(e){Pe(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){re(e)||(e===C.Gt?this.state=b.Text:(this.state=this.isTagStartChar(e)?b.InClosingTagName:b.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===C.Gt||re(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===C.Gt||this.fastForwardTo(C.Gt))&&(this.state=b.Text,this.baseState=b.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===C.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=b.InSpecialTag,this.sequenceIndex=0):this.state=b.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===C.Slash?this.state=b.InSelfClosingTag:re(e)||(this.state=b.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===C.Gt?(this.cbs.onselfclosingtag(this.index),this.state=b.Text,this.baseState=b.Text,this.sectionStart=this.index+1,this.isSpecial=!1):re(e)||(this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===C.Eq||Pe(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=b.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===C.Eq?this.state=b.BeforeAttributeValue:e===C.Slash||e===C.Gt?(this.cbs.onattribend(ae.NoValue,this.index),this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(e)):re(e)||(this.cbs.onattribend(ae.NoValue,this.index),this.state=b.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===C.DoubleQuote?(this.state=b.InAttributeValueDq,this.sectionStart=this.index+1):e===C.SingleQuote?(this.state=b.InAttributeValueSq,this.sectionStart=this.index+1):re(e)||(this.sectionStart=this.index,this.state=b.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,n){e===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===C.DoubleQuote?ae.Double:ae.Single,this.index),this.state=b.BeforeAttributeName):this.decodeEntities&&e===C.Amp&&(this.baseState=this.state,this.state=b.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,C.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,C.SingleQuote)}stateInAttributeValueNoQuotes(e){re(e)||e===C.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ae.Unquoted,this.index),this.state=b.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===C.Amp&&(this.baseState=this.state,this.state=b.BeforeEntity)}stateBeforeDeclaration(e){e===C.OpeningSquareBracket?(this.state=b.CDATASequence,this.sequenceIndex=0):this.state=e===C.Dash?b.BeforeComment:b.InDeclaration}stateInDeclaration(e){(e===C.Gt||this.fastForwardTo(C.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=b.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===C.Gt||this.fastForwardTo(C.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===C.Dash?(this.state=b.InCommentLike,this.currentSequence=Y.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=b.InDeclaration}stateInSpecialComment(e){(e===C.Gt||this.fastForwardTo(C.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=b.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const n=e|32;n===Y.ScriptEnd[3]?this.startSpecial(Y.ScriptEnd,4):n===Y.StyleEnd[3]?this.startSpecial(Y.StyleEnd,4):(this.state=b.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===C.Number?this.state=b.BeforeNumericEntity:e===C.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=b.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=ue.determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const n=this.trieCurrent&ue.BinTrieFlags.VALUE_LENGTH;if(n){const i=(n>>14)-1;if(!this.allowLegacyEntity()&&e!==C.Semi)this.trieIndex+=i;else{const u=this.index-this.entityExcess+1;u>this.sectionStart&&this.emitPartial(this.sectionStart,u),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,i===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&ue.BinTrieFlags.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~ue.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(e|32)===C.LowerX?(this.entityExcess++,this.state=b.InHexEntity):(this.state=b.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){const n=this.index-this.entityExcess-1;n+2+ +(this.state===b.InHexEntity)!==this.index&&(n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.sectionStart=this.index+Number(e),this.emitCodePoint(ue.replaceCodePoint(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===C.Semi?this.emitNumericEntity(!0):On(e)?(this.entityResult=this.entityResult*10+(e-C.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===C.Semi?this.emitNumericEntity(!0):On(e)?(this.entityResult=this.entityResult*16+(e-C.Zero),this.entityExcess++):ia(e)?(this.entityResult=this.entityResult*16+((e|32)-C.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===b.Text||this.baseState===b.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===b.Text||this.state===b.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===b.InAttributeValueDq||this.state===b.InAttributeValueSq||this.state===b.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case b.Text:{this.stateText(e);break}case b.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case b.InSpecialTag:{this.stateInSpecialTag(e);break}case b.CDATASequence:{this.stateCDATASequence(e);break}case b.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case b.InAttributeName:{this.stateInAttributeName(e);break}case b.InCommentLike:{this.stateInCommentLike(e);break}case b.InSpecialComment:{this.stateInSpecialComment(e);break}case b.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case b.InTagName:{this.stateInTagName(e);break}case b.InClosingTagName:{this.stateInClosingTagName(e);break}case b.BeforeTagName:{this.stateBeforeTagName(e);break}case b.AfterAttributeName:{this.stateAfterAttributeName(e);break}case b.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case b.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case b.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case b.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case b.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case b.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case b.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case b.InDeclaration:{this.stateInDeclaration(e);break}case b.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case b.BeforeComment:{this.stateBeforeComment(e);break}case b.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case b.InNamedEntity:{this.stateInNamedEntity(e);break}case b.BeforeEntity:{this.stateBeforeEntity(e);break}case b.InHexEntity:{this.stateInHexEntity(e);break}case b.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===b.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.state===b.InCommentLike?this.currentSequence===Y.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===b.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===b.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===b.InTagName||this.state===b.BeforeAttributeName||this.state===b.BeforeAttributeValue||this.state===b.AfterAttributeName||this.state===b.InAttributeName||this.state===b.InAttributeValueSq||this.state===b.InAttributeValueDq||this.state===b.InAttributeValueNq||this.state===b.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,n){this.baseState!==b.Text&&this.baseState!==b.InSpecialTag?this.cbs.onattribdata(e,n):this.cbs.ontext(e,n)}emitCodePoint(e){this.baseState!==b.Text&&this.baseState!==b.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}const pe=new Set(["input","option","optgroup","select","button","datalist","textarea"]),q=new Set(["p"]),Nn=new Set(["thead","tbody"]),Dn=new Set(["dd","dt"]),Ln=new Set(["rt","rp"]),ua=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",q],["h1",q],["h2",q],["h3",q],["h4",q],["h5",q],["h6",q],["select",pe],["input",pe],["output",pe],["button",pe],["datalist",pe],["textarea",pe],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Dn],["dt",Dn],["address",q],["article",q],["aside",q],["blockquote",q],["details",q],["div",q],["dl",q],["fieldset",q],["figcaption",q],["figure",q],["footer",q],["form",q],["header",q],["hr",q],["main",q],["nav",q],["ol",q],["pre",q],["section",q],["table",q],["ul",q],["rt",Ln],["rp",Ln],["tbody",Nn],["tfoot",Nn]]),aa=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Mn=new Set(["math","svg"]),Rn=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),sa=/\s|\//;class un{constructor(e,n={}){var i,u,a,r,o;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(i=n.lowerCaseTags)!==null&&i!==void 0?i:!n.xmlMode,this.lowerCaseAttributeNames=(u=n.lowerCaseAttributeNames)!==null&&u!==void 0?u:!n.xmlMode,this.tokenizer=new((a=n.Tokenizer)!==null&&a!==void 0?a:bi)(this.options,this),(o=(r=this.cbs).onparserinit)===null||o===void 0||o.call(r,this)}ontext(e,n){var i,u;const a=this.getSlice(e,n);this.endIndex=n-1,(u=(i=this.cbs).ontext)===null||u===void 0||u.call(i,a),this.startIndex=n}ontextentity(e){var n,i;const u=this.tokenizer.getSectionStart();this.endIndex=u-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,ue.fromCodePoint(e)),this.startIndex=u}isVoidElement(e){return!this.options.xmlMode&&aa.has(e)}onopentagname(e,n){this.endIndex=n;let i=this.getSlice(e,n);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)}emitOpenTag(e){var n,i,u,a;this.openTagStart=this.startIndex,this.tagname=e;const r=!this.options.xmlMode&&ua.get(e);if(r)for(;this.stack.length>0&&r.has(this.stack[this.stack.length-1]);){const o=this.stack.pop();(i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,o,!0)}this.isVoidElement(e)||(this.stack.push(e),Mn.has(e)?this.foreignContext.push(!0):Rn.has(e)&&this.foreignContext.push(!1)),(a=(u=this.cbs).onopentagname)===null||a===void 0||a.call(u,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var n,i;this.startIndex=this.openTagStart,this.attribs&&((i=(n=this.cbs).onopentag)===null||i===void 0||i.call(n,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,n){var i,u,a,r,o,l;this.endIndex=n;let c=this.getSlice(e,n);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(Mn.has(c)||Rn.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((u=(i=this.cbs).onopentagname)===null||u===void 0||u.call(i,"br"),(r=(a=this.cbs).onopentag)===null||r===void 0||r.call(a,"br",{},!0),(l=(o=this.cbs).onclosetag)===null||l===void 0||l.call(o,"br",!1));else{const p=this.stack.lastIndexOf(c);if(p!==-1)if(this.cbs.onclosetag){let w=this.stack.length-p;for(;w--;)this.cbs.onclosetag(this.stack.pop(),w!==0)}else this.stack.length=p;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var n,i;const u=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===u&&((i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,u,!e),this.stack.pop())}onattribname(e,n){this.startIndex=e;const i=this.getSlice(e,n);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(e,n){this.attribvalue+=this.getSlice(e,n)}onattribentity(e){this.attribvalue+=ue.fromCodePoint(e)}onattribend(e,n){var i,u;this.endIndex=n,(u=(i=this.cbs).onattribute)===null||u===void 0||u.call(i,this.attribname,this.attribvalue,e===ae.Double?'"':e===ae.Single?"'":e===ae.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const n=e.search(sa);let i=n<0?e:e.substr(0,n);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(e,n){this.endIndex=n;const i=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){const u=this.getInstructionName(i);this.cbs.onprocessinginstruction(`!${u}`,`!${i}`)}this.startIndex=n+1}onprocessinginstruction(e,n){this.endIndex=n;const i=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){const u=this.getInstructionName(i);this.cbs.onprocessinginstruction(`?${u}`,`?${i}`)}this.startIndex=n+1}oncomment(e,n,i){var u,a,r,o;this.endIndex=n,(a=(u=this.cbs).oncomment)===null||a===void 0||a.call(u,this.getSlice(e,n-i)),(o=(r=this.cbs).oncommentend)===null||o===void 0||o.call(r),this.startIndex=n+1}oncdata(e,n,i){var u,a,r,o,l,c,p,w,k,E;this.endIndex=n;const T=this.getSlice(e,n-i);this.options.xmlMode||this.options.recognizeCDATA?((a=(u=this.cbs).oncdatastart)===null||a===void 0||a.call(u),(o=(r=this.cbs).ontext)===null||o===void 0||o.call(r,T),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((w=(p=this.cbs).oncomment)===null||w===void 0||w.call(p,`[CDATA[${T}]]`),(E=(k=this.cbs).oncommentend)===null||E===void 0||E.call(k)),this.startIndex=n+1}onend(){var e,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i],!0));}(n=(e=this.cbs).onend)===null||n===void 0||n.call(e)}reset(){var e,n,i,u;(n=(e=this.cbs).onreset)===null||n===void 0||n.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(u=(i=this.cbs).onparserinit)===null||u===void 0||u.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,n){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(e-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,n-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var n,i;if(this.ended){(i=(n=this.cbs).onerror)===null||i===void 0||i.call(n,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var n,i;if(this.ended){(i=(n=this.cbs).onerror)===null||i===void 0||i.call(n,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}var D;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(D||(D={}));function pi(t){return t.type===D.Tag||t.type===D.Script||t.type===D.Style}const mi=D.Root,yi=D.Text,gi=D.Directive,xi=D.Comment,vi=D.Script,wi=D.Style,ki=D.Tag,Ci=D.CDATA,_i=D.Doctype,ra=Object.freeze({__proto__:null,get ElementType(){return D},isTag:pi,Root:mi,Text:yi,Directive:gi,Comment:xi,Script:vi,Style:wi,Tag:ki,CDATA:Ci,Doctype:_i});class Si{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return Ni(this,e)}}class an extends Si{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class Mt extends an{constructor(){super(...arguments),this.type=D.Text}get nodeType(){return 3}}class Ei extends an{constructor(){super(...arguments),this.type=D.Comment}get nodeType(){return 8}}class Ti extends an{constructor(e,n){super(n),this.name=e,this.type=D.Directive}get nodeType(){return 1}}class sn extends Si{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class Ai extends sn{constructor(){super(...arguments),this.type=D.CDATA}get nodeType(){return 4}}class Rt extends sn{constructor(){super(...arguments),this.type=D.Root}get nodeType(){return 9}}class Ii extends sn{constructor(e,n,i=[],u=e==="script"?D.Script:e==="style"?D.Style:D.Tag){super(i),this.name=e,this.attribs=n,this.type=u}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var n,i;return{name:e,value:this.attribs[e],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[e],prefix:(i=this["x-attribsPrefix"])===null||i===void 0?void 0:i[e]}})}}function Q(t){return pi(t)}function at(t){return t.type===D.CDATA}function fe(t){return t.type===D.Text}function rn(t){return t.type===D.Comment}function oa(t){return t.type===D.Directive}function Oi(t){return t.type===D.Root}function ce(t){return Object.prototype.hasOwnProperty.call(t,"children")}function Ni(t,e=!1){let n;if(fe(t))n=new Mt(t.data);else if(rn(t))n=new Ei(t.data);else if(Q(t)){const i=e?vt(t.children):[],u=new Ii(t.name,{...t.attribs},i);i.forEach(a=>a.parent=u),t.namespace!=null&&(u.namespace=t.namespace),t["x-attribsNamespace"]&&(u["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(u["x-attribsPrefix"]={...t["x-attribsPrefix"]}),n=u}else if(at(t)){const i=e?vt(t.children):[],u=new Ai(i);i.forEach(a=>a.parent=u),n=u}else if(Oi(t)){const i=e?vt(t.children):[],u=new Rt(i);i.forEach(a=>a.parent=u),t["x-mode"]&&(u["x-mode"]=t["x-mode"]),n=u}else if(oa(t)){const i=new Ti(t.name,t.data);t["x-name"]!=null&&(i["x-name"]=t["x-name"],i["x-publicId"]=t["x-publicId"],i["x-systemId"]=t["x-systemId"]),n=i}else throw new Error(`Not implemented yet: ${t.type}`);return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function vt(t){const e=t.map(n=>Ni(n,!0));for(let n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}const $n={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class Qe{constructor(e,n,i){this.dom=[],this.root=new Rt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(i=n,n=$n),typeof e=="object"&&(n=e,e=void 0),this.callback=e??null,this.options=n??$n,this.elementCB=i??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new Rt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,n){const i=this.options.xmlMode?D.Tag:void 0,u=new Ii(e,n,void 0,i);this.addNode(u),this.tagStack.push(u)}ontext(e){const{lastNode:n}=this;if(n&&n.type===D.Text)n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const i=new Mt(e);this.addNode(i),this.lastNode=i}}oncomment(e){if(this.lastNode&&this.lastNode.type===D.Comment){this.lastNode.data+=e;return}const n=new Ei(e);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const e=new Mt(""),n=new Ai([e]);this.addNode(n),e.parent=n,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,n){const i=new Ti(e,n);this.addNode(i)}handleCallback(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e}addNode(e){const n=this.tagStack[this.tagStack.length-1],i=n.children[n.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),n.children.push(e),i&&(e.prev=i,i.next=e),e.parent=n,this.lastNode=null}}const Pn=/["&'<>$\x80-\uFFFF]/g,la=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),ca=String.prototype.codePointAt!=null?(t,e)=>t.codePointAt(e):(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function Di(t){let e="",n=0,i;for(;(i=Pn.exec(t))!==null;){const u=i.index,a=t.charCodeAt(u),r=la.get(a);r!==void 0?(e+=t.substring(n,u)+r,n=u+1):(e+=`${t.substring(n,u)}&#x${ca(t,u).toString(16)};`,n=Pn.lastIndex+=+((a&64512)===55296))}return e+t.substr(n)}function Li(t,e){return function(i){let u,a=0,r="";for(;u=t.exec(i);)a!==u.index&&(r+=i.substring(a,u.index)),r+=e.get(u[0].charCodeAt(0)),a=u.index+1;return r+i.substring(a)}}const da=Li(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),fa=Li(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),ha=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),ba=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),pa=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function ma(t){return t.replace(/"/g,"&quot;")}function ya(t,e){var n;if(!t)return;const i=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?ma:e.xmlMode||e.encodeEntities!=="utf8"?Di:da;return Object.keys(t).map(u=>{var a,r;const o=(a=t[u])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(u=(r=ba.get(u))!==null&&r!==void 0?r:u),!e.emptyAttrs&&!e.xmlMode&&o===""?u:`${u}="${i(o)}"`}).join(" ")}const Hn=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function on(t,e={}){const n="length"in t?t:[t];let i="";for(let u=0;u<n.length;u++)i+=ga(n[u],e);return i}function ga(t,e){switch(t.type){case mi:return on(t.children,e);case _i:case gi:return ka(t);case xi:return Sa(t);case Ci:return _a(t);case vi:case wi:case ki:return wa(t,e);case yi:return Ca(t,e)}}const xa=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),va=new Set(["svg","math"]);function wa(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=ha.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&xa.has(t.parent.name)&&(e={...e,xmlMode:!1})),!e.xmlMode&&va.has(t.name)&&(e={...e,xmlMode:"foreign"});let i=`<${t.name}`;const u=ya(t.attribs,e);return u&&(i+=` ${u}`),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Hn.has(t.name))?(e.xmlMode||(i+=" "),i+="/>"):(i+=">",t.children.length>0&&(i+=on(t.children,e)),(e.xmlMode||!Hn.has(t.name))&&(i+=`</${t.name}>`)),i}function ka(t){return`<${t.data}>`}function Ca(t,e){var n;let i=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&pa.has(t.parent.name))&&(i=e.xmlMode||e.encodeEntities!=="utf8"?Di(i):fa(i)),i}function _a(t){return`<![CDATA[${t.children[0].data}]]>`}function Sa(t){return`<!--${t.data}-->`}function Mi(t,e){return on(t,e)}function Ea(t,e){return ce(t)?t.children.map(n=>Mi(n,e)).join(""):""}function Ge(t){return Array.isArray(t)?t.map(Ge).join(""):Q(t)?t.name==="br"?`
2
- `:Ge(t.children):at(t)?Ge(t.children):fe(t)?t.data:""}function Je(t){return Array.isArray(t)?t.map(Je).join(""):ce(t)&&!rn(t)?Je(t.children):fe(t)?t.data:""}function $t(t){return Array.isArray(t)?t.map($t).join(""):ce(t)&&(t.type===D.Tag||at(t))?$t(t.children):fe(t)?t.data:""}function Ri(t){return ce(t)?t.children:[]}function $i(t){return t.parent||null}function Ta(t){const e=$i(t);if(e!=null)return Ri(e);const n=[t];let{prev:i,next:u}=t;for(;i!=null;)n.unshift(i),{prev:i}=i;for(;u!=null;)n.push(u),{next:u}=u;return n}function Aa(t,e){var n;return(n=t.attribs)===null||n===void 0?void 0:n[e]}function Ia(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Oa(t){return t.name}function Na(t){let{next:e}=t;for(;e!==null&&!Q(e);)({next:e}=e);return e}function Da(t){let{prev:e}=t;for(;e!==null&&!Q(e);)({prev:e}=e);return e}function Le(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){const e=t.parent.children,n=e.lastIndexOf(t);n>=0&&e.splice(n,1)}t.next=null,t.prev=null,t.parent=null}function La(t,e){const n=e.prev=t.prev;n&&(n.next=e);const i=e.next=t.next;i&&(i.prev=e);const u=e.parent=t.parent;if(u){const a=u.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function Ma(t,e){if(Le(e),e.next=null,e.parent=t,t.children.push(e)>1){const n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null}function Ra(t,e){Le(e);const{parent:n}=t,i=t.next;if(e.next=i,e.prev=t,t.next=e,e.parent=n,i){if(i.prev=e,n){const u=n.children;u.splice(u.lastIndexOf(i),0,e)}}else n&&n.children.push(e)}function $a(t,e){if(Le(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){const n=t.children[1];n.prev=e,e.next=n}else e.next=null}function Pa(t,e){Le(e);const{parent:n}=t;if(n){const i=n.children;i.splice(i.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}function st(t,e,n=!0,i=1/0){return Pi(t,Array.isArray(e)?e:[e],n,i)}function Pi(t,e,n,i){const u=[],a=[e],r=[0];for(;;){if(r[0]>=a[0].length){if(r.length===1)return u;a.shift(),r.shift();continue}const o=a[0][r[0]++];if(t(o)&&(u.push(o),--i<=0))return u;n&&ce(o)&&o.children.length>0&&(r.unshift(0),a.unshift(o.children))}}function Ha(t,e){return e.find(t)}function ln(t,e,n=!0){let i=null;for(let u=0;u<e.length&&!i;u++){const a=e[u];if(Q(a))t(a)?i=a:n&&a.children.length>0&&(i=ln(t,a.children,!0));else continue}return i}function Hi(t,e){return e.some(n=>Q(n)&&(t(n)||Hi(t,n.children)))}function Fa(t,e){const n=[],i=[e],u=[0];for(;;){if(u[0]>=i[0].length){if(i.length===1)return n;i.shift(),u.shift();continue}const a=i[0][u[0]++];Q(a)&&(t(a)&&n.push(a),a.children.length>0&&(u.unshift(0),i.unshift(a.children)))}}const Xe={tag_name(t){return typeof t=="function"?e=>Q(e)&&t(e.name):t==="*"?Q:e=>Q(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>fe(e)&&t(e.data):e=>fe(e)&&e.data===t}};function Fi(t,e){return typeof e=="function"?n=>Q(n)&&e(n.attribs[t]):n=>Q(n)&&n.attribs[t]===e}function Ba(t,e){return n=>t(n)||e(n)}function Bi(t){const e=Object.keys(t).map(n=>{const i=t[n];return Object.prototype.hasOwnProperty.call(Xe,n)?Xe[n](i):Fi(n,i)});return e.length===0?null:e.reduce(Ba)}function qa(t,e){const n=Bi(t);return n?n(e):!0}function ja(t,e,n,i=1/0){const u=Bi(t);return u?st(u,e,n,i):[]}function Ua(t,e,n=!0){return Array.isArray(e)||(e=[e]),ln(Fi("id",t),e,n)}function ve(t,e,n=!0,i=1/0){return st(Xe.tag_name(t),e,n,i)}function za(t,e,n=!0,i=1/0){return st(Xe.tag_type(t),e,n,i)}function Va(t){let e=t.length;for(;--e>=0;){const n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0){t.splice(e,1);continue}for(let i=n.parent;i;i=i.parent)if(t.includes(i)){t.splice(e,1);break}}return t}var X;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(X||(X={}));function qi(t,e){const n=[],i=[];if(t===e)return 0;let u=ce(t)?t:t.parent;for(;u;)n.unshift(u),u=u.parent;for(u=ce(e)?e:e.parent;u;)i.unshift(u),u=u.parent;const a=Math.min(n.length,i.length);let r=0;for(;r<a&&n[r]===i[r];)r++;if(r===0)return X.DISCONNECTED;const o=n[r-1],l=o.children,c=n[r],p=i[r];return l.indexOf(c)>l.indexOf(p)?o===e?X.FOLLOWING|X.CONTAINED_BY:X.FOLLOWING:o===t?X.PRECEDING|X.CONTAINS:X.PRECEDING}function Wa(t){return t=t.filter((e,n,i)=>!i.includes(e,n+1)),t.sort((e,n)=>{const i=qi(e,n);return i&X.PRECEDING?-1:i&X.FOLLOWING?1:0}),t}function cn(t){const e=et(Qa,t);return e?e.name==="feed"?Ga(e):Za(e):null}function Ga(t){var e;const n=t.children,i={type:"atom",items:ve("entry",n).map(r=>{var o;const{children:l}=r,c={media:ji(l)};K(c,"id","id",l),K(c,"title","title",l);const p=(o=et("link",l))===null||o===void 0?void 0:o.attribs.href;p&&(c.link=p);const w=le("summary",l)||le("content",l);w&&(c.description=w);const k=le("updated",l);return k&&(c.pubDate=new Date(k)),c})};K(i,"id","id",n),K(i,"title","title",n);const u=(e=et("link",n))===null||e===void 0?void 0:e.attribs.href;u&&(i.link=u),K(i,"description","subtitle",n);const a=le("updated",n);return a&&(i.updated=new Date(a)),K(i,"author","email",n,!0),i}function Za(t){var e,n;const i=(n=(e=et("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&n!==void 0?n:[],u={type:t.name.substr(0,3),id:"",items:ve("item",t.children).map(r=>{const{children:o}=r,l={media:ji(o)};K(l,"id","guid",o),K(l,"title","title",o),K(l,"link","link",o),K(l,"description","description",o);const c=le("pubDate",o)||le("dc:date",o);return c&&(l.pubDate=new Date(c)),l})};K(u,"title","title",i),K(u,"link","link",i),K(u,"description","description",i);const a=le("lastBuildDate",i);return a&&(u.updated=new Date(a)),K(u,"author","managingEditor",i,!0),u}const Ya=["url","type","lang"],Ka=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function ji(t){return ve("media:content",t).map(e=>{const{attribs:n}=e,i={medium:n.medium,isDefault:!!n.isDefault};for(const u of Ya)n[u]&&(i[u]=n[u]);for(const u of Ka)n[u]&&(i[u]=parseInt(n[u],10));return n.expression&&(i.expression=n.expression),i})}function et(t,e){return ve(t,e,!0,1)[0]}function le(t,e,n=!1){return Je(ve(t,e,n,1)).trim()}function K(t,e,n,i,u=!1){const a=le(n,i,u);a&&(t[e]=a)}function Qa(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}const Ja=Object.freeze({__proto__:null,isTag:Q,isCDATA:at,isText:fe,isComment:rn,isDocument:Oi,hasChildren:ce,getOuterHTML:Mi,getInnerHTML:Ea,getText:Ge,textContent:Je,innerText:$t,getChildren:Ri,getParent:$i,getSiblings:Ta,getAttributeValue:Aa,hasAttrib:Ia,getName:Oa,nextElementSibling:Na,prevElementSibling:Da,removeElement:Le,replaceElement:La,appendChild:Ma,append:Ra,prependChild:$a,prepend:Pa,filter:st,find:Pi,findOneChild:Ha,findOne:ln,existsOne:Hi,findAll:Fa,testElement:qa,getElements:ja,getElementById:Ua,getElementsByTagName:ve,getElementsByTagType:za,removeSubsets:Va,get DocumentPosition(){return X},compareDocumentPosition:qi,uniqueSort:Wa,getFeed:cn});function Ui(t,e){const n=new Qe(void 0,e);return new un(n,e).end(t),n.root}function zi(t,e){return Ui(t,e).children}function Xa(t,e,n){const i=new Qe(t,e,n);return new un(i,e)}const es={xmlMode:!0};function ts(t,e=es){return cn(zi(t,e))}const ns=Object.freeze({__proto__:null,parseDocument:Ui,parseDOM:zi,createDomStream:Xa,parseFeed:ts,Parser:un,DomHandler:Qe,DefaultHandler:Qe,Tokenizer:bi,ElementType:ra,getFeed:cn,DomUtils:Ja}),is=s.getAugmentedNamespace(ns);var us=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};/*!
3
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
- *
5
- * Copyright (c) 2014-2017, Jon Schlinkert.
6
- * Released under the MIT License.
7
- */function Fn(t){return Object.prototype.toString.call(t)==="[object Object]"}function as(t){var e,n;return Fn(t)===!1?!1:(e=t.constructor,e===void 0?!0:(n=e.prototype,!(Fn(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const ss=Object.freeze({__proto__:null,isPlainObject:as}),rs=s.getAugmentedNamespace(ss);var os=function(e){return ls(e)&&!cs(e)};function ls(t){return!!t&&typeof t=="object"}function cs(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||hs(t)}var ds=typeof Symbol=="function"&&Symbol.for,fs=ds?Symbol.for("react.element"):60103;function hs(t){return t.$$typeof===fs}function bs(t){return Array.isArray(t)?[]:{}}function Ee(t,e){return e.clone!==!1&&e.isMergeableObject(t)?ye(bs(t),t,e):t}function ps(t,e,n){return t.concat(e).map(function(i){return Ee(i,n)})}function ms(t,e){if(!e.customMerge)return ye;var n=e.customMerge(t);return typeof n=="function"?n:ye}function ys(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Bn(t){return Object.keys(t).concat(ys(t))}function Vi(t,e){try{return e in t}catch{return!1}}function gs(t,e){return Vi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function xs(t,e,n){var i={};return n.isMergeableObject(t)&&Bn(t).forEach(function(u){i[u]=Ee(t[u],n)}),Bn(e).forEach(function(u){gs(t,u)||(Vi(t,u)&&n.isMergeableObject(e[u])?i[u]=ms(u,n)(t[u],e[u],n):i[u]=Ee(e[u],n))}),i}function ye(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||ps,n.isMergeableObject=n.isMergeableObject||os,n.cloneUnlessOtherwiseSpecified=Ee;var i=Array.isArray(e),u=Array.isArray(t),a=i===u;return a?i?n.arrayMerge(t,e,n):xs(t,e,n):Ee(e,n)}ye.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,u){return ye(i,u,n)},{})};var vs=ye,ws=vs,Wi={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.parseSrcset=n()})(s.commonjsGlobal,function(){return function(e){function n(I){return I===" "||I===" "||I===`
8
- `||I==="\f"||I==="\r"}function i(I){var j,z=I.exec(e.substring(h));if(z)return j=z[0],h+=j.length,j}for(var u=e.length,a=/^[ \t\n\r\u000c]+/,r=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,l=/[,]+$/,c=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,w,k,E,T,v,h=0,A=[];;){if(i(r),h>=u)return A;w=i(o),k=[],w.slice(-1)===","?(w=w.replace(l,""),B()):O()}function O(){for(i(a),E="",T="in descriptor";;){if(v=e.charAt(h),T==="in descriptor")if(n(v))E&&(k.push(E),E="",T="after descriptor");else if(v===","){h+=1,E&&k.push(E),B();return}else if(v==="(")E=E+v,T="in parens";else if(v===""){E&&k.push(E),B();return}else E=E+v;else if(T==="in parens")if(v===")")E=E+v,T="in descriptor";else if(v===""){k.push(E),B();return}else E=E+v;else if(T==="after descriptor"&&!n(v))if(v===""){B();return}else T="in descriptor",h-=1;h+=1}}function B(){var I=!1,j,z,W,P,G={},V,f,y,x,S;for(P=0;P<k.length;P++)V=k[P],f=V[V.length-1],y=V.substring(0,V.length-1),x=parseInt(y,10),S=parseFloat(y),c.test(y)&&f==="w"?((j||z)&&(I=!0),x===0?I=!0:j=x):p.test(y)&&f==="x"?((j||z||W)&&(I=!0),S<0?I=!0:z=S):c.test(y)&&f==="h"?((W||z)&&(I=!0),x===0?I=!0:W=x):I=!0;I?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+V+"'."):(G.url=w,j&&(G.w=j),z&&(G.d=z),W&&(G.h=W),A.push(G))}}})})(Wi);var dn={exports:{}},U=String,Gi=function(){return{isColorSupported:!1,reset:U,bold:U,dim:U,italic:U,underline:U,inverse:U,hidden:U,strikethrough:U,black:U,red:U,green:U,yellow:U,blue:U,magenta:U,cyan:U,white:U,gray:U,bgBlack:U,bgRed:U,bgGreen:U,bgYellow:U,bgBlue:U,bgMagenta:U,bgCyan:U,bgWhite:U}};dn.exports=Gi();dn.exports.createColors=Gi;const ks={},Cs=Object.freeze({__proto__:null,default:ks}),ne=s.getAugmentedNamespace(Cs);let qn=dn.exports,jn=ne;class Te extends Error{constructor(e,n,i,u,a,r){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),u&&(this.source=u),r&&(this.plugin=r),typeof n<"u"&&typeof i<"u"&&(typeof n=="number"?(this.line=n,this.column=i):(this.line=n.line,this.column=n.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Te)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=qn.isColorSupported),jn&&e&&(n=jn(n));let i=n.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),r=String(a).length,o,l;if(e){let{bold:c,red:p,gray:w}=qn.createColors(!0);o=k=>c(p(k)),l=k=>w(k)}else o=l=c=>c;return i.slice(u,a).map((c,p)=>{let w=u+1+p,k=" "+(" "+w).slice(-r)+" | ";if(w===this.line){let E=l(k.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(k)+c+`
9
- `+E+o("^")}return" "+l(k)+c}).join(`
10
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
11
-
12
- `+e+`
13
- `),this.name+": "+this.message+e}}var fn=Te;Te.default=Te;var Me={};Me.isClean=Symbol("isClean");Me.my=Symbol("my");const Un={colon:": ",indent:" ",beforeDecl:`
14
- `,beforeRule:`
15
- `,beforeOpen:" ",beforeClose:`
16
- `,beforeComment:`
17
- `,after:`
18
- `,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function _s(t){return t[0].toUpperCase()+t.slice(1)}class Pt{constructor(e){this.builder=e}stringify(e,n){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,n)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let n=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+n+e.text+i+"*/",e)}decl(e,n){let i=this.raw(e,"between","colon"),u=e.prop+i+this.rawValue(e,"value");e.important&&(u+=e.raws.important||" !important"),n&&(u+=";"),this.builder(u,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,n){let i="@"+e.name,u=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:u&&(i+=" "),e.nodes)this.block(e,i+u);else{let a=(e.raws.between||"")+(n?";":"");this.builder(i+u+a,e)}}body(e){let n=e.nodes.length-1;for(;n>0&&e.nodes[n].type==="comment";)n-=1;let i=this.raw(e,"semicolon");for(let u=0;u<e.nodes.length;u++){let a=e.nodes[u],r=this.raw(a,"before");r&&this.builder(r),this.stringify(a,n!==u||i)}}block(e,n){let i=this.raw(e,"between","beforeOpen");this.builder(n+i+"{",e,"start");let u;e.nodes&&e.nodes.length?(this.body(e),u=this.raw(e,"after")):u=this.raw(e,"after","emptyBody"),u&&this.builder(u),this.builder("}",e,"end")}raw(e,n,i){let u;if(i||(i=n),n&&(u=e.raws[n],typeof u<"u"))return u;let a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Un[i];let r=e.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[i]<"u")return r.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let o="raw"+_s(i);this[o]?u=this[o](r,e):r.walk(l=>{if(u=l.raws[n],typeof u<"u")return!1})}return typeof u>"u"&&(u=Un[i]),r.rawCache[i]=u,u}rawSemicolon(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(n=i.raws.semicolon,typeof n<"u"))return!1}),n}rawEmptyBody(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(n=i.raws.after,typeof n<"u"))return!1}),n}rawIndent(e){if(e.raws.indent)return e.raws.indent;let n;return e.walk(i=>{let u=i.parent;if(u&&u!==e&&u.parent&&u.parent===e&&typeof i.raws.before<"u"){let a=i.raws.before.split(`
19
- `);return n=a[a.length-1],n=n.replace(/\S/g,""),!1}}),n}rawBeforeComment(e,n){let i;return e.walkComments(u=>{if(typeof u.raws.before<"u")return i=u.raws.before,i.includes(`
20
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,n){let i;return e.walkDecls(u=>{if(typeof u.raws.before<"u")return i=u.raws.before,i.includes(`
21
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(n,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeRule(e){let n;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
22
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeClose(e){let n;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return n=i.raws.after,n.includes(`
23
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let n;return e.walk(i=>{if(i.type!=="decl"&&(n=i.raws.between,typeof n<"u"))return!1}),n}rawColon(e){let n;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return n=i.raws.between.replace(/[^\s:]/g,""),!1}),n}beforeAfter(e,n){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):n==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let u=e.parent,a=0;for(;u&&u.type!=="root";)a+=1,u=u.parent;if(i.includes(`
24
- `)){let r=this.raw(e,null,"indent");if(r.length)for(let o=0;o<a;o++)i+=r}return i}rawValue(e,n){let i=e[n],u=e.raws[n];return u&&u.value===i?u.raw:i}}var Zi=Pt;Pt.default=Pt;let Ss=Zi;function Ht(t,e){new Ss(e).stringify(t)}var rt=Ht;Ht.default=Ht;let{isClean:He,my:Es}=Me,Ts=fn,As=Zi,Is=rt;function Ft(t,e){let n=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||i==="proxyCache")continue;let u=t[i],a=typeof u;i==="parent"&&a==="object"?e&&(n[i]=e):i==="source"?n[i]=u:Array.isArray(u)?n[i]=u.map(r=>Ft(r,n)):(a==="object"&&u!==null&&(u=Ft(u)),n[i]=u)}return n}class Bt{constructor(e={}){this.raws={},this[He]=!1,this[Es]=!0;for(let n in e)if(n==="nodes"){this.nodes=[];for(let i of e[n])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[n]=e[n]}error(e,n={}){if(this.source){let{start:i,end:u}=this.rangeBy(n);return this.source.input.error(e,{line:i.line,column:i.column},{line:u.line,column:u.column},n)}return new Ts(e)}warn(e,n,i){let u={node:this};for(let a in i)u[a]=i[a];return e.warn(n,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=Is){e.stringify&&(e=e.stringify);let n="";return e(this,i=>{n+=i}),n}assign(e={}){for(let n in e)this[n]=e[n];return this}clone(e={}){let n=Ft(this);for(let i in e)n[i]=e[i];return n}cloneBefore(e={}){let n=this.clone(e);return this.parent.insertBefore(this,n),n}cloneAfter(e={}){let n=this.clone(e);return this.parent.insertAfter(this,n),n}replaceWith(...e){if(this.parent){let n=this,i=!1;for(let u of e)u===this?i=!0:i?(this.parent.insertAfter(n,u),n=u):this.parent.insertBefore(n,u);i||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,n){return new As().raw(this,e,n)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,n){let i={},u=n==null;n=n||new Map;let a=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let o=this[r];if(Array.isArray(o))i[r]=o.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,n):l);else if(typeof o=="object"&&o.toJSON)i[r]=o.toJSON(null,n);else if(r==="source"){let l=n.get(o.input);l==null&&(l=a,n.set(o.input,a),a++),i[r]={inputId:l,start:o.start,end:o.end}}else i[r]=o}return u&&(i.inputs=[...n.keys()].map(r=>r.toJSON())),i}positionInside(e){let n=this.toString(),i=this.source.start.column,u=this.source.start.line;for(let a=0;a<e;a++)n[a]===`
25
- `?(i=1,u+=1):i+=1;return{line:u,column:i}}positionBy(e){let n=this.source.start;if(e.index)n=this.positionInside(e.index);else if(e.word){let i=this.toString().indexOf(e.word);i!==-1&&(n=this.positionInside(i))}return n}rangeBy(e){let n={line:this.source.start.line,column:this.source.start.column},i=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:n.line,column:n.column+1};if(e.word){let u=this.toString().indexOf(e.word);u!==-1&&(n=this.positionInside(u),i=this.positionInside(u+e.word.length))}else e.start?n={line:e.start.line,column:e.start.column}:e.index&&(n=this.positionInside(e.index)),e.end?i={line:e.end.line,column:e.end.column}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={line:n.line,column:n.column+1}),{start:n,end:i}}getProxyProcessor(){return{set(e,n,i){return e[n]===i||(e[n]=i,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&e.markDirty()),!0},get(e,n){return n==="proxyOf"?e:n==="root"?()=>e.root().toProxy():e[n]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let n=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return e}markDirty(){if(this[He]){this[He]=!1;let e=this;for(;e=e.parent;)e[He]=!1}}get proxyOf(){return this}}var ot=Bt;Bt.default=Bt;let Os=ot;class qt extends Os{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}var lt=qt;qt.default=qt;let Ns="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ds=(t,e=21)=>(n=e)=>{let i="",u=n;for(;u--;)i+=t[Math.random()*t.length|0];return i},Ls=(t=21)=>{let e="",n=t;for(;n--;)e+=Ns[Math.random()*64|0];return e};const Ms=Object.freeze({__proto__:null,nanoid:Ls,customAlphabet:Ds}),Rs=s.getAugmentedNamespace(Ms);let{SourceMapConsumer:zn,SourceMapGenerator:Vn}=ne,{existsSync:$s,readFileSync:Ps}=ne,{dirname:wt,join:Hs}=ne;function Fs(t){return me.Buffer?me.Buffer.from(t,"base64").toString():window.atob(t)}class jt{constructor(e,n){if(n.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=n.map?n.map.prev:void 0,u=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=wt(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new zn(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,n){return e?e.substr(0,n.length)===n:!1}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let n=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!n)return;let i=e.lastIndexOf(n.pop()),u=e.indexOf("*/",i);i>-1&&u>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,u)))}decodeInline(e){let n=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(u.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(n.test(e)||i.test(e))return Fs(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=wt(e),$s(e))return this.mapFile=e,Ps(e,"utf-8").toString().trim()}loadMap(e,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let i=n(e);if(i){let u=this.loadFile(i);if(!u)throw new Error("Unable to load previous source map: "+i.toString());return u}}else{if(n instanceof zn)return Vn.fromSourceMap(n).toString();if(n instanceof Vn)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return e&&(i=Hs(wt(e),i)),this.loadFile(i)}}}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}}var Yi=jt;jt.default=jt;let{SourceMapConsumer:Bs,SourceMapGenerator:qs}=ne,{fileURLToPath:Wn,pathToFileURL:Fe}=ne,{resolve:Ut,isAbsolute:zt}=ne,{nanoid:js}=Rs,kt=ne,Gn=fn,Us=Yi,Ct=Symbol("fromOffsetCache"),zs=!!(Bs&&qs),Zn=!!(Ut&&zt);class tt{constructor(e,n={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Zn||/^\w+:\/\//.test(n.from)||zt(n.from)?this.file=n.from:this.file=Ut(n.from)),Zn&&zs){let i=new Us(this.css,n);if(i.text){this.map=i;let u=i.consumer().file;!this.file&&u&&(this.file=this.mapResolve(u))}}this.file||(this.id="<input css "+js(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let n,i;if(this[Ct])i=this[Ct];else{let a=this.css.split(`
26
- `);i=new Array(a.length);let r=0;for(let o=0,l=a.length;o<l;o++)i[o]=r,r+=a[o].length+1;this[Ct]=i}n=i[i.length-1];let u=0;if(e>=n)u=i.length-1;else{let a=i.length-2,r;for(;u<a;)if(r=u+(a-u>>1),e<i[r])a=r-1;else if(e>=i[r+1])u=r+1;else{u=r;break}}return{line:u+1,col:e-i[u]+1}}error(e,n,i,u={}){let a,r,o;if(n&&typeof n=="object"){let c=n,p=i;if(typeof c.offset=="number"){let w=this.fromOffset(c.offset);n=w.line,i=w.col}else n=c.line,i=c.column;if(typeof p.offset=="number"){let w=this.fromOffset(p.offset);r=w.line,o=w.col}else r=p.line,o=p.column}else if(!i){let c=this.fromOffset(n);n=c.line,i=c.col}let l=this.origin(n,i,r,o);return l?a=new Gn(e,l.endLine===void 0?l.line:{line:l.line,column:l.column},l.endLine===void 0?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,u.plugin):a=new Gn(e,r===void 0?n:{line:n,column:i},r===void 0?i:{line:r,column:o},this.css,this.file,u.plugin),a.input={line:n,column:i,endLine:r,endColumn:o,source:this.css},this.file&&(Fe&&(a.input.url=Fe(this.file).toString()),a.input.file=this.file),a}origin(e,n,i,u){if(!this.map)return!1;let a=this.map.consumer(),r=a.originalPositionFor({line:e,column:n});if(!r.source)return!1;let o;typeof i=="number"&&(o=a.originalPositionFor({line:i,column:u}));let l;zt(r.source)?l=Fe(r.source):l=new URL(r.source,this.map.consumer().sourceRoot||Fe(this.map.mapFile));let c={url:l.toString(),line:r.line,column:r.column,endLine:o&&o.line,endColumn:o&&o.column};if(l.protocol==="file:")if(Wn)c.file=Wn(l);else throw new Error("file: protocol is not available in this PostCSS build");let p=a.sourceContentFor(r.source);return p&&(c.source=p),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ut(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let n of["hasBOM","css","file","id"])this[n]!=null&&(e[n]=this[n]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}var ct=tt;tt.default=tt;kt&&kt.registerInput&&kt.registerInput(tt);let{SourceMapConsumer:Ki,SourceMapGenerator:Ze}=ne,{dirname:Ye,resolve:Qi,relative:Ji,sep:Xi}=ne,{pathToFileURL:Yn}=ne,Vs=ct,Ws=!!(Ki&&Ze),Gs=!!(Ye&&Qi&&Ji&&Xi);class Zs{constructor(e,n,i,u){this.stringify=e,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let n=e.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let e=new Vs(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let n=this.root.nodes.length-1;n>=0;n--)e=this.root.nodes[n],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk(n=>{if(n.source){let i=n.source.input.from;if(i&&!e[i]){e[i]=!0;let u=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}applyPrevMaps(){for(let e of this.previous()){let n=this.toUrl(this.path(e.file)),i=e.root||Ye(e.file),u;this.mapOpts.sourcesContent===!1?(u=new Ki(e.text),u.sourcesContent&&(u.sourcesContent=u.sourcesContent.map(()=>null))):u=e.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(i)))}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}toBase64(e){return me.Buffer?me.Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let n=`
27
- `;this.css.includes(`\r
28
- `)&&(n=`\r
29
- `),this.css+=n+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ze.fromSourceMap(e)}else this.map=new Ze({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(e.indexOf("<")===0||/^\w+:\/\//.test(e)||this.mapOpts.absolute)return e;let n=this.opts.to?Ye(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(n=Ye(Qi(n,this.mapOpts.annotation))),e=Ji(n,e),e}toUrl(e){return Xi==="\\"&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}toFileUrl(e){if(Yn)return Yn(e).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new Ze({file:this.outputFile()});let e=1,n=1,i="<no source>",u={source:"",generated:{line:0,column:0},original:{line:0,column:0}},a,r;this.stringify(this.root,(o,l,c)=>{if(this.css+=o,l&&c!=="end"&&(u.generated.line=e,u.generated.column=n-1,l.source&&l.source.start?(u.source=this.sourcePath(l),u.original.line=l.source.start.line,u.original.column=l.source.start.column-1,this.map.addMapping(u)):(u.source=i,u.original.line=1,u.original.column=0,this.map.addMapping(u))),a=o.match(/\n/g),a?(e+=a.length,r=o.lastIndexOf(`
30
- `),n=o.length-r):n+=o.length,l&&c!=="start"){let p=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==p.last||p.raws.semicolon)&&(l.source&&l.source.end?(u.source=this.sourcePath(l),u.original.line=l.source.end.line,u.original.column=l.source.end.column-1,u.generated.line=e,u.generated.column=n-2,this.map.addMapping(u)):(u.source=i,u.original.line=1,u.original.column=0,u.generated.line=e,u.generated.column=n-1,this.map.addMapping(u)))}})}generate(){if(this.clearAnnotation(),Gs&&Ws&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,n=>{e+=n}),[e]}}}var eu=Zs;let Ys=ot;class Vt extends Ys{constructor(e){super(e),this.type="comment"}}var dt=Vt;Vt.default=Vt;let{isClean:tu,my:nu}=Me,iu=lt,uu=dt,Ks=ot,au,hn,bn,su;function ru(t){return t.map(e=>(e.nodes&&(e.nodes=ru(e.nodes)),delete e.source,e))}function ou(t){if(t[tu]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)ou(e)}class te extends Ks{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),i,u;for(;this.indexes[n]<this.proxyOf.nodes.length&&(i=this.indexes[n],u=e(this.proxyOf.nodes[i],i),u!==!1);)this.indexes[n]+=1;return delete this.indexes[n],u}walk(e){return this.each((n,i)=>{let u;try{u=e(n,i)}catch(a){throw n.addToError(a)}return u!==!1&&n.walk&&(u=n.walk(e)),u})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((i,u)=>{if(i.type==="decl"&&e.test(i.prop))return n(i,u)}):this.walk((i,u)=>{if(i.type==="decl"&&i.prop===e)return n(i,u)}):(n=e,this.walk((i,u)=>{if(i.type==="decl")return n(i,u)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((i,u)=>{if(i.type==="rule"&&e.test(i.selector))return n(i,u)}):this.walk((i,u)=>{if(i.type==="rule"&&i.selector===e)return n(i,u)}):(n=e,this.walk((i,u)=>{if(i.type==="rule")return n(i,u)}))}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((i,u)=>{if(i.type==="atrule"&&e.test(i.name))return n(i,u)}):this.walk((i,u)=>{if(i.type==="atrule"&&i.name===e)return n(i,u)}):(n=e,this.walk((i,u)=>{if(i.type==="atrule")return n(i,u)}))}walkComments(e){return this.walk((n,i)=>{if(n.type==="comment")return e(n,i)})}append(...e){for(let n of e){let i=this.normalize(n,this.last);for(let u of i)this.proxyOf.nodes.push(u)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let n of e){let i=this.normalize(n,this.first,"prepend").reverse();for(let u of i)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+i.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}insertBefore(e,n){let i=this.index(e),u=i===0?"prepend":!1,a=this.normalize(n,this.proxyOf.nodes[i],u).reverse();i=this.index(e);for(let o of a)this.proxyOf.nodes.splice(i,0,o);let r;for(let o in this.indexes)r=this.indexes[o],i<=r&&(this.indexes[o]=r+a.length);return this.markDirty(),this}insertAfter(e,n){let i=this.index(e),u=this.normalize(n,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let r of u)this.proxyOf.nodes.splice(i+1,0,r);let a;for(let r in this.indexes)a=this.indexes[r],i<a&&(this.indexes[r]=a+u.length);return this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let i in this.indexes)n=this.indexes[i],n>=e&&(this.indexes[i]=n-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,n,i){return i||(i=n,n={}),this.walkDecls(u=>{n.props&&!n.props.includes(u.prop)||n.fast&&!u.value.includes(n.fast)||(u.value=u.value.replace(e,i))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,n){if(typeof e=="string")e=ru(au(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let u of e)u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let u of e)u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new iu(e)]}else if(e.selector)e=[new hn(e)];else if(e.name)e=[new bn(e)];else if(e.text)e=[new uu(e)];else throw new Error("Unknown node type in node creation");return e.map(u=>(u[nu]||te.rebuild(u),u=u.proxyOf,u.parent&&u.parent.removeChild(u),u[tu]&&ou(u),typeof u.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(u.raws.before=n.raws.before.replace(/\S/g,"")),u.parent=this.proxyOf,u))}getProxyProcessor(){return{set(e,n,i){return e[n]===i||(e[n]=i,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0},get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...i)=>e[n](...i.map(u=>typeof u=="function"?(a,r)=>u(a.toProxy(),r):u)):n==="every"||n==="some"?i=>e[n]((u,...a)=>i(u.toProxy(),...a)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(i=>i.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}te.registerParse=t=>{au=t};te.registerRule=t=>{hn=t};te.registerAtRule=t=>{bn=t};te.registerRoot=t=>{su=t};var he=te;te.default=te;te.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,bn.prototype):t.type==="rule"?Object.setPrototypeOf(t,hn.prototype):t.type==="decl"?Object.setPrototypeOf(t,iu.prototype):t.type==="comment"?Object.setPrototypeOf(t,uu.prototype):t.type==="root"&&Object.setPrototypeOf(t,su.prototype),t[nu]=!0,t.nodes&&t.nodes.forEach(e=>{te.rebuild(e)})};let Qs=he,lu,cu;class Ae extends Qs{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new lu(new cu,this,e).stringify()}}Ae.registerLazyResult=t=>{lu=t};Ae.registerProcessor=t=>{cu=t};var pn=Ae;Ae.default=Ae;class Wt{constructor(e,n={}){if(this.type="warning",this.text=e,n.node&&n.node.source){let i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in n)this[i]=n[i]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var du=Wt;Wt.default=Wt;let Js=du;class Gt{constructor(e,n,i){this.processor=e,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let i=new Js(e,n);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}}var mn=Gt;Gt.default=Gt;const _t="'".charCodeAt(0),Kn='"'.charCodeAt(0),Be="\\".charCodeAt(0),Qn="/".charCodeAt(0),qe=`
31
- `.charCodeAt(0),Ce=" ".charCodeAt(0),je="\f".charCodeAt(0),Ue=" ".charCodeAt(0),ze="\r".charCodeAt(0),Xs="[".charCodeAt(0),er="]".charCodeAt(0),tr="(".charCodeAt(0),nr=")".charCodeAt(0),ir="{".charCodeAt(0),ur="}".charCodeAt(0),ar=";".charCodeAt(0),sr="*".charCodeAt(0),rr=":".charCodeAt(0),or="@".charCodeAt(0),Ve=/[\t\n\f\r "#'()/;[\\\]{}]/g,We=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,lr=/.[\n"'(/\\]/,Jn=/[\da-f]/i;var cr=function(e,n={}){let i=e.css.valueOf(),u=n.ignoreErrors,a,r,o,l,c,p,w,k,E,T,v=i.length,h=0,A=[],O=[];function B(){return h}function I(P){throw e.error("Unclosed "+P,h)}function j(){return O.length===0&&h>=v}function z(P){if(O.length)return O.pop();if(h>=v)return;let G=P?P.ignoreUnclosed:!1;switch(a=i.charCodeAt(h),a){case qe:case Ce:case Ue:case ze:case je:{r=h;do r+=1,a=i.charCodeAt(r);while(a===Ce||a===qe||a===Ue||a===ze||a===je);T=["space",i.slice(h,r)],h=r-1;break}case Xs:case er:case ir:case ur:case rr:case ar:case nr:{let V=String.fromCharCode(a);T=[V,V,h];break}case tr:{if(k=A.length?A.pop()[1]:"",E=i.charCodeAt(h+1),k==="url"&&E!==_t&&E!==Kn&&E!==Ce&&E!==qe&&E!==Ue&&E!==je&&E!==ze){r=h;do{if(p=!1,r=i.indexOf(")",r+1),r===-1)if(u||G){r=h;break}else I("bracket");for(w=r;i.charCodeAt(w-1)===Be;)w-=1,p=!p}while(p);T=["brackets",i.slice(h,r+1),h,r],h=r}else r=i.indexOf(")",h+1),l=i.slice(h,r+1),r===-1||lr.test(l)?T=["(","(",h]:(T=["brackets",l,h,r],h=r);break}case _t:case Kn:{o=a===_t?"'":'"',r=h;do{if(p=!1,r=i.indexOf(o,r+1),r===-1)if(u||G){r=h+1;break}else I("string");for(w=r;i.charCodeAt(w-1)===Be;)w-=1,p=!p}while(p);T=["string",i.slice(h,r+1),h,r],h=r;break}case or:{Ve.lastIndex=h+1,Ve.test(i),Ve.lastIndex===0?r=i.length-1:r=Ve.lastIndex-2,T=["at-word",i.slice(h,r+1),h,r],h=r;break}case Be:{for(r=h,c=!0;i.charCodeAt(r+1)===Be;)r+=1,c=!c;if(a=i.charCodeAt(r+1),c&&a!==Qn&&a!==Ce&&a!==qe&&a!==Ue&&a!==ze&&a!==je&&(r+=1,Jn.test(i.charAt(r)))){for(;Jn.test(i.charAt(r+1));)r+=1;i.charCodeAt(r+1)===Ce&&(r+=1)}T=["word",i.slice(h,r+1),h,r],h=r;break}default:{a===Qn&&i.charCodeAt(h+1)===sr?(r=i.indexOf("*/",h+2)+1,r===0&&(u||G?r=i.length:I("comment")),T=["comment",i.slice(h,r+1),h,r],h=r):(We.lastIndex=h+1,We.test(i),We.lastIndex===0?r=i.length-1:r=We.lastIndex-2,T=["word",i.slice(h,r+1),h,r],A.push(T),h=r);break}}return h++,T}function W(P){O.push(P)}return{back:W,nextToken:z,endOfFile:j,position:B}};let fu=he;class nt extends fu{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}var yn=nt;nt.default=nt;fu.registerAtRule(nt);let hu=he,bu,pu;class ge extends hu{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,n){let i=this.index(e);return!n&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}normalize(e,n,i){let u=super.normalize(e);if(n){if(i==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let a of u)a.raws.before=n.raws.before}return u}toResult(e={}){return new bu(new pu,this,e).stringify()}}ge.registerLazyResult=t=>{bu=t};ge.registerProcessor=t=>{pu=t};var Re=ge;ge.default=ge;hu.registerRoot(ge);let Ie={split(t,e,n){let i=[],u="",a=!1,r=0,o=!1,l="",c=!1;for(let p of t)c?c=!1:p==="\\"?c=!0:o?p===l&&(o=!1):p==='"'||p==="'"?(o=!0,l=p):p==="("?r+=1:p===")"?r>0&&(r-=1):r===0&&e.includes(p)&&(a=!0),a?(u!==""&&i.push(u.trim()),u="",a=!1):u+=p;return(n||u!=="")&&i.push(u.trim()),i},space(t){let e=[" ",`
32
- `," "];return Ie.split(t,e)},comma(t){return Ie.split(t,[","],!0)}};var mu=Ie;Ie.default=Ie;let yu=he,dr=mu;class it extends yu{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return dr.comma(this.selector)}set selectors(e){let n=this.selector?this.selector.match(/,\s*/):null,i=n?n[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}var gn=it;it.default=it;yu.registerRule(it);let fr=lt,hr=cr,br=dt,pr=yn,mr=Re,Xn=gn;const ei={empty:!0,space:!0};function yr(t){for(let e=t.length-1;e>=0;e--){let n=t[e],i=n[3]||n[2];if(i)return i}}class gr{constructor(e){this.input=e,this.root=new mr,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=hr(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}comment(e){let n=new br;this.init(n,e[2]),n.source.end=this.getPosition(e[3]||e[2]);let i=e[1].slice(2,-2);if(/^\s*$/.test(i))n.text="",n.raws.left=i,n.raws.right="";else{let u=i.match(/^(\s*)([^]*\S)(\s*)$/);n.text=u[2],n.raws.left=u[1],n.raws.right=u[3]}}emptyRule(e){let n=new Xn;this.init(n,e[2]),n.selector="",n.raws.between="",this.current=n}other(e){let n=!1,i=null,u=!1,a=null,r=[],o=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")a||(a=c),r.push(i==="("?")":"]");else if(o&&u&&i==="{")a||(a=c),r.push("}");else if(r.length===0)if(i===";")if(u){this.decl(l,o);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),n=!0;break}else i===":"&&(u=!0);else i===r[r.length-1]&&(r.pop(),r.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),r.length>0&&this.unclosedBracket(a),n&&u){if(!o)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}rule(e){e.pop();let n=new Xn;this.init(n,e[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(n,"selector",e),this.current=n}decl(e,n){let i=new fr;this.init(i,e[0][2]);let u=e[e.length-1];for(u[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(u[3]||u[2]||yr(e));e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){i.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),i.raws.between+=a[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let r=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()==="!important"){i.important=!0;let p=this.stringFrom(e,c);p=this.spacesFromEnd(e)+p,p!==" !important"&&(i.raws.important=p);break}else if(a[1].toLowerCase()==="important"){let p=e.slice(0),w="";for(let k=c;k>0;k--){let E=p[k][0];if(w.trim().indexOf("!")===0&&E!=="space")break;w=p.pop()[1]+w}w.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=w,e=p)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(i,"value",r.concat(e),n),i.value.includes(":")&&!n&&this.checkMissedSemicolon(e)}atrule(e){let n=new pr;n.name=e[1].slice(1),n.name===""&&this.unnamedAtrule(n,e),this.init(n,e[2]);let i,u,a,r=!1,o=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){n.source.end=this.getPosition(e[2]),this.semicolon=!0;break}else if(i==="{"){o=!0;break}else if(i==="}"){if(l.length>0){for(a=l.length-1,u=l[a];u&&u[0]==="space";)u=l[--a];u&&(n.source.end=this.getPosition(u[3]||u[2]))}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(n.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(n,"params",l),r&&(e=l[l.length-1],n.source.end=this.getPosition(e[3]||e[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let n=this.input.fromOffset(e);return{offset:e,line:n.line,column:n.col}}init(e,n){this.current.push(e),e.source={start:this.getPosition(n),input:this.input},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}raw(e,n,i,u){let a,r,o=i.length,l="",c=!0,p,w;for(let k=0;k<o;k+=1)a=i[k],r=a[0],r==="space"&&k===o-1&&!u?c=!1:r==="comment"?(w=i[k-1]?i[k-1][0]:"empty",p=i[k+1]?i[k+1][0]:"empty",!ei[w]&&!ei[p]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){let k=i.reduce((E,T)=>E+T[1],"");e.raws[n]={value:l,raw:k}}e[n]=l}spacesAndCommentsFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],!(n!=="space"&&n!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let n,i="";for(;e.length&&(n=e[0][0],!(n!=="space"&&n!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let n,i="";for(;e.length&&(n=e[e.length-1][0],n==="space");)i=e.pop()[1]+i;return i}stringFrom(e,n){let i="";for(let u=n;u<e.length;u++)i+=e[u][1];return e.splice(n,e.length-n),i}colon(e){let n=0,i,u,a;for(let[r,o]of e.entries()){if(i=o,u=i[0],u==="("&&(n+=1),u===")"&&(n-=1),n===0&&u===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return r}a=i}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let n=this.colon(e);if(n===!1)return;let i=0,u;for(let a=n-1;a>=0&&(u=e[a],!(u[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",u[0]==="word"?u[3]+1:u[2])}}var xr=gr;let vr=he,wr=xr,kr=ct;function ut(t,e){let n=new kr(t,e),i=new wr(n);try{i.parse()}catch(u){throw u}return i.root}var xn=ut;ut.default=ut;vr.registerParse(ut);let{isClean:ie,my:Cr}=Me,_r=eu,Sr=rt,Er=he,Tr=pn,ti=mn,Ar=xn,Ir=Re;const Or={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},Nr={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},Dr={postcssPlugin:!0,prepare:!0,Once:!0},xe=0;function _e(t){return typeof t=="object"&&typeof t.then=="function"}function gu(t){let e=!1,n=Or[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,xe,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,xe,n+"Exit"]:[n,n+"Exit"]}function ni(t){let e;return t.type==="document"?e=["Document",xe,"DocumentExit"]:t.type==="root"?e=["Root",xe,"RootExit"]:e=gu(t),{node:t,events:e,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Zt(t){return t[ie]=!1,t.nodes&&t.nodes.forEach(e=>Zt(e)),t}let Yt={};class de{constructor(e,n,i){this.stringified=!1,this.processed=!1;let u;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))u=Zt(n);else if(n instanceof de||n instanceof ti)u=Zt(n.root),n.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{let a=Ar;i.syntax&&(a=i.syntax.parse),i.parser&&(a=i.parser),a.parse&&(a=a.parse);try{u=a(n,i)}catch(r){this.processed=!0,this.error=r}u&&!u[Cr]&&Er.rebuild(u)}this.result=new ti(e,u,i),this.helpers={...Yt,result:this.result,postcss:Yt},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,n){return this.async().then(e,n)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(_e(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ie];)e[ie]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=Sr;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let u=new _r(n,this.result.root,this.result.opts).generate();return this.result.css=u[0],this.result.map=u[1],this.result}walkSync(e){e[ie]=!0;let n=gu(e);for(let i of n)if(i===xe)e.nodes&&e.each(u=>{u[ie]||this.walkSync(u)});else{let u=this.listeners[i];if(u&&this.visitSync(u,e.toProxy()))return}}visitSync(e,n){for(let[i,u]of e){this.result.lastPlugin=i;let a;try{a=u(n,this.helpers)}catch(r){throw this.handleError(r,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(_e(a))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return _e(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let i=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin&&(e.plugin=i.postcssPlugin,e.setMessage())}catch(u){console&&console.error&&console.error(u)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],i=this.runOnRoot(n);if(_e(i))try{await i}catch(u){throw this.handleError(u)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ie];){e[ie]=!0;let n=[ni(e)];for(;n.length>0;){let i=this.visitTick(n);if(_e(i))try{await i}catch(u){let a=n[n.length-1].node;throw this.handleError(u,a)}}}if(this.listeners.OnceExit)for(let[n,i]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let u=e.nodes.map(a=>i(a,this.helpers));await Promise.all(u)}else await i(e,this.helpers)}catch(u){throw this.handleError(u)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(n,i,u)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([n,u])};for(let n of this.plugins)if(typeof n=="object")for(let i in n){if(!Nr[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Dr[i])if(typeof n[i]=="object")for(let u in n[i])u==="*"?e(n,i,n[i][u]):e(n,i+"-"+u.toLowerCase(),n[i][u]);else typeof n[i]=="function"&&e(n,i,n[i])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let n=e[e.length-1],{node:i,visitors:u}=n;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(u.length>0&&n.visitorIndex<u.length){let[r,o]=u[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===u.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=r;try{return o(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(n.iterator!==0){let r=n.iterator,o;for(;o=i.nodes[i.indexes[r]];)if(i.indexes[r]+=1,!o[ie]){o[ie]=!0,e.push(ni(o));return}n.iterator=0,delete i.indexes[r]}let a=n.events;for(;n.eventIndex<a.length;){let r=a[n.eventIndex];if(n.eventIndex+=1,r===xe){i.nodes&&i.nodes.length&&(i[ie]=!0,n.iterator=i.getIterator());return}else if(this.listeners[r]){n.visitors=this.listeners[r];return}}e.pop()}}de.registerPostcss=t=>{Yt=t};var xu=de;de.default=de;Ir.registerLazyResult(de);Tr.registerLazyResult(de);let Lr=eu,Mr=rt,Rr=xn;const $r=mn;class Kt{constructor(e,n,i){n=n.toString(),this.stringified=!1,this._processor=e,this._css=n,this._opts=i,this._map=void 0;let u,a=Mr;this.result=new $r(this._processor,u,this._opts),this.result.css=n;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let o=new Lr(a,u,this._opts,n);if(o.isMap()){let[l,c]=o.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,n=Rr;try{e=n(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,n){return this.async().then(e,n)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}var Pr=Kt;Kt.default=Kt;let Hr=Pr,Fr=xu,Br=pn,qr=Re;class Oe{constructor(e=[]){this.version="8.4.21",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,n={}){return this.plugins.length===0&&typeof n.parser>"u"&&typeof n.stringifier>"u"&&typeof n.syntax>"u"?new Hr(this,e,n):new Fr(this,e,n)}normalize(e){let n=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))n=n.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)n.push(i);else if(typeof i=="function")n.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return n}}var jr=Oe;Oe.default=Oe;qr.registerProcessor(Oe);Br.registerProcessor(Oe);let Ur=lt,zr=Yi,Vr=dt,Wr=yn,Gr=ct,Zr=Re,Yr=gn;function Ne(t,e){if(Array.isArray(t))return t.map(u=>Ne(u));let{inputs:n,...i}=t;if(n){e=[];for(let u of n){let a={...u,__proto__:Gr.prototype};a.map&&(a.map={...a.map,__proto__:zr.prototype}),e.push(a)}}if(i.nodes&&(i.nodes=t.nodes.map(u=>Ne(u,e))),i.source){let{inputId:u,...a}=i.source;i.source=a,u!=null&&(i.source.input=e[u])}if(i.type==="root")return new Zr(i);if(i.type==="decl")return new Ur(i);if(i.type==="rule")return new Yr(i);if(i.type==="comment")return new Vr(i);if(i.type==="atrule")return new Wr(i);throw new Error("Unknown node type: "+t.type)}var Kr=Ne;Ne.default=Ne;let Qr=fn,vu=lt,Jr=xu,Xr=he,vn=jr,eo=rt,to=Kr,wu=pn,no=du,ku=dt,Cu=yn,io=mn,uo=ct,ao=xn,so=mu,_u=gn,Su=Re,ro=ot;function F(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new vn(t)}F.plugin=function(e,n){let i=!1;function u(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
33
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),me.process.env.LANG&&me.process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
34
- https://www.w3ctech.com/topic/2226`));let o=n(...r);return o.postcssPlugin=e,o.postcssVersion=new vn().version,o}let a;return Object.defineProperty(u,"postcss",{get(){return a||(a=u()),a}}),u.process=function(r,o,l){return F([u(l)]).process(r,o)},u};F.stringify=eo;F.parse=ao;F.fromJSON=to;F.list=so;F.comment=t=>new ku(t);F.atRule=t=>new Cu(t);F.decl=t=>new vu(t);F.rule=t=>new _u(t);F.root=t=>new Su(t);F.document=t=>new wu(t);F.CssSyntaxError=Qr;F.Declaration=vu;F.Container=Xr;F.Processor=vn;F.Document=wu;F.Comment=ku;F.Warning=no;F.AtRule=Cu;F.Result=io;F.Input=uo;F.Rule=_u;F.Root=Su;F.Node=ro;Jr.registerPostcss(F);var oo=F;F.default=F;const lo=is,ii=us,{isPlainObject:co}=rs,ui=ws,fo=Wi.exports,{parse:ho}=oo,bo=["img","audio","video","picture","svg","object","map","iframe","embed"],po=["script","style"];function Se(t,e){t&&Object.keys(t).forEach(function(n){e(t[n],n)})}function oe(t,e){return{}.hasOwnProperty.call(t,e)}function ai(t,e){const n=[];return Se(t,function(i){e(i)&&n.push(i)}),n}function mo(t){for(const e in t)if(oe(t,e))return!1;return!0}function yo(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var go=De;const xo=/^[^\0\t\n\f\r /<=>]+$/;function De(t,e,n){if(t==null)return"";typeof t=="number"&&(t=t.toString());let i="",u="";function a(d,g){const m=this;this.tag=d,this.attribs=g||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(h.length){const _=h[h.length-1];_.text+=m.text}},this.updateParentNodeMediaChildren=function(){h.length&&bo.includes(this.tag)&&h[h.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},De.defaults,e),e.parser=Object.assign({},vo,e.parser);const r=function(d){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(d)>-1};po.forEach(function(d){r(d)&&!e.allowVulnerableTags&&console.warn(`
35
-
36
- ⚠️ Your \`allowedTags\` option includes, \`${d}\`, which is inherently
37
- vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
38
- Or, to disable this warning, add the \`allowVulnerableTags\` option
39
- and ensure you are accounting for this risk.
40
-
41
- `)});const o=e.nonTextTags||["script","style","textarea","option"];let l,c;e.allowedAttributes&&(l={},c={},Se(e.allowedAttributes,function(d,g){l[g]=[];const m=[];d.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?m.push(ii(_).replace(/\\\*/g,".*")):l[g].push(_)}),m.length&&(c[g]=new RegExp("^("+m.join("|")+")$"))}));const p={},w={},k={};Se(e.allowedClasses,function(d,g){if(l&&(oe(l,g)||(l[g]=[]),l[g].push("class")),p[g]=d,Array.isArray(d)){const m=[];p[g]=[],k[g]=[],d.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?m.push(ii(_).replace(/\\\*/g,".*")):_ instanceof RegExp?k[g].push(_):p[g].push(_)}),m.length&&(w[g]=new RegExp("^("+m.join("|")+")$"))}});const E={};let T;Se(e.transformTags,function(d,g){let m;typeof d=="function"?m=d:typeof d=="string"&&(m=De.simpleTransform(d)),g==="*"?T=m:E[g]=m});let v,h,A,O,B,I,j=!1;W();const z=new lo.Parser({onopentag:function(d,g){if(e.enforceHtmlBoundary&&d==="html"&&W(),B){I++;return}const m=new a(d,g);h.push(m);let _=!1;const N=!!m.text;let H;if(oe(E,d)&&(H=E[d](d,g),m.attribs=g=H.attribs,H.text!==void 0&&(m.innerText=H.text),d!==H.tagName&&(m.name=d=H.tagName,O[v]=H.tagName)),T&&(H=T(d,g),m.attribs=g=H.attribs,d!==H.tagName&&(m.name=d=H.tagName,O[v]=H.tagName)),(!r(d)||e.disallowedTagsMode==="recursiveEscape"&&!mo(A)||e.nestingLimit!=null&&v>=e.nestingLimit)&&(_=!0,A[v]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(d)!==-1&&(B=!0,I=1),A[v]=!0),v++,_){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")return;u=i,i=""}i+="<"+d,d==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(m.innerText=""),(!l||oe(l,d)||l["*"])&&Se(g,function(L,$){if(!xo.test($)){delete m.attribs[$];return}if(L===""&&!e.allowedEmptyAttributes.includes($)&&(e.nonBooleanAttributes.includes($)||e.nonBooleanAttributes.includes("*"))){delete m.attribs[$];return}let we=!1;if(!l||oe(l,d)&&l[d].indexOf($)!==-1||l["*"]&&l["*"].indexOf($)!==-1||oe(c,d)&&c[d].test($)||c["*"]&&c["*"].test($))we=!0;else if(l&&l[d]){for(const M of l[d])if(co(M)&&M.name&&M.name===$){we=!0;let R="";if(M.multiple===!0){const se=L.split(" ");for(const J of se)M.values.indexOf(J)!==-1&&(R===""?R=J:R+=" "+J)}else M.values.indexOf(L)>=0&&(R=L);L=R}}if(we){if(e.allowedSchemesAppliedToAttributes.indexOf($)!==-1&&G(d,L)){delete m.attribs[$];return}if(d==="script"&&$==="src"){let M=!0;try{const R=V(L);if(e.allowedScriptHostnames||e.allowedScriptDomains){const se=(e.allowedScriptHostnames||[]).find(function(Z){return Z===R.url.hostname}),J=(e.allowedScriptDomains||[]).find(function(Z){return R.url.hostname===Z||R.url.hostname.endsWith(`.${Z}`)});M=se||J}}catch{M=!1}if(!M){delete m.attribs[$];return}}if(d==="iframe"&&$==="src"){let M=!0;try{const R=V(L);if(R.isRelativeUrl)M=oe(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const se=(e.allowedIframeHostnames||[]).find(function(Z){return Z===R.url.hostname}),J=(e.allowedIframeDomains||[]).find(function(Z){return R.url.hostname===Z||R.url.hostname.endsWith(`.${Z}`)});M=se||J}}catch{M=!1}if(!M){delete m.attribs[$];return}}if($==="srcset")try{let M=fo(L);if(M.forEach(function(R){G("srcset",R.url)&&(R.evil=!0)}),M=ai(M,function(R){return!R.evil}),M.length)L=yo(ai(M,function(R){return!R.evil})),m.attribs[$]=L;else{delete m.attribs[$];return}}catch{delete m.attribs[$];return}if($==="class"){const M=p[d],R=p["*"],se=w[d],J=k[d],Z=w["*"],be=[se,Z].concat(J).filter(function(ke){return ke});if(M&&R?L=S(L,ui(M,R),be):L=S(L,M||R,be),!L.length){delete m.attribs[$];return}}if($==="style"){if(e.parseStyleAttributes)try{const M=ho(d+" {"+L+"}",{map:!1}),R=f(M,e.allowedStyles);if(L=y(R),L.length===0){delete m.attribs[$];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+d+" {"+L+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete m.attribs[$];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}i+=" "+$,L&&L.length?i+='="'+P(L,!0)+'"':e.allowedEmptyAttributes.includes($)&&(i+='=""')}else delete m.attribs[$]}),e.selfClosing.indexOf(d)!==-1?i+=" />":(i+=">",m.innerText&&!N&&!e.textFilter&&(i+=P(m.innerText),j=!0)),_&&(i=u+P(i),u="")},ontext:function(d){if(B)return;const g=h[h.length-1];let m;if(g&&(m=g.tag,d=g.innerText!==void 0?g.innerText:d),e.disallowedTagsMode==="completelyDiscard"&&!r(m))d="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(m==="script"||m==="style"))i+=d;else{const _=P(d,!1);e.textFilter&&!j?i+=e.textFilter(_,m):j||(i+=_)}if(h.length){const _=h[h.length-1];_.text+=d}},onclosetag:function(d,g){if(B)if(I--,!I)B=!1;else return;const m=h.pop();if(!m)return;if(m.tag!==d){h.push(m);return}B=e.enforceHtmlBoundary?d==="html":!1,v--;const _=A[v];if(_){if(delete A[v],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){m.updateParentNodeText();return}u=i,i=""}if(O[v]&&(d=O[v],delete O[v]),e.exclusiveFilter&&e.exclusiveFilter(m)){i=i.substr(0,m.tagPosition);return}if(m.updateParentNodeMediaChildren(),m.updateParentNodeText(),e.selfClosing.indexOf(d)!==-1||g&&!r(d)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){_&&(i=u,u="");return}i+="</"+d+">",_&&(i=u+P(i),u=""),j=!1}},e.parser);return z.write(t),z.end(),i;function W(){i="",v=0,h=[],A={},O={},B=!1,I=0}function P(d,g){return typeof d!="string"&&(d=d+""),e.parser.decodeEntities&&(d=d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),g&&(d=d.replace(/"/g,"&quot;"))),d=d.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),g&&(d=d.replace(/"/g,"&quot;")),d}function G(d,g){for(g=g.replace(/[\x00-\x20]+/g,"");;){const N=g.indexOf("<!--");if(N===-1)break;const H=g.indexOf("-->",N+4);if(H===-1)break;g=g.substring(0,N)+g.substring(H+3)}const m=g.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!m)return g.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const _=m[1].toLowerCase();return oe(e.allowedSchemesByTag,d)?e.allowedSchemesByTag[d].indexOf(_)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(_)===-1}function V(d){if(d=d.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),d.startsWith("relative:"))throw new Error("relative: exploit attempt");let g="relative://relative-site";for(let N=0;N<100;N++)g+=`/${N}`;const m=new URL(d,g);return{isRelativeUrl:m&&m.hostname==="relative-site"&&m.protocol==="relative:",url:m}}function f(d,g){if(!g)return d;const m=d.nodes[0];let _;return g[m.selector]&&g["*"]?_=ui(g[m.selector],g["*"]):_=g[m.selector]||g["*"],_&&(d.nodes[0].nodes=m.nodes.reduce(x(_),[])),d}function y(d){return d.nodes[0].nodes.reduce(function(g,m){return g.push(`${m.prop}:${m.value}${m.important?" !important":""}`),g},[]).join(";")}function x(d){return function(g,m){return oe(d,m.prop)&&d[m.prop].some(function(N){return N.test(m.value)})&&g.push(m),g}}function S(d,g,m){return g?(d=d.split(/\s+/),d.filter(function(_){return g.indexOf(_)!==-1||m.some(function(N){return N.test(_)})}).join(" ")):d}}const vo={decodeEntities:!0};De.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};De.simpleTransform=function(t,e,n){return n=n===void 0?!0:n,e=e||{},function(i,u){let a;if(n)for(a in e)u[a]=e[a];else u=e;return{tagName:t,attribs:u}}};const wn=go,wo=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-description{display:flex;flex-direction:column;gap:4px}.nylas-event-description label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-description label span.label-icon{margin-left:4px}.nylas-event-description label span.label-icon tooltip-component{display:flex}.nylas-event-description textarea{padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px;border:1px solid var(--nylas-base-200)}.nylas-event-description textarea::-webkit-resizer{display:none}',ko=wo;var Co=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},St=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const kn=class{constructor(t){var e,n;s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.eventDescription=void 0,this.name="description",this.description=this.eventDescription||((n=(e=this.selectedConfiguration)==null?void 0:e.event_booking)==null?void 0:n.description)||""}elementNameChangedHandler(t){s.debug("nylas-event-description","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedConfigurationChangedHandler(t,e){var n,i;s.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",t,e),(n=t==null?void 0:t.event_booking)!=null&&n.description&&(this.description=(i=t==null?void 0:t.event_booking)==null?void 0:i.description)}connectedCallback(){s.debug("nylas-event-description","connectedCallback")}componentWillLoad(){s.debug("nylas-event-description","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){s.debug("nylas-event-description","componentDidLoad")}disconnectedCallback(){s.debug("nylas-event-description","disconnectedCallback")}handleChange(t){const e=wn(t.target.value);this.description=e,this.internals.setFormValue(e,"description"),this.valueChanged.emit({value:e,name:this.name})}render(){return s.h(s.Host,{key:"69661d006f9489eefb801c70b5d37c3d9c49a3c9"},s.h("div",{key:"d1d63fe351837961df7b28eee8e60426034263c1",class:"nylas-event-description",part:"nedesc"},s.h("label",{key:"f6ca5fb6e820da2da1ec2eded88de9ccdae7a270",htmlFor:"description"},"Event description",s.h("span",{key:"6aaf1b9c115ed02f3a52e7780348a3274c9da5c1",class:"label-icon"},s.h("tooltip-component",{key:"1dd382c120d00872a9bf490e7dcb8491ea5a3d24"},s.h("info-icon",{key:"15414206a1ca6e5f809c467d77d6ed3f349aa07d",slot:"tooltip-icon"}),s.h("span",{key:"25532a0e1dbfd59b9ba2ee9ac29b05c79fd8b67e",slot:"tooltip-content"},"Provide any additional details for your event.")))),s.h("textarea",{key:"680ae5fe6a24fd709928029fd21cd545d19eb961",id:"description",part:"nedesc__textarea",name:"description",value:this.description,maxlength:"8192",onInput:t=>this.handleChange(t)})))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"]}}};Co([ee.RegisterComponent({name:"nylas-event-description",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),St("design:type",Function),St("design:paramtypes",[]),St("design:returntype",void 0)],kn.prototype,"render",null);kn.style=ko;const _o=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-duration{display:flex;flex-direction:column;gap:4px}.nylas-event-duration label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-duration label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-duration label span.label-icon{margin-left:4px}.nylas-event-duration label span.label-icon tooltip-component{display:flex}.nylas-event-duration__wrapper{display:flex;align-items:center;gap:0.5rem}.nylas-event-duration__wrapper input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200);font-family:var(--nylas-font-family);font-size:16px;line-height:24px;width:48px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button){border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px}.nylas-event-duration__wrapper select-dropdown::part(sd_dropdown-button-selected-label){font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',So=_o;var Eo=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},Et=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Cn=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.name="duration",this.eventDurationMinutes=void 0,this.duration=this.eventDurationMinutes?this.eventDurationMinutes>=60?this.eventDurationMinutes/60:this.eventDurationMinutes:5,this.durationMinutes=this.eventDurationMinutes??5,this.durationIncrement=this.eventDurationMinutes&&this.eventDurationMinutes>=60?60:1}elementNameChangedHandler(t){s.debug("nylas-event-duration","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedConfigurationChangedHandler(t){var n;const e=(n=t==null?void 0:t.availability)==null?void 0:n.duration_minutes;e&&(this.duration=e>=60?e/60:e,this.durationMinutes=e??5,this.durationIncrement=e>=60?60:1)}durationMinutesChangedHandler(t,e){s.debug("nylas-event-duration","durationMinutesChangedHandler",t),t!==e&&this.valueChanged.emit({value:t.toString(),name:this.name})}connectedCallback(){s.debug("nylas-event-duration","connectedCallback")}componentWillLoad(){s.debug("nylas-event-duration","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){s.debug("nylas-event-duration","componentDidLoad"),this.internals.setFormValue(this.durationMinutes.toString(),"duration")}disconnectedCallback(){s.debug("nylas-event-duration","disconnectedCallback")}handleChange(t){this.duration=t.target.value,this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),this.name)}handleBlur(){(this.duration===null||this.duration===void 0)&&this.durationIncrement===1&&(this.duration=5),(this.duration<=0||this.duration===null||this.duration===void 0)&&this.durationIncrement===60&&(this.duration=1),this.duration<5&&this.durationIncrement===1&&(this.duration=5),this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),"duration")}selectedOptionChangedHandler(t){s.debug("nylas-calendar-picker","selectedOptionChangedHandler",t.detail);const{value:e}=t.detail;this.durationIncrement=parseInt(e),this.durationIncrement===1?this.duration=5:this.duration=1,this.durationMinutes=this.duration*this.durationIncrement,this.internals.setFormValue(this.durationMinutes.toString(),"duration")}render(){const t=[{value:1,label:"minutes"},{value:60,label:"hours"}];return s.h(s.Host,{key:"222965e76af408c0b06183e8e888b73578adb158"},s.h("div",{key:"decd15dbfd386cebc4efc880a0a8fb7fc8fc4a1a",class:"nylas-event-duration",part:"ned"},s.h("label",{key:"655d4bd8aad28138573516d1a409ff4ad7f90527",htmlFor:"duration"},"Event duration",s.h("span",{key:"f53fc2692fa1b4d3265e946ddf313a8e432897d8",class:"required"},"*"),s.h("span",{key:"04f0110989f72e20a836ec8552801b87fc8cc6f8",class:"label-icon"},s.h("tooltip-component",{key:"cead8ac1aa4ca82db690a38306a8987e3b5759e0"},s.h("info-icon",{key:"0105ced6a6b7227b7ac39f68869e6f9fed5fc386",slot:"tooltip-icon"}),s.h("span",{key:"3a1a73f76723e6f0ba4b4c45a08a839f26b8c25d",slot:"tooltip-content"},"Set the duration of your event.")))),s.h("div",{key:"7c85aebc13daa31d440d6b7ec4f2104f64ac4407",class:"nylas-event-duration__wrapper"},s.h("input",{key:"255e4574db650850cf3396509be0dfdac65175bb",type:"number",part:"ned_input",id:"duration",name:"duration",value:this.duration,onBlur:()=>this.handleBlur(),onInput:e=>this.handleChange(e),min:5}),s.h("select-dropdown",{key:"a19d552e5e537d9ebeffa1890f2ccafa61a1f761",name:"event-duration",options:t,exportparts:"sd__dropdown: ned__dropdown, sd__dropdown-button: ned__dropdown-button, sd__dropdown-content: ned__dropdown-content",defaultSelectedOption:t.find(e=>e.value==this.durationIncrement)??t[0],withSearch:!1}))))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],durationMinutes:["durationMinutesChangedHandler"]}}};Eo([ee.RegisterComponent({name:"nylas-event-duration",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),Et("design:type",Function),Et("design:paramtypes",[]),Et("design:returntype",void 0)],Cn.prototype,"render",null);Cn.style=So;const To=':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-info__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-info__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-info__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-info__block{display:flex;justify-content:space-between;gap:0.5rem}',Ao=To;var Io=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},Tt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const _n=class{constructor(t){s.registerInstance(this,t),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals)}connectedCallback(){s.debug("nylas-event-info","connectedCallback")}componentWillLoad(){s.debug("nylas-event-info","componentWillLoad")}componentDidLoad(){s.debug("nylas-event-info","componentDidLoad")}disconnectedCallback(){s.debug("nylas-event-info","disconnectedCallback")}render(){return s.h(s.Host,{key:"e606a689e2b20dcddcbdbf42c44933953cb0c9c7"},s.h("nylas-form-card",{key:"f3827f8c8756d131ea0eeca39d8dcae783b58629"},s.h("h1",{key:"6deb1da623b3c6ede66653201476647d30b8f7e5",slot:"header-title",class:"nylas-event-info__title"},"Event information"),s.h("h3",{key:"f027a8e56e59fba0e8ec3e4bfcbfda6419c5a6dc",slot:"header-subtitle",class:"nylas-event-info__subtitle"},"Enter all event information."),s.h("div",{key:"0124599b210dc4e9395cdc75dd964132e98736b9",slot:"content",class:"nylas-event-info__content"},s.h("slot",{key:"a227128a7e6f7f8b8c52bd0bd24ce672979fef30",name:"inputs"}))))}static get formAssociated(){return!0}};Io([ee.RegisterComponent({name:"nylas-event-info",eventToProps:{},fireRegisterEvent:!0}),Tt("design:type",Function),Tt("design:paramtypes",[]),Tt("design:returntype",void 0)],_n.prototype,"render",null);_n.style=Ao;const Oo=':host{display:block;margin:1rem;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-limits__title{color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:600;line-height:20px;margin:0;text-align:left}.nylas-event-limits__subtitle{color:var(--nylas-base-600);font-size:14px;font-style:normal;font-weight:400;line-height:20px;margin:0.25rem 0px 0px;text-align:left}.nylas-event-limits__content{padding:1rem;display:flex;flex-direction:column;gap:1rem}.nylas-event-limits__block{display:flex;justify-content:space-between;gap:0.5rem}',No=Oo;var Do=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},At=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Sn=class{constructor(t){s.registerInstance(this,t),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals)}connectedCallback(){s.debug("nylas-event-limits","connectedCallback")}componentWillLoad(){s.debug("nylas-event-limits","componentWillLoad")}componentDidLoad(){s.debug("nylas-event-limits","componentDidLoad")}disconnectedCallback(){s.debug("nylas-event-limits","disconnectedCallback")}render(){return s.h(s.Host,{key:"56a1396f87f4d81f1a3912ec810e23a9dbed965b"},s.h("nylas-form-card",{key:"2007e2fe058e39bb8c276d2995b4b8075d9ed82f"},s.h("h1",{key:"e57bc40b4b369d64cdb2b6c97009dea3f141716f",slot:"header-title",class:"nylas-event-limits__title"},"Set event limits"),s.h("h3",{key:"beb61ca97cfd3dca960e78e5f64abca4ace7777b",slot:"header-subtitle",class:"nylas-event-limits__subtitle"},"Customize event limits for the event."),s.h("div",{key:"3912501d3e927fcbc6e8663f9149c66ce54fbd0e",slot:"content",class:"nylas-event-limits__content"},s.h("slot",{key:"a0902c2edc5ef540547452d5f1448ba26547af17",name:"inputs"}))))}static get formAssociated(){return!0}};Do([ee.RegisterComponent({name:"nylas-event-limits",eventToProps:{},fireRegisterEvent:!0}),At("design:type",Function),At("design:paramtypes",[]),At("design:returntype",void 0)],Sn.prototype,"render",null);Sn.style=No;const Lo=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-title{display:flex;flex-direction:column;gap:4px;position:relative;text-align:left}.nylas-event-title div.title{padding:12px 16px;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);overflow:scroll;white-space:nowrap;scrollbar-width:thin}.nylas-event-title div.title::-webkit-scrollbar{width:6px;height:6px}.nylas-event-title div.title.error{border-color:var(--nylas-error);outline:none}.nylas-event-title input{padding:12px 16px;border-width:1;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-event-title span.help-text{color:var(--nylas-base-800);font-size:14px;font-style:normal;font-weight:400;line-height:21px}.nylas-event-title span.error-message{color:var(--nylas-error)}.nylas-event-title label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-title label span.required{color:var(--nylas-error, #cc4841)}.nylas-event-title label span.label-icon{margin-left:4px}.nylas-event-title label span.label-icon tooltip-component{display:flex}.highlighted-tag{background-color:var(--nylas-base-200);border-radius:var(--nylas-border-radius);padding:5px;margin-left:4px}.token-options{display:block;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;top:80px;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}@media screen and (max-width: 768px){.token-options{right:0;width:325px;max-width:unset}}.token-options ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px;margin:0}.token-options ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.token-options ul li .token-label{display:flex;flex-direction:column;font-weight:400}.token-options ul li .token-label .token{color:var(--nylas-abse-900);font-size:16px;line-height:24px}.token-options ul li .token-label .description{color:var(--nylas-base-600);font-size:14px;line-height:21px}.token-options ul li:hover,.token-options ul li:focus,.token-options ul li:active,.token-options ul li.active{background-color:var(--nylas-base-100)}.token-options ul li:hover .token-label .token,.token-options ul li:focus .token-label .token,.token-options ul li:active .token-label .token,.token-options ul li.active .token-label .token{color:var(--nylas-primary)}.token-options .selected{background-color:var(--nylas-base-100)}',Mo=Lo;var Ro=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},It=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const En=class{constructor(t){var e,n;s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.eventTitle=(n=(e=this.selectedConfiguration)==null?void 0:e.event_booking)==null?void 0:n.title,this.name="title",this.showTokens=!1,this.availableTokens=Ke.EVENT_TITLE_TOKENS.map(i=>({label:i.token,value:i.value,labelHTML:i})),this.filteredTokens=this.availableTokens,this.ariaActivedescendant="",this.currentWord={$value:"",fullText:"",index:-1,focusOffset:-1},this.validationError=""}elementNameChangedHandler(t){s.debug("nylas-event-title","elementNameChangedHandler",t),this.host.setAttribute("name",t)}ariaActivedescendantChangedHandler(t){var e,n;if(s.debug("nylas-event-title","ariaActivedescendantChangedHandler",t),t!==""){const i=(e=this.host.shadowRoot)==null?void 0:e.getElementById(t);i==null||i.classList.add("active")}else{const i=(n=this.host.shadowRoot)==null?void 0:n.querySelectorAll(".token-options li.active");i==null||i.forEach(u=>u.classList.remove("active"))}}configChangedHandler(t){var n;const e=(n=t==null?void 0:t.event_booking)==null?void 0:n.title;e&&this.updateEventTitleFromProp(e)}connectedCallback(){s.debug("nylas-event-title","connectedCallback")}componentWillLoad(){s.debug("nylas-event-title","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){s.debug("nylas-event-title","componentDidLoad"),this.updateEventTitleFromProp(this.eventTitle||"")}disconnectedCallback(){s.debug("nylas-event-title","disconnectedCallback")}formSubmittedHandler(t){var e,n;s.debug("nylas-event-title","formSubmittedHandler",t),(n=(e=this.internals)==null?void 0:e.validity)!=null&&n.valid?this.validationError="":this.validationError="Event title is required"}updateEventTitleFromProp(t){var e,n;s.debug("nylas-event-title","eventTitleChangedHandler",t),this.titleRef&&(this.titleRef.innerHTML=this.highlightTokens(t),this.titleRef.focus(),typeof this.internals.setValidity=="function"&&(t===""?(e=this.internals)==null||e.setValidity({customError:!0},"Event title is required",this.titleRef):(n=this.internals)==null||n.setValidity({customError:!1})))}highlightTokens(t){let e=t;return Ke.EVENT_TITLE_TOKENS.forEach(n=>{const i=n.value,u=new RegExp(`(\\${i})(?!\\w)`,"g");e=e.replace(u,'<span class="highlighted-tag">$1</span>')}),e}getCurrentSelectionForBrowser(){var i,u,a;const t=(r,o,l,c)=>{const p=r.replace(/[\u200B-\u200D\uFEFF]/g,""),w=p.lastIndexOf("$"),k=p.substring(w).split(" ")[0];return{focusOffset:o,dollarIndex:w,lastWord:k,currentText:p,node:l,allSelected:c}},e=r=>{var o,l;return r.anchorOffset===0&&r.focusOffset===((l=(o=r.focusNode)==null?void 0:o.nodeValue)==null?void 0:l.length)};switch(s.getBrowser()){case"Chrome":const r=(i=this.host.shadowRoot)==null?void 0:i.getSelection(),o=r==null?void 0:r.focusNode,l=(o==null?void 0:o.nodeValue)||"",c=r&&e(r);return t(l,(r==null?void 0:r.focusOffset)||-1,o,c);case"Firefox":const p=document.getSelection(),w=((u=p==null?void 0:p.anchorNode)==null?void 0:u.nodeValue)||"",k=p&&e(p);return t(w,(p==null?void 0:p.focusOffset)||-1,p==null?void 0:p.anchorNode,k);case"Safari":const E=window.getSelection(),T=E==null?void 0:E.getComposedRanges(this.host.shadowRoot)[0],v=((a=T==null?void 0:T.startContainer)==null?void 0:a.nodeValue)||"",h=E&&e(E);return t(v,(T==null?void 0:T.endOffset)||-1,T==null?void 0:T.startContainer,h);default:return console.warn("Browser not supported"),null}}handleChange(t){let e=t.target.textContent||"";e=wn(e);const n=this.getCurrentSelectionForBrowser();if(!n){this.updateEventTitle(e),this.resetDropdown();return}const{focusOffset:i,dollarIndex:u,lastWord:a,currentText:r}=n;if(u===-1||i<u){this.updateEventTitle(e),this.resetDropdown();return}a.startsWith("$")?(this.showTokens=!0,this.currentWord={$value:a,fullText:r,index:u,focusOffset:i},this.populateSuggestionsDropdown(a)):this.resetDropdown(),this.updateEventTitle(e)}handleInputKeyDown(t){var n,i,u,a;const e=this.getCurrentSelectionForBrowser();if(e!=null&&e.allSelected&&!s.isNonPrintableKey(t)&&(this.titleRef.innerHTML=""),t.key==="Enter"){t.preventDefault();const r=(n=this.host.shadowRoot)==null?void 0:n.getElementById(this.ariaActivedescendant);r&&(r.click(),this.ariaActivedescendant="")}else if(t.key==="ArrowDown"){t.preventDefault();const r=(i=this.host.shadowRoot)==null?void 0:i.getElementById(this.ariaActivedescendant);if(r){const o=r.nextElementSibling;o?this.ariaActivedescendant=o.id:this.ariaActivedescendant=this.filteredTokens[0].label}else this.ariaActivedescendant=this.filteredTokens[0].label}else if(t.key==="ArrowUp"){t.preventDefault();const r=(u=this.host.shadowRoot)==null?void 0:u.getElementById(this.ariaActivedescendant);if(r){const o=r.previousElementSibling;o?this.ariaActivedescendant=o.id:this.ariaActivedescendant=this.filteredTokens[this.filteredTokens.length-1].label}else this.ariaActivedescendant=this.filteredTokens[this.filteredTokens.length-1].label}else t.key==="Escape"?(t.preventDefault(),this.resetDropdown()):(t.key==="Backspace"||t.key==="Delete")&&(e!=null&&e.currentText.startsWith("${")&&(a=e==null?void 0:e.node)!=null&&a.parentNode&&e.node.parentNode.removeChild(e.node),(this.titleRef.textContent===""||(e==null?void 0:e.currentText)===""||e!=null&&e.allSelected)&&(this.titleRef.innerHTML=""))}selectOption(t,e){var v;t.preventDefault();const n=this.currentWord.fullText,i=this.currentWord.$value;let u=this.titleRef.firstChild,a=null;for(;u;){if(u.nodeType===3){const h=((v=u.textContent)==null?void 0:v.replace(/[\u200B-\u200D\uFEFF]/g,""))||"",A=n.replace(/[\u200B-\u200D\uFEFF]/g,"");if(h.includes(A)){a=u;break}}u=u.nextSibling}if(!a)return;const r=a.textContent||"",o=r.indexOf(i),l=r.substring(0,o),c=r.substring(o+i.length),p=document.createTextNode(l),w=document.createRange(),k=document.createElement("span");k.classList.add("highlighted-tag"),k.textContent=`${e.value}`;const E=document.createTextNode(c);if(c!=="")a.replaceWith(p,k,E),w.setStart(E,1);else{const h=document.createTextNode("​");a.replaceWith(p,k,h),w.setStart(h,1)}this.resetDropdown(),this.titleRef.focus();const T=window.getSelection();w.collapse(!0),T==null||T.removeAllRanges(),T==null||T.addRange(w),this.updateEventTitle(this.titleRef.textContent||"")}populateSuggestionsDropdown(t=""){this.filteredTokens=this.availableTokens.filter(e=>e.label.startsWith(t.toString())||e.value.startsWith(t.toString())),this.filteredTokens.length>0&&(this.ariaActivedescendant=this.filteredTokens[0].label)}updateEventTitle(t){var n,i,u;const e=t.replace(/ +/g," ");e===""?((n=this.internals)==null||n.setValidity({customError:!0},"Event title is required",this.titleRef),this.validationError="Event title is required"):((i=this.internals)==null||i.setValidity({customError:!1}),this.validationError=""),(u=this.internals)==null||u.setFormValue(e,this.name),this.valueChanged.emit({value:e,name:this.name})}resetDropdown(){this.showTokens=!1,this.ariaActivedescendant=""}getLabelHTML(t){return s.h("div",{class:"token-label"},s.h("span",{class:"token"},t.token),s.h("span",{class:"description"},t.description))}render(){var t;return s.h(s.Host,{key:"932e142b50dd1fb7b916c41751a485937dd8e831"},s.h("div",{key:"bbcfc67b893392d379cb5d9150ebe328284f880b",class:"nylas-event-title",part:"net"},s.h("label",{key:"cacfa8033268ca77c13c607667a1531603bd7dea",htmlFor:"title"},"Event title",s.h("span",{key:"8494599b113810f754ba72ac61f88633f578dd98",class:"required"},"*"),s.h("span",{key:"f8ddc3a89f3ed114b3cfb3cb906833f8faaeab21",class:"label-icon"},s.h("tooltip-component",{key:"76378ba3e70158dc3e84690927961425eca53bf6"},s.h("info-icon",{key:"b70bf68faa630d42d5e0b0d959d4f1f15e515930",slot:"tooltip-icon"}),s.h("span",{key:"3b4e538da17332317656c801274a8b1927ad5f76",slot:"tooltip-content"},"Enter a title for your event.")))),s.h("div",{key:"6bda8a7235719dcb8c7dfcefa3ef316c0e8be9a8",class:{title:!0,error:this.validationError!==""},part:"net__title",ref:e=>this.titleRef=e,contentEditable:"true",onInput:e=>this.handleChange(e),onKeyDown:e=>this.handleInputKeyDown(e)}),this.showTokens&&((t=this.filteredTokens)==null?void 0:t.length)>0&&s.h("div",{class:"token-options",part:"net__dropdown-content"},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant},this.filteredTokens.map(e=>s.h("li",{tabindex:"0",key:e.label,id:e.label,class:{active:this.ariaActivedescendant===e.label},onClick:n=>this.selectOption(n,e),role:"option"},this.getLabelHTML(e.labelHTML))))),s.h("span",{key:"893b36164252778fca4448954f88a7ae3d6149ae",class:"help-text"},"Create a dynamic templated event title by typing $. Learn more"),this.validationError!=""&&s.h("span",{class:"error-message"},this.validationError)))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],ariaActivedescendant:["ariaActivedescendantChangedHandler"],selectedConfiguration:["configChangedHandler"]}}};Ro([ee.RegisterComponent({name:"nylas-event-title",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),It("design:type",Function),It("design:paramtypes",[]),It("design:returntype",void 0)],En.prototype,"render",null);En.style=Mo;const $o=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-limit-future-bookings{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-limit-future-bookings{flex-direction:column;gap:0.5rem}}.nylas-limit-future-bookings label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-limit-future-bookings label span.label-icon{margin-left:4px}.nylas-limit-future-bookings label span.label-icon tooltip-component{display:flex}',Po=$o;var Ho=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},Ot=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const Tn=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.availableDaysInFuture=void 0,this.name="limit-future-bookings",this.selectedNumber=1,this.selectedPeriod="day"}elementNameChangedHandler(t){s.debug("nylas-limit-future-bookings","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedConfigurationChangedHandler(t){var n;const e=(n=t==null?void 0:t.scheduler)==null?void 0:n.available_days_in_future;e&&this.updateNumberAndPeriodFromDays(e)}availableDaysInFutureChanged(t){this.updateNumberAndPeriodFromDays(t)}connectedCallback(){s.debug("nylas-limit-future-bookings","connectedCallback")}componentWillLoad(){s.debug("nylas-limit-future-bookings","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var t;s.debug("nylas-limit-future-bookings","componentDidLoad"),this.availableDaysInFutureChanged(this.availableDaysInFuture??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((t=this.availableDaysInFuture)==null?void 0:t.toString())??"1",this.name)}disconnectedCallback(){s.debug("nylas-limit-future-bookings","disconnectedCallback")}timePeriodChangedHandler(t){const{number:e,period:n}=t.detail;let i;n==="day"?i=e:n==="week"?i=e*7:i=e*30,this.valueChanged.emit({value:i,name:"availableDaysInFuture"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromDays(t){let e,n;t>=30&&t%30===0?(e=t/30,n="month"):t>=7&&t%7===0?(e=t/7,n="week"):(e=t,n="day"),this.selectedNumber=e,this.selectedPeriod=n}render(){return s.h(s.Host,{key:"633f17f3c8a36aaf1b48653a471fce7a67c2e6bc"},s.h("div",{key:"5685213b7d7d44a54cecda52d553fc49f0b45cf6",class:"nylas-limit-future-bookings",part:"nlfb"},s.h("label",{key:"9c3f51639f92585b04cb6c358783ddb240fcd217"},"Limit future bookings",s.h("span",{key:"f234e3ff93652121e54d1aa77cbd77c2e93252c5",class:"label-icon"},s.h("tooltip-component",{key:"4a1a059e553f52b856b220c37a9721ed8d890171"},s.h("info-icon",{key:"f6daa7aae8aefe95871744a22d71a1bb743a797c",slot:"tooltip-icon"}),s.h("span",{key:"ef99e06e91e3f76e640d8209d0f9ad1831c9fdeb",slot:"tooltip-content"},"Set a limit on how far in the future bookings can be made.")))),s.h("time-period-selector",{key:"02215f1ea27a251917bf8ad3cb10f9d36bd870ba",id:"limit-future-bookings",timePeriods:["day","week","month"],exportparts:"tps__number-dropdown: nlfb__number-dropdown, tps__number-dropdown-button: nlfb__number-dropdown-button, tps__number-dropdown-content: nlfb__number-dropdown-content, tps__period-dropdown: nlfb__period-dropdown, tps__period-dropdown-button: nlfb__period-dropdown-button, tps__period-dropdown-content: nlfb__period-dropdown-content",defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};Ho([ee.RegisterComponent({name:"nylas-limit-future-bookings",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),Ot("design:type",Function),Ot("design:paramtypes",[]),Ot("design:returntype",void 0)],Tn.prototype,"render",null);Tn.style=Po;const Fo=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-event-location{display:flex;flex-direction:column;gap:4px;font-family:var(--nylas-font-family)}.nylas-event-location label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-event-location label span.label-icon{margin-left:4px}.nylas-event-location label span.label-icon tooltip-component{display:flex}.nylas-event-location span[slot=select-icon]{border-right:1px solid var(--nylas-base-200);padding:16px 0.75rem 16px 0.5rem;border-radius:var(--nylas-border-radius-2x);border-bottom-right-radius:0;border-top-right-radius:0;height:20px}.nylas-event-location div.location-input{display:grid;grid-template-columns:auto 1fr;width:100%;gap:0.5rem}@media screen and (max-width: 768px){.nylas-event-location div.location-input{grid-template-columns:1fr}}.nylas-event-location div.location-input input{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x);padding:12px 16px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}.nylas-event-location select-dropdown{width:208px}@media screen and (max-width: 768px){.nylas-event-location select-dropdown{width:100%}}.nylas-event-location select-dropdown::part(sd_dropdown){width:100%}.nylas-event-location select-dropdown::part(sd_dropdown-content){left:calc(35px + 0.5rem)}.nylas-event-location select-dropdown::part(sd_dropdown-button){display:flex;justify-content:space-between;width:100%;border:1px solid var(--nylas-base-200);padding:0 0.5rem}.nylas-event-location select-dropdown::part(sd_dropdown-button-selected-label){display:inline-flex;align-self:center;padding:14px 0;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}',Bo=Fo;var qo=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},Nt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const An=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.name="location",this.selectedConfiguration=void 0,this.eventLocation=void 0,this.location=this.eventLocation??"",this.selectedLocationOption=this.eventLocation?"custom":"none"}elementNameChangedHandler(t){s.debug("nylas-location-component","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedConfigurationChangedHandler(t,e){var i;s.debug("nylas-custom-booking-flow","selectedConfigurationChangedHandler",t,e);const n=(i=t==null?void 0:t.event_booking)==null?void 0:i.location;n&&(this.selectedLocationOption=n?"custom":"none",this.location=n)}eventLocationChangedHandler(t,e){s.debug("nylas-location-component","eventLocationChangedHandler",t),t!==e&&(this.selectedLocationOption=t?"custom":"none")}connectedCallback(){s.debug("nylas-location-component","connectedCallback")}componentWillLoad(){s.debug("nylas-location-component","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){s.debug("nylas-location-component","componentDidLoad")}disconnectedCallback(){s.debug("nylas-location-component","disconnectedCallback")}selectedOptionChangedHandler(t){this.selectedLocationOption=t.detail.value,this.selectedLocationOption==="none"&&(this.location="",this.setFormValue("","location"),this.valueChanged.emit({value:"",name:this.name}))}setFormValue(t,e){typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(t,e)}handleChange(t){const e=wn(t.target.value);this.location=e,this.setFormValue(e,"location"),this.valueChanged.emit({value:e,name:this.name})}render(){const t=[{value:"none",label:"None"},{value:"custom",label:"Custom location"}],e={none:s.h("location-off-icon",{key:"269f578b7716242b8d3249986cee5e4a13851bc0"}),custom:s.h("location-icon",{key:"57900512437fb5b5a6e1f294ae27901bae3e69e5"})};return s.h(s.Host,{key:"ecf61caf6c65160cb2de2c016e4218832ce1a578"},s.h("div",{key:"c161c1405c775418bbef934eaa3a3f606b8db940",class:"nylas-event-location",part:"nel"},s.h("label",{key:"aa9b34efef59b7a58d629f0de662089ae97d8399",htmlFor:"location"},"Location type",s.h("span",{key:"153eea028a84cc6fa0b01d3f6ca9ef748d1685f6",class:"label-icon"},s.h("tooltip-component",{key:"132c77956223a2ba9144d216679ac5db03208842"},s.h("info-icon",{key:"6e09f38c41ce74db49c912168d03dd5f76d37c3a",slot:"tooltip-icon"}),s.h("span",{key:"0232242da1f7e5ff74c942d049f7006eb66d8006",slot:"tooltip-content"},"Choose how you’ll meet with the participants at the scheduled time. Pick from available conferencing options or add a custom location.")))),s.h("div",{key:"fa1bb939e2b587b3af091ebe6ec6bc9bae0fe4a3",class:"location-input"},s.h("select-dropdown",{key:"7efd0136244a56246e46b7ed0994ac818b2c8791",withSearch:!1,name:"location",options:t,defaultSelectedOption:t.find(n=>n.value==this.selectedLocationOption),exportparts:"sd__dropdown: nel__dropdown, sd__dropdown-button: nel__dropdown-button, sd__dropdown-content: nel__dropdown-content"},s.h("span",{key:"5c9a08654e8da6f923f8a9819d10d29df44acd3d",slot:"select-icon"},e[this.selectedLocationOption])),this.selectedLocationOption==="custom"&&s.h("input",{type:"text",part:"nel__location",id:"location",name:"location",maxlength:"1024",value:this.location,onInput:n=>this.handleChange(n)}))))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],eventLocation:["eventLocationChangedHandler"]}}};qo([ee.RegisterComponent({name:"nylas-location-component",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),Nt("design:type",Function),Nt("design:paramtypes",[]),Nt("design:returntype",void 0)],An.prototype,"render",null);An.style=Bo;const jo=':host{--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.nylas-min-cancellation-notice{display:flex;justify-content:space-between;font-family:var(--nylas-font-family)}@media screen and (max-width: 768px){.nylas-min-cancellation-notice{flex-direction:column;gap:0.5rem}}.nylas-min-cancellation-notice label{display:flex;align-items:center;color:var(--nylas-base-800);font-size:16px;font-style:normal;font-weight:400;line-height:150%;}.nylas-min-cancellation-notice label span.label-icon{margin-left:4px}.nylas-min-cancellation-notice label span.label-icon tooltip-component{display:flex}',Uo=jo;var zo=function(t,e,n,i){var u=arguments.length,a=u<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,n):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(u<3?r(a):u>3?r(e,n,a):r(e,n))||a);return u>3&&a&&Object.defineProperty(e,n,a),a},Dt=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)};const In=class{constructor(t){s.registerInstance(this,t),this.valueChanged=s.createEvent(this,"valueChanged",7),t.$hostElement$["s-ei"]?this.internals=t.$hostElement$["s-ei"]:(this.internals=t.$hostElement$.attachInternals(),t.$hostElement$["s-ei"]=this.internals),this.selectedConfiguration=void 0,this.minCancellationNotice=void 0,this.name="min-cancellation-notice",this.selectedNumber=1,this.selectedPeriod="day"}elementNameChangedHandler(t){s.debug("nylas-min-cancellation-notice","elementNameChangedHandler",t),this.host.setAttribute("name",t)}selectedConfigurationChangedHandler(t){var n;const e=(n=t==null?void 0:t.scheduler)==null?void 0:n.min_cancellation_notice;e&&this.updateNumberAndPeriodFromMinutes(e)}availableDaysInFutureChanged(t){this.updateNumberAndPeriodFromMinutes(t)}connectedCallback(){s.debug("nylas-min-cancellation-notice","connectedCallback")}componentWillLoad(){s.debug("nylas-min-cancellation-notice","componentWillLoad"),this.host.setAttribute("name",this.name)}componentDidLoad(){var t;s.debug("nylas-min-cancellation-notice","componentDidLoad"),this.availableDaysInFutureChanged(this.minCancellationNotice??1),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(((t=this.minCancellationNotice)==null?void 0:t.toString())??"1",this.name)}disconnectedCallback(){s.debug("nylas-min-cancellation-notice","disconnectedCallback")}timePeriodChangedHandler(t){const{number:e,period:n}=t.detail;let i;const u=60,a=u*24,r=a*7,o=a*30;n==="minute"?i=e:n==="hour"?i=e*u:n==="day"?i=e*a:n==="week"?i=e*r:n==="month"?i=e*o:i=0,this.valueChanged.emit({value:i,name:"minCancellationNotice"}),typeof this.internals.setFormValue=="function"&&this.internals.setFormValue(i.toString(),this.name)}updateNumberAndPeriodFromMinutes(t){let a,r;t>=43200?(a=Math.floor(t/43200),r="month"):t>=10080?(a=Math.floor(t/10080),r="week"):t>=1440?(a=Math.floor(t/1440),r="day"):t>=60?(a=Math.floor(t/60),r="hour"):(a=t,r="minute"),this.selectedNumber=a,this.selectedPeriod=r}render(){return s.h(s.Host,{key:"473f79ba357832c63d5af02f6123d5d8a4bbee61"},s.h("div",{key:"657c38462f01c79f7e830e7758859398e776ccdb",class:"nylas-min-cancellation-notice",part:"nmcn"},s.h("label",{key:"9a29a3b348cf93c9de3b7f28d05c319d64ed37c6"},"Minimum cancellation notice",s.h("span",{key:"a618468ede4da9c28ec941ab4b76551cff980d8a",class:"label-icon"},s.h("tooltip-component",{key:"a44b3a7327721e17884840a9124f7c27249f050c"},s.h("info-icon",{key:"177c2db8b4f868e23f5e59a08a335a1bbf4e5316",slot:"tooltip-icon"}),s.h("span",{key:"843ca3f89854fb398717e8fab9c54b124ef93a46",slot:"tooltip-content"},"Set the minimum amount of time required to cancel an event.")))),s.h("time-period-selector",{key:"74b22ae97313a1a096d1c5ef6c791507e98da099",id:"min-cancellation-notice",exportparts:"tps__number-dropdown: nmcn__number-dropdown, tps__number-dropdown-button: nmcn__number-dropdown-button, tps__number-dropdown-content: nmcn__number-dropdown-content, tps__period-dropdown: nmcn__period-dropdown, tps__period-dropdown-button: nmcn__period-dropdown-button, tps__period-dropdown-content: nmcn__period-dropdown-content",timePeriods:["minute","hour","day","week"],defaultSelectedNumber:this.selectedNumber,defaultSelectedPeriod:this.selectedPeriod})))}static get formAssociated(){return!0}get host(){return s.getElement(this)}static get watchers(){return{name:["elementNameChangedHandler"],selectedConfiguration:["selectedConfigurationChangedHandler"],availableDaysInFuture:["availableDaysInFutureChanged"]}}};zo([ee.RegisterComponent({name:"nylas-min-cancellation-notice",stateToProps:new Map([["schedulerConfig.selectedConfiguration","selectedConfiguration"]]),eventToProps:{},fireRegisterEvent:!0}),Dt("design:type",Function),Dt("design:paramtypes",[]),Dt("design:returntype",void 0)],In.prototype,"render",null);In.style=Uo;var Eu={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(s.commonjsGlobal,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,u=/\d\d/,a=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},l=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(h){this[v]=+h}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var A=h.match(/([+-]|\d\d)/g),O=60*A[1]+(+A[2]||0);return O===0?0:A[0]==="+"?-O:O}(v)}],w=function(v){var h=o[v];return h&&(h.indexOf?h:h.s.concat(h.f))},k=function(v,h){var A,O=o.meridiem;if(O){for(var B=1;B<=24;B+=1)if(v.indexOf(O(B,0,h))>-1){A=B>12;break}}else A=v===(h?"pm":"PM");return A},E={A:[r,function(v){this.afternoon=k(v,!1)}],a:[r,function(v){this.afternoon=k(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[u,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[u,c("day")],Do:[r,function(v){var h=o.ordinal,A=v.match(/\d+/);if(this.day=A[0],h)for(var O=1;O<=31;O+=1)h(O).replace(/\[|\]/g,"")===v&&(this.day=O)}],M:[a,c("month")],MM:[u,c("month")],MMM:[r,function(v){var h=w("months"),A=(w("monthsShort")||h.map(function(O){return O.slice(0,3)})).indexOf(v)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[r,function(v){var h=w("months").indexOf(v)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[u,function(v){this.year=l(v)}],YYYY:[/\d{4}/,c("year")],Z:p,ZZ:p};function T(v){var h,A;h=v,A=o&&o.formats;for(var O=(v=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(G,V,f){var y=f&&f.toUpperCase();return V||A[f]||n[f]||A[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,S,d){return S||d.slice(1)})})).match(i),B=O.length,I=0;I<B;I+=1){var j=O[I],z=E[j],W=z&&z[0],P=z&&z[1];O[I]=P?{regex:W,parser:P}:j.replace(/^\[|\]$/g,"")}return function(G){for(var V={},f=0,y=0;f<B;f+=1){var x=O[f];if(typeof x=="string")y+=x.length;else{var S=x.regex,d=x.parser,g=G.slice(y),m=S.exec(g)[0];d.call(V,m),G=G.replace(m,"")}}return function(_){var N=_.afternoon;if(N!==void 0){var H=_.hours;N?H<12&&(_.hours+=12):H===12&&(_.hours=0),delete _.afternoon}}(V),V}}return function(v,h,A){A.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var O=h.prototype,B=O.parse;O.parse=function(I){var j=I.date,z=I.utc,W=I.args;this.$u=z;var P=W[1];if(typeof P=="string"){var G=W[2]===!0,V=W[3]===!0,f=G||V,y=W[2];V&&(y=W[2]),o=this.$locale(),!G&&y&&(o=A.Ls[y]),this.$d=function(g,m,_){try{if(["x","X"].indexOf(m)>-1)return new Date((m==="X"?1e3:1)*g);var N=T(m)(g),H=N.year,L=N.month,$=N.day,we=N.hours,M=N.minutes,R=N.seconds,se=N.milliseconds,J=N.zone,Z=new Date,be=$||(H||L?1:Z.getDate()),ke=H||Z.getFullYear(),$e=0;H&&!L||($e=L>0?L-1:Z.getMonth());var ft=we||0,ht=M||0,bt=R||0,pt=se||0;return J?new Date(Date.UTC(ke,$e,be,ft,ht,bt,pt+60*J.offset*1e3)):_?new Date(Date.UTC(ke,$e,be,ft,ht,bt,pt)):new Date(ke,$e,be,ft,ht,bt,pt)}catch{return new Date("")}}(j,P,z),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),f&&j!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var x=P.length,S=1;S<=x;S+=1){W[1]=P[S-1];var d=A.apply(this,W);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}S===x&&(this.$d=new Date(""))}else B.call(this,I)}}})})(Eu);const Vo=Eu.exports,Wo=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}',Go=Wo;s.dayjs.extend(Vo);const Tu=class{constructor(t){s.registerInstance(this,t),this.timeChange=s.createEvent(this,"timeChange",7),this.formError=s.createEvent(this,"formError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(t){!t.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let t=s.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?t=t.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(t=t.subtract(12,"hour")),this.times=this.generateTimes();const e=s.dayjs(this.times[0].value,"hh:mma");s.dayjs(this.time,"hh:mma").isBefore(e)&&(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const t=s.autocompleteTimeFormat(this.time),e=this.times.findIndex(n=>n.value===t);e>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(e));return}}handleTimeChange(t,e){const n=e.split(":");n[0]==="00"&&n[1].slice(-2)=="pm"&&(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"})),s.validateTimeFormatInput(e)?(this.err="",this.formError.emit({key:this.el.id,message:""})):(this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"})),this.timeChange.emit({key:this.el.id,value:e})}handleTimeAutocomplete(t){var n;const e=(n=t.target)==null?void 0:n.value;if(!s.validateTimeFormatInput(e)){this.err="Invalid",this.formError.emit({key:this.el.id,message:"Invalid"});return}if(e===""){const i=s.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:i});return}if(!s.validateExactTimeFormat(e)){const i=s.autocompleteTimeFormat(e);this.timeChange.emit({key:this.el.id,value:i});return}this.timeChange.emit({key:this.el.id,value:e})}handleOnInput(t){var n;const e=(n=t.target)==null?void 0:n.value;if(s.validateTimeFormatInput(e)){if(e===""){const i=s.roundToNearest15Minutes().format("hh:mma"),u=this.times.findIndex(a=>a.value===i);u>-1&&this.scrollToViewWithinParent(u);return}if(!s.validateExactTimeFormat(e)){const i=s.autocompleteTimeFormat(e),u=this.times.findIndex(a=>a.value===i);u>-1&&this.scrollToViewWithinParent(u);return}}}generateTimes(){const t=[];let e=s.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(e=s.dayjs(this.minimumStartTime,"hh:mma"));const n=e.endOf("day").diff(e,"minutes"),i=Math.round(n/15);for(let u=0;u<i+1;u++){const a=e.add(u*15,"minute");if(u==i&&a.format("hh:mma").includes("am"))break;t.push({id:u,value:a.format("hh:mma")})}return t}handleComboboxKeyDown(t){if(t.key==="ArrowDown"){if(t.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const e=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),n=e+1<this.times.length?e+1:0;this.ariaActivedescendant=this.times[n].id.toString(),this.focusOption(n)}}else if(t.key==="ArrowUp")if(t.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const e=this.times.findIndex(i=>i.id.toString()===this.ariaActivedescendant),n=e-1>=0?e-1:this.times.length-1;this.ariaActivedescendant=this.times[n].id.toString(),this.focusOption(n)}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(t){const e=this.times,n=e.findIndex(i=>i.id.toString()===this.ariaActivedescendant);if(t.key==="ArrowDown"||t.key==="Tab"&&!t.shiftKey){t.preventDefault();const i=n+1<e.length?n+1:0;this.ariaActivedescendant=e[i].id.toString(),this.focusOption(i)}else if(t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey){t.preventDefault();const i=n-1>=0?n-1:e.length-1;this.ariaActivedescendant=e[i].id.toString(),this.focusOption(i)}else if(t.key==="Enter"){if(t.preventDefault(),this.ariaActivedescendant){const i=e[n];this.handleTimeChange(t,i.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(t){var r;const e=this.times[t],n=(r=this.el.shadowRoot)==null?void 0:r.getElementById(e.id.toString()),i=this.timeMenu;this.ariaActivedescendant=e.id.toString();const u=n.getBoundingClientRect(),a=i.getBoundingClientRect();u.top<a.top?i.scrollTop-=a.top-u.top:u.bottom>a.bottom&&(i.scrollTop+=u.bottom-a.bottom),u.left<a.left?i.scrollLeft-=a.left-u.left:u.right>a.right&&(i.scrollLeft+=u.right-a.right)}focusOption(t){var u;const e=this.times[t];if(!e)return;const n=e.id.toString(),i=(u=this.el.shadowRoot)==null?void 0:u.getElementById(n);i&&(i.focus(),i.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){return s.h(s.Host,{key:"4a03bc9829bace5ed02129d99e12b6042f49386c"},s.h("div",{key:"ccc660e6cd8727226b7418ee20fe700812f7c70b",class:"time-picker",part:"time-picker"},s.h("input",{key:"24be2b42322194545575045f5624ac78bf8c643e",type:"text",name:this.name,id:this.name,part:"time-input",class:{"time-input":!0,error:!!this.err||this.hasError},ref:t=>this.timeInput=t,value:this.time,onClick:()=>{this.showTimes=!0,this.shouldAutoScroll=!0},"aria-haspopup":"listbox","aria-label":this.name,"aria-expanded":this.showTimes?"true":"false",placeholder:this.placeholder,onKeyDown:t=>this.handleComboboxKeyDown(t),onInput:t=>this.handleOnInput(t),onBlur:t=>this.handleTimeAutocomplete(t)}),this.err&&s.h("div",{class:"invalid-time-icon"}),this.showTimes&&s.h("div",{class:"times",part:"times",ref:t=>this.timeMenu=t},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.times.map(t=>s.h("li",{tabindex:"0",key:t.id,id:t.id.toString(),class:{focused:this.ariaActivedescendant===t.id.toString()},onClick:e=>{this.handleTimeChange(e,t.value),this.showTimes=!1,this.timeInput.focus()},role:"option"},`${t.value}`)))),!this.showTimes&&this.err&&s.h("p",{class:"error",id:"email-error"},this.err)))}get el(){return s.getElement(this)}static get watchers(){return{minimumStartTime:["minimumStartTimeChangedHandler"]}}};Tu.style=Go;exports.add_circle_icon=si;exports.button_component=ri;exports.calendar_info_icon=oi;exports.calendar_patterns_icon=li;exports.flow_icon=ci;exports.location_icon=di;exports.location_off_icon=fi;exports.multi_select_dropdown=hi;exports.nylas_availability_picker=Qt;exports.nylas_booking_calendar_picker=Jt;exports.nylas_buffer_time=Xt;exports.nylas_calendar_picker=en;exports.nylas_event_description=kn;exports.nylas_event_duration=Cn;exports.nylas_event_info=_n;exports.nylas_event_limits=Sn;exports.nylas_event_title=En;exports.nylas_limit_future_bookings=Tn;exports.nylas_location_component=An;exports.nylas_min_cancellation_notice=In;exports.nylas_time_window_picker=Tu;