@paperless/core 2.0.1-beta.74 → 2.0.1-beta.75

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 (561) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/build/{p-bfaaeb71.entry.js → p-00c5e98b.entry.js} +2 -2
  3. package/dist/build/{p-4e74384b.entry.js → p-04cc6ca5.entry.js} +2 -2
  4. package/dist/{paperless/p-7ad4fe38.entry.js → build/p-09d68fa3.entry.js} +2 -2
  5. package/dist/build/{p-a6de5f3e.entry.js → p-17d9bca9.entry.js} +2 -2
  6. package/dist/build/{p-3550e63e.entry.js → p-257e6c1a.entry.js} +2 -2
  7. package/dist/{paperless/p-5769eaeb.entry.js → build/p-2a7f51ce.entry.js} +2 -2
  8. package/dist/build/{p-4944d81e.entry.js → p-2da8868f.entry.js} +2 -2
  9. package/dist/build/{p-f24e232c.entry.js → p-3a763793.entry.js} +2 -2
  10. package/dist/{paperless/p-ca580a2b.entry.js → build/p-3c20b3bc.entry.js} +2 -2
  11. package/dist/{paperless/p-57625bdf.entry.js → build/p-42802edb.entry.js} +2 -2
  12. package/dist/build/{p-8752ec1d.entry.js → p-49fb85f1.entry.js} +2 -2
  13. package/dist/build/{p-e765e24b.entry.js → p-4a836eeb.entry.js} +2 -2
  14. package/dist/{paperless/p-97c2bdd1.entry.js → build/p-4c41dd15.entry.js} +2 -2
  15. package/dist/build/{p-798c697f.entry.js → p-4d52fa18.entry.js} +2 -2
  16. package/dist/{paperless/p-4202a4c0.entry.js → build/p-4ea184f4.entry.js} +2 -2
  17. package/dist/build/{p-6b4a23c4.entry.js → p-51c1bb21.entry.js} +2 -2
  18. package/dist/build/{p-e4bb6038.entry.js → p-5e9f3dad.entry.js} +2 -2
  19. package/dist/build/{p-a8c8f291.entry.js → p-60d65dee.entry.js} +2 -2
  20. package/dist/{paperless/p-e9c85340.entry.js → build/p-63ad9ae0.entry.js} +2 -2
  21. package/dist/build/{p-1775e544.entry.js → p-6523c93f.entry.js} +2 -2
  22. package/dist/build/{p-68a7ab02.entry.js → p-65fdfe75.entry.js} +2 -2
  23. package/dist/build/{p-7e902bc6.entry.js → p-691848af.entry.js} +2 -2
  24. package/dist/build/{p-244968bd.entry.js → p-71245c59.entry.js} +2 -2
  25. package/dist/build/{p-c3a08f08.entry.js → p-7bf73fad.entry.js} +2 -2
  26. package/dist/build/{p-40049528.js → p-83ac30ca.js} +1 -1
  27. package/dist/{paperless/p-9a4ba6b1.entry.js → build/p-8a0e50c1.entry.js} +2 -2
  28. package/dist/{paperless/p-76edae0b.entry.js → build/p-9026c8b5.entry.js} +2 -2
  29. package/dist/build/{p-2e7078c8.entry.js → p-90d8cf17.entry.js} +3 -3
  30. package/dist/{paperless/p-dbab1545.entry.js → build/p-96bfe3fb.entry.js} +2 -2
  31. package/dist/{paperless/p-089318c5.entry.js → build/p-9755ed13.entry.js} +2 -2
  32. package/dist/build/{p-8ed1a47e.entry.js → p-9c504fd7.entry.js} +2 -2
  33. package/dist/{paperless/p-cd6138d8.entry.js → build/p-9d810878.entry.js} +2 -2
  34. package/dist/build/p-CayVqENR.js +3 -0
  35. package/dist/build/p-CayVqENR.js.map +1 -0
  36. package/dist/build/{p-0b935fc3.entry.js → p-a1bb0d3f.entry.js} +2 -2
  37. package/dist/build/{p-4e704926.entry.js → p-a5c294f3.entry.js} +2 -2
  38. package/dist/build/{p-c4197bfe.entry.js → p-a6d33f42.entry.js} +2 -2
  39. package/dist/build/{p-76642559.entry.js → p-a89e2da7.entry.js} +2 -2
  40. package/dist/build/{p-754beb82.entry.js → p-ad6acccb.entry.js} +2 -2
  41. package/dist/{paperless/p-8144d85f.entry.js → build/p-ae860e97.entry.js} +2 -2
  42. package/dist/build/{p-e1ae79c2.entry.js → p-aedd038d.entry.js} +2 -2
  43. package/dist/build/{p-0f534d8c.entry.js → p-b1afbc83.entry.js} +2 -2
  44. package/dist/build/{p-8ad81b8b.entry.js → p-b436d58e.entry.js} +2 -2
  45. package/dist/build/{p-07801fb9.entry.js → p-b53b3a80.entry.js} +2 -2
  46. package/dist/build/{p-13f4e43c.entry.js → p-b62a5ae0.entry.js} +2 -2
  47. package/dist/build/{p-769262da.entry.js → p-b7158304.entry.js} +2 -2
  48. package/dist/build/{p-3299ff05.entry.js → p-b7308da5.entry.js} +2 -2
  49. package/dist/build/{p-136616a3.entry.js → p-c0db95db.entry.js} +2 -2
  50. package/dist/build/{p-6a92ae6e.entry.js → p-c1071220.entry.js} +2 -2
  51. package/dist/{paperless/p-c23863a0.entry.js → build/p-c50053de.entry.js} +2 -2
  52. package/dist/{paperless/p-b8604040.entry.js → build/p-c6b6872f.entry.js} +2 -2
  53. package/dist/{paperless/p-8a7d3603.entry.js → build/p-d6f25ca1.entry.js} +2 -2
  54. package/dist/build/{p-41303d86.entry.js → p-d891f60b.entry.js} +2 -2
  55. package/dist/build/{p-f196c632.entry.js → p-e223339d.entry.js} +2 -2
  56. package/dist/build/{p-3efee0f8.entry.js → p-ea3b1122.entry.js} +2 -2
  57. package/dist/build/{p-1169b9bf.entry.js → p-efb850f2.entry.js} +2 -2
  58. package/dist/build/p-f10e2591.entry.js +2 -0
  59. package/dist/build/p-f10e2591.entry.js.map +1 -0
  60. package/dist/build/{p-533abd68.entry.js → p-f9ad3e27.entry.js} +2 -2
  61. package/dist/{paperless/p-b7040bb6.entry.js → build/p-fbb10dd2.entry.js} +2 -2
  62. package/dist/build/{p-3c299655.entry.js → p-fcb12f74.entry.js} +2 -2
  63. package/dist/{paperless/p-b0582876.entry.js → build/p-fd9774f5.entry.js} +2 -2
  64. package/dist/build/p-navbar.entry.esm.js.map +1 -1
  65. package/dist/build/paperless.esm.js +1 -1
  66. package/dist/cjs/{index-DLcBertx.js → index-Ca4wFbmt.js} +41 -2
  67. package/dist/cjs/index-Ca4wFbmt.js.map +1 -0
  68. package/dist/cjs/loader.cjs.js +2 -2
  69. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  70. package/dist/cjs/p-attachment.cjs.entry.js +1 -1
  71. package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
  72. package/dist/cjs/p-avatar.cjs.entry.js +1 -1
  73. package/dist/cjs/p-backdrop.cjs.entry.js +1 -1
  74. package/dist/cjs/p-badge_3.cjs.entry.js +1 -1
  75. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  76. package/dist/cjs/p-button_3.cjs.entry.js +1 -1
  77. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  78. package/dist/cjs/p-card-body.cjs.entry.js +1 -1
  79. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  80. package/dist/cjs/p-card-header.cjs.entry.js +1 -1
  81. package/dist/cjs/p-checkbox_4.cjs.entry.js +1 -1
  82. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  83. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  84. package/dist/cjs/p-cropper.cjs.entry.js +1 -1
  85. package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
  86. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  87. package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
  88. package/dist/cjs/p-drawer.cjs.entry.js +1 -1
  89. package/dist/cjs/p-empty-state_9.cjs.entry.js +1 -1
  90. package/dist/cjs/p-field_2.cjs.entry.js +1 -1
  91. package/dist/cjs/p-helper_2.cjs.entry.js +1 -1
  92. package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/p-icon-deprecated.cjs.entry.js +1 -1
  94. package/dist/cjs/p-illustration-deprecated.cjs.entry.js +1 -1
  95. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  96. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  97. package/dist/cjs/p-input-error.cjs.entry.js +1 -1
  98. package/dist/cjs/p-input-group.cjs.entry.js +1 -1
  99. package/dist/cjs/p-label.cjs.entry.js +1 -1
  100. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  101. package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
  102. package/dist/cjs/p-modal.cjs.entry.js +1 -1
  103. package/dist/cjs/p-navbar.cjs.entry.js +3 -3
  104. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
  105. package/dist/cjs/p-navbar.entry.cjs.js.map +1 -1
  106. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  107. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  108. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  109. package/dist/cjs/p-pagination-pages-item.cjs.entry.js +1 -1
  110. package/dist/cjs/p-pagination_3.cjs.entry.js +1 -1
  111. package/dist/cjs/p-portal.cjs.entry.js +1 -1
  112. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  113. package/dist/cjs/p-radio.cjs.entry.js +1 -1
  114. package/dist/cjs/p-select.cjs.entry.js +1 -1
  115. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  116. package/dist/cjs/p-smile.cjs.entry.js +1 -1
  117. package/dist/cjs/p-status.cjs.entry.js +1 -1
  118. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  119. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  120. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  121. package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
  122. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  123. package/dist/cjs/p-table-column.cjs.entry.js +1 -1
  124. package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
  125. package/dist/cjs/p-table.cjs.entry.js +1 -1
  126. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  127. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  128. package/dist/cjs/p-toggle.cjs.entry.js +1 -1
  129. package/dist/cjs/paperless.cjs.js +2 -2
  130. package/dist/collection/components/organisms/navbar/navbar.component.js +2 -1
  131. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
  132. package/dist/components/index.js +1 -1
  133. package/dist/components/{p-DiJM7MkY.js → p-3QViYQSf.js} +6 -6
  134. package/dist/components/{p-DiJM7MkY.js.map → p-3QViYQSf.js.map} +1 -1
  135. package/dist/components/{p-llhG3A9n.js → p-3wmpVHlk.js} +6 -6
  136. package/dist/components/{p-llhG3A9n.js.map → p-3wmpVHlk.js.map} +1 -1
  137. package/dist/components/{p-DkQcmaID.js → p-9udfuvz4.js} +3 -3
  138. package/dist/components/{p-DkQcmaID.js.map → p-9udfuvz4.js.map} +1 -1
  139. package/dist/components/{p-Bsg1H4V_.js → p-BDGNLt-S.js} +6 -6
  140. package/dist/components/{p-Bsg1H4V_.js.map → p-BDGNLt-S.js.map} +1 -1
  141. package/dist/components/{p-CvN6yR0y.js → p-BGpirUDf.js} +3 -3
  142. package/dist/components/{p-CvN6yR0y.js.map → p-BGpirUDf.js.map} +1 -1
  143. package/dist/components/{p-iMJKTtDo.js → p-BN2A_taC.js} +3 -3
  144. package/dist/components/{p-iMJKTtDo.js.map → p-BN2A_taC.js.map} +1 -1
  145. package/dist/components/{p-ChwJzY70.js → p-BN8cc8yL.js} +5 -5
  146. package/dist/components/{p-ChwJzY70.js.map → p-BN8cc8yL.js.map} +1 -1
  147. package/dist/components/{p-BL_3kED9.js → p-BPVLPqQO.js} +7 -7
  148. package/dist/components/{p-BL_3kED9.js.map → p-BPVLPqQO.js.map} +1 -1
  149. package/dist/components/{p-Bva6ldhP.js → p-BSp52EHZ.js} +3 -3
  150. package/dist/components/{p-Bva6ldhP.js.map → p-BSp52EHZ.js.map} +1 -1
  151. package/dist/components/{p-BsVQWdLD.js → p-Bc3GKjmO.js} +4 -4
  152. package/dist/components/{p-BsVQWdLD.js.map → p-Bc3GKjmO.js.map} +1 -1
  153. package/dist/components/{p-CyabiQlx.js → p-BrLNfViE.js} +9 -9
  154. package/dist/components/{p-CyabiQlx.js.map → p-BrLNfViE.js.map} +1 -1
  155. package/dist/components/{p-Bf7oUN-6.js → p-C0a5W6LE.js} +3 -3
  156. package/dist/components/{p-Bf7oUN-6.js.map → p-C0a5W6LE.js.map} +1 -1
  157. package/dist/components/{p-BHIQaN0O.js → p-C0bpxhJE.js} +4 -4
  158. package/dist/components/{p-BHIQaN0O.js.map → p-C0bpxhJE.js.map} +1 -1
  159. package/dist/components/{p-BvpAM_Rb.js → p-C3e97VCz.js} +15 -15
  160. package/dist/components/{p-BvpAM_Rb.js.map → p-C3e97VCz.js.map} +1 -1
  161. package/dist/components/{p-Cv23-3Fr.js → p-CC2kJYZK.js} +5 -5
  162. package/dist/components/{p-Cv23-3Fr.js.map → p-CC2kJYZK.js.map} +1 -1
  163. package/dist/components/{p-DHB3oMcL.js → p-CEKnWrco.js} +3 -3
  164. package/dist/components/{p-DHB3oMcL.js.map → p-CEKnWrco.js.map} +1 -1
  165. package/dist/components/{p-BY0mXIhO.js → p-CKl8XIXI.js} +3 -3
  166. package/dist/components/{p-BY0mXIhO.js.map → p-CKl8XIXI.js.map} +1 -1
  167. package/dist/components/{p-q_c1iUVr.js → p-CLurrjAY.js} +3 -3
  168. package/dist/components/{p-q_c1iUVr.js.map → p-CLurrjAY.js.map} +1 -1
  169. package/dist/components/{p-CbfyNDgs.js → p-CR4FaoFo.js} +3 -3
  170. package/dist/components/{p-CbfyNDgs.js.map → p-CR4FaoFo.js.map} +1 -1
  171. package/dist/components/{p-DGQEB1OR.js → p-CWT_6nRg.js} +9 -9
  172. package/dist/components/{p-DGQEB1OR.js.map → p-CWT_6nRg.js.map} +1 -1
  173. package/dist/components/{p-B6UH3J7_.js → p-CbJlKi48.js} +5 -5
  174. package/dist/components/{p-B6UH3J7_.js.map → p-CbJlKi48.js.map} +1 -1
  175. package/dist/components/{p-C8rfYi3w.js → p-Ck46vbXY.js} +3 -3
  176. package/dist/components/{p-C8rfYi3w.js.map → p-Ck46vbXY.js.map} +1 -1
  177. package/dist/components/{p-mH8xL3Ys.js → p-CnjQFqen.js} +3 -3
  178. package/dist/components/{p-mH8xL3Ys.js.map → p-CnjQFqen.js.map} +1 -1
  179. package/dist/components/{p-C1wQaaNc.js → p-CvbPMEQv.js} +8 -8
  180. package/dist/components/{p-C1wQaaNc.js.map → p-CvbPMEQv.js.map} +1 -1
  181. package/dist/components/{p-DqJMXrX1.js → p-D1geqmyZ.js} +7 -7
  182. package/dist/components/{p-DqJMXrX1.js.map → p-D1geqmyZ.js.map} +1 -1
  183. package/dist/components/{p-DBU9pozN.js → p-D6V-5C-q.js} +3 -3
  184. package/dist/components/{p-DBU9pozN.js.map → p-D6V-5C-q.js.map} +1 -1
  185. package/dist/components/{p-BsgE1XSo.js → p-DB0JIURq.js} +3 -3
  186. package/dist/components/{p-BsgE1XSo.js.map → p-DB0JIURq.js.map} +1 -1
  187. package/dist/components/{p-BLaYz0fg.js → p-DGfaskg8.js} +41 -2
  188. package/dist/{cjs/index-DLcBertx.js.map → components/p-DGfaskg8.js.map} +1 -1
  189. package/dist/components/{p-DM7MkAeM.js → p-DH_N7BmJ.js} +3 -3
  190. package/dist/components/{p-DM7MkAeM.js.map → p-DH_N7BmJ.js.map} +1 -1
  191. package/dist/components/{p-E9N_VrqF.js → p-DKrNvBnR.js} +4 -4
  192. package/dist/components/{p-E9N_VrqF.js.map → p-DKrNvBnR.js.map} +1 -1
  193. package/dist/components/{p-D3Bwv9pc.js → p-DQelCHA1.js} +3 -3
  194. package/dist/components/{p-D3Bwv9pc.js.map → p-DQelCHA1.js.map} +1 -1
  195. package/dist/components/{p-DzjemSiz.js → p-D_FN4Kk9.js} +5 -5
  196. package/dist/components/{p-DzjemSiz.js.map → p-D_FN4Kk9.js.map} +1 -1
  197. package/dist/components/{p-BCnQRL5U.js → p-DdUN8Nyq.js} +3 -3
  198. package/dist/components/{p-BCnQRL5U.js.map → p-DdUN8Nyq.js.map} +1 -1
  199. package/dist/components/{p-B2HQAHKa.js → p-DlhoTsFL.js} +13 -13
  200. package/dist/components/{p-B2HQAHKa.js.map → p-DlhoTsFL.js.map} +1 -1
  201. package/dist/components/{p-CKjBhtCw.js → p-DotQilh1.js} +3 -3
  202. package/dist/components/{p-CKjBhtCw.js.map → p-DotQilh1.js.map} +1 -1
  203. package/dist/components/{p-D0gUHAYk.js → p-Dq366TSF.js} +6 -6
  204. package/dist/components/{p-D0gUHAYk.js.map → p-Dq366TSF.js.map} +1 -1
  205. package/dist/components/{p-CXQeKCvt.js → p-DqLlg601.js} +3 -3
  206. package/dist/components/{p-CXQeKCvt.js.map → p-DqLlg601.js.map} +1 -1
  207. package/dist/components/{p-DoonhL8V.js → p-DsQQc4fX.js} +3 -3
  208. package/dist/components/{p-DoonhL8V.js.map → p-DsQQc4fX.js.map} +1 -1
  209. package/dist/components/{p-ByT0XK4K.js → p-G3k1MoRj.js} +3 -3
  210. package/dist/components/{p-ByT0XK4K.js.map → p-G3k1MoRj.js.map} +1 -1
  211. package/dist/components/{p-DXrjsnN9.js → p-JHnBqvcc.js} +4 -4
  212. package/dist/components/{p-DXrjsnN9.js.map → p-JHnBqvcc.js.map} +1 -1
  213. package/dist/components/{p-B63gPh_H.js → p-NWVymRA0.js} +5 -5
  214. package/dist/components/{p-B63gPh_H.js.map → p-NWVymRA0.js.map} +1 -1
  215. package/dist/components/{p-arzM1qix.js → p-T530_mKV.js} +4 -4
  216. package/dist/components/{p-arzM1qix.js.map → p-T530_mKV.js.map} +1 -1
  217. package/dist/components/{p-DsB6uMsf.js → p-TilMkuQF.js} +4 -4
  218. package/dist/components/{p-DsB6uMsf.js.map → p-TilMkuQF.js.map} +1 -1
  219. package/dist/components/{p-DUlcd7hB.js → p-Xxbmyx0y.js} +3 -3
  220. package/dist/components/{p-DUlcd7hB.js.map → p-Xxbmyx0y.js.map} +1 -1
  221. package/dist/components/p-accordion.js +3 -3
  222. package/dist/components/p-attachment.js +7 -7
  223. package/dist/components/p-avatar-group.js +1 -1
  224. package/dist/components/p-avatar.js +1 -1
  225. package/dist/components/{p-Bq6M4UX0.js → p-b-akl0pl.js} +5 -5
  226. package/dist/components/{p-Bq6M4UX0.js.map → p-b-akl0pl.js.map} +1 -1
  227. package/dist/components/p-backdrop.js +1 -1
  228. package/dist/components/p-badge.js +1 -1
  229. package/dist/components/p-button-group.js +1 -1
  230. package/dist/components/p-button.js +1 -1
  231. package/dist/components/p-calendar.js +1 -1
  232. package/dist/components/p-card-body.js +1 -1
  233. package/dist/components/p-card-container.js +1 -1
  234. package/dist/components/p-card-header.js +4 -4
  235. package/dist/components/p-checkbox.js +1 -1
  236. package/dist/components/p-content-slider.js +2 -2
  237. package/dist/components/p-counter.js +1 -1
  238. package/dist/components/p-cropper.js +2 -2
  239. package/dist/components/p-datepicker.js +12 -12
  240. package/dist/components/p-divider.js +1 -1
  241. package/dist/components/p-drawer-body.js +1 -1
  242. package/dist/components/p-drawer-container.js +1 -1
  243. package/dist/components/p-drawer-header.js +1 -1
  244. package/dist/components/p-drawer.js +8 -8
  245. package/dist/components/p-dropdown-menu-container.js +1 -1
  246. package/dist/components/p-dropdown-menu-item.js +1 -1
  247. package/dist/components/p-dropdown.js +1 -1
  248. package/dist/components/p-empty-state.js +1 -1
  249. package/dist/components/p-field-container.js +1 -1
  250. package/dist/components/p-field.js +1 -1
  251. package/dist/components/p-floating-menu-container.js +1 -1
  252. package/dist/components/p-floating-menu-item.js +1 -1
  253. package/dist/components/p-helper.js +1 -1
  254. package/dist/components/p-iban-icon.js +1 -1
  255. package/dist/components/p-icon-deprecated.js +1 -1
  256. package/dist/components/p-icon.js +1 -1
  257. package/dist/components/p-illustration-deprecated.js +1 -1
  258. package/dist/components/p-illustration.js +1 -1
  259. package/dist/components/p-info-panel.js +2 -2
  260. package/dist/components/p-input-error.js +1 -1
  261. package/dist/components/p-input-group.js +6 -6
  262. package/dist/components/p-label.js +2 -2
  263. package/dist/components/p-layout.js +1 -1
  264. package/dist/components/p-loader.js +1 -1
  265. package/dist/components/p-modal-body.js +1 -1
  266. package/dist/components/p-modal-container.js +1 -1
  267. package/dist/components/p-modal-footer.js +1 -1
  268. package/dist/components/p-modal-header.js +1 -1
  269. package/dist/components/p-modal.js +11 -11
  270. package/dist/components/{p-BfNx0tEt.js → p-nXeaErRF.js} +14 -14
  271. package/dist/components/{p-BfNx0tEt.js.map → p-nXeaErRF.js.map} +1 -1
  272. package/dist/components/p-navbar.js +8 -8
  273. package/dist/components/p-navbar.js.map +1 -1
  274. package/dist/components/p-navigation-item.js +4 -4
  275. package/dist/components/p-navigation-section.js +2 -2
  276. package/dist/components/p-navigation-title.js +1 -1
  277. package/dist/components/p-pagination-pages-item.js +1 -1
  278. package/dist/components/p-pagination-pages.js +1 -1
  279. package/dist/components/p-pagination-size.js +1 -1
  280. package/dist/components/p-pagination.js +1 -1
  281. package/dist/components/p-portal.js +1 -1
  282. package/dist/components/p-profile.js +7 -7
  283. package/dist/components/p-radio.js +1 -1
  284. package/dist/components/p-segment-container.js +1 -1
  285. package/dist/components/p-segment-item.js +1 -1
  286. package/dist/components/p-select.js +14 -14
  287. package/dist/components/p-slider-indicator.js +1 -1
  288. package/dist/components/p-smile.js +1 -1
  289. package/dist/components/p-status.js +2 -2
  290. package/dist/components/p-stepper-item.js +2 -2
  291. package/dist/components/p-stepper-line.js +1 -1
  292. package/dist/components/p-stepper.js +2 -2
  293. package/dist/components/p-tab-container.js +2 -2
  294. package/dist/components/p-tab-item.js +1 -1
  295. package/dist/components/p-table-cell.js +1 -1
  296. package/dist/components/p-table-column.js +1 -1
  297. package/dist/components/p-table-container.js +1 -1
  298. package/dist/components/p-table-footer.js +1 -1
  299. package/dist/components/p-table-header.js +1 -1
  300. package/dist/components/p-table-row-action.js +1 -1
  301. package/dist/components/p-table-row-actions-container.js +1 -1
  302. package/dist/components/p-table-row.js +1 -1
  303. package/dist/components/p-table.js +31 -31
  304. package/dist/components/p-toast-container.js +1 -1
  305. package/dist/components/p-toast.js +4 -4
  306. package/dist/components/p-toggle.js +1 -1
  307. package/dist/components/p-tooltip.js +1 -1
  308. package/dist/esm/{index-I9JY9uxk.js → index-CayVqENR.js} +41 -2
  309. package/dist/esm/index-CayVqENR.js.map +1 -0
  310. package/dist/esm/loader.js +3 -3
  311. package/dist/esm/p-accordion.entry.js +1 -1
  312. package/dist/esm/p-attachment.entry.js +1 -1
  313. package/dist/esm/p-avatar-group.entry.js +1 -1
  314. package/dist/esm/p-avatar.entry.js +1 -1
  315. package/dist/esm/p-backdrop.entry.js +1 -1
  316. package/dist/esm/p-badge_3.entry.js +1 -1
  317. package/dist/esm/p-button-group.entry.js +1 -1
  318. package/dist/esm/p-button_3.entry.js +1 -1
  319. package/dist/esm/p-calendar.entry.js +1 -1
  320. package/dist/esm/p-card-body.entry.js +1 -1
  321. package/dist/esm/p-card-container.entry.js +1 -1
  322. package/dist/esm/p-card-header.entry.js +1 -1
  323. package/dist/esm/p-checkbox_4.entry.js +1 -1
  324. package/dist/esm/p-content-slider.entry.js +1 -1
  325. package/dist/esm/p-counter.entry.js +1 -1
  326. package/dist/esm/p-cropper.entry.js +1 -1
  327. package/dist/esm/p-datepicker.entry.js +1 -1
  328. package/dist/esm/p-divider.entry.js +1 -1
  329. package/dist/esm/p-drawer-body_3.entry.js +1 -1
  330. package/dist/esm/p-drawer.entry.js +1 -1
  331. package/dist/esm/p-empty-state_9.entry.js +1 -1
  332. package/dist/esm/p-field_2.entry.js +1 -1
  333. package/dist/esm/p-helper_2.entry.js +1 -1
  334. package/dist/esm/p-iban-icon.entry.js +1 -1
  335. package/dist/esm/p-icon-deprecated.entry.js +1 -1
  336. package/dist/esm/p-illustration-deprecated.entry.js +1 -1
  337. package/dist/esm/p-illustration.entry.js +1 -1
  338. package/dist/esm/p-info-panel.entry.js +1 -1
  339. package/dist/esm/p-input-error.entry.js +1 -1
  340. package/dist/esm/p-input-group.entry.js +1 -1
  341. package/dist/esm/p-label.entry.js +1 -1
  342. package/dist/esm/p-layout.entry.js +1 -1
  343. package/dist/esm/p-modal-body_4.entry.js +1 -1
  344. package/dist/esm/p-modal.entry.js +1 -1
  345. package/dist/esm/p-navbar.entry.js +3 -3
  346. package/dist/esm/p-navbar.entry.js.map +1 -1
  347. package/dist/esm/p-navigation-item.entry.js +1 -1
  348. package/dist/esm/p-navigation-section.entry.js +1 -1
  349. package/dist/esm/p-navigation-title.entry.js +1 -1
  350. package/dist/esm/p-pagination-pages-item.entry.js +1 -1
  351. package/dist/esm/p-pagination_3.entry.js +1 -1
  352. package/dist/esm/p-portal.entry.js +1 -1
  353. package/dist/esm/p-profile.entry.js +1 -1
  354. package/dist/esm/p-radio.entry.js +1 -1
  355. package/dist/esm/p-select.entry.js +1 -1
  356. package/dist/esm/p-slider-indicator.entry.js +1 -1
  357. package/dist/esm/p-smile.entry.js +1 -1
  358. package/dist/esm/p-status.entry.js +1 -1
  359. package/dist/esm/p-stepper-item.entry.js +1 -1
  360. package/dist/esm/p-stepper-line.entry.js +1 -1
  361. package/dist/esm/p-stepper.entry.js +1 -1
  362. package/dist/esm/p-tab-container.entry.js +1 -1
  363. package/dist/esm/p-tab-item.entry.js +1 -1
  364. package/dist/esm/p-table-column.entry.js +1 -1
  365. package/dist/esm/p-table-row-action.entry.js +1 -1
  366. package/dist/esm/p-table.entry.js +1 -1
  367. package/dist/esm/p-toast-container.entry.js +1 -1
  368. package/dist/esm/p-toast.entry.js +1 -1
  369. package/dist/esm/p-toggle.entry.js +1 -1
  370. package/dist/esm/paperless.js +3 -3
  371. package/dist/index.html +1 -1
  372. package/dist/paperless/{p-bfaaeb71.entry.js → p-00c5e98b.entry.js} +2 -2
  373. package/dist/paperless/{p-4e74384b.entry.js → p-04cc6ca5.entry.js} +2 -2
  374. package/dist/{build/p-7ad4fe38.entry.js → paperless/p-09d68fa3.entry.js} +2 -2
  375. package/dist/paperless/{p-a6de5f3e.entry.js → p-17d9bca9.entry.js} +2 -2
  376. package/dist/paperless/{p-3550e63e.entry.js → p-257e6c1a.entry.js} +2 -2
  377. package/dist/{build/p-5769eaeb.entry.js → paperless/p-2a7f51ce.entry.js} +2 -2
  378. package/dist/paperless/{p-4944d81e.entry.js → p-2da8868f.entry.js} +2 -2
  379. package/dist/paperless/{p-f24e232c.entry.js → p-3a763793.entry.js} +2 -2
  380. package/dist/{build/p-ca580a2b.entry.js → paperless/p-3c20b3bc.entry.js} +2 -2
  381. package/dist/{build/p-57625bdf.entry.js → paperless/p-42802edb.entry.js} +2 -2
  382. package/dist/paperless/{p-8752ec1d.entry.js → p-49fb85f1.entry.js} +2 -2
  383. package/dist/paperless/{p-e765e24b.entry.js → p-4a836eeb.entry.js} +2 -2
  384. package/dist/{build/p-97c2bdd1.entry.js → paperless/p-4c41dd15.entry.js} +2 -2
  385. package/dist/paperless/{p-798c697f.entry.js → p-4d52fa18.entry.js} +2 -2
  386. package/dist/{build/p-4202a4c0.entry.js → paperless/p-4ea184f4.entry.js} +2 -2
  387. package/dist/paperless/{p-6b4a23c4.entry.js → p-51c1bb21.entry.js} +2 -2
  388. package/dist/paperless/{p-e4bb6038.entry.js → p-5e9f3dad.entry.js} +2 -2
  389. package/dist/paperless/{p-a8c8f291.entry.js → p-60d65dee.entry.js} +2 -2
  390. package/dist/{build/p-e9c85340.entry.js → paperless/p-63ad9ae0.entry.js} +2 -2
  391. package/dist/paperless/{p-1775e544.entry.js → p-6523c93f.entry.js} +2 -2
  392. package/dist/paperless/{p-68a7ab02.entry.js → p-65fdfe75.entry.js} +2 -2
  393. package/dist/paperless/{p-7e902bc6.entry.js → p-691848af.entry.js} +2 -2
  394. package/dist/paperless/{p-244968bd.entry.js → p-71245c59.entry.js} +2 -2
  395. package/dist/paperless/{p-c3a08f08.entry.js → p-7bf73fad.entry.js} +2 -2
  396. package/dist/{build/p-9a4ba6b1.entry.js → paperless/p-8a0e50c1.entry.js} +2 -2
  397. package/dist/{build/p-76edae0b.entry.js → paperless/p-9026c8b5.entry.js} +2 -2
  398. package/dist/paperless/{p-2e7078c8.entry.js → p-90d8cf17.entry.js} +3 -3
  399. package/dist/{build/p-dbab1545.entry.js → paperless/p-96bfe3fb.entry.js} +2 -2
  400. package/dist/{build/p-089318c5.entry.js → paperless/p-9755ed13.entry.js} +2 -2
  401. package/dist/paperless/{p-8ed1a47e.entry.js → p-9c504fd7.entry.js} +2 -2
  402. package/dist/{build/p-cd6138d8.entry.js → paperless/p-9d810878.entry.js} +2 -2
  403. package/dist/paperless/p-CayVqENR.js +3 -0
  404. package/dist/paperless/p-CayVqENR.js.map +1 -0
  405. package/dist/paperless/{p-0b935fc3.entry.js → p-a1bb0d3f.entry.js} +2 -2
  406. package/dist/paperless/{p-4e704926.entry.js → p-a5c294f3.entry.js} +2 -2
  407. package/dist/paperless/{p-c4197bfe.entry.js → p-a6d33f42.entry.js} +2 -2
  408. package/dist/paperless/{p-76642559.entry.js → p-a89e2da7.entry.js} +2 -2
  409. package/dist/paperless/{p-754beb82.entry.js → p-ad6acccb.entry.js} +2 -2
  410. package/dist/{build/p-8144d85f.entry.js → paperless/p-ae860e97.entry.js} +2 -2
  411. package/dist/paperless/{p-e1ae79c2.entry.js → p-aedd038d.entry.js} +2 -2
  412. package/dist/paperless/{p-0f534d8c.entry.js → p-b1afbc83.entry.js} +2 -2
  413. package/dist/paperless/{p-8ad81b8b.entry.js → p-b436d58e.entry.js} +2 -2
  414. package/dist/paperless/{p-07801fb9.entry.js → p-b53b3a80.entry.js} +2 -2
  415. package/dist/paperless/{p-13f4e43c.entry.js → p-b62a5ae0.entry.js} +2 -2
  416. package/dist/paperless/{p-769262da.entry.js → p-b7158304.entry.js} +2 -2
  417. package/dist/paperless/{p-3299ff05.entry.js → p-b7308da5.entry.js} +2 -2
  418. package/dist/paperless/{p-136616a3.entry.js → p-c0db95db.entry.js} +2 -2
  419. package/dist/paperless/{p-6a92ae6e.entry.js → p-c1071220.entry.js} +2 -2
  420. package/dist/{build/p-c23863a0.entry.js → paperless/p-c50053de.entry.js} +2 -2
  421. package/dist/{build/p-b8604040.entry.js → paperless/p-c6b6872f.entry.js} +2 -2
  422. package/dist/{build/p-8a7d3603.entry.js → paperless/p-d6f25ca1.entry.js} +2 -2
  423. package/dist/paperless/{p-41303d86.entry.js → p-d891f60b.entry.js} +2 -2
  424. package/dist/paperless/{p-f196c632.entry.js → p-e223339d.entry.js} +2 -2
  425. package/dist/paperless/{p-3efee0f8.entry.js → p-ea3b1122.entry.js} +2 -2
  426. package/dist/paperless/{p-1169b9bf.entry.js → p-efb850f2.entry.js} +2 -2
  427. package/dist/paperless/p-f10e2591.entry.js +2 -0
  428. package/dist/paperless/p-f10e2591.entry.js.map +1 -0
  429. package/dist/paperless/{p-533abd68.entry.js → p-f9ad3e27.entry.js} +2 -2
  430. package/dist/{build/p-b7040bb6.entry.js → paperless/p-fbb10dd2.entry.js} +2 -2
  431. package/dist/paperless/{p-3c299655.entry.js → p-fcb12f74.entry.js} +2 -2
  432. package/dist/{build/p-b0582876.entry.js → paperless/p-fd9774f5.entry.js} +2 -2
  433. package/dist/paperless/p-navbar.entry.esm.js.map +1 -1
  434. package/dist/paperless/paperless.esm.js +1 -1
  435. package/dist/sw.js +1 -1
  436. package/dist/sw.js.map +1 -1
  437. package/package.json +1 -1
  438. package/dist/build/p-I9JY9uxk.js +0 -3
  439. package/dist/build/p-I9JY9uxk.js.map +0 -1
  440. package/dist/build/p-cf93fe90.entry.js +0 -2
  441. package/dist/build/p-cf93fe90.entry.js.map +0 -1
  442. package/dist/components/p-BLaYz0fg.js.map +0 -1
  443. package/dist/esm/index-I9JY9uxk.js.map +0 -1
  444. package/dist/paperless/p-I9JY9uxk.js +0 -3
  445. package/dist/paperless/p-I9JY9uxk.js.map +0 -1
  446. package/dist/paperless/p-cf93fe90.entry.js +0 -2
  447. package/dist/paperless/p-cf93fe90.entry.js.map +0 -1
  448. /package/dist/build/{p-bfaaeb71.entry.js.map → p-00c5e98b.entry.js.map} +0 -0
  449. /package/dist/build/{p-4e74384b.entry.js.map → p-04cc6ca5.entry.js.map} +0 -0
  450. /package/dist/build/{p-7ad4fe38.entry.js.map → p-09d68fa3.entry.js.map} +0 -0
  451. /package/dist/build/{p-a6de5f3e.entry.js.map → p-17d9bca9.entry.js.map} +0 -0
  452. /package/dist/build/{p-3550e63e.entry.js.map → p-257e6c1a.entry.js.map} +0 -0
  453. /package/dist/build/{p-5769eaeb.entry.js.map → p-2a7f51ce.entry.js.map} +0 -0
  454. /package/dist/build/{p-4944d81e.entry.js.map → p-2da8868f.entry.js.map} +0 -0
  455. /package/dist/build/{p-f24e232c.entry.js.map → p-3a763793.entry.js.map} +0 -0
  456. /package/dist/build/{p-ca580a2b.entry.js.map → p-3c20b3bc.entry.js.map} +0 -0
  457. /package/dist/build/{p-57625bdf.entry.js.map → p-42802edb.entry.js.map} +0 -0
  458. /package/dist/build/{p-8752ec1d.entry.js.map → p-49fb85f1.entry.js.map} +0 -0
  459. /package/dist/build/{p-e765e24b.entry.js.map → p-4a836eeb.entry.js.map} +0 -0
  460. /package/dist/build/{p-97c2bdd1.entry.js.map → p-4c41dd15.entry.js.map} +0 -0
  461. /package/dist/build/{p-798c697f.entry.js.map → p-4d52fa18.entry.js.map} +0 -0
  462. /package/dist/build/{p-4202a4c0.entry.js.map → p-4ea184f4.entry.js.map} +0 -0
  463. /package/dist/build/{p-6b4a23c4.entry.js.map → p-51c1bb21.entry.js.map} +0 -0
  464. /package/dist/build/{p-e4bb6038.entry.js.map → p-5e9f3dad.entry.js.map} +0 -0
  465. /package/dist/build/{p-a8c8f291.entry.js.map → p-60d65dee.entry.js.map} +0 -0
  466. /package/dist/build/{p-e9c85340.entry.js.map → p-63ad9ae0.entry.js.map} +0 -0
  467. /package/dist/build/{p-1775e544.entry.js.map → p-6523c93f.entry.js.map} +0 -0
  468. /package/dist/build/{p-68a7ab02.entry.js.map → p-65fdfe75.entry.js.map} +0 -0
  469. /package/dist/build/{p-7e902bc6.entry.js.map → p-691848af.entry.js.map} +0 -0
  470. /package/dist/build/{p-244968bd.entry.js.map → p-71245c59.entry.js.map} +0 -0
  471. /package/dist/build/{p-c3a08f08.entry.js.map → p-7bf73fad.entry.js.map} +0 -0
  472. /package/dist/build/{p-9a4ba6b1.entry.js.map → p-8a0e50c1.entry.js.map} +0 -0
  473. /package/dist/build/{p-76edae0b.entry.js.map → p-9026c8b5.entry.js.map} +0 -0
  474. /package/dist/build/{p-2e7078c8.entry.js.map → p-90d8cf17.entry.js.map} +0 -0
  475. /package/dist/build/{p-dbab1545.entry.js.map → p-96bfe3fb.entry.js.map} +0 -0
  476. /package/dist/build/{p-089318c5.entry.js.map → p-9755ed13.entry.js.map} +0 -0
  477. /package/dist/build/{p-8ed1a47e.entry.js.map → p-9c504fd7.entry.js.map} +0 -0
  478. /package/dist/build/{p-cd6138d8.entry.js.map → p-9d810878.entry.js.map} +0 -0
  479. /package/dist/build/{p-0b935fc3.entry.js.map → p-a1bb0d3f.entry.js.map} +0 -0
  480. /package/dist/build/{p-4e704926.entry.js.map → p-a5c294f3.entry.js.map} +0 -0
  481. /package/dist/build/{p-c4197bfe.entry.js.map → p-a6d33f42.entry.js.map} +0 -0
  482. /package/dist/build/{p-76642559.entry.js.map → p-a89e2da7.entry.js.map} +0 -0
  483. /package/dist/build/{p-754beb82.entry.js.map → p-ad6acccb.entry.js.map} +0 -0
  484. /package/dist/build/{p-8144d85f.entry.js.map → p-ae860e97.entry.js.map} +0 -0
  485. /package/dist/build/{p-e1ae79c2.entry.js.map → p-aedd038d.entry.js.map} +0 -0
  486. /package/dist/build/{p-0f534d8c.entry.js.map → p-b1afbc83.entry.js.map} +0 -0
  487. /package/dist/build/{p-8ad81b8b.entry.js.map → p-b436d58e.entry.js.map} +0 -0
  488. /package/dist/build/{p-07801fb9.entry.js.map → p-b53b3a80.entry.js.map} +0 -0
  489. /package/dist/build/{p-13f4e43c.entry.js.map → p-b62a5ae0.entry.js.map} +0 -0
  490. /package/dist/build/{p-769262da.entry.js.map → p-b7158304.entry.js.map} +0 -0
  491. /package/dist/build/{p-3299ff05.entry.js.map → p-b7308da5.entry.js.map} +0 -0
  492. /package/dist/build/{p-136616a3.entry.js.map → p-c0db95db.entry.js.map} +0 -0
  493. /package/dist/build/{p-6a92ae6e.entry.js.map → p-c1071220.entry.js.map} +0 -0
  494. /package/dist/build/{p-c23863a0.entry.js.map → p-c50053de.entry.js.map} +0 -0
  495. /package/dist/build/{p-b8604040.entry.js.map → p-c6b6872f.entry.js.map} +0 -0
  496. /package/dist/build/{p-8a7d3603.entry.js.map → p-d6f25ca1.entry.js.map} +0 -0
  497. /package/dist/build/{p-41303d86.entry.js.map → p-d891f60b.entry.js.map} +0 -0
  498. /package/dist/build/{p-f196c632.entry.js.map → p-e223339d.entry.js.map} +0 -0
  499. /package/dist/build/{p-3efee0f8.entry.js.map → p-ea3b1122.entry.js.map} +0 -0
  500. /package/dist/build/{p-1169b9bf.entry.js.map → p-efb850f2.entry.js.map} +0 -0
  501. /package/dist/build/{p-533abd68.entry.js.map → p-f9ad3e27.entry.js.map} +0 -0
  502. /package/dist/build/{p-b7040bb6.entry.js.map → p-fbb10dd2.entry.js.map} +0 -0
  503. /package/dist/build/{p-3c299655.entry.js.map → p-fcb12f74.entry.js.map} +0 -0
  504. /package/dist/build/{p-b0582876.entry.js.map → p-fd9774f5.entry.js.map} +0 -0
  505. /package/dist/paperless/{p-bfaaeb71.entry.js.map → p-00c5e98b.entry.js.map} +0 -0
  506. /package/dist/paperless/{p-4e74384b.entry.js.map → p-04cc6ca5.entry.js.map} +0 -0
  507. /package/dist/paperless/{p-7ad4fe38.entry.js.map → p-09d68fa3.entry.js.map} +0 -0
  508. /package/dist/paperless/{p-a6de5f3e.entry.js.map → p-17d9bca9.entry.js.map} +0 -0
  509. /package/dist/paperless/{p-3550e63e.entry.js.map → p-257e6c1a.entry.js.map} +0 -0
  510. /package/dist/paperless/{p-5769eaeb.entry.js.map → p-2a7f51ce.entry.js.map} +0 -0
  511. /package/dist/paperless/{p-4944d81e.entry.js.map → p-2da8868f.entry.js.map} +0 -0
  512. /package/dist/paperless/{p-f24e232c.entry.js.map → p-3a763793.entry.js.map} +0 -0
  513. /package/dist/paperless/{p-ca580a2b.entry.js.map → p-3c20b3bc.entry.js.map} +0 -0
  514. /package/dist/paperless/{p-57625bdf.entry.js.map → p-42802edb.entry.js.map} +0 -0
  515. /package/dist/paperless/{p-8752ec1d.entry.js.map → p-49fb85f1.entry.js.map} +0 -0
  516. /package/dist/paperless/{p-e765e24b.entry.js.map → p-4a836eeb.entry.js.map} +0 -0
  517. /package/dist/paperless/{p-97c2bdd1.entry.js.map → p-4c41dd15.entry.js.map} +0 -0
  518. /package/dist/paperless/{p-798c697f.entry.js.map → p-4d52fa18.entry.js.map} +0 -0
  519. /package/dist/paperless/{p-4202a4c0.entry.js.map → p-4ea184f4.entry.js.map} +0 -0
  520. /package/dist/paperless/{p-6b4a23c4.entry.js.map → p-51c1bb21.entry.js.map} +0 -0
  521. /package/dist/paperless/{p-e4bb6038.entry.js.map → p-5e9f3dad.entry.js.map} +0 -0
  522. /package/dist/paperless/{p-a8c8f291.entry.js.map → p-60d65dee.entry.js.map} +0 -0
  523. /package/dist/paperless/{p-e9c85340.entry.js.map → p-63ad9ae0.entry.js.map} +0 -0
  524. /package/dist/paperless/{p-1775e544.entry.js.map → p-6523c93f.entry.js.map} +0 -0
  525. /package/dist/paperless/{p-68a7ab02.entry.js.map → p-65fdfe75.entry.js.map} +0 -0
  526. /package/dist/paperless/{p-7e902bc6.entry.js.map → p-691848af.entry.js.map} +0 -0
  527. /package/dist/paperless/{p-244968bd.entry.js.map → p-71245c59.entry.js.map} +0 -0
  528. /package/dist/paperless/{p-c3a08f08.entry.js.map → p-7bf73fad.entry.js.map} +0 -0
  529. /package/dist/paperless/{p-9a4ba6b1.entry.js.map → p-8a0e50c1.entry.js.map} +0 -0
  530. /package/dist/paperless/{p-76edae0b.entry.js.map → p-9026c8b5.entry.js.map} +0 -0
  531. /package/dist/paperless/{p-2e7078c8.entry.js.map → p-90d8cf17.entry.js.map} +0 -0
  532. /package/dist/paperless/{p-dbab1545.entry.js.map → p-96bfe3fb.entry.js.map} +0 -0
  533. /package/dist/paperless/{p-089318c5.entry.js.map → p-9755ed13.entry.js.map} +0 -0
  534. /package/dist/paperless/{p-8ed1a47e.entry.js.map → p-9c504fd7.entry.js.map} +0 -0
  535. /package/dist/paperless/{p-cd6138d8.entry.js.map → p-9d810878.entry.js.map} +0 -0
  536. /package/dist/paperless/{p-0b935fc3.entry.js.map → p-a1bb0d3f.entry.js.map} +0 -0
  537. /package/dist/paperless/{p-4e704926.entry.js.map → p-a5c294f3.entry.js.map} +0 -0
  538. /package/dist/paperless/{p-c4197bfe.entry.js.map → p-a6d33f42.entry.js.map} +0 -0
  539. /package/dist/paperless/{p-76642559.entry.js.map → p-a89e2da7.entry.js.map} +0 -0
  540. /package/dist/paperless/{p-754beb82.entry.js.map → p-ad6acccb.entry.js.map} +0 -0
  541. /package/dist/paperless/{p-8144d85f.entry.js.map → p-ae860e97.entry.js.map} +0 -0
  542. /package/dist/paperless/{p-e1ae79c2.entry.js.map → p-aedd038d.entry.js.map} +0 -0
  543. /package/dist/paperless/{p-0f534d8c.entry.js.map → p-b1afbc83.entry.js.map} +0 -0
  544. /package/dist/paperless/{p-8ad81b8b.entry.js.map → p-b436d58e.entry.js.map} +0 -0
  545. /package/dist/paperless/{p-07801fb9.entry.js.map → p-b53b3a80.entry.js.map} +0 -0
  546. /package/dist/paperless/{p-13f4e43c.entry.js.map → p-b62a5ae0.entry.js.map} +0 -0
  547. /package/dist/paperless/{p-769262da.entry.js.map → p-b7158304.entry.js.map} +0 -0
  548. /package/dist/paperless/{p-3299ff05.entry.js.map → p-b7308da5.entry.js.map} +0 -0
  549. /package/dist/paperless/{p-136616a3.entry.js.map → p-c0db95db.entry.js.map} +0 -0
  550. /package/dist/paperless/{p-6a92ae6e.entry.js.map → p-c1071220.entry.js.map} +0 -0
  551. /package/dist/paperless/{p-c23863a0.entry.js.map → p-c50053de.entry.js.map} +0 -0
  552. /package/dist/paperless/{p-b8604040.entry.js.map → p-c6b6872f.entry.js.map} +0 -0
  553. /package/dist/paperless/{p-8a7d3603.entry.js.map → p-d6f25ca1.entry.js.map} +0 -0
  554. /package/dist/paperless/{p-41303d86.entry.js.map → p-d891f60b.entry.js.map} +0 -0
  555. /package/dist/paperless/{p-f196c632.entry.js.map → p-e223339d.entry.js.map} +0 -0
  556. /package/dist/paperless/{p-3efee0f8.entry.js.map → p-ea3b1122.entry.js.map} +0 -0
  557. /package/dist/paperless/{p-1169b9bf.entry.js.map → p-efb850f2.entry.js.map} +0 -0
  558. /package/dist/paperless/{p-533abd68.entry.js.map → p-f9ad3e27.entry.js.map} +0 -0
  559. /package/dist/paperless/{p-b7040bb6.entry.js.map → p-fbb10dd2.entry.js.map} +0 -0
  560. /package/dist/paperless/{p-3c299655.entry.js.map → p-fcb12f74.entry.js.map} +0 -0
  561. /package/dist/paperless/{p-b0582876.entry.js.map → p-fd9774f5.entry.js.map} +0 -0
@@ -1,3 +1,3 @@
1
- import{r as t,c as s,h as i,H as e}from"./p-I9JY9uxk.js";import{c as n}from"./p-ChV9xqsO.js";const h=typeof window!=="undefined"&&typeof window.document!=="undefined";const o=h?window:{};const r=h?"ontouchstart"in o.document.documentElement:false;const a=h?"PointerEvent"in o:false;const c="cropper";const l=`${c}-canvas`;const f=`${c}-crosshair`;const u=`${c}-grid`;const d=`${c}-handle`;const p=`${c}-image`;const b=`${c}-selection`;const m=`${c}-shade`;const g=`${c}-viewer`;const w="select";const v="move";const $="scale";const k="rotate";const y="transform";const x="none";const z="n-resize";const M="e-resize";const C="s-resize";const A="w-resize";const j="ne-resize";const O="nw-resize";const S="se-resize";const T="sw-resize";const E="action";const I=r?"touchend touchcancel":"mouseup";const N=r?"touchmove":"mousemove";const _=r?"touchstart":"mousedown";const R=a?"pointerdown":_;const X=a?"pointermove":N;const Y=a?"pointerup pointercancel":I;const P="error";const W="keydown";const D="load";const L="wheel";const H="action";const U="actionend";const B="actionmove";const F="actionstart";const q="change";const J="transform";function K(t){return typeof t==="string"}const V=Number.isNaN||o.isNaN;function Z(t){return typeof t==="number"&&!V(t)}function G(t){return Z(t)&&t>0&&t<Infinity}function Q(t){return typeof t==="undefined"}function tt(t){return typeof t==="object"&&t!==null}const{hasOwnProperty:st}=Object.prototype;function it(t){if(!tt(t)){return false}try{const{constructor:s}=t;const{prototype:i}=s;return s&&i&&st.call(i,"isPrototypeOf")}catch(t){return false}}function et(t){return typeof t==="function"}function nt(t){return typeof t==="object"&&t!==null&&t.nodeType===1}const ht=/([a-z\d])([A-Z])/g;function ot(t){return String(t).replace(ht,"$1-$2").toLowerCase()}const rt=/-[A-z\d]/g;function at(t){return t.replace(rt,(t=>t.slice(1).toUpperCase()))}const ct=/\s\s*/;function lt(t,s,i,e){s.trim().split(ct).forEach((s=>{t.removeEventListener(s,i,e)}))}function ft(t,s,i,e){s.trim().split(ct).forEach((s=>{t.addEventListener(s,i,e)}))}function ut(t,s,i,e){ft(t,s,i,Object.assign(Object.assign({},e),{once:true}))}const dt={bubbles:true,cancelable:true,composed:true};function pt(t,s,i,e){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},dt),{detail:i}),e)))}const bt=Promise.resolve();function mt(t,s){return s?bt.then(t?s.bind(t):s):bt}function gt(t){const{documentElement:s}=t.ownerDocument;const i=t.getBoundingClientRect();return{left:i.left+(o.pageXOffset-s.clientLeft),top:i.top+(o.pageYOffset-s.clientTop)}}const wt=/deg|g?rad|turn$/i;function vt(t){const s=parseFloat(t)||0;if(s!==0){const[i="rad"]=String(t).match(wt)||[];switch(i.toLowerCase()){case"deg":return s/360*(Math.PI*2);case"grad":return s/400*(Math.PI*2);case"turn":return s*(Math.PI*2)}}return s}const $t="contain";const kt="cover";function yt(t,s=$t){const{aspectRatio:i}=t;let{width:e,height:n}=t;const h=G(e);const o=G(n);if(h&&o){const t=n*i;if(s===$t&&t>e||s===kt&&t<e){n=e/i}else{e=n*i}}else if(h){n=e/i}else if(o){e=n*i}return{width:e,height:n}}function xt(t,...s){if(s.length===0){return t}const[i,e,n,h,o,r]=t;const[a,c,l,f,u,d]=s[0];t=[i*a+n*c,e*a+h*c,i*l+n*f,e*l+h*f,i*u+n*d+o,e*u+h*d+r];return xt(t,...s.slice(1))}var zt=`:host([hidden]){display:none!important}`;const Mt=/left|top|width|height/i;const Ct="open";const At=new WeakMap;const jt=new WeakMap;const Ot=new Map;const St=o.document&&Array.isArray(o.document.adoptedStyleSheets)&&"replaceSync"in o.CSSStyleSheet.prototype;class Tt extends HTMLElement{get $sharedStyle(){return`${this.themeColor?`:host{--theme-color: ${this.themeColor};}`:""}${zt}`}constructor(){var t,s;super();this.shadowRootMode=Ct;this.slottable=true;const i=(s=(t=Object.getPrototypeOf(this))===null||t===void 0?void 0:t.constructor)===null||s===void 0?void 0:s.$name;if(i){Ot.set(i,this.tagName.toLowerCase())}}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}const e=at(t);const n=this[e];let h=i;switch(typeof n){case"boolean":h=i!==null&&i!=="false";break;case"number":h=Number(i);break}this[e]=h;switch(t){case"theme-color":{const t=jt.get(this);const s=this.$sharedStyle;if(t&&s){if(St){t.replaceSync(s)}else{t.textContent=s}}break}}}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}t=ot(t);switch(typeof i){case"boolean":if(i===true){if(!this.hasAttribute(t)){this.setAttribute(t,"")}}else{this.removeAttribute(t)}break;case"number":if(V(i)){i=""}else{i=String(i)}default:if(i){if(this.getAttribute(t)!==i){this.setAttribute(t,i)}}else{this.removeAttribute(t)}}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=at(t);let i=this[s];if(!Q(i)){this.$propertyChangedCallback(s,undefined,i)}Object.defineProperty(this,s,{enumerable:true,configurable:true,get(){return i},set(t){const e=i;i=t;this.$propertyChangedCallback(s,e,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||Ct});if(!this.shadowRoot){At.set(this,t)}jt.set(this,this.$addStyles(this.$sharedStyle));if(this.$style){this.$addStyles(this.$style)}if(this.$template){const s=document.createElement("template");s.innerHTML=this.$template;t.appendChild(s.content)}if(this.slottable){const s=document.createElement("slot");t.appendChild(s)}}disconnectedCallback(){if(jt.has(this)){jt.delete(this)}if(At.has(this)){At.delete(this)}}$getTagNameOf(t){var s;return(s=Ot.get(t))!==null&&s!==void 0?s:t}$setStyles(t){Object.keys(t).forEach((s=>{let i=t[s];if(Z(i)){if(i!==0&&Mt.test(s)){i=`${i}px`}else{i=String(i)}}this.style[s]=i}));return this}$getShadowRoot(){return this.shadowRoot||At.get(this)}$addStyles(t){let s;const i=this.$getShadowRoot();if(St){s=new CSSStyleSheet;s.replaceSync(t);i.adoptedStyleSheets=i.adoptedStyleSheets.concat(s)}else{s=document.createElement("style");s.textContent=t;i.appendChild(s)}return s}$emit(t,s,i){return pt(this,t,s,i)}$nextTick(t){return mt(this,t)}static $define(t,s){if(tt(t)){s=t;t=""}if(!t){t=this.$name||this.name}t=ot(t);if(h&&o.customElements&&!o.customElements.get(t)){customElements.define(t,this,s)}}}Tt.$version="2.0.0";var Et=`:host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}`;class It extends Tt{constructor(){super(...arguments);this.$onPointerDown=null;this.$onPointerMove=null;this.$onPointerUp=null;this.$onWheel=null;this.$wheeling=false;this.$pointers=new Map;this.$style=Et;this.$action=x;this.background=false;this.disabled=false;this.scaleStep=.1;this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback();if(!this.disabled){this.$bind()}}disconnectedCallback(){if(!this.disabled){this.$unbind()}super.disconnectedCallback()}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"disabled":if(i){this.$unbind()}else{this.$bind()}break}}$bind(){if(!this.$onPointerDown){this.$onPointerDown=this.$handlePointerDown.bind(this);ft(this,R,this.$onPointerDown)}if(!this.$onPointerMove){this.$onPointerMove=this.$handlePointerMove.bind(this);ft(this.ownerDocument,X,this.$onPointerMove)}if(!this.$onPointerUp){this.$onPointerUp=this.$handlePointerUp.bind(this);ft(this.ownerDocument,Y,this.$onPointerUp)}if(!this.$onWheel){this.$onWheel=this.$handleWheel.bind(this);ft(this,L,this.$onWheel,{passive:false,capture:true})}}$unbind(){if(this.$onPointerDown){lt(this,R,this.$onPointerDown);this.$onPointerDown=null}if(this.$onPointerMove){lt(this.ownerDocument,X,this.$onPointerMove);this.$onPointerMove=null}if(this.$onPointerUp){lt(this.ownerDocument,Y,this.$onPointerUp);this.$onPointerUp=null}if(this.$onWheel){lt(this,L,this.$onWheel,{capture:true});this.$onWheel=null}}$handlePointerDown(t){const{buttons:s,button:i,type:e}=t;if(this.disabled||(e==="pointerdown"&&t.pointerType==="mouse"||e==="mousedown")&&(Z(s)&&s!==1||Z(i)&&i!==0||t.ctrlKey)){return}const{$pointers:n}=this;let h="";if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{n.set(t,{startX:s,startY:i,endX:s,endY:i})}))}else{const{pointerId:s=0,pageX:i,pageY:e}=t;n.set(s,{startX:i,startY:e,endX:i,endY:e})}if(n.size>1){h=y}else if(nt(t.target)){h=t.target.action||t.target.getAttribute(E)||""}if(this.$emit(F,{action:h,relatedEvent:t})===false){return}t.preventDefault();this.$action=h;this.style.willChange="transform"}$handlePointerMove(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===x||i.size===0){return}if(this.$emit(B,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{const n=i.get(t);if(n){Object.assign(n,{endX:s,endY:e})}}))}else{const{pointerId:s=0,pageX:e,pageY:n}=t;const h=i.get(s);if(h){Object.assign(h,{endX:e,endY:n})}}const e={action:s,relatedEvent:t};if(s===y){const s=new Map(i);let n=0;let h=0;let o=0;let r=0;let a=t.pageX;let c=t.pageY;i.forEach(((t,i)=>{s.delete(i);s.forEach((s=>{let i=s.startX-t.startX;let e=s.startY-t.startY;let l=s.endX-t.endX;let f=s.endY-t.endY;let u=0;let d=0;let p=0;let b=0;if(i===0){if(e<0){p=Math.PI*2}else if(e>0){p=Math.PI}}else if(i>0){p=Math.PI/2+Math.atan(e/i)}else if(i<0){p=Math.PI*1.5+Math.atan(e/i)}if(l===0){if(f<0){b=Math.PI*2}else if(f>0){b=Math.PI}}else if(l>0){b=Math.PI/2+Math.atan(f/l)}else if(l<0){b=Math.PI*1.5+Math.atan(f/l)}if(b>0||p>0){const i=b-p;const e=Math.abs(i);if(e>n){n=e;o=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}i=Math.abs(i);e=Math.abs(e);l=Math.abs(l);f=Math.abs(f);if(i>0&&e>0){u=Math.sqrt(i*i+e*e)}else if(i>0){u=i}else if(e>0){u=e}if(l>0&&f>0){d=Math.sqrt(l*l+f*f)}else if(l>0){d=l}else if(f>0){d=f}if(u>0&&d>0){const i=(d-u)/u;const e=Math.abs(i);if(e>h){h=e;r=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}}))}));const l=n>0;const f=h>0;if(l&&f){e.rotate=o;e.scale=r;e.centerX=a;e.centerY=c}else if(l){e.action=k;e.rotate=o;e.centerX=a;e.centerY=c}else if(f){e.action=$;e.scale=r;e.centerX=a;e.centerY=c}else{e.action=x}}else{const[t]=Array.from(i.values());Object.assign(e,t)}i.forEach((t=>{t.startX=t.endX;t.startY=t.endY}));if(e.action!==x){this.$emit(H,e,{cancelable:false})}}$handlePointerUp(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===x){return}if(this.$emit(U,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t})=>{i.delete(t)}))}else{const{pointerId:s=0}=t;i.delete(s)}if(i.size===0){this.style.willChange="";this.$action=x}}$handleWheel(t){if(this.disabled){return}t.preventDefault();if(this.$wheeling){return}this.$wheeling=true;setTimeout((()=>{this.$wheeling=false}),50);const s=t.deltaY>0?-1:1;const i=s*this.scaleStep;this.$emit(H,{action:$,scale:i,relatedEvent:t},{cancelable:false})}$setAction(t){if(K(t)){this.$action=t}return this}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let n=this.offsetWidth;let h=this.offsetHeight;let o=1;if(it(t)&&(G(t.width)||G(t.height))){({width:n,height:h}=yt({aspectRatio:n/h,width:t.width,height:t.height}));o=n/this.offsetWidth}e.width=n;e.height=h;const r=this.querySelector(this.$getTagNameOf(p));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,f,u,d]=r.$getTransform();let p=u;let b=d;let m=i.naturalWidth;let g=i.naturalHeight;if(o!==1){p*=o;b*=o;m*=o;g*=o}const w=m/2;const v=g/2;a.fillStyle="transparent";a.fillRect(0,0,n,h);if(it(t)&&et(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(w,v);a.transform(s,c,l,f,p,b);a.translate(-w,-v);a.drawImage(i,0,0,m,g);a.restore()}s(e)})).catch(i)}))}}It.$name=l;It.$version="2.0.0";var Nt=`:host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}`;const _t=new WeakMap;const Rt=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class Xt extends Tt{constructor(){super(...arguments);this.$matrix=[1,0,0,1,0,0];this.$onLoad=null;this.$onCanvasAction=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$actionStartTarget=null;this.$style=Nt;this.$image=new Image;this.initialCenterSize="contain";this.rotatable=false;this.scalable=false;this.skewable=false;this.slottable=false;this.translatable=false}set $canvas(t){_t.set(this,t)}get $canvas(){return _t.get(this)}static get observedAttributes(){return super.observedAttributes.concat(Rt,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}super.attributeChangedCallback(t,s,i);if(Rt.includes(t)){this.$image.setAttribute(t,i)}}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"initialCenterSize":this.$nextTick((()=>{this.$center(i)}));break}}connectedCallback(){super.connectedCallback();const{$image:t}=this;const s=this.closest(this.$getTagNameOf(l));if(s){this.$canvas=s;this.$setStyles({display:"block",position:"absolute"});this.$onCanvasActionStart=t=>{var s,i;this.$actionStartTarget=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target};this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null};this.$onCanvasAction=this.$handleAction.bind(this);ft(s,F,this.$onCanvasActionStart);ft(s,U,this.$onCanvasActionEnd);ft(s,H,this.$onCanvasAction)}this.$onLoad=this.$handleLoad.bind(this);ft(t,D,this.$onLoad);this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;if(s){if(this.$onCanvasActionStart){lt(s,F,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){lt(s,U,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){lt(s,H,this.$onCanvasAction);this.$onCanvasAction=null}}if(t&&this.$onLoad){lt(t,D,this.$onLoad);this.$onLoad=null}this.$getShadowRoot().removeChild(t);super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight});if(this.$canvas){this.$center(this.initialCenterSize)}}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable)){return}const{$canvas:s}=this;const{detail:i}=t;if(i){const{relatedEvent:t}=i;let{action:e}=i;if(e===y&&(!this.rotatable||!this.scalable)){if(this.rotatable){e=k}else if(this.scalable){e=$}else{e=x}}switch(e){case v:if(this.translatable){let e=null;if(t){e=t.target.closest(this.$getTagNameOf(b))}if(!e){e=s.querySelector(this.$getTagNameOf(b))}if(e&&e.multiple&&!e.active){e=s.querySelector(`${this.$getTagNameOf(b)}[active]`)}if(!e||e.hidden||!e.movable||e.dynamic||!(this.$actionStartTarget&&e.contains(this.$actionStartTarget))){this.$move(i.endX-i.startX,i.endY-i.startY)}}break;case k:if(this.rotatable){if(t){const{x:s,y:e}=this.getBoundingClientRect();this.$rotate(i.rotate,t.clientX-s,t.clientY-e)}else{this.$rotate(i.rotate)}}break;case $:if(this.scalable){if(t){const s=t.target.closest(this.$getTagNameOf(b));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:e}=this.getBoundingClientRect();this.$zoom(i.scale,t.clientX-s,t.clientY-e)}}else{this.$zoom(i.scale)}}break;case y:if(this.rotatable&&this.scalable){const{rotate:s}=i;let{scale:e}=i;if(e<0){e=1/(1-e)}else{e+=1}const n=Math.cos(s);const h=Math.sin(s);const[o,r,a,c]=[n*e,h*e,-h*e,n*e];if(t){const s=this.getBoundingClientRect();const i=t.clientX-s.x;const e=t.clientY-s.y;const[n,h,l,f]=this.$matrix;const u=s.width/2;const d=s.height/2;const p=i-u;const b=e-d;const m=(p*f-l*b)/(n*f-l*h);const g=(b*n-h*p)/(n*f-l*h);this.$transform(o,r,a,c,m*(1-o)+g*a,g*(1-c)+m*r)}else{this.$transform(o,r,a,c,0,0)}}break}}}$ready(t){const{$image:s}=this;const i=new Promise(((t,i)=>{const e=new Error("Failed to load the image source");if(s.complete){if(s.naturalWidth>0&&s.naturalHeight>0){t(s)}else{i(e)}}else{const n=()=>{lt(s,P,h);t(s)};const h=()=>{lt(s,D,n);i(e)};ut(s,D,n);ut(s,P,h)}}));if(et(t)){i.then((s=>{t(s);return s}))}return i}$center(t){const{parentElement:s}=this;if(!s){return this}const i=s.getBoundingClientRect();const e=i.width;const n=i.height;const{x:h,y:o,width:r,height:a}=this.getBoundingClientRect();const c=h+r/2;const l=o+a/2;const f=i.x+e/2;const u=i.y+n/2;this.$move(f-c,u-l);if(t&&(r!==e||a!==n)){const s=e/r;const i=n/a;switch(t){case"cover":this.$scale(Math.max(s,i));break;case"contain":this.$scale(Math.min(s,i));break}}return this}$move(t,s=t){if(this.translatable&&Z(t)&&Z(s)){const[i,e,n,h]=this.$matrix;const o=(t*h-n*s)/(i*h-n*e);const r=(s*i-e*t)/(i*h-n*e);this.$translate(o,r)}return this}$moveTo(t,s=t){if(this.translatable&&Z(t)&&Z(s)){const[i,e,n,h]=this.$matrix;const o=(t*h-n*s)/(i*h-n*e);const r=(s*i-e*t)/(i*h-n*e);this.$setTransform(i,e,n,h,o,r)}return this}$rotate(t,s,i){if(this.rotatable){const e=vt(t);const n=Math.cos(e);const h=Math.sin(e);const[o,r,a,c]=[n,h,-h,n];if(Z(s)&&Z(i)){const[t,e,n,h]=this.$matrix;const{width:l,height:f}=this.getBoundingClientRect();const u=l/2;const d=f/2;const p=s-u;const b=i-d;const m=(p*h-n*b)/(t*h-n*e);const g=(b*t-e*p)/(t*h-n*e);this.$transform(o,r,a,c,m*(1-o)-g*a,g*(1-c)-m*r)}else{this.$transform(o,r,a,c,0,0)}}return this}$zoom(t,s,i){if(!this.scalable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}if(Z(s)&&Z(i)){const[e,n,h,o]=this.$matrix;const{width:r,height:a}=this.getBoundingClientRect();const c=r/2;const l=a/2;const f=s-c;const u=i-l;const d=(f*o-h*u)/(e*o-h*n);const p=(u*e-n*f)/(e*o-h*n);this.$transform(t,0,0,t,d*(1-t),p*(1-t))}else{this.$scale(t)}return this}$scale(t,s=t){if(this.scalable){this.$transform(t,0,0,s,0,0)}return this}$skew(t,s=0){if(this.skewable){const i=vt(t);const e=vt(s);this.$transform(1,Math.tan(e),Math.tan(i),1,0,0)}return this}$translate(t,s=t){if(this.translatable&&Z(t)&&Z(s)){this.$transform(1,0,0,1,t,s)}return this}$transform(t,s,i,e,n,h){if(Z(t)&&Z(s)&&Z(i)&&Z(e)&&Z(n)&&Z(h)){return this.$setTransform(xt(this.$matrix,[t,s,i,e,n,h]))}return this}$setTransform(t,s,i,e,n,h){if(this.rotatable||this.scalable||this.skewable||this.translatable){if(Array.isArray(t)){[t,s,i,e,n,h]=t}if(Z(t)&&Z(s)&&Z(i)&&Z(e)&&Z(n)&&Z(h)){const o=[...this.$matrix];const r=[t,s,i,e,n,h];if(this.$emit(J,{matrix:r,oldMatrix:o})===false){return this}this.$matrix=r;this.style.transform=`matrix(${r.join(", ")})`}}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}Xt.$name=p;Xt.$version="2.0.0";var Yt=`:host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}`;const Pt=new WeakMap;class Wt extends Tt{constructor(){super(...arguments);this.$onCanvasChange=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$style=Yt;this.x=0;this.y=0;this.width=0;this.height=0;this.slottable=false;this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){Pt.set(this,t)}get $canvas(){return Pt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));if(t){this.$canvas=t;this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(b));if(s){this.$onCanvasActionStart=t=>{if(s.hidden&&t.detail.action===w){this.hidden=false}};this.$onCanvasActionEnd=t=>{if(s.hidden&&t.detail.action===w){this.hidden=true}};this.$onCanvasChange=t=>{const{x:i,y:e,width:n,height:h}=t.detail;this.$change(i,e,n,h);if(s.hidden||i===0&&e===0&&n===0&&h===0){this.hidden=true}};ft(t,F,this.$onCanvasActionStart);ft(t,U,this.$onCanvasActionEnd);ft(t,q,this.$onCanvasChange)}}this.$render()}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){lt(t,F,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){lt(t,U,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasChange){lt(t,q,this.$onCanvasChange);this.$onCanvasChange=null}}super.disconnectedCallback()}$change(t,s,i=this.width,e=this.height){if(!Z(t)||!Z(s)||!Z(i)||!Z(e)||t===this.x&&s===this.y&&i===this.width&&e===this.height){return this}if(this.hidden){this.hidden=false}this.x=t;this.y=s;this.width=i;this.height=e;return this.$render()}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:o.innerWidth})}}Wt.$name=m;Wt.$version="2.0.0";var Dt=`:host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}`;class Lt extends Tt{constructor(){super(...arguments);this.$onCanvasCropEnd=null;this.$onCanvasCropStart=null;this.$style=Dt;this.action=x;this.plain=false;this.slottable=false;this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Lt.$name=d;Lt.$version="2.0.0";var Ht=`:host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}`;const Ut=new WeakMap;class Bt extends Tt{constructor(){super(...arguments);this.$onCanvasAction=null;this.$onCanvasActionStart=null;this.$onCanvasActionEnd=null;this.$onDocumentKeyDown=null;this.$action="";this.$actionStartTarget=null;this.$changing=false;this.$style=Ht;this.$initialSelection={x:0,y:0,width:0,height:0};this.x=0;this.y=0;this.width=0;this.height=0;this.aspectRatio=NaN;this.initialAspectRatio=NaN;this.initialCoverage=NaN;this.active=false;this.linked=false;this.dynamic=false;this.movable=false;this.resizable=false;this.zoomable=false;this.multiple=false;this.keyboard=false;this.outlined=false;this.precise=false}set $canvas(t){Ut.set(this,t)}get $canvas(){return Ut.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"x":case"y":case"width":case"height":if(!this.$changing){this.$nextTick((()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,true)}))}break;case"aspectRatio":case"initialAspectRatio":this.$nextTick((()=>{this.$initSelection()}));break;case"initialCoverage":this.$nextTick((()=>{if(G(i)&&i<=1){this.$initSelection(true,true)}}));break;case"keyboard":this.$nextTick((()=>{if(this.$canvas){if(i){if(!this.$onDocumentKeyDown){this.$onDocumentKeyDown=this.$handleKeyDown.bind(this);ft(this.ownerDocument,W,this.$onDocumentKeyDown)}}else if(this.$onDocumentKeyDown){lt(this.ownerDocument,W,this.$onDocumentKeyDown);this.$onDocumentKeyDown=null}}}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();if(i){t.forEach((t=>{t.active=false}));this.active=true;this.$emit(q,{x:this.x,y:this.y,width:this.width,height:this.height})}else{this.active=false;t.slice(1).forEach((t=>{this.$removeSelection(t)}))}}}));break;case"precise":this.$nextTick((()=>{this.$change(this.x,this.y)}));break;case"linked":if(i){this.dynamic=true}break}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));if(t){this.$canvas=t;this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`});if(!this.hidden){this.$render()}this.$initSelection(true);this.$onCanvasActionStart=this.$handleActionStart.bind(this);this.$onCanvasActionEnd=this.$handleActionEnd.bind(this);this.$onCanvasAction=this.$handleAction.bind(this);ft(t,F,this.$onCanvasActionStart);ft(t,U,this.$onCanvasActionEnd);ft(t,H,this.$onCanvasAction)}else{this.$render()}}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){lt(t,F,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){lt(t,U,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){lt(t,H,this.$onCanvasAction);this.$onCanvasAction=null}}super.disconnectedCallback()}$getSelections(){let t=[];if(this.parentElement){t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(b)))}return t}$initSelection(t=false,s=false){const{initialCoverage:i,parentElement:e}=this;if(G(i)&&e){const n=this.aspectRatio||this.initialAspectRatio;let h=(s?0:this.width)||e.offsetWidth*i;let o=(s?0:this.height)||e.offsetHeight*i;if(G(n)){({width:h,height:o}=yt({aspectRatio:n,width:h,height:o}))}this.$change(this.x,this.y,h,o);if(t){this.$center()}this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(true);if(this.hasAttribute("id")){t.removeAttribute("id")}t.initialCoverage=NaN;this.active=false;if(this.parentElement){this.parentElement.insertBefore(t,this.nextSibling)}return t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const i=s.indexOf(t);const e=s[i+1]||s[i-1];if(e){t.active=false;this.parentElement.removeChild(t);e.active=true;e.$emit(q,{x:e.x,y:e.y,width:e.width,height:e.height})}}else{this.$clear()}}}$handleActionStart(t){var s,i;const e=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target;this.$action="";this.$actionStartTarget=e;if(!this.hidden&&this.multiple&&!this.active&&e===this&&this.parentElement){this.$getSelections().forEach((t=>{t.active=false}));this.active=true;this.$emit(q,{x:this.x,y:this.y,width:this.width,height:this.height})}}$handleAction(t){const{currentTarget:s,detail:i}=t;if(!s||!i){return}const{relatedEvent:e}=i;let{action:n}=i;if(!n&&this.multiple){n=this.$action||(e===null||e===void 0?void 0:e.target.action);this.$action=n}if(!n||this.hidden&&n!==w||this.multiple&&!this.active&&n!==$){return}const h=i.endX-i.startX;const o=i.endY-i.startY;const{width:r,height:a}=this;let{aspectRatio:c}=this;if(!G(c)&&e.shiftKey){c=G(r)&&G(a)?r/a:1}switch(n){case w:if(h!==0&&o!==0){const{$canvas:t}=this;const e=gt(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(i.startX-e.left,i.startY-e.top,Math.abs(h),Math.abs(o),c);if(h<0){if(o<0){n=O}else if(o>0){n=T}}else if(h>0){if(o<0){n=j}else if(o>0){n=S}}if(t){t.$action=n}}break;case v:if(this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))){this.$move(h,o)}break;case $:if(e&&this.zoomable&&(this.dynamic||this.contains(e.target))){const t=gt(s);this.$zoom(i.scale,e.pageX-t.left,e.pageY-t.top)}break;default:this.$resize(n,h,o,c)}}$handleActionEnd(){this.$action="";this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented){return}const{activeElement:s}=document;if(s&&(["INPUT","TEXTAREA"].includes(s.tagName)||["true","plaintext-only"].includes(s.contentEditable))){return}switch(t.key){case"Backspace":if(t.metaKey){t.preventDefault();this.$removeSelection()}break;case"Delete":t.preventDefault();this.$removeSelection();break;case"ArrowLeft":t.preventDefault();this.$move(-1,0);break;case"ArrowRight":t.preventDefault();this.$move(1,0);break;case"ArrowUp":t.preventDefault();this.$move(0,-1);break;case"ArrowDown":t.preventDefault();this.$move(0,1);break;case"+":t.preventDefault();this.$zoom(.1);break;case"-":t.preventDefault();this.$zoom(-.1);break}}$center(){const{parentElement:t}=this;if(!t){return this}const s=(t.offsetWidth-this.width)/2;const i=(t.offsetHeight-this.height)/2;return this.$change(s,i)}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){if(!this.movable){return this}return this.$change(t,s)}$resize(t,s=0,i=0,e=this.aspectRatio){if(!this.resizable){return this}const n=G(e);const{$canvas:h}=this;let{x:o,y:r,width:a,height:c}=this;switch(t){case z:r+=i;c-=i;if(c<0){t=C;c=-c;r-=c}if(n){s=i*e;o+=s/2;a-=s;if(a<0){a=-a;o-=a}}break;case M:a+=s;if(a<0){t=A;a=-a;o-=a}if(n){i=s/e;r-=i/2;c+=i;if(c<0){c=-c;r-=c}}break;case C:c+=i;if(c<0){t=z;c=-c;r-=c}if(n){s=i*e;o-=s/2;a+=s;if(a<0){a=-a;o-=a}}break;case A:o+=s;a-=s;if(a<0){t=M;a=-a;o-=a}if(n){i=s/e;r+=i/2;c-=i;if(c<0){c=-c;r-=c}}break;case j:if(n){i=-s/e}r+=i;c-=i;a+=s;if(a<0&&c<0){t=T;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=O;a=-a;o-=a}else if(c<0){t=S;c=-c;r-=c}break;case O:if(n){i=s/e}o+=s;r+=i;a-=s;c-=i;if(a<0&&c<0){t=S;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=j;a=-a;o-=a}else if(c<0){t=T;c=-c;r-=c}break;case S:if(n){i=s/e}a+=s;c+=i;if(a<0&&c<0){t=O;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=T;a=-a;o-=a}else if(c<0){t=j;c=-c;r-=c}break;case T:if(n){i=-s/e}o+=s;a-=s;c+=i;if(a<0&&c<0){t=j;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=S;a=-a;o-=a}else if(c<0){t=O;c=-c;r-=c}break}if(h){h.$setAction(t)}return this.$change(o,r,a,c)}$zoom(t,s,i){if(!this.zoomable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}const{width:e,height:n}=this;const h=e*t;const o=n*t;let r=this.x;let a=this.y;if(Z(s)&&Z(i)){r-=(h-e)*((s-this.x)/e);a-=(o-n)*((i-this.y)/n)}else{r-=(h-e)/2;a-=(o-n)/2}return this.$change(r,a,h,o)}$change(t,s,i=this.width,e=this.height,n=this.aspectRatio,h=false){if(this.$changing||!Z(t)||!Z(s)||!Z(i)||!Z(e)||i<0||e<0){return this}if(G(n)){({width:i,height:e}=yt({aspectRatio:n,width:i,height:e},"cover"))}if(!this.precise){t=Math.round(t);s=Math.round(s);i=Math.round(i);e=Math.round(e)}if(t===this.x&&s===this.y&&i===this.width&&e===this.height&&Object.is(n,this.aspectRatio)&&!h){return this}if(this.hidden){this.hidden=false}if(this.$emit(q,{x:t,y:s,width:i,height:e})===false){return this}this.$changing=true;this.x=t;this.y=s;this.width=i;this.height=e;this.$changing=false;return this.$render()}$reset(){const{x:t,y:s,width:i,height:e}=this.$initialSelection;return this.$change(t,s,i,e)}$clear(){this.$change(0,0,0,0,NaN,true);this.hidden=true;return this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let{width:n,height:h}=this;let o=1;if(it(t)&&(G(t.width)||G(t.height))){({width:n,height:h}=yt({aspectRatio:n/h,width:t.width,height:t.height}));o=n/this.width}e.width=n;e.height=h;if(!this.$canvas){s(e);return}const r=this.$canvas.querySelector(this.$getTagNameOf(p));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,f,u,d]=r.$getTransform();const p=-this.x;const b=-this.y;const m=(p*f-l*b)/(s*f-l*c);const g=(b*s-c*p)/(s*f-l*c);let w=s*m+l*g+u;let v=c*m+f*g+d;let $=i.naturalWidth;let k=i.naturalHeight;if(o!==1){w*=o;v*=o;$*=o;k*=o}const y=$/2;const x=k/2;a.fillStyle="transparent";a.fillRect(0,0,n,h);if(it(t)&&et(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(y,x);a.transform(s,c,l,f,w,v);a.translate(-y,-x);a.drawImage(i,0,0,$,k);a.restore()}s(e)})).catch(i)}))}}Bt.$name=b;Bt.$version="2.0.0";var Ft=`:host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}`;class qt extends Tt{constructor(){super(...arguments);this.$style=Ft;this.bordered=false;this.columns=3;this.covered=false;this.rows=3;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);if(t==="rows"||t==="columns"){this.$nextTick((()=>{this.$render()}))}}connectedCallback(){super.connectedCallback();this.$render()}$render(){const t=this.$getShadowRoot();const s=document.createDocumentFragment();for(let t=0;t<this.rows;t+=1){const t=document.createElement("span");t.setAttribute("role","row");for(let s=0;s<this.columns;s+=1){const s=document.createElement("span");s.setAttribute("role","gridcell");t.appendChild(s)}s.appendChild(t)}if(t){t.innerHTML="";t.appendChild(s)}}}qt.$name=u;qt.$version="2.0.0";var Jt=`:host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`;class Kt extends Tt{constructor(){super(...arguments);this.$style=Jt;this.centered=false;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Kt.$name=f;Kt.$version="2.0.0";var Vt=`:host{display:block;height:100%;overflow:hidden;position:relative;width:100%}`;const Zt=new WeakMap;const Gt=new WeakMap;const Qt=new WeakMap;const ts=new WeakMap;const ss="both";const is="horizontal";const es="vertical";const ns="none";class hs extends Tt{constructor(){super(...arguments);this.$onSelectionChange=null;this.$onSourceImageLoad=null;this.$onSourceImageTransform=null;this.$scale=1;this.$style=Vt;this.resize=es;this.selection="";this.slottable=false}set $image(t){Gt.set(this,t)}get $image(){return Gt.get(this)}set $sourceImage(t){ts.set(this,t)}get $sourceImage(){return ts.get(this)}set $canvas(t){Zt.set(this,t)}get $canvas(){return Zt.get(this)}set $selection(t){Qt.set(this,t)}get $selection(){return Qt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(this.selection){t=this.ownerDocument.querySelector(this.selection)}else{t=this.closest(this.$getTagNameOf(b))}if(nt(t)){this.$selection=t;this.$onSelectionChange=this.$handleSelectionChange.bind(this);ft(t,q,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(l));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(p));if(t){this.$sourceImage=t;this.$image=t.cloneNode(true);this.$getShadowRoot().appendChild(this.$image);this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this);this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this);ft(t.$image,D,this.$onSourceImageLoad);ft(t,J,this.$onSourceImageTransform)}}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;if(t&&this.$onSelectionChange){lt(t,q,this.$onSelectionChange);this.$onSelectionChange=null}if(s&&this.$onSourceImageLoad){lt(s.$image,D,this.$onSourceImageLoad);this.$onSourceImageLoad=null}if(s&&this.$onSourceImageTransform){lt(s,J,this.$onSourceImageTransform);this.$onSourceImageTransform=null}super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this;const i=t.getAttribute("src");const e=s.getAttribute("src");if(e&&e!==i){t.setAttribute("src",e);t.$ready((()=>{setTimeout((()=>{this.$render()}),50)}))}}$handleSourceImageTransform(t){this.$render(undefined,t.detail.matrix)}$render(t,s){const{$canvas:i,$selection:e}=this;if(!t&&!e.hidden){t=e}if(!t||t.x===0&&t.y===0&&t.width===0&&t.height===0){t={x:0,y:0,width:i.offsetWidth,height:i.offsetHeight}}const{x:n,y:h,width:o,height:r}=t;const a={};const{clientWidth:c,clientHeight:l}=this;let f=c;let u=l;let d=NaN;switch(this.resize){case ss:d=1;f=o;u=r;a.width=o;a.height=r;break;case is:d=r>0?l/r:0;f=o*d;a.width=f;break;case es:d=o>0?c/o:0;u=r*d;a.height=u;break;case ns:default:if(c>0){d=o>0?c/o:0}else if(l>0){d=r>0?l/r:0}}this.$scale=d;this.$setStyles(a);if(this.$sourceImage){this.$transformImageByOffset(s!==null&&s!==void 0?s:this.$sourceImage.$getTransform(),-n,-h)}}$transformImageByOffset(t,s,i){const{$image:e,$scale:n,$sourceImage:h}=this;if(h&&e&&n>=0){const[h,o,r,a,c,l]=t;const f=(s*a-r*i)/(h*a-r*o);const u=(i*h-o*s)/(h*a-r*o);const d=h*f+r*u+c;const p=o*f+a*u+l;e.$ready((t=>{this.$setStyles.call(e,{width:t.naturalWidth*n,height:t.naturalHeight*n})}));e.$setTransform(h,o,r,a,d*n,p*n)}}}hs.$name=g;hs.$version="2.0.0";
2
- /*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */It.$define();Kt.$define();qt.$define();Lt.$define();Xt.$define();Bt.$define();Wt.$define();hs.$define();const os=".mb-6{margin-bottom:1.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static!important}.hidden{display:none!important}.h-\\[17\\.5rem\\]{height:17.5rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.resize{resize:both!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-medium{--tw-border-opacity:1!important;border-color:rgb(227 236 243/var(--tw-border-opacity,1))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-14{padding-left:3.5rem!important;padding-right:3.5rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity,1))!important}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem!important}.tablet\\:px-1{padding-left:.25rem!important;padding-right:.25rem!important}}";const rs=class{constructor(i){t(this,i);this.valueChange=s(this,"valueChange",3)}variant="user";value;returnType="base64";valueChange;_imageRef;_selectionRef;_maxScale=0;_minScale=0;_resizeDebounceTimeout;_toCanvasDebounceTimeout;_loaded=false;_currentScale=0;onResize(){if(this._resizeDebounceTimeout){clearTimeout(this._resizeDebounceTimeout)}this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center();this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=true}),200)}render(){return i(e,{key:"e24538f7894f87f0a74b278cfcded8c468458b1d",class:"p-cropper"},this._loaded&&i("cropper-canvas",{key:"322819276c8067200448b6b5db91c5d4b55635dc",class:"h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white",onAction:()=>this._onAction()},i("cropper-image",{key:"425800342321a6866fe456c306cd14e41f730638",src:this.value,alt:"Picture",ref:t=>this._setImageRef(t),scalable:true,crossorigin:"anonymous"}),i("cropper-shade",{key:"8c0909db63231a802bc9a095ff4d7a91733c2cb5",class:n({"rounded-round":this.variant==="user",rounded:this.variant==="company"}),"theme-color":"rgba(255, 255, 255, 0.5)",hidden:true}),i("cropper-selection",{key:"98bb666ed377e4a05dcd79bf75a6bfbd0c87f357","initial-coverage":"0.7","aspect-ratio":"1",ref:t=>this._selectionRef=t}),i("cropper-handle",{key:"800ba3ca781e8bcaadf48fc9bdb19f9a1f8e2a18",action:"move",plain:true})),i("div",{key:"329691f46ecb9a2fe69adc9ee52e01f99d5e5887",class:"flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1"},i("p-icon",{key:"331f23998c122f21c0b5244ebf7ead26d85b5b75",variant:"minus"}),i("input",{key:"ba6b41da6715d42d6b39e707b6a99b5401c40272",class:"p-input w-full",type:"range",min:"0",max:"100",value:this._currentScale,onInput:t=>this._onInput(t.target.value),step:"0.5"}),i("p-icon",{key:"1259a20fa5c3cae52a1dc9568329451a32706f4d",variant:"plus"})))}_setImageRef(t){if(this._imageRef){return}this._imageRef=t;this._imageRef.$ready((t=>setTimeout((()=>this._setInitialState(t)),200)))}_setInitialState(t){let s;if(t.naturalWidth>t.naturalHeight){s=200/t.naturalHeight}if(t.naturalHeight>=t.naturalWidth){s=200/t.naturalWidth}const i=this._imageRef.$getTransform();this._minScale=s;this._maxScale=i[0];this._selectionRef.$resize("nw-resize",200,200,1);this._selectionRef.$center();this._setScale(s);this._toCanvas()}_onAction(){this._setCurrentScale();this._toCanvas()}_setScale(t,s=true,i=true){const e=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,e[4],e[5]]);if(s){this._imageRef.$center()}if(i){this._setCurrentScale()}}_setCurrentScale(){const t=this._imageRef.$getTransform();const s=t[0];if(s<this._minScale){this._setScale(this._minScale,true,false);this._currentScale=0;return}if(s>this._maxScale){this._setScale(this._maxScale,true,false);this._currentScale=100;return}if(s===this._minScale){this._currentScale=0;return}if(s===this._maxScale){this._currentScale=100;return}const i=this._maxScale-this._minScale;const e=s-this._minScale;const n=e/i*100;this._currentScale=n}_onInput(t){const s=this._imageRef.$getTransform();const i=s[0];const e=this._maxScale-this._minScale;const n=e*(t/100);if(n===i){return}this._setScale(n+this._minScale,false,false);this._currentScale=t;this._toCanvas()}_toCanvas(){if(this._toCanvasDebounceTimeout){clearTimeout(this._toCanvasDebounceTimeout)}this._toCanvasDebounceTimeout=setTimeout((async()=>{const t=await this._selectionRef.$toCanvas();if(this.returnType==="canvas"){this.valueChange.emit(t);return}const s=t.toDataURL("image/png");this.valueChange.emit(s)}),200)}};rs.style=os;export{rs as p_cropper};
3
- //# sourceMappingURL=p-2e7078c8.entry.js.map
1
+ import{r as t,c as s,h as i,H as e}from"./p-CayVqENR.js";import{c as n}from"./p-ChV9xqsO.js";const h=typeof window!=="undefined"&&typeof window.document!=="undefined";const o=h?window:{};const r=h?"ontouchstart"in o.document.documentElement:false;const a=h?"PointerEvent"in o:false;const c="cropper";const l=`${c}-canvas`;const f=`${c}-crosshair`;const u=`${c}-grid`;const d=`${c}-handle`;const p=`${c}-image`;const b=`${c}-selection`;const m=`${c}-shade`;const g=`${c}-viewer`;const w="select";const v="move";const $="scale";const k="rotate";const y="transform";const x="none";const z="n-resize";const M="e-resize";const C="s-resize";const A="w-resize";const j="ne-resize";const O="nw-resize";const S="se-resize";const T="sw-resize";const E="action";const I=r?"touchend touchcancel":"mouseup";const N=r?"touchmove":"mousemove";const R=r?"touchstart":"mousedown";const _=a?"pointerdown":R;const X=a?"pointermove":N;const Y=a?"pointerup pointercancel":I;const P="error";const W="keydown";const D="load";const L="wheel";const H="action";const U="actionend";const q="actionmove";const B="actionstart";const F="change";const V="transform";function K(t){return typeof t==="string"}const Z=Number.isNaN||o.isNaN;function G(t){return typeof t==="number"&&!Z(t)}function J(t){return G(t)&&t>0&&t<Infinity}function Q(t){return typeof t==="undefined"}function tt(t){return typeof t==="object"&&t!==null}const{hasOwnProperty:st}=Object.prototype;function it(t){if(!tt(t)){return false}try{const{constructor:s}=t;const{prototype:i}=s;return s&&i&&st.call(i,"isPrototypeOf")}catch(t){return false}}function et(t){return typeof t==="function"}function nt(t){return typeof t==="object"&&t!==null&&t.nodeType===1}const ht=/([a-z\d])([A-Z])/g;function ot(t){return String(t).replace(ht,"$1-$2").toLowerCase()}const rt=/-[A-z\d]/g;function at(t){return t.replace(rt,(t=>t.slice(1).toUpperCase()))}const ct=/\s\s*/;function lt(t,s,i,e){s.trim().split(ct).forEach((s=>{t.removeEventListener(s,i,e)}))}function ft(t,s,i,e){s.trim().split(ct).forEach((s=>{t.addEventListener(s,i,e)}))}function ut(t,s,i,e){ft(t,s,i,Object.assign(Object.assign({},e),{once:true}))}const dt={bubbles:true,cancelable:true,composed:true};function pt(t,s,i,e){return t.dispatchEvent(new CustomEvent(s,Object.assign(Object.assign(Object.assign({},dt),{detail:i}),e)))}const bt=Promise.resolve();function mt(t,s){return s?bt.then(t?s.bind(t):s):bt}function gt(t){const{documentElement:s}=t.ownerDocument;const i=t.getBoundingClientRect();return{left:i.left+(o.pageXOffset-s.clientLeft),top:i.top+(o.pageYOffset-s.clientTop)}}const wt=/deg|g?rad|turn$/i;function vt(t){const s=parseFloat(t)||0;if(s!==0){const[i="rad"]=String(t).match(wt)||[];switch(i.toLowerCase()){case"deg":return s/360*(Math.PI*2);case"grad":return s/400*(Math.PI*2);case"turn":return s*(Math.PI*2)}}return s}const $t="contain";const kt="cover";function yt(t,s=$t){const{aspectRatio:i}=t;let{width:e,height:n}=t;const h=J(e);const o=J(n);if(h&&o){const t=n*i;if(s===$t&&t>e||s===kt&&t<e){n=e/i}else{e=n*i}}else if(h){n=e/i}else if(o){e=n*i}return{width:e,height:n}}function xt(t,...s){if(s.length===0){return t}const[i,e,n,h,o,r]=t;const[a,c,l,f,u,d]=s[0];t=[i*a+n*c,e*a+h*c,i*l+n*f,e*l+h*f,i*u+n*d+o,e*u+h*d+r];return xt(t,...s.slice(1))}var zt=`:host([hidden]){display:none!important}`;const Mt=/left|top|width|height/i;const Ct="open";const At=new WeakMap;const jt=new WeakMap;const Ot=new Map;const St=o.document&&Array.isArray(o.document.adoptedStyleSheets)&&"replaceSync"in o.CSSStyleSheet.prototype;class Tt extends HTMLElement{get $sharedStyle(){return`${this.themeColor?`:host{--theme-color: ${this.themeColor};}`:""}${zt}`}constructor(){var t,s;super();this.shadowRootMode=Ct;this.slottable=true;const i=(s=(t=Object.getPrototypeOf(this))===null||t===void 0?void 0:t.constructor)===null||s===void 0?void 0:s.$name;if(i){Ot.set(i,this.tagName.toLowerCase())}}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}const e=at(t);const n=this[e];let h=i;switch(typeof n){case"boolean":h=i!==null&&i!=="false";break;case"number":h=Number(i);break}this[e]=h;switch(t){case"theme-color":{const t=jt.get(this);const s=this.$sharedStyle;if(t&&s){if(St){t.replaceSync(s)}else{t.textContent=s}}break}}}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}t=ot(t);switch(typeof i){case"boolean":if(i===true){if(!this.hasAttribute(t)){this.setAttribute(t,"")}}else{this.removeAttribute(t)}break;case"number":if(Z(i)){i=""}else{i=String(i)}default:if(i){if(this.getAttribute(t)!==i){this.setAttribute(t,i)}}else{this.removeAttribute(t)}}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach((t=>{const s=at(t);let i=this[s];if(!Q(i)){this.$propertyChangedCallback(s,undefined,i)}Object.defineProperty(this,s,{enumerable:true,configurable:true,get(){return i},set(t){const e=i;i=t;this.$propertyChangedCallback(s,e,t)}})}));const t=this.attachShadow({mode:this.shadowRootMode||Ct});if(!this.shadowRoot){At.set(this,t)}jt.set(this,this.$addStyles(this.$sharedStyle));if(this.$style){this.$addStyles(this.$style)}if(this.$template){const s=document.createElement("template");s.innerHTML=this.$template;t.appendChild(s.content)}if(this.slottable){const s=document.createElement("slot");t.appendChild(s)}}disconnectedCallback(){if(jt.has(this)){jt.delete(this)}if(At.has(this)){At.delete(this)}}$getTagNameOf(t){var s;return(s=Ot.get(t))!==null&&s!==void 0?s:t}$setStyles(t){Object.keys(t).forEach((s=>{let i=t[s];if(G(i)){if(i!==0&&Mt.test(s)){i=`${i}px`}else{i=String(i)}}this.style[s]=i}));return this}$getShadowRoot(){return this.shadowRoot||At.get(this)}$addStyles(t){let s;const i=this.$getShadowRoot();if(St){s=new CSSStyleSheet;s.replaceSync(t);i.adoptedStyleSheets=i.adoptedStyleSheets.concat(s)}else{s=document.createElement("style");s.textContent=t;i.appendChild(s)}return s}$emit(t,s,i){return pt(this,t,s,i)}$nextTick(t){return mt(this,t)}static $define(t,s){if(tt(t)){s=t;t=""}if(!t){t=this.$name||this.name}t=ot(t);if(h&&o.customElements&&!o.customElements.get(t)){customElements.define(t,this,s)}}}Tt.$version="2.0.0";var Et=`:host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}`;class It extends Tt{constructor(){super(...arguments);this.$onPointerDown=null;this.$onPointerMove=null;this.$onPointerUp=null;this.$onWheel=null;this.$wheeling=false;this.$pointers=new Map;this.$style=Et;this.$action=x;this.background=false;this.disabled=false;this.scaleStep=.1;this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback();if(!this.disabled){this.$bind()}}disconnectedCallback(){if(!this.disabled){this.$unbind()}super.disconnectedCallback()}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"disabled":if(i){this.$unbind()}else{this.$bind()}break}}$bind(){if(!this.$onPointerDown){this.$onPointerDown=this.$handlePointerDown.bind(this);ft(this,_,this.$onPointerDown)}if(!this.$onPointerMove){this.$onPointerMove=this.$handlePointerMove.bind(this);ft(this.ownerDocument,X,this.$onPointerMove)}if(!this.$onPointerUp){this.$onPointerUp=this.$handlePointerUp.bind(this);ft(this.ownerDocument,Y,this.$onPointerUp)}if(!this.$onWheel){this.$onWheel=this.$handleWheel.bind(this);ft(this,L,this.$onWheel,{passive:false,capture:true})}}$unbind(){if(this.$onPointerDown){lt(this,_,this.$onPointerDown);this.$onPointerDown=null}if(this.$onPointerMove){lt(this.ownerDocument,X,this.$onPointerMove);this.$onPointerMove=null}if(this.$onPointerUp){lt(this.ownerDocument,Y,this.$onPointerUp);this.$onPointerUp=null}if(this.$onWheel){lt(this,L,this.$onWheel,{capture:true});this.$onWheel=null}}$handlePointerDown(t){const{buttons:s,button:i,type:e}=t;if(this.disabled||(e==="pointerdown"&&t.pointerType==="mouse"||e==="mousedown")&&(G(s)&&s!==1||G(i)&&i!==0||t.ctrlKey)){return}const{$pointers:n}=this;let h="";if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:i})=>{n.set(t,{startX:s,startY:i,endX:s,endY:i})}))}else{const{pointerId:s=0,pageX:i,pageY:e}=t;n.set(s,{startX:i,startY:e,endX:i,endY:e})}if(n.size>1){h=y}else if(nt(t.target)){h=t.target.action||t.target.getAttribute(E)||""}if(this.$emit(B,{action:h,relatedEvent:t})===false){return}t.preventDefault();this.$action=h;this.style.willChange="transform"}$handlePointerMove(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===x||i.size===0){return}if(this.$emit(q,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t,pageX:s,pageY:e})=>{const n=i.get(t);if(n){Object.assign(n,{endX:s,endY:e})}}))}else{const{pointerId:s=0,pageX:e,pageY:n}=t;const h=i.get(s);if(h){Object.assign(h,{endX:e,endY:n})}}const e={action:s,relatedEvent:t};if(s===y){const s=new Map(i);let n=0;let h=0;let o=0;let r=0;let a=t.pageX;let c=t.pageY;i.forEach(((t,i)=>{s.delete(i);s.forEach((s=>{let i=s.startX-t.startX;let e=s.startY-t.startY;let l=s.endX-t.endX;let f=s.endY-t.endY;let u=0;let d=0;let p=0;let b=0;if(i===0){if(e<0){p=Math.PI*2}else if(e>0){p=Math.PI}}else if(i>0){p=Math.PI/2+Math.atan(e/i)}else if(i<0){p=Math.PI*1.5+Math.atan(e/i)}if(l===0){if(f<0){b=Math.PI*2}else if(f>0){b=Math.PI}}else if(l>0){b=Math.PI/2+Math.atan(f/l)}else if(l<0){b=Math.PI*1.5+Math.atan(f/l)}if(b>0||p>0){const i=b-p;const e=Math.abs(i);if(e>n){n=e;o=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}i=Math.abs(i);e=Math.abs(e);l=Math.abs(l);f=Math.abs(f);if(i>0&&e>0){u=Math.sqrt(i*i+e*e)}else if(i>0){u=i}else if(e>0){u=e}if(l>0&&f>0){d=Math.sqrt(l*l+f*f)}else if(l>0){d=l}else if(f>0){d=f}if(u>0&&d>0){const i=(d-u)/u;const e=Math.abs(i);if(e>h){h=e;r=i;a=(t.startX+s.startX)/2;c=(t.startY+s.startY)/2}}}))}));const l=n>0;const f=h>0;if(l&&f){e.rotate=o;e.scale=r;e.centerX=a;e.centerY=c}else if(l){e.action=k;e.rotate=o;e.centerX=a;e.centerY=c}else if(f){e.action=$;e.scale=r;e.centerX=a;e.centerY=c}else{e.action=x}}else{const[t]=Array.from(i.values());Object.assign(e,t)}i.forEach((t=>{t.startX=t.endX;t.startY=t.endY}));if(e.action!==x){this.$emit(H,e,{cancelable:false})}}$handlePointerUp(t){const{$action:s,$pointers:i}=this;if(this.disabled||s===x){return}if(this.$emit(U,{action:s,relatedEvent:t})===false){return}t.preventDefault();if(t.changedTouches){Array.from(t.changedTouches).forEach((({identifier:t})=>{i.delete(t)}))}else{const{pointerId:s=0}=t;i.delete(s)}if(i.size===0){this.style.willChange="";this.$action=x}}$handleWheel(t){if(this.disabled){return}t.preventDefault();if(this.$wheeling){return}this.$wheeling=true;setTimeout((()=>{this.$wheeling=false}),50);const s=t.deltaY>0?-1:1;const i=s*this.scaleStep;this.$emit(H,{action:$,scale:i,relatedEvent:t},{cancelable:false})}$setAction(t){if(K(t)){this.$action=t}return this}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let n=this.offsetWidth;let h=this.offsetHeight;let o=1;if(it(t)&&(J(t.width)||J(t.height))){({width:n,height:h}=yt({aspectRatio:n/h,width:t.width,height:t.height}));o=n/this.offsetWidth}e.width=n;e.height=h;const r=this.querySelector(this.$getTagNameOf(p));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,f,u,d]=r.$getTransform();let p=u;let b=d;let m=i.naturalWidth;let g=i.naturalHeight;if(o!==1){p*=o;b*=o;m*=o;g*=o}const w=m/2;const v=g/2;a.fillStyle="transparent";a.fillRect(0,0,n,h);if(it(t)&&et(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(w,v);a.transform(s,c,l,f,p,b);a.translate(-w,-v);a.drawImage(i,0,0,m,g);a.restore()}s(e)})).catch(i)}))}}It.$name=l;It.$version="2.0.0";var Nt=`:host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}`;const Rt=new WeakMap;const _t=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class Xt extends Tt{constructor(){super(...arguments);this.$matrix=[1,0,0,1,0,0];this.$onLoad=null;this.$onCanvasAction=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$actionStartTarget=null;this.$style=Nt;this.$image=new Image;this.initialCenterSize="contain";this.rotatable=false;this.scalable=false;this.skewable=false;this.slottable=false;this.translatable=false}set $canvas(t){Rt.set(this,t)}get $canvas(){return Rt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(_t,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,s,i){if(Object.is(i,s)){return}super.attributeChangedCallback(t,s,i);if(_t.includes(t)){this.$image.setAttribute(t,i)}}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"initialCenterSize":this.$nextTick((()=>{this.$center(i)}));break}}connectedCallback(){super.connectedCallback();const{$image:t}=this;const s=this.closest(this.$getTagNameOf(l));if(s){this.$canvas=s;this.$setStyles({display:"block",position:"absolute"});this.$onCanvasActionStart=t=>{var s,i;this.$actionStartTarget=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target};this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null};this.$onCanvasAction=this.$handleAction.bind(this);ft(s,B,this.$onCanvasActionStart);ft(s,U,this.$onCanvasActionEnd);ft(s,H,this.$onCanvasAction)}this.$onLoad=this.$handleLoad.bind(this);ft(t,D,this.$onLoad);this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:s}=this;if(s){if(this.$onCanvasActionStart){lt(s,B,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){lt(s,U,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){lt(s,H,this.$onCanvasAction);this.$onCanvasAction=null}}if(t&&this.$onLoad){lt(t,D,this.$onLoad);this.$onLoad=null}this.$getShadowRoot().removeChild(t);super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight});if(this.$canvas){this.$center(this.initialCenterSize)}}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable)){return}const{$canvas:s}=this;const{detail:i}=t;if(i){const{relatedEvent:t}=i;let{action:e}=i;if(e===y&&(!this.rotatable||!this.scalable)){if(this.rotatable){e=k}else if(this.scalable){e=$}else{e=x}}switch(e){case v:if(this.translatable){let e=null;if(t){e=t.target.closest(this.$getTagNameOf(b))}if(!e){e=s.querySelector(this.$getTagNameOf(b))}if(e&&e.multiple&&!e.active){e=s.querySelector(`${this.$getTagNameOf(b)}[active]`)}if(!e||e.hidden||!e.movable||e.dynamic||!(this.$actionStartTarget&&e.contains(this.$actionStartTarget))){this.$move(i.endX-i.startX,i.endY-i.startY)}}break;case k:if(this.rotatable){if(t){const{x:s,y:e}=this.getBoundingClientRect();this.$rotate(i.rotate,t.clientX-s,t.clientY-e)}else{this.$rotate(i.rotate)}}break;case $:if(this.scalable){if(t){const s=t.target.closest(this.$getTagNameOf(b));if(!s||!s.zoomable||s.zoomable&&s.dynamic){const{x:s,y:e}=this.getBoundingClientRect();this.$zoom(i.scale,t.clientX-s,t.clientY-e)}}else{this.$zoom(i.scale)}}break;case y:if(this.rotatable&&this.scalable){const{rotate:s}=i;let{scale:e}=i;if(e<0){e=1/(1-e)}else{e+=1}const n=Math.cos(s);const h=Math.sin(s);const[o,r,a,c]=[n*e,h*e,-h*e,n*e];if(t){const s=this.getBoundingClientRect();const i=t.clientX-s.x;const e=t.clientY-s.y;const[n,h,l,f]=this.$matrix;const u=s.width/2;const d=s.height/2;const p=i-u;const b=e-d;const m=(p*f-l*b)/(n*f-l*h);const g=(b*n-h*p)/(n*f-l*h);this.$transform(o,r,a,c,m*(1-o)+g*a,g*(1-c)+m*r)}else{this.$transform(o,r,a,c,0,0)}}break}}}$ready(t){const{$image:s}=this;const i=new Promise(((t,i)=>{const e=new Error("Failed to load the image source");if(s.complete){if(s.naturalWidth>0&&s.naturalHeight>0){t(s)}else{i(e)}}else{const n=()=>{lt(s,P,h);t(s)};const h=()=>{lt(s,D,n);i(e)};ut(s,D,n);ut(s,P,h)}}));if(et(t)){i.then((s=>{t(s);return s}))}return i}$center(t){const{parentElement:s}=this;if(!s){return this}const i=s.getBoundingClientRect();const e=i.width;const n=i.height;const{x:h,y:o,width:r,height:a}=this.getBoundingClientRect();const c=h+r/2;const l=o+a/2;const f=i.x+e/2;const u=i.y+n/2;this.$move(f-c,u-l);if(t&&(r!==e||a!==n)){const s=e/r;const i=n/a;switch(t){case"cover":this.$scale(Math.max(s,i));break;case"contain":this.$scale(Math.min(s,i));break}}return this}$move(t,s=t){if(this.translatable&&G(t)&&G(s)){const[i,e,n,h]=this.$matrix;const o=(t*h-n*s)/(i*h-n*e);const r=(s*i-e*t)/(i*h-n*e);this.$translate(o,r)}return this}$moveTo(t,s=t){if(this.translatable&&G(t)&&G(s)){const[i,e,n,h]=this.$matrix;const o=(t*h-n*s)/(i*h-n*e);const r=(s*i-e*t)/(i*h-n*e);this.$setTransform(i,e,n,h,o,r)}return this}$rotate(t,s,i){if(this.rotatable){const e=vt(t);const n=Math.cos(e);const h=Math.sin(e);const[o,r,a,c]=[n,h,-h,n];if(G(s)&&G(i)){const[t,e,n,h]=this.$matrix;const{width:l,height:f}=this.getBoundingClientRect();const u=l/2;const d=f/2;const p=s-u;const b=i-d;const m=(p*h-n*b)/(t*h-n*e);const g=(b*t-e*p)/(t*h-n*e);this.$transform(o,r,a,c,m*(1-o)-g*a,g*(1-c)-m*r)}else{this.$transform(o,r,a,c,0,0)}}return this}$zoom(t,s,i){if(!this.scalable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}if(G(s)&&G(i)){const[e,n,h,o]=this.$matrix;const{width:r,height:a}=this.getBoundingClientRect();const c=r/2;const l=a/2;const f=s-c;const u=i-l;const d=(f*o-h*u)/(e*o-h*n);const p=(u*e-n*f)/(e*o-h*n);this.$transform(t,0,0,t,d*(1-t),p*(1-t))}else{this.$scale(t)}return this}$scale(t,s=t){if(this.scalable){this.$transform(t,0,0,s,0,0)}return this}$skew(t,s=0){if(this.skewable){const i=vt(t);const e=vt(s);this.$transform(1,Math.tan(e),Math.tan(i),1,0,0)}return this}$translate(t,s=t){if(this.translatable&&G(t)&&G(s)){this.$transform(1,0,0,1,t,s)}return this}$transform(t,s,i,e,n,h){if(G(t)&&G(s)&&G(i)&&G(e)&&G(n)&&G(h)){return this.$setTransform(xt(this.$matrix,[t,s,i,e,n,h]))}return this}$setTransform(t,s,i,e,n,h){if(this.rotatable||this.scalable||this.skewable||this.translatable){if(Array.isArray(t)){[t,s,i,e,n,h]=t}if(G(t)&&G(s)&&G(i)&&G(e)&&G(n)&&G(h)){const o=[...this.$matrix];const r=[t,s,i,e,n,h];if(this.$emit(V,{matrix:r,oldMatrix:o})===false){return this}this.$matrix=r;this.style.transform=`matrix(${r.join(", ")})`}}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}Xt.$name=p;Xt.$version="2.0.0";var Yt=`:host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}`;const Pt=new WeakMap;class Wt extends Tt{constructor(){super(...arguments);this.$onCanvasChange=null;this.$onCanvasActionEnd=null;this.$onCanvasActionStart=null;this.$style=Yt;this.x=0;this.y=0;this.width=0;this.height=0;this.slottable=false;this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){Pt.set(this,t)}get $canvas(){return Pt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));if(t){this.$canvas=t;this.style.position="absolute";const s=t.querySelector(this.$getTagNameOf(b));if(s){this.$onCanvasActionStart=t=>{if(s.hidden&&t.detail.action===w){this.hidden=false}};this.$onCanvasActionEnd=t=>{if(s.hidden&&t.detail.action===w){this.hidden=true}};this.$onCanvasChange=t=>{const{x:i,y:e,width:n,height:h}=t.detail;this.$change(i,e,n,h);if(s.hidden||i===0&&e===0&&n===0&&h===0){this.hidden=true}};ft(t,B,this.$onCanvasActionStart);ft(t,U,this.$onCanvasActionEnd);ft(t,F,this.$onCanvasChange)}}this.$render()}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){lt(t,B,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){lt(t,U,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasChange){lt(t,F,this.$onCanvasChange);this.$onCanvasChange=null}}super.disconnectedCallback()}$change(t,s,i=this.width,e=this.height){if(!G(t)||!G(s)||!G(i)||!G(e)||t===this.x&&s===this.y&&i===this.width&&e===this.height){return this}if(this.hidden){this.hidden=false}this.x=t;this.y=s;this.width=i;this.height=e;return this.$render()}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:o.innerWidth})}}Wt.$name=m;Wt.$version="2.0.0";var Dt=`:host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}`;class Lt extends Tt{constructor(){super(...arguments);this.$onCanvasCropEnd=null;this.$onCanvasCropStart=null;this.$style=Dt;this.action=x;this.plain=false;this.slottable=false;this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}Lt.$name=d;Lt.$version="2.0.0";var Ht=`:host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}`;const Ut=new WeakMap;class qt extends Tt{constructor(){super(...arguments);this.$onCanvasAction=null;this.$onCanvasActionStart=null;this.$onCanvasActionEnd=null;this.$onDocumentKeyDown=null;this.$action="";this.$actionStartTarget=null;this.$changing=false;this.$style=Ht;this.$initialSelection={x:0,y:0,width:0,height:0};this.x=0;this.y=0;this.width=0;this.height=0;this.aspectRatio=NaN;this.initialAspectRatio=NaN;this.initialCoverage=NaN;this.active=false;this.linked=false;this.dynamic=false;this.movable=false;this.resizable=false;this.zoomable=false;this.multiple=false;this.keyboard=false;this.outlined=false;this.precise=false}set $canvas(t){Ut.set(this,t)}get $canvas(){return Ut.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);switch(t){case"x":case"y":case"width":case"height":if(!this.$changing){this.$nextTick((()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,true)}))}break;case"aspectRatio":case"initialAspectRatio":this.$nextTick((()=>{this.$initSelection()}));break;case"initialCoverage":this.$nextTick((()=>{if(J(i)&&i<=1){this.$initSelection(true,true)}}));break;case"keyboard":this.$nextTick((()=>{if(this.$canvas){if(i){if(!this.$onDocumentKeyDown){this.$onDocumentKeyDown=this.$handleKeyDown.bind(this);ft(this.ownerDocument,W,this.$onDocumentKeyDown)}}else if(this.$onDocumentKeyDown){lt(this.ownerDocument,W,this.$onDocumentKeyDown);this.$onDocumentKeyDown=null}}}));break;case"multiple":this.$nextTick((()=>{if(this.$canvas){const t=this.$getSelections();if(i){t.forEach((t=>{t.active=false}));this.active=true;this.$emit(F,{x:this.x,y:this.y,width:this.width,height:this.height})}else{this.active=false;t.slice(1).forEach((t=>{this.$removeSelection(t)}))}}}));break;case"precise":this.$nextTick((()=>{this.$change(this.x,this.y)}));break;case"linked":if(i){this.dynamic=true}break}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(l));if(t){this.$canvas=t;this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`});if(!this.hidden){this.$render()}this.$initSelection(true);this.$onCanvasActionStart=this.$handleActionStart.bind(this);this.$onCanvasActionEnd=this.$handleActionEnd.bind(this);this.$onCanvasAction=this.$handleAction.bind(this);ft(t,B,this.$onCanvasActionStart);ft(t,U,this.$onCanvasActionEnd);ft(t,H,this.$onCanvasAction)}else{this.$render()}}disconnectedCallback(){const{$canvas:t}=this;if(t){if(this.$onCanvasActionStart){lt(t,B,this.$onCanvasActionStart);this.$onCanvasActionStart=null}if(this.$onCanvasActionEnd){lt(t,U,this.$onCanvasActionEnd);this.$onCanvasActionEnd=null}if(this.$onCanvasAction){lt(t,H,this.$onCanvasAction);this.$onCanvasAction=null}}super.disconnectedCallback()}$getSelections(){let t=[];if(this.parentElement){t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(b)))}return t}$initSelection(t=false,s=false){const{initialCoverage:i,parentElement:e}=this;if(J(i)&&e){const n=this.aspectRatio||this.initialAspectRatio;let h=(s?0:this.width)||e.offsetWidth*i;let o=(s?0:this.height)||e.offsetHeight*i;if(J(n)){({width:h,height:o}=yt({aspectRatio:n,width:h,height:o}))}this.$change(this.x,this.y,h,o);if(t){this.$center()}this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(true);if(this.hasAttribute("id")){t.removeAttribute("id")}t.initialCoverage=NaN;this.active=false;if(this.parentElement){this.parentElement.insertBefore(t,this.nextSibling)}return t}$removeSelection(t=this){if(this.parentElement){const s=this.$getSelections();if(s.length>1){const i=s.indexOf(t);const e=s[i+1]||s[i-1];if(e){t.active=false;this.parentElement.removeChild(t);e.active=true;e.$emit(F,{x:e.x,y:e.y,width:e.width,height:e.height})}}else{this.$clear()}}}$handleActionStart(t){var s,i;const e=(i=(s=t.detail)===null||s===void 0?void 0:s.relatedEvent)===null||i===void 0?void 0:i.target;this.$action="";this.$actionStartTarget=e;if(!this.hidden&&this.multiple&&!this.active&&e===this&&this.parentElement){this.$getSelections().forEach((t=>{t.active=false}));this.active=true;this.$emit(F,{x:this.x,y:this.y,width:this.width,height:this.height})}}$handleAction(t){const{currentTarget:s,detail:i}=t;if(!s||!i){return}const{relatedEvent:e}=i;let{action:n}=i;if(!n&&this.multiple){n=this.$action||(e===null||e===void 0?void 0:e.target.action);this.$action=n}if(!n||this.hidden&&n!==w||this.multiple&&!this.active&&n!==$){return}const h=i.endX-i.startX;const o=i.endY-i.startY;const{width:r,height:a}=this;let{aspectRatio:c}=this;if(!J(c)&&e.shiftKey){c=J(r)&&J(a)?r/a:1}switch(n){case w:if(h!==0&&o!==0){const{$canvas:t}=this;const e=gt(s);(this.multiple&&!this.hidden?this.$createSelection():this).$change(i.startX-e.left,i.startY-e.top,Math.abs(h),Math.abs(o),c);if(h<0){if(o<0){n=O}else if(o>0){n=T}}else if(h>0){if(o<0){n=j}else if(o>0){n=S}}if(t){t.$action=n}}break;case v:if(this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))){this.$move(h,o)}break;case $:if(e&&this.zoomable&&(this.dynamic||this.contains(e.target))){const t=gt(s);this.$zoom(i.scale,e.pageX-t.left,e.pageY-t.top)}break;default:this.$resize(n,h,o,c)}}$handleActionEnd(){this.$action="";this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented){return}const{activeElement:s}=document;if(s&&(["INPUT","TEXTAREA"].includes(s.tagName)||["true","plaintext-only"].includes(s.contentEditable))){return}switch(t.key){case"Backspace":if(t.metaKey){t.preventDefault();this.$removeSelection()}break;case"Delete":t.preventDefault();this.$removeSelection();break;case"ArrowLeft":t.preventDefault();this.$move(-1,0);break;case"ArrowRight":t.preventDefault();this.$move(1,0);break;case"ArrowUp":t.preventDefault();this.$move(0,-1);break;case"ArrowDown":t.preventDefault();this.$move(0,1);break;case"+":t.preventDefault();this.$zoom(.1);break;case"-":t.preventDefault();this.$zoom(-.1);break}}$center(){const{parentElement:t}=this;if(!t){return this}const s=(t.offsetWidth-this.width)/2;const i=(t.offsetHeight-this.height)/2;return this.$change(s,i)}$move(t,s=t){return this.$moveTo(this.x+t,this.y+s)}$moveTo(t,s=t){if(!this.movable){return this}return this.$change(t,s)}$resize(t,s=0,i=0,e=this.aspectRatio){if(!this.resizable){return this}const n=J(e);const{$canvas:h}=this;let{x:o,y:r,width:a,height:c}=this;switch(t){case z:r+=i;c-=i;if(c<0){t=C;c=-c;r-=c}if(n){s=i*e;o+=s/2;a-=s;if(a<0){a=-a;o-=a}}break;case M:a+=s;if(a<0){t=A;a=-a;o-=a}if(n){i=s/e;r-=i/2;c+=i;if(c<0){c=-c;r-=c}}break;case C:c+=i;if(c<0){t=z;c=-c;r-=c}if(n){s=i*e;o-=s/2;a+=s;if(a<0){a=-a;o-=a}}break;case A:o+=s;a-=s;if(a<0){t=M;a=-a;o-=a}if(n){i=s/e;r+=i/2;c-=i;if(c<0){c=-c;r-=c}}break;case j:if(n){i=-s/e}r+=i;c-=i;a+=s;if(a<0&&c<0){t=T;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=O;a=-a;o-=a}else if(c<0){t=S;c=-c;r-=c}break;case O:if(n){i=s/e}o+=s;r+=i;a-=s;c-=i;if(a<0&&c<0){t=S;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=j;a=-a;o-=a}else if(c<0){t=T;c=-c;r-=c}break;case S:if(n){i=s/e}a+=s;c+=i;if(a<0&&c<0){t=O;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=T;a=-a;o-=a}else if(c<0){t=j;c=-c;r-=c}break;case T:if(n){i=-s/e}o+=s;a-=s;c+=i;if(a<0&&c<0){t=j;a=-a;c=-c;o-=a;r-=c}else if(a<0){t=S;a=-a;o-=a}else if(c<0){t=O;c=-c;r-=c}break}if(h){h.$setAction(t)}return this.$change(o,r,a,c)}$zoom(t,s,i){if(!this.zoomable||t===0){return this}if(t<0){t=1/(1-t)}else{t+=1}const{width:e,height:n}=this;const h=e*t;const o=n*t;let r=this.x;let a=this.y;if(G(s)&&G(i)){r-=(h-e)*((s-this.x)/e);a-=(o-n)*((i-this.y)/n)}else{r-=(h-e)/2;a-=(o-n)/2}return this.$change(r,a,h,o)}$change(t,s,i=this.width,e=this.height,n=this.aspectRatio,h=false){if(this.$changing||!G(t)||!G(s)||!G(i)||!G(e)||i<0||e<0){return this}if(J(n)){({width:i,height:e}=yt({aspectRatio:n,width:i,height:e},"cover"))}if(!this.precise){t=Math.round(t);s=Math.round(s);i=Math.round(i);e=Math.round(e)}if(t===this.x&&s===this.y&&i===this.width&&e===this.height&&Object.is(n,this.aspectRatio)&&!h){return this}if(this.hidden){this.hidden=false}if(this.$emit(F,{x:t,y:s,width:i,height:e})===false){return this}this.$changing=true;this.x=t;this.y=s;this.width=i;this.height=e;this.$changing=false;return this.$render()}$reset(){const{x:t,y:s,width:i,height:e}=this.$initialSelection;return this.$change(t,s,i,e)}$clear(){this.$change(0,0,0,0,NaN,true);this.hidden=true;return this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise(((s,i)=>{if(!this.isConnected){i(new Error("The current element is not connected to the DOM."));return}const e=document.createElement("canvas");let{width:n,height:h}=this;let o=1;if(it(t)&&(J(t.width)||J(t.height))){({width:n,height:h}=yt({aspectRatio:n/h,width:t.width,height:t.height}));o=n/this.width}e.width=n;e.height=h;if(!this.$canvas){s(e);return}const r=this.$canvas.querySelector(this.$getTagNameOf(p));if(!r){s(e);return}r.$ready().then((i=>{const a=e.getContext("2d");if(a){const[s,c,l,f,u,d]=r.$getTransform();const p=-this.x;const b=-this.y;const m=(p*f-l*b)/(s*f-l*c);const g=(b*s-c*p)/(s*f-l*c);let w=s*m+l*g+u;let v=c*m+f*g+d;let $=i.naturalWidth;let k=i.naturalHeight;if(o!==1){w*=o;v*=o;$*=o;k*=o}const y=$/2;const x=k/2;a.fillStyle="transparent";a.fillRect(0,0,n,h);if(it(t)&&et(t.beforeDraw)){t.beforeDraw.call(this,a,e)}a.save();a.translate(y,x);a.transform(s,c,l,f,w,v);a.translate(-y,-x);a.drawImage(i,0,0,$,k);a.restore()}s(e)})).catch(i)}))}}qt.$name=b;qt.$version="2.0.0";var Bt=`:host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}`;class Ft extends Tt{constructor(){super(...arguments);this.$style=Bt;this.bordered=false;this.columns=3;this.covered=false;this.rows=3;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,s,i){if(Object.is(i,s)){return}super.$propertyChangedCallback(t,s,i);if(t==="rows"||t==="columns"){this.$nextTick((()=>{this.$render()}))}}connectedCallback(){super.connectedCallback();this.$render()}$render(){const t=this.$getShadowRoot();const s=document.createDocumentFragment();for(let t=0;t<this.rows;t+=1){const t=document.createElement("span");t.setAttribute("role","row");for(let s=0;s<this.columns;s+=1){const s=document.createElement("span");s.setAttribute("role","gridcell");t.appendChild(s)}s.appendChild(t)}if(t){t.innerHTML="";t.appendChild(s)}}}Ft.$name=u;Ft.$version="2.0.0";var Vt=`:host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`;class Kt extends Tt{constructor(){super(...arguments);this.$style=Vt;this.centered=false;this.slottable=false;this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Kt.$name=f;Kt.$version="2.0.0";var Zt=`:host{display:block;height:100%;overflow:hidden;position:relative;width:100%}`;const Gt=new WeakMap;const Jt=new WeakMap;const Qt=new WeakMap;const ts=new WeakMap;const ss="both";const is="horizontal";const es="vertical";const ns="none";class hs extends Tt{constructor(){super(...arguments);this.$onSelectionChange=null;this.$onSourceImageLoad=null;this.$onSourceImageTransform=null;this.$scale=1;this.$style=Zt;this.resize=es;this.selection="";this.slottable=false}set $image(t){Jt.set(this,t)}get $image(){return Jt.get(this)}set $sourceImage(t){ts.set(this,t)}get $sourceImage(){return ts.get(this)}set $canvas(t){Gt.set(this,t)}get $canvas(){return Gt.get(this)}set $selection(t){Qt.set(this,t)}get $selection(){return Qt.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(this.selection){t=this.ownerDocument.querySelector(this.selection)}else{t=this.closest(this.$getTagNameOf(b))}if(nt(t)){this.$selection=t;this.$onSelectionChange=this.$handleSelectionChange.bind(this);ft(t,F,this.$onSelectionChange);const s=t.closest(this.$getTagNameOf(l));if(s){this.$canvas=s;const t=s.querySelector(this.$getTagNameOf(p));if(t){this.$sourceImage=t;this.$image=t.cloneNode(true);this.$getShadowRoot().appendChild(this.$image);this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this);this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this);ft(t.$image,D,this.$onSourceImageLoad);ft(t,V,this.$onSourceImageTransform)}}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:s}=this;if(t&&this.$onSelectionChange){lt(t,F,this.$onSelectionChange);this.$onSelectionChange=null}if(s&&this.$onSourceImageLoad){lt(s.$image,D,this.$onSourceImageLoad);this.$onSourceImageLoad=null}if(s&&this.$onSourceImageTransform){lt(s,V,this.$onSourceImageTransform);this.$onSourceImageTransform=null}super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:s}=this;const i=t.getAttribute("src");const e=s.getAttribute("src");if(e&&e!==i){t.setAttribute("src",e);t.$ready((()=>{setTimeout((()=>{this.$render()}),50)}))}}$handleSourceImageTransform(t){this.$render(undefined,t.detail.matrix)}$render(t,s){const{$canvas:i,$selection:e}=this;if(!t&&!e.hidden){t=e}if(!t||t.x===0&&t.y===0&&t.width===0&&t.height===0){t={x:0,y:0,width:i.offsetWidth,height:i.offsetHeight}}const{x:n,y:h,width:o,height:r}=t;const a={};const{clientWidth:c,clientHeight:l}=this;let f=c;let u=l;let d=NaN;switch(this.resize){case ss:d=1;f=o;u=r;a.width=o;a.height=r;break;case is:d=r>0?l/r:0;f=o*d;a.width=f;break;case es:d=o>0?c/o:0;u=r*d;a.height=u;break;case ns:default:if(c>0){d=o>0?c/o:0}else if(l>0){d=r>0?l/r:0}}this.$scale=d;this.$setStyles(a);if(this.$sourceImage){this.$transformImageByOffset(s!==null&&s!==void 0?s:this.$sourceImage.$getTransform(),-n,-h)}}$transformImageByOffset(t,s,i){const{$image:e,$scale:n,$sourceImage:h}=this;if(h&&e&&n>=0){const[h,o,r,a,c,l]=t;const f=(s*a-r*i)/(h*a-r*o);const u=(i*h-o*s)/(h*a-r*o);const d=h*f+r*u+c;const p=o*f+a*u+l;e.$ready((t=>{this.$setStyles.call(e,{width:t.naturalWidth*n,height:t.naturalHeight*n})}));e.$setTransform(h,o,r,a,d*n,p*n)}}}hs.$name=g;hs.$version="2.0.0";
2
+ /*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */It.$define();Kt.$define();Ft.$define();Lt.$define();Xt.$define();qt.$define();Wt.$define();hs.$define();const os=".mb-6{margin-bottom:1.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}*{box-sizing:border-box}:host{align-items:center;display:flex;flex-direction:column;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem;width:100%}.static{position:static!important}.hidden{display:none!important}.h-\\[17\\.5rem\\]{height:17.5rem!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.resize{resize:both!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-mystic-medium{--tw-border-opacity:1!important;border-color:rgb(227 236 243/var(--tw-border-opacity,1))!important}.bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-14{padding-left:3.5rem!important;padding-right:3.5rem!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity,1))!important}@media (min-width:40rem){.tablet\\:max-w-xs{max-width:20rem!important}.tablet\\:px-1{padding-left:.25rem!important;padding-right:.25rem!important}}";const rs=class{constructor(i){t(this,i);this.valueChange=s(this,"valueChange",3)}variant="user";value;returnType="base64";valueChange;_imageRef;_selectionRef;_maxScale=0;_minScale=0;_resizeDebounceTimeout;_toCanvasDebounceTimeout;_loaded=false;_currentScale=0;onResize(){if(this._resizeDebounceTimeout){clearTimeout(this._resizeDebounceTimeout)}this._resizeDebounceTimeout=setTimeout((()=>{this._selectionRef.$center();this._imageRef.$center()}),200)}componentDidLoad(){setTimeout((()=>{this._loaded=true}),200)}render(){return i(e,{key:"e24538f7894f87f0a74b278cfcded8c468458b1d",class:"p-cropper"},this._loaded&&i("cropper-canvas",{key:"322819276c8067200448b6b5db91c5d4b55635dc",class:"h-[17.5rem] w-full border-0 border-b border-solid border-mystic-medium bg-white",onAction:()=>this._onAction()},i("cropper-image",{key:"425800342321a6866fe456c306cd14e41f730638",src:this.value,alt:"Picture",ref:t=>this._setImageRef(t),scalable:true,crossorigin:"anonymous"}),i("cropper-shade",{key:"8c0909db63231a802bc9a095ff4d7a91733c2cb5",class:n({"rounded-round":this.variant==="user",rounded:this.variant==="company"}),"theme-color":"rgba(255, 255, 255, 0.5)",hidden:true}),i("cropper-selection",{key:"98bb666ed377e4a05dcd79bf75a6bfbd0c87f357","initial-coverage":"0.7","aspect-ratio":"1",ref:t=>this._selectionRef=t}),i("cropper-handle",{key:"800ba3ca781e8bcaadf48fc9bdb19f9a1f8e2a18",action:"move",plain:true})),i("div",{key:"329691f46ecb9a2fe69adc9ee52e01f99d5e5887",class:"flex w-full items-center gap-2 px-14 text-storm-vague tablet:max-w-xs tablet:px-1"},i("p-icon",{key:"331f23998c122f21c0b5244ebf7ead26d85b5b75",variant:"minus"}),i("input",{key:"ba6b41da6715d42d6b39e707b6a99b5401c40272",class:"p-input w-full",type:"range",min:"0",max:"100",value:this._currentScale,onInput:t=>this._onInput(t.target.value),step:"0.5"}),i("p-icon",{key:"1259a20fa5c3cae52a1dc9568329451a32706f4d",variant:"plus"})))}_setImageRef(t){if(this._imageRef){return}this._imageRef=t;this._imageRef.$ready((t=>setTimeout((()=>this._setInitialState(t)),200)))}_setInitialState(t){let s;if(t.naturalWidth>t.naturalHeight){s=200/t.naturalHeight}if(t.naturalHeight>=t.naturalWidth){s=200/t.naturalWidth}const i=this._imageRef.$getTransform();this._minScale=s;this._maxScale=i[0];this._selectionRef.$resize("nw-resize",200,200,1);this._selectionRef.$center();this._setScale(s);this._toCanvas()}_onAction(){this._setCurrentScale();this._toCanvas()}_setScale(t,s=true,i=true){const e=this._imageRef.$getTransform();this._imageRef.$setTransform([t,0,0,t,e[4],e[5]]);if(s){this._imageRef.$center()}if(i){this._setCurrentScale()}}_setCurrentScale(){const t=this._imageRef.$getTransform();const s=t[0];if(s<this._minScale){this._setScale(this._minScale,true,false);this._currentScale=0;return}if(s>this._maxScale){this._setScale(this._maxScale,true,false);this._currentScale=100;return}if(s===this._minScale){this._currentScale=0;return}if(s===this._maxScale){this._currentScale=100;return}const i=this._maxScale-this._minScale;const e=s-this._minScale;const n=e/i*100;this._currentScale=n}_onInput(t){const s=this._imageRef.$getTransform();const i=s[0];const e=this._maxScale-this._minScale;const n=e*(t/100);if(n===i){return}this._setScale(n+this._minScale,false,false);this._currentScale=t;this._toCanvas()}_toCanvas(){if(this._toCanvasDebounceTimeout){clearTimeout(this._toCanvasDebounceTimeout)}this._toCanvasDebounceTimeout=setTimeout((async()=>{const t=await this._selectionRef.$toCanvas();if(this.returnType==="canvas"){this.valueChange.emit(t);return}const s=t.toDataURL("image/png");this.valueChange.emit(s)}),200)}};rs.style=os;export{rs as p_cropper};
3
+ //# sourceMappingURL=p-90d8cf17.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as a,H as e}from"./p-I9JY9uxk.js";import{i as r}from"./p-BOhxJSvM.js";const s="*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-0,.-rotate-135{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-315{--tw-rotate:-315deg!important}.-rotate-315,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-90,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate:0deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-270{--tw-rotate:270deg!important}.rotate-270,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-315{--tw-rotate:315deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:2rem!important;line-height:2.5rem!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important}.text-xs,.text-xxs{line-height:1rem!important}.text-xxs{font-size:.5rem!important}";const o=class{constructor(a){t(this,a)}variant;size="auto";rotate=0;flip="none";componentDidLoad(){console.warn("[p-icon-deprecated] Deprecated, please use p-icon")}render(){const t=r[this.variant];const s={"p-icon flex":true,"text-auto":this.size==="auto","text-xxs":this.size==="xxs","text-xs":this.size==="xs","text-sm":this.size==="sm","text-base":this.size==="base","text-lg":this.size==="lg","text-xl":this.size==="xl","text-2xl":this.size==="2xl","text-3xl":this.size==="3xl","text-4xl":this.size==="4xl",transform:!!this.rotate||this.flip!=="none","scale-x-flip":this.flip==="horizontal","scale-y-flip":this.flip==="vertical","rotate-0":this.rotate===0,"rotate-25":this.rotate===25,"rotate-45":this.rotate===45,"rotate-90":this.rotate===90,"rotate-135":this.rotate===135,"rotate-180":this.rotate===180,"rotate-225":this.rotate===225,"rotate-270":this.rotate===270,"rotate-315":this.rotate===315,"-rotate-0":this.rotate===-0,"-rotate-25":this.rotate===-25,"-rotate-45":this.rotate===-45,"-rotate-90":this.rotate===-90,"-rotate-135":this.rotate===-135,"-rotate-180":this.rotate===-180,"-rotate-225":this.rotate===-225,"-rotate-270":this.rotate===-270,"-rotate-315":this.rotate===-315};return a(e,{key:"7586fddea039782f21a48943f238a1ad4f7cabae",class:s,innerHTML:t})}};o.style=s;export{o as p_icon_deprecated};
2
- //# sourceMappingURL=p-dbab1545.entry.js.map
1
+ import{r as t,h as a,H as e}from"./p-CayVqENR.js";import{i as r}from"./p-BOhxJSvM.js";const s="*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-0,.-rotate-135{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-270{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-315{--tw-rotate:-315deg!important}.-rotate-315,.-rotate-45{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-90,.rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate:0deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-25{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-25{--tw-rotate:25deg!important}.rotate-270{--tw-rotate:270deg!important}.rotate-270,.rotate-315{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-315{--tw-rotate:315deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-90{--tw-rotate:90deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:2rem!important;line-height:2.5rem!important}.text-4xl{font-size:2.5rem!important;line-height:3rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.text-xs{font-size:.75rem!important}.text-xs,.text-xxs{line-height:1rem!important}.text-xxs{font-size:.5rem!important}";const o=class{constructor(a){t(this,a)}variant;size="auto";rotate=0;flip="none";componentDidLoad(){console.warn("[p-icon-deprecated] Deprecated, please use p-icon")}render(){const t=r[this.variant];const s={"p-icon flex":true,"text-auto":this.size==="auto","text-xxs":this.size==="xxs","text-xs":this.size==="xs","text-sm":this.size==="sm","text-base":this.size==="base","text-lg":this.size==="lg","text-xl":this.size==="xl","text-2xl":this.size==="2xl","text-3xl":this.size==="3xl","text-4xl":this.size==="4xl",transform:!!this.rotate||this.flip!=="none","scale-x-flip":this.flip==="horizontal","scale-y-flip":this.flip==="vertical","rotate-0":this.rotate===0,"rotate-25":this.rotate===25,"rotate-45":this.rotate===45,"rotate-90":this.rotate===90,"rotate-135":this.rotate===135,"rotate-180":this.rotate===180,"rotate-225":this.rotate===225,"rotate-270":this.rotate===270,"rotate-315":this.rotate===315,"-rotate-0":this.rotate===-0,"-rotate-25":this.rotate===-25,"-rotate-45":this.rotate===-45,"-rotate-90":this.rotate===-90,"-rotate-135":this.rotate===-135,"-rotate-180":this.rotate===-180,"-rotate-225":this.rotate===-225,"-rotate-270":this.rotate===-270,"-rotate-315":this.rotate===-315};return a(e,{key:"7586fddea039782f21a48943f238a1ad4f7cabae",class:s,innerHTML:t})}};o.style=s;export{o as p_icon_deprecated};
2
+ //# sourceMappingURL=p-96bfe3fb.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,g as o,h as a,H as i}from"./p-I9JY9uxk.js";const r=".absolute{position:absolute!important}.relative{position:relative!important}.right-2{right:.5rem!important}.top-2{top:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.whitespace-pre-line{white-space:pre-line!important}.rounded-lg{border-radius:.5rem!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))!important}.font-semibold{font-weight:600!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1));border-radius:.5rem;display:flex;flex-direction:column;padding:1rem;position:relative;width:100%}:host .header{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity,1));font-weight:600}:host .content{font-size:.875rem;line-height:1.25rem;white-space:pre-line}:host .close{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity,1));cursor:pointer;position:absolute;right:.5rem;top:.5rem}:host(.variant-positive){--tw-bg-opacity:1;background-color:rgb(229 255 242/var(--tw-bg-opacity,1))}:host(.variant-unbiased){--tw-bg-opacity:1;background-color:rgb(255 246 220/var(--tw-bg-opacity,1))}:host(.variant-negative){--tw-bg-opacity:1;background-color:rgb(255 204 211/var(--tw-bg-opacity,1))}:host(.has-close){padding-right:2rem}.static{position:static!important}";const c=class{constructor(o){t(this,o);this.closed=e(this,"closed",3)}variant="info";header;content;closeable=false;closed;get _el(){return o(this)}render(){return a(i,{key:"ab91a454216a9c67d91865d75bf0879921e5341f",class:`p-info-panel variant-${this.variant} ${this.closeable&&"has-close"}`},a("div",{key:"793c7f4d06484368e0de89e6301a1b21bf186a20",class:"header"},a("slot",{key:"d24b56de36536d0fe4aefd6af0750e21c7e7efc3",name:"header"})),a("div",{key:"ab609d1efe8eed0942782cabaf55dc21ff0e6bf7",class:"content"},a("slot",{key:"9b93c723ecf1781a75d41a4713870a2070313161",name:"content"})),this.closeable&&a("div",{key:"776a29f6c9616930ce58ea5e7feded5e9b444324",class:"close",onClick:()=>this._close()},a("p-icon",{key:"7c3f7b7d5b8522def7b9f120e25a4381c7a4477c",variant:"negative"})))}_close(){this.closed.emit();this._el.remove()}};c.style=r;export{c as p_info_panel};
2
- //# sourceMappingURL=p-089318c5.entry.js.map
1
+ import{r as t,c as e,g as o,h as a,H as i}from"./p-CayVqENR.js";const r=".absolute{position:absolute!important}.relative{position:relative!important}.right-2{right:.5rem!important}.top-2{top:.5rem!important}.flex{display:flex!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.whitespace-pre-line{white-space:pre-line!important}.rounded-lg{border-radius:.5rem!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))!important}.font-semibold{font-weight:600!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1));border-radius:.5rem;display:flex;flex-direction:column;padding:1rem;position:relative;width:100%}:host .header{--tw-text-opacity:1;color:rgb(39 40 56/var(--tw-text-opacity,1));font-weight:600}:host .content{font-size:.875rem;line-height:1.25rem;white-space:pre-line}:host .close{--tw-text-opacity:1;color:rgb(152 154 183/var(--tw-text-opacity,1));cursor:pointer;position:absolute;right:.5rem;top:.5rem}:host(.variant-positive){--tw-bg-opacity:1;background-color:rgb(229 255 242/var(--tw-bg-opacity,1))}:host(.variant-unbiased){--tw-bg-opacity:1;background-color:rgb(255 246 220/var(--tw-bg-opacity,1))}:host(.variant-negative){--tw-bg-opacity:1;background-color:rgb(255 204 211/var(--tw-bg-opacity,1))}:host(.has-close){padding-right:2rem}.static{position:static!important}";const c=class{constructor(o){t(this,o);this.closed=e(this,"closed",3)}variant="info";header;content;closeable=false;closed;get _el(){return o(this)}render(){return a(i,{key:"ab91a454216a9c67d91865d75bf0879921e5341f",class:`p-info-panel variant-${this.variant} ${this.closeable&&"has-close"}`},a("div",{key:"793c7f4d06484368e0de89e6301a1b21bf186a20",class:"header"},a("slot",{key:"d24b56de36536d0fe4aefd6af0750e21c7e7efc3",name:"header"})),a("div",{key:"ab609d1efe8eed0942782cabaf55dc21ff0e6bf7",class:"content"},a("slot",{key:"9b93c723ecf1781a75d41a4713870a2070313161",name:"content"})),this.closeable&&a("div",{key:"776a29f6c9616930ce58ea5e7feded5e9b444324",class:"close",onClick:()=>this._close()},a("p-icon",{key:"7c3f7b7d5b8522def7b9f120e25a4381c7a4477c",variant:"negative"})))}_close(){this.closed.emit();this._el.remove()}};c.style=r;export{c as p_info_panel};
2
+ //# sourceMappingURL=p-9755ed13.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as e,H as a}from"./p-I9JY9uxk.js";const o="*{box-sizing:border-box}.static{position:static!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";const i=class{constructor(e){t(this,e)}render(){return e(a,{key:"09317724a6ceb2281ca9cacd54b7f8e1598e69ad",class:"p-navigation-title text-xs font-medium text-black-teal-300"},e("slot",{key:"1b3eb9926e3141614c13925fc7144a873a08debc"}))}};i.style=o;export{i as p_navigation_title};
2
- //# sourceMappingURL=p-8ed1a47e.entry.js.map
1
+ import{r as t,h as a,H as e}from"./p-CayVqENR.js";const o="*{box-sizing:border-box}.static{position:static!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}";const i=class{constructor(a){t(this,a)}render(){return a(e,{key:"09317724a6ceb2281ca9cacd54b7f8e1598e69ad",class:"p-navigation-title text-xs font-medium text-black-teal-300"},a("slot",{key:"1b3eb9926e3141614c13925fc7144a873a08debc"}))}};i.style=o;export{i as p_navigation_title};
2
+ //# sourceMappingURL=p-9c504fd7.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as r,H as i,c as a}from"./p-I9JY9uxk.js";const e=".flex{display:flex!important}.min-h-full{min-height:100%!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(247 250 252/var(--tw-bg-opacity,1));display:flex;flex:1 1 0%;flex-direction:column;min-height:100%;padding:1.5rem 1rem env(safe-area-inset-bottom,0);width:100%}";const o=class{constructor(r){t(this,r)}variant="default";render(){return r(i,{key:"7097437433b64533d54bc7b2f12558d8565edd13",class:`p-drawer-body variant-${this.variant}`},r("slot",{key:"7b5883e5d8743c496572a67e848036ee61d977cc"}))}};o.style=e;const n=".z-drawer{z-index:500!important}.flex{display:flex!important}.w-full{width:100%!important}.shadow-3{--tw-shadow:0 1px 1px rgba(0,2,2,.08),0 2px 2px rgba(0,2,2,.08),0 4px 4px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}*{box-sizing:border-box}p-drawer-container{--tw-bg-opacity:1;--tw-shadow:0 1px 1px rgba(0,2,2,.08),0 2px 2px rgba(0,2,2,.08),0 4px 4px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color)!important;animation:slideInRight .5s ease forwards;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;min-height:100vh;width:100%;z-index:500}@media (min-width:40rem){p-drawer-container{width:22.5rem}}@keyframes slideInRight{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideOutRight{0%{transform:translateX(0)}to{transform:translateX(100%)}}p-drawer-container.closing{animation:slideOutRight .2s ease forwards}@media (min-width:40rem){.tablet\\:w-\\[22\\.5rem\\]{width:22.5rem!important}}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}";const d=class{constructor(r){t(this,r)}closing=false;render(){return r(i,{key:"209c5d9742fc30495045f6c5309023126369adca",class:`p-drawer-container ${this.closing&&"closing"}`},r("slot",{key:"8d17d46db3d8a0268db03996238c9c305a389dc5"}))}};d.style=n;const m=".absolute{position:absolute!important}.sticky{position:sticky!important}.top-0{top:0!important}.z-drawer-header{z-index:501!important}.flex{display:flex!important}.items-center{align-items:center!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-b-mystic-dark{--tw-border-opacity:1!important;border-bottom-color:rgb(218 230 240/var(--tw-border-opacity,1))!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.font-semibold{font-weight:600!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-border-opacity:1!important;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-width:0!important;border-bottom:1px rgb(218 230 240/var(--tw-border-opacity,1))!important;border-style:solid!important;color:rgb(39 40 56/var(--tw-text-opacity,1));display:flex;font-size:1.25rem;font-weight:600;justify-content:center;line-height:1.75rem;padding:calc(env(safe-area-inset-top, 0) + 1rem) 1rem 1rem;position:sticky;top:0;z-index:501}:host p-button{left:1rem;position:absolute;top:calc(env(safe-area-inset-top, 0) + 1rem)}";const s=class{constructor(r){t(this,r);this.close=a(this,"close",3)}showClose=true;close;render(){return r(i,{key:"eda0258027acfcae6fbd3982fc3706387464bebd",class:"p-drawer-header"},this.showClose&&r("p-button",{key:"2c8a786752d744211cc66d811e04cb458ce001df",variant:"secondary",icon:"negative",iconOnly:true,onClick:()=>this.close.emit(),size:"sm"}),r("slot",{key:"f95daf1b9376cd4d57e104de48e7b4997d9a79be"}))}};s.style=m;export{o as p_drawer_body,d as p_drawer_container,s as p_drawer_header};
2
- //# sourceMappingURL=p-cd6138d8.entry.js.map
1
+ import{r as t,h as r,H as a,c as i}from"./p-CayVqENR.js";const e=".flex{display:flex!important}.min-h-full{min-height:100%!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(247 250 252/var(--tw-bg-opacity,1));display:flex;flex:1 1 0%;flex-direction:column;min-height:100%;padding:1.5rem 1rem env(safe-area-inset-bottom,0);width:100%}";const o=class{constructor(r){t(this,r)}variant="default";render(){return r(a,{key:"7097437433b64533d54bc7b2f12558d8565edd13",class:`p-drawer-body variant-${this.variant}`},r("slot",{key:"7b5883e5d8743c496572a67e848036ee61d977cc"}))}};o.style=e;const n=".z-drawer{z-index:500!important}.flex{display:flex!important}.w-full{width:100%!important}.shadow-3{--tw-shadow:0 1px 1px rgba(0,2,2,.08),0 2px 2px rgba(0,2,2,.08),0 4px 4px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}*{box-sizing:border-box}p-drawer-container{--tw-bg-opacity:1;--tw-shadow:0 1px 1px rgba(0,2,2,.08),0 2px 2px rgba(0,2,2,.08),0 4px 4px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color)!important;animation:slideInRight .5s ease forwards;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;display:flex;flex-direction:column;min-height:100vh;width:100%;z-index:500}@media (min-width:40rem){p-drawer-container{width:22.5rem}}@keyframes slideInRight{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideOutRight{0%{transform:translateX(0)}to{transform:translateX(100%)}}p-drawer-container.closing{animation:slideOutRight .2s ease forwards}@media (min-width:40rem){.tablet\\:w-\\[22\\.5rem\\]{width:22.5rem!important}}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}";const d=class{constructor(r){t(this,r)}closing=false;render(){return r(a,{key:"209c5d9742fc30495045f6c5309023126369adca",class:`p-drawer-container ${this.closing&&"closing"}`},r("slot",{key:"8d17d46db3d8a0268db03996238c9c305a389dc5"}))}};d.style=n;const m=".absolute{position:absolute!important}.sticky{position:sticky!important}.top-0{top:0!important}.z-drawer-header{z-index:501!important}.flex{display:flex!important}.items-center{align-items:center!important}.border-0{border-width:0!important}.border-b{border-bottom-width:1px!important}.border-solid{border-style:solid!important}.border-b-mystic-dark{--tw-border-opacity:1!important;border-bottom-color:rgb(218 230 240/var(--tw-border-opacity,1))!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.font-semibold{font-weight:600!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-border-opacity:1!important;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));border-width:0!important;border-bottom:1px rgb(218 230 240/var(--tw-border-opacity,1))!important;border-style:solid!important;color:rgb(39 40 56/var(--tw-text-opacity,1));display:flex;font-size:1.25rem;font-weight:600;justify-content:center;line-height:1.75rem;padding:calc(env(safe-area-inset-top, 0) + 1rem) 1rem 1rem;position:sticky;top:0;z-index:501}:host p-button{left:1rem;position:absolute;top:calc(env(safe-area-inset-top, 0) + 1rem)}";const s=class{constructor(r){t(this,r);this.close=i(this,"close",3)}showClose=true;close;render(){return r(a,{key:"eda0258027acfcae6fbd3982fc3706387464bebd",class:"p-drawer-header"},this.showClose&&r("p-button",{key:"2c8a786752d744211cc66d811e04cb458ce001df",variant:"secondary",icon:"negative",iconOnly:true,onClick:()=>this.close.emit(),size:"sm"}),r("slot",{key:"f95daf1b9376cd4d57e104de48e7b4997d9a79be"}))}};s.style=m;export{o as p_drawer_body,d as p_drawer_container,s as p_drawer_header};
2
+ //# sourceMappingURL=p-9d810878.entry.js.map
@@ -0,0 +1,3 @@
1
+ const e="paperless";const t={hydratedSelectorName:"hydrated",lazyLoad:true,slotRelocation:true,updatable:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var i=(e,t)=>{var n;const r=t.t;const i=Object.entries((n=r.i)!=null?n:{});i.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),n);Object.defineProperty(e,n,{get(){return i.get.call(this)},set(e){i.set.call(this,e)},configurable:true,enumerable:true});e[n]=t.o.has(n)?t.o.get(n):r}}))};var o=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var l=(e,t)=>{e.__stencil__getHostRef=()=>t;t.l=e;{i(e,t)}};var s=(e,t)=>{const n={u:0,$hostElement$:e,t,o:new Map};{n.v=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var f=(e,t)=>t in e;var a=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const r=e.h.replace(/-/g,"_");const i=e.m;if(!i){return void 0}const o=c.get(i);if(o){return o[r]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${i}.entry.js${""}`).then((e=>{{c.set(i,e)}return e[r]}),(e=>{a(e,t.$hostElement$)}))};var v=new Map;var d="sty-id";var p="{visibility:hidden}.hydrated{visibility:inherit}";var h="slot-fb{display:contents}slot-fb[hidden]{display:none}";var m="http://www.w3.org/1999/xlink";var y=typeof window!=="undefined"?window:{};var b={u:0,$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var w=(()=>{var e;let t=false;try{(e=y.document)==null?void 0:e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(e){}return t})();var $=e=>Promise.resolve(e);var g=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var S=false;var j=[];var O=[];var k=(e,t)=>n=>{e.push(n);if(!S){S=true;if(t&&b.u&4){x(C)}else{b.raf(C)}}};var E=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){a(e)}}e.length=0};var C=()=>{E(j);{E(O);if(S=j.length>0){b.raf(C)}}};var x=e=>$().then(e);var N=k(O,true);var M=e=>e!=null&&e!==void 0;var R=e=>{e=typeof e;return e==="object"||e==="function"};function T(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var F=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var L={};r(L,{err:()=>U,map:()=>A,ok:()=>P,unwrap:()=>D,unwrapErr:()=>W});var P=e=>({isOk:true,isErr:false,value:e});var U=e=>({isOk:false,isErr:true,value:e});function A(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>P(e)))}else{return P(n)}}if(e.isErr){const t=e.value;return U(t)}throw"should never get here"}var D=e=>{if(e.isOk){return e.value}else{throw e.value}};var W=e=>{if(e.isErr){return e.value}else{throw e.value}};var _=e=>{const t=q(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){z(t,e.tagName).forEach((e=>{if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(B(e,V(e),false).length){e.hidden=true}else{e.hidden=false}}}))}let n=0;for(n=0;n<t.length;n++){const e=t[n];if(e.nodeType===1&&q(e,"childNodes").length){_(e)}}};var H=e=>{const t=[];for(let n=0;n<e.length;n++){const r=e[n]["s-nr"]||void 0;if(r&&r.isConnected){t.push(r)}}return t};function z(e,t,n){let r=0;let i=[];let o;for(;r<e.length;r++){o=e[r];if(o["s-sr"]&&(!t||o["s-hn"]===t)&&n===void 0){i.push(o)}i=[...i,...z(o.childNodes,t,n)]}return i}var B=(e,t,n=true)=>{const r=[];if(n&&e["s-sr"]||!e["s-sr"])r.push(e);let i=e;while(i=i.nextSibling){if(V(i)===t&&(n||!i["s-sr"]))r.push(i)}return r};var I=(e,t)=>{if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var V=e=>typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Y(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const n=[];const r=this["s-sn"];if(e==null?void 0:e.flatten){console.error(`\n Flattening is not supported for Stencil non-shadow slots. \n You can use \`.childNodes\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `)}const i=this["s-cr"].parentElement;const o=i.__childNodes?i.childNodes:H(i.childNodes);o.forEach((e=>{if(r===V(e)){n.push(e)}}));if(t){return n.filter((e=>e.nodeType===1))}return n}.bind(e);e.assignedElements=t(true);e.assignedNodes=t(false)}function q(e,t){if("__"+t in e){const n=e["__"+t];if(typeof n!=="function")return n;return n.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var G=(e,t="")=>{{return()=>{}}};var J=(e,t)=>{{return()=>{}}};var K=(e,t,...n)=>{let r=null;let i=null;let o=null;let l=false;let s=false;const f=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(l=typeof e!=="function"&&!R(r)){r=String(r)}if(l&&s){f[f.length-1].S+=r}else{f.push(l?Q(null,r):r)}s=l}}};a(n);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,f,ee)}const c=Q(e,null);c.j=t;if(f.length>0){c.O=f}{c.k=i}{c.C=o}return c};var Q=(e,t)=>{const n={u:0,N:e,S:t,M:null,O:null};{n.j=null}{n.k=null}{n.C=null}return n};var X={};var Z=e=>e&&e.N===X;var ee={forEach:(e,t)=>e.map(te).forEach(t),map:(e,t)=>e.map(te).map(t).map(ne)};var te=e=>({vattrs:e.j,vchildren:e.O,vkey:e.k,vname:e.C,vtag:e.N,vtext:e.S});var ne=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return K(e.vtag,t,...e.vchildren||[])}const t=Q(e.vtag,e.vtext);t.j=e.vattrs;t.O=e.vchildren;t.k=e.vkey;t.C=e.vname;return t};var re=e=>{const t=F(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")};re("::slotted");re(":host");re(":host-context");var ie=(e,t)=>{if(e!=null&&!R(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var oe=e=>o(e).$hostElement$;var le=(e,t,n)=>{const r=oe(e);return{emit:e=>se(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var se=(e,t,n)=>{const r=b.ce(t,n);e.dispatchEvent(r);return r};var fe=new WeakMap;var ae=(e,t,n)=>{let r=v.get(e);if(g&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}v.set(e,r)};var ce=(e,t,n)=>{var r;const i=ve(t);const o=v.get(i);if(!y.document){return i}e=e.nodeType===11?e:y.document;if(o){if(typeof o==="string"){e=e.head||e;let n=fe.get(e);let l;if(!n){fe.set(e,n=new Set)}if(!n.has(i)){{l=document.querySelector(`[${d}="${i}"]`)||y.document.createElement("style");l.innerHTML=o;const n=(r=b.R)!=null?r:T(y.document);if(n!=null){l.setAttribute("nonce",n)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(g){const t=new CSSStyleSheet;t.replaceSync(o);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=o+t.innerHTML}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}}if(t.u&4){l.innerHTML+=h}if(n){n.add(i)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]}}return i};var ue=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const i=G("attachStyles",t.h);const o=ce(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}i()};var ve=(e,t)=>"sc-"+e.h;var de=(e,t,n,r,i,o,l)=>{if(n===r){return}let s=f(e,t);let a=t.toLowerCase();if(t==="class"){const t=e.classList;const i=he(n);let o=he(r);{t.remove(...i.filter((e=>e&&!o.includes(e))));t.add(...o.filter((e=>e&&!i.includes(e))))}}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(f(y,a)){t=a.slice(2)}else{t=a[2]+t.slice(3)}if(n||r){const i=t.endsWith(me);t=t.replace(ye,"");if(n){b.rel(e,t,n,i)}if(r){b.ael(e,t,r,i)}}}else{const l=R(r);if((s||l&&r!==null)&&true){try{if(!e.tagName.includes("-")){const i=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!=i){if(typeof e.__lookupSetter__(t)==="function"){e[t]=i}else{e.setAttribute(t,i)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}let f=false;{if(a!==(a=a.replace(/^xlink\:?/,""))){t=a;f=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(m,t)}else{e.removeAttribute(t)}}}else if((!s||o&4||i)&&!l&&e.nodeType===1){r=r===true?"":r;if(f){e.setAttributeNS(m,t,r)}else{e.setAttribute(t,r)}}}};var pe=/\s/;var he=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(pe)};var me="Capture";var ye=new RegExp(me+"$");var be=(e,t,n,r)=>{const i=t.M.nodeType===11&&t.M.host?t.M.host:t.M;const o=e&&e.j||{};const l=t.j||{};{for(const e of we(Object.keys(o))){if(!(e in l)){de(i,e,o[e],void 0,n,t.u)}}}for(const e of we(Object.keys(l))){de(i,e,o[e],l[e],n,t.u)}};function we(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var $e;var ge;var Se;var je=false;var Oe=false;var ke=false;var Ee=false;var Ce=(e,n,r)=>{var i;const o=n.O[r];let l=0;let s;let f;let a;if(!je){ke=true;if(o.N==="slot"){o.u|=o.O?2:1}}if(o.S!==null){s=o.M=y.document.createTextNode(o.S)}else if(o.u&1){s=o.M=y.document.createTextNode("");{be(null,o,Ee)}}else{if(!y.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}s=o.M=y.document.createElement(!je&&t.slotRelocation&&o.u&2?"slot-fb":o.N);{be(null,o,Ee)}if(M($e)&&s["s-si"]!==$e){s.classList.add(s["s-si"]=$e)}if(o.O){for(l=0;l<o.O.length;++l){f=Ce(e,o,l);if(f){s.appendChild(f)}}}}s["s-hn"]=Se;{if(o.u&(2|1)){s["s-sr"]=true;s["s-cr"]=ge;s["s-sn"]=o.C||"";s["s-rf"]=(i=o.j)==null?void 0:i.ref;Y(s);a=e&&e.O&&e.O[r];if(a&&a.N===o.N&&e.M){{xe(e.M,false)}}{We(ge,s,n.M,e==null?void 0:e.M)}}}return s};var xe=(e,t)=>{b.u|=1;const n=Array.from(e.__childNodes||e.childNodes);for(let e=n.length-1;e>=0;e--){const r=n[e];if(r["s-hn"]!==Se&&r["s-ol"]){De(Fe(r).parentNode,r,Fe(r));r["s-ol"].remove();r["s-ol"]=void 0;r["s-sh"]=void 0;ke=true}if(t){xe(r,t)}}b.u&=-2};var Ne=(e,t,n,r,i,o)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e;let s;if(l.shadowRoot&&l.tagName===Se){l=l.shadowRoot}for(;i<=o;++i){if(r[i]){s=Ce(null,n,i);if(s){r[i].M=s;De(l,s,Fe(t))}}}};var Me=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.M;Ae(t);if(e){{Oe=true;if(e["s-ol"]){e["s-ol"].remove()}else{xe(e,true)}}e.remove()}}}};var Re=(e,t,n,r,i=false)=>{let o=0;let l=0;let s=0;let f=0;let a=t.length-1;let c=t[0];let u=t[a];let v=r.length-1;let d=r[0];let p=r[v];let h;let m;while(o<=a&&l<=v){if(c==null){c=t[++o]}else if(u==null){u=t[--a]}else if(d==null){d=r[++l]}else if(p==null){p=r[--v]}else if(Te(c,d,i)){Le(c,d,i);c=t[++o];d=r[++l]}else if(Te(u,p,i)){Le(u,p,i);u=t[--a];p=r[--v]}else if(Te(c,p,i)){if(c.N==="slot"||p.N==="slot"){xe(c.M.parentNode,false)}Le(c,p,i);De(e,c.M,u.M.nextSibling);c=t[++o];p=r[--v]}else if(Te(u,d,i)){if(c.N==="slot"||p.N==="slot"){xe(u.M.parentNode,false)}Le(u,d,i);De(e,u.M,c.M);u=t[--a];d=r[++l]}else{s=-1;{for(f=o;f<=a;++f){if(t[f]&&t[f].k!==null&&t[f].k===d.k){s=f;break}}}if(s>=0){m=t[s];if(m.N!==d.N){h=Ce(t&&t[l],n,s)}else{Le(m,d,i);t[s]=void 0;h=m.M}d=r[++l]}else{h=Ce(t&&t[l],n,l);d=r[++l]}if(h){{De(Fe(c.M).parentNode,h,Fe(c.M))}}}}if(o>a){Ne(e,r[v+1]==null?null:r[v+1].M,n,r,l,v)}else if(l>v){Me(t,o,a)}};var Te=(e,t,n=false)=>{if(e.N===t.N){if(e.N==="slot"){return e.C===t.C}if(!n){return e.k===t.k}if(n&&!e.k&&t.k){e.k=t.k}return true}return false};var Fe=e=>e&&e["s-ol"]||e;var Le=(e,n,r=false)=>{const i=n.M=e.M;const o=e.O;const l=n.O;const s=n.S;let f;if(s===null){{be(e,n,Ee)}if(o!==null&&l!==null){Re(i,o,n,l,r)}else if(l!==null){if(e.S!==null){i.textContent=""}Ne(i,null,n,l,0,l.length-1)}else if(!r&&t.updatable&&o!==null){Me(o,0,o.length-1)}}else if(f=i["s-cr"]){f.parentNode.textContent=s}else if(e.S!==s){i.data=s}};var Pe=[];var Ue=e=>{let t;let n;let r;const i=e.__childNodes||e.childNodes;for(const e of i){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const i=e["s-sn"];for(r=n.length-1;r>=0;r--){t=n[r];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==e["s-hn"]&&true){if(I(t,i)){let n=Pe.find((e=>e.T===t));Oe=true;t["s-sn"]=t["s-sn"]||i;if(n){n.T["s-sh"]=e["s-hn"];n.F=e}else{t["s-sh"]=e["s-hn"];Pe.push({F:e,T:t})}if(t["s-sr"]){Pe.map((e=>{if(I(e.T,t["s-sn"])){n=Pe.find((e=>e.T===t));if(n&&!e.F){e.F=n.F}}}))}}else if(!Pe.some((e=>e.T===t))){Pe.push({T:t})}}}}if(e.nodeType===1){Ue(e)}}};var Ae=e=>{{e.j&&e.j.ref&&e.j.ref(null);e.O&&e.O.map(Ae)}};var De=(e,t,n)=>{if(typeof t["s-sn"]==="string"&&!!t["s-sr"]&&!!t["s-cr"]){We(t["s-cr"],t,e,t.parentElement)}{return e==null?void 0:e.insertBefore(t,n)}};function We(e,t,n,r){var i,o;let l;if(e&&typeof t["s-sn"]==="string"&&!!t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(l=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"];const s=t["s-hn"];(i=n.classList)==null?void 0:i.add(l+"-s");if(r&&((o=r.classList)==null?void 0:o.contains(l+"-s"))){let t=(r.__childNodes||r.childNodes)[0];let n=false;while(t){if(t["s-sn"]!==e&&t["s-hn"]===s&&!!t["s-sr"]){n=true;break}t=t.nextSibling}if(!n)r.classList.remove(l+"-s")}}}var _e=(e,t,n=false)=>{var r,i,o,l;const s=e.$hostElement$;const f=e.t;const a=e.L||Q(null,null);const c=Z(t);const u=c?t:K(null,null,t);Se=s.tagName;if(f.P){u.j=u.j||{};f.P.map((([e,t])=>u.j[t]=s[e]))}if(n&&u.j){for(const e of Object.keys(u.j)){if(s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){u.j[e]=s[e]}}}u.N=null;u.u|=4;e.L=u;u.M=a.M=s.shadowRoot||s;{$e=s["s-sc"]}je=!!(f.u&1)&&!(f.u&128);{ge=s["s-cr"];Oe=false}Le(a,u,n);{b.u|=1;if(ke){Ue(u.M);for(const e of Pe){const t=e.T;if(!t["s-ol"]&&y.document){const e=y.document.createTextNode("");e["s-nr"]=t;De(t.parentNode,t["s-ol"]=e,t)}}for(const e of Pe){const t=e.T;const s=e.F;if(s){const e=s.parentNode;let n=s.nextSibling;{let o=(r=t["s-ol"])==null?void 0:r.previousSibling;while(o){let r=(i=o["s-nr"])!=null?i:null;if(r&&r["s-sn"]===t["s-sn"]&&e===(r.__parentNode||r.parentNode)){r=r.nextSibling;while(r===t||(r==null?void 0:r["s-sr"])){r=r==null?void 0:r.nextSibling}if(!r||!r["s-nr"]){n=r;break}}o=o.previousSibling}}const l=t.__parentNode||t.parentNode;const f=t.__nextSibling||t.nextSibling;if(!n&&e!==l||f!==n){if(t!==n){if(!t["s-hn"]&&t["s-ol"]){t["s-hn"]=t["s-ol"].parentNode.nodeName}De(e,t,n);if(t.nodeType===1&&t.tagName!=="SLOT-FB"){t.hidden=(o=t["s-ih"])!=null?o:false}}}t&&typeof s["s-rf"]==="function"&&s["s-rf"](s)}else{if(t.nodeType===1){if(n){t["s-ih"]=(l=t.hidden)!=null?l:false}t.hidden=true}}}}if(Oe){_(u.M)}b.u&=-2;Pe.length=0}ge=void 0};var He=(e,t)=>{if(t&&!e.U&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.U=()=>{t["s-p"].splice(n-1,1);r()})))}};var ze=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}He(e,e.A);const n=()=>Be(e,t);return N(n)};var Be=(e,t)=>{const n=e.$hostElement$;const r=G("scheduleUpdate",e.t.h);const i=e.l;if(!i){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let o;if(t){{e.u|=256;if(e.D){e.D.map((([e,t])=>Ke(i,e,t,n)));e.D=void 0}}o=Ke(i,"componentWillLoad",void 0,n)}else{o=Ke(i,"componentWillUpdate",void 0,n)}o=Ie(o,(()=>Ke(i,"componentWillRender",void 0,n)));r();return Ie(o,(()=>Ye(e,i,t)))};var Ie=(e,t)=>Ve(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Ve=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Ye=async(e,t,n)=>{var r;const i=e.$hostElement$;const o=G("update",e.t.h);const l=i["s-rc"];if(n){ue(e)}const s=G("render",e.t.h);{qe(e,t,i,n)}if(l){l.map((e=>e()));i["s-rc"]=void 0}s();o();{const t=(r=i["s-p"])!=null?r:[];const n=()=>Ge(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var qe=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{_e(e,t,r)}}}}catch(t){a(t,e.$hostElement$)}return null};var Ge=e=>{const t=e.t.h;const n=e.$hostElement$;const r=G("postUpdate",t);const i=e.l;const o=e.A;Ke(i,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{Qe(n)}Ke(i,"componentDidLoad",void 0,n);r();{e.p(n);if(!o){Je()}}}else{Ke(i,"componentDidUpdate",void 0,n);r()}{if(e.U){e.U();e.U=void 0}if(e.u&512){x((()=>ze(e,false)))}e.u&=-517}};var Je=t=>{x((()=>se(y,"appload",{detail:{namespace:e}})))};var Ke=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){a(e,r)}}return void 0};var Qe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Xe=(e,t)=>o(e).o.get(t);var Ze=(e,t,n,r)=>{const i=o(e);if(!i){throw new Error(`Couldn't find host element for "${r.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=i.$hostElement$;const s=i.o.get(t);const f=i.u;const c=i.l;n=ie(n,r.i[t][0]);const u=Number.isNaN(s)&&Number.isNaN(n);const v=n!==s&&!u;if((!(f&8)||s===void 0)&&v){i.o.set(t,n);if(c){if(r.W&&f&128){const e=r.W[t];if(e){e.map((e=>{try{c[e](n,s,t)}catch(e){a(e,l)}}))}}if((f&(2|16))===2){if(c.componentShouldUpdate){if(c.componentShouldUpdate(n,s,t)===false){return}}ze(i,false)}}}};var et=(e,n,r)=>{var i,l;const s=e.prototype;if(n.i||(n.W||e.watchers)){if(e.watchers&&!n.W){n.W=e.watchers}const f=Object.entries((i=n.i)!=null?i:{});f.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:i,set:l}=Object.getOwnPropertyDescriptor(s,e)||{};if(i)n.i[e][0]|=2048;if(l)n.i[e][0]|=4096;if(r&1||!i){Object.defineProperty(s,e,{get(){{if((n.i[e][0]&2048)===0){return Xe(this,e)}const t=o(this);const r=t?t.l:s;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(s,e,{set(i){const s=o(this);if(l){const r=t&32?this[e]:s.$hostElement$[e];if(typeof r==="undefined"&&s.o.get(e)){i=s.o.get(e)}else if(!s.o.get(e)&&r){s.o.set(e,r)}l.apply(this,[ie(i,t)]);i=t&32?this[e]:s.$hostElement$[e];Ze(this,e,i,n);return}{if((r&1)===0||(n.i[e][0]&4096)===0){Ze(this,e,i,n);if(r&1&&!s.l){s.v.then((()=>{if(n.i[e][0]&4096&&s.l[e]!==s.o.get(e)){s.l[e]=i}}))}return}const o=()=>{const r=s.l[e];if(!s.o.get(e)&&r){s.o.set(e,r)}s.l[e]=ie(i,t);Ze(this,e,s.l[e],n)};if(s.l){o()}else{s.v.then((()=>o()))}}}})}}));if(r&1){const r=new Map;s.attributeChangedCallback=function(e,i,l){b.jmp((()=>{var f;const a=r.get(e);if(this.hasOwnProperty(a)&&t.lazyLoad){l=this[a];delete this[a]}else if(s.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==l){return}else if(a==null){const t=o(this);const r=t==null?void 0:t.u;if(r&&!(r&8)&&r&128&&l!==i){const r=t.l;const o=(f=n.W)==null?void 0:f[e];o==null?void 0:o.forEach((t=>{if(r[t]!=null){r[t].call(r,l,i,e)}}))}return}const c=Object.getOwnPropertyDescriptor(s,a);l=l===null&&typeof this[a]==="boolean"?false:l;if(l!==this[a]&&(!c.get||!!c.set)){this[a]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=n.W)!=null?l:{}),...f.filter((([e,t])=>t[0]&15)).map((([e,t])=>{var i;const o=t[1]||e;r.set(o,e);if(t[0]&512){(i=n.P)==null?void 0:i.push([e,o])}return o}))]))}}return e};var tt=async(e,t,n,r)=>{let i;if((t.u&32)===0){t.u|=32;const r=n.m;if(r){const r=u(n,t);if(r&&"then"in r){const e=J();i=await r;e()}else{i=r}if(!i){throw new Error(`Constructor for "${n.h}#${t._}" was not found`)}if(!i.isProxied){{n.W=i.watchers}et(i,n,2);i.isProxied=true}const o=G("createInstance",n.h);{t.u|=8}try{new i(t)}catch(t){a(t,e)}{t.u&=-9}{t.u|=128}o();nt(t.l,e)}else{i=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(i&&i.style){let e;if(typeof i.style==="string"){e=i.style}const t=ve(n);if(!v.has(t)){const r=G("registerStyles",n.h);ae(t,e,!!(n.u&1));r()}}}const o=t.A;const l=()=>ze(t,true);if(o&&o["s-rc"]){o["s-rc"].push(l)}else{l()}};var nt=(e,t)=>{{Ke(e,"connectedCallback",void 0,t)}};var rt=e=>{if((b.u&1)===0){const t=o(e);const n=t.t;const r=G("connectedCallback",n.h);if(!(t.u&1)){t.u|=1;{if(n.u&(4|8)){it(e)}}{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){He(t,t.A=n);break}}}if(n.i){Object.entries(n.i).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{tt(e,t,n)}}else{at(e,t,n.H);if(t==null?void 0:t.l){nt(t.l,e)}else if(t==null?void 0:t.v){t.v.then((()=>nt(t.l,e)))}}r()}};var it=e=>{if(!y.document){return}const t=e["s-cr"]=y.document.createComment("");t["s-cn"]=true;De(e,t,e.firstChild)};var ot=(e,t)=>{{Ke(e,"disconnectedCallback",void 0,t||e)}};var lt=async e=>{if((b.u&1)===0){const t=o(e);{if(t.B){t.B.map((e=>e()));t.B=void 0}}if(t==null?void 0:t.l){ot(t.l,e)}else if(t==null?void 0:t.v){t.v.then((()=>ot(t.l,e)))}}if(fe.has(e)){fe.delete(e)}if(e.shadowRoot&&fe.has(e.shadowRoot)){fe.delete(e.shadowRoot)}};var st=(e,t={})=>{var n;if(!y.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=G();const i=[];const l=t.exclude||[];const f=y.customElements;const a=y.document.head;const c=a.querySelector("meta[charset]");const u=y.document.createElement("style");const v=[];let d;let m=true;Object.assign(b,t);b.$=new URL(t.resourcesUrl||"./",y.document.baseURI).href;let w=false;e.map((e=>{e[1].map((t=>{var n;const r={u:t[0],h:t[1],i:t[2],H:t[3]};if(r.u&4){w=true}{r.i=t[2]}{r.H=t[3]}{r.P=[]}{r.W=(n=t[4])!=null?n:{}}const a=r.h;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;s(e,r);if(r.u&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${r.h}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=o(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;at(this,e,r.H)}if(d){clearTimeout(d);d=null}if(m){v.push(this)}else{b.jmp((()=>rt(this)))}}disconnectedCallback(){b.jmp((()=>lt(this)));b.raf((()=>{var e;const t=o(this);const n=v.findIndex((e=>e===this));if(n>-1){v.splice(n,1)}if(((e=t==null?void 0:t.L)==null?void 0:e.M)instanceof Node&&!t.L.M.isConnected){delete t.L.M}}))}componentOnReady(){return o(this).v}};r.m=e[0];if(!l.includes(a)&&!f.get(a)){i.push(a);f.define(a,et(c,r,1))}}))}));if(i.length>0){if(w){u.textContent+=h}{u.textContent+=i.sort()+p}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=b.R)!=null?n:T(y.document);if(e!=null){u.setAttribute("nonce",e)}a.insertBefore(u,c?c.nextSibling:a.firstChild)}}m=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{b.jmp((()=>d=setTimeout(Je,30)))}}r()};var ft=(e,t)=>t;var at=(e,t,n,r)=>{if(n&&y.document){n.map((([n,r,i])=>{const o=ut(y.document,e,n);const l=ct(t,i);const s=vt(n);b.ael(o,r,l,s);(t.B=t.B||[]).push((()=>b.rel(o,r,l,s)))}))}};var ct=(e,t)=>n=>{var r;try{{if(e.u&256){(r=e.l)==null?void 0:r[t](n)}else{(e.D=e.D||[]).push([t,n])}}}catch(t){a(t,e.$hostElement$)}};var ut=(e,t,n)=>{if(n&4){return e}if(n&8){return y}if(n&16){return e.body}return t};var vt=e=>w?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var dt=e=>b.R=e;export{ft as F,X as H,st as b,le as c,oe as g,K as h,$ as p,l as r,dt as s};
3
+ //# sourceMappingURL=p-CayVqENR.js.map