@esri/solutions-components 5.1.0-next.94 → 5.1.0-next.95

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 (107) hide show
  1. package/dist/cdn/2ID55IJB.js +2 -0
  2. package/dist/cdn/2SGR44DX.js +2 -0
  3. package/dist/cdn/{C4UB6MNN.js → 3J47AYBV.js} +97 -97
  4. package/dist/cdn/{VOF34LDF.js → 4B7NJE47.js} +1 -1
  5. package/dist/cdn/{YVDSW2OQ.js → 5LTIZSXG.js} +1 -1
  6. package/dist/cdn/74MDW73I.js +2 -0
  7. package/dist/cdn/ADPYDJG6.js +2 -0
  8. package/dist/cdn/{FDE2V7FU.js → AJZHT4GA.js} +1 -1
  9. package/dist/cdn/{JQXKQHAG.js → DI7PQSFH.js} +1 -1
  10. package/dist/cdn/FVXS4LF5.js +2 -0
  11. package/dist/cdn/IRRMUFW7.js +2 -0
  12. package/dist/cdn/ITLTQWCX.js +2 -0
  13. package/dist/cdn/IYUTLV2O.js +2 -0
  14. package/dist/cdn/{3XGF3ZJO.js → KW6YOUWC.js} +1 -1
  15. package/dist/cdn/{LUZYJVG5.js → KYFNXHOH.js} +1 -1
  16. package/dist/cdn/{NXL2QN3P.js → R3MCMOLS.js} +1 -1
  17. package/dist/cdn/R4VHCXKS.js +2 -0
  18. package/dist/cdn/{5Z45KDQY.js → UHPN75WT.js} +1 -1
  19. package/dist/cdn/VESARS2D.js +7 -0
  20. package/dist/cdn/{D4GI6KPZ.js → WVRKV5SS.js} +1 -1
  21. package/dist/cdn/assets/solution-details-card/t9n/messages.en.json +1 -1
  22. package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
  23. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
  24. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
  25. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
  26. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
  27. package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
  28. package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
  29. package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
  30. package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
  31. package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
  32. package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
  33. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
  34. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
  35. package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
  36. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
  37. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
  38. package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
  39. package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
  40. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
  41. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
  42. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
  43. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
  44. package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
  45. package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
  46. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
  47. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
  48. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
  49. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
  50. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
  51. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
  52. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
  53. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
  54. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
  55. package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
  56. package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
  57. package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
  58. package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
  59. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
  60. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
  61. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
  62. package/dist/cdn/assets/solutions-deployed-list/t9n/messages.en.json +1 -0
  63. package/dist/cdn/assets/solutions-deployed-list/t9n/messages.json +1 -0
  64. package/dist/cdn/index.js +1 -1
  65. package/dist/cdn/main.css +1 -1
  66. package/dist/chunks/converter.js +82 -86
  67. package/dist/chunks/get.js +387 -0
  68. package/dist/components/arcgis-solutions-assistant/customElement.js +5766 -5676
  69. package/dist/components/consent-manager/customElement.js +609 -638
  70. package/dist/components/solution-configure-titles/customElement.js +31 -28
  71. package/dist/components/solution-delete-dialog/customElement.js +57 -54
  72. package/dist/components/solution-deployed-card-panel/customElement.js +40 -37
  73. package/dist/components/solution-details-card/customElement.d.ts +4 -0
  74. package/dist/components/solution-details-card/customElement.js +45 -29
  75. package/dist/components/solution-details-card/index.js +1 -0
  76. package/dist/components/solution-item-accordion/customElement.d.ts +3 -2
  77. package/dist/components/solution-item-accordion/customElement.js +52 -35
  78. package/dist/components/solution-item-accordion/index.js +2 -0
  79. package/dist/components/solutions-all-panel/customElement.js +11 -11
  80. package/dist/components/solutions-deployed-list/customElement.d.ts +33 -0
  81. package/dist/components/solutions-deployed-list/customElement.js +38 -0
  82. package/dist/components/solutions-deployed-list/index.d.ts +1 -0
  83. package/dist/components/solutions-deployed-list/index.js +1 -0
  84. package/dist/docs/api.json +1 -1
  85. package/dist/docs/docs.json +1 -1
  86. package/dist/docs/vscode.html-custom-data.json +1 -1
  87. package/dist/docs/web-types.json +1 -1
  88. package/dist/index.d.ts +10 -0
  89. package/dist/loader.js +3 -2
  90. package/dist/solutions-components_commit.txt +7 -7
  91. package/dist/types/lumina.d.ts +6 -0
  92. package/dist/types/preact.d.ts +7 -0
  93. package/dist/types/react.d.ts +8 -0
  94. package/dist/types/stencil.d.ts +6 -0
  95. package/dist/utils/getRelatedInfos.d.ts +4 -0
  96. package/dist/utils/interfaces.d.ts +1 -1
  97. package/package.json +1 -1
  98. package/dist/cdn/2L3RREZ4.js +0 -2
  99. package/dist/cdn/2WHAF4H7.js +0 -2
  100. package/dist/cdn/AKKTG2RD.js +0 -2
  101. package/dist/cdn/DLH53PYM.js +0 -7
  102. package/dist/cdn/P24CZ4HM.js +0 -2
  103. package/dist/cdn/R2G4DDRZ.js +0 -2
  104. package/dist/cdn/SO3S3WP4.js +0 -2
  105. package/dist/cdn/UBLDT5XD.js +0 -2
  106. package/dist/cdn/ZONXYZVU.js +0 -2
  107. package/dist/chunks/get-portal-url.js +0 -345
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as v}from"./2B4SGB3I.js";import{b as _}from"./YKQDHR27.js";import{nb as T}from"./J75MHJID.js";import{a as f}from"./R67EKKSL.js";import{b as y}from"./KIUBUHVM.js";import{G as u,J as g,h,i as s,l as m,q as a}from"./H5E6ISYP.js";var $=h`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`,c=class extends u{constructor(){super(...arguments),this.itemRelationshipDependencies=[],this.linkType="item",this.listSelectionMode="none",this.reuseWarning="",this.templateInfos=[],this.typeKeywords=[],this.usageContext="content",this._canDeletePermission=!1,this._dependencyTooltipContent="",this._sortedTemplateInfos=[],this._translations=f({name:"solution-item-accordion",blocking:!0}),this._configContextConsumer=_({context:v,subscribe:!0}),this._sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"],this.solutionItemHover=a(),this.solutionItemSelect=a(),this.solutionTypeHover=a()}static{this.properties={itemRelationshipDependencies:0,linkType:1,listSelectionMode:1,reuseWarning:1,templateInfos:0,typeKeywords:0,usageContext:1,_canDeletePermission:16,_dependencyTooltipContent:16,_sortedTemplateInfos:16,_translations:16}}static{this.styles=$}willUpdate(e){e.has("templateInfos")&&(this.hasUpdated||this.templateInfos?.length>0)&&this.templateInfosWatchHandler()}async templateInfosWatchHandler(){this._sortedTemplateInfos=this._sortTemplates()}async collapseAll(){this.el?.shadowRoot?.querySelectorAll("calcite-accordion-item")?.forEach(e=>{e.expanded=!1})}async deselectAll(e=!1){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.selected&&(t.selected=!1),e&&(t.parentElement?.parentElement).expanded&&((t.parentElement?.parentElement).expanded=!1)})}async expandItemById(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&((t.parentElement?.parentElement).expanded=!0)})}async expandFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&((e[0].parentElement?.parentElement).expanded=!0)}async expandItems(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&((t.parentElement?.parentElement).expanded=!0)})}async selectItem(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async selectFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&(e[0].selected=!0,(e[0].parentElement?.parentElement).expanded=!0)}async selectItems(e){this.listSelectionMode==="multiple"&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async load(){this._sortedTemplateInfos=this._sortTemplates(),this._canDeletePermission=(this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution)??!1}render(){return this._getAccordion()}_deselectOthers(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id!==e&&(t.selected=!1)})}_getAccordion(){let e=[],t=this._sortedTemplateInfos.reduce((i,n)=>{let o=this._getTypeForDisplay(n.type,n.typeKeywords);return e.indexOf(o)<0&&(e.push(o),i.push(this._getAccordionItem(n))),i},[]);return s`<calcite-accordion class="border-override" selection-mode=single>${t}</calcite-accordion>`}_getAccordionItem(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords),i=this._sortedTemplateInfos.filter(n=>this._getTypeForDisplay(n.type,n.typeKeywords)===t);return s`<calcite-accordion-item .heading=${`${t} (${i.length})`} @mouseenter=${()=>this.solutionTypeHover.emit({itemType:t,entering:!0})} @mouseleave=${()=>this.solutionTypeHover.emit({itemType:t,entering:!1})}><solution-item-icon class="padding-start-1 display-flex align-center" slot=actions-start .type=${e.type} .typeKeywords=${e.typeKeywords}></solution-item-icon>${this._getList(i)}</calcite-accordion-item>`}_getList(e){let t=this._sortTemplatesByTitle(e);return s`<calcite-list .label=${this._translations.solutionsTemplates} selection-appearance=border .selectionMode=${this.listSelectionMode}>${t.map(i=>this._getListItem(i))}</calcite-list>`}_getListItem(e){let t=this.typeKeywords.includes("Deployed")&&e.url,i=this.linkType==="action";return s`<calcite-list-item id=${e.id??m} @mouseenter=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!0})} @mouseleave=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!1})} @calciteListItemSelect=${()=>{this._deselectOthers(e.id),this.solutionItemSelect.emit({itemId:e.id,selected:!0}),t&&!i&&window.open(e.url,"_blank")}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${t&&!i?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${t&&i?s`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} @click=${()=>window.open(e.url,"_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>`:null}</calcite-list-item>`}_sortTemplatesByTitle(e){return e.sort((t,i)=>t.title<i.title?-1:t.title>i.title?1:0)}_sortTemplates(){return this.templateInfos.sort((e,t)=>{let i=this._getTypeForSort(e),n=this._getTypeForSort(t),o=this._sortOrder.indexOf(i),r=this._sortOrder.indexOf(n);return o-r})}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if(e==="Feature Service"){let n=t.indexOf("View Service")>-1,o=t.indexOf("Table")>-1;i=n&&o?"Table (hosted, view)":o?"Table (hosted)":n?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return e==="Web Mapping Application"&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i=e==="Geoprocessing Service"?"Tool":i,i=e==="Feed"?"Feed (hosted)":i,i=e==="Real Time Analytic"?"Real Time Analytic (hosted)":i,i=e==="Big Data Analytic"?"Big Data Analytic (hosted)":i,i=e==="Vector Tile Service"?"Tile Layer":i,i}_getWarningChip(e,t,i,n){let o=t==="info"?"var(--calcite-color-status-info)":"var(--calcite-color-status-danger)";return s`<div slot=actions-end><calcite-chip .icon=${t==="info"?"information":"exclamation-mark-triangle"} .id=${i+"-warning"} kind=neutral .label=${e} scale=s style=${g({"--calcite-chip-icon-color":o,cursor:n&&n.length>0?"pointer":"default"})}>${e}</calcite-chip>${n&&n.length>0?s`<calcite-popover auto-close class=solution-list-item-content .label=${`${i}-warning`} placement=bottom .referenceElement=${`${i}-warning`} scale=s @calcitePopoverBeforeOpen=${async()=>{let r={q:n.map(l=>`id:${l.dependencyItemId}`).join(" OR "),authentication:this._configContextConsumer.value?.userSession,pagingParam:{start:1,num:100}},d=await T(r);console.log(d),this._dependencyTooltipContent=s`<solutions-deployed-list .cards=${d.results.map(l=>{let p=l.typeKeywords?.find(w=>w.startsWith("solutionversion-")),x=p?p.split("-")[1]:"unknown";return{id:l.id,title:l.title,deployVersion:x,created:l.created}})}></solutions-deployed-list>`}}>${this._dependencyTooltipContent}</calcite-popover>`:null}</div>`}_checkUsageForWarnings(e){let t=this._configContextConsumer.value?.userSession?.username??null,i=this.itemRelationshipDependencies.filter(o=>o.controlItemId===e.id),n=i.length>0;if(this.usageContext==="content"&&n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i);if(this.usageContext==="rename"){let o=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1;if(e.owner!==t)if(o){if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}if(this.usageContext==="delete"){if(e.owner!==t)if(this._canDeletePermission){if(n)return this._getWarningChip(this._translations?.usedInOtherSolutionsDeleteWarning||"","info",e.id)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}return""}};y("solution-item-accordion",c);export{c as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./JQXKQHAG.js";import"./ZYCAAXQF.js";import"./2WHAF4H7.js";import a from"./X5EABWHE.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)
2
+ import b from"./DI7PQSFH.js";import"./ZYCAAXQF.js";import"./FVXS4LF5.js";import a from"./X5EABWHE.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)
@@ -0,0 +1,7 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as ct,b as lt,d as fn,e as Ve,f as dn,g as pn,h as gn,i as mn,j as ft}from"./IRRMUFW7.js";import{a as ln}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import{b as cn}from"./KIUBUHVM.js";import{G as un,h as an,q as sn}from"./H5E6ISYP.js";import"./QPIMTXPL.js";function wi(e){return dn(e).then(t=>{let n=e.folderId?`${Ve(e)}/content/users/${t}/${e.folderId}/items/${e.item.id}/update`:`${Ve(e)}/content/users/${t}/items/${e.item.id}/update`;e.params=Object.assign(Object.assign({},e.params),e.item),e.params.extent&&pn(e.params.extent)&&(e.params.extent=gn(e.params.extent));let r=Ve(e),i=mn(Object.assign(Object.assign({},e.item),{access:e.item.access}),r),o=e.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof o=="string"&&i.thumbnailUrl.split("?")[0]===o.split("?")[0]&&delete e.params.thumbnailUrl,fn(n,e)})}function xi(){var e;return!!(!((e=window?.navigator)===null||e===void 0)&&e.globalPrivacyControl)}function Si(e={}){let{disabled:t,portal:n,requireConsent:r,userPrivacySettings:i}=e;if(r)if(i?.accepted){if(i?.functional===!1&&i?.performance===!1&&i?.targeting===!1)return!0}else return!0;return i?.accepted===!0&&i?.functional===!1&&i?.performance===!1&&i?.targeting===!1||t||n?.eueiEnabled===!1||xi()?!0:!(!n||Ii(n)||ki(n)||Oi(n))}function Ii(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function ki(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Oi(e){return!e.user&&e.ipCntryCode==="US"}var Me={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},jr="esri-telemetry";function Pi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!Ai(e)||e.body)&&t()})}function Ei(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${jr}="${n}"]`)}function Ai(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:c=!1,onload:u,onerror:p}=e;if(typeof window>"u")throw new Fe("Window is undefined: Cannot add script element.");if(Ei(e)){console.log(`script (${r||i}) is already present, skipping`);return}let l=ji({id:r,dataAttribute:i,type:a,async:s,defer:c,body:t,src:n,onload:u,onerror:p});return o==="body"?document.body.appendChild(l):document.head.appendChild(l)}var Fe=class extends Error{};function ji({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:c}){let u=document.createElement("script");return e&&(u.id=e),t&&u.setAttribute(`data-${jr}`,t),a&&(u.src=a),o&&(u.innerText=o),u.type=n,u.async=r,u.defer=i,s&&(u.onload=s),c&&(u.onerror=c),u}function Ti(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var _i=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],It=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.logger=t.logger||console,t.userPrivacySettings&&(this._userPrivacySettings=t.userPrivacySettings),t.requireConsent&&!t.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:Ci(),timestamp:Date.now()},t.userPrivacySettings=this._userPrivacySettings),this.disabled=Si(t),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(t,n,r){let i=!n&&!t?.accepted,o=r.every(a=>t?.[a]);return i||o}filterTrackers(t){return this.options.plugins.filter(n=>t.includes(n.name))}initializeTrackers(){let t=this._userPrivacySettings,n=this.options.requireConsent;this.trackers=[],this.options.plugins&&(t?(this.shouldInitializeTrackers(t,n,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(t,n,["performance","targeting","functional"])&&this.trackers.push(...this.filterTrackers(["adobe-analytics","googleAnalytics","siteimprove"]))):this.trackers.push(...this.options.plugins)),this.trackers.length||this.logger.info("No trackers configured")}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=_i.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(t){let{accepted:n,performance:r,targeting:i,functional:o}=this._userPrivacySettings,a=t.accepted&&!n&&!this.options.requireConsent&&(!t.performance||!t.targeting||!t.functional)||!t.performance&&r||!t.targeting&&i||!t.functional&&o;return this._userPrivacySettings=t,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:c})=>!s&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Me.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Me.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Me.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(Ni(n.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(t=>{var n;t.hasError||(t.disabled=!0,(n=t.disable)===null||n===void 0||n.call(t))})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function Ni(e,t){return function(n,[r,i]){return Mi(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function Mi(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function Ci(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var kt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Ti(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Fe("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Pi(t))),this.injectConfig(),this.isInitialized=!0}}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=lt(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},hn="TELEMETRY_COGNITO_CREDENTIALS";function zi(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Me.get(hn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Me.set(hn,o),o))}function Tr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:Ui(t,r),value:e[r]}:{key:r,value:Di(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function Di(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function Ui(e,t){return`dimension${e[t]}`}var Wi=["size","duration","position","number","count"];function _r(e,t={}){return Object.keys(e).filter(n=>t[n]||Wi.includes(n)).map(n=>t[n]?{key:Vi(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function Vi(e,t){return`metric${e[t]}`}function Li({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=_r(e,n),c=Tr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),u=Object.assign(Object.assign({name:a},c),s);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,u}function $i({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=_r(n,i),a=Tr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:c}=document||{},{hostname:u,pathname:p}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:u,path:e||p,pageUrl:e||p,pageName:c,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function vn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var Ri="function",Hi="string",te="undefined",Ki="boolean",Je="object",qi="array",Xi="number",Fi="symbol",Ji="null",Bi=function(){},Nr="any",Mr="*",ye="__",Gi="form",Yi="input",Qi="button",Zi="select",Be=typeof process!==te?process:{};Be.env&&Be.env.NODE_ENV;var Q=typeof document!==te;Be.versions!=null&&Be.versions.node!=null;typeof Deno!==te&&Deno.core;Q&&window.name==="nodejs"||typeof navigator!==te&&typeof navigator.userAgent!==te&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Cr(e,t){return t.charAt(0)[e]()+t.slice(1)}var eo=Cr.bind(null,"toUpperCase"),to=Cr.bind(null,"toLowerCase");function no(e){return zr(e)?eo(Ji):typeof e===Je?ao(e):Object.prototype.toString.call(e).slice(8,-1)}function Ge(e,t){t===void 0&&(t=!0);var n=no(e);return t?to(n):n}function Ue(e,t){return typeof t===e}var Z=Ue.bind(null,Ri),ce=Ue.bind(null,Hi),we=Ue.bind(null,te),ro=Ue.bind(null,Ki);Ue.bind(null,Fi);function zr(e){return e===null}function io(e){return Ge(e)===Xi&&!isNaN(e)}function Dr(e){return Ge(e)===qi}function Y(e){if(!oo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function oo(e){return e&&(typeof e===Je||e!==null)}function ao(e){return Z(e.constructor)?e.constructor.name:null}function so(e){return e instanceof Error||ce(e.message)&&e.constructor&&io(e.constructor.stackTraceLimit)}function Ur(e,t){if(typeof t!="object"||zr(t))return!1;if(t instanceof e)return!0;var n=Ge(new e(""));if(so(t))for(;t;){if(Ge(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Ur.bind(null,TypeError);Ur.bind(null,SyntaxError);function Ze(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?uo(e,t):n}function uo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function et(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}et(Ze,Gi);et(Ze,Qi);et(Ze,Yi);et(Ze,Zi);function co(e){return e?Dr(e)?e:[e]:[]}function yn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function lo(){if(Q){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function fo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function po(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=yn(n[1]),a=yn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var c in r){var u=c.split("[");u.length>1&&(go(r,u.map(function(p){return p.replace(/[?[\]\\ ]/g,"")}),r[c]),delete r[c])}return r})((function(t){return Q&&window.location.search.substring(1)})())}function go(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function be(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var ge="global",Oe=ye+ge+ye,Pe=typeof self===Je&&self.self===self&&self||typeof global===Je&&global[ge]===global&&global||void 0;function fe(e){return Pe[Oe][e]}function de(e,t){return Pe[Oe][e]=t}function Ae(e){delete Pe[Oe][e]}function je(e,t,n){var r;try{if(Kt(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Pe[Oe]||(Pe[Oe]={});var Le={};function Kt(e){if(typeof Le[e]!==te)return Le[e];try{var t=window[e];t.setItem(te,te),t.removeItem(te)}catch{return Le[e]=!1}return Le[e]=!0}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(null,arguments)}var ue="function",ie="undefined",Ce="reducer",Wr="@@redux/",Ot=Wr+"INIT",mo=Wr+Math.random().toString(36),bn=(function(){return typeof Symbol===ue&&Symbol.observable||"@@observable"})(),$e=" != "+ue;function Vr(e,t,n){var r;if(typeof t===ue&&typeof n===ie&&(n=t,t=void 0),typeof n!==ie){if(typeof n!==ue)throw new Error("enhancer"+$e);return n(Vr)(e,t)}if(typeof e!==ue)throw new Error(Ce+$e);var i=e,o=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function p(){return o}function l(h){if(typeof h!==ue)throw new Error("Listener"+$e);var I=!0;return u(),s.push(h),function(){if(I){I=!1,u();var S=s.indexOf(h);s.splice(S,1)}}}function w(h){if(!Y(h))throw new Error("Act != obj");if(typeof h.type===ie)throw new Error("ActType "+ie);if(c)throw new Error("Dispatch in "+Ce);try{c=!0,o=i(o,h)}finally{c=!1}for(var I=a=s,S=0;S<I.length;S++)(0,I[S])();return h}return w({type:Ot}),(r={dispatch:w,subscribe:l,getState:p,replaceReducer:function(h){if(typeof h!==ue)throw new Error("next "+Ce+$e);i=h,w({type:Ot})}})[bn]=function(){var h,I=l;return(h={subscribe:function(S){if(typeof S!="object")throw new TypeError("Observer != obj");function v(){S.next&&S.next(p())}return v(),{unsubscribe:I(v)}}})[bn]=function(){return this},h},r}function ho(e,t){var n=t&&t.type;return"action "+(n&&n.toString()||"?")+Ce+" "+e+" returns "+ie}function Ee(){var e=[].slice.call(arguments);return e.length===0?function(t){return t}:e.length===1?e[0]:e.reduce(function(t,n){return function(){return t(n.apply(void 0,[].slice.call(arguments)))}})}function vo(){var e=arguments;return function(t){return function(n,r,i){var o,a=t(n,r,i),s=a.dispatch,c={getState:a.getState,dispatch:function(u){return s(u)}};return o=[].slice.call(e).map(function(u){return u(c)}),T({},a,{dispatch:s=Ee.apply(void 0,o)(a.dispatch)})}}}var le=ye+"anon_id",me=ye+"user_id",Se=ye+"user_traits",Pt="analytics",se="userId",xe="anonymousId",qe=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Et=["name","EVENTS","config","loaded"],j=qe.reduce(function(e,t){return e[t]=t,e},{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),wn=/^utm_/,xn=/^an_prop_/,Sn=/^an_trait_/;function yo(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===j.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,c=i.initialUser,u=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(le,a.anonymousId),u||t(me,a.userId),c.traits&&t(Se,T({},u&&s.traits?s.traits:{},c.traits));var p=Object.keys(i.params);if(p.length){var l=o.an_uid,w=o.an_event,h=p.reduce(function(I,S){if(S.match(wn)||S.match(/^(d|g)clid/)){var v=S.replace(wn,"");I.campaign[v==="campaign"?"name":v]=o[S]}return S.match(xn)&&(I.props[S.replace(xn,"")]=o[S]),S.match(Sn)&&(I.traits[S.replace(Sn,"")]=o[S]),I},{campaign:{},props:{},traits:{}});n.dispatch(T({type:j.params,raw:o},h,l?{userId:l}:{})),l&&setTimeout(function(){return e.identify(l,h.traits)},0),w&&setTimeout(function(){return e.track(w,h.props)},0),Object.keys(h.campaign).length&&n.dispatch({type:j.campaign,campaign:h.campaign})}}return r(i)}}}}function bo(e){return function(t,n){if(t===void 0&&(t={}),n===void 0&&(n={}),n.type===j.setItemEnd){if(n.key===le)return T({},t,{anonymousId:n.value});if(n.key===me)return T({},t,{userId:n.value})}switch(n.type){case j.identify:return Object.assign({},t,{userId:n.userId,traits:T({},t.traits,n.traits)});case j.reset:return[me,le,Se].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function In(e){return{userId:e.getItem(me),anonymousId:e.getItem(le),traits:e.getItem(Se)}}var At=function(e){return ye+"TEMP"+ye+e};function wo(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(o){return function(a){return function(s){var c=s.userId,u=s.traits,p=s.options;if(s.type===j.reset&&([me,Se,le].forEach(function(h){r(h)}),[se,xe,"traits"].forEach(function(h){Ae(At(h))})),s.type===j.identify){i(le)||n(le,be());var l=i(me),w=i(Se)||{};l&&l!==c&&o.dispatch({type:j.userIdChanged,old:{userId:l,traits:w},new:{userId:c,traits:u},options:p}),c&&n(me,c),u&&n(Se,T({},w,u))}return a(s)}}}}var Ne={};function kn(e,t){Ne[e]&&Z(Ne[e])&&(Ne[e](t),delete Ne[e])}function Lr(e,t,n){return new Promise(function(r,i){return t()?r(e):n<1?i(T({},e,{queue:!0})):new Promise(function(o){return setTimeout(o,10)}).then(function(o){return Lr(e,t,n-10).then(r,i)})})}function xo(e){return{abort:e}}function $r(e,t,n){var r={},i=t(),o=e.getState(),a=o.plugins,s=o.queue,c=o.user;if(!o.context.offline&&s&&s.actions&&s.actions.length){var u=s.actions.reduce(function(l,w,h){return a[w.plugin].loaded?(l.process.push(w),l.processIndex.push(h)):(l.requeue.push(w),l.requeueIndex.push(h)),l},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(u.processIndex&&u.processIndex.length){u.processIndex.forEach(function(l){var w=s.actions[l],h=w.plugin,I=w.payload.type,S=i[h][I];if(S&&Z(S)){var v,d=(function(b,m){return b===void 0&&(b={}),m===void 0&&(m={}),[se,xe].reduce(function(O,k){return b.hasOwnProperty(k)&&m[k]&&m[k]!==b[k]&&(O[k]=m[k]),O},b)})(w.payload,c),y=r[d.meta.rid];if(!y&&(v=S({payload:d,config:a[h].config,instance:n,abort:xo}))&&Y(v)&&v.abort)return void(r[d.meta.rid]=!0);if(!y){var x=I+":"+h;e.dispatch(T({},d,{type:x,_:{called:x,from:"queueDrain"}}))}}});var p=s.actions.filter(function(l,w){return!~u.processIndex.indexOf(w)});s.actions=p}}}var dt=function(e){var t=e.data,n=e.action,r=e.instance,i=e.state,o=e.allPlugins,a=e.allMatches,s=e.store,c=e.EVENTS;try{var u=i.plugins,p=i.context,l=n.type,w=l.match(Ie),h=t.exact.map(function(v){return v.pluginName});w&&(h=a.during.map(function(v){return v.pluginName}));var I=(function(v,d){return function(y,x,b){var m=x.config,O=x.name,k=O+"."+y.type;b&&(k=b.event);var M=y.type.match(Ie)?(function(C,A,W,z,H){return function(L,E){var K=z?z.name:C,D=E&&ze(E)?E:W;if(z&&(!(D=E&&ze(E)?E:[C]).includes(C)||D.length!==1))throw new Error("Method "+A+" can only abort "+C+" plugin. "+JSON.stringify(D)+" input valid");return T({},H,{abort:{reason:L,plugins:D,caller:A,_:K}})}})(O,k,d,b,y):(function(C,A){return function(){throw new Error(C.type+" action not cancellable. Remove abort in "+A)}})(y,k);return{payload:So(y),instance:v,config:m||{},abort:M}}})(r,h),S=t.exact.reduce(function(v,d){var y=d.pluginName,x=d.methodName,b=!1;return x.match(/^initialize/)||x.match(/^reset/)||(b=!u[y].loaded),p.offline&&x.match(/^(page|track|identify)/)&&(b=!0),v[""+y]=b,v},{});return Promise.resolve(t.exact.reduce(function(v,d,y){var x=d.pluginName;return Promise.resolve(v).then(function(b){function m(){return Promise.resolve(b)}var O=(function(){if(t.namespaced&&t.namespaced[x])return Promise.resolve(t.namespaced[x].reduce(function(k,M,C){return Promise.resolve(k).then(function(A){return M.method&&Z(M.method)?((function(L,E){var K=_n(L);if(K&&K.name===E){var D=_n(K.method);throw new Error([E+" plugin is calling method "+L,"Plugins cant call self","Use "+K.method+" "+(D?"or "+D.method:"")+" in "+E+" plugin insteadof "+L].join(`
3
+ `))}})(M.methodName,M.pluginName),Promise.resolve(M.method({payload:A,instance:r,abort:(W=A,z=x,H=M.pluginName,function(L,E){return T({},W,{abort:{reason:L,plugins:E||[z],caller:l,from:H||z}})}),config:En(M.pluginName,u,o),plugins:u})).then(function(L){var E=Y(L)?L:{};return Promise.resolve(T({},A,E))})):A;var W,z,H})},Promise.resolve(n))).then(function(k){b[x]=k});b[x]=n})();return O&&O.then?O.then(m):m()})},Promise.resolve({}))).then(function(v){return Promise.resolve(t.exact.reduce(function(d,y,x){try{var b=t.exact.length===x+1,m=y.pluginName,O=o[m];return Promise.resolve(d).then(function(k){var M=v[m]?v[m]:{};if(w&&(M=k),gt(M,m))return pt({data:M,method:l,instance:r,pluginName:m,store:s}),Promise.resolve(k);if(gt(k,m))return b&&pt({data:k,method:l,instance:r,store:s}),Promise.resolve(k);if(S.hasOwnProperty(m)&&S[m]===!0)return s.dispatch({type:"queue",plugin:m,payload:M,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(k);var C=I(v[m],o[m]);return Promise.resolve(O[l]({abort:C.abort,payload:M,instance:r,config:En(m,u,o),plugins:u})).then(function(A){var W=Y(A)?A:{},z=T({},k,W),H=v[m];if(gt(H,m))pt({data:H,method:l,instance:r,pluginName:m,store:s});else{var L=l+":"+m;(L.match(/:/g)||[]).length<2&&!l.match(On)&&!l.match(Pn)&&r.dispatch(T({},w?z:M,{type:L,_:{called:L,from:"submethod"}}))}return Promise.resolve(z)})})}catch(k){return Promise.reject(k)}},Promise.resolve(n))).then(function(d){if(!(l.match(Ie)||l.match(/^registerPlugin/)||l.match(Pn)||l.match(On)||l.match(/^params/)||l.match(/^userIdChanged/))){if(c.plugins.includes(l),d._&&d._.originalAction===l)return d;var y=T({},d,{_:{originalAction:d.type,called:d.type,from:"engineEnd"}});Rr(d,t.exact.length)&&!l.match(/End$/)&&(y=T({},y,{type:d.type+"Aborted"})),s.dispatch(y)}return d})})}catch(v){return Promise.reject(v)}},Ie=/Start$/,On=/^bootstrap/,Pn=/^ready/;function pt(e){var t=e.pluginName,n=e.method+"Aborted"+(t?":"+t:"");e.store.dispatch(T({},e.data,{type:n,_:{called:n,from:"abort"}}))}function En(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function An(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function jn(e,t){var n=e.replace(Ie,""),r=t?":"+t:"";return[""+e+r,""+n+r,n+"End"+r]}function gt(e,t){var n=e.abort;return!!n&&(n===!0||Tn(n,t)||n&&Tn(n.plugins,t))}function Rr(e,t){var n=e.abort;if(!n)return!1;if(n===!0||ce(n))return!0;var r=n.plugins;return ze(n)&&n.length===t||ze(r)&&r.length===t}function ze(e){return Array.isArray(e)}function Tn(e,t){return!(!e||!ze(e))&&e.includes(t)}function _n(e){var t=e.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function So(e){return Object.keys(e).reduce(function(t,n){return n==="type"||(t[n]=Y(e[n])?Object.assign({},e[n]):e[n]),t},{})}function Io(e,t,n){var r={};return function(i){return function(o){return function(a){try{var s,c=function(b){return s?b:o(l)},u=a.type,p=a.plugins,l=a;if(a.abort)return Promise.resolve(o(a));if(u===j.enablePlugin&&i.dispatch({type:j.initializeStart,plugins:p,disabled:[],fromEnable:!0,meta:a.meta}),u===j.disablePlugin&&setTimeout(function(){return kn(a.meta.rid,{payload:a})},0),u===j.initializeEnd){var w=t(),h=Object.keys(w),I=h.filter(function(b){return p.includes(b)}).map(function(b){return w[b]}),S=[],v=[],d=a.disabled,y=I.map(function(b){var m=b.loaded,O=b.name,k=b.config;return Lr(b,function(){return m({config:k})},1e4).then(function(M){return r[O]||(i.dispatch({type:j.pluginReadyType(O),name:O,events:Object.keys(b).filter(function(C){return!Et.includes(C)})}),r[O]=!0),S=S.concat(O),b}).catch(function(M){if(M instanceof Error)throw new Error(M);return v=v.concat(M.name),M})});Promise.all(y).then(function(b){var m={plugins:S,failed:v,disabled:d};setTimeout(function(){h.length===y.length+d.length&&i.dispatch(T({},{type:j.ready},m))},0)})}var x=(function(){if(u!==j.bootstrap)return/^ready:([^:]*)$/.test(u)&&setTimeout(function(){return $r(i,t,e)},0),Promise.resolve((function(b,m,O,k,M){try{var C=Z(m)?m():m,A=b.type,W=A.replace(Ie,"");if(b._&&b._.called)return Promise.resolve(b);var z=O.getState(),H=(K=C,(D=z.plugins)===void 0&&(D={}),(_=b.options)===void 0&&(_={}),Object.keys(K).filter(function(f){var g=_.plugins||{};return ro(g[f])?g[f]:g.all!==!1&&(!D[f]||D[f].enabled!==!1)}).map(function(f){return K[f]}));A===j.initializeStart&&b.fromEnable&&(H=Object.keys(z.plugins).filter(function(f){var g=z.plugins[f];return b.plugins.includes(f)&&!g.initialized}).map(function(f){return C[f]}));var L=H.map(function(f){return f.name}),E=(function(f,g){var P=jn(f).map(function(N){return An(N,g)});return g.reduce(function(N,V){var U=V.name,J=jn(f,U).map(function(re){return An(re,g)}),R=J[0],X=J[1],$=J[2];return R.length&&(N.beforeNS[U]=R),X.length&&(N.duringNS[U]=X),$.length&&(N.afterNS[U]=$),N},{before:P[0],beforeNS:{},during:P[1],duringNS:{},after:P[2],afterNS:{}})})(A,H);return Promise.resolve(dt({action:b,data:{exact:E.before,namespaced:E.beforeNS},state:z,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(f){function g(){var V=(function(){if(A.match(Ie))return Promise.resolve(dt({action:T({},P,{type:W+"End"}),data:{exact:E.after,namespaced:E.afterNS},state:z,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(U){U.meta&&U.meta.hasCallback&&kn(U.meta.rid,{payload:U})})})();return V&&V.then?V.then(function(){return f}):f}if(Rr(f,L.length))return f;var P,N=(function(){if(A!==W)return Promise.resolve(dt({action:T({},f,{type:W}),data:{exact:E.during,namespaced:E.duringNS},state:z,allPlugins:C,allMatches:E,instance:O,store:k,EVENTS:M})).then(function(V){P=V});P=f})();return N&&N.then?N.then(g):g()})}catch(f){return Promise.reject(f)}var K,D,_})(a,t,e,i,n)).then(function(b){var m=o(b);return s=1,m})})();return Promise.resolve(x&&x.then?x.then(c):c(x))}catch(b){return Promise.reject(b)}}}}}function ko(e){return function(t){return function(n){return function(r){var i=r.type,o=r.key,a=r.value,s=r.options;if(i===j.setItem||i===j.removeItem){if(r.abort)return n(r);i===j.setItem?e.setItem(o,a,s):e.removeItem(o,s)}return n(r)}}}}var Oo=function(){var e=this;this.before=[],this.after=[],this.addMiddleware=function(t,n){e[n]=e[n].concat(t)},this.removeMiddleware=function(t,n){var r=e[n].findIndex(function(i){return i===t});r!==-1&&(e[n]=[].concat(e[n].slice(0,r),e[n].slice(r+1)))},this.dynamicMiddlewares=function(t){return function(n){return function(r){return function(i){var o={getState:n.getState,dispatch:function(s){return n.dispatch(s)}},a=e[t].map(function(s){return s(o)});return Ee.apply(void 0,a)(r)(i)}}}}};function Po(e){return function(t,n){t===void 0&&(t={});var r={};if(n.type==="initialize:aborted")return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=Nn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled,s=o.config;return r[i]={enabled:a,initialized:!!a&&!o.initialize,loaded:!!a&&!!o.loaded({config:s}),config:s},T({},t,r)}if(/^initialize:([^:]*)$/.test(n.type)){var c=Nn(n.type,j.initialize),u=e()[c];return u&&c?(r[c]=T({},t[c],{initialized:!0,loaded:!!u.loaded({config:u.config})}),T({},t,r)):t}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=T({},t[n.name],{loaded:!0}),T({},t,r);switch(n.type){case j.disablePlugin:return T({},t,Mn(n.plugins,!1,t));case j.enablePlugin:return T({},t,Mn(n.plugins,!0,t));default:return t}}}function Nn(e,t){return e.substring(t.length+1,e.length)}function Mn(e,t,n){return e.reduce(function(r,i){return r[i]=T({},n[i],{enabled:t}),r},n)}function Hr(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var Eo={last:{},history:[]};function Ao(e,t){e===void 0&&(e=Eo);var n=t.options,r=t.meta;if(t.type===j.track){var i=Hr(T({event:t.event,properties:t.properties},Object.keys(n).length&&{options:n},{meta:r}));return T({},e,{last:i,history:e.history.concat(i)})}return e}var jo={actions:[]};function To(e,t){e===void 0&&(e=jo);var n=t.payload;switch(t.type){case"queue":var r;return r=n&&n.type&&n.type===j.identify?[t].concat(e.actions):e.actions.concat(t),T({},e,{actions:r});case"dequeue":return[];default:return e}}var Kr=/#.*$/;function _o(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(t&&t[3]?t[3].split("?")[0].replace(Kr,""):"")}var qr,Xr,Fr,Jr,No=function(e){if(e===void 0&&(e={}),!Q)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,c=o.hash,u=o.search,p=(function(w){var h=(function(){if(Q){for(var I,S=document.getElementsByTagName("link"),v=0;I=S[v];v++)if(I.getAttribute("rel")==="canonical")return I.getAttribute("href")}})();return h?h.match(/\?/)?h:h+w:window.location.href.replace(Kr,"")})(u),l={title:n,url:p,path:_o(p),hash:c,search:u,width:a,height:s};return r&&r!==""&&(l.referrer=r),T({},l,e)},Mo={last:{},history:[]};function Co(e,t){e===void 0&&(e=Mo);var n=t.options;if(t.type===j.page){var r=Hr(T({properties:t.properties,meta:t.meta},Object.keys(n).length&&{options:n}));return T({},e,{last:r,history:e.history.concat(r)})}return e}qr=(function(){if(!Q)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"})(),Xr=Q?document.referrer:null,Fr=lo(),Jr=fo();var Cn={initialized:!1,sessionId:be(),app:null,version:null,debug:!1,offline:!!Q&&!navigator.onLine,os:{name:qr},userAgent:Q?navigator.userAgent:"node",library:{name:Pt,version:"0.13.1"},timezone:Jr,locale:Fr,campaign:{},referrer:Xr};function zo(e,t){e===void 0&&(e=Cn);var n=e.initialized,r=t.campaign;switch(t.type){case j.campaign:return T({},e,{campaign:r});case j.offline:return T({},e,{offline:!0});case j.online:return T({},e,{offline:!1});default:return n?e:T({},Cn,e,{initialized:!0})}}var Do=["plugins","reducers","storage"];function Uo(e,t,n){if(Q){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function Wo(e){var t=Uo.bind(null,"online offline",function(n){return Promise.resolve(!navigator.onLine).then(e)});return t(!0),function(n){return t(!1)}}function Br(){return de(Pt,[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch;return Object.assign(i,{dispatch:function(a){return Pe[Oe][Pt].push(a.action||a),o(a)}})}}}function zn(e){return function(){return Ee(Ee.apply(null,arguments),Br())}}function mt(e){return e?Dr(e)?e:[e]:[]}function Dn(e,t,n){e===void 0&&(e={});var r,i,o=be();return t&&(Ne[o]=(r=t,i=(function(a){for(var s,c=a||Array.prototype.slice.call(arguments),u=0;u<c.length;u++)if(Z(c[u])){s=c[u];break}return s})(n),function(a){i&&i(a),r(a)})),T({},e,{rid:o,ts:new Date().getTime()},t?{hasCallback:!0}:{})}function Vo(e){e===void 0&&(e={});var t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce(function(f,g){if(Z(g))return f.middlewares=f.middlewares.concat(g),f;if(g.NAMESPACE&&(g.name=g.NAMESPACE),!g.name)throw new Error("https://lytics.dev/errors/1");g.config||(g.config={});var P=g.EVENTS?Object.keys(g.EVENTS).map(function(U){return g.EVENTS[U]}):[];f.pluginEnabled[g.name]=!(g.enabled===!1||g.config.enabled===!1),delete g.enabled,g.methods&&(f.methods[g.name]=Object.keys(g.methods).reduce(function(U,J){var R;return U[J]=(R=g.methods[J],function(){for(var X=Array.prototype.slice.call(arguments),$=new Array(R.length),re=0;re<X.length;re++)$[re]=X[re];return $[$.length]=m,R.apply({instance:m},$)}),U},{}),delete g.methods);var N=Object.keys(g).concat(P),V=new Set(f.events.concat(N));if(f.events=Array.from(V),f.pluginsArray=f.pluginsArray.concat(g),f.plugins[g.name])throw new Error(g.name+"AlreadyLoaded");return f.plugins[g.name]=g,f.plugins[g.name].loaded||(f.plugins[g.name].loaded=function(){return!0}),f},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:fe,setItem:de,removeItem:Ae},o=(function(f){return function(g,P,N){return P.getState("user")[g]||(N&&Y(N)&&N[g]?N[g]:In(f)[g]||fe(At(g))||null)}})(i),a=r.plugins,s=r.events.filter(function(f){return!Et.includes(f)}).sort(),c=new Set(s.concat(qe).filter(function(f){return!Et.includes(f)})),u=Array.from(c).sort(),p=function(){return a},l=new Oo,w=l.addMiddleware,h=l.removeMiddleware,I=l.dynamicMiddlewares,S=function(){throw new Error("Abort disabled inListener")},v=po(),d=In(i),y=T({},d,n,v.an_uid?{userId:v.an_uid}:{},v.an_aid?{anonymousId:v.an_aid}:{});y.anonymousId||(y.anonymousId=be());var x=T({enable:function(f,g){return new Promise(function(P){E.dispatch({type:j.enablePlugin,plugins:mt(f),_:{originalAction:j.enablePlugin}},P,[g])})},disable:function(f,g){return new Promise(function(P){E.dispatch({type:j.disablePlugin,plugins:mt(f),_:{originalAction:j.disablePlugin}},P,[g])})}},r.methods),b=!1,m={identify:function(f,g,P,N){try{var V=ce(f)?f:null,U=Y(f)?f:g,J=P||{},R=m.user();de(At(se),V);var X=V||U.userId||o(se,m,U);return Promise.resolve(new Promise(function($){E.dispatch(T({type:j.identifyStart,userId:X,traits:U||{},options:J,anonymousId:R.anonymousId},R.id&&R.id!==V&&{previousId:R.id}),$,[g,P,N])}))}catch($){return Promise.reject($)}},track:function(f,g,P,N){try{var V=Y(f)?f.event:f;if(!V||!ce(V))throw new Error("EventMissing");var U=Y(f)?f:g||{},J=Y(P)?P:{};return Promise.resolve(new Promise(function(R){E.dispatch({type:j.trackStart,event:V,properties:U,options:J,userId:o(se,m,g),anonymousId:o(xe,m,g)},R,[g,P,N])}))}catch(R){return Promise.reject(R)}},page:function(f,g,P){try{var N=Y(f)?f:{},V=Y(g)?g:{};return Promise.resolve(new Promise(function(U){E.dispatch({type:j.pageStart,properties:No(N),options:V,userId:o(se,m,N),anonymousId:o(xe,m,N)},U,[f,g,P])}))}catch(U){return Promise.reject(U)}},user:function(f){if(f===se||f==="id")return o(se,m);if(f===xe||f==="anonId")return o(xe,m);var g=m.getState("user");return f?vn(g,f):g},reset:function(f){return new Promise(function(g){E.dispatch({type:j.resetStart},g,f)})},ready:function(f){return b&&f({plugins:x,instance:m}),m.on(j.ready,function(g){f&&f(g),b=!0})},on:function(f,g){if(!f||!Z(g))return!1;if(f===j.bootstrap)throw new Error(".on disabled for "+f);var P=/Start$|Start:/;if(f==="*"){var N=function(R){return function(X){return function($){return $.type.match(P)&&g({payload:$,instance:m,plugins:a}),X($)}}},V=function(R){return function(X){return function($){return $.type.match(P)||g({payload:$,instance:m,plugins:a}),X($)}}};return w(N,Re),w(V,He),function(){h(N,Re),h(V,He)}}var U=f.match(P)?Re:He,J=function(R){return function(X){return function($){return $.type===f&&g({payload:$,instance:m,plugins:a,abort:S}),X($)}}};return w(J,U),function(){return h(J,U)}},once:function(f,g){if(!f||!Z(g))return!1;if(f===j.bootstrap)throw new Error(".once disabled for "+f);var P=m.on(f,function(N){g({payload:N.payload,instance:m,plugins:a,abort:S}),P()});return P},getState:function(f){var g=E.getState();return f?vn(g,f):Object.assign({},g)},dispatch:function(f){var g=ce(f)?{type:f}:f;if(qe.includes(g.type))throw new Error("reserved action "+g.type);var P=T({},g,{_:T({originalAction:g.type},f._||{})});E.dispatch(P)},enablePlugin:x.enable,disablePlugin:x.disable,plugins:x,storage:{getItem:i.getItem,setItem:function(f,g,P){E.dispatch({type:j.setItemStart,key:f,value:g,options:P})},removeItem:function(f,g){E.dispatch({type:j.removeItemStart,key:f,options:g})}},setAnonymousId:function(f,g){m.storage.setItem(le,f,g)},events:{core:qe,plugins:s}},O=r.middlewares.concat([function(f){return function(g){return function(P){return P.meta||(P.meta=Dn()),g(P)}}},I(Re),Io(m,p,{all:u,plugins:s}),ko(i),yo(m),wo(m),I(He)]),k={context:zo,user:bo(i),page:Co,track:Ao,plugins:Po(p),queue:To},M=Ee,C=Ee;if(Q&&e.debug){var A=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;A&&(M=A({trace:!0,traceLimit:25})),C=function(){return arguments.length===0?Br():Y(typeof arguments[0])?zn():zn().apply(null,arguments)}}var W,z=(function(f){return Object.keys(f).reduce(function(g,P){return Do.includes(P)||(g[P]=f[P]),g},{})})(e),H=r.pluginsArray.reduce(function(f,g){var P=g.name,N=g.config,V=g.loaded,U=r.pluginEnabled[P];return f[P]={enabled:U,initialized:!!U&&!g.initialize,loaded:!!V({config:N}),config:N},f},{}),L={context:z,user:y,plugins:H},E=Vr((function(f){for(var g=Object.keys(f),P={},N=0;N<g.length;N++){var V=g[N];typeof f[V]===ue&&(P[V]=f[V])}var U,J=Object.keys(P);try{(function(R){Object.keys(R).forEach(function(X){var $=R[X];if(typeof $(void 0,{type:Ot})===ie||typeof $(void 0,{type:mo})===ie)throw new Error(Ce+" "+X+" "+ie)})})(P)}catch(R){U=R}return function(R,X){if(R===void 0&&(R={}),U)throw U;for(var $=!1,re={},st=0;st<J.length;st++){var We=J[st],on=R[We],ut=(0,P[We])(on,X);if(typeof ut===ie){var bi=ho(We,X);throw new Error(bi)}re[We]=ut,$=$||ut!==on}return $?re:R}})(T({},k,t)),L,C(M(vo.apply(void 0,O))));E.dispatch=(W=E.dispatch,function(f,g,P){var N=T({},f,{meta:Dn(f.meta,g,mt(P))});return W.apply(null,[N])});var K=Object.keys(a);E.dispatch({type:j.bootstrap,plugins:K,config:z,params:v,user:y,initialUser:n,persistedUser:d});var D=K.filter(function(f){return r.pluginEnabled[f]}),_=K.filter(function(f){return!r.pluginEnabled[f]});return E.dispatch({type:j.registerPlugins,plugins:K,enabled:r.pluginEnabled}),r.pluginsArray.map(function(f,g){var P=f.bootstrap,N=f.config,V=f.name;P&&Z(P)&&P({instance:m,config:N,payload:f}),E.dispatch({type:j.registerPluginType(V),name:V,enabled:r.pluginEnabled[V],plugin:f}),r.pluginsArray.length===g+1&&E.dispatch({type:j.initializeStart,plugins:D,disabled:_})}),Wo(function(f){E.dispatch({type:f?j.offline:j.online})}),(function(f,g,P){setInterval(function(){return $r(f,g,P)},3e3)})(E,p,m),m}var Re="before",He="after",he="cookie",pe=Qr(),qt=tt,Gr=tt;function Yr(e){return pe?tt(e,"",-1):Ae(e)}function Qr(){if(pe!==void 0)return pe;var e=he+he;try{tt(e,e),pe=document.cookie.indexOf(e)!==-1,Yr(e)}catch{pe=!1}return pe}function tt(e,t,n,r,i,o){if(typeof window<"u"){var a=arguments.length>1;return pe===!1&&(a?de(e,t):fe(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var oe="localStorage",Lo=Kt.bind(null,oe),Xt=je(oe,"getItem",fe),$o=je(oe,"setItem",de),Zr=je(oe,"removeItem",Ae),ae="sessionStorage",Ro=Kt.bind(null,ae),Ho=je(ae,"getItem",fe),Ko=je(ae,"setItem",de);je(ae,"removeItem",Ae);function ke(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(Y(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var qo=Lo(),Xo=Ro(),Fo=Qr();function ei(e,t){if(e){var n=Ft(t),r=!Yt(n),i=Jt(n)?ke(localStorage.getItem(e)):void 0;if(r&&!we(i))return i;var o=Bt(n)?ke(qt(e)):void 0;if(r&&o)return o;var a=Gt(n)?ke(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=fe(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function Jo(e,t,n){if(e&&!we(t)){var r={},i=Ft(n),o=JSON.stringify(t),a=!Yt(i);return Jt(i)&&(r[oe]=Ke(oe,t,ke(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[oe]:Bt(i)&&(r[he]=Ke(he,t,ke(qt(e))),Gr(e,o),a)?r[he]:Gt(i)&&(r[ae]=Ke(ae,t,ke(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[ae]:(r[ge]=Ke(ge,t,fe(e)),de(e,t),a?r[ge]:r)}}function Bo(e,t){if(e){var n=Ft(t),r=ei(e,Mr),i={};return!we(r.localStorage)&&Jt(n)&&(localStorage.removeItem(e),i[oe]=r.localStorage),!we(r.cookie)&&Bt(n)&&(Yr(e),i[he]=r.cookie),!we(r.sessionStorage)&&Gt(n)&&(sessionStorage.removeItem(e),i[ae]=r.sessionStorage),!we(r.global)&&nt(n,ge)&&(Ae(e),i[ge]=r.global),i}}function Ft(e){return e?ce(e)?e:e.storage:Nr}function Jt(e){return qo&&nt(e,oe)}function Bt(e){return Fo&&nt(e,he)}function Gt(e){return Xo&&nt(e,ae)}function Yt(e){return e===Mr||e==="all"}function nt(e,t){return e===Nr||e===t||Yt(e)}function Ke(e,t,n){return{location:e,current:t,previous:n}}var Go={setItem:Jo,getItem:ei,removeItem:Bo};function Yo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Un(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:Go};return Vo(Wn(Wn({},t),e))}function ee(e){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(e)}function Zo(e,t){if(ee(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ee(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ea(e){var t=Zo(e,"string");return ee(t)=="symbol"?t:t+""}function Qt(e,t,n){return(t=ea(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vn(Object(n),!0).forEach(function(r){Qt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ln={exports:{}},$n={exports:{}},Rn;function ti(){return Rn||(Rn=1,(function(e){function t(n,r){this.v=n,this.k=r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($n)),$n.exports}var Hn={exports:{}},Kn={exports:{}},qn;function ni(){return qn||(qn=1,(function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}e.exports=t=function(s,c,u,p){function l(w,h){t(s,w,function(I){return this._invoke(w,h,I)})}c?a?a(s,c,{value:u,enumerable:!p,configurable:!p,writable:!p}):s[c]=u:(l("next",0),l("throw",1),l("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Kn)),Kn.exports}var Xn;function ri(){return Xn||(Xn=1,(function(e){var t=ni();function n(){var r,i,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function c(v,d,y,x){var b=d&&d.prototype instanceof p?d:p,m=Object.create(b.prototype);return t(m,"_invoke",(function(O,k,M){var C,A,W,z=0,H=M||[],L=!1,E={p:0,n:0,v:r,a:K,f:K.bind(r,4),d:function(D,_){return C=D,A=0,W=r,E.n=_,u}};function K(D,_){for(A=D,W=_,i=0;!L&&z&&!f&&i<H.length;i++){var f,g=H[i],P=E.p,N=g[2];D>3?(f=N===_)&&(W=g[(A=g[4])?5:(A=3,3)],g[4]=g[5]=r):g[0]<=P&&((f=D<2&&P<g[1])?(A=0,E.v=_,E.n=g[1]):P<N&&(f=D<3||g[0]>_||_>N)&&(g[4]=D,g[5]=_,E.n=N,A=0))}if(f||D>1)return u;throw L=!0,_}return function(D,_,f){if(z>1)throw TypeError("Generator is already running");for(L&&_===1&&K(_,f),A=_,W=f;(i=A<2?r:W)||!L;){C||(A?A<3?(A>1&&(E.n=-1),K(A,W)):E.n=W:E.v=W);try{if(z=2,C){if(A||(D="next"),i=C[D]){if(!(i=i.call(C,W)))throw TypeError("iterator result is not an object");if(!i.done)return i;W=i.value,A<2&&(A=0)}else A===1&&(i=C.return)&&i.call(C),A<2&&(W=TypeError("The iterator does not provide a '"+D+"' method"),A=1);C=r}else if((i=(L=E.n<0)?W:O.call(k,E))!==u)break}catch(g){C=r,A=1,W=g}finally{z=1}}return{value:i,done:L}}})(v,y,x),!0),m}var u={};function p(){}function l(){}function w(){}i=Object.getPrototypeOf;var h=[][a]?i(i([][a]())):(t(i={},a,function(){return this}),i),I=w.prototype=p.prototype=Object.create(h);function S(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,w):(v.__proto__=w,t(v,s,"GeneratorFunction")),v.prototype=Object.create(I),v}return l.prototype=w,t(I,"constructor",w),t(w,"constructor",l),l.displayName="GeneratorFunction",t(w,s,"GeneratorFunction"),t(I),t(I,s,"Generator"),t(I,a,function(){return this}),t(I,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:c,m:S}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Hn)),Hn.exports}var Fn={exports:{}},Jn={exports:{}},Bn={exports:{}},Gn;function ii(){return Gn||(Gn=1,(function(e){var t=ti(),n=ni();function r(i,o){function a(c,u,p,l){try{var w=i[c](u),h=w.value;return h instanceof t?o.resolve(h.v).then(function(I){a("next",I,p,l)},function(I){a("throw",I,p,l)}):o.resolve(h).then(function(I){w.value=I,p(w)},function(I){return a("throw",I,p,l)})}catch(I){l(I)}}var s;this.next||(n(r.prototype),n(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(c,u,p){function l(){return new o(function(w,h){a(c,p,w,h)})}return s=s?s.then(l,l):l()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Bn)),Bn.exports}var Yn;function oi(){return Yn||(Yn=1,(function(e){var t=ri(),n=ii();function r(i,o,a,s,c){return new n(t().w(i,o,a,s),c||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Jn)),Jn.exports}var Qn;function ta(){return Qn||(Qn=1,(function(e){var t=oi();function n(r,i,o,a,s){var c=t(r,i,o,a,s);return c.next().then(function(u){return u.done?u.value:c.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Fn)),Fn.exports}var Zn={exports:{}},er;function na(){return er||(er=1,(function(e){function t(n){var r=Object(n),i=[];for(var o in r)i.unshift(o);return function a(){for(;i.length;)if((o=i.pop())in r)return a.value=o,a.done=!1,a;return a.done=!0,a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zn)),Zn.exports}var tr={exports:{}},nr={exports:{}},rr;function ra(){return rr||(rr=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nr)),nr.exports}var ir;function ia(){return ir||(ir=1,(function(e){var t=ra().default;function n(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],o=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}}}throw new TypeError(t(r)+" is not iterable")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(tr)),tr.exports}var or;function oa(){return or||(or=1,(function(e){var t=ti(),n=ri(),r=ta(),i=oi(),o=ii(),a=na(),s=ia();function c(){var u=n(),p=u.m(c),l=(Object.getPrototypeOf?Object.getPrototypeOf(p):p.__proto__).constructor;function w(S){var v=typeof S=="function"&&S.constructor;return!!v&&(v===l||(v.displayName||v.name)==="GeneratorFunction")}var h={throw:1,return:2,break:3,continue:3};function I(S){var v,d;return function(y){v||(v={stop:function(){return d(y.a,2)},catch:function(){return y.v},abrupt:function(x,b){return d(y.a,h[x],b)},delegateYield:function(x,b,m){return v.resultName=b,d(y.d,s(x),m)},finish:function(x){return d(y.f,x)}},d=function(x,b,m){y.p=v.prev,y.n=v.next;try{return x(b,m)}finally{v.next=y.n}}),v.resultName&&(v[v.resultName]=y.v,v.resultName=void 0),v.sent=y.v,v.next=y.n;try{return S.call(this,v)}finally{y.p=v.prev,y.n=v.next}}}return(e.exports=c=function(){return{wrap:function(S,v,d,y){return u.w(I(S),v,d,y&&y.reverse())},isGeneratorFunction:w,mark:u.m,awrap:function(S,v){return new t(S,v)},AsyncIterator:o,async:function(S,v,d,y,x){return(w(v)?i:r)(I(S),v,d,y,x)},keys:a,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports})(Ln)),Ln.exports}var ht,ar;function aa(){if(ar)return ht;ar=1;var e=oa()();ht=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return ht}var sa=aa(),q=ct(sa);function sr(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function ne(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(c){sr(o,r,i,a,s,"next",c)}function s(c){sr(o,r,i,a,s,"throw",c)}a(void 0)})}}var ur=function(){};function ua(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,c=t.onEmpty||ur,u=t.onPause||ur;function p(w){clearInterval(n);var h=o.splice(0,a);return h.length&&e(h,o),o.length?w?p():l():(i=!1,c(o))}function l(){i=!0,n=setInterval(p,s)}return o.length&&l(),{flush:function(w){p(w)},resume:p,push:function(w){return(r=o.push(w))>=a&&!t.throttle&&p(),i||l(),r},size:function(){return o.length},pause:function(w){w&&p(),clearInterval(n),i=!1,u(o)}}}var Xe="__",rt="session",ai=Xe+rt,si="page",cr=["id","createdAt","created"];function jt(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function ui(){var e=jt(),t=e[0],n=e[1];return{id:be(),created:n,createdAt:t}}var ca={session:[Ho,Ko],page:[fe,de]};function it(e,t){for(var n=ca[e],r=n[0],i=n[1],o=ui(),a=!1,s={},c=0;c<cr.length;c++){var u=cr[c],p=Xe+e+Xe+rt+Xe+u,l=r(p);a=t||!l,(t||!t&&!l)&&i(p,o[u]);var w=l&&!t?l:o[u],h=u!=="created"?w:Number(w);s[u]=h}return Zt(s,a)}function Zt(e,t){var n=Date.now();return e.elapsed=n-e.created,e.expires&&(e.remaining=Math.max(e.expires-n,0),e.isExpired=e.remaining===0),e.isNew=t,e}function De(e,t){e===void 0&&(e=30);var n=qt(ai),r=n?JSON.parse(n):Ye(e);return t?r:Zt(r,!n)}function Ye(e,t,n){e===void 0&&(e=30);var r=n?De(e,!0):ui(),i=60*e,o=r.created;if(n){var a=jt(),s=a[0],c=a[1];r.modified=c,r.modifiedAt=s,o=c}var u=jt(o+1e3*i),p=u[0];return r.expires=u[1],r.expiresAt=p,r.duration=1e3*i,t&&(r=Object.assign(r,t)),Gr(ai,JSON.stringify(r),i),Zt(r,!n)}var la=function(e,t){return Ye(e,t,!0)},ci=it.bind(null,rt),fa=it.bind(null,rt,!0),en=it.bind(null,si),lr=it.bind(null,si,!0),ve=typeof window<"u";function da(e){return typeof e=="string"}function fr(e){return typeof e=="boolean"}var vt,dr;function pa(){if(dr)return vt;dr=1;var e=function(d){return t(d)&&!n(d)};function t(d){return!!d&&typeof d=="object"}function n(d){var y=Object.prototype.toString.call(d);return y==="[object RegExp]"||y==="[object Date]"||o(d)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(d){return d.$$typeof===i}function a(d){return Array.isArray(d)?[]:{}}function s(d,y){return y.clone!==!1&&y.isMergeableObject(d)?S(a(d),d,y):d}function c(d,y,x){return d.concat(y).map(function(b){return s(b,x)})}function u(d,y){if(!y.customMerge)return S;var x=y.customMerge(d);return typeof x=="function"?x:S}function p(d){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(d).filter(function(y){return Object.propertyIsEnumerable.call(d,y)}):[]}function l(d){return Object.keys(d).concat(p(d))}function w(d,y){try{return y in d}catch{return!1}}function h(d,y){return w(d,y)&&!(Object.hasOwnProperty.call(d,y)&&Object.propertyIsEnumerable.call(d,y))}function I(d,y,x){var b={};return x.isMergeableObject(d)&&l(d).forEach(function(m){b[m]=s(d[m],x)}),l(y).forEach(function(m){h(d,m)||(w(d,m)&&x.isMergeableObject(y[m])?b[m]=u(m,x)(d[m],y[m],x):b[m]=s(y[m],x))}),b}function S(d,y,x){x=x||{},x.arrayMerge=x.arrayMerge||c,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=s;var b=Array.isArray(y),m=Array.isArray(d),O=b===m;return O?b?x.arrayMerge(d,y,x):I(d,y,x):s(y,x)}S.all=function(d,y){if(!Array.isArray(d))throw new Error("first argument should be an array");return d.reduce(function(x,b){return S(x,b,y)},{})};var v=S;return vt=v,vt}var ga=pa(),ma=ct(ga),Tt=new TextEncoder,ha={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},va=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),_t=class{constructor({accessKeyId:t,secretAccessKey:n,sessionToken:r,service:i,region:o,cache:a,retries:s,initRetryMs:c}){if(t==null)throw new TypeError("accessKeyId is a required option");if(n==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=t,this.secretAccessKey=n,this.sessionToken=r,this.service=i,this.region=o,this.cache=a||new Map,this.retries=s??10,this.initRetryMs=c||50}async sign(t,n){if(t instanceof Request){let{method:o,url:a,headers:s,body:c}=t;n=Object.assign({method:o,url:a,headers:s},n),n.body==null&&s.has("Content-Type")&&(n.body=c!=null&&s.has("X-Amz-Content-Sha256")?c:await t.clone().arrayBuffer()),t=a}let r=new Nt(Object.assign({url:t.toString()},n,this,n&&n.aws)),i=Object.assign({},n,await r.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(o){if(o instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw o}}async fetch(t,n){for(let r=0;r<=this.retries;r++){let i=fetch(await this.sign(t,n));if(r===this.retries)return i;let o=await i;if(o.status<500&&o.status!==429)return o;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,r)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Nt=class{constructor({method:t,url:n,headers:r,body:i,accessKeyId:o,secretAccessKey:a,sessionToken:s,service:c,region:u,cache:p,datetime:l,signQuery:w,appendSessionToken:h,allHeaders:I,singleEncode:S}){if(n==null)throw new TypeError("url is a required option");if(o==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=t||(i?"POST":"GET"),this.url=new URL(n),this.headers=new Headers(r||{}),this.body=i,this.accessKeyId=o,this.secretAccessKey=a,this.sessionToken=s;let v,d;(!c||!u)&&([v,d]=ya(this.url,this.headers)),this.service=c||v||"",this.region=u||d||"us-east-1",this.cache=p||new Map,this.datetime=l||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=w,this.appendSessionToken=h||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let y=this.signQuery?this.url.searchParams:this.headers;if(y.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&y.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(b=>I||!va.has(b)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(b=>b+":"+(b==="host"?this.url.host:(this.headers.get(b)||"").replace(/\s+/g," "))).join(`
4
+ `),this.credentialString=[this.datetime.slice(0,8),this.region,this.service,"aws4_request"].join("/"),this.signQuery&&(this.service==="s3"&&!y.has("X-Amz-Expires")&&y.set("X-Amz-Expires","86400"),y.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),y.set("X-Amz-Credential",this.accessKeyId+"/"+this.credentialString),y.set("X-Amz-SignedHeaders",this.signedHeaders)),this.service==="s3")try{this.encodedPath=decodeURIComponent(this.url.pathname.replace(/\+/g," "))}catch{this.encodedPath=this.url.pathname}else this.encodedPath=this.url.pathname.replace(/\/+/g,"/");S||(this.encodedPath=encodeURIComponent(this.encodedPath).replace(/%2F/g,"/")),this.encodedPath=mr(this.encodedPath);let x=new Set;this.encodedSearch=[...this.url.searchParams].filter(([b])=>{if(!b)return!1;if(this.service==="s3"){if(x.has(b))return!1;x.add(b)}return!0}).map(b=>b.map(m=>mr(encodeURIComponent(m)))).sort(([b,m],[O,k])=>b<O?-1:b>O?1:m<k?-1:m>k?1:0).map(b=>b.join("=")).join("&")}async sign(){return this.signQuery?(this.url.searchParams.set("X-Amz-Signature",await this.signature()),this.sessionToken&&this.appendSessionToken&&this.url.searchParams.set("X-Amz-Security-Token",this.sessionToken)):this.headers.set("Authorization",await this.authHeader()),{method:this.method,url:this.url,headers:this.headers,body:this.body}}async authHeader(){return["AWS4-HMAC-SHA256 Credential="+this.accessKeyId+"/"+this.credentialString,"SignedHeaders="+this.signedHeaders,"Signature="+await this.signature()].join(", ")}async signature(){let t=this.datetime.slice(0,8),n=[this.secretAccessKey,t,this.region,this.service].join(),r=this.cache.get(n);if(!r){let i=await Te("AWS4"+this.secretAccessKey,t),o=await Te(i,this.region),a=await Te(o,this.service);r=await Te(a,"aws4_request"),this.cache.set(n,r)}return yt(await Te(r,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,yt(await pr(await this.canonicalString()))].join(`
5
+ `)}async canonicalString(){return[this.method.toUpperCase(),this.encodedPath,this.encodedSearch,this.canonicalHeaders+`
6
+ `,this.signedHeaders,await this.hexBodyHash()].join(`
7
+ `)}async hexBodyHash(){let t=this.headers.get("X-Amz-Content-Sha256")||(this.service==="s3"&&this.signQuery?"UNSIGNED-PAYLOAD":null);if(t==null){if(this.body&&typeof this.body!="string"&&!("byteLength"in this.body))throw new Error("body must be a string, ArrayBuffer or ArrayBufferView, unless you include the X-Amz-Content-Sha256 header");t=yt(await pr(this.body||""))}return t}};async function Te(e,t){let n=await crypto.subtle.importKey("raw",typeof e=="string"?Tt.encode(e):e,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]);return crypto.subtle.sign("HMAC",n,Tt.encode(t))}async function pr(e){return crypto.subtle.digest("SHA-256",typeof e=="string"?Tt.encode(e):e)}var gr=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function yt(e){let t=new Uint8Array(e),n="";for(let r=0;r<t.length;r++){let i=t[r];n+=gr[i>>>4&15],n+=gr[i&15]}return n}function mr(e){return e.replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())}function ya(e,t){let{hostname:n,pathname:r}=e;if(n.endsWith(".on.aws")){let s=n.match(/^[^.]{1,63}\.lambda-url\.([^.]{1,63})\.on\.aws$/);return s!=null?["lambda",s[1]||""]:["",""]}if(n.endsWith(".r2.cloudflarestorage.com"))return["s3","auto"];if(n.endsWith(".backblazeb2.com")){let s=n.match(/^(?:[^.]{1,63}\.)?s3\.([^.]{1,63})\.backblazeb2\.com$/);return s!=null?["s3",s[1]||""]:["",""]}let i=n.replace("dualstack.","").match(/([^.]{1,63})\.(?:([^.]{0,63})\.)?amazonaws\.com(?:\.cn)?$/),o=i&&i[1]||"",a=i&&i[2];if(a==="us-gov")a="us-gov-west-1";else if(a==="s3"||a==="s3-accelerate")a="us-east-1",o="s3";else if(o==="iot")n.startsWith("iot.")?o="execute-api":n.startsWith("data.jobs.iot.")?o="iot-jobs-data":o=r==="/mqtt"?"iotdevicegateway":"iotdata";else if(o==="autoscaling"){let s=(t.get("X-Amz-Target")||"").split(".")[0];s==="AnyScaleFrontendService"?o="application-autoscaling":s==="AnyScaleScalingPlannerFrontendService"&&(o="autoscaling-plans")}else a==null&&o.startsWith("s3-")?(a=o.slice(3).replace(/^fips-|^external-1/,""),o="s3"):o.endsWith("-fips")?o=o.slice(0,-5):a&&/-\d$/.test(o)&&!/-\d$/.test(a)&&([o,a]=[a,o]);return[ha[o]||o,a||""]}var tn="Event",hr=tn+"Listener";function ba(e){return function(t,n,r,i){var o=r||Bi,a=i||!1;if(!Q)return o;var s=Qe(n),c=Qe(t,!0);if(!c.length)throw new Error("noElements");if(!s.length)throw new Error("no"+tn);var u=[];return(function p(l){l&&(u=[]);for(var w=l?"add"+hr:"remove"+hr,h=0;h<c.length;h++){var I=c[h];u[h]=l?a&&a.once?wa(o):o:u[h]||o;for(var S=0;S<s.length;S++)I[w]?I["on"+s[S]]=l?u[h]:null:I[w](s[S],u[h],a)}return p.bind(null,!l)})(e)}}function Qe(e,t){if(ce(e))return t?Qe(document.querySelectorAll(e)):(n=e).split(n.indexOf(",")>-1?",":" ").map(function(a){return a.trim()});var n;if(NodeList.prototype.isPrototypeOf(e)){for(var r=[],i=e.length>>>0;i--;)r[i]=e[i];return r}var o=co(e);return t?o.map(function(a){return ce(a)?Qe(a,!0):a}).flat():o}function wa(e,t){var n;return function(){return e&&(n=e.apply(this,arguments),e=null),n}}var bt=ba(tn);function li(e,t){return Q&&Z(window[e])?(n=window[e],r=t,(i=window)===void 0&&(i=null),Z(n)?function(){n.apply(i,arguments),r.apply(i,arguments)}:r):window[e]=t;var n,r,i}li.bind(null,"onerror");li.bind(null,"onload");var fi=typeof window>"u",vr="hidden";function xa(e){if(fi)return!1;var t=Sa(),n="".concat(t.replace(/[H|h]idden/,""),"visibilitychange"),r=function(){return e(!!document[t])},i=function(){return document.addEventListener(n,r)};return i(),function(){return document.removeEventListener(n,r),i}}function Sa(){var e=["webkit","moz","ms","o"];return fi||vr in document?vr:e.reduce(function(t,n){var r=n+"Hidden";return!t&&r in document?r:t},null)}var Ia=["mousemove","mousedown","touchmove","touchstart","touchend","keydown"];function ka(e,t){t===void 0&&(t={});var n=(function(a,s){var c=this,u=!1;return function(p){u||(a.call(c,p),u=!0,setTimeout(function(){return u=!1},s))}})(e,t.throttle||1e4),r=[];function i(){var a=xa(function(s){s||n({type:"tabVisible"})});return r=[a].concat(Ia.map(function(s){return bt(document,s,n)})).concat(bt(window,"load",n)).concat(bt(window,"scroll",n,{capture:!0,passive:!0})),o}function o(){r.map(function(a){return a()})}return i(),function(){return o(),i}}function Oa(e){var t,n,r=e.onIdle,i=e.onWakeUp,o=e.onHeartbeat,a=e.timeout,s=a,c=e.throttle,u=c,p=!1,l=!1,w=new Date,h=function(){return clearTimeout(t)};function I(v){h(),o&&!p&&o(_e(w),v),i&&p&&(p=!1,i(_e(n),v),w=new Date),t=setTimeout(function(){p=!0,r&&(n=new Date,r(_e(w),v))},s)}var S=ka(I,{throttle:u});return{disable:function(){l=!0,p=!1,h();var v=S();return function(){return l=!1,w=new Date,I({type:"load"}),v()}},getStatus:function(){return{isIdle:p,isDisabled:l,active:p?0:_e(w,l),idle:p?_e(n,l):0}}}}function _e(e,t){return t?0:Math.round((new Date-e)/1e3)}var di="object",Pa="string",yr="?",B="name",G="version",Ea="",br="function",Aa="undefined",ja="BlackBerry",Ta="Chrome",_a="Firefox",wr={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Na=[[/microsoft (windows) (vista|xp)/i],[B,G],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[B,[G,xr,wr]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[B,"Windows"],[G,xr,wr]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[G,/_/g,"."],[B,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[B,"MacOS"],[G,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[G,B],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[B,G],[/\(bb(10);/i],[G,[B,ja]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[G,[B,_a+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[G,[B,"webOS"]],[/crkey\/([\d\.]+)/i],[G,[B,Ta+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[B,"Chromium OS"],G],[/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/(unix) ?([\w\.]*)/i],[B,G]];function Ma(e,t){for(var n=0,r,i,o,a,s,c;n<t.length&&!s;){var u=t[n],p=t[n+1];for(r=i=0;r<u.length&&!s;)if(s=u[r++].exec(e),s)for(o=0;o<p.length;o++)c=s[++i],a=p[o],ee(a)===di&&a.length>0?a.length==2?ee(a[1])==br?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:a.length==3?ee(a[1])===br&&!(a[1].exec&&a[1].test)?this[a[0]]=c?a[1].call(this,c,a[2]):void 0:this[a[0]]=c?c.replace(a[1],a[2]):void 0:a.length==4&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):void 0):this[a]=c||void 0;n+=2}}function xr(e,t){for(var n in t)if(ee(t[n])===di&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Sr(t[n][r],e))return n===yr?void 0:n}else if(Sr(t[n],e))return n===yr?void 0:n;return e}function Sr(e,t){return ee(e)===Pa?Ir(t).indexOf(Ir(e))!==-1:!1}function Ir(e){return e.toLowerCase()}function Ca(e){var t=(typeof window>"u"?"undefined":ee(window))!==Aa&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:Ea,n={};return n[B]=void 0,n[G]=void 0,Ma.call(n,t,Na),n}var pi="Brave";function nn(){if(typeof window>"u")return{};if(!window.navigator)return{};var e=window.navigator,t=e.platform,n=e.product,r=e.vendor,i=Ua(window.navigator),o=i.type,a=i.version,s=o===pi?o:(r||"").split(" ")[0];return{platform:t,os:Ca(),make:s||n,model:o,version:a,name:[o,a].join("/"),language:za(),timezone:Da()}}function za(){var e=window.navigator,t=e.language,n=e.browserLanguage,r=e.languages;return(t||n||(r||["en_US"])[0]).toLowerCase().replace("-","_")}function Da(){var e=/\(([A-Za-z\s].*)\)/.exec(new Date().toString());return e&&e[1]||""}function Ua(e){var t=e.userAgent,n=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(t);if(n)return{type:n[1],version:n[2]};var r=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(t);if(r)return{type:r[1],version:r[2]};var i=/(headlesschrome)(?:\/([\w\.]+)| )/i.exec(t);if(i)return{type:i[1],version:i[2]};var o=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(t);if(o){var a=e.brave&&e.brave.isBrave||!1;return{type:a?pi:o[1],version:o[2]}}var s=/.+(Safari)\/([0-9\.]+).*/i.exec(t);if(s)return{type:s[1],version:s[2]};var c=/.+(AppleWebKit)\/([0-9\.]+).*/i.exec(t);if(c)return{type:c[1],version:c[2]};var u=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(t),p=u||["","NA","0.0.0"];return{type:p[1],version:p[2]}}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t[e]||e}function Mt(e){return Ct.apply(this,arguments)}function Ct(){return Ct=ne(q.mark(function e(t){var n,r,i,o,a,s,c=arguments;return q.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n=c.length>1&&c[1]!==void 0?c[1]:!1,r={},u.t0=q.keys(t);case 3:if((u.t1=u.t0()).done){u.next=13;break}return i=u.t1.value,o=Array.isArray(t[i])?t[i]:[t[i]],a=n?o:o[0],u.next=9,mi(a,Va);case 9:s=u.sent,hi(s)||(r[i]=s),u.next=3;break;case 13:return u.abrupt("return",r);case 14:case"end":return u.stop()}},e)})),Ct.apply(this,arguments)}function gi(e){return zt.apply(this,arguments)}function zt(){return zt=ne(q.mark(function e(t){var n,r;return q.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n={},i.t0=q.keys(t);case 2:if((i.t1=i.t0()).done){i.next=9;break}return r=i.t1.value,i.next=6,mi(t[r],La);case 6:n[r]=i.sent,i.next=2;break;case 9:return i.abrupt("return",n);case 10:case"end":return i.stop()}},e)})),zt.apply(this,arguments)}function mi(e,t){return Dt.apply(this,arguments)}function Dt(){return Dt=ne(q.mark(function e(t,n){return q.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(typeof t!="function"){r.next=4;break}return r.next=3,t();case 3:t=r.sent;case 4:return r.abrupt("return",n(t));case 5:case"end":return r.stop()}},e)})),Dt.apply(this,arguments)}function Va(e){if(e!=null)return Array.isArray(e)?e.filter($a).map(function(t){return t.toString()}):hi(e)?e:e.toString()}function La(e){return parseFloat(Number(Array.isArray(e)?e[0]:e))}function $a(e){return e!==null&&typeof e<"u"}function hi(e){return e==null}var Ut="_session.start",ot="_session.stop",vi="pageView";function Ra(e){return Wt.apply(this,arguments)}function Wt(){return Wt=ne(q.mark(function e(t){var n,r,i,o,a,s,c,u,p,l,w,h,I,S,v,d,y,x,b,m,O,k,M,C,A,W,z,H,L,E,K,D=arguments;return q.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(n=D.length>1&&D[1]!==void 0?D[1]:{},r=D.length>2&&D[2]!==void 0?D[2]:{},i=r.appTitle,o=r.appPackageName,a=r.appVersionCode,s=r.eventMapping,c=r.enrichEventAttributes,u=r.enrichEventMetrics,p=r.debug,l=p?console.log:function(){},w=Wa(t,s),h=De(),I=n.sessionId||h.id,S=n.sessionStart||h.createdAt,v=n.sessionStart?new Date(n.sessionStart).getTime():h.created,l("event sessionData ",JSON.stringify(h)),ve&&(d=en(),y=ci(),l("event pageSessionInfo",JSON.stringify(d)),l("event tabSessionData ",JSON.stringify(y))),x=n.attributes||{},b=n.eventId||be(),m=n.time?new Date(n.time):new Date,O=m.toISOString(),k=m.getTime()-v,M=F({date:O,sessionId:I},ve?{pageSession:d.id}:{}),!c){_.next=23;break}return _.next=20,c();case 20:_.t0=_.sent,_.next=24;break;case 23:_.t0={};case 24:if(C=_.t0,A=F(F(F({},M),C),x),W=n.metrics||{},z={sessionTime:h.elapsed||k,hour:m.getHours(),day:m.getDay()+1,month:m.getMonth()+1,year:m.getFullYear()},!u){_.next=34;break}return _.next=31,u();case 31:_.t1=_.sent,_.next=35;break;case 34:_.t1={};case 35:return H=_.t1,L=F(F(F({},z),H),W),_.next=39,Mt(A);case 39:return _.t2=_.sent,_.next=42,gi(L);case 42:return _.t3=_.sent,E={attributes:_.t2,metrics:_.t3},l("".concat(b,":").concat(w)),l("eventAttributes",E.attributes),l("eventMetrics",E.metrics),ve&&l("clientInfo",nn()),K=Qt({},b,F(F({EventType:w,Timestamp:O,AppPackageName:o,AppTitle:i},a?{AppVersionCode:a}:{}),{},{Attributes:E.attributes,Metrics:E.metrics,Session:{Id:I,StartTimestamp:S}})),t===ot&&(K[b].Session.Duration=k,K[b].Session.StopTimestamp=O),_.abrupt("return",K);case 51:case"end":return _.stop()}},e)})),Wt.apply(this,arguments)}var Ha="__endpoint";function at(e){return"".concat(Ha,".").concat(e)}var kr="__endpoint",Or=!1;function rn(){return Vt.apply(this,arguments)}function Vt(){return Vt=ne(q.mark(function e(){var t,n,r,i,o,a,s,c,u,p,l,w,h,I,S,v,d,y,x,b,m,O=arguments;return q.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return t=O.length>0&&O[0]!==void 0?O[0]:{},n=O.length>1&&O[1]!==void 0?O[1]:{},r=n.getUserId,i=n.getEndpointId,o=n.endpointMigration,a=Ga(n),s=a.sessionKey?a.sessionKey():"sessions",c=a.pageViewKey?a.pageViewKey():"pageViews",ve&&(l=nn(),u=en(),p=u.id),w=De(),k.next=10,i();case 10:if(h=k.sent,Or||(Or=!0,I=Xt(kr),I&&(wt(h,I),Zr(kr))),S=Ka(h),v=Ja(n),d=qa(v,l),y={Attributes:{},Demographic:d,Location:{},Metrics:{}},ve&&(l.device&&l.device.vendor&&(y.Attributes.DeviceMake=[l.device.vendor]),l.device&&l.device.model&&(y.Attributes.DeviceModel=[l.device.model]),l.device&&l.device.type&&(y.Attributes.DeviceType=[l.device.type])),t=ma.all([S,y,t],{arrayMerge:Ba}),!(t.User&&t.User.UserId)){k.next=23;break}return k.next=21,r();case 21:x=k.sent,t.User.UserId!==x&&(t.User.UserId=x);case 23:if(!(!t.User||!t.User.UserId)){k.next=28;break}return k.next=26,r();case 26:b=k.sent,b&&(t.User=t.User||{},t.User.UserId=b);case 28:if(!(t.User&&t.User.UserAttributes)){k.next=32;break}return k.next=31,Mt(t.User.UserAttributes,!0);case 31:t.User.UserAttributes=k.sent;case 32:return k.next=34,Mt(t.Attributes,!0);case 34:return t.Attributes=k.sent,k.next=37,gi(t.Metrics);case 37:if(t.Metrics=k.sent,t.Metrics[s]||(t.Metrics[s]=1),t.Metrics[c]||(t.Metrics[c]=1),o&&(t=o(h,t)),m=t.Attributes.lastSession,m){k.next=47;break}return t.Attributes.lastSessionDate=[w.createdAt],t.Attributes.lastSession=[w.id],p&&(t.Attributes.lastPageSession=[p]),k.abrupt("return",wt(h,t));case 47:return m&&m[0]!==w.id&&(t.Attributes.lastSessionDate=[w.createdAt],t.Attributes.lastSession=[w.id],t.Metrics[s]+=1),t.Attributes&&t.Attributes.lastPageSession&&Array.isArray(t.Attributes.lastPageSession)&&t.Attributes.lastPageSession.length>0&&t.Attributes.lastPageSession[0]!==p&&(t.Attributes.lastPageSession=[p],t.Metrics[c]+=1),k.abrupt("return",wt(h,t));case 50:case"end":return k.stop()}},e)})),Vt.apply(this,arguments)}function wt(e,t){var n=at(e),r=da(t)?t:JSON.stringify(t);return $o(n,r),t}function Ka(e){try{return JSON.parse(Xt(at(e)))||{}}catch{}return{}}function qa(e,t){return ve?Fa(e,t):Xa(e)}function Xa(e){var t={AppVersion:e,Make:"generic server",Platform:"Node.js",PlatformVersion:process.version};return t}function Fa(e,t){var n={AppVersion:e,Locale:t.language,Make:t.make,Model:t.model,ModelVersion:t.version,Platform:t.os.name||t.platform};return t.os&&t.os.version&&(n.PlatformVersion=t.os.version),n}function Ja(e){var t=e.appTitle||e.appPackageName||"",n=e.appVersionCode||"0.0.0";return t?"".concat(t,"@").concat(n):n}function Ba(e,t){return t}function Ga(e){var t=e.getContext;return typeof t=="function"?t():t}function Ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function(){var n=ne(q.mark(function i(o){var a,s,c,u,p=arguments;return q.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=p.length>1&&p[1]!==void 0?p[1]:{},s=p.length>2&&p[2]!==void 0?p[2]:{},c=p.length>3&&p[3]!==void 0?p[3]:!1,fr(a)&&(a={},c=a),fr(s)&&(s={},c=s),l.next=7,Ra(o,a,t);case 7:if(u=l.sent,!(Object.entries(s).length||o===vi)){l.next=12;break}return l.next=11,rn(s,t);case 11:s=l.sent;case 12:if(e.push(u),!c){l.next=17;break}return l.abrupt("return",e.flush());case 17:case"end":return l.stop()}},i)}));function r(i){return n.apply(this,arguments)}return r})()}var Pr,Qa=[429,500],Za=[202],es=400;function ts(e,t){return Lt.apply(this,arguments)}function Lt(){return Lt=ne(q.mark(function e(t,n){var r,i,o,a,s,c,u,p,l,w,h,I,S,v,d,y,x,b,m;return q.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return r=n.pinpointRegion,i=n.pinpointAppId,o=n.lambdaArn,a=n.lambdaRegion,s=n.credentials,c=n.getCredentials,u=n.debug,O.next=3,ns(s,c);case 3:return p=O.sent,u&&console.log("pinpoint auth",p),l=a||r,w=r||a,h=n.fips===!0?"-fips":"",I="https://lambda.".concat(l,".amazonaws.com/2015-03-31/functions/").concat(o,"/invocations"),S="https://pinpoint".concat(h,".").concat(w,".amazonaws.com/v1/apps/").concat(i,"/events"),v=o?I:S,x={body:JSON.stringify(t)},d=new _t(p),O.next=16,d.fetch(v,x).then(function(k){return k.json()});case 16:y=O.sent,O.next=24;break;case 19:return d=new Pr.PinpointClient({credentials:p,region:r}),b=new Pr.PutEventsCommand({ApplicationId:i,EventsRequest:t}),O.next=23,d.send(b);case 23:y=O.sent;case 24:return y&&y.Results&&(m=Object.keys(y.Results).map(function(k){return y.Results[k]}),m.forEach(function(k){var M=k.EndpointItemResponse||{},C=k.EventsItemResponse||{};Object.keys(M).length&&(Za.includes(M.StatusCode)||Qa.includes(M.StatusCode)||rs(M,Endpoint));var A=Object.keys(C);A.length&&A.forEach(function(W){})})),O.abrupt("return",y);case 26:case"end":return O.stop()}},e)})),Lt.apply(this,arguments)}function ns(e,t){return $t.apply(this,arguments)}function $t(){return $t=ne(q.mark(function e(t,n){var r,i;return q.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t,!(!Object.keys(r).length&&n)){o.next=11;break}return o.prev=2,o.next=5,n();case 5:r=o.sent,o.next=11;break;case 8:throw o.prev=8,o.t0=o.catch(2),new Error(o.t0);case 11:return i={accessKeyId:r.accessKeyId||r.AccessKeyId,secretAccessKey:r.secretAccessKey||r.SecretKey,sessionToken:r.sessionToken||r.SessionToken,retries:5},o.abrupt("return",i);case 13:case"end":return o.stop()}},e,null,[[2,8]])})),$t.apply(this,arguments)}function rs(e,t){var n=e.StatusCode,r=e.Message;if(n===es){if(r.startsWith("Missing ChannelType"))throw new Error("Missing ChannelType");if(r.startsWith("Exceeded maximum endpoint per user count"))throw new Error("Exceeded maximum endpoint per user count")}}var is=["PUSH","GCM","APNS","APNS_SANDBOX","APNS_VOIP","APNS_VOIP_SANDBOX","ADM","SMS","VOICE","EMAIL","BAIDU","CUSTOM"],xt=is.reduce(function(e,t){return e[t]=t,e},{}),os=nn(),Er=Ut,Ar=ot,as=/.+\@.+\..+/;function ss(e){return as.test(e)}function us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getEndpointId,n=e.debug;return(function(){var r=ne(q.mark(function o(){var a,s,c,u,p,l,w,h,I,S,v=arguments;return q.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return a=v.length>0&&v[0]!==void 0?v[0]:[],s=v.length>1&&v[1]!==void 0?v[1]:{},d.next=4,t();case 4:if(c=d.sent,c){d.next=8;break}return console.error("No endpoint id. check getEndpointId()"),d.abrupt("return");case 8:if(u=ee(s)==="object"&&Object.keys(s).length,u){d.next=13;break}d.t0=cs(c),d.next=16;break;case 13:return d.next=15,rn(s,e);case 15:d.t0=d.sent;case 16:return p=d.t0,l=p.ChannelType,p.Address&&ss(p.Address)&&(l=xt.EMAIL),!l&&p.Address&&(os.platform==="android"?l=l||xt.GCM:l=l||xt.APNS),n&&(console.log("Endpoint",p),console.log("CHANNEL_TYPE",l)),p.RequestId=be(),p.ChannelType=l,p.Address&&(p.OptOut=p.OptOut||"NONE"),w=ls(a),h=fs(c,p,w),d.prev=26,d.next=29,ts(h,e);case 29:I=d.sent,d.next=36;break;case 32:d.prev=32,d.t1=d.catch(26),console.log("Error calling AWS",d.t1),S=d.t1;case 36:return d.abrupt("return",{endpoint:p,response:I,error:S,events:a});case 37:case"end":return d.stop()}},o,null,[[26,32]])}));function i(){return r.apply(this,arguments)}return i})()}function cs(e){try{return JSON.parse(Xt(at(e)))||{}}catch{}return{}}function ls(e){return e.sort(function(t,n){var r=t.EventType,i=n.EventType;if(r==Er)return-1;if(i==Er||r==Ar)return 1;if(i==Ar)return-1}).reduce(function(t,n){return F(F({},n),t)},{})}function fs(e,t,n){return{BatchItem:Qt({},e,{Endpoint:t,Events:n})}}var ds=ot;function yi(){return{}}function ps(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=F({getContext:e.getContext||yi,credentials:e.credentials||{},getEndpointId:e.getEndpointId},e),n=t.debug?console.log:function(){},r=us(t),i=ua((function(){var c=ne(q.mark(function u(p,l){var w;return q.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return p.forEach(function(I){return n("> Queue event",I)}),h.next=3,r(p,{});case 3:w=h.sent,n("> Queue response",w);case 5:case"end":return h.stop()}},u)}));return function(u,p){return c.apply(this,arguments)}})(),{max:10,interval:e.flushInterval||3e3,throttle:!0}),o=Ya(i,t);rn({},e);var a=gs(o);function s(c){return r([],c)}return{updateEndpoint:s,recordEvent:o,disable:function(){a()}}}function gs(e){if(!ve)return yi;var t=ms(e);return window.addEventListener("beforeunload",t),function(){return window.removeEventListener("beforeunload",t)}}function ms(e){return function(){e(ds,!0)}}function St(){throw new Error("Pinpoint not loaded")}function hs(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return typeof r=="number"&&(t.metrics[n]=r),(typeof r=="string"||typeof r=="boolean")&&(t.attributes[n]=r),t},{attributes:{},metrics:{}})}function vs(e){var t=e.config,n=e.instance;t&&t.disableAnonymousTraffic&&!n.user("userId")&&n.once("identifyStart",function(r){var i=r.plugins,o=i["aws-pinpoint"];o.loaded()||n.loadPlugin("aws-pinpoint")})}var ys={disableAnonymousTraffic:!1,pinpointRegion:"us-east-1",eventMapping:{}};function bs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t,n,r=!1;function i(){var a=De();e.debug&&console.log("Stop session",a),t(ot,!0)}function o(){var a=Ye(30);e.debug&&console.log("START SESSION",a),t(Ut)}return{name:"aws-pinpoint",config:F(F({},ys),e),bootstrap:vs,initialize:function(a){var s=a.config,c=a.instance,u=s.disableAnonymousTraffic,p=s.debug,l=p?console.log:function(){},w=c.getState(),h=w.user||{},I=h.userId,S=h.anonymousId,v=w.context||{},d=v.app,y=v.version,x=v.campaign,b=en(),m=ci(),O=De();if(l("initPageSession",b),l("initTabSession",m),l("initSessionData",O),O&&O.anonId&&O.anonId!==S){l("anonId different refresh session details"),lr(),fa();var k=Ye(30,{anonId:S,userId:I});l("newSessionForNewUser",k)}if(!I&&u)return!1;var M=Object.keys(x).reduce(function(z,H){return z["utm_".concat(H)]=x[H],z},{}),C=ps(F(F({},s),{},{appTitle:s.appTitle||d,appPackageName:s.appPackageName||d,appVersionCode:s.appVersionCode||y,eventMapping:s.eventMapping,getEndpointId:function(){return c.user("anonymousId")},getUserId:function(){return c.user("userId")},getContext:function(){return{sessionKey:s.sessionKey,pageViewKey:s.pageViewKey,initialSession:O}},enrichEventAttributes:function(){return F({anonId:c.user("anonymousId"),userId:c.user("userId"),hash:window.location.hash,path:window.location.pathname,referrer:document.referrer,search:window.location.search,title:document.title,host:window.location.hostname,url:window.location.origin+window.location.pathname},M)},enrichUserAttributes:s.enrichUserAttributes,enrichEventMetrics:function(){return{}}}));t=C.recordEvent,n=C.updateEndpoint,O&&O.isNew&&(l("Start brand new session because cookie not found"),t(Ut));var A=18e5,W=A;Oa({timeout:W,throttle:2e4,onIdle:function(z,H){l("Session idle. Active ".concat(z," seconds")),i()},onWakeUp:function(z,H){l("Session wakeup. Idle ".concat(z," seconds")),o()},onHeartbeat:function(z,H){l("ping session",new Date),l("total active time",z);var L=c.user();la(30,{anonId:L.anonymousId,userId:L.userId})}})},page:function(a){if(a.payload,a.config,!t)return St();r&&lr(),t(vi),r=!0},track:function(a){var s=a.payload,c=a.config;if(a.instance,!t)return St();if(!(c.disableAnonymousTraffic&&!s.userId)){var u=hs(s.properties);t(s.event,u)}},identify:function(a){var s=a.payload,c=s.userId,u=s.traits;if(!n)return St();var p={},l={};c&&(l.UserId=c),u&&Object.keys(u).length&&(l.UserAttributes=u),Object.keys(l).length&&(p.User=l),n(p,!0)},reset:function(a){var s=a.instance,c=s.user("anonymousId"),u=at(c);Zr(u)},loaded:function(){return!!t}}}var ws=bs;function xs(e,t,n){return n.reduce((r,i)=>{let{action:o,targetProperty:a}=i;return o==="add"?r[a]={updatedAt:new Date,updatedBy:e}:o==="remove"&&delete r[a],r},t)}async function Ss({id:e,authentication:t,username:n,accessChangeset:r}){let{properties:i={}}=await ft(e,{authentication:t}),o=i.telemetry,a=o===void 0?{}:o,{arcgis:{access:s={}}={}}=a,c=lt(a,["arcgis"]),u=xs(n,s,r);return wi({item:{id:e,properties:Object.assign(Object.assign({},i),{telemetry:Object.assign(Object.assign({},c),{arcgis:{access:Object.assign({},u)}})})},authentication:t})}async function Is({id:e,authentication:t}){let{properties:{telemetry:{arcgis:{access:n={}}={}}={}}}=await ft(e,{authentication:t});return{access:n}}var Rt=class{constructor(t){this.name="amazon",this.isInitialized=!1;let{app:n={},fips:r,userPoolID:i}=t;this.analytics=Qo({app:n.name,version:n.version,plugins:[ws({fips:r,pinpointAppId:n.id,getCredentials:()=>zi(i,{fips:r})})]}),Object.assign(this,t)}init(){if(!this.isInitialized)return this.isInitialized=!0,Promise.resolve()}static async setAccessPermissions({id:t,authentication:n,username:r,accessChangeset:i}){return Ss({id:t,authentication:n,username:r,accessChangeset:i})}static async getAccessPermissions({id:t,authentication:n}){return Is({id:t,authentication:n})}logPageView(t,n){let r=$i({page:t,previousPage:this.previousPage,options:n,dimensionLookup:this.dimensions,metricLookup:this.metrics}),{pageUrl:i,pageName:o}=r;this.previousPage={pageUrl:i,pageName:o},this.analytics.track("pageView",r)}logEvent(t={}){let n=Li({event:t,dimensionLookup:this.dimensions,metricLookup:this.metrics}),{name:r}=n;this.analytics.track(r,n)}},ks=an`:host{display:block}`,Ht=class extends un{constructor(){super(...arguments),this.amazonAppId="",this.amazonAppName="",this.amazonUserPoolID="",this.amazonVersion="",this.firstUseVar="",this.measurementIds=[],this._open=!1,this._translations=ln({name:"consent-manager",blocking:!0}),this._loaded=!1,this.consentGranted=sn()}static{this.properties={amazonAppId:1,amazonAppName:1,amazonUserPoolID:1,amazonVersion:1,firstUseVar:1,measurementIds:0,portal:0,_open:16,_translations:16}}static{this.styles=ks}async getInstance(){if(localStorage.getItem(this.firstUseVar)==="true"||this.portal?.eueiEnabled)return await this._init(),this._telemetryInstance}async load(){this._open=localStorage.getItem(this.firstUseVar)===null}render(){return""}loaded(){this.consentGranted.emit({granted:localStorage.getItem(this.firstUseVar)==="true"})}async _init(){if(!this._loaded){let t={info:console.info?console.info.bind(console):console.log.bind(console),error:console.error?console.error.bind(console):console.log.bind(console),warn:(r,...i)=>{(!r.includes("non-primitive value")||!r.includes("userSince"))&&(console.warn||console.log)(r,...i)}},n={plugins:[],portal:this.portal,logger:t};if(this.measurementIds?.length>0){let r=new kt({measurementIds:this.measurementIds});n.plugins.push(r)}if(this.amazonUserPoolID){let r=new Rt({userPoolID:this.amazonUserPoolID,app:{name:this.amazonAppName,id:this.amazonAppId,version:this.amazonVersion}});n.plugins.push(r)}this._telemetryInstance=new It(n),await this._telemetryInstance.init(),this._loaded=!0}}_alertClosed(){this._open=!1,localStorage.getItem(this.firstUseVar)!=="true"&&localStorage.setItem(this.firstUseVar,"false")}_accept(){localStorage.setItem(this.firstUseVar,"true"),this.consentGranted.emit({granted:!0}),this._open=!1}};cn("consent-manager",Ht);export{Ht as ConsentManager};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import f from"./JQXKQHAG.js";import e from"./ZP6VPBP4.js";import c from"./XXT542UR.js";import a from"./X5EABWHE.js";import{a as L,b as E}from"./2B4SGB3I.js";import{b as w}from"./YKQDHR27.js";import{Db as U,Eb as F,K as v,M as $,N as P,c as A,q as _,ta as O}from"./J75MHJID.js";import{a as R}from"./R67EKKSL.js";import{k as T}from"./XQQ52NKX.js";import{b as C}from"./KIUBUHVM.js";import{E as d,F as h,G as S,I as u,J as D,K as b,h as M,i as o,q as y}from"./H5E6ISYP.js";export default $arcgis.t(([{b:N,o:H,p:f,q:V},{a:z,b:k},{b:B,d:Y,i:g,j:x,o:m},{a:G}])=>{var K=M`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@container (max-width: 800px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;max-width:100%;margin:0;padding-bottom:0}.image-width img{width:100%;max-width:100%}.title-font{padding-inline-end:var(--calcite-spacing-lg);padding-top:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@container (max-width: 1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@container (max-width: 1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@container (max-width: 550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}#screenshots-subsection .card-image{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-surface-3)}.back-color-override-1{background-color:var(--calcite-color-surface-2)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-surface-2)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-surface-3)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}`;async function q(n,e,t){let i=t;return n&&(n?.IsEnterprisePortal&&await X("",e)&&i.push(g.NOTEBOOK),await N(e)?t.push(g.VELOCITY):n?.PortalUserPrivileges&&[x.VELOCITYFEEDS,x.VELOCITYBIGDATA,x.VELOCITYREALTIME].forEach(s=>{let a=t.indexOf(s)||-1;a!==-1&&t.splice(a,1)}),i=i.concat(j(Z(n),ee(n))),i=i.concat(J(n)),i=i.concat(await Q(n))),Promise.resolve(i)}function j(n,e){let t=[];return n&&e?t=[g.TRACKINGADMINANDTRACKING,g.TRACKINGADMIN,g.TRACKING]:n&&!e?t=[g.TRACKINGADMIN]:!n&&e&&(t=[g.TRACKING]),t}function J(n){return te(n)?[g.HUBPREMIUM]:[]}async function Q(n){let e=n?.RestUserSession;if(!e?.username)return[];let t=await F(e);return await U(t,e)?[g.WORKFLOW]:[]}async function X(n,e){let t=n+"/sharing/rest",i={authentication:e,portal:t,params:{f:"json"}};return A(`${t}/portals/self/servers`,i).then(s=>s?.servers?.find(a=>a.serverFunction.indexOf("NotebookServer")>-1),s=>(console.error(s),!1))}function Z(n){let e=n?.PortalUserSubset?.privileges;return e?["portal:admin:create","portal:admin:delete","portal:admin:update","portal:admin:reassign"].every(i=>e.some(s=>s.startsWith(i))):!1}function ee(n){return n?.PortalSubset?.locationTrackingEnabled||!1}function te(n){return n?.PortalSubset?.hubPremiumEnabled||!1}var I=class extends S{constructor(){super(),this._isDeployDisabled=!1,this._isLoaded=!1,this._itemFetched=!1,this._showScreenshotsShowMore=!1,this._showYouMayAlsoLikeShowMore=!1,this.isMobile=!1,this._isScreenshotsRowExpanded=!1,this._isYouMayAlsoLikeRowExpanded=!1,this._screenshotsRowBaseHeight=340,this._showLoader=!1,this._templates=[],this._translations=R({name:"solution-details-panel",blocking:!0}),this._youMayAlsoLikeBaseHeight=340,this._allCards=[],this._configContextConsumer=w({context:E,subscribe:!0}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=d(),this._deployingDialogRef=d(),this._isMobileContextConsumer=w({context:L,subscribe:!0,callback:e=>this.isMobile=e}),this._overviewAccordionItemElement=d(),this._privilegePopoverRef=d(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._releaseNotesAccordionItemElement=d(),this._relatedResourcesAccordionItemElement=d(),this._screenshotsAccordionItemElement=d(),this._screenshotsDialogRef=d(),this._screenshotsElement=d(),this._termsOfUseAccordionItemElement=d(),this._userOptions=[],this._youMayAlsoLikeAccordionItemElement=d(),this._youMayAlsoLikeElement=d(),this._signInParamValue=null,this._deploymentStartTime=null,this._cancellationStartTime=null,this._deployToCancelDuration=0,this.templatesFetched=y(),this.itemPropertiesFetched=y(),this.sortTypeChanged=y(),this.tokenRefreshed=y(),this._handleDeployCancelled=()=>{this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Dialog Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]})},this._handleDeploySuccess=()=>{let e=f(this._deploymentStartTime);this._deploymentStartTime=null,this._deployingDialogRef.value&&(this._deployingDialogRef.value.isWaitingForCard=!0),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Success",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[e]})},this._handleDeployedCardReady=async e=>{this._closeDialogs(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t))),window.dispatchEvent(new CustomEvent("displayDeployedCard",{detail:e.detail}))},this._handleDeploymentFallback=()=>{console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"),this._closeDialogs(),window.dispatchEvent(new CustomEvent("navTabSelected",{detail:"deployments"}))},this._handleDeploymentProcessCancelled=()=>{this._cancellationStartTime=Date.now(),this._deployToCancelDuration=f(this._deploymentStartTime),this._deploymentStartTime=null},this._handleDeployFailed=e=>{if(this._cancellationStartTime!==null){this._closeDialogs();return}let t=f(this._deploymentStartTime);this._deploymentStartTime=null;let i=H(e.detail?.error),s=i.length>200?i.slice(-200):i;console.error("Deployment failed:",e.detail?.error),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Failure",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",s],metrics:[t]}),this._closeDialogs(!0)},this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"deployedCardReady",this._handleDeployedCardReady),this.listenOn(window,"deploymentCompletedWithoutNav",this._handleDeploymentFallback)}static{this.properties={card:0,_isDeployDisabled:16,_isLoaded:16,_itemFetched:16,_showScreenshotsShowMore:16,_showYouMayAlsoLikeShowMore:16,isMobile:16,_isScreenshotsRowExpanded:16,_isYouMayAlsoLikeRowExpanded:16,_itemProperties:16,_missingPrivilegeMessages:16,_screenshotsRowBaseHeight:16,_showLoader:16,_templates:16,_translations:16,_youMayAlsoLikeBaseHeight:16}}static{this.styles=K}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async connectedCallback(){super.connectedCallback(),this.listenOn(window,"calciteTabChange",this._cleanupPanel)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}willUpdate(e){e.has("card")&&(this._isDeployDisabled=!1,this._isLoaded=!1,this._showLoader=!1,this._signInParamValue==="deploy"&&(this._showLoader=!0,this._signInParamValue=null))}loaded(){this._signInParamValue===null&&this._configContextConsumer.value?.authentication?.SignInParam&&(this._signInParamValue=this._configContextConsumer.value.authentication.SignInParam),this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="padding-bottom-1-5",t=this._getRelatedResources(),i=this._getYouMayAlsoLikeCards();return o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${u(e)}>${this._getScreenshotsRow()}</div><div class=${u(e)}>${this._getOverviewRow()}</div><div class=${u(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?o`<div class=${u(e)}>${this._getRelatedResourcesRow(t)}</div>`:""}${i.length>0?o`<div class=${u(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<div class=${u(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile?"":o`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`}updated(){setTimeout(()=>{let e=this._getYouMayAlsoLikeCards(),t=340;for(let i=0;i<e.length;i++){let s=this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`),a=s?.offsetHeight?s.offsetHeight+40:0;a>t&&(t=a)}this._youMayAlsoLikeBaseHeight=t,this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2},100)}_checkUrlParametersForAutoDeployment(){if(this._signInParamValue==="deploy"){let e=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);this._configContextConsumer.value?.authentication?.IsSignedIn&&this.card&&this._deployDialogRef.value&&!e&&(this._signInParamValue=null,this._openDeploy())}}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._missingPrivilegeMessages?.leadingMessages||[],i=t.length>0,s=this._missingPrivilegeMessages?.bulletedMessages||[],a=s.length>0,l=this._missingPrivilegeMessages?.trailingMessages||[],c=l.length>0;return o`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title??b} src=${e??b}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i,a,c,t,s,l)}${this._getButtons()}</div></div>`}_getTextSection(e,t,i,s,a,l){return o`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some(c=>c.includes("New Release"))&&o`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>`||""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile?"":e||t||i?o`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s,a,l)}</div>`:""}</div>`}_getButtons(){let e=this._itemProperties?.demoURL||"";return o`<div class="display-flex flex-direction-column button-width">${!this.isMobile&&o`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled} icon-flip-rtl=end @click=${()=>this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader?o`<calcite-loader inline label></calcite-loader>`:this._translations.deployButton}</calcite-button>`||""}${!this._configContextConsumer.value?.isEnterprise&&e&&o`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>`||""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise&&o`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId||""} .solutionTitle=${this.card?.title||""} .solutionVersion=${this.card?.deployVersion||""}></solution-social-share>`||""}</div>`}_getMissingPrivilegesNotice(e,t,i){let s="solutions-missing-privileges-notice",a=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges,l=t.length>0?"":"display-none",c=t.length>0?"padding-top-sm":"";return o`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${a}`}</div><calcite-action icon=information id=${s} slot=actions-end .text=${a}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${this._getSpanMessages(e,"padding-bottom-1")}<span class=${`padding-bottom-1-2 ${l}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getBulletedMessages(t)}${this._getSpanMessages(i,c)}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>o`<span class=${u(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?o`<ul>${e.map(t=>o`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._isScreenshotsRowExpanded?this._translations.showLess:this._translations.showMore,t=this._isScreenshotsRowExpanded?"arrow-up":"arrow-down",i=this._showScreenshotsShowMore?"":"display-none";return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${()=>{this._screenshotsElement.value?.classList.toggle("expanded"),this._isScreenshotsRowExpanded=this._screenshotsElement.value.classList.contains("expanded")}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`}_getScreenshots(){let e=this._itemProperties?.preview.filter(a=>a.format==="image")||[],t=this._configContextConsumer.value,i=this._itemFetched?"":"display-none",s=this._itemFetched?"display-none":"";return o`<calcite-loader class=${u(s)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((a,l)=>{let c=k(this.card?.id||"",l.name,t.authentication),p;return t.agoBasedEnterpriseSolutionsGroupId&&t.isEnterprise&&(p=k(this.card?.id||"",l.name,void 0,t.agolPortalUrl)),this.card?.id?a.push(o`<calcite-card class=${`${this.isMobile?"is-mobile":"cursor-pointer not-mobile"}`} .label=${l.alt} @click=${()=>this._openScreenshotGallery(l)} @keydown=${r=>V(r,()=>this._openScreenshotGallery(l))}><div class="card-image-wrap" slot=thumbnail><img alt=${l.alt??b} class="thumbnail card-image" slot=thumbnail src=${(p||c)??b}>${!this.isMobile&&o`<div class="hover-text">${this._translations.openInGallery}</div>`||""}</div></calcite-card>`):a.push(""),a},[])}</calcite-card-group>`}_openScreenshotGallery(e){if(!this.isMobile){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Screenshot Gallery",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]});let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}}_getOverviewRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`}_getDescriptionRow(){return o`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description??""} tabindex=0></div></div>`}_getInformationProductsRow(){return o`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.item)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.description)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.userType)??""}></p></calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`}_getReleaseNotesTableHeaderRow(){return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.version)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.description)??""}></p></calcite-table-cell></calcite-table-row>`)}_getRelatedResourcesRow(e){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(()=>{o`<solution-resource-card></solution-resource-card>`})}</div></calcite-accordion-item></calcite-accordion>`}_getRelatedResources(){return[]}_getYouMayAlsoLikeRow(e){let t=this._showYouMayAlsoLikeShowMore?"":"display-none",i=this._isYouMayAlsoLikeRowExpanded?this._translations.showLess:this._translations.showMore,s=this._isYouMayAlsoLikeRowExpanded?"arrow-up":"arrow-down",a=this._isYouMayAlsoLikeRowExpanded?"":{height:`${this._youMayAlsoLikeBaseHeight}px`};return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${D(a)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l,c)=>o`<solution-details-card .id=${`you-may-also-like-${c}`} .card=${l} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId||""} .referrerSolutionTitle=${this.card?.title||""} .referrerSolutionVersion=${this.card?.deployVersion||""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${s} kind=inverse @click=${()=>{this._youMayAlsoLikeElement.value?.classList.toggle("expanded"),this._isYouMayAlsoLikeRowExpanded=this._youMayAlsoLikeElement.value.classList.contains("expanded")}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getTermsOfUseRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo||"")??""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`}_openDeploy(){if(this._configContextConsumer.value.authentication.IsSignedIn){let e=this._deployDialogRef.value;e&&(this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Dialog Opened",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),e.userOptions=this._userOptions,e.open=!0)}else this._configContextConsumer.value.authentication.signIn("deploy")}_openUrl(e){window.open(e,"_blank")}_handleWatchDemoClick(e){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Watch Demo",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(e)}_handleLearnMoreClick(){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(this.card?.learnMoreUrl||"")}async _detailsCardSelected(e){this.card=e.detail,this.el.scrollIntoView(!0),this._onResize(),this._missingPrivilegeMessages=void 0,await this._getItemData(),this._expandAccordions()}_expandAccordions(){this._overviewAccordionItemElement.value&&(this._overviewAccordionItemElement.value.expanded=!0),this._releaseNotesAccordionItemElement.value&&(this._releaseNotesAccordionItemElement.value.expanded=!0),this._relatedResourcesAccordionItemElement.value&&(this._relatedResourcesAccordionItemElement.value.expanded=!0),this._screenshotsAccordionItemElement.value&&(this._screenshotsAccordionItemElement.value.expanded=!0),this._termsOfUseAccordionItemElement.value&&(this._termsOfUseAccordionItemElement.value.expanded=!0),this._youMayAlsoLikeAccordionItemElement.value&&(this._youMayAlsoLikeAccordionItemElement.value.expanded=!0)}async _getItemData(){this._itemFetched=!1;let e=this._configContextConsumer.value,t=e?.agoBasedEnterpriseSolutionsGroupId&&e?.isEnterprise?e.anonAgolSession:e?.userSession,i=await O(this.card.id,t),s=await T(this.card.id,t);this._itemFetched=!0,this._itemProperties=s.properties,this.itemPropertiesFetched.emit(this._itemProperties);let a=B(i,this.card.typeKeywords,e?.authentication);this._privileges=t.username?a:[],this._userPrivileges=e?.authentication&&e?.userSession?await q(e.authentication,e.userSession,e.authentication.PortalUserPrivileges):[];let l=this._privileges.filter(p=>!this._userPrivileges.includes(p));this._missingPrivilegeMessages=Y(this._translations,l),this._isDeployDisabled=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);let c=i.params?await this.formatParams(i.params):[];this._userOptions=c,this._templates=i.templates,this.templatesFetched.emit(i.templates),this._checkUrlParametersForAutoDeployment(),this._isLoaded=!0,this._showLoader&&(this._showLoader=!1,this._isDeployDisabled||this._openDeploy())}formatParams(e){let t=this._configContextConsumer.value.userSession,i=[],s=e?Object.keys(e):[],a={id:"",props:[],accordionDisplay:!1};if(s.length>0){let l=[];return s.forEach(c=>{let p=e[c];p.valueType&&p.valueType.toLowerCase()==="itemid"&&l.push(this._findExistingItem(c,"Feature Service",t.username||""))}),Promise.all(l).then(c=>{let p={};return c.forEach(r=>{if(r.query&&r.results&&r.results.length>0){let W=r.query.split(" ")[0].replace("typekeywords:source-","");p[W]={resultId:r.results[0].id,response:r.results[0]}}}),s.forEach(r=>{if(r==="serviceLearnMore"){this._configureLearnMore=e[r],alert(this._configureLearnMore),delete e[r];return}e[r].enterpriseIDMapping&&(this._customDeploymentMappings[r]=e[r].enterpriseIDMapping),a.id=r,p[r]&&(e[r].existingItemId=p[r].resultId,this.updateUserProp(e[r],p[r].response)),this.updateOption(e[r],a,r)}),i.push(a),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let s=this._configContextConsumer.value.userSession;return G(`typekeywords:source-${e} type:${t} owner:${i}`,s)}updateUserProp(e,t){let i=e.itemType?.toLowerCase()==="feature service",s=new RegExp(i?this._regexFsUrl:e.itemType,"iu"),a=$(t,i?"url":"type","")||"",l=a!==""&&s.test(a);return e.responseValue=l?a:"",e.name=l&&v(t,"name")||"",e.title=l&&v(t,"title")||"",e.itemType=l?v(t,"type"):e.itemType,e.validId=l,e.itemUrl=z(t.id,this._configContextConsumer.value.authentication),l}updateOption(e,t,i){let s=e.default||"",a=typeof s,l=s.toString();this._setFeatureServiceProps(e);let c=this.getValidation(e,l);t.props.push({id:i,outType:a,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:l,default:l,srSearchText:l,autoSelect:l!=="",...c,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&P(e,"attributes.required","true")}getValidation(e,t){let i="",s=v(e,"validation.message")||"",a=!0;return v(e,"attributes.required")==="true"&&(i=$(e,"validation.expression","\\S{1,}"),a=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,s=this._translations.configure.invalidID),{valid:a,validation:{expression:i,message:s}}}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2}_cleanupPanel(){this.el.scrollIntoView(!0),this._isScreenshotsRowExpanded=!1,this._showScreenshotsShowMore=!1,this._screenshotsElement.value?.classList.remove("expanded"),this._isYouMayAlsoLikeRowExpanded=!1,this._showYouMayAlsoLikeShowMore=!1,this._youMayAlsoLikeElement.value?.classList.remove("expanded"),this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1),this._isDeployDisabled=!1,this._isLoaded=!1,this._itemFetched=!1,this._showLoader=!1,this._expandAccordions()}_deployProgressStart(e){this._deploymentStartTime=Date.now(),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Started",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0,this._deployingDialogRef.value.abortController=e.detail),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(e=!1){if(this._cancellationStartTime!==null){let t=f(this._cancellationStartTime);this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[this._deployToCancelDuration,t]}),this._cancellationStartTime=null,this._deployToCancelDuration=0}this._deployingDialogRef.value.close(),e?this._deployDialogRef.value.open=!0:this._deployDialogRef.value.close(),this._deployDialogRef.value.classList.remove("display-none")}_handleDeployAppTabSelected(e){e.detail==="details"&&this.sortTypeChanged.emit("")}_checkPermissionsBeforeDeploy(){this._isLoaded?this._openDeploy():this._configContextConsumer.value.authentication?.IsSignedIn?this._showLoader=!0:this._openDeploy()}};C("solution-details-panel",I);return I},a,c,e,f)
2
+ import f from"./DI7PQSFH.js";import e from"./ZP6VPBP4.js";import c from"./XXT542UR.js";import a from"./X5EABWHE.js";import{a as L,b as E}from"./2B4SGB3I.js";import{b as w}from"./YKQDHR27.js";import{Db as U,Eb as F,K as v,M as $,N as P,c as A,q as _,ta as O}from"./J75MHJID.js";import{a as R}from"./R67EKKSL.js";import{k as T}from"./XQQ52NKX.js";import{b as C}from"./KIUBUHVM.js";import{E as d,F as h,G as S,I as u,J as D,K as b,h as M,i as o,q as y}from"./H5E6ISYP.js";export default $arcgis.t(([{b:N,o:H,p:f,q:V},{a:z,b:k},{b:B,d:Y,i:g,j:x,o:m},{a:G}])=>{var K=M`.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.flex-1{flex:1}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-bottom-sm{padding-bottom:var(--calcite-spacing-sm)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-top-sm{padding-top:var(--calcite-spacing-sm)}.padding-top-xs{padding-top:.25rem}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-1-75{padding-inline-end:1.75rem}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-top-875{margin-top:.875rem}.margin-top-1-5{margin-top:var(--calcite-spacing-xxl)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-sides-1{margin-left:var(--calcite-spacing-lg);margin-right:var(--calcite-spacing-lg)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.button-width{width:auto}}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}.width-full{width:100%}@container (max-width: 800px){.width-full{flex-direction:column}.width-full>.display-flex{flex-direction:column}.image-width{width:100%;max-width:100%;margin:0;padding-bottom:0}.image-width img{width:100%;max-width:100%}.title-font{padding-inline-end:var(--calcite-spacing-lg);padding-top:var(--calcite-spacing-lg)}.button-width{width:100%;margin-top:var(--calcite-spacing-lg)}}.card-group{overflow:hidden;padding:.25rem var(--calcite-spacing-sm) var(--calcite-spacing-md)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}calcite-card{width:450px;--calcite-card-border-color: transparent}@container (max-width: 1496px){calcite-card{width:calc(100% / 3 - .5rem)}#screenshots-subsection calcite-card{width:calc(33.333% - .5rem)}}@container (max-width: 1100px){calcite-card{width:calc(50% - .5rem)}#screenshots-subsection calcite-card{width:calc(50% - .5rem)}}@container (max-width: 550px){calcite-card{width:100%}#screenshots-subsection calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}calcite-card.is-mobile:hover img{cursor:default;-webkit-filter:brightness(100%);filter:brightness(100%);transition:all .1s ease}calcite-card{border:var(--calcite-spacing-base) solid transparent;box-sizing:border-box;padding:var(--calcite-spacing-base)}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}#screenshots-subsection .card-image{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-surface-3)}.back-color-override-1{background-color:var(--calcite-color-surface-2)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.line-height-1{line-height:1.1}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.font-color-2{color:var(--calcite-color-text-2)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-surface-2)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-2);margin:0}.table-cell p{margin:0}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}.position-relative{position:relative}.background-color-2{background-color:var(--calcite-color-surface-3)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.border-none{border:none}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}calcite-shell{block-size:unset}.solution-detail-action{--calcite-color-focus: initial}a{color:var(--calcite-link-text-color, var(--calcite-color-text-link));cursor:pointer;text-decoration:none;line-height:inherit;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;transition-property:background-size,color;transition-duration:var(--calcite-animation-timing, .15s);transition-timing-function:ease-in-out;outline-color:transparent;position:relative}a:hover{background-size:100% 1px,100% 1px}a:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px;outline-color:var(--calcite-color-brand)}a:active{color:var(--calcite-color-brand-press)}*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}`;async function q(n,e,t){let i=t;return n&&(n?.IsEnterprisePortal&&await X("",e)&&i.push(g.NOTEBOOK),await N(e)?t.push(g.VELOCITY):n?.PortalUserPrivileges&&[x.VELOCITYFEEDS,x.VELOCITYBIGDATA,x.VELOCITYREALTIME].forEach(s=>{let a=t.indexOf(s)||-1;a!==-1&&t.splice(a,1)}),i=i.concat(j(Z(n),ee(n))),i=i.concat(J(n)),i=i.concat(await Q(n))),Promise.resolve(i)}function j(n,e){let t=[];return n&&e?t=[g.TRACKINGADMINANDTRACKING,g.TRACKINGADMIN,g.TRACKING]:n&&!e?t=[g.TRACKINGADMIN]:!n&&e&&(t=[g.TRACKING]),t}function J(n){return te(n)?[g.HUBPREMIUM]:[]}async function Q(n){let e=n?.RestUserSession;if(!e?.username)return[];let t=await F(e);return await U(t,e)?[g.WORKFLOW]:[]}async function X(n,e){let t=n+"/sharing/rest",i={authentication:e,portal:t,params:{f:"json"}};return A(`${t}/portals/self/servers`,i).then(s=>s?.servers?.find(a=>a.serverFunction.indexOf("NotebookServer")>-1),s=>(console.error(s),!1))}function Z(n){let e=n?.PortalUserSubset?.privileges;return e?["portal:admin:create","portal:admin:delete","portal:admin:update","portal:admin:reassign"].every(i=>e.some(s=>s.startsWith(i))):!1}function ee(n){return n?.PortalSubset?.locationTrackingEnabled||!1}function te(n){return n?.PortalSubset?.hubPremiumEnabled||!1}var I=class extends S{constructor(){super(),this._isDeployDisabled=!1,this._isLoaded=!1,this._itemFetched=!1,this._showScreenshotsShowMore=!1,this._showYouMayAlsoLikeShowMore=!1,this.isMobile=!1,this._isScreenshotsRowExpanded=!1,this._isYouMayAlsoLikeRowExpanded=!1,this._screenshotsRowBaseHeight=340,this._showLoader=!1,this._templates=[],this._translations=R({name:"solution-details-panel",blocking:!0}),this._youMayAlsoLikeBaseHeight=340,this._allCards=[],this._configContextConsumer=w({context:E,subscribe:!0}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=d(),this._deployingDialogRef=d(),this._isMobileContextConsumer=w({context:L,subscribe:!0,callback:e=>this.isMobile=e}),this._overviewAccordionItemElement=d(),this._privilegePopoverRef=d(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._releaseNotesAccordionItemElement=d(),this._relatedResourcesAccordionItemElement=d(),this._screenshotsAccordionItemElement=d(),this._screenshotsDialogRef=d(),this._screenshotsElement=d(),this._termsOfUseAccordionItemElement=d(),this._userOptions=[],this._youMayAlsoLikeAccordionItemElement=d(),this._youMayAlsoLikeElement=d(),this._signInParamValue=null,this._deploymentStartTime=null,this._cancellationStartTime=null,this._deployToCancelDuration=0,this.templatesFetched=y(),this.itemPropertiesFetched=y(),this.sortTypeChanged=y(),this.tokenRefreshed=y(),this._handleDeployCancelled=()=>{this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Dialog Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]})},this._handleDeploySuccess=()=>{let e=f(this._deploymentStartTime);this._deploymentStartTime=null,this._deployingDialogRef.value&&(this._deployingDialogRef.value.isWaitingForCard=!0),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Success",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[e]})},this._handleDeployedCardReady=async e=>{this._closeDialogs(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t))),window.dispatchEvent(new CustomEvent("displayDeployedCard",{detail:e.detail}))},this._handleDeploymentFallback=()=>{console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"),this._closeDialogs(),window.dispatchEvent(new CustomEvent("navTabSelected",{detail:"deployments"}))},this._handleDeploymentProcessCancelled=()=>{this._cancellationStartTime=Date.now(),this._deployToCancelDuration=f(this._deploymentStartTime),this._deploymentStartTime=null},this._handleDeployFailed=e=>{if(this._cancellationStartTime!==null){this._closeDialogs();return}let t=f(this._deploymentStartTime);this._deploymentStartTime=null;let i=H(e.detail?.error),s=i.length>200?i.slice(-200):i;console.error("Deployment failed:",e.detail?.error),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Failure",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",s],metrics:[t]}),this._closeDialogs(!0)},this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"deployedCardReady",this._handleDeployedCardReady),this.listenOn(window,"deploymentCompletedWithoutNav",this._handleDeploymentFallback)}static{this.properties={card:0,_isDeployDisabled:16,_isLoaded:16,_itemFetched:16,_showScreenshotsShowMore:16,_showYouMayAlsoLikeShowMore:16,isMobile:16,_isScreenshotsRowExpanded:16,_isYouMayAlsoLikeRowExpanded:16,_itemProperties:16,_missingPrivilegeMessages:16,_screenshotsRowBaseHeight:16,_showLoader:16,_templates:16,_translations:16,_youMayAlsoLikeBaseHeight:16}}static{this.styles=K}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async connectedCallback(){super.connectedCallback(),this.listenOn(window,"calciteTabChange",this._cleanupPanel)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}willUpdate(e){e.has("card")&&(this._isDeployDisabled=!1,this._isLoaded=!1,this._showLoader=!1,this._signInParamValue==="deploy"&&(this._showLoader=!0,this._signInParamValue=null))}loaded(){this._signInParamValue===null&&this._configContextConsumer.value?.authentication?.SignInParam&&(this._signInParamValue=this._configContextConsumer.value.authentication.SignInParam),this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="padding-bottom-1-5",t=this._getRelatedResources(),i=this._getYouMayAlsoLikeCards();return o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${u(e)}>${this._getScreenshotsRow()}</div><div class=${u(e)}>${this._getOverviewRow()}</div><div class=${u(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?o`<div class=${u(e)}>${this._getRelatedResourcesRow(t)}</div>`:""}${i.length>0?o`<div class=${u(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<div class=${u(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile?"":o`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`}updated(){setTimeout(()=>{let e=this._getYouMayAlsoLikeCards(),t=340;for(let i=0;i<e.length;i++){let s=this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`),a=s?.offsetHeight?s.offsetHeight+40:0;a>t&&(t=a)}this._youMayAlsoLikeBaseHeight=t,this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2},100)}_checkUrlParametersForAutoDeployment(){if(this._signInParamValue==="deploy"){let e=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);this._configContextConsumer.value?.authentication?.IsSignedIn&&this.card&&this._deployDialogRef.value&&!e&&(this._signInParamValue=null,this._openDeploy())}}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._missingPrivilegeMessages?.leadingMessages||[],i=t.length>0,s=this._missingPrivilegeMessages?.bulletedMessages||[],a=s.length>0,l=this._missingPrivilegeMessages?.trailingMessages||[],c=l.length>0;return o`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title??b} src=${e??b}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i,a,c,t,s,l)}${this._getButtons()}</div></div>`}_getTextSection(e,t,i,s,a,l){return o`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some(c=>c.includes("New Release"))&&o`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>`||""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile?"":e||t||i?o`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s,a,l)}</div>`:""}</div>`}_getButtons(){let e=this._itemProperties?.demoURL||"";return o`<div class="display-flex flex-direction-column button-width">${!this.isMobile&&o`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled} icon-flip-rtl=end @click=${()=>this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader?o`<calcite-loader inline label></calcite-loader>`:this._translations.deployButton}</calcite-button>`||""}${!this._configContextConsumer.value?.isEnterprise&&e&&o`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>`||""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise&&o`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId||""} .solutionTitle=${this.card?.title||""} .solutionVersion=${this.card?.deployVersion||""}></solution-social-share>`||""}</div>`}_getMissingPrivilegesNotice(e,t,i){let s="solutions-missing-privileges-notice",a=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges,l=t.length>0?"":"display-none",c=t.length>0?"padding-top-sm":"";return o`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${a}`}</div><calcite-action icon=information id=${s} slot=actions-end .text=${a}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${this._getSpanMessages(e,"padding-bottom-1")}<span class=${`padding-bottom-1-2 ${l}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getBulletedMessages(t)}${this._getSpanMessages(i,c)}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>o`<span class=${u(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?o`<ul>${e.map(t=>o`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._isScreenshotsRowExpanded?this._translations.showLess:this._translations.showMore,t=this._isScreenshotsRowExpanded?"arrow-up":"arrow-down",i=this._showScreenshotsShowMore?"":"display-none";return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${()=>{this._screenshotsElement.value?.classList.toggle("expanded"),this._isScreenshotsRowExpanded=this._screenshotsElement.value.classList.contains("expanded")}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`}_getScreenshots(){let e=this._itemProperties?.preview.filter(a=>a.format==="image")||[],t=this._configContextConsumer.value,i=this._itemFetched?"":"display-none",s=this._itemFetched?"display-none":"";return o`<calcite-loader class=${u(s)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((a,l)=>{let c=k(this.card?.id||"",l.name,t.authentication),p;return t.agoBasedEnterpriseSolutionsGroupId&&t.isEnterprise&&(p=k(this.card?.id||"",l.name,void 0,t.agolPortalUrl)),this.card?.id?a.push(o`<calcite-card class=${`${this.isMobile?"is-mobile":"cursor-pointer not-mobile"}`} .label=${l.alt} @click=${()=>this._openScreenshotGallery(l)} @keydown=${r=>V(r,()=>this._openScreenshotGallery(l))}><div class="card-image-wrap" slot=thumbnail><img alt=${l.alt??b} class="thumbnail card-image" slot=thumbnail src=${(p||c)??b}>${!this.isMobile&&o`<div class="hover-text">${this._translations.openInGallery}</div>`||""}</div></calcite-card>`):a.push(""),a},[])}</calcite-card-group>`}_openScreenshotGallery(e){if(!this.isMobile){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Screenshot Gallery",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]});let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}}_getOverviewRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`}_getDescriptionRow(){return o`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description??""} tabindex=0></div></div>`}_getInformationProductsRow(){return o`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.item)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.description)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.userType)??""}></p></calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`}_getReleaseNotesTableHeaderRow(){return o`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>o`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.version)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(e.description)??""}></p></calcite-table-cell></calcite-table-row>`)}_getRelatedResourcesRow(e){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(()=>{o`<solution-resource-card></solution-resource-card>`})}</div></calcite-accordion-item></calcite-accordion>`}_getRelatedResources(){return[]}_getYouMayAlsoLikeRow(e){let t=this._showYouMayAlsoLikeShowMore?"":"display-none",i=this._isYouMayAlsoLikeRowExpanded?this._translations.showLess:this._translations.showMore,s=this._isYouMayAlsoLikeRowExpanded?"arrow-up":"arrow-down",a=this._isYouMayAlsoLikeRowExpanded?"":{height:`${this._youMayAlsoLikeBaseHeight}px`};return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${D(a)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l,c)=>o`<solution-details-card .id=${`you-may-also-like-${c}`} .card=${l} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId||""} .referrerSolutionTitle=${this.card?.title||""} .referrerSolutionVersion=${this.card?.deployVersion||""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${s} kind=inverse @click=${()=>{this._youMayAlsoLikeElement.value?.classList.toggle("expanded"),this._isYouMayAlsoLikeRowExpanded=this._youMayAlsoLikeElement.value.classList.contains("expanded")}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getTermsOfUseRow(){return o`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo||"")??""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`}_openDeploy(){if(this._configContextConsumer.value.authentication.IsSignedIn){let e=this._deployDialogRef.value;e&&(this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Dialog Opened",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),e.userOptions=this._userOptions,e.open=!0)}else this._configContextConsumer.value.authentication.signIn("deploy")}_openUrl(e){window.open(e,"_blank")}_handleWatchDemoClick(e){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Watch Demo",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(e)}_handleLearnMoreClick(){this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(this.card?.learnMoreUrl||"")}async _detailsCardSelected(e){this.card=e.detail,this.el.scrollIntoView(!0),this._onResize(),this._missingPrivilegeMessages=void 0,await this._getItemData(),this._expandAccordions()}_expandAccordions(){this._overviewAccordionItemElement.value&&(this._overviewAccordionItemElement.value.expanded=!0),this._releaseNotesAccordionItemElement.value&&(this._releaseNotesAccordionItemElement.value.expanded=!0),this._relatedResourcesAccordionItemElement.value&&(this._relatedResourcesAccordionItemElement.value.expanded=!0),this._screenshotsAccordionItemElement.value&&(this._screenshotsAccordionItemElement.value.expanded=!0),this._termsOfUseAccordionItemElement.value&&(this._termsOfUseAccordionItemElement.value.expanded=!0),this._youMayAlsoLikeAccordionItemElement.value&&(this._youMayAlsoLikeAccordionItemElement.value.expanded=!0)}async _getItemData(){this._itemFetched=!1;let e=this._configContextConsumer.value,t=e?.agoBasedEnterpriseSolutionsGroupId&&e?.isEnterprise?e.anonAgolSession:e?.userSession,i=await O(this.card.id,t),s=await T(this.card.id,t);this._itemFetched=!0,this._itemProperties=s.properties,this.itemPropertiesFetched.emit(this._itemProperties);let a=B(i,this.card.typeKeywords,e?.authentication);this._privileges=t.username?a:[],this._userPrivileges=e?.authentication&&e?.userSession?await q(e.authentication,e.userSession,e.authentication.PortalUserPrivileges):[];let l=this._privileges.filter(p=>!this._userPrivileges.includes(p));this._missingPrivilegeMessages=Y(this._translations,l),this._isDeployDisabled=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);let c=i.params?await this.formatParams(i.params):[];this._userOptions=c,this._templates=i.templates,this.templatesFetched.emit(i.templates),this._checkUrlParametersForAutoDeployment(),this._isLoaded=!0,this._showLoader&&(this._showLoader=!1,this._isDeployDisabled||this._openDeploy())}formatParams(e){let t=this._configContextConsumer.value.userSession,i=[],s=e?Object.keys(e):[],a={id:"",props:[],accordionDisplay:!1};if(s.length>0){let l=[];return s.forEach(c=>{let p=e[c];p.valueType&&p.valueType.toLowerCase()==="itemid"&&l.push(this._findExistingItem(c,"Feature Service",t.username||""))}),Promise.all(l).then(c=>{let p={};return c.forEach(r=>{if(r.query&&r.results&&r.results.length>0){let W=r.query.split(" ")[0].replace("typekeywords:source-","");p[W]={resultId:r.results[0].id,response:r.results[0]}}}),s.forEach(r=>{if(r==="serviceLearnMore"){this._configureLearnMore=e[r],alert(this._configureLearnMore),delete e[r];return}e[r].enterpriseIDMapping&&(this._customDeploymentMappings[r]=e[r].enterpriseIDMapping),a.id=r,p[r]&&(e[r].existingItemId=p[r].resultId,this.updateUserProp(e[r],p[r].response)),this.updateOption(e[r],a,r)}),i.push(a),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let s=this._configContextConsumer.value.userSession;return G(`typekeywords:source-${e} type:${t} owner:${i}`,s)}updateUserProp(e,t){let i=e.itemType?.toLowerCase()==="feature service",s=new RegExp(i?this._regexFsUrl:e.itemType,"iu"),a=$(t,i?"url":"type","")||"",l=a!==""&&s.test(a);return e.responseValue=l?a:"",e.name=l&&v(t,"name")||"",e.title=l&&v(t,"title")||"",e.itemType=l?v(t,"type"):e.itemType,e.validId=l,e.itemUrl=z(t.id,this._configContextConsumer.value.authentication),l}updateOption(e,t,i){let s=e.default||"",a=typeof s,l=s.toString();this._setFeatureServiceProps(e);let c=this.getValidation(e,l);t.props.push({id:i,outType:a,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:l,default:l,srSearchText:l,autoSelect:l!=="",...c,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&P(e,"attributes.required","true")}getValidation(e,t){let i="",s=v(e,"validation.message")||"",a=!0;return v(e,"attributes.required")==="true"&&(i=$(e,"validation.expression","\\S{1,}"),a=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,s=this._translations.configure.invalidID),{valid:a,validation:{expression:i,message:s}}}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2}_cleanupPanel(){this.el.scrollIntoView(!0),this._isScreenshotsRowExpanded=!1,this._showScreenshotsShowMore=!1,this._screenshotsElement.value?.classList.remove("expanded"),this._isYouMayAlsoLikeRowExpanded=!1,this._showYouMayAlsoLikeShowMore=!1,this._youMayAlsoLikeElement.value?.classList.remove("expanded"),this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1),this._isDeployDisabled=!1,this._isLoaded=!1,this._itemFetched=!1,this._showLoader=!1,this._expandAccordions()}_deployProgressStart(e){this._deploymentStartTime=Date.now(),this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Started",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0,this._deployingDialogRef.value.abortController=e.detail),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(e=!1){if(this._cancellationStartTime!==null){let t=f(this._cancellationStartTime);this._telemetry?.logEvent({category:m.SOLUTION_DETAILS,action:"Deploy Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[this._deployToCancelDuration,t]}),this._cancellationStartTime=null,this._deployToCancelDuration=0}this._deployingDialogRef.value.close(),e?this._deployDialogRef.value.open=!0:this._deployDialogRef.value.close(),this._deployDialogRef.value.classList.remove("display-none")}_handleDeployAppTabSelected(e){e.detail==="details"&&this.sortTypeChanged.emit("")}_checkPermissionsBeforeDeploy(){this._isLoaded?this._openDeploy():this._configContextConsumer.value.authentication?.IsSignedIn?this._showLoader=!0:this._openDeploy()}};C("solution-details-panel",I);return I},a,c,e,f)
@@ -1 +1 @@
1
- {"arcgisSolutions":"ArcGIS Solutions","newSolution":"New","updated":"Updated","deployed":"Deployed","viewDetails":"View solution"}
1
+ {"arcgisSolutions":"ArcGIS Solutions","newSolution":"New","updated":"Updated","deployed":"Deployed","viewDetails":"View solution","deployedTitle":"You have deployed this solution","deployedPreviousTitle":"You have deployed a previous version of this solution"}
@@ -1 +1 @@
1
- {"arcgisSolutions":"ArcGIS Solutions","newSolution":"New","updated":"Updated","deployed":"Deployed","viewDetails":"View solution"}
1
+ {"arcgisSolutions":"ArcGIS Solutions","newSolution":"New","updated":"Updated","deployed":"Deployed","viewDetails":"View solution","deployedTitle":"You have deployed this solution","deployedPreviousTitle":"You have deployed a previous version of this solution"}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"بيت_This item is owned by a different user and will not be deleted________________________________لاحقة","noPrivilegeToManage":"بيت_You do not have the privileges to manage this item___________________________لاحقة.","openDetails":"فتح التفاصيل","solutionsTemplates":"قائمة القوالب الموجودة في هذا الحل","usedInAnotherSolution":"بيت_This item is used in another solution____________________لاحقة."}
1
+ {"usedInOtherSolutionsDeleteWarning":"بيت_This item is used in another solution and will not be deleted________________________________لاحقة","noPrivilegeToManage":"بيت_You do not have the privileges to manage this item___________________________لاحقة.","openDetails":"فتح التفاصيل","solutionsTemplates":"قائمة القوالب الموجودة في هذا الحل","usedInAnotherSolution":"بيت_This item is used in another solution____________________لاحقة."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"й_This item is owned by a different user and will not be deleted________________________________й","noPrivilegeToManage":"й_You do not have the privileges to manage this item___________________________й.","openDetails":"Отваряне на детайлите","solutionsTemplates":"Списъкът с шаблони, съдържащи се в това решение","usedInAnotherSolution":"й_This item is used in another solution____________________й."}
1
+ {"usedInOtherSolutionsDeleteWarning":"й_This item is used in another solution and will not be deleted________________________________й","noPrivilegeToManage":"й_You do not have the privileges to manage this item___________________________й.","openDetails":"Отваряне на детайлите","solutionsTemplates":"Списъкът с шаблони, съдържащи се в това решение","usedInAnotherSolution":"й_This item is used in another solution____________________й."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"Č_This item is owned by a different user and will not be deleted________________________________ž","noPrivilegeToManage":"Č_You do not have the privileges to manage this item___________________________ž.","openDetails":"Otvori pojedinosti","solutionsTemplates":"Popis predložaka sadržanih u ovom rješenju","usedInAnotherSolution":"Č_This item is used in another solution____________________ž."}
1
+ {"usedInOtherSolutionsDeleteWarning":"Č_This item is used in another solution and will not be deleted________________________________ž","noPrivilegeToManage":"Č_You do not have the privileges to manage this item___________________________ž.","openDetails":"Otvori pojedinosti","solutionsTemplates":"Popis predložaka sadržanih u ovom rješenju","usedInAnotherSolution":"Č_This item is used in another solution____________________ž."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"ó_This item is owned by a different user and will not be deleted________________________________à","noPrivilegeToManage":"ó_You do not have the privileges to manage this item___________________________à.","openDetails":"Obre els detalls","solutionsTemplates":"Llista de plantilles que conté aquesta solució","usedInAnotherSolution":"ó_This item is used in another solution____________________à."}
1
+ {"usedInOtherSolutionsDeleteWarning":"ó_This item is used in another solution and will not be deleted________________________________à","noPrivilegeToManage":"ó_You do not have the privileges to manage this item___________________________à.","openDetails":"Obre els detalls","solutionsTemplates":"Llista de plantilles que conté aquesta solució","usedInAnotherSolution":"ó_This item is used in another solution____________________à."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"Ř_This item is owned by a different user and will not be deleted________________________________ů","noPrivilegeToManage":"Ř_You do not have the privileges to manage this item___________________________ů.","openDetails":"Otevřít podrobnosti","solutionsTemplates":"Seznam šablon obsažených v tomto řešení","usedInAnotherSolution":"Ř_This item is used in another solution____________________ů."}
1
+ {"usedInOtherSolutionsDeleteWarning":"Ř_This item is used in another solution and will not be deleted________________________________ů","noPrivilegeToManage":"Ř_You do not have the privileges to manage this item___________________________ů.","openDetails":"Otevřít podrobnosti","solutionsTemplates":"Seznam šablon obsažených v tomto řešení","usedInAnotherSolution":"Ř_This item is used in another solution____________________ů."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"ø_This item is owned by a different user and will not be deleted________________________________å","noPrivilegeToManage":"ø_You do not have the privileges to manage this item___________________________å.","openDetails":"Åbn oplysninger","solutionsTemplates":"Listen over skabeloner, der er indeholdt i denne løsning","usedInAnotherSolution":"ø_This item is used in another solution____________________å."}
1
+ {"usedInOtherSolutionsDeleteWarning":"ø_This item is used in another solution and will not be deleted________________________________å","noPrivilegeToManage":"ø_You do not have the privileges to manage this item___________________________å.","openDetails":"Åbn oplysninger","solutionsTemplates":"Listen over skabeloner, der er indeholdt i denne løsning","usedInAnotherSolution":"ø_This item is used in another solution____________________å."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"ä_This item is owned by a different user and will not be deleted________________________________Ü","noPrivilegeToManage":"ä_You do not have the privileges to manage this item___________________________Ü.","openDetails":"Details öffnen","solutionsTemplates":"Die Liste der in dieser Lösung enthaltenen Vorlagen","usedInAnotherSolution":"ä_This item is used in another solution____________________Ü."}
1
+ {"usedInOtherSolutionsDeleteWarning":"ä_This item is used in another solution and will not be deleted________________________________Ü","noPrivilegeToManage":"ä_You do not have the privileges to manage this item___________________________Ü.","openDetails":"Details öffnen","solutionsTemplates":"Die Liste der in dieser Lösung enthaltenen Vorlagen","usedInAnotherSolution":"ä_This item is used in another solution____________________Ü."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"π_This item is owned by a different user and will not be deleted________________________________Ω","noPrivilegeToManage":"π_You do not have the privileges to manage this item___________________________Ω.","openDetails":"Άνοιγμα λεπτομερειών","solutionsTemplates":"Η λίστα προτύπων που περιλαμβάνονται σε αυτή τη λύση","usedInAnotherSolution":"π_This item is used in another solution____________________Ω."}
1
+ {"usedInOtherSolutionsDeleteWarning":"π_This item is used in another solution and will not be deleted________________________________Ω","noPrivilegeToManage":"π_You do not have the privileges to manage this item___________________________Ω.","openDetails":"Άνοιγμα λεπτομερειών","solutionsTemplates":"Η λίστα προτύπων που περιλαμβάνονται σε αυτή τη λύση","usedInAnotherSolution":"π_This item is used in another solution____________________Ω."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"á_This item is owned by a different user and will not be deleted________________________________Ó","noPrivilegeToManage":"á_You do not have the privileges to manage this item___________________________Ó.","openDetails":"Abrir detalles","solutionsTemplates":"Lista de plantillas incluidas en esta solución","usedInAnotherSolution":"á_This item is used in another solution____________________Ó."}
1
+ {"usedInOtherSolutionsDeleteWarning":"á_This item is used in another solution and will not be deleted________________________________Ó","noPrivilegeToManage":"á_You do not have the privileges to manage this item___________________________Ó.","openDetails":"Abrir detalles","solutionsTemplates":"Lista de plantillas incluidas en esta solución","usedInAnotherSolution":"á_This item is used in another solution____________________Ó."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"Š_This item is owned by a different user and will not be deleted________________________________ä","noPrivilegeToManage":"Š_You do not have the privileges to manage this item___________________________ä.","openDetails":"Ava üksikasjad","solutionsTemplates":"Selles lahenduses sisalduvate mallide loend","usedInAnotherSolution":"Š_This item is used in another solution____________________ä."}
1
+ {"usedInOtherSolutionsDeleteWarning":"Š_This item is used in another solution and will not be deleted________________________________ä","noPrivilegeToManage":"Š_You do not have the privileges to manage this item___________________________ä.","openDetails":"Ava üksikasjad","solutionsTemplates":"Selles lahenduses sisalduvate mallide loend","usedInAnotherSolution":"Š_This item is used in another solution____________________ä."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"Å_This item is owned by a different user and will not be deleted________________________________ö","noPrivilegeToManage":"Å_You do not have the privileges to manage this item___________________________ö.","openDetails":"Avaa tiedot","solutionsTemplates":"Tähän ratkaisuun sisältyvien mallien luettelo","usedInAnotherSolution":"Å_This item is used in another solution____________________ö."}
1
+ {"usedInOtherSolutionsDeleteWarning":"Å_This item is used in another solution and will not be deleted________________________________ö","noPrivilegeToManage":"Å_You do not have the privileges to manage this item___________________________ö.","openDetails":"Avaa tiedot","solutionsTemplates":"Tähän ratkaisuun sisältyvien mallien luettelo","usedInAnotherSolution":"Å_This item is used in another solution____________________ö."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"æ_This item is owned by a different user and will not be deleted________________________________Â","noPrivilegeToManage":"æ_You do not have the privileges to manage this item___________________________Â.","openDetails":"Ouvrir les détails","solutionsTemplates":"Liste des modèles inclus dans cette solution","usedInAnotherSolution":"æ_This item is used in another solution____________________Â."}
1
+ {"usedInOtherSolutionsDeleteWarning":"æ_This item is used in another solution and will not be deleted________________________________Â","noPrivilegeToManage":"æ_You do not have the privileges to manage this item___________________________Â.","openDetails":"Ouvrir les détails","solutionsTemplates":"Liste des modèles inclus dans cette solution","usedInAnotherSolution":"æ_This item is used in another solution____________________Â."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"כן_This item is owned by a different user and will not be deleted________________________________ש","noPrivilegeToManage":"כן_You do not have the privileges to manage this item___________________________ש.","openDetails":"פתח פרטים","solutionsTemplates":"רשימת התבניות שכלולות בפתרון זה.","usedInAnotherSolution":"כן_This item is used in another solution____________________ש."}
1
+ {"usedInOtherSolutionsDeleteWarning":"כן_This item is used in another solution and will not be deleted________________________________ש","noPrivilegeToManage":"כן_You do not have the privileges to manage this item___________________________ש.","openDetails":"פתח פרטים","solutionsTemplates":"רשימת התבניות שכלולות בפתרון זה.","usedInAnotherSolution":"כן_This item is used in another solution____________________ש."}
@@ -1 +1 @@
1
- {"differentOwnerDeleteWarning":"Č_This item is owned by a different user and will not be deleted________________________________ž","noPrivilegeToManage":"Č_You do not have the privileges to manage this item___________________________ž.","openDetails":"Otvori pojedinosti","solutionsTemplates":"Popis predložaka sadržanih u ovom rješenju","usedInAnotherSolution":"Č_This item is used in another solution____________________ž."}
1
+ {"usedInOtherSolutionsDeleteWarning":"Č_This item is used in another solution and will not be deleted________________________________ž","noPrivilegeToManage":"Č_You do not have the privileges to manage this item___________________________ž.","openDetails":"Otvori pojedinosti","solutionsTemplates":"Popis predložaka sadržanih u ovom rješenju","usedInAnotherSolution":"Č_This item is used in another solution____________________ž."}