@arcgis/portal-components 5.2.0-next.140 → 5.2.0-next.141

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 (261) hide show
  1. package/dist/cdn/{Z6R3C4AK.js → 23X56P4K.js} +2 -2
  2. package/dist/cdn/{VDXESPJK.js → 25XJ66JO.js} +2 -2
  3. package/dist/cdn/{EMJQI4MA.js → 2GBRZSEC.js} +1 -1
  4. package/dist/cdn/{LISDTBEX.js → 2I5SLQC5.js} +2 -2
  5. package/dist/cdn/{ZKZDKJ6D.js → 3R4PPD5N.js} +2 -2
  6. package/dist/cdn/3SO52LKS.js +2 -0
  7. package/dist/cdn/{SGDDFWCJ.js → 456JKNCU.js} +2 -2
  8. package/dist/cdn/{3CQKCUM5.js → 4SHXR62X.js} +2 -2
  9. package/dist/cdn/{ABORO35R.js → 4TQWZ2KF.js} +2 -2
  10. package/dist/cdn/{L64UURQB.js → 4ZTWQN6Q.js} +2 -2
  11. package/dist/cdn/{4TSXFX3M.js → 55FL7WQV.js} +2 -2
  12. package/dist/cdn/{ZDDN7UKS.js → 5EFYJYWM.js} +1 -1
  13. package/dist/cdn/{3EYB5GQX.js → 5FDUO7J4.js} +2 -2
  14. package/dist/cdn/{FIQZPIIK.js → 5FOWUL6I.js} +2 -2
  15. package/dist/cdn/{DAAON2UO.js → 5YDITHQA.js} +1 -1
  16. package/dist/cdn/{K2XSYDAP.js → 6BMWSGLA.js} +2 -2
  17. package/dist/cdn/{JIJO4CAS.js → 6EY5GHKE.js} +2 -2
  18. package/dist/cdn/6KVA4AKM.js +2 -0
  19. package/dist/cdn/6LST5YZY.js +2 -0
  20. package/dist/cdn/{JN23JH3T.js → 6MWSS5YF.js} +2 -2
  21. package/dist/cdn/{V6A6MKLU.js → 6TO2BYXU.js} +1 -1
  22. package/dist/cdn/{GSOBDGLK.js → 7NK6UF47.js} +2 -2
  23. package/dist/cdn/{I273CANO.js → 7NQY5QJK.js} +2 -2
  24. package/dist/cdn/7TGCBYRK.js +2 -0
  25. package/dist/cdn/{I6IRHXWR.js → ADZAKBOJ.js} +2 -2
  26. package/dist/cdn/{TLM457Z5.js → AE574B3G.js} +2 -2
  27. package/dist/cdn/AWCYG2JJ.js +2 -0
  28. package/dist/cdn/{OD5WXP7J.js → B3NVWHCS.js} +2 -2
  29. package/dist/cdn/B4YHTYJB.js +2 -0
  30. package/dist/cdn/BEAUY47J.js +2 -0
  31. package/dist/cdn/{PNIFJ5DQ.js → BIXJGL7B.js} +1 -1
  32. package/dist/cdn/{OXPXXIWL.js → BRJE3G3H.js} +2 -2
  33. package/dist/cdn/{A2SQ4EMZ.js → C5U7YKVI.js} +2 -2
  34. package/dist/cdn/C5VUNN4M.js +2 -0
  35. package/dist/cdn/{PKA745KL.js → CFBSBZSS.js} +1 -1
  36. package/dist/cdn/CJHR4UK5.js +2 -0
  37. package/dist/cdn/{7LMZHJZG.js → CVOWIH4J.js} +2 -2
  38. package/dist/cdn/{AICPYLWE.js → CWSEBETE.js} +3 -3
  39. package/dist/cdn/{DLI4XKJ3.js → D6QHNXEH.js} +2 -2
  40. package/dist/cdn/{YZTBAUIO.js → D7LRCAK4.js} +2 -2
  41. package/dist/cdn/DF5GVVDW.js +2 -0
  42. package/dist/cdn/{BKD7JSV2.js → DIKRXF22.js} +2 -2
  43. package/dist/cdn/{DDBXEXOV.js → DKIYHE4A.js} +2 -2
  44. package/dist/cdn/{GX7U3727.js → E3FQ4QWE.js} +2 -2
  45. package/dist/cdn/{ROX3GKKA.js → F3ODJVJC.js} +1 -1
  46. package/dist/cdn/{4QFTKB6T.js → FFLIAQOL.js} +2 -2
  47. package/dist/cdn/FQOOFBPI.js +2 -0
  48. package/dist/cdn/FQYC25GN.js +2 -0
  49. package/dist/cdn/{3LEQ37YT.js → FSACXOM3.js} +2 -2
  50. package/dist/cdn/{APSYZEPP.js → FTKD53UG.js} +2 -2
  51. package/dist/cdn/G6WPLOLV.js +2 -0
  52. package/dist/cdn/{TNUCSWBN.js → GEZH4D32.js} +2 -2
  53. package/dist/cdn/{5C5GHX4D.js → GTZ4LKEQ.js} +2 -2
  54. package/dist/cdn/{4KTRAA2J.js → ILDTKRON.js} +1 -1
  55. package/dist/cdn/{YTODQCOG.js → J537SBGI.js} +2 -2
  56. package/dist/cdn/{3NSHGKZA.js → JUDF3TYJ.js} +2 -2
  57. package/dist/cdn/KC4FTTKP.js +2 -0
  58. package/dist/cdn/{OR6T5SB3.js → KIKEE2KY.js} +2 -2
  59. package/dist/cdn/KOLH76KG.js +2 -0
  60. package/dist/cdn/{AXOBMX3S.js → KYNL256E.js} +2 -2
  61. package/dist/cdn/{32BWFMTC.js → LCO2BWDK.js} +2 -2
  62. package/dist/cdn/{5HZNBMW6.js → LNWWUPFK.js} +2 -2
  63. package/dist/cdn/{SVROAT3Z.js → LP4IB3PV.js} +2 -2
  64. package/dist/cdn/LRHPL6B5.js +2 -0
  65. package/dist/cdn/LYOR4B2O.js +2 -0
  66. package/dist/cdn/{LWFACY3F.js → MCX22B23.js} +2 -2
  67. package/dist/cdn/MHNYLHFR.js +2 -0
  68. package/dist/cdn/{GAF4YT5N.js → MQISQ7P3.js} +2 -2
  69. package/dist/cdn/MY7AYBBR.js +2 -0
  70. package/dist/cdn/{JPUUMGX5.js → NDRCB2K3.js} +2 -2
  71. package/dist/cdn/{NWVLGU2C.js → NICTB76A.js} +2 -2
  72. package/dist/cdn/{MKSFNVXL.js → NXFE6R2N.js} +2 -2
  73. package/dist/cdn/{CD5UWSCP.js → O5LFDRK2.js} +2 -2
  74. package/dist/cdn/{TOICLGFK.js → OJNU7H3F.js} +2 -2
  75. package/dist/cdn/OKUI3HQ4.js +2 -0
  76. package/dist/cdn/{IN4JPZTY.js → OQGUCK3G.js} +2 -2
  77. package/dist/cdn/{PMRFXB4F.js → OUFIJDIW.js} +2 -2
  78. package/dist/cdn/{TWCJJCPC.js → OV5O7YP4.js} +2 -2
  79. package/dist/cdn/{TGCJUIEL.js → Q75EBGI2.js} +1 -1
  80. package/dist/cdn/QBV7VDQK.js +2 -0
  81. package/dist/cdn/QCOJMMT3.js +2 -0
  82. package/dist/cdn/{JOUR2FB2.js → QDWOQBO3.js} +2 -2
  83. package/dist/cdn/{4PRXQFCV.js → QKBGX2OY.js} +2 -2
  84. package/dist/cdn/{LYLQCBVX.js → QKK6N2AN.js} +2 -2
  85. package/dist/cdn/{N5QLV56W.js → QNCMFQSA.js} +2 -2
  86. package/dist/cdn/{KV4ZZSNW.js → QS3GXAIH.js} +1 -1
  87. package/dist/cdn/{JWBUJT43.js → QSAZVVVL.js} +2 -2
  88. package/dist/cdn/{DHMNNIXZ.js → QUOPWSRC.js} +2 -2
  89. package/dist/cdn/QYMSY57N.js +2 -0
  90. package/dist/cdn/{TXC7YBGL.js → R3QN5WF2.js} +2 -2
  91. package/dist/cdn/{OUMTV5H5.js → R74ZHFA6.js} +1 -1
  92. package/dist/cdn/{RQYNPDN3.js → RBGARTND.js} +2 -2
  93. package/dist/cdn/{TOTWYGB3.js → RUB2GDBE.js} +2 -2
  94. package/dist/cdn/{PZDI5ZDC.js → SG7Z5VLB.js} +2 -2
  95. package/dist/cdn/{TUUUK3VX.js → T2HQNZ36.js} +2 -2
  96. package/dist/cdn/{TBZXKKGP.js → T3RJKB2A.js} +2 -2
  97. package/dist/cdn/{XYMBRPC7.js → TJYPEMON.js} +2 -2
  98. package/dist/cdn/{2YZWRFCI.js → UGRFT75G.js} +2 -2
  99. package/dist/cdn/UKHCSMA4.js +2 -0
  100. package/dist/cdn/{74T6IXSN.js → UQKT5JQZ.js} +2 -2
  101. package/dist/cdn/{U3KMGSVH.js → USGROSML.js} +2 -2
  102. package/dist/cdn/{FRE56NBG.js → UTA2UBBS.js} +2 -2
  103. package/dist/cdn/{4MUB6TL6.js → UZCHLKLO.js} +1 -1
  104. package/dist/cdn/{5PV2GUZW.js → UZLQALHY.js} +1 -1
  105. package/dist/cdn/{M5PPX4ZX.js → V5YXPHYD.js} +2 -2
  106. package/dist/cdn/{K75JTQPW.js → VMQIDO4Z.js} +2 -2
  107. package/dist/cdn/{EQDYQOOT.js → WDMNL6PJ.js} +2 -2
  108. package/dist/cdn/X4G32AIG.js +2 -0
  109. package/dist/cdn/{GUL7EIJ4.js → XEK22IDA.js} +1 -1
  110. package/dist/cdn/{RHCRPJWS.js → XKC6SPS4.js} +2 -2
  111. package/dist/cdn/{MLYQGIJU.js → XOFCMJBQ.js} +2 -2
  112. package/dist/cdn/{CXXV6WJT.js → XROCYFKH.js} +2 -2
  113. package/dist/cdn/XUPYBBRI.js +2 -0
  114. package/dist/cdn/{GUO7HKSP.js → Y3YIMI2Z.js} +4 -4
  115. package/dist/cdn/YG5VQATB.js +2 -0
  116. package/dist/cdn/{3UFTKKFG.js → YUQFNMEZ.js} +1 -1
  117. package/dist/cdn/{YG6ZGQ46.js → YVKSTDL6.js} +1 -1
  118. package/dist/cdn/ZAIRH5DL.js +2 -0
  119. package/dist/cdn/{24QSQLRY.js → ZSILF72K.js} +2 -2
  120. package/dist/cdn/index.js +2 -2
  121. package/dist/chunks/common.js +1 -1
  122. package/dist/chunks/dom.js +1 -1
  123. package/dist/chunks/fieldAddDelete.js +1 -1
  124. package/dist/chunks/functional.js +1 -1
  125. package/dist/chunks/functionalities.js +1 -1
  126. package/dist/chunks/groups.js +1 -1
  127. package/dist/chunks/groups2.js +1 -1
  128. package/dist/chunks/icons.js +1 -1
  129. package/dist/chunks/info.js +1 -1
  130. package/dist/chunks/item.js +1 -1
  131. package/dist/chunks/item2.js +1 -1
  132. package/dist/chunks/itemThumbnail.js +1 -1
  133. package/dist/chunks/items.js +1 -1
  134. package/dist/chunks/loadClassificationData.js +1 -1
  135. package/dist/chunks/portal-account-switcher.js +1 -1
  136. package/dist/chunks/portal-browser-filter-date.js +1 -1
  137. package/dist/chunks/portal-browser.js +1 -1
  138. package/dist/chunks/portal-delete-items-review.js +1 -1
  139. package/dist/chunks/portal-item-badge.js +1 -1
  140. package/dist/chunks/portal-related-items-list-item.js +1 -1
  141. package/dist/chunks/portal.js +1 -1
  142. package/dist/chunks/portal2.js +1 -1
  143. package/dist/chunks/query.js +1 -1
  144. package/dist/chunks/request.js +1 -1
  145. package/dist/chunks/requests.js +1 -1
  146. package/dist/chunks/runtime.js +2 -2
  147. package/dist/chunks/services.js +1 -1
  148. package/dist/chunks/store.js +1 -1
  149. package/dist/chunks/string.js +1 -1
  150. package/dist/chunks/ui.js +1 -1
  151. package/dist/chunks/url.js +1 -1
  152. package/dist/chunks/useT9n.js +1 -1
  153. package/dist/chunks/user.js +1 -1
  154. package/dist/chunks/user2.js +1 -1
  155. package/dist/chunks/users.js +1 -1
  156. package/dist/chunks/utils.js +1 -1
  157. package/dist/chunks/utils2.js +1 -1
  158. package/dist/chunks/utils3.js +1 -1
  159. package/dist/chunks/verified.js +1 -1
  160. package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +4 -1
  161. package/dist/components/arcgis-portal-account-switcher/customElement.js +87 -85
  162. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +4 -4
  163. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +9 -9
  164. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +4 -4
  165. package/dist/components/arcgis-portal-account-switcher-list/customElement.js +7 -7
  166. package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +5 -5
  167. package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +4 -4
  168. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +1 -1
  169. package/dist/components/arcgis-portal-ai-assistant/customElement.js +1 -1
  170. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +1 -1
  171. package/dist/components/arcgis-portal-browser/customElement.js +1 -1
  172. package/dist/components/arcgis-portal-browser-actions/customElement.js +1 -1
  173. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +1 -1
  174. package/dist/components/arcgis-portal-browser-pagination/customElement.js +1 -1
  175. package/dist/components/arcgis-portal-browser-search/customElement.js +1 -1
  176. package/dist/components/arcgis-portal-browser-sort/customElement.js +1 -1
  177. package/dist/components/arcgis-portal-browser-top-bar/customElement.js +1 -1
  178. package/dist/components/arcgis-portal-browser-view/customElement.js +1 -1
  179. package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
  180. package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
  181. package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
  182. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  183. package/dist/components/arcgis-portal-delete-items/customElement.js +1 -1
  184. package/dist/components/arcgis-portal-delete-items-review/customElement.js +1 -1
  185. package/dist/components/arcgis-portal-entity-picker/customElement.js +1 -1
  186. package/dist/components/arcgis-portal-extent-picker/customElement.js +1 -1
  187. package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +1 -1
  188. package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
  189. package/dist/components/arcgis-portal-group-badges/customElement.js +1 -1
  190. package/dist/components/arcgis-portal-group-browser/customElement.js +1 -1
  191. package/dist/components/arcgis-portal-group-browser-card/customElement.js +1 -1
  192. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +1 -1
  193. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
  194. package/dist/components/arcgis-portal-group-card/customElement.js +1 -1
  195. package/dist/components/arcgis-portal-group-picker/customElement.js +1 -1
  196. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  197. package/dist/components/arcgis-portal-info-banner/customElement.js +1 -1
  198. package/dist/components/arcgis-portal-item-actions/customElement.js +1 -1
  199. package/dist/components/arcgis-portal-item-badge/customElement.js +1 -1
  200. package/dist/components/arcgis-portal-item-badges/customElement.js +1 -1
  201. package/dist/components/arcgis-portal-item-card/customElement.js +1 -1
  202. package/dist/components/arcgis-portal-item-favorite/customElement.js +1 -1
  203. package/dist/components/arcgis-portal-item-picker/customElement.js +1 -1
  204. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +1 -1
  205. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  206. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
  207. package/dist/components/arcgis-portal-navigation/customElement.js +1 -1
  208. package/dist/components/arcgis-portal-navigation/index.js +5 -5
  209. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
  210. package/dist/components/arcgis-portal-review-related-items/customElement.js +1 -1
  211. package/dist/components/arcgis-portal-sublayer-type/customElement.js +1 -1
  212. package/dist/components/arcgis-portal-user-avatar/customElement.js +1 -1
  213. package/dist/components/arcgis-portal-user-picker/customElement.js +1 -1
  214. package/dist/components/arcgis-portal-user-popup/customElement.js +1 -1
  215. package/dist/components/arcgis-portal-voice-input/customElement.js +1 -1
  216. package/dist/components/portal-browser/components/portal-browser-filter/customElement.js +1 -1
  217. package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +1 -1
  218. package/dist/components/portal-browser/components/portal-browser-filters/customElement.js +1 -1
  219. package/dist/components/portal-group-browser-filters/customElement.js +1 -1
  220. package/dist/components/portal-group-browser-pagination/customElement.js +1 -1
  221. package/dist/components/portal-group-browser-sort/customElement.js +1 -1
  222. package/dist/components/portal-related-items-list-item/customElement.js +1 -1
  223. package/dist/docs/api.json +1 -1
  224. package/dist/docs/docs.json +1 -1
  225. package/dist/docs/vscode.html-custom-data.json +1 -1
  226. package/dist/docs/web-types.json +1 -1
  227. package/dist/index.js +1 -1
  228. package/dist/loader.js +1 -1
  229. package/dist/types/lumina.d.ts +6 -6
  230. package/dist/types/preact.d.ts +6 -6
  231. package/dist/types/react.d.ts +6 -6
  232. package/dist/types/stencil.d.ts +6 -6
  233. package/package.json +7 -7
  234. package/dist/cdn/23FS4XTG.js +0 -2
  235. package/dist/cdn/2MPQ5IWJ.js +0 -2
  236. package/dist/cdn/46BUEBWS.js +0 -2
  237. package/dist/cdn/4AI52H7C.js +0 -2
  238. package/dist/cdn/5PPZNVWG.js +0 -2
  239. package/dist/cdn/66XWNGQ2.js +0 -2
  240. package/dist/cdn/6F4SJDRR.js +0 -2
  241. package/dist/cdn/7ZWYUHGK.js +0 -2
  242. package/dist/cdn/AJQT7UXB.js +0 -2
  243. package/dist/cdn/AZOJHVAO.js +0 -2
  244. package/dist/cdn/BSTA5KI5.js +0 -2
  245. package/dist/cdn/DYO5P3F2.js +0 -2
  246. package/dist/cdn/E3INH2O6.js +0 -2
  247. package/dist/cdn/E66BDC6N.js +0 -2
  248. package/dist/cdn/EEAVX4PP.js +0 -2
  249. package/dist/cdn/EITRZQSC.js +0 -2
  250. package/dist/cdn/FIBQAMJ3.js +0 -2
  251. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  252. package/dist/cdn/GXM3XY3J.js +0 -2
  253. package/dist/cdn/I6NVKNZJ.js +0 -2
  254. package/dist/cdn/J5FKIZAM.js +0 -2
  255. package/dist/cdn/JL52W3Z4.js +0 -2
  256. package/dist/cdn/N4VOTJ25.js +0 -2
  257. package/dist/cdn/NRMQDCM3.js +0 -2
  258. package/dist/cdn/RVYSVTPQ.js +0 -2
  259. package/dist/cdn/SLQQ44IA.js +0 -2
  260. package/dist/cdn/WC3FPLYQ.js +0 -2
  261. package/dist/cdn/YYTEJVBL.js +0 -2
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{L as n,R as c,j as d,w as a}from"./AICPYLWE.js";var i=class extends n{constructor(){super(...arguments),this.cardProps={},this.arcgisGroupCardSelect=a(),this.arcgisGroupBrowserCardPreview=a()}static{this.properties={group:0,browser:0,cardProps:0}}async restoreFocus(){await this.renderRoot.querySelector("arcgis-portal-group-card")?.restoreFocus?.()}getBrowser(){let r=this.el.closest("arcgis-portal-group-browser");return this.browser??r}isSelected(r,t){if(!r)return!1;let e=t.selectedGroupsState;return Array.isArray(e)&&e.some(({id:o})=>o===r)}render(){let r=this.getBrowser(),t=this.group;if(!r||!t)return;let e=this.cardProps,o=r.store.view??"list";return d`<arcgis-portal-group-card .portal=${r.portal} .group=${t} .user=${e.user} .indeterminate=${e.indeterminate} .view=${o} .selection=${r.selection} .selected=${e.selected??this.isSelected(t.id,r)} .preview=${e.preview??r.preview} .previewed=${e.previewed??r.previewedGroupId===t.id} .name=${e.name} .showSummary=${e.showSummary??!0} .hideBadges=${e.hideBadges??!1} .hideDateUpdated=${e.hideDateUpdated??!1} .showDateCreated=${e.showDateCreated??!1} .hideViewableBy=${e.hideViewableBy??!1} .hideOwner=${e.hideOwner??!1} .link=${e.link} .linkHandler=${e.linkHandler} .newTab=${e.newTab??!1} .disabled=${e.disabled??!1} @arcgisGroupCardSelect=${s=>{s.stopPropagation(),this.arcgisGroupCardSelect.emit(s.detail)}} @arcgisGroupBrowserCardPreview=${s=>{s.stopPropagation(),this.arcgisGroupBrowserCardPreview.emit(s.detail)}}><slot name=content-top slot=content-top></slot><div slot=content-end><slot name=content-end></slot></div><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-portal-group-card>`}};c("arcgis-portal-group-browser-card",i);export{i as a};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{L as n,R as c,j as d,w as a}from"./CWSEBETE.js";var i=class extends n{constructor(){super(...arguments),this.cardProps={},this.arcgisGroupCardSelect=a(),this.arcgisGroupBrowserCardPreview=a()}static{this.properties={group:0,browser:0,cardProps:0}}async restoreFocus(){await this.renderRoot.querySelector("arcgis-portal-group-card")?.restoreFocus?.()}getBrowser(){let r=this.el.closest("arcgis-portal-group-browser");return this.browser??r}isSelected(r,t){if(!r)return!1;let e=t.selectedGroupsState;return Array.isArray(e)&&e.some(({id:o})=>o===r)}render(){let r=this.getBrowser(),t=this.group;if(!r||!t)return;let e=this.cardProps,o=r.store.view??"list";return d`<arcgis-portal-group-card .portal=${r.portal} .group=${t} .user=${e.user} .indeterminate=${e.indeterminate} .view=${o} .selection=${r.selection} .selected=${e.selected??this.isSelected(t.id,r)} .preview=${e.preview??r.preview} .previewed=${e.previewed??r.previewedGroupId===t.id} .name=${e.name} .showSummary=${e.showSummary??!0} .hideBadges=${e.hideBadges??!1} .hideDateUpdated=${e.hideDateUpdated??!1} .showDateCreated=${e.showDateCreated??!1} .hideViewableBy=${e.hideViewableBy??!1} .hideOwner=${e.hideOwner??!1} .link=${e.link} .linkHandler=${e.linkHandler} .newTab=${e.newTab??!1} .disabled=${e.disabled??!1} @arcgisGroupCardSelect=${s=>{s.stopPropagation(),this.arcgisGroupCardSelect.emit(s.detail)}} @arcgisGroupBrowserCardPreview=${s=>{s.stopPropagation(),this.arcgisGroupBrowserCardPreview.emit(s.detail)}}><slot name=content-top slot=content-top></slot><div slot=content-end><slot name=content-end></slot></div><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-portal-group-card>`}};c("arcgis-portal-group-browser-card",i);export{i as a};
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import a from"./PMRFXB4F.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import{a as q}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as f,R as _,h as b,j as u,w as c}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([D,S,g,{b:h}])=>{var I=b`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}`;async function v({item:t,layers:e}){let{url:a}=t,l=new Map;if(!a)return{result:l};try{let s=(await g(a,{query:{f:"json"},responseType:"json"})).data;if(s.fields){let n=e?.[0];return e?.length===1&&n?.layerId!=null&&l.set(n.layerId,s.fields),{result:l}}if(!s.layers?.length)return{result:l};let i=a.replace(/\/$/u,"");return await Promise.all(s.layers.map(async({id:n})=>{let d=(await g(`${i}/${n}`,{query:{f:"json"},responseType:"json"})).data;l.set(n,d.fields??[])})),{result:l}}catch(s){return console.error("Error getting layer fields:",s),{error:{code:"unhandledError"}}}}var P=t=>{let{url:e}=t;return e?e.replace("/rest/services","/rest/admin/services").replace(/\/$/u,""):null};async function C({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}addToDefinition`,portal:a,method:"post",params:{addToDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message}}:{result:i}}catch(i){return console.error("Error adding fields to the feature service definition:",i),{error:{code:"unhandledError"}}}}async function L({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}updateDefinition`,portal:a,method:"post",params:{updateDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message??"Failed to update the feature service definition."}}:{result:i}}catch(i){return console.error("Error updating the feature service definition:",i),{error:{code:"unhandledError"}}}}async function z(t){let{url:e}=t;if(!e)return{error:{code:"unhandledError"}};try{return{result:(await g(e,{query:{f:"json"}})).data}}catch(a){return console.error("Error getting service info:",a),{error:{code:"unhandledError"}}}}var A=(t,e)=>{let a=t.domain??null,l=e.domain??null;return a===null||l===null?a===l:a.type!==l.type?!1:a.type==="codedValue"&&l.type==="codedValue"?a.name===l.name&&a.codedValues.length===l.codedValues.length&&a.codedValues.every(({code:s,name:i},n)=>s===l.codedValues[n]?.code&&i===l.codedValues[n]?.name):a.type==="range"&&l.type==="range"?a.name===l.name&&a.range[0]===l.range[0]&&a.range[1]===l.range[1]:!0},w=(t,e)=>{let a=new Map(e.map(i=>[i.name,i])),l=[],s=[];for(let i of t){let n=a.get(i.name);n?A(i,n)||s.push({name:i.name,domain:i.domain}):l.push(i)}return{missingFields:l,modifiedFields:s}},F=t=>{switch(t){case"esriGeometryPolyline":case"esriGeometryPolygon":return[...E];case"esriGeometryPoint":return[...R];default:return[]}},x=t=>t==="esriGeometryPoint"?[...M]:[],G=t=>t==="esriGeometryPoint"?[...N]:[],E=[{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_h_rms",type:"esriFieldTypeDouble",alias:"Worst horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_v_rms",type:"esriFieldTypeDouble",alias:"Worst vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_fixtype",type:"esriFieldTypeSmallInteger",alias:"Worst fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_manual_locations",type:"esriFieldTypeInteger",alias:"Number of manual locations",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],R=[{name:"esrignss_speed",type:"esriFieldTypeDouble",alias:"Speed (km/h)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_direction",type:"esriFieldTypeDouble",alias:"Direction of travel (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_azimuth",type:"esriFieldTypeDouble",alias:"Compass reading (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_positionsourcetype",type:"esriFieldTypeInteger",alias:"Position source type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_POSITIONSOURCETYPE_DOMAIN",codedValues:[{name:"Unknown",code:0},{name:"User defined",code:1},{name:"Integrated (System) Location Provider",code:2},{name:"External GNSS Receiver",code:3},{name:"Network Location Provider",code:4},{name:"Snapped",code:5}]},defaultValue:null},{name:"esrignss_receiver",type:"esriFieldTypeString",alias:"Receiver name",sqlType:"sqlTypeOther",length:50,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_rms",type:"esriFieldTypeDouble",alias:"Horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_v_rms",type:"esriFieldTypeDouble",alias:"Vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_latitude",type:"esriFieldTypeDouble",alias:"Latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_longitude",type:"esriFieldTypeDouble",alias:"Longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_altitude",type:"esriFieldTypeDouble",alias:"Ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_pdop",type:"esriFieldTypeDouble",alias:"PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_hdop",type:"esriFieldTypeDouble",alias:"HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_vdop",type:"esriFieldTypeDouble",alias:"VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_fixtype",type:"esriFieldTypeSmallInteger",alias:"Fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_correctionage",type:"esriFieldTypeDouble",alias:"Correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_stationid",type:"esriFieldTypeSmallInteger",alias:"Station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_numsats",type:"esriFieldTypeSmallInteger",alias:"Number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"range",name:"ESRI_NUM_SATS_DOMAIN",range:[0,99]},defaultValue:null},{name:"esrignss_fixdatetime",type:"esriFieldTypeDate",alias:"Fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_positions",type:"esriFieldTypeInteger",alias:"Averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_stddev",type:"esriFieldTypeDouble",alias:"Standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_name",type:"esriFieldTypeString",alias:"Correction source name",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_type",type:"esriFieldTypeString",alias:"Correction source type",sqlType:"sqlTypeOther",length:25,nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_correction_source_domain",codedValues:[{name:"Unknown",code:"Unknown"},{name:"Direct IP",code:"Direct IP"},{name:"NTRIP",code:"NTRIP"},{name:"PPP",code:"PPP"},{name:"Radio",code:"Radio"},{name:"SBAS",code:"SBAS"}]},defaultValue:null},{name:"esrignss_custom_attributes",type:"esriFieldTypeString",alias:"GNSS custom attributes",sqlType:"sqlTypeOther",length:2e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_95_status",type:"esriFieldTypeSmallInteger",alias:"95% accuracy applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_ntrip_mount_point",type:"esriFieldTypeString",alias:"NTRIP mount point",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_antenna_height",type:"esriFieldTypeDouble",alias:"GNSS antenna height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_orthometric_height",type:"esriFieldTypeDouble",alias:"Orthometric height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_profile_has_hor_xform",type:"esriFieldTypeSmallInteger",alias:"Location profile horizontal datum transformation applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_profile_hor_xform",type:"esriFieldTypeString",alias:"Location profile horizontal datum transformation",sqlType:"sqlTypeOther",length:255,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs",type:"esriFieldTypeString",alias:"Geographic coordinate system",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs_wkid",type:"esriFieldTypeInteger",alias:"Geographic coordinate system WKID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_geoid",type:"esriFieldTypeString",alias:"Receiver geoid model",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_ref_epoch",type:"esriFieldTypeDouble",alias:"Reference epoch",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],M=[{name:"esrisnsr_tilt_azimuth_accuracy",type:"esriFieldTypeDouble",alias:"Tilt azimuth accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_azimuth",type:"esriFieldTypeDouble",alias:"Tilt azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle_accuracy",type:"esriFieldTypeDouble",alias:"Tilt angle accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle",type:"esriFieldTypeDouble",alias:"Tilt angle (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_tilt_compensated",type:"esriFieldTypeSmallInteger",alias:"Tilt compensated",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null}],N=[{name:"esrignss_cp1_latitude",type:"esriFieldTypeDouble",alias:"CP1 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_longitude",type:"esriFieldTypeDouble",alias:"CP1 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_altitude",type:"esriFieldTypeDouble",alias:"CP1 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_rms",type:"esriFieldTypeDouble",alias:"CP1 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_v_rms",type:"esriFieldTypeDouble",alias:"CP1 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixdatetime",type:"esriFieldTypeDate",alias:"CP1 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP1 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp1_corr_age",type:"esriFieldTypeDouble",alias:"CP1 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_stationid",type:"esriFieldTypeSmallInteger",alias:"CP1 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_numsats",type:"esriFieldTypeSmallInteger",alias:"CP1 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_pdop",type:"esriFieldTypeDouble",alias:"CP1 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_hdop",type:"esriFieldTypeDouble",alias:"CP1 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_vdop",type:"esriFieldTypeDouble",alias:"CP1 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP1 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP1 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_positions",type:"esriFieldTypeInteger",alias:"CP1 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_stddev",type:"esriFieldTypeDouble",alias:"CP1 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_slope_dist",type:"esriFieldTypeDouble",alias:"CP1 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_inclination",type:"esriFieldTypeDouble",alias:"CP1 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_azimuth",type:"esriFieldTypeDouble",alias:"CP1 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_latitude",type:"esriFieldTypeDouble",alias:"CP2 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_longitude",type:"esriFieldTypeDouble",alias:"CP2 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_altitude",type:"esriFieldTypeDouble",alias:"CP2 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_rms",type:"esriFieldTypeDouble",alias:"CP2 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_v_rms",type:"esriFieldTypeDouble",alias:"CP2 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixdatetime",type:"esriFieldTypeDate",alias:"CP2 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP2 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp2_corr_age",type:"esriFieldTypeDouble",alias:"CP2 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_stationid",type:"esriFieldTypeSmallInteger",alias:"CP2 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_numsats",type:"esriFieldTypeSmallInteger",alias:"CP2 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_pdop",type:"esriFieldTypeDouble",alias:"CP2 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_hdop",type:"esriFieldTypeDouble",alias:"CP2 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_vdop",type:"esriFieldTypeDouble",alias:"CP2 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP2 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP2 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_positions",type:"esriFieldTypeInteger",alias:"CP2 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_stddev",type:"esriFieldTypeDouble",alias:"CP2 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_slope_dist",type:"esriFieldTypeDouble",alias:"CP2 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_inclination",type:"esriFieldTypeDouble",alias:"CP2 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_azimuth",type:"esriFieldTypeDouble",alias:"CP2 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_method",type:"esriFieldTypeString",alias:"Offset method",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_OFFSET_METHOD_DOMAIN",codedValues:[{name:"Azimuth-Azimuth",code:"azimuth-azimuth"},{name:"Distance-Angle",code:"distance-angle"},{name:"Distance-Azimuth",code:"distance-azimuth"},{name:"Distance-Distance",code:"distance-distance"},{name:"Azimuth-Azimuth-Backsight",code:"azimuth-azimuth-backsight"},{name:"Distance-Azimuth-Backsight",code:"distance-azimuth-backsight"},{name:"Distance-Distance-Backsight",code:"distance-distance-backsight"},{name:"User-defined",code:"user-defined"}]},defaultValue:null},{name:"esrisnsr_offset_device",type:"esriFieldTypeString",alias:"Rangefinder name",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_height",type:"esriFieldTypeDouble",alias:"Rangefinder height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_target_ht",type:"esriFieldTypeDouble",alias:"Laser target height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_mag_var",type:"esriFieldTypeDouble",alias:"Rangefinder magnetic variation (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}];function $(t){let e=t.capabilities;return e?.data?.supportsAttachment&&e?.operations?.supportsQueryAttachments}function k(t){return t.every($)}var B=["point","polyline","polygon"],O=t=>t?.type==="Feature Service",T=class extends f{constructor(){super(...arguments),this.messages=q({blocking:!0}),this.initCount=0,this.supportsAttachments=!1,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.loadedItem=null,this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.initializing=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1,this.addingGPSFieldMetadata=[],this.item=null,this.itemId=null,this.arcgisGPSMetadataFieldsAdded=c(),this.arcgisReadOnlyMode=c()}static{this.properties={loadedItem:16,gpsFieldFixesBySet:16,addFieldsDisabled:16,initializing:16,hasLineOrPolygonLayer:16,hasPointFeatureLayer:16,addingGPSFieldMetadata:16,item:0,itemId:1,portal:0}}static{this.styles=I}willUpdate(e){(e.has("item")||e.has("itemId"))&&this.initItem()}async initItem({showLoading:e=!0}={}){let a=++this.initCount;if(!this.item&&!this.itemId){this.resetItemState(),this.initializing=!1;return}e&&(this.resetItemState(),this.initializing=!0);let{item:l,itemId:s,portal:i}=this,n=l?await l.load():await new S({id:s,portal:i}).load();if(!this.isCurrentInitialization(a))return;if(!O(n)){this.resetItemState(),this.initializing=!1;return}this.loadedItem=n;let d=!e&&this.layersLoaded?[...this.pointLayers,...this.lineOrPolygonLayers]:await this.getFeatureLayers(n),{result:p}=await z(n);if(!this.isCurrentInitialization(a))return;this.layersLoaded=!0,this.pointLayers=d.filter(o=>o.geometryType==="point"),this.lineOrPolygonLayers=d.filter(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasLineOrPolygonLayer=d.some(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasPointFeatureLayer=d.some(o=>o.geometryType==="point");let{result:r,error:y}=d.length>0?await v({item:n,layers:d}):{};if(!this.isCurrentInitialization(a))return;if(y){this.resetItemState(),this.initializing=!1;return}let m=r??new Map;this.gpsFieldFixesBySet={base:this.analyzeFieldSet([...this.pointLayers,...this.lineOrPolygonLayers],m,"base"),gnss:this.analyzeFieldSet(this.pointLayers,m,"gnss"),rangefinder:this.analyzeFieldSet(this.pointLayers,m,"rangefinder")},this.supportsAttachments=k(d);let V=p?.sourceSchemaChangesAllowed!==!1;this.addFieldsDisabled=!this.supportsAttachments||!V,this.initializing=!1}isCurrentInitialization(e){return e===this.initCount}resetItemState(){this.loadedItem=null,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1}async getFeatureLayers(e){let a=await D.fromPortalItem({portalItem:e});return await a.load(),"layers"in a?(await Promise.all(a.layers.map(async l=>(await l.load(),this.isSupportedFeatureLayer(l)?l:null)))).filter(l=>!!l):this.isSupportedFeatureLayer(a)?[a]:[]}isSupportedFeatureLayer(e){return e.type==="feature"&&B.some(a=>a===e.geometryType)}getCompatibleEsriGeometryType(e){switch(e.geometryType){case"point":return"esriGeometryPoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";default:return null}}analyzeFieldSet(e,a,l){let s=[];for(let i of e){if(i.layerId==null)continue;let n=a.get(i.layerId)??[],d=this.getCompatibleEsriGeometryType(i),p=d?l==="base"?F(d):l==="gnss"?x(d):G(d):[],r=w(p,n);(r.missingFields.length>0||r.modifiedFields.length>0)&&s.push({layerId:i.layerId,fieldsToAdd:r.missingFields,domainsToUpdate:r.modifiedFields})}return s}hasFieldChanges(e){return(this.gpsFieldFixesBySet?.[e].length??0)>0}isLoading(e){return this.addingGPSFieldMetadata.includes(e)}async addFields(e){let a=this.portal??this.loadedItem?.portal,l=this.loadedItem,s=this.gpsFieldFixesBySet;if(!(!a||!l||!s)){if(a.isReadOnly){this.arcgisReadOnlyMode.emit();return}this.addingGPSFieldMetadata=[...this.addingGPSFieldMetadata,e];try{let i=s[e],n=(await Promise.all(i.filter(({fieldsToAdd:r})=>r.length>0).map(async({fieldsToAdd:r,layerId:y})=>await C({fields:r,item:l,layerId:y,portal:a})))).every(({error:r})=>!r),d=n?await Promise.all(i.filter(({domainsToUpdate:r})=>r.length>0).map(async({domainsToUpdate:r,layerId:y})=>await L({fields:r,item:l,layerId:y,portal:a}))):[],p=n&&d.every(({error:r})=>!r);await this.initItem({showLoading:!1}),n&&p&&this.gpsFieldFixesBySet&&!this.hasFieldChanges(e)&&this.arcgisGPSMetadataFieldsAdded.emit(e)}finally{this.addingGPSFieldMetadata=this.addingGPSFieldMetadata.filter(i=>i!==e)}}}canShowAddGPSMetadata(){let e=this.loadedItem??this.item;return!!e&&O(e)}showAdvancedFields(){let e=this.gpsFieldFixesBySet;return!this.hasPointFeatureLayer||!e?!1:this.pointLayers.some(a=>{if(a.layerId==null)return!1;let l=this.getCompatibleEsriGeometryType(a),s=l?F(l):[];return(e.base.find(({layerId:i})=>i===a.layerId)?.fieldsToAdd??[]).length<s.length})}renderAddFieldsControl(e,a=!1){let l=this.gpsFieldFixesBySet;if(!a&&l&&!this.hasFieldChanges(e))return u`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;let s=this.isLoading(e);return u`<calcite-button slot=actions-end appearance=outline-fill .disabled=${a||!l||s||this.addFieldsDisabled} .loading=${s} @click=${async()=>await this.addFields(e)}>${s?this.messages.addingFields:this.messages.addFields}</calcite-button>`}render(){return this.canShowAddGPSMetadata()?u`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing&&u`<calcite-scrim loading></calcite-scrim>`||""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields()&&u`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>`||""}</calcite-list></calcite-block></div>`:null}};_("arcgis-portal-add-gps-metadata",T);return T},"layers/Layer","portal/PortalItem","request",a)
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as q}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{L as f,R as _,h as b,j as u,w as c}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([D,S,g,{b:h}])=>{var I=b`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}`;async function v({item:t,layers:e}){let{url:a}=t,l=new Map;if(!a)return{result:l};try{let s=(await g(a,{query:{f:"json"},responseType:"json"})).data;if(s.fields){let n=e?.[0];return e?.length===1&&n?.layerId!=null&&l.set(n.layerId,s.fields),{result:l}}if(!s.layers?.length)return{result:l};let i=a.replace(/\/$/u,"");return await Promise.all(s.layers.map(async({id:n})=>{let d=(await g(`${i}/${n}`,{query:{f:"json"},responseType:"json"})).data;l.set(n,d.fields??[])})),{result:l}}catch(s){return console.error("Error getting layer fields:",s),{error:{code:"unhandledError"}}}}var P=t=>{let{url:e}=t;return e?e.replace("/rest/services","/rest/admin/services").replace(/\/$/u,""):null};async function C({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}addToDefinition`,portal:a,method:"post",params:{addToDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message}}:{result:i}}catch(i){return console.error("Error adding fields to the feature service definition:",i),{error:{code:"unhandledError"}}}}async function L({fields:t,item:e,portal:a,layerId:l}){let s=P(e);if(!s)return{error:{code:"unhandledError",message:"A feature service URL is required."}};try{let i=await h({url:`${s}/${l!=null?`${l}/`:""}updateDefinition`,portal:a,method:"post",params:{updateDefinition:JSON.stringify({fields:t})}});return i.success===!1||i.error?{error:{code:"unhandledError",message:i.error?.message??"Failed to update the feature service definition."}}:{result:i}}catch(i){return console.error("Error updating the feature service definition:",i),{error:{code:"unhandledError"}}}}async function z(t){let{url:e}=t;if(!e)return{error:{code:"unhandledError"}};try{return{result:(await g(e,{query:{f:"json"}})).data}}catch(a){return console.error("Error getting service info:",a),{error:{code:"unhandledError"}}}}var A=(t,e)=>{let a=t.domain??null,l=e.domain??null;return a===null||l===null?a===l:a.type!==l.type?!1:a.type==="codedValue"&&l.type==="codedValue"?a.name===l.name&&a.codedValues.length===l.codedValues.length&&a.codedValues.every(({code:s,name:i},n)=>s===l.codedValues[n]?.code&&i===l.codedValues[n]?.name):a.type==="range"&&l.type==="range"?a.name===l.name&&a.range[0]===l.range[0]&&a.range[1]===l.range[1]:!0},w=(t,e)=>{let a=new Map(e.map(i=>[i.name,i])),l=[],s=[];for(let i of t){let n=a.get(i.name);n?A(i,n)||s.push({name:i.name,domain:i.domain}):l.push(i)}return{missingFields:l,modifiedFields:s}},F=t=>{switch(t){case"esriGeometryPolyline":case"esriGeometryPolygon":return[...E];case"esriGeometryPoint":return[...R];default:return[]}},x=t=>t==="esriGeometryPoint"?[...M]:[],G=t=>t==="esriGeometryPoint"?[...N]:[],E=[{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_h_rms",type:"esriFieldTypeDouble",alias:"Worst horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_v_rms",type:"esriFieldTypeDouble",alias:"Worst vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_worst_fixtype",type:"esriFieldTypeSmallInteger",alias:"Worst fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_manual_locations",type:"esriFieldTypeInteger",alias:"Number of manual locations",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],R=[{name:"esrignss_speed",type:"esriFieldTypeDouble",alias:"Speed (km/h)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_direction",type:"esriFieldTypeDouble",alias:"Direction of travel (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_azimuth",type:"esriFieldTypeDouble",alias:"Compass reading (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_positionsourcetype",type:"esriFieldTypeInteger",alias:"Position source type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_POSITIONSOURCETYPE_DOMAIN",codedValues:[{name:"Unknown",code:0},{name:"User defined",code:1},{name:"Integrated (System) Location Provider",code:2},{name:"External GNSS Receiver",code:3},{name:"Network Location Provider",code:4},{name:"Snapped",code:5}]},defaultValue:null},{name:"esrignss_receiver",type:"esriFieldTypeString",alias:"Receiver name",sqlType:"sqlTypeOther",length:50,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_rms",type:"esriFieldTypeDouble",alias:"Horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_v_rms",type:"esriFieldTypeDouble",alias:"Vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_latitude",type:"esriFieldTypeDouble",alias:"Latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_longitude",type:"esriFieldTypeDouble",alias:"Longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_altitude",type:"esriFieldTypeDouble",alias:"Ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_pdop",type:"esriFieldTypeDouble",alias:"PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_hdop",type:"esriFieldTypeDouble",alias:"HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_vdop",type:"esriFieldTypeDouble",alias:"VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_fixtype",type:"esriFieldTypeSmallInteger",alias:"Fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"NoFix",code:0},{name:"GPS",code:1},{name:"DifferentialGPS",code:2},{name:"PrecisePositioningService",code:3},{name:"RTKFixed",code:4},{name:"RTKFloat",code:5}]},defaultValue:null},{name:"esrignss_correctionage",type:"esriFieldTypeDouble",alias:"Correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_stationid",type:"esriFieldTypeSmallInteger",alias:"Station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_numsats",type:"esriFieldTypeSmallInteger",alias:"Number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"range",name:"ESRI_NUM_SATS_DOMAIN",range:[0,99]},defaultValue:null},{name:"esrignss_fixdatetime",type:"esriFieldTypeDate",alias:"Fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_h_rms",type:"esriFieldTypeDouble",alias:"Average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_v_rms",type:"esriFieldTypeDouble",alias:"Average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_avg_positions",type:"esriFieldTypeInteger",alias:"Averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_stddev",type:"esriFieldTypeDouble",alias:"Standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_name",type:"esriFieldTypeString",alias:"Correction source name",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_correction_source_type",type:"esriFieldTypeString",alias:"Correction source type",sqlType:"sqlTypeOther",length:25,nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_correction_source_domain",codedValues:[{name:"Unknown",code:"Unknown"},{name:"Direct IP",code:"Direct IP"},{name:"NTRIP",code:"NTRIP"},{name:"PPP",code:"PPP"},{name:"Radio",code:"Radio"},{name:"SBAS",code:"SBAS"}]},defaultValue:null},{name:"esrignss_custom_attributes",type:"esriFieldTypeString",alias:"GNSS custom attributes",sqlType:"sqlTypeOther",length:2e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_h_95_status",type:"esriFieldTypeSmallInteger",alias:"95% accuracy applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_ntrip_mount_point",type:"esriFieldTypeString",alias:"NTRIP mount point",sqlType:"sqlTypeOther",length:100,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_antenna_height",type:"esriFieldTypeDouble",alias:"GNSS antenna height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_orthometric_height",type:"esriFieldTypeDouble",alias:"Orthometric height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_profile_has_hor_xform",type:"esriFieldTypeSmallInteger",alias:"Location profile horizontal datum transformation applied",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null},{name:"esrignss_profile_hor_xform",type:"esriFieldTypeString",alias:"Location profile horizontal datum transformation",sqlType:"sqlTypeOther",length:255,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs",type:"esriFieldTypeString",alias:"Geographic coordinate system",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_gcs_wkid",type:"esriFieldTypeInteger",alias:"Geographic coordinate system WKID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_geoid",type:"esriFieldTypeString",alias:"Receiver geoid model",sqlType:"sqlTypeOther",length:60,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_receiver_ref_epoch",type:"esriFieldTypeDouble",alias:"Reference epoch",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}],M=[{name:"esrisnsr_tilt_azimuth_accuracy",type:"esriFieldTypeDouble",alias:"Tilt azimuth accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_azimuth",type:"esriFieldTypeDouble",alias:"Tilt azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle_accuracy",type:"esriFieldTypeDouble",alias:"Tilt angle accuracy (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_tilt_angle",type:"esriFieldTypeDouble",alias:"Tilt angle (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_tilt_compensated",type:"esriFieldTypeSmallInteger",alias:"Tilt compensated",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"esrignss_yesno_domain",codedValues:[{name:"No",code:0},{name:"Yes",code:1}]},defaultValue:null}],N=[{name:"esrignss_cp1_latitude",type:"esriFieldTypeDouble",alias:"CP1 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_longitude",type:"esriFieldTypeDouble",alias:"CP1 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_altitude",type:"esriFieldTypeDouble",alias:"CP1 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_rms",type:"esriFieldTypeDouble",alias:"CP1 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_v_rms",type:"esriFieldTypeDouble",alias:"CP1 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixdatetime",type:"esriFieldTypeDate",alias:"CP1 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP1 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp1_corr_age",type:"esriFieldTypeDouble",alias:"CP1 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_stationid",type:"esriFieldTypeSmallInteger",alias:"CP1 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_numsats",type:"esriFieldTypeSmallInteger",alias:"CP1 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_pdop",type:"esriFieldTypeDouble",alias:"CP1 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_hdop",type:"esriFieldTypeDouble",alias:"CP1 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_vdop",type:"esriFieldTypeDouble",alias:"CP1 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP1 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP1 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_avg_positions",type:"esriFieldTypeInteger",alias:"CP1 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp1_h_stddev",type:"esriFieldTypeDouble",alias:"CP1 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_slope_dist",type:"esriFieldTypeDouble",alias:"CP1 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_inclination",type:"esriFieldTypeDouble",alias:"CP1 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp1_azimuth",type:"esriFieldTypeDouble",alias:"CP1 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_latitude",type:"esriFieldTypeDouble",alias:"CP2 latitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_longitude",type:"esriFieldTypeDouble",alias:"CP2 longitude",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_altitude",type:"esriFieldTypeDouble",alias:"CP2 ellipsoidal height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_rms",type:"esriFieldTypeDouble",alias:"CP2 horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_v_rms",type:"esriFieldTypeDouble",alias:"CP2 vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixdatetime",type:"esriFieldTypeDate",alias:"CP2 fix time",sqlType:"sqlTypeOther",length:8,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_fixtype",type:"esriFieldTypeSmallInteger",alias:"CP2 fix type",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_FIX_TYPE_DOMAIN",codedValues:[{name:"Fix not valid",code:0},{name:"GPS",code:1},{name:"Differential GPS",code:2},{name:"RTK Fixed",code:4},{name:"RTK Float",code:5}]},defaultValue:null},{name:"esrignss_cp2_corr_age",type:"esriFieldTypeDouble",alias:"CP2 correction age",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_stationid",type:"esriFieldTypeSmallInteger",alias:"CP2 station ID",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_numsats",type:"esriFieldTypeSmallInteger",alias:"CP2 number of satellites",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_pdop",type:"esriFieldTypeDouble",alias:"CP2 PDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_hdop",type:"esriFieldTypeDouble",alias:"CP2 HDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_vdop",type:"esriFieldTypeDouble",alias:"CP2 VDOP",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_h_rms",type:"esriFieldTypeDouble",alias:"CP2 average horizontal accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_v_rms",type:"esriFieldTypeDouble",alias:"CP2 average vertical accuracy (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_avg_positions",type:"esriFieldTypeInteger",alias:"CP2 averaged positions",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrignss_cp2_h_stddev",type:"esriFieldTypeDouble",alias:"CP2 standard deviation (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_slope_dist",type:"esriFieldTypeDouble",alias:"CP2 laser slope distance (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_inclination",type:"esriFieldTypeDouble",alias:"CP2 laser inclination (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_cp2_azimuth",type:"esriFieldTypeDouble",alias:"CP2 laser azimuth (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_method",type:"esriFieldTypeString",alias:"Offset method",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:{type:"codedValue",name:"ESRI_OFFSET_METHOD_DOMAIN",codedValues:[{name:"Azimuth-Azimuth",code:"azimuth-azimuth"},{name:"Distance-Angle",code:"distance-angle"},{name:"Distance-Azimuth",code:"distance-azimuth"},{name:"Distance-Distance",code:"distance-distance"},{name:"Azimuth-Azimuth-Backsight",code:"azimuth-azimuth-backsight"},{name:"Distance-Azimuth-Backsight",code:"distance-azimuth-backsight"},{name:"Distance-Distance-Backsight",code:"distance-distance-backsight"},{name:"User-defined",code:"user-defined"}]},defaultValue:null},{name:"esrisnsr_offset_device",type:"esriFieldTypeString",alias:"Rangefinder name",sqlType:"sqlTypeOther",length:5e3,nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_height",type:"esriFieldTypeDouble",alias:"Rangefinder height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_laser_target_ht",type:"esriFieldTypeDouble",alias:"Laser target height (m)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null},{name:"esrisnsr_offset_mag_var",type:"esriFieldTypeDouble",alias:"Rangefinder magnetic variation (\xB0)",sqlType:"sqlTypeOther",nullable:!0,editable:!0,domain:null,defaultValue:null}];function $(t){let e=t.capabilities;return e?.data?.supportsAttachment&&e?.operations?.supportsQueryAttachments}function k(t){return t.every($)}var B=["point","polyline","polygon"],O=t=>t?.type==="Feature Service",T=class extends f{constructor(){super(...arguments),this.messages=q({blocking:!0}),this.initCount=0,this.supportsAttachments=!1,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.loadedItem=null,this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.initializing=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1,this.addingGPSFieldMetadata=[],this.item=null,this.itemId=null,this.arcgisGPSMetadataFieldsAdded=c(),this.arcgisReadOnlyMode=c()}static{this.properties={loadedItem:16,gpsFieldFixesBySet:16,addFieldsDisabled:16,initializing:16,hasLineOrPolygonLayer:16,hasPointFeatureLayer:16,addingGPSFieldMetadata:16,item:0,itemId:1,portal:0}}static{this.styles=I}willUpdate(e){(e.has("item")||e.has("itemId"))&&this.initItem()}async initItem({showLoading:e=!0}={}){let a=++this.initCount;if(!this.item&&!this.itemId){this.resetItemState(),this.initializing=!1;return}e&&(this.resetItemState(),this.initializing=!0);let{item:l,itemId:s,portal:i}=this,n=l?await l.load():await new S({id:s,portal:i}).load();if(!this.isCurrentInitialization(a))return;if(!O(n)){this.resetItemState(),this.initializing=!1;return}this.loadedItem=n;let d=!e&&this.layersLoaded?[...this.pointLayers,...this.lineOrPolygonLayers]:await this.getFeatureLayers(n),{result:p}=await z(n);if(!this.isCurrentInitialization(a))return;this.layersLoaded=!0,this.pointLayers=d.filter(o=>o.geometryType==="point"),this.lineOrPolygonLayers=d.filter(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasLineOrPolygonLayer=d.some(o=>o.geometryType==="polyline"||o.geometryType==="polygon"),this.hasPointFeatureLayer=d.some(o=>o.geometryType==="point");let{result:r,error:y}=d.length>0?await v({item:n,layers:d}):{};if(!this.isCurrentInitialization(a))return;if(y){this.resetItemState(),this.initializing=!1;return}let m=r??new Map;this.gpsFieldFixesBySet={base:this.analyzeFieldSet([...this.pointLayers,...this.lineOrPolygonLayers],m,"base"),gnss:this.analyzeFieldSet(this.pointLayers,m,"gnss"),rangefinder:this.analyzeFieldSet(this.pointLayers,m,"rangefinder")},this.supportsAttachments=k(d);let V=p?.sourceSchemaChangesAllowed!==!1;this.addFieldsDisabled=!this.supportsAttachments||!V,this.initializing=!1}isCurrentInitialization(e){return e===this.initCount}resetItemState(){this.loadedItem=null,this.layersLoaded=!1,this.pointLayers=[],this.lineOrPolygonLayers=[],this.gpsFieldFixesBySet=null,this.addFieldsDisabled=!0,this.hasLineOrPolygonLayer=!1,this.hasPointFeatureLayer=!1}async getFeatureLayers(e){let a=await D.fromPortalItem({portalItem:e});return await a.load(),"layers"in a?(await Promise.all(a.layers.map(async l=>(await l.load(),this.isSupportedFeatureLayer(l)?l:null)))).filter(l=>!!l):this.isSupportedFeatureLayer(a)?[a]:[]}isSupportedFeatureLayer(e){return e.type==="feature"&&B.some(a=>a===e.geometryType)}getCompatibleEsriGeometryType(e){switch(e.geometryType){case"point":return"esriGeometryPoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";default:return null}}analyzeFieldSet(e,a,l){let s=[];for(let i of e){if(i.layerId==null)continue;let n=a.get(i.layerId)??[],d=this.getCompatibleEsriGeometryType(i),p=d?l==="base"?F(d):l==="gnss"?x(d):G(d):[],r=w(p,n);(r.missingFields.length>0||r.modifiedFields.length>0)&&s.push({layerId:i.layerId,fieldsToAdd:r.missingFields,domainsToUpdate:r.modifiedFields})}return s}hasFieldChanges(e){return(this.gpsFieldFixesBySet?.[e].length??0)>0}isLoading(e){return this.addingGPSFieldMetadata.includes(e)}async addFields(e){let a=this.portal??this.loadedItem?.portal,l=this.loadedItem,s=this.gpsFieldFixesBySet;if(!(!a||!l||!s)){if(a.isReadOnly){this.arcgisReadOnlyMode.emit();return}this.addingGPSFieldMetadata=[...this.addingGPSFieldMetadata,e];try{let i=s[e],n=(await Promise.all(i.filter(({fieldsToAdd:r})=>r.length>0).map(async({fieldsToAdd:r,layerId:y})=>await C({fields:r,item:l,layerId:y,portal:a})))).every(({error:r})=>!r),d=n?await Promise.all(i.filter(({domainsToUpdate:r})=>r.length>0).map(async({domainsToUpdate:r,layerId:y})=>await L({fields:r,item:l,layerId:y,portal:a}))):[],p=n&&d.every(({error:r})=>!r);await this.initItem({showLoading:!1}),n&&p&&this.gpsFieldFixesBySet&&!this.hasFieldChanges(e)&&this.arcgisGPSMetadataFieldsAdded.emit(e)}finally{this.addingGPSFieldMetadata=this.addingGPSFieldMetadata.filter(i=>i!==e)}}}canShowAddGPSMetadata(){let e=this.loadedItem??this.item;return!!e&&O(e)}showAdvancedFields(){let e=this.gpsFieldFixesBySet;return!this.hasPointFeatureLayer||!e?!1:this.pointLayers.some(a=>{if(a.layerId==null)return!1;let l=this.getCompatibleEsriGeometryType(a),s=l?F(l):[];return(e.base.find(({layerId:i})=>i===a.layerId)?.fieldsToAdd??[]).length<s.length})}renderAddFieldsControl(e,a=!1){let l=this.gpsFieldFixesBySet;if(!a&&l&&!this.hasFieldChanges(e))return u`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;let s=this.isLoading(e);return u`<calcite-button slot=actions-end appearance=outline-fill .disabled=${a||!l||s||this.addFieldsDisabled} .loading=${s} @click=${async()=>await this.addFields(e)}>${s?this.messages.addingFields:this.messages.addFields}</calcite-button>`}render(){return this.canShowAddGPSMetadata()?u`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing&&u`<calcite-scrim loading></calcite-scrim>`||""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields()&&u`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>`||""}</calcite-list></calcite-block></div>`:null}};_("arcgis-portal-add-gps-metadata",T);return T},"layers/Layer","portal/PortalItem","request",a)
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{c as R}from"./JOUR2FB2.js";import{a as k}from"./VDXESPJK.js";import{a as c}from"./TWCJJCPC.js";import a from"./PMRFXB4F.js";import{a as $}from"./K75JTQPW.js";import{a as b}from"./7ZWYUHGK.js";import{J as p,K as u,L as v,N as f,R as g,h as m,j as n,w as y}from"./AICPYLWE.js";export default $arcgis.t(([{b:T}])=>{var I=["esri_livingatlas","esri_boundaries","esri_demographics","esri_nav","esri_webstyles"];function S(o){return k(o.trim()).replace(/[!*+\-&|()[\]{}^~?:"\\]/gu,"\\$&")}async function _({portal:o,searchTerm:e,num:t=100,query:s}){let i=S(e),l=`${$(o)}portals/self/users/search`,r=[i?`(${i})`:void 0,s?.trim()?`(${s.trim()})`:void 0];o.isPortal&&r.push(...I.map(h=>`-username:${h}`));let a=l.includes("www.arcgis.com")&&o.isPortal?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await T({url:l,portal:o,params:{num:Math.min(Math.max(t,1),100),q:r.filter(Boolean).join(" AND "),sortField:"relevance"},options:a})}function A(...o){return o.map(e=>e?.trim()).filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}async function O(o,e,t,s={}){let i=Math.min(Math.max(s.num??10,1),100);if(e==="user")try{return{result:{entityType:e,result:await _({portal:o,searchTerm:t,num:i,query:s.query})}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}let l=R(t);if(!l)return{};let r={num:i,query:A(l,s.query)};try{return e==="group"?{result:{entityType:e,result:await o.queryGroups(r)}}:{result:{entityType:e,result:await o.queryItems(r)}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}}var C=m`:host{display:block;inline-size:100%}.entity-picker{display:flex;flex-direction:column;gap:.5rem;min-inline-size:16rem}.entity-picker__results{max-block-size:22rem;overflow-y:auto}.entity-picker__cards{display:flex;flex-direction:column;gap:.5rem}.entity-picker__status{color:var(--calcite-color-text-3);font-size:.875rem;margin:0;padding:.75rem}.entity-picker__selection{align-items:center;display:flex;gap:.5rem}.entity-picker__selection-label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-picker__input{inline-size:100%}`,d=class extends v{constructor(){super(...arguments),this._messages=b({blocking:!0,name:"portal-entity-picker"}),this.inputRef=p(),this.inputContainerRef=p(),this.resizeObserver=null,this.searchId=0,this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.popoverOpen=!1,this.popoverWidth=0,this.entityType="group",this.mode="inline",this.selected=null,this.num=10,this.arcgisSelectionChange=y()}static{this.properties={searchTerm:16,isSearching:16,searchFailed:16,searchResult:16,popoverOpen:16,popoverWidth:16,portal:0,entityType:1,mode:1,selected:0,query:1,num:9,icon:1,messageOverrides:0}}static{this.styles=C}get searchLabel(){let{entityType:e,_messages:t}=this;return e==="group"?t.searchGroups:e==="item"?t.searchItems:t.searchUsers}get selectedLabel(){let{entityType:e,selected:t}=this;if(t?.entityType===e)return t.entityType==="user"?t.entity.fullName||t.entity.username:t.entity.title||t.entity.id||void 0}async togglePicker(e){this.mode==="popover"&&(this.popoverOpen=e,await this.updateComplete,await this.setFocus())}async setFocus(){await this.inputRef.value?.setFocus()}firstUpdated(){this.updatePopoverWidth(),!(typeof ResizeObserver>"u"||!this.inputContainerRef.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updatePopoverWidth()),this.resizeObserver.observe(this.inputContainerRef.value))}willUpdate(e){(e.has("portal")||e.has("entityType")||e.has("query")||e.has("num"))&&this.resetSearch(),e.has("mode")&&this.mode==="inline"&&(this.popoverOpen=!1)}disconnectedCallback(){this.cancelPendingSearch(),this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updatePopoverWidth(){requestAnimationFrame(()=>{this.popoverWidth=this.inputContainerRef.value?.offsetWidth??0})}cancelPendingSearch(){return this.debounceId!==void 0&&(window.clearTimeout(this.debounceId),this.debounceId=void 0),this.searchId+=1,this.searchId}resetSearch(){this.cancelPendingSearch(),this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.searchResult=void 0,this.popoverOpen=!1}scheduleSearch(e){let t=e.trim(),s=this.cancelPendingSearch();if(this.searchFailed=!1,this.searchResult=void 0,!t){this.isSearching=!1,this.popoverOpen=!1;return}this.isSearching=!0,this.mode==="popover"&&(this.popoverOpen=!0),this.debounceId=window.setTimeout(()=>{this.debounceId=void 0,this.search(t,s)},400)}async search(e,t){let{entityType:s,num:i,portal:l,query:r}=this;try{let{error:a,result:h}=await O(l,s,e,{num:i,query:r});if(t!==this.searchId)return;this.searchFailed=!!a,this.searchResult=h}catch{if(t!==this.searchId)return;this.searchFailed=!0,this.searchResult=void 0}finally{t===this.searchId&&(this.isSearching=!1)}}emitSelection(e){this.arcgisSelectionChange.emit(e),this.mode==="popover"&&this.togglePicker(!1)}getFocusableResults(){let e=Array.from(this.renderRoot.querySelector('slot[name="list-start"]')?.assignedElements({flatten:!0})??[]).filter(s=>s instanceof HTMLElement&&(s.tagName==="CALCITE-LIST-ITEM"||s.tabIndex>=0)),t=Array.from(this.renderRoot.querySelectorAll("calcite-list-item, arcgis-portal-group-card, arcgis-portal-item-card"));return[...e,...t]}async focusResult(e){if(e.tagName==="CALCITE-LIST-ITEM"){await e.setFocus();return}if(e.tagName==="ARCGIS-PORTAL-GROUP-CARD"){await e.restoreFocus();return}if(e.tagName==="ARCGIS-PORTAL-ITEM-CARD"){await e.restoreFocus();return}e.focus()}async focusResultAt(e){let t=this.getFocusableResults();if(!t.length)return;let s=(e+t.length)%t.length;await this.focusResult(t[s])}handleResultsKeyDown(e){let t=this.getFocusableResults(),s=e.composedPath(),i=t.findIndex(r=>s.includes(r));if(i===-1)return;if(this.mode==="inline"&&(e.key==="ArrowDown"||e.key==="ArrowUp")){e.preventDefault(),this.focusResultAt(i+(e.key==="ArrowDown"?1:-1));return}let l=t[i];if(l.tagName==="ARCGIS-PORTAL-GROUP-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{group:r}=l;this.emitSelection({entityType:"group",entity:r});return}if(l.tagName==="ARCGIS-PORTAL-ITEM-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{item:r}=l;this.emitSelection({entityType:"item",entity:r})}}renderGroup(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.owner,e.access].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"group",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineGroup(e){return c(e.id,n`<arcgis-portal-group-card .group=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=compact></arcgis-portal-group-card>`)}renderItem(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.type,e.owner].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"item",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineItem(e){return c(e.id,n`<arcgis-portal-item-card .item=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=list></arcgis-portal-item-card>`)}renderUser(e){return c(e.username,n`<calcite-list-item .label=${e.fullName||e.username} .description=${e.username} .selected=${this.selected?.entityType==="user"&&this.selected.entity.username===e.username} @calciteListItemSelect=${()=>this.emitSelection({entityType:"user",entity:e})}><arcgis-portal-user-avatar slot=content-start .portal=${this.portal} .user=${e} scale=m></arcgis-portal-user-avatar></calcite-list-item>`)}renderSearchResults(){let{entityType:e,isSearching:t,searchFailed:s,searchResult:i,searchTerm:l,_messages:r}=this;if(!l.trim())return null;if(t)return n`<div role=status><calcite-loader .label=${r.searching} scale=s></calcite-loader></div>`;if(s)return n`<p class="entity-picker__status" role=alert>${r.searchFailed}</p>`;if(!(i?.result.results??[]).length){let a=e==="group"?r.noGroupsFound:e==="item"?r.noItemsFound:r.noUsersFound;return n`<p class="entity-picker__status" role=status>${a}</p>`}return this.mode==="inline"&&i?.entityType==="group"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineGroup(a))}</div>`:this.mode==="inline"&&i?.entityType==="item"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineItem(a))}</div>`:n`<calcite-list interaction-mode=interactive .label=${this.searchLabel} selection-mode=none><slot name=list-start></slot>${i?.entityType==="group"?i.result.results.map(a=>this.renderGroup(a)):i?.entityType==="item"?i.result.results.map(a=>this.renderItem(a)):i?.result.results.map(a=>this.renderUser(a))}</calcite-list>`}renderPicker(e=!0){return n`<div class="entity-picker">${this.selectedLabel&&n`<div class="entity-picker__selection"><span class="entity-picker__selection-label">${this.selectedLabel}</span><calcite-button appearance=transparent icon-start=x kind=neutral .label=${this._messages.clearSelection} @click=${()=>this.arcgisSelectionChange.emit(null)} scale=s></calcite-button></div>`||""}<div class="entity-picker__input" ${u(this.inputContainerRef)}><calcite-input .icon=${this.icon} .label=${this.searchLabel} .placeholder=${this.searchLabel} .value=${this.searchTerm} @click=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @keydown=${t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&this.searchResult?.result.results.length&&(t.preventDefault(),this.focusResultAt(t.key==="ArrowDown"?0:-1))}} @focus=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @calciteInputInput=${t=>{this.searchTerm=t.target.value,this.scheduleSearch(this.searchTerm)}} ${u(this.inputRef)}></calcite-input></div>${e&&n`<div class="entity-picker__results" @keydown=${this.handleResultsKeyDown}>${this.renderSearchResults()}</div>`||""}</div>`}render(){return this.mode==="inline"?this.renderPicker():n`${this.renderPicker(!1)}<calcite-popover .label=${this.searchLabel} .open=${this.popoverOpen} placement=bottom-start .referenceElement=${this.inputContainerRef.value} trigger-disabled @calcitePopoverClose=${e=>{!e.target.open&&this.popoverOpen&&(this.popoverOpen=!1,requestAnimationFrame(()=>{this.setFocus()}))}}><div class="entity-picker__results" style=${f({inlineSize:this.popoverWidth?`${this.popoverWidth}px`:void 0})}>${this.renderSearchResults()}</div></calcite-popover>`}};g("arcgis-portal-entity-picker",d);return d},a)
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{c as R}from"./QDWOQBO3.js";import{a as k}from"./25XJ66JO.js";import{a as c}from"./OV5O7YP4.js";import a from"./OUFIJDIW.js";import{a as $}from"./VMQIDO4Z.js";import{a as b}from"./XUPYBBRI.js";import{J as p,K as u,L as v,N as f,R as g,h as m,j as n,w as y}from"./CWSEBETE.js";export default $arcgis.t(([{b:T}])=>{var I=["esri_livingatlas","esri_boundaries","esri_demographics","esri_nav","esri_webstyles"];function S(o){return k(o.trim()).replace(/[!*+\-&|()[\]{}^~?:"\\]/gu,"\\$&")}async function _({portal:o,searchTerm:e,num:t=100,query:s}){let i=S(e),l=`${$(o)}portals/self/users/search`,r=[i?`(${i})`:void 0,s?.trim()?`(${s.trim()})`:void 0];o.isPortal&&r.push(...I.map(h=>`-username:${h}`));let a=l.includes("www.arcgis.com")&&o.isPortal?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await T({url:l,portal:o,params:{num:Math.min(Math.max(t,1),100),q:r.filter(Boolean).join(" AND "),sortField:"relevance"},options:a})}function A(...o){return o.map(e=>e?.trim()).filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}async function O(o,e,t,s={}){let i=Math.min(Math.max(s.num??10,1),100);if(e==="user")try{return{result:{entityType:e,result:await _({portal:o,searchTerm:t,num:i,query:s.query})}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}let l=R(t);if(!l)return{};let r={num:i,query:A(l,s.query)};try{return e==="group"?{result:{entityType:e,result:await o.queryGroups(r)}}:{result:{entityType:e,result:await o.queryItems(r)}}}catch(a){return console.error(a),{error:{code:"unhandledError"}}}}var C=m`:host{display:block;inline-size:100%}.entity-picker{display:flex;flex-direction:column;gap:.5rem;min-inline-size:16rem}.entity-picker__results{max-block-size:22rem;overflow-y:auto}.entity-picker__cards{display:flex;flex-direction:column;gap:.5rem}.entity-picker__status{color:var(--calcite-color-text-3);font-size:.875rem;margin:0;padding:.75rem}.entity-picker__selection{align-items:center;display:flex;gap:.5rem}.entity-picker__selection-label{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-picker__input{inline-size:100%}`,d=class extends v{constructor(){super(...arguments),this._messages=b({blocking:!0,name:"portal-entity-picker"}),this.inputRef=p(),this.inputContainerRef=p(),this.resizeObserver=null,this.searchId=0,this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.popoverOpen=!1,this.popoverWidth=0,this.entityType="group",this.mode="inline",this.selected=null,this.num=10,this.arcgisSelectionChange=y()}static{this.properties={searchTerm:16,isSearching:16,searchFailed:16,searchResult:16,popoverOpen:16,popoverWidth:16,portal:0,entityType:1,mode:1,selected:0,query:1,num:9,icon:1,messageOverrides:0}}static{this.styles=C}get searchLabel(){let{entityType:e,_messages:t}=this;return e==="group"?t.searchGroups:e==="item"?t.searchItems:t.searchUsers}get selectedLabel(){let{entityType:e,selected:t}=this;if(t?.entityType===e)return t.entityType==="user"?t.entity.fullName||t.entity.username:t.entity.title||t.entity.id||void 0}async togglePicker(e){this.mode==="popover"&&(this.popoverOpen=e,await this.updateComplete,await this.setFocus())}async setFocus(){await this.inputRef.value?.setFocus()}firstUpdated(){this.updatePopoverWidth(),!(typeof ResizeObserver>"u"||!this.inputContainerRef.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updatePopoverWidth()),this.resizeObserver.observe(this.inputContainerRef.value))}willUpdate(e){(e.has("portal")||e.has("entityType")||e.has("query")||e.has("num"))&&this.resetSearch(),e.has("mode")&&this.mode==="inline"&&(this.popoverOpen=!1)}disconnectedCallback(){this.cancelPendingSearch(),this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updatePopoverWidth(){requestAnimationFrame(()=>{this.popoverWidth=this.inputContainerRef.value?.offsetWidth??0})}cancelPendingSearch(){return this.debounceId!==void 0&&(window.clearTimeout(this.debounceId),this.debounceId=void 0),this.searchId+=1,this.searchId}resetSearch(){this.cancelPendingSearch(),this.searchTerm="",this.isSearching=!1,this.searchFailed=!1,this.searchResult=void 0,this.popoverOpen=!1}scheduleSearch(e){let t=e.trim(),s=this.cancelPendingSearch();if(this.searchFailed=!1,this.searchResult=void 0,!t){this.isSearching=!1,this.popoverOpen=!1;return}this.isSearching=!0,this.mode==="popover"&&(this.popoverOpen=!0),this.debounceId=window.setTimeout(()=>{this.debounceId=void 0,this.search(t,s)},400)}async search(e,t){let{entityType:s,num:i,portal:l,query:r}=this;try{let{error:a,result:h}=await O(l,s,e,{num:i,query:r});if(t!==this.searchId)return;this.searchFailed=!!a,this.searchResult=h}catch{if(t!==this.searchId)return;this.searchFailed=!0,this.searchResult=void 0}finally{t===this.searchId&&(this.isSearching=!1)}}emitSelection(e){this.arcgisSelectionChange.emit(e),this.mode==="popover"&&this.togglePicker(!1)}getFocusableResults(){let e=Array.from(this.renderRoot.querySelector('slot[name="list-start"]')?.assignedElements({flatten:!0})??[]).filter(s=>s instanceof HTMLElement&&(s.tagName==="CALCITE-LIST-ITEM"||s.tabIndex>=0)),t=Array.from(this.renderRoot.querySelectorAll("calcite-list-item, arcgis-portal-group-card, arcgis-portal-item-card"));return[...e,...t]}async focusResult(e){if(e.tagName==="CALCITE-LIST-ITEM"){await e.setFocus();return}if(e.tagName==="ARCGIS-PORTAL-GROUP-CARD"){await e.restoreFocus();return}if(e.tagName==="ARCGIS-PORTAL-ITEM-CARD"){await e.restoreFocus();return}e.focus()}async focusResultAt(e){let t=this.getFocusableResults();if(!t.length)return;let s=(e+t.length)%t.length;await this.focusResult(t[s])}handleResultsKeyDown(e){let t=this.getFocusableResults(),s=e.composedPath(),i=t.findIndex(r=>s.includes(r));if(i===-1)return;if(this.mode==="inline"&&(e.key==="ArrowDown"||e.key==="ArrowUp")){e.preventDefault(),this.focusResultAt(i+(e.key==="ArrowDown"?1:-1));return}let l=t[i];if(l.tagName==="ARCGIS-PORTAL-GROUP-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{group:r}=l;this.emitSelection({entityType:"group",entity:r});return}if(l.tagName==="ARCGIS-PORTAL-ITEM-CARD"&&(e.key==="Enter"||e.key===" ")){e.preventDefault();let{item:r}=l;this.emitSelection({entityType:"item",entity:r})}}renderGroup(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.owner,e.access].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"group",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineGroup(e){return c(e.id,n`<arcgis-portal-group-card .group=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="group"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=compact></arcgis-portal-group-card>`)}renderItem(e){return c(e.id,n`<calcite-list-item .label=${e.title||e.id||""} .description=${[e.type,e.owner].filter(Boolean).join(" \xB7 ")} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} @calciteListItemSelect=${()=>this.emitSelection({entityType:"item",entity:e})}><calcite-avatar slot=content-start .fullName=${e.title??void 0} .thumbnail=${e.thumbnailUrl??void 0} scale=m></calcite-avatar></calcite-list-item>`)}renderInlineItem(e){return c(e.id,n`<arcgis-portal-item-card .item=${e} .portal=${this.portal} .selected=${this.selected?.entityType==="item"&&this.selected.entity.id===e.id} selection=none show-summary .user=${this.portal.user??void 0} view=list></arcgis-portal-item-card>`)}renderUser(e){return c(e.username,n`<calcite-list-item .label=${e.fullName||e.username} .description=${e.username} .selected=${this.selected?.entityType==="user"&&this.selected.entity.username===e.username} @calciteListItemSelect=${()=>this.emitSelection({entityType:"user",entity:e})}><arcgis-portal-user-avatar slot=content-start .portal=${this.portal} .user=${e} scale=m></arcgis-portal-user-avatar></calcite-list-item>`)}renderSearchResults(){let{entityType:e,isSearching:t,searchFailed:s,searchResult:i,searchTerm:l,_messages:r}=this;if(!l.trim())return null;if(t)return n`<div role=status><calcite-loader .label=${r.searching} scale=s></calcite-loader></div>`;if(s)return n`<p class="entity-picker__status" role=alert>${r.searchFailed}</p>`;if(!(i?.result.results??[]).length){let a=e==="group"?r.noGroupsFound:e==="item"?r.noItemsFound:r.noUsersFound;return n`<p class="entity-picker__status" role=status>${a}</p>`}return this.mode==="inline"&&i?.entityType==="group"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineGroup(a))}</div>`:this.mode==="inline"&&i?.entityType==="item"?n`<div class="entity-picker__cards"><slot name=list-start></slot>${i.result.results.map(a=>this.renderInlineItem(a))}</div>`:n`<calcite-list interaction-mode=interactive .label=${this.searchLabel} selection-mode=none><slot name=list-start></slot>${i?.entityType==="group"?i.result.results.map(a=>this.renderGroup(a)):i?.entityType==="item"?i.result.results.map(a=>this.renderItem(a)):i?.result.results.map(a=>this.renderUser(a))}</calcite-list>`}renderPicker(e=!0){return n`<div class="entity-picker">${this.selectedLabel&&n`<div class="entity-picker__selection"><span class="entity-picker__selection-label">${this.selectedLabel}</span><calcite-button appearance=transparent icon-start=x kind=neutral .label=${this._messages.clearSelection} @click=${()=>this.arcgisSelectionChange.emit(null)} scale=s></calcite-button></div>`||""}<div class="entity-picker__input" ${u(this.inputContainerRef)}><calcite-input .icon=${this.icon} .label=${this.searchLabel} .placeholder=${this.searchLabel} .value=${this.searchTerm} @click=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @keydown=${t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&this.searchResult?.result.results.length&&(t.preventDefault(),this.focusResultAt(t.key==="ArrowDown"?0:-1))}} @focus=${()=>{this.mode==="popover"&&this.searchTerm.trim()&&(this.popoverOpen=!0)}} @calciteInputInput=${t=>{this.searchTerm=t.target.value,this.scheduleSearch(this.searchTerm)}} ${u(this.inputRef)}></calcite-input></div>${e&&n`<div class="entity-picker__results" @keydown=${this.handleResultsKeyDown}>${this.renderSearchResults()}</div>`||""}</div>`}render(){return this.mode==="inline"?this.renderPicker():n`${this.renderPicker(!1)}<calcite-popover .label=${this.searchLabel} .open=${this.popoverOpen} placement=bottom-start .referenceElement=${this.inputContainerRef.value} trigger-disabled @calcitePopoverClose=${e=>{!e.target.open&&this.popoverOpen&&(this.popoverOpen=!1,requestAnimationFrame(()=>{this.setFocus()}))}}><div class="entity-picker__results" style=${f({inlineSize:this.popoverWidth?`${this.popoverWidth}px`:void 0})}>${this.renderSearchResults()}</div></calcite-popover>`}};g("arcgis-portal-entity-picker",d);return d},a)
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  export default $arcgis.t(([c,{once:m}])=>{async function j(a,r){let e=`${a}/portals/self/classification/classificationSchema`,n={};try{let t=(await c(e,{query:{f:"json"},signal:r})).data;if(typeof t=="object"&&t!==null&&"classificationSchema"in t)n.result=t.classificationSchema;else throw new Error("Invalid response format received from the classification schema endpoint")}catch(t){n.error=t}return n}async function S(a,r,e){let n=`${a}/portals/self/classification/validateClassification`,t={classificationValue:JSON.stringify(r),f:"json"},o={};try{let s=await c(n,{query:t,method:"post",signal:e.signal});o.result=s.data}catch(s){console.error(s),o.error=s}return o}async function g(a){if(!a)return;a.loaded||await a.load();let r=a.portal.user??await m(()=>a?.portal.user);if(!r)return;let e=`${a.portal.restUrl}/community/users/${r.username}/resources/classification_favorites`,n={};try{let t=await c(e,{query:{f:"json"}});n.result=t.data}catch(t){console.error(t),n.error=t}return n}async function $(a,r){if(!a)return;a.loaded||await a.load();let e=a.portal.user??await m(()=>a?.portal.user);if(!e)return;let n=`${a.portal.restUrl}/community/users/${e.username}/addResource`,t={},o={f:"json",key:"classification_favorites",text:JSON.stringify({favorites:r}),access:"UserPrivateAllApps"};try{let s=await c(n,{query:o,method:"post"});t.result=s.data.success}catch(s){console.error(s),t.error=s}return t}function q(a){return{error:{code:a||"unhandledError"}}}async function y(a,r){r=r||{},r.query=r.query||{},r.query instanceof URLSearchParams||(r.query={f:"json",...r.query||{}});try{return{result:(await c(a,r)).data}}catch{return q()}}async function U(a,r={}){r.query=r.query||{},r.query instanceof URLSearchParams||(r.query={f:"json",...r.query||{}});try{return{success:!0,...await c(a,r)}}catch(e){return{success:!1,error:e}}}async function x(a,r,e="results",n=!1){let t=[],o;r.start=1,r.num||(r.num=100);let{result:s}=await y(a,{query:r}),f=s?.[e];if(!f)return[];t=[...t,...f];let d=s.nextStart,h=s.total-t.length,p=Math.ceil(h/r.num),u=[];for(o=0;o<p;o++)r.start=d+o*r.num,u.push(y(a,{query:{...r}}));if(n){for(let l of u){let i=await l;i.result?.[e]&&(t=[...t,...i.result[e]])}return t}return(await Promise.all(u)).forEach(l=>{let i=l.result?.[e]||[];t=[...t,...i]}),t}return{a:j,b:S,c:g,d:$,e:y,f:U,g:x}},"request","core/reactiveUtils")
@@ -1,2 +1,2 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{e as f}from"./VDXESPJK.js";import{a as m}from"./TWCJJCPC.js";import{a as b}from"./7ZWYUHGK.js";import{L as p,R as u,h,j as i,w as r}from"./AICPYLWE.js";var g={sm:640,md:768,lg:1024};var w=h`:host{display:flex;align-items:center}.status-list{display:flex;align-items:center;max-width:100%}.status-chip{max-width:100%;--calcite-color-foreground-2: var(--calcite-color-foreground-1)}.chip-group{max-width:100%;min-width:0}.status-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-content{max-width:28rem;padding:.75rem}.clear-button{margin-inline-start:.25rem}`,o=class extends p{constructor(){super(...arguments),this._messages=b({name:"portal-browser",blocking:!0}),this.inBounds=[],this.outOfBounds=[],this.filters={},this.hiddenFilterIds=[],this.arcgisBrowserFilterClear=r(),this.arcgisBrowserFilterRemove=r()}static{this.properties={inBounds:16,outOfBounds:16,filters:0,hiddenFilterIds:0,componentWidth:9,browserWidth:9}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.processValidFilters()}willUpdate(t){(t.has("filters")||t.has("hiddenFilterIds")||t.has("componentWidth")||t.has("browserWidth"))&&this.processValidFilters()}isFilterValid(t){return this.hiddenFilterIds.includes(t.id)?!1:t.id==="collaborations"&&"additionalParams"in t?!!(t.additionalParams&&t.label):!!(t.value&&t.label)}processValidFilters(){let t=Object.values(this.filters).filter(this.isFilterValid.bind(this)),s=this.componentWidth??0;if((this.browserWidth??s??window.innerWidth)<g.sm){this.inBounds=t,this.outOfBounds=[];return}let a=Math.max(s-460,0),e=0,n=[],c=[];t.forEach(l=>{let d=f({text:l.label});!s||e+d<=a?(n.push(l),e+=d):c.push(l)}),this.inBounds=n,this.outOfBounds=c}renderChip(t){return m(t.id,i`<calcite-chip class="status-chip" scale=s .label=${t.label} .value=${t.id} closable appearance=outline @calciteChipClose=${()=>{this.arcgisBrowserFilterRemove.emit(t.id)}}><span class="status-chip__label">${t.label}</span></calcite-chip>`)}render(){let t=this._messages.filterStatus,s=this.outOfBounds.length>0,a=this.inBounds.length+this.outOfBounds.length;return a?i`<div class="status-list"><calcite-chip-group class="chip-group" .label=${t.filters} scale=s>${this.inBounds.map(e=>this.renderChip(e))}${s&&i`<calcite-button id=popover-button round kind=neutral appearance=outline scale=s>+ ${this.outOfBounds.length}</calcite-button>`||""}</calcite-chip-group>${s&&i`<calcite-popover .label=${t.additional} reference-element=popover-button placement=bottom-end><div class="popover-content"><calcite-chip-group .label=${t.additional} scale=s>${this.outOfBounds.map(e=>this.renderChip(e))}</calcite-chip-group></div></calcite-popover>`||""}${a>1&&i`<calcite-button class="clear-button" scale=s appearance=transparent kind=brand @click=${()=>this.arcgisBrowserFilterClear.emit(null)}>${t.clearAllFilters}</calcite-button>`||""}</div>`:null}};u("arcgis-portal-browser-filter-status",o);export{g as a,o as b};
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{e as f}from"./25XJ66JO.js";import{a as m}from"./OV5O7YP4.js";import{a as b}from"./XUPYBBRI.js";import{L as p,R as u,h,j as i,w as r}from"./CWSEBETE.js";var g={sm:640,md:768,lg:1024};var w=h`:host{display:flex;align-items:center}.status-list{display:flex;align-items:center;max-width:100%}.status-chip{max-width:100%;--calcite-color-foreground-2: var(--calcite-color-foreground-1)}.chip-group{max-width:100%;min-width:0}.status-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-content{max-width:28rem;padding:.75rem}.clear-button{margin-inline-start:.25rem}`,o=class extends p{constructor(){super(...arguments),this._messages=b({name:"portal-browser",blocking:!0}),this.inBounds=[],this.outOfBounds=[],this.filters={},this.hiddenFilterIds=[],this.arcgisBrowserFilterClear=r(),this.arcgisBrowserFilterRemove=r()}static{this.properties={inBounds:16,outOfBounds:16,filters:0,hiddenFilterIds:0,componentWidth:9,browserWidth:9}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.processValidFilters()}willUpdate(t){(t.has("filters")||t.has("hiddenFilterIds")||t.has("componentWidth")||t.has("browserWidth"))&&this.processValidFilters()}isFilterValid(t){return this.hiddenFilterIds.includes(t.id)?!1:t.id==="collaborations"&&"additionalParams"in t?!!(t.additionalParams&&t.label):!!(t.value&&t.label)}processValidFilters(){let t=Object.values(this.filters).filter(this.isFilterValid.bind(this)),s=this.componentWidth??0;if((this.browserWidth??s??window.innerWidth)<g.sm){this.inBounds=t,this.outOfBounds=[];return}let a=Math.max(s-460,0),e=0,n=[],c=[];t.forEach(l=>{let d=f({text:l.label});!s||e+d<=a?(n.push(l),e+=d):c.push(l)}),this.inBounds=n,this.outOfBounds=c}renderChip(t){return m(t.id,i`<calcite-chip class="status-chip" scale=s .label=${t.label} .value=${t.id} closable appearance=outline @calciteChipClose=${()=>{this.arcgisBrowserFilterRemove.emit(t.id)}}><span class="status-chip__label">${t.label}</span></calcite-chip>`)}render(){let t=this._messages.filterStatus,s=this.outOfBounds.length>0,a=this.inBounds.length+this.outOfBounds.length;return a?i`<div class="status-list"><calcite-chip-group class="chip-group" .label=${t.filters} scale=s>${this.inBounds.map(e=>this.renderChip(e))}${s&&i`<calcite-button id=popover-button round kind=neutral appearance=outline scale=s>+ ${this.outOfBounds.length}</calcite-button>`||""}</calcite-chip-group>${s&&i`<calcite-popover .label=${t.additional} reference-element=popover-button placement=bottom-end><div class="popover-content"><calcite-chip-group .label=${t.additional} scale=s>${this.outOfBounds.map(e=>this.renderChip(e))}</calcite-chip-group></div></calcite-popover>`||""}${a>1&&i`<calcite-button class="clear-button" scale=s appearance=transparent kind=brand @click=${()=>this.arcgisBrowserFilterClear.emit(null)}>${t.clearAllFilters}</calcite-button>`||""}</div>`:null}};u("arcgis-portal-browser-filter-status",o);export{g as a,o as b};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./SG7Z5VLB.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{ka as t}from"./FTKD53UG.js";import"./XOFCMJBQ.js";import c from"./B3NVWHCS.js";import{b as a}from"./YUQFNMEZ.js";import b from"./SG7Z5VLB.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([r,{b:i}])=>{var p=async(o={})=>{let{tier:e="default",config:m}=o,n=a[e],c=await i(e);return new t({modelName:n,apiKey:"dummy-key",configuration:{baseURL:c,fetch:await r({config:m})},batchSize:2048,maxConcurrency:10})};return p},b,c)
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as ue}from"./IN4JPZTY.js";import{a as he}from"./DAAON2UO.js";import{a as ce}from"./EMJQI4MA.js";import{a as pe}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as ae,R as oe,h as le,j as T,w as F}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var z=J();function Re(n){z=n}var A={exec:()=>null};function I(n){let e=[];return t=>{let s=Math.max(0,Math.min(3,t-1)),r=e[s];return r||(r=n(s),e[s]=r),r}}function u(n,e=""){let t=typeof n=="string"?n:n.source,s={replace:(r,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(b.caret,"$1"),t=t.replace(r,a),s},getRegex:()=>new RegExp(t,e)};return s}var qe=((n="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+n)}catch{return!1}})(),b={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:I(n=>new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:I(n=>new RegExp(`^ {0,${n}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:I(n=>new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)),headingBeginRegex:I(n=>new RegExp(`^ {0,${n}}#`)),htmlBeginRegex:I(n=>new RegExp(`^ {0,${n}}(?:</?(?:${D})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:I(n=>new RegExp(`^ {0,${n}}>`))},Ze=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Me=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Z=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,K=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Te=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=u(Te).replace(/bull/g,K).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Oe=u(Te).replace(/bull/g,K).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),V=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,je=/^[^\n]+/,Y=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,He=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Y).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ne=u(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,K).getRegex(),D="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ge=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ee).replace("tag",D).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=n=>u(V).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",n).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),Fe=_e(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Xe=_e(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ue=u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),te={blockquote:Ue,code:De,def:He,fences:Me,heading:Qe,hr:Z,html:Ge,lheading:Ae,list:Ne,newline:Ze,paragraph:Fe,table:A,text:je},ge=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),We={...te,lheading:Oe,table:ge,paragraph:u(V).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ge).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex()},Je={...te,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ee).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(V).replace("hr",Z).replace("heading",` *#{1,6} *[^
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as ue}from"./OQGUCK3G.js";import{a as he}from"./5YDITHQA.js";import{a as ce}from"./2GBRZSEC.js";import{a as pe}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{L as ae,R as oe,h as le,j as T,w as F}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var z=J();function Re(n){z=n}var A={exec:()=>null};function I(n){let e=[];return t=>{let s=Math.max(0,Math.min(3,t-1)),r=e[s];return r||(r=n(s),e[s]=r),r}}function u(n,e=""){let t=typeof n=="string"?n:n.source,s={replace:(r,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(b.caret,"$1"),t=t.replace(r,a),s},getRegex:()=>new RegExp(t,e)};return s}var qe=((n="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+n)}catch{return!1}})(),b={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:I(n=>new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:I(n=>new RegExp(`^ {0,${n}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:I(n=>new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)),headingBeginRegex:I(n=>new RegExp(`^ {0,${n}}#`)),htmlBeginRegex:I(n=>new RegExp(`^ {0,${n}}(?:</?(?:${D})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:I(n=>new RegExp(`^ {0,${n}}>`))},Ze=/^(?:[ \t]*(?:\n|$))+/,De=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Me=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Z=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,K=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Te=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=u(Te).replace(/bull/g,K).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Oe=u(Te).replace(/bull/g,K).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),V=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,je=/^[^\n]+/,Y=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,He=u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Y).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ne=u(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,K).getRegex(),D="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ge=u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ee).replace("tag",D).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=n=>u(V).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",n).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),Fe=_e(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Xe=_e(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Ue=u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),te={blockquote:Ue,code:De,def:He,fences:Me,heading:Qe,hr:Z,html:Ge,lheading:Ae,list:Ne,newline:Ze,paragraph:Fe,table:A,text:je},ge=u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),We={...te,lheading:Oe,table:ge,paragraph:u(V).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ge).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex()},Je={...te,html:u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ee).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:u(V).replace("hr",Z).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ke=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ze=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Ye=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,y=/[\p{P}\p{S}]/u,L=/[\s\p{P}\p{S}]/u,M=/[^\s\p{P}\p{S}]/u,et=u(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),tt=/[\p{Pi}\p{Ps}"']/u,Pe=/(?!~)[\p{P}\p{S}]/u,rt=/(?!~)[\s\p{P}\p{S}]/u,nt=/(?:[^\s\p{P}\p{S}]|~)/u,st=u(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",qe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ie=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,it=u(Ie,"u").replace(/punct/g,y).getRegex(),lt=u(Ie,"u").replace(/punct/g,Pe).getRegex(),at=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,ot=u(at,"u").replace(/openQuote/g,tt).replace(/punct/g,y).getRegex(),Le="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ct=u(Le,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),pt=u(Le,"gu").replace(/notPunctSpace/g,nt).replace(/punctSpace/g,rt).replace(/punct/g,Pe).getRegex(),ht="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ut=u(ht,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),gt=u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),kt="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",dt=u(kt,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),ft=u(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,y).getRegex(),xt="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",bt=u(xt,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,y).getRegex(),mt=u(/\\(punct)/,"gu").replace(/punct/g,y).getRegex(),wt=u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),$t=u(ee).replace("(?:-->|$)","-->").getRegex(),St=u("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",$t).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ve=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,O=u(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",ve).getRegex(),yt=u(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",O).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rt=u(/^!?\[(label)\]\[(ref)\]/).replace("label",O).replace("ref",Y).getRegex(),Tt=u(/^!?\[(ref)\](?:\[\])?/).replace("ref",Y).getRegex(),ke=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,At=u(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",ve).getRegex(),_t=u("reflink|nolink(?!\\()","g").replace("reflink",u(/^!?\[(label)\]\[(ref)\]/).replace("label",At).replace("ref",ke).getRegex()).replace("nolink",u(/^!?\[(ref)\](?:\[\])?/).replace("ref",ke).getRegex()).getRegex(),de=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,zt=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Pt=u(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,zt).getRegex(),re={_backpedal:A,anyPunctuation:mt,autolink:wt,blockSkip:st,br:ze,code:Ve,del:A,delLDelim:A,delRDelim:A,emStrongLDelim:it,emStrongRDelimAst:ct,emStrongRDelimUnd:gt,escape:Ke,link:yt,nolink:Tt,punctuation:et,reflink:Rt,reflinkSearch:_t,tag:St,text:Ye,url:A},It={...re,emStrongLDelim:ot,emStrongRDelimAst:ut,emStrongRDelimUnd:dt,link:u(/^!?\[(label)\]\((.*?)\)/).replace("label",O).getRegex(),reflink:u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",O).getRegex()},X={...re,emStrongRDelimAst:pt,emStrongLDelim:lt,delLDelim:ft,delRDelim:bt,url:u(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Pt).replace("protocol",de).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:u(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",de).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Lt={...X,br:u(ze).replace("{2,}","*").getRegex(),text:u(X.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:te,gfm:We,pedantic:Je},B={normal:re,gfm:X,breaks:Lt,pedantic:It},vt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fe=n=>vt[n];function w(n,e){if(e){if(b.escapeTest.test(n))return n.replace(b.escapeReplace,fe)}else if(b.escapeTestNoEncode.test(n))return n.replace(b.escapeReplaceNoEncode,fe);return n}function Ct(n){return n.replace(b.numericCharacterReference,(e,t,s)=>{let r=t===void 0?Number.parseInt(s,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}function xe(n){try{n=encodeURI(n).replace(b.percentDecode,"%")}catch{return null}return n}function be(n,e){let t=n.replace(b.findPipe,(i,a,l)=>{let c=!1,o=a;for(;--o>=0&&l[o]==="\\";)c=!c;return c?"|":" |"}),s=t.split(b.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(b.slashPipe,"|");return s}function R(n,e,t){let s=n.length;if(s===0)return"";let r=0;for(;r<s;){let i=n.charAt(s-r-1);if(i===e&&!t)r++;else if(i!==e&&t)r++;else break}return n.slice(0,s-r)}function me(n){let e=n.split(`
4
4
  `),t=e.length-1;for(;t>=0&&b.blankLine.test(e[t]);)t--;return e.length-t<=2?n:e.slice(0,t+1).join(`
5
5
  `)}function j(n){return n.trim().toLowerCase().toUpperCase().toLowerCase()}function we(n,e){if(n.indexOf(e[0])===-1&&n.indexOf(e[1])===-1)return-1;let t=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])t++;else if(n[s]===e[1]&&(t--,t<0))return s;return t>0?-2:-1}function $e(n,e=0){let t=e,s="";for(let r of n)if(r===" "){let i=4-t%4;s+=" ".repeat(i),t+=i}else s+=r,t++;return s}function Se(n,e,t,s,r){let i=e.href,a=e.title||null,l=n[1].replace(r.other.outputLinkReplace,"$1"),c=n[0].charAt(0)==="!";s.state.inLink=!0;let o=s.state.linkEmitted,p=s.state.inRawBlock;s.state.linkEmitted=!1;let h=s.inlineTokens(l),x=s.state.linkEmitted;if(s.state.linkEmitted=o,s.state.inLink=!1,!c){if(x){s.state.inRawBlock=p;return}s.state.linkEmitted=!0}return{type:c?"image":"link",raw:t,href:i,title:a,text:l,tokens:h}}function Et(n,e,t){let s=n.match(t.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
@@ -1,5 +1,5 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{$ as UA,$a as Ui,A as kA,Aa as hp,B as AA,Ba as xo,C as fp,Ca as gp,D as qc,Da as yp,E as Jc,Ea as XA,F as _s,Fa as GA,G as IA,Ga as Mi,H as $A,Ha as YA,I as SA,J as OA,Ja as _p,K as PA,Ka as QA,L as TA,M as EA,Ma as hC,N as RA,O as CA,P as zA,Pa as xs,Q as NA,R as Vr,Ra as vp,S as vs,U as mp,V as Ar,Va as bp,W as Ri,Wa as mn,X as jA,Y as DA,Ya as Qt,Z as MA,_ as bs,_a as Ct,a as oe,aa as ws,ab as Pe,ba as Ci,bb as De,c as yA,ca as Hc,cb as Ft,da as LA,ea as ZA,f as _A,fa as st,g as Vc,ga as wo,ha as Xc,ia as ut,ja as Un,ka as zi,la as FA,ma as BA,n as lp,na as Gc,oa as Ni,p as vA,pa as WA,q as yt,qa as KA,ra as pn,s as bA,sa as ji,t as pr,ta as VA,u as wA,ua as qA,v as cg,va as Yc,w as xA,wa as Di,x as ys,xa as fn,y as dp,ya as JA,z as pp,za as HA}from"./MLYQGIJU.js";import{a as gA,b as Kr,c as ug}from"./5PV2GUZW.js";var XS=gA(tm=>{"use strict";tm.byteLength=yD;tm.toByteArray=vD;tm.fromByteArray=xD;var Sn=[],Er=[],gD=typeof Uint8Array<"u"?Uint8Array:Array,rw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ha=0,JS=rw.length;ha<JS;++ha)Sn[ha]=rw[ha],Er[rw.charCodeAt(ha)]=ha;var ha,JS;Er[45]=62;Er[95]=63;function HS(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function yD(e){var t=HS(e),r=t[0],o=t[1];return(r+o)*3/4-o}function _D(e,t,r){return(t+r)*3/4-r}function vD(e){var t,r=HS(e),o=r[0],n=r[1],i=new gD(_D(e,o,n)),a=0,s=n>0?o-4:o,u;for(u=0;u<s;u+=4)t=Er[e.charCodeAt(u)]<<18|Er[e.charCodeAt(u+1)]<<12|Er[e.charCodeAt(u+2)]<<6|Er[e.charCodeAt(u+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return n===2&&(t=Er[e.charCodeAt(u)]<<2|Er[e.charCodeAt(u+1)]>>4,i[a++]=t&255),n===1&&(t=Er[e.charCodeAt(u)]<<10|Er[e.charCodeAt(u+1)]<<4|Er[e.charCodeAt(u+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function bD(e){return Sn[e>>18&63]+Sn[e>>12&63]+Sn[e>>6&63]+Sn[e&63]}function wD(e,t,r){for(var o,n=[],i=t;i<r;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),n.push(bD(o));return n.join("")}function xD(e){for(var t,r=e.length,o=r%3,n=[],i=16383,a=0,s=r-o;a<s;a+=i)n.push(wD(e,a,a+i>s?s:a+i));return o===1?(t=e[r-1],n.push(Sn[t>>2]+Sn[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],n.push(Sn[t>>10]+Sn[t>>4&63]+Sn[t<<2&63]+"=")),n.join("")}});var aP=gA((We,Vm)=>{"use strict";if(typeof Vm<"u"&&Vm!==globalThis.module&&typeof We<"u"&&Vm.exports===We){Object.defineProperty(We,"__esModule",{value:!0}),We.findX509Credential=We.rememberX509Credential=We.findX509OAuthError=We.rememberX509OAuthError=We.isApprovedX509Client=We.markApprovedX509Client=We.isRetryableX509IssuerError=We.markRetryableX509IssuerError=We.isTransientX509ConnectionError=We.markTransientX509ConnectionError=We.rememberRegisteredX509Transport=We.findRegisteredX509Transport=void 0;let e=new WeakMap,t=new WeakSet,r=new WeakSet,o=new WeakSet,n=new WeakMap,i=new WeakMap;We.findRegisteredX509Transport=WeakMap.prototype.get.bind(e),We.rememberRegisteredX509Transport=WeakMap.prototype.set.bind(e),We.markTransientX509ConnectionError=WeakSet.prototype.add.bind(t),We.isTransientX509ConnectionError=WeakSet.prototype.has.bind(t),We.markRetryableX509IssuerError=WeakSet.prototype.add.bind(r),We.isRetryableX509IssuerError=WeakSet.prototype.has.bind(r),We.markApprovedX509Client=WeakSet.prototype.add.bind(o),We.isApprovedX509Client=WeakSet.prototype.has.bind(o),We.rememberX509OAuthError=WeakMap.prototype.set.bind(n),We.findX509OAuthError=WeakMap.prototype.get.bind(n),We.rememberX509Credential=WeakMap.prototype.set.bind(i),We.findX509Credential=WeakMap.prototype.get.bind(i)}});async function fr(e,t){if(t===void 0)return e;let r;return Promise.race([e.catch(o=>{if(!t?.aborted)throw o}),new Promise((o,n)=>{r=()=>{n(ko(t))},t.addEventListener("abort",r,{once:!0}),t.aborted&&n(ko(t))})]).finally(()=>t.removeEventListener("abort",r))}function ko(e){return e?.reason instanceof Error?e.reason:typeof e?.reason=="string"?new Error(e.reason):new Error("Aborted")}var Bn={};Kr(Bn,{$ZodAny:()=>Qy,$ZodArray:()=>r_,$ZodAsyncError:()=>qr,$ZodBase64:()=>By,$ZodBase64URL:()=>Wy,$ZodBigInt:()=>Lp,$ZodBigIntFormat:()=>Hy,$ZodBoolean:()=>dl,$ZodCIDRv4:()=>Ly,$ZodCIDRv6:()=>Zy,$ZodCUID:()=>Oy,$ZodCUID2:()=>Py,$ZodCatch:()=>b_,$ZodCheck:()=>Ke,$ZodCheckBigIntFormat:()=>oy,$ZodCheckEndsWith:()=>gy,$ZodCheckGreaterThan:()=>zp,$ZodCheckIncludes:()=>my,$ZodCheckLengthEquals:()=>ly,$ZodCheckLessThan:()=>Cp,$ZodCheckLowerCase:()=>py,$ZodCheckMaxLength:()=>uy,$ZodCheckMaxSize:()=>iy,$ZodCheckMimeType:()=>_y,$ZodCheckMinLength:()=>cy,$ZodCheckMinSize:()=>ay,$ZodCheckMultipleOf:()=>ry,$ZodCheckNumberFormat:()=>ny,$ZodCheckOverwrite:()=>vy,$ZodCheckProperty:()=>yy,$ZodCheckRegex:()=>dy,$ZodCheckSizeEquals:()=>sy,$ZodCheckStartsWith:()=>hy,$ZodCheckStringFormat:()=>Ts,$ZodCheckUpperCase:()=>fy,$ZodCodec:()=>hl,$ZodCustom:()=>O_,$ZodCustomStringFormat:()=>qy,$ZodDate:()=>t_,$ZodDefault:()=>g_,$ZodDiscriminatedUnion:()=>i_,$ZodE164:()=>Ky,$ZodEmail:()=>Ay,$ZodEmoji:()=>$y,$ZodEncodeError:()=>Ao,$ZodEnum:()=>l_,$ZodError:()=>il,$ZodExactOptional:()=>m_,$ZodFile:()=>p_,$ZodFunction:()=>I_,$ZodGUID:()=>xy,$ZodIPv4:()=>Dy,$ZodIPv6:()=>My,$ZodISODate:()=>zy,$ZodISODateTime:()=>Cy,$ZodISODuration:()=>jy,$ZodISOTime:()=>Ny,$ZodIntersection:()=>a_,$ZodJWT:()=>Vy,$ZodKSUID:()=>Ry,$ZodLazy:()=>S_,$ZodLiteral:()=>d_,$ZodMAC:()=>Uy,$ZodMap:()=>u_,$ZodNaN:()=>w_,$ZodNanoID:()=>Sy,$ZodNever:()=>fl,$ZodNonOptional:()=>__,$ZodNull:()=>Yy,$ZodNullable:()=>h_,$ZodNumber:()=>Up,$ZodNumberFormat:()=>Jy,$ZodObject:()=>TI,$ZodObjectJIT:()=>n_,$ZodOptional:()=>Ki,$ZodPipe:()=>Fp,$ZodPrefault:()=>y_,$ZodPreprocess:()=>x_,$ZodPromise:()=>$_,$ZodReadonly:()=>k_,$ZodRealError:()=>tr,$ZodRecord:()=>s_,$ZodRegistry:()=>Vp,$ZodSet:()=>c_,$ZodString:()=>Wi,$ZodStringFormat:()=>Le,$ZodSuccess:()=>v_,$ZodSymbol:()=>Xy,$ZodTemplateLiteral:()=>A_,$ZodTransform:()=>f_,$ZodTuple:()=>Zp,$ZodType:()=>ye,$ZodULID:()=>Ty,$ZodURL:()=>Iy,$ZodUUID:()=>ky,$ZodUndefined:()=>Gy,$ZodUnion:()=>ml,$ZodUnknown:()=>pl,$ZodVoid:()=>e_,$ZodXID:()=>Ey,$ZodXor:()=>o_,$brand:()=>dg,$constructor:()=>P,$input:()=>T_,$output:()=>P_,Doc:()=>ll,JSONSchema:()=>R$,JSONSchemaGenerator:()=>xf,NEVER:()=>lg,TimePrecision:()=>z_,_any:()=>tv,_array:()=>av,_base64:()=>lf,_base64url:()=>df,_bigint:()=>J_,_boolean:()=>V_,_catch:()=>MN,_check:()=>E$,_cidrv4:()=>uf,_cidrv6:()=>cf,_coercedBigint:()=>H_,_coercedBoolean:()=>q_,_coercedDate:()=>ov,_coercedNumber:()=>L_,_coercedString:()=>R_,_cuid:()=>ef,_cuid2:()=>tf,_custom:()=>uv,_date:()=>nv,_decode:()=>Ap,_decodeAsync:()=>$p,_default:()=>NN,_discriminatedUnion:()=>kN,_e164:()=>pf,_email:()=>qp,_emoji:()=>Yp,_encode:()=>kp,_encodeAsync:()=>Ip,_endsWith:()=>Ms,_enum:()=>PN,_file:()=>sv,_float32:()=>F_,_float64:()=>B_,_gt:()=>yn,_gte:()=>Wt,_guid:()=>_l,_includes:()=>js,_int:()=>Z_,_int32:()=>W_,_int64:()=>X_,_intersection:()=>AN,_ipv4:()=>af,_ipv6:()=>sf,_isoDate:()=>j_,_isoDateTime:()=>N_,_isoDuration:()=>M_,_isoTime:()=>D_,_jwt:()=>ff,_ksuid:()=>of,_lazy:()=>FN,_length:()=>Ji,_literal:()=>EN,_lowercase:()=>zs,_lt:()=>gn,_lte:()=>hr,_mac:()=>C_,_map:()=>SN,_max:()=>hr,_maxLength:()=>qi,_maxSize:()=>To,_mime:()=>Us,_min:()=>Wt,_minLength:()=>Zn,_minSize:()=>_n,_multipleOf:()=>Po,_nan:()=>iv,_nanoid:()=>Qp,_nativeEnum:()=>TN,_negative:()=>hf,_never:()=>wl,_nonnegative:()=>yf,_nonoptional:()=>jN,_nonpositive:()=>gf,_normalize:()=>Ls,_null:()=>ev,_nullable:()=>zN,_number:()=>U_,_optional:()=>CN,_overwrite:()=>Jr,_parse:()=>$s,_parseAsync:()=>Ss,_pipe:()=>UN,_positive:()=>mf,_promise:()=>BN,_property:()=>_f,_readonly:()=>LN,_record:()=>$N,_refine:()=>cv,_regex:()=>Cs,_safeDecode:()=>Op,_safeDecodeAsync:()=>Tp,_safeEncode:()=>Sp,_safeEncodeAsync:()=>Pp,_safeParse:()=>Os,_safeParseAsync:()=>Ps,_set:()=>ON,_size:()=>Vi,_slugify:()=>Ws,_startsWith:()=>Ds,_string:()=>E_,_stringFormat:()=>Ks,_stringbool:()=>fv,_success:()=>DN,_superRefine:()=>lv,_symbol:()=>Y_,_templateLiteral:()=>ZN,_toLowerCase:()=>Fs,_toUpperCase:()=>Bs,_transform:()=>RN,_trim:()=>Zs,_tuple:()=>IN,_uint32:()=>K_,_uint64:()=>G_,_ulid:()=>rf,_undefined:()=>Q_,_union:()=>wN,_unknown:()=>bl,_uppercase:()=>Ns,_url:()=>vl,_uuid:()=>Jp,_uuidv4:()=>Hp,_uuidv6:()=>Xp,_uuidv7:()=>Gp,_void:()=>rv,_xid:()=>nf,_xor:()=>xN,clone:()=>Je,config:()=>tt,createStandardJSONSchemaMethod:()=>Vs,createToJSONSchemaMethod:()=>mv,decode:()=>BC,decodeAsync:()=>KC,describe:()=>dv,encode:()=>FC,encodeAsync:()=>WC,extractDefs:()=>Ro,finalize:()=>Co,flattenError:()=>al,formatError:()=>sl,globalConfig:()=>Li,globalRegistry:()=>je,initializeContext:()=>Eo,isValidBase64:()=>Fy,isValidBase64URL:()=>$I,isValidJWT:()=>SI,locales:()=>yl,meta:()=>pv,parse:()=>hn,parseAsync:()=>Fi,prettifyError:()=>Ag,process:()=>Me,regexes:()=>mr,registry:()=>Rs,safeDecode:()=>qC,safeDecodeAsync:()=>HC,safeEncode:()=>VC,safeEncodeAsync:()=>JC,safeParse:()=>Ig,safeParseAsync:()=>$g,toDotPath:()=>iI,toJSONSchema:()=>Fn,treeifyError:()=>kg,util:()=>L,version:()=>by});var eI,lg=Object.freeze({status:"aborted"});function P(e,t,r){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var u;let c=r?.Parent?new i:this;o(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var dg=Symbol("zod_brand"),qr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ao=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(eI=globalThis).__zod_globalConfig??(eI.__zod_globalConfig={});var Li=globalThis.__zod_globalConfig;function tt(e){return e&&Object.assign(Li,e),Li}var L={};Kr(L,{BIGINT_FORMAT_RANGES:()=>wg,Class:()=>fg,NUMBER_FORMAT_RANGES:()=>bg,aborted:()=>Oo,allowsEval:()=>gg,assert:()=>bC,assertEqual:()=>gC,assertIs:()=>_C,assertNever:()=>vC,assertNotEqual:()=>yC,assignProp:()=>$o,base64ToUint8Array:()=>rI,base64urlToUint8Array:()=>DC,cached:()=>As,captureStackTrace:()=>xp,cleanEnum:()=>jC,cleanRegex:()=>tl,clone:()=>Je,cloneDef:()=>xC,createTransparentProxy:()=>OC,defineLazy:()=>Ie,esc:()=>wp,escapeRegex:()=>Ir,explicitlyAborted:()=>xg,extend:()=>EC,finalizeIssue:()=>Bt,floatSafeRemainder:()=>mg,getElementAtPath:()=>kC,getEnumValues:()=>el,getLengthableOrigin:()=>ol,getParsedType:()=>SC,getSizableOrigin:()=>nl,hexToUint8Array:()=>UC,isObject:()=>Zi,isPlainObject:()=>So,issue:()=>Is,joinValues:()=>T,jsonStringifyReplacer:()=>ks,merge:()=>CC,mergeDefs:()=>Ln,normalizeParams:()=>B,nullish:()=>Io,numKeys:()=>$C,objectClone:()=>wC,omit:()=>TC,optionalKeys:()=>vg,parsedType:()=>U,partial:()=>zC,pick:()=>PC,prefixIssues:()=>er,primitiveTypes:()=>_g,promiseAllObject:()=>AC,propertyKeyTypes:()=>rl,randomString:()=>IC,required:()=>NC,safeExtend:()=>RC,shallowClone:()=>yg,slugify:()=>hg,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>nI,uint8ArrayToBase64url:()=>MC,uint8ArrayToHex:()=>LC,unwrapMessage:()=>Qc});function gC(e){return e}function yC(e){return e}function _C(e){}function vC(e){throw new Error("Unexpected value in exhaustive check")}function bC(e){}function el(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function T(e,t="|"){return e.map(r=>M(r)).join(t)}function ks(e,t){return typeof t=="bigint"?t.toString():t}function As(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Io(e){return e==null}function tl(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function mg(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var tI=Symbol("evaluating");function Ie(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==tI)return o===void 0&&(o=tI,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $o(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ln(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function xC(e){return Ln(e._zod.def)}function kC(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function AC(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function IC(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function wp(e){return JSON.stringify(e)}function hg(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var xp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gg=As(()=>{if(Li.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function So(e){if(Zi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Zi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function yg(e){return So(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function $C(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var SC=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},rl=new Set(["string","number","symbol"]),_g=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ir(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function OC(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vg(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var bg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},wg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function TC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function EC(e,t){if(!So(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Ln(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return $o(this,"shape",i),i}});return Je(e,n)}function RC(e,t){if(!So(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return $o(this,"shape",o),o}});return Je(e,r)}function CC(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return $o(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Je(e,r)}function zC(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Ln(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return $o(this,"shape",u),u},checks:[]});return Je(t,a)}function NC(e,t,r){let o=Ln(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return $o(this,"shape",i),i}});return Je(t,o)}function Oo(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function xg(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function er(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Qc(e){return typeof e=="string"?e:e?.message}function Bt(e,t,r){let o=e.message?e.message:Qc(e.inst?._zod.def?.error?.(e))??Qc(t?.error?.(e))??Qc(r.customError?.(e))??Qc(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function nl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ol(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Is(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function jC(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function rI(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function nI(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function DC(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return rI(t+r)}function MC(e){return nI(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function UC(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function LC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fg=class{constructor(...t){}};var oI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ks,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},il=P("$ZodError",oI),tr=P("$ZodError",oI,{Parent:Error});function al(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function sl(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c];c===s.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(t(a))):u[l]=u[l]||{_errors:[]},u=u[l],c++}}}};return o(e),r}function kg(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>o({issues:c},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let c=[...i,...u.path];if(c.length===0){r.errors.push(t(u));continue}let l=r,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(t(u)),d++}}};return o(e),r}function iI(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Ag(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${iI(o.path)}`);return t.join(`
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{$ as UA,$a as Ui,A as kA,Aa as hp,B as AA,Ba as xo,C as fp,Ca as gp,D as qc,Da as yp,E as Jc,Ea as XA,F as _s,Fa as GA,G as IA,Ga as Mi,H as $A,Ha as YA,I as SA,J as OA,Ja as _p,K as PA,Ka as QA,L as TA,M as EA,Ma as hC,N as RA,O as CA,P as zA,Pa as xs,Q as NA,R as Vr,Ra as vp,S as vs,U as mp,V as Ar,Va as bp,W as Ri,Wa as mn,X as jA,Y as DA,Ya as Qt,Z as MA,_ as bs,_a as Ct,a as oe,aa as ws,ab as Pe,ba as Ci,bb as De,c as yA,ca as Hc,cb as Ft,da as LA,ea as ZA,f as _A,fa as st,g as Vc,ga as wo,ha as Xc,ia as ut,ja as Un,ka as zi,la as FA,ma as BA,n as lp,na as Gc,oa as Ni,p as vA,pa as WA,q as yt,qa as KA,ra as pn,s as bA,sa as ji,t as pr,ta as VA,u as wA,ua as qA,v as cg,va as Yc,w as xA,wa as Di,x as ys,xa as fn,y as dp,ya as JA,z as pp,za as HA}from"./XOFCMJBQ.js";import{a as gA,b as Kr,c as ug}from"./UZLQALHY.js";var XS=gA(tm=>{"use strict";tm.byteLength=yD;tm.toByteArray=vD;tm.fromByteArray=xD;var Sn=[],Er=[],gD=typeof Uint8Array<"u"?Uint8Array:Array,rw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ha=0,JS=rw.length;ha<JS;++ha)Sn[ha]=rw[ha],Er[rw.charCodeAt(ha)]=ha;var ha,JS;Er[45]=62;Er[95]=63;function HS(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function yD(e){var t=HS(e),r=t[0],o=t[1];return(r+o)*3/4-o}function _D(e,t,r){return(t+r)*3/4-r}function vD(e){var t,r=HS(e),o=r[0],n=r[1],i=new gD(_D(e,o,n)),a=0,s=n>0?o-4:o,u;for(u=0;u<s;u+=4)t=Er[e.charCodeAt(u)]<<18|Er[e.charCodeAt(u+1)]<<12|Er[e.charCodeAt(u+2)]<<6|Er[e.charCodeAt(u+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return n===2&&(t=Er[e.charCodeAt(u)]<<2|Er[e.charCodeAt(u+1)]>>4,i[a++]=t&255),n===1&&(t=Er[e.charCodeAt(u)]<<10|Er[e.charCodeAt(u+1)]<<4|Er[e.charCodeAt(u+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function bD(e){return Sn[e>>18&63]+Sn[e>>12&63]+Sn[e>>6&63]+Sn[e&63]}function wD(e,t,r){for(var o,n=[],i=t;i<r;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),n.push(bD(o));return n.join("")}function xD(e){for(var t,r=e.length,o=r%3,n=[],i=16383,a=0,s=r-o;a<s;a+=i)n.push(wD(e,a,a+i>s?s:a+i));return o===1?(t=e[r-1],n.push(Sn[t>>2]+Sn[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],n.push(Sn[t>>10]+Sn[t>>4&63]+Sn[t<<2&63]+"=")),n.join("")}});var aP=gA((We,Vm)=>{"use strict";if(typeof Vm<"u"&&Vm!==globalThis.module&&typeof We<"u"&&Vm.exports===We){Object.defineProperty(We,"__esModule",{value:!0}),We.findX509Credential=We.rememberX509Credential=We.findX509OAuthError=We.rememberX509OAuthError=We.isApprovedX509Client=We.markApprovedX509Client=We.isRetryableX509IssuerError=We.markRetryableX509IssuerError=We.isTransientX509ConnectionError=We.markTransientX509ConnectionError=We.rememberRegisteredX509Transport=We.findRegisteredX509Transport=void 0;let e=new WeakMap,t=new WeakSet,r=new WeakSet,o=new WeakSet,n=new WeakMap,i=new WeakMap;We.findRegisteredX509Transport=WeakMap.prototype.get.bind(e),We.rememberRegisteredX509Transport=WeakMap.prototype.set.bind(e),We.markTransientX509ConnectionError=WeakSet.prototype.add.bind(t),We.isTransientX509ConnectionError=WeakSet.prototype.has.bind(t),We.markRetryableX509IssuerError=WeakSet.prototype.add.bind(r),We.isRetryableX509IssuerError=WeakSet.prototype.has.bind(r),We.markApprovedX509Client=WeakSet.prototype.add.bind(o),We.isApprovedX509Client=WeakSet.prototype.has.bind(o),We.rememberX509OAuthError=WeakMap.prototype.set.bind(n),We.findX509OAuthError=WeakMap.prototype.get.bind(n),We.rememberX509Credential=WeakMap.prototype.set.bind(i),We.findX509Credential=WeakMap.prototype.get.bind(i)}});async function fr(e,t){if(t===void 0)return e;let r;return Promise.race([e.catch(o=>{if(!t?.aborted)throw o}),new Promise((o,n)=>{r=()=>{n(ko(t))},t.addEventListener("abort",r,{once:!0}),t.aborted&&n(ko(t))})]).finally(()=>t.removeEventListener("abort",r))}function ko(e){return e?.reason instanceof Error?e.reason:typeof e?.reason=="string"?new Error(e.reason):new Error("Aborted")}var Bn={};Kr(Bn,{$ZodAny:()=>Qy,$ZodArray:()=>r_,$ZodAsyncError:()=>qr,$ZodBase64:()=>By,$ZodBase64URL:()=>Wy,$ZodBigInt:()=>Lp,$ZodBigIntFormat:()=>Hy,$ZodBoolean:()=>dl,$ZodCIDRv4:()=>Ly,$ZodCIDRv6:()=>Zy,$ZodCUID:()=>Oy,$ZodCUID2:()=>Py,$ZodCatch:()=>b_,$ZodCheck:()=>Ke,$ZodCheckBigIntFormat:()=>oy,$ZodCheckEndsWith:()=>gy,$ZodCheckGreaterThan:()=>zp,$ZodCheckIncludes:()=>my,$ZodCheckLengthEquals:()=>ly,$ZodCheckLessThan:()=>Cp,$ZodCheckLowerCase:()=>py,$ZodCheckMaxLength:()=>uy,$ZodCheckMaxSize:()=>iy,$ZodCheckMimeType:()=>_y,$ZodCheckMinLength:()=>cy,$ZodCheckMinSize:()=>ay,$ZodCheckMultipleOf:()=>ry,$ZodCheckNumberFormat:()=>ny,$ZodCheckOverwrite:()=>vy,$ZodCheckProperty:()=>yy,$ZodCheckRegex:()=>dy,$ZodCheckSizeEquals:()=>sy,$ZodCheckStartsWith:()=>hy,$ZodCheckStringFormat:()=>Ts,$ZodCheckUpperCase:()=>fy,$ZodCodec:()=>hl,$ZodCustom:()=>O_,$ZodCustomStringFormat:()=>qy,$ZodDate:()=>t_,$ZodDefault:()=>g_,$ZodDiscriminatedUnion:()=>i_,$ZodE164:()=>Ky,$ZodEmail:()=>Ay,$ZodEmoji:()=>$y,$ZodEncodeError:()=>Ao,$ZodEnum:()=>l_,$ZodError:()=>il,$ZodExactOptional:()=>m_,$ZodFile:()=>p_,$ZodFunction:()=>I_,$ZodGUID:()=>xy,$ZodIPv4:()=>Dy,$ZodIPv6:()=>My,$ZodISODate:()=>zy,$ZodISODateTime:()=>Cy,$ZodISODuration:()=>jy,$ZodISOTime:()=>Ny,$ZodIntersection:()=>a_,$ZodJWT:()=>Vy,$ZodKSUID:()=>Ry,$ZodLazy:()=>S_,$ZodLiteral:()=>d_,$ZodMAC:()=>Uy,$ZodMap:()=>u_,$ZodNaN:()=>w_,$ZodNanoID:()=>Sy,$ZodNever:()=>fl,$ZodNonOptional:()=>__,$ZodNull:()=>Yy,$ZodNullable:()=>h_,$ZodNumber:()=>Up,$ZodNumberFormat:()=>Jy,$ZodObject:()=>TI,$ZodObjectJIT:()=>n_,$ZodOptional:()=>Ki,$ZodPipe:()=>Fp,$ZodPrefault:()=>y_,$ZodPreprocess:()=>x_,$ZodPromise:()=>$_,$ZodReadonly:()=>k_,$ZodRealError:()=>tr,$ZodRecord:()=>s_,$ZodRegistry:()=>Vp,$ZodSet:()=>c_,$ZodString:()=>Wi,$ZodStringFormat:()=>Le,$ZodSuccess:()=>v_,$ZodSymbol:()=>Xy,$ZodTemplateLiteral:()=>A_,$ZodTransform:()=>f_,$ZodTuple:()=>Zp,$ZodType:()=>ye,$ZodULID:()=>Ty,$ZodURL:()=>Iy,$ZodUUID:()=>ky,$ZodUndefined:()=>Gy,$ZodUnion:()=>ml,$ZodUnknown:()=>pl,$ZodVoid:()=>e_,$ZodXID:()=>Ey,$ZodXor:()=>o_,$brand:()=>dg,$constructor:()=>P,$input:()=>T_,$output:()=>P_,Doc:()=>ll,JSONSchema:()=>R$,JSONSchemaGenerator:()=>xf,NEVER:()=>lg,TimePrecision:()=>z_,_any:()=>tv,_array:()=>av,_base64:()=>lf,_base64url:()=>df,_bigint:()=>J_,_boolean:()=>V_,_catch:()=>MN,_check:()=>E$,_cidrv4:()=>uf,_cidrv6:()=>cf,_coercedBigint:()=>H_,_coercedBoolean:()=>q_,_coercedDate:()=>ov,_coercedNumber:()=>L_,_coercedString:()=>R_,_cuid:()=>ef,_cuid2:()=>tf,_custom:()=>uv,_date:()=>nv,_decode:()=>Ap,_decodeAsync:()=>$p,_default:()=>NN,_discriminatedUnion:()=>kN,_e164:()=>pf,_email:()=>qp,_emoji:()=>Yp,_encode:()=>kp,_encodeAsync:()=>Ip,_endsWith:()=>Ms,_enum:()=>PN,_file:()=>sv,_float32:()=>F_,_float64:()=>B_,_gt:()=>yn,_gte:()=>Wt,_guid:()=>_l,_includes:()=>js,_int:()=>Z_,_int32:()=>W_,_int64:()=>X_,_intersection:()=>AN,_ipv4:()=>af,_ipv6:()=>sf,_isoDate:()=>j_,_isoDateTime:()=>N_,_isoDuration:()=>M_,_isoTime:()=>D_,_jwt:()=>ff,_ksuid:()=>of,_lazy:()=>FN,_length:()=>Ji,_literal:()=>EN,_lowercase:()=>zs,_lt:()=>gn,_lte:()=>hr,_mac:()=>C_,_map:()=>SN,_max:()=>hr,_maxLength:()=>qi,_maxSize:()=>To,_mime:()=>Us,_min:()=>Wt,_minLength:()=>Zn,_minSize:()=>_n,_multipleOf:()=>Po,_nan:()=>iv,_nanoid:()=>Qp,_nativeEnum:()=>TN,_negative:()=>hf,_never:()=>wl,_nonnegative:()=>yf,_nonoptional:()=>jN,_nonpositive:()=>gf,_normalize:()=>Ls,_null:()=>ev,_nullable:()=>zN,_number:()=>U_,_optional:()=>CN,_overwrite:()=>Jr,_parse:()=>$s,_parseAsync:()=>Ss,_pipe:()=>UN,_positive:()=>mf,_promise:()=>BN,_property:()=>_f,_readonly:()=>LN,_record:()=>$N,_refine:()=>cv,_regex:()=>Cs,_safeDecode:()=>Op,_safeDecodeAsync:()=>Tp,_safeEncode:()=>Sp,_safeEncodeAsync:()=>Pp,_safeParse:()=>Os,_safeParseAsync:()=>Ps,_set:()=>ON,_size:()=>Vi,_slugify:()=>Ws,_startsWith:()=>Ds,_string:()=>E_,_stringFormat:()=>Ks,_stringbool:()=>fv,_success:()=>DN,_superRefine:()=>lv,_symbol:()=>Y_,_templateLiteral:()=>ZN,_toLowerCase:()=>Fs,_toUpperCase:()=>Bs,_transform:()=>RN,_trim:()=>Zs,_tuple:()=>IN,_uint32:()=>K_,_uint64:()=>G_,_ulid:()=>rf,_undefined:()=>Q_,_union:()=>wN,_unknown:()=>bl,_uppercase:()=>Ns,_url:()=>vl,_uuid:()=>Jp,_uuidv4:()=>Hp,_uuidv6:()=>Xp,_uuidv7:()=>Gp,_void:()=>rv,_xid:()=>nf,_xor:()=>xN,clone:()=>Je,config:()=>tt,createStandardJSONSchemaMethod:()=>Vs,createToJSONSchemaMethod:()=>mv,decode:()=>BC,decodeAsync:()=>KC,describe:()=>dv,encode:()=>FC,encodeAsync:()=>WC,extractDefs:()=>Ro,finalize:()=>Co,flattenError:()=>al,formatError:()=>sl,globalConfig:()=>Li,globalRegistry:()=>je,initializeContext:()=>Eo,isValidBase64:()=>Fy,isValidBase64URL:()=>$I,isValidJWT:()=>SI,locales:()=>yl,meta:()=>pv,parse:()=>hn,parseAsync:()=>Fi,prettifyError:()=>Ag,process:()=>Me,regexes:()=>mr,registry:()=>Rs,safeDecode:()=>qC,safeDecodeAsync:()=>HC,safeEncode:()=>VC,safeEncodeAsync:()=>JC,safeParse:()=>Ig,safeParseAsync:()=>$g,toDotPath:()=>iI,toJSONSchema:()=>Fn,treeifyError:()=>kg,util:()=>L,version:()=>by});var eI,lg=Object.freeze({status:"aborted"});function P(e,t,r){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var u;let c=r?.Parent?new i:this;o(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var dg=Symbol("zod_brand"),qr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ao=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(eI=globalThis).__zod_globalConfig??(eI.__zod_globalConfig={});var Li=globalThis.__zod_globalConfig;function tt(e){return e&&Object.assign(Li,e),Li}var L={};Kr(L,{BIGINT_FORMAT_RANGES:()=>wg,Class:()=>fg,NUMBER_FORMAT_RANGES:()=>bg,aborted:()=>Oo,allowsEval:()=>gg,assert:()=>bC,assertEqual:()=>gC,assertIs:()=>_C,assertNever:()=>vC,assertNotEqual:()=>yC,assignProp:()=>$o,base64ToUint8Array:()=>rI,base64urlToUint8Array:()=>DC,cached:()=>As,captureStackTrace:()=>xp,cleanEnum:()=>jC,cleanRegex:()=>tl,clone:()=>Je,cloneDef:()=>xC,createTransparentProxy:()=>OC,defineLazy:()=>Ie,esc:()=>wp,escapeRegex:()=>Ir,explicitlyAborted:()=>xg,extend:()=>EC,finalizeIssue:()=>Bt,floatSafeRemainder:()=>mg,getElementAtPath:()=>kC,getEnumValues:()=>el,getLengthableOrigin:()=>ol,getParsedType:()=>SC,getSizableOrigin:()=>nl,hexToUint8Array:()=>UC,isObject:()=>Zi,isPlainObject:()=>So,issue:()=>Is,joinValues:()=>T,jsonStringifyReplacer:()=>ks,merge:()=>CC,mergeDefs:()=>Ln,normalizeParams:()=>B,nullish:()=>Io,numKeys:()=>$C,objectClone:()=>wC,omit:()=>TC,optionalKeys:()=>vg,parsedType:()=>U,partial:()=>zC,pick:()=>PC,prefixIssues:()=>er,primitiveTypes:()=>_g,promiseAllObject:()=>AC,propertyKeyTypes:()=>rl,randomString:()=>IC,required:()=>NC,safeExtend:()=>RC,shallowClone:()=>yg,slugify:()=>hg,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>nI,uint8ArrayToBase64url:()=>MC,uint8ArrayToHex:()=>LC,unwrapMessage:()=>Qc});function gC(e){return e}function yC(e){return e}function _C(e){}function vC(e){throw new Error("Unexpected value in exhaustive check")}function bC(e){}function el(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function T(e,t="|"){return e.map(r=>M(r)).join(t)}function ks(e,t){return typeof t=="bigint"?t.toString():t}function As(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Io(e){return e==null}function tl(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function mg(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var tI=Symbol("evaluating");function Ie(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==tI)return o===void 0&&(o=tI,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $o(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ln(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function xC(e){return Ln(e._zod.def)}function kC(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function AC(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function IC(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function wp(e){return JSON.stringify(e)}function hg(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var xp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gg=As(()=>{if(Li.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function So(e){if(Zi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Zi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function yg(e){return So(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function $C(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var SC=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},rl=new Set(["string","number","symbol"]),_g=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ir(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function OC(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vg(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var bg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},wg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function TC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function EC(e,t){if(!So(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Ln(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return $o(this,"shape",i),i}});return Je(e,n)}function RC(e,t){if(!So(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return $o(this,"shape",o),o}});return Je(e,r)}function CC(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return $o(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Je(e,r)}function zC(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Ln(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return $o(this,"shape",u),u},checks:[]});return Je(t,a)}function NC(e,t,r){let o=Ln(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return $o(this,"shape",i),i}});return Je(t,o)}function Oo(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function xg(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function er(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Qc(e){return typeof e=="string"?e:e?.message}function Bt(e,t,r){let o=e.message?e.message:Qc(e.inst?._zod.def?.error?.(e))??Qc(t?.error?.(e))??Qc(r.customError?.(e))??Qc(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function nl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ol(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Is(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function jC(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function rI(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function nI(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function DC(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return rI(t+r)}function MC(e){return nI(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function UC(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function LC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fg=class{constructor(...t){}};var oI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ks,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},il=P("$ZodError",oI),tr=P("$ZodError",oI,{Parent:Error});function al(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function sl(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c];c===s.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(t(a))):u[l]=u[l]||{_errors:[]},u=u[l],c++}}}};return o(e),r}function kg(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>o({issues:c},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let c=[...i,...u.path];if(c.length===0){r.errors.push(t(u));continue}let l=r,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(t(u)),d++}}};return o(e),r}function iI(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Ag(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${iI(o.path)}`);return t.join(`
3
3
  `)}var $s=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new qr;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(u=>Bt(u,i,tt())));throw xp(s,n?.callee),s}return a.value},hn=$s(tr),Ss=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(u=>Bt(u,i,tt())));throw xp(s,n?.callee),s}return a.value},Fi=Ss(tr),Os=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new qr;return i.issues.length?{success:!1,error:new(e??il)(i.issues.map(a=>Bt(a,n,tt())))}:{success:!0,data:i.value}},Ig=Os(tr),Ps=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Bt(a,n,tt())))}:{success:!0,data:i.value}},$g=Ps(tr),kp=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return $s(e)(t,r,n)},FC=kp(tr),Ap=e=>(t,r,o)=>$s(e)(t,r,o),BC=Ap(tr),Ip=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ss(e)(t,r,n)},WC=Ip(tr),$p=e=>async(t,r,o)=>Ss(e)(t,r,o),KC=$p(tr),Sp=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Os(e)(t,r,n)},VC=Sp(tr),Op=e=>(t,r,o)=>Os(e)(t,r,o),qC=Op(tr),Pp=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ps(e)(t,r,n)},JC=Pp(tr),Tp=e=>async(t,r,o)=>Ps(e)(t,r,o),HC=Tp(tr);var mr={};Kr(mr,{base64:()=>Fg,base64url:()=>Ep,bigint:()=>Hg,boolean:()=>Gg,browserEmail:()=>nz,cidrv4:()=>Lg,cidrv6:()=>Zg,cuid:()=>Sg,cuid2:()=>Og,date:()=>Kg,datetime:()=>qg,domain:()=>az,duration:()=>Cg,e164:()=>Wg,email:()=>Ng,emoji:()=>jg,extendedDuration:()=>XC,guid:()=>zg,hex:()=>sz,hostname:()=>iz,html5Email:()=>ez,httpProtocol:()=>Bg,idnEmail:()=>rz,integer:()=>Xg,ipv4:()=>Dg,ipv6:()=>Mg,ksuid:()=>Eg,lowercase:()=>ey,mac:()=>Ug,md5_base64:()=>cz,md5_base64url:()=>lz,md5_hex:()=>uz,nanoid:()=>Rg,null:()=>Yg,number:()=>Rp,rfc5322Email:()=>tz,sha1_base64:()=>pz,sha1_base64url:()=>fz,sha1_hex:()=>dz,sha256_base64:()=>hz,sha256_base64url:()=>gz,sha256_hex:()=>mz,sha384_base64:()=>_z,sha384_base64url:()=>vz,sha384_hex:()=>yz,sha512_base64:()=>wz,sha512_base64url:()=>xz,sha512_hex:()=>bz,string:()=>Jg,time:()=>Vg,ulid:()=>Pg,undefined:()=>Qg,unicodeEmail:()=>aI,uppercase:()=>ty,uuid:()=>Bi,uuid4:()=>GC,uuid6:()=>YC,uuid7:()=>QC,xid:()=>Tg});var Sg=/^[cC][0-9a-z]{6,}$/,Og=/^[0-9a-z]+$/,Pg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tg=/^[0-9a-vA-V]{20}$/,Eg=/^[A-Za-z0-9]{27}$/,Rg=/^[a-zA-Z0-9_-]{21}$/,Cg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,XC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,GC=Bi(4),YC=Bi(6),QC=Bi(7),Ng=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ez=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tz=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,aI=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rz=aI,nz=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,oz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jg(){return new RegExp(oz,"u")}var Dg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ug=e=>{let t=Ir(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Lg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Zg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ep=/^[A-Za-z0-9_-]*$/,iz=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,az=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bg=/^https?$/,Wg=/^\+[1-9]\d{6,14}$/,sI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Kg=new RegExp(`^${sI}$`);function uI(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vg(e){return new RegExp(`^${uI(e)}$`)}function qg(e){let t=uI({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${sI}T(?:${o})$`)}var Jg=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Hg=/^-?\d+n?$/,Xg=/^-?\d+$/,Rp=/^-?\d+(?:\.\d+)?$/,Gg=/^(?:true|false)$/i,Yg=/^null$/i;var Qg=/^undefined$/i;var ey=/^[^A-Z]*$/,ty=/^[^a-z]*$/,sz=/^[0-9a-fA-F]*$/;function ul(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function cl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var uz=/^[0-9a-fA-F]{32}$/,cz=ul(22,"=="),lz=cl(22),dz=/^[0-9a-fA-F]{40}$/,pz=ul(27,"="),fz=cl(27),mz=/^[0-9a-fA-F]{64}$/,hz=ul(43,"="),gz=cl(43),yz=/^[0-9a-fA-F]{96}$/,_z=ul(64,""),vz=cl(64),bz=/^[0-9a-fA-F]{128}$/,wz=ul(86,"=="),xz=cl(86);var Ke=P("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),lI={number:"number",bigint:"bigint",object:"date"},Cp=P("$ZodCheckLessThan",(e,t)=>{Ke.init(e,t);let r=lI[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zp=P("$ZodCheckGreaterThan",(e,t)=>{Ke.init(e,t);let r=lI[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ry=P("$ZodCheckMultipleOf",(e,t)=>{Ke.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):mg(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ny=P("$ZodCheckNumberFormat",(e,t)=>{Ke.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=bg[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Xg)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),oy=P("$ZodCheckBigIntFormat",(e,t)=>{Ke.init(e,t);let[r,o]=wg[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),iy=P("$ZodCheckMaxSize",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:nl(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ay=P("$ZodCheckMinSize",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:nl(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sy=P("$ZodCheckSizeEquals",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:nl(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),uy=P("$ZodCheckMaxLength",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=ol(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),cy=P("$ZodCheckMinLength",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=ol(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ly=P("$ZodCheckLengthEquals",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=ol(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ts=P("$ZodCheckStringFormat",(e,t)=>{var r,o;Ke.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),dy=P("$ZodCheckRegex",(e,t)=>{Ts.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),py=P("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ey),Ts.init(e,t)}),fy=P("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ty),Ts.init(e,t)}),my=P("$ZodCheckIncludes",(e,t)=>{Ke.init(e,t);let r=Ir(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hy=P("$ZodCheckStartsWith",(e,t)=>{Ke.init(e,t);let r=new RegExp(`^${Ir(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),gy=P("$ZodCheckEndsWith",(e,t)=>{Ke.init(e,t);let r=new RegExp(`.*${Ir(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function cI(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues))}var yy=P("$ZodCheckProperty",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>cI(n,r,t.property));cI(o,r,t.property)}}),_y=P("$ZodCheckMimeType",(e,t)=>{Ke.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),vy=P("$ZodCheckOverwrite",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var ll=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
4
4
  `).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
5
5
  `))}};var by={major:4,minor:4,patch:3};var ye=P("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=by;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,u)=>{let c=Oo(a),l;for(let d of s){if(d._zod.def.when){if(xg(a)||!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,f=d._zod.check(a);if(f instanceof Promise&&u?.async===!1)throw new qr;if(l||f instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(c||(c=Oo(a,p)))});else{if(a.issues.length===p)continue;c||(c=Oo(a,p))}}return l?l.then(()=>a):a},i=(a,s,u)=>{if(Oo(a))return a.aborted=!0,a;let c=n(s,o,u);if(c instanceof Promise){if(u.async===!1)throw new qr;return c.then(l=>e._zod.parse(l,u))}return e._zod.parse(c,u)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>i(l,a,s)):i(c,a,s)}let u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new qr;return u.then(c=>n(c,o,s))}return n(u,o,s)}}Ie(e,"~standard",()=>({validate:n=>{try{let i=Ig(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return $g(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Wi=P("$ZodString",(e,t)=>{ye.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Jg(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Le=P("$ZodStringFormat",(e,t)=>{Ts.init(e,t),Wi.init(e,t)}),xy=P("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zg),Le.init(e,t)}),ky=P("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Bi(o))}else t.pattern??(t.pattern=Bi());Le.init(e,t)}),Ay=P("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ng),Le.init(e,t)}),Iy=P("$ZodURL",(e,t)=>{Le.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Bg.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),$y=P("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jg()),Le.init(e,t)}),Sy=P("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Rg),Le.init(e,t)}),Oy=P("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Sg),Le.init(e,t)}),Py=P("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Og),Le.init(e,t)}),Ty=P("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Pg),Le.init(e,t)}),Ey=P("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Tg),Le.init(e,t)}),Ry=P("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Eg),Le.init(e,t)}),Cy=P("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qg(t)),Le.init(e,t)}),zy=P("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Kg),Le.init(e,t)}),Ny=P("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Vg(t)),Le.init(e,t)}),jy=P("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Cg),Le.init(e,t)}),Dy=P("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Dg),Le.init(e,t),e._zod.bag.format="ipv4"}),My=P("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Mg),Le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Uy=P("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ug(t.delimiter)),Le.init(e,t),e._zod.bag.format="mac"}),Ly=P("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Lg),Le.init(e,t)}),Zy=P("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zg),Le.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Fy(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var By=P("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Fg),Le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Fy(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function $I(e){if(!Ep.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Fy(r)}var Wy=P("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ep),Le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{$I(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ky=P("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Wg),Le.init(e,t)});function SI(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Vy=P("$ZodJWT",(e,t)=>{Le.init(e,t),e._zod.check=r=>{SI(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),qy=P("$ZodCustomStringFormat",(e,t)=>{Le.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Up=P("$ZodNumber",(e,t)=>{ye.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rp,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Jy=P("$ZodNumberFormat",(e,t)=>{ny.init(e,t),Up.init(e,t)}),dl=P("$ZodBoolean",(e,t)=>{ye.init(e,t),e._zod.pattern=Gg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Lp=P("$ZodBigInt",(e,t)=>{ye.init(e,t),e._zod.pattern=Hg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Hy=P("$ZodBigIntFormat",(e,t)=>{oy.init(e,t),Lp.init(e,t)}),Xy=P("$ZodSymbol",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Gy=P("$ZodUndefined",(e,t)=>{ye.init(e,t),e._zod.pattern=Qg,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Yy=P("$ZodNull",(e,t)=>{ye.init(e,t),e._zod.pattern=Yg,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Qy=P("$ZodAny",(e,t)=>{ye.init(e,t),e._zod.parse=r=>r}),pl=P("$ZodUnknown",(e,t)=>{ye.init(e,t),e._zod.parse=r=>r}),fl=P("$ZodNever",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),e_=P("$ZodVoid",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),t_=P("$ZodDate",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function pI(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}var r_=P("$ZodArray",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],u=t.element._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(c=>pI(c,r,a))):pI(u,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Mp(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...er(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function OI(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=vg(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function PI(e,t,r,o,n,i){let a=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,l=u.optin==="optional",d=u.optout==="optional";for(let p in t){if(p==="__proto__"||s.has(p))continue;if(c==="never"){a.push(p);continue}let f=u.run({value:t[p],issues:[]},o);f instanceof Promise?e.push(f.then(h=>Mp(h,r,p,t,l,d))):Mp(f,r,p,t,l,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var TI=P("$ZodObject",(e,t)=>{if(ye.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let o=As(()=>OI(t));Ie(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let n=Zi,i=t.catchall,a;e._zod.parse=(s,u)=>{a??(a=o.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let l=[],d=a.shape;for(let p of a.keys){let f=d[p],h=f._zod.optin==="optional",y=f._zod.optout==="optional",_=f._zod.run({value:c[p],issues:[]},u);_ instanceof Promise?l.push(_.then($=>Mp($,s,p,c,h,y))):Mp(_,s,p,c,h,y)}return i?PI(l,c,s,u,o.value,e):l.length?Promise.all(l).then(()=>s):s}}),n_=P("$ZodObjectJIT",(e,t)=>{TI.init(e,t);let r=e._zod.parse,o=As(()=>OI(t)),n=p=>{let f=new ll(["shape","payload","ctx"]),h=o.value,y=x=>{let S=wp(x);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};f.write("const input = payload.value;");let _=Object.create(null),$=0;for(let x of h.keys)_[x]=`key_${$++}`;f.write("const newResult = {};");for(let x of h.keys){let S=_[x],C=wp(x),j=p[x],F=j?._zod?.optin==="optional",A=j?._zod?.optout==="optional";f.write(`const ${S} = ${y(x)};`),F&&A?f.write(`