@esri/solutions-components 5.1.1 → 5.1.2
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.
- package/dist/cdn/{E5A7A2YY.js → 3CSSTWYC.js} +1 -1
- package/dist/cdn/{OYMJFSWN.js → 3DNEBMT3.js} +1 -1
- package/dist/cdn/{VTRC64F6.js → 3FIRDPVD.js} +1 -1
- package/dist/cdn/{5YD3IE6V.js → 3KYCZII7.js} +1 -1
- package/dist/cdn/{P2QNOVPZ.js → 3NI2BJYO.js} +1 -1
- package/dist/cdn/{G2H3X6NS.js → 3W7ANZME.js} +1 -1
- package/dist/cdn/{P4ZYEBFM.js → 4RH7N22O.js} +1 -1
- package/dist/cdn/{6FNUCCS3.js → 5F6WBFDO.js} +1 -1
- package/dist/cdn/{S57RXN34.js → 5IO4VX4R.js} +1 -1
- package/dist/cdn/{KXANPOG5.js → 5Q64VY2E.js} +1 -1
- package/dist/cdn/{N5D7USS3.js → 65OXHGCN.js} +1 -1
- package/dist/cdn/{DGY2VKHA.js → 6F6YFDOY.js} +1 -1
- package/dist/cdn/{PGFW2YO5.js → 6KBY56R4.js} +1 -1
- package/dist/cdn/{XYJU325L.js → 6L6JOGWD.js} +1 -1
- package/dist/cdn/{Q5XHG472.js → 6OKLCUSH.js} +1 -1
- package/dist/cdn/{224NND54.js → 6RQBPR56.js} +1 -1
- package/dist/cdn/{ERQAH6G3.js → 74Z5A6E2.js} +1 -1
- package/dist/cdn/{WJRVHF3G.js → 7AHZBLTM.js} +1 -1
- package/dist/cdn/{AXEZNIEX.js → 7EJXZVSX.js} +1 -1
- package/dist/cdn/{K6GC6RUA.js → 7NQYBMRX.js} +1 -1
- package/dist/cdn/{SWUMBQ6T.js → 7XPOQHB4.js} +1 -1
- package/dist/cdn/A4KEZALJ.js +2 -0
- package/dist/cdn/{7GVLJERR.js → AS7PVOU3.js} +1 -1
- package/dist/cdn/{ZX5GQTIE.js → BFFHQBDI.js} +1 -1
- package/dist/cdn/{3T56IY7B.js → BKIKLE4Z.js} +1 -1
- package/dist/cdn/{D25JFQEK.js → BWNEUQZZ.js} +1 -1
- package/dist/cdn/{VNYXOWZX.js → BZWJ3KFS.js} +115 -115
- package/dist/cdn/{4G5PYXFM.js → C2GWD5VP.js} +1 -1
- package/dist/cdn/{US5ONKMV.js → C3SIGIJC.js} +1 -1
- package/dist/cdn/CC7JGR5Q.js +2 -0
- package/dist/cdn/{R7DGMKJ5.js → CKPQTIAF.js} +1 -1
- package/dist/cdn/{Z324WI3X.js → CRTJERAB.js} +1 -1
- package/dist/cdn/{DJXQKOIX.js → CVKCFLNY.js} +1 -1
- package/dist/cdn/{CJJEWE3Q.js → CVNW2AU2.js} +1 -1
- package/dist/cdn/{XDLYXP3W.js → CXTHIJOC.js} +65 -73
- package/dist/cdn/{R6ANOQU2.js → DE7GSGUB.js} +1 -1
- package/dist/cdn/{5VUSSAPX.js → DEVAXAP7.js} +1 -1
- package/dist/cdn/{K5EP7XDM.js → DF2U7HIU.js} +1 -1
- package/dist/cdn/{NEZAEPUJ.js → DLV7AZZ6.js} +1 -1
- package/dist/cdn/{4RWJ22V3.js → DQJ36YEL.js} +1 -1
- package/dist/cdn/{MZOWOFAE.js → DXI5HEQM.js} +1 -1
- package/dist/cdn/{EL34IIAJ.js → E3O6DPAL.js} +1 -1
- package/dist/cdn/{W3SEKNJO.js → E5YZOOW3.js} +1 -1
- package/dist/cdn/{SUOJTOE2.js → EBDDUQNC.js} +1 -1
- package/dist/cdn/{RY7S2ICL.js → EHIUCEAX.js} +1 -1
- package/dist/cdn/{WZHA7MTK.js → EJRV6YWD.js} +1 -1
- package/dist/cdn/EX4K4RKP.js +2 -0
- package/dist/cdn/{2MDEEI52.js → FSFVH74N.js} +1 -1
- package/dist/cdn/{VIZY55AV.js → GHVPHEOH.js} +1 -1
- package/dist/cdn/GPIIJWNM.js +2 -0
- package/dist/cdn/{KWOBLDUS.js → GRVDJVOF.js} +1 -1
- package/dist/cdn/{P734JXTN.js → GSI62QHB.js} +1 -1
- package/dist/cdn/{B7TH7XYI.js → GWIC6C6P.js} +1 -1
- package/dist/cdn/{6CVQ3V2G.js → GZZMHIFA.js} +1 -1
- package/dist/cdn/{TDDVICGP.js → HQFL3NGM.js} +1 -1
- package/dist/cdn/{QKQXW6OQ.js → INFZEU32.js} +1 -1
- package/dist/cdn/{Q5LSIHQ4.js → J7DTCWOP.js} +1 -1
- package/dist/cdn/{GSOMYPWB.js → KB7CXY4N.js} +1 -1
- package/dist/cdn/{OU4VLS5H.js → KMY4AVEA.js} +1 -1
- package/dist/cdn/{KENYVRIH.js → L6XSVTY3.js} +1 -1
- package/dist/cdn/{DQPIAF2T.js → LCDURBN6.js} +1 -1
- package/dist/cdn/{JKUPRPWA.js → LFIP5DV3.js} +1 -1
- package/dist/cdn/{PDJXTJHO.js → LK6WQCXQ.js} +1 -1
- package/dist/cdn/{ONAAPGO3.js → LSDYUCCZ.js} +1 -1
- package/dist/cdn/{VEBBZ2RS.js → LXJI7FYN.js} +1 -1
- package/dist/cdn/{4SYZADNV.js → MVXK7UGO.js} +1 -1
- package/dist/cdn/{LIEHXKWK.js → MZ5XI2CY.js} +1 -1
- package/dist/cdn/{NWNUNME7.js → NIUKLQOT.js} +1 -1
- package/dist/cdn/{AIM6JKQK.js → NJSQ3NUT.js} +1 -1
- package/dist/cdn/{G772MFBV.js → NVNB4L52.js} +1 -1
- package/dist/cdn/{KLFAQLC6.js → NWOPIQFN.js} +1 -1
- package/dist/cdn/{M5VGNDPK.js → O6HS2AMH.js} +1 -1
- package/dist/cdn/{HQIM7CQS.js → OPWMEQVM.js} +1 -1
- package/dist/cdn/{VX3K6KJB.js → OVAQRVFG.js} +1 -1
- package/dist/cdn/{HMZ4VIJQ.js → P2FSR5OV.js} +1 -1
- package/dist/cdn/{E4OPUBGE.js → PQVA7SKB.js} +1 -1
- package/dist/cdn/{QWQ535RX.js → PSM4UX7K.js} +1 -1
- package/dist/cdn/{EWIPITVN.js → Q5N7I65T.js} +1 -1
- package/dist/cdn/{RPUUOIRT.js → QODVIACF.js} +1 -1
- package/dist/cdn/{VXIWNY5G.js → QVD3AXIP.js} +1 -1
- package/dist/cdn/{DEATAJID.js → RAL6IXW5.js} +1 -1
- package/dist/cdn/{Y3PEQHDX.js → RJLEYL7O.js} +1 -1
- package/dist/cdn/{JGSZS6VC.js → RNNEZRGA.js} +1 -1
- package/dist/cdn/{SEII6Y3C.js → RPL5Q7IL.js} +1 -1
- package/dist/cdn/{PEI3LZZL.js → RQVXDCWL.js} +1 -1
- package/dist/cdn/{LADUP3BG.js → SQEPSAKG.js} +1 -1
- package/dist/cdn/{DXQBDTBG.js → T7O4WZGU.js} +1 -1
- package/dist/cdn/{F6LBLCUM.js → UDWEFNJE.js} +1 -1
- package/dist/cdn/{VPHEAUEZ.js → UILBHLN7.js} +1 -1
- package/dist/cdn/{AIZ2P72X.js → VSRNGZ43.js} +1 -1
- package/dist/cdn/{3BL4GCSN.js → WNYAZ4ME.js} +1 -1
- package/dist/cdn/{GYVIOOMC.js → WRMREY3V.js} +1 -1
- package/dist/cdn/{5A5W5PLO.js → WVCL5OUK.js} +1 -1
- package/dist/cdn/{QKPUJ5CZ.js → XIUYVZYL.js} +1 -1
- package/dist/cdn/{VZ2ZZK3Y.js → Y2KRCLNN.js} +1 -1
- package/dist/cdn/{67KMG355.js → YBJ6AHAG.js} +1 -1
- package/dist/cdn/{OTTBXOCQ.js → YHF3Q7QB.js} +1 -1
- package/dist/cdn/{GV3GU3O3.js → Z6CZ7GFZ.js} +1 -1
- package/dist/cdn/{YJ3DKEEZ.js → ZB5UCRCG.js} +1 -1
- package/dist/cdn/{NQP26Q5H.js → ZHVO477V.js} +1 -1
- package/dist/cdn/{OSOSX7F3.js → ZXGNDW3R.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +125 -119
- package/dist/components/crowdsource-manager/customElement.d.ts +0 -6
- package/dist/components/crowdsource-manager/customElement.js +14 -11
- package/dist/components/layer-table/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/solutions-components_commit.txt +7 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +1 -0
- package/package.json +1 -3
- package/dist/cdn/4VP3KTLL.js +0 -2
- package/dist/cdn/BQ2LFMED.js +0 -2
- package/dist/cdn/D5OMLQMV.js +0 -2
- package/dist/cdn/OGH565H7.js +0 -3
- package/dist/cdn/QH343537.js +0 -56
- package/dist/cdn/UUKV62PY.js +0 -109
- package/dist/cdn/WNM5Z4SM.js +0 -2
- package/dist/cdn/ZPEVEBJD.js +0 -121
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as y}from"./
|
|
2
|
+
import{a as y}from"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as _}from"./ZB5UCRCG.js";import{F as g,G as f,H as b,J as w,h as m,i as n,q as o,u as p}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([d])=>{var v=m`@layer{:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar,.display-none{display:none!important}.esri-editor__panel-content{padding-block:10px!important}.notice-msg{padding:10px;width:calc(100% - 20px)}}`,h=class extends b{constructor(){super(...arguments),this.customizeSubmit=!1,this.enableSnapping=!1,this.showGuidingMsg=!0,this._editorLoading=!1,this._translations=y({name:"create-related-feature",blocking:!0}),this._addingAttachment=!1,this._editor=g(),this._isSubmitBtnClicked=!1,this.success=o(),this.fail=o(),this.isActionPending=o(),this.formReady=o(),this._onEditorPropertyChange=()=>{let t=this._editor.value;if(t){d.watch(()=>t.state,i=>{i==="adding-attachment"||i==="editing-attachment"?(this._addingAttachment=!0,this.isActionPending.emit(!0)):this._addingAttachment&&(this.isActionPending.emit(!1),this._addingAttachment=!1)});let e=t.activeWorkflow?.formViewModel;e.state?d.watch(()=>e.state,i=>{i==="ready"&&this.formReady.emit()}):e.status&&d.watch(()=>e.status,i=>{i==="loaded"&&this.formReady.emit()})}}}static{this.properties={customizeSubmit:5,enableSnapping:5,mapView:0,selectedFeature:0,showGuidingMsg:5,table:0,_editorLoading:16,_translations:16}}static{this.styles=v}static{this.shadowRootOptions=p}async submit(){this._editor.value?.activeWorkflow&&(this._isSubmitBtnClicked=!0,this._editor.value.activeWorkflow?.formViewModel?.submit())}render(){let t=this._editorLoading?"":"display-none";return n`${this.showGuidingMsg&&n`<calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.provideDetailsMsg}</div></calcite-notice>`||""}<calcite-loader class=${w(t)} .label=${this._translations.loading} scale=s></calcite-loader>${this.mapView&&this._getEditor()||""}`}disconnectedCallback(){super.disconnectedCallback(),this._editor.value&&this._editor.value.destroy()}_getEditor(){return n`<arcgis-editor .view=${this.mapView} hide-edit-features-section .hideSettingsMenu=${!this.enableSnapping} hide-sketch .hideSnappingControlsElementsEnabledToggle=${!this.enableSnapping} @arcgisReady=${this._startCreate} @arcgisPropertyChange=${this._onEditorPropertyChange} ${f(this._editor)}></arcgis-editor>`}async _startCreate(){let t=this.selectedFeature?.layer,e=this.table;if(t.relationships&&e?.relationships&&this.selectedFeature&&e.templates){let i=t.relationships[0],s=e.relationships.find(r=>t.layerId===r.relatedTableId),a=Number(this.selectedFeature.getObjectId());if(!Number.isNaN(a)&&s){let r=(await t.queryFeatures({objectIds:[a],outFields:[t.objectIdField,i.keyField]})).features[0],l=e.templates[0],c={attributeOverrides:this.makeAttributesForRelatedFeature(r,i,s),layer:e,template:l};await this._editor.value?.startCreateFeaturesWorkflowAtFeatureCreation(c),await this.hideEditorsElements();let u=this._editor.value?.activeWorkflow?.formViewModel;u&&this._editor.value?.activeWorkflow?.formViewModel?.addHandles(u.on("submit",this.submitted.bind(this)))}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector("arcgis-editor")?.shadowRoot?.querySelectorAll("calcite-flow-item")?.forEach(t=>{let e=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");e?.querySelector("header")?.setAttribute("style","display: none"),e?.querySelector("footer")?.setAttribute("style","display: none")}))}makeAttributesForRelatedFeature(t,e,i){let s=e.keyField,a;t.attributes.hasOwnProperty(s)?a=t.getAttribute(s):t.attributes.hasOwnProperty(s.toLowerCase())?a=t.getAttribute(s.toLowerCase()):t.attributes.hasOwnProperty(s.toUpperCase())&&(a=t.getAttribute(s.toUpperCase()));let r=i.keyField,l=this.table?.fields.find(c=>c.name.toLocaleLowerCase()===r.toLocaleLowerCase());if(l)return r=l.name,{[r]:a}}async submitted(t){if(t?.invalid?.length||t?.results?.[0]?.invalidFields?.length||t?.results?.[0]?.invalidAttachmentElementIds?.length){this._isSubmitBtnClicked=!1;return}if(t?.valid?.length?t.valid.length&&this._isSubmitBtnClicked:this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{if(this._editor.value?.activeWorkflow){await this._editor.value.activeWorkflow.commit();let e=this._editor.value.activeWorkflow?.failures?.length?this._editor.value.activeWorkflow.failures:this._editor.value.activeWorkflow?.data?.viewModel?.failures;if(e?.length){e.some(i=>{if(i.error)throw i.error});return}}}catch(e){this.fail.emit(e);return}this.success.emit()}}async timeout(t){return await new Promise(e=>setTimeout(e,t))}};_("create-related-feature",h);return h},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./DE7GSGUB.js";import e from"./MVXK7UGO.js";import"./RNNEZRGA.js";import"./VVZAS55G.js";import"./MXPZF4RB.js";import d from"./DQJ36YEL.js";import c from"./TK5EXRZL.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./CGQALCTZ.js";import"./US5FON7D.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./ZB5UCRCG.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./CVNW2AU2.js";import b from"./DQJ36YEL.js";import a from"./TK5EXRZL.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./CGQALCTZ.js";import"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./ZB5UCRCG.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./DQJ36YEL.js";import{ua as i}from"./CGQALCTZ.js";export default $arcgis.t(([{a:p}])=>{async function D(o,a){let r=await v(a,o),I=[],m=[],d=[],f=r.map(async e=>{let c=await h(e.id,"reverse","Solution2Item",o);return{template:e,relatedItems:c}}),u=await Promise.all(f);for(let{template:e,relatedItems:c}of u)for(let w of c){let s=[];for(let t of w.relatedItemIds)s.push({controlItemId:e.id,dependencyItemId:t});let S=s.reduce((t,n)=>(t[n.controlItemId]||(t[n.controlItemId]=new Set),t[n.controlItemId].add(n.dependencyItemId),t),{}),l=Object.entries(S).filter(([t,n])=>n.size>1).flatMap(([t,n])=>Array.from(n).map(g=>({controlItemId:t,dependencyItemId:g})));l.length>0&&(d=d.concat(l))}m=Array.from(new Map([...d].map(e=>[`${e.controlItemId}:${e.dependencyItemId}`,e])).values());let y=m.map(e=>e.controlItemId);return I=[...new Set(y)],{uniqueIitemIds:I,_nonSolutionDependencyItems:m,templateInfos:r}}async function h(o,a,r,I){let m=await i(o,r,a,I);return[{relationshipType:r,relatedItemIds:m.relatedItems.map(d=>d.id)}]}async function v(o,a){return await p(o.id,a)}return{a:D,b:v}},a)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as He,b as ae}from"./7CGCLEYB.js";import{a as ye}from"./US5FON7D.js";import{a as $r}from"./AIZ2P72X.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{c as Kr,k as st}from"./3TAQSXLA.js";import{a as at}from"./PY6RTQDR.js";import{b as Br}from"./YJ3DKEEZ.js";import{H as Fr,h as Wr,q as qr}from"./T3EPRHTT.js";import{b as te,d as Vt}from"./EXBEKVP5.js";var nn=te((Wt,qt)=>{(function(t,e){typeof Wt=="object"&&typeof qt<"u"?qt.exports=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}:typeof define=="function"&&define.amd?define(function(){return function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}}):t.dlv=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}})(Wt)});var cr=te((ic,Ke)=>{function os(t,e){this.v=t,this.k=e}Ke.exports=os,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports});var lr=te((ac,me)=>{function Tt(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}me.exports=Tt=function(a,o,c,u){function f(d,m){Tt(a,d,function(g){return this._invoke(d,m,g)})}o?i?i(a,o,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[o]=c:(f("next",0),f("throw",1),f("return",2))},me.exports.__esModule=!0,me.exports.default=me.exports,Tt(t,e,r,n)}me.exports=Tt,me.exports.__esModule=!0,me.exports.default=me.exports});var fr=te((sc,ge)=>{var le=lr();function Jn(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,A,I,E){var x=A&&A.prototype instanceof o?A:o,y=Object.create(x.prototype);return le(y,"_invoke",(function(M,v,h){var P,w,b,D=0,H=h||[],L=!1,R={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(S,j){return P=S,w=0,b=t,R.n=j,a}};function z(k,S){for(w=k,b=S,e=0;!L&&D&&!j&&e<H.length;e++){var j,C=H[e],ee=R.p,l=C[2];k>3?(j=l===S)&&(b=C[(w=C[4])?5:(w=3,3)],C[4]=C[5]=t):C[0]<=ee&&((j=k<2&&ee<C[1])?(w=0,R.v=S,R.n=C[1]):ee<l&&(j=k<3||C[0]>S||S>l)&&(C[4]=k,C[5]=S,R.n=l,w=0))}if(j||k>1)return a;throw L=!0,S}return function(k,S,j){if(D>1)throw TypeError("Generator is already running");for(L&&S===1&&z(S,j),w=S,b=j;(e=w<2?t:b)||!L;){P||(w?w<3?(w>1&&(R.n=-1),z(w,b)):R.n=b:R.v=b);try{if(D=2,P){if(w||(k="next"),e=P[k]){if(!(e=e.call(P,b)))throw TypeError("iterator result is not an object");if(!e.done)return e;b=e.value,w<2&&(w=0)}else w===1&&(e=P.return)&&e.call(P),w<2&&(b=TypeError("The iterator does not provide a '"+k+"' method"),w=1);P=t}else if((e=(L=R.n<0)?b:M.call(v,R))!==a)break}catch(C){P=t,w=1,b=C}finally{D=1}}return{value:e,done:L}}})(g,I,E),!0),y}var a={};function o(){}function c(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(le(e={},n,function(){return this}),e),d=u.prototype=o.prototype=Object.create(f);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,le(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=u,le(d,"constructor",u),le(u,"constructor",c),c.displayName="GeneratorFunction",le(u,i,"GeneratorFunction"),le(d),le(d,i,"Generator"),le(d,n,function(){return this}),le(d,"toString",function(){return"[object Generator]"}),(ge.exports=Jn=function(){return{w:s,m}},ge.exports.__esModule=!0,ge.exports.default=ge.exports)()}ge.exports=Jn,ge.exports.__esModule=!0,ge.exports.default=ge.exports});var mr=te((oc,Ye)=>{var us=cr(),dr=lr();function pr(t,e){function r(i,s,a,o){try{var c=t[i](s),u=c.value;return u instanceof us?e.resolve(u.v).then(function(f){r("next",f,a,o)},function(f){r("throw",f,a,o)}):e.resolve(u).then(function(f){c.value=f,a(c)},function(f){return r("throw",f,a,o)})}catch(f){o(f)}}var n;this.next||(dr(pr.prototype),dr(pr.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(i,s,a){function o(){return new e(function(c,u){r(i,a,c,u)})}return n=n?n.then(o,o):o()},!0)}Ye.exports=pr,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports});var gr=te((uc,Xe)=>{var cs=fr(),ls=mr();function fs(t,e,r,n,i){return new ls(cs().w(t,e,r,n),i||Promise)}Xe.exports=fs,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports});var Zn=te((cc,Je)=>{var ds=gr();function ps(t,e,r,n,i){var s=ds(t,e,r,n,i);return s.next().then(function(a){return a.done?a.value:s.next()})}Je.exports=ps,Je.exports.__esModule=!0,Je.exports.default=Je.exports});var Qn=te((lc,Ze)=>{function ms(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}Ze.exports=ms,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports});var ei=te((fc,he)=>{function hr(t){"@babel/helpers - typeof";return he.exports=hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,hr(t)}he.exports=hr,he.exports.__esModule=!0,he.exports.default=he.exports});var ti=te((dc,Qe)=>{var gs=ei().default;function hs(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(gs(t)+" is not iterable")}Qe.exports=hs,Qe.exports.__esModule=!0,Qe.exports.default=Qe.exports});var ni=te((pc,ve)=>{var vs=cr(),ys=fr(),bs=Zn(),ws=gr(),Ss=mr(),Es=Qn(),ri=ti();function vr(){"use strict";var t=ys(),e=t.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(a){var o=typeof a=="function"&&a.constructor;return!!o&&(o===r||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(a){var o,c;return function(u){o||(o={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(d,m){return c(u.a,i[d],m)},delegateYield:function(d,m,g){return o.resultName=m,c(u.d,ri(d),g)},finish:function(d){return c(u.f,d)}},c=function(d,m,g){u.p=o.prev,u.n=o.next;try{return d(m,g)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return a.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ve.exports=vr=function(){return{wrap:function(c,u,f,d){return t.w(s(c),u,f,d&&d.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(c,u){return new vs(c,u)},AsyncIterator:Ss,async:function(c,u,f,d,m){return(n(u)?ws:bs)(s(c),u,f,d,m)},keys:Es,values:ri}},ve.exports.__esModule=!0,ve.exports.default=ve.exports)()}ve.exports=vr,ve.exports.__esModule=!0,ve.exports.default=ve.exports});var ai=te((mc,ii)=>{var xt=ni()();ii.exports=xt;try{regeneratorRuntime=xt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xt:Function("r","regeneratorRuntime = r")(xt)}});var yi=te((Ec,vi)=>{"use strict";var Is=function(e){return As(e)&&!Ps(e)};function As(t){return!!t&&typeof t=="object"}function Ps(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Ns(t)}var Ts=typeof Symbol=="function"&&Symbol.for,xs=Ts?Symbol.for("react.element"):60103;function Ns(t){return t.$$typeof===xs}function ks(t){return Array.isArray(t)?[]:{}}function tt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Le(ks(t),t,e):t}function js(t,e,r){return t.concat(e).map(function(n){return tt(n,r)})}function _s(t,e){if(!e.customMerge)return Le;var r=e.customMerge(t);return typeof r=="function"?r:Le}function Cs(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function gi(t){return Object.keys(t).concat(Cs(t))}function hi(t,e){try{return e in t}catch{return!1}}function Ms(t,e){return hi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ds(t,e,r){var n={};return r.isMergeableObject(t)&&gi(t).forEach(function(i){n[i]=tt(t[i],r)}),gi(e).forEach(function(i){Ms(t,i)||(hi(t,i)&&r.isMergeableObject(e[i])?n[i]=_s(i,r)(t[i],e[i],r):n[i]=tt(e[i],r))}),n}function Le(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||js,r.isMergeableObject=r.isMergeableObject||Is,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(e),i=Array.isArray(t),s=n===i;return s?n?r.arrayMerge(t,e,r):Ds(t,e,r):tt(e,r)}Le.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Le(n,i,r)},{})};var Us=Le;vi.exports=Us});function Gt(){var t;return!!(!((t=window?.navigator)===null||t===void 0)&&t.globalPrivacyControl)}function Yr(t={}){let{disabled:e,portal:r,requireConsent:n,userPrivacySettings:i}=t;if(n)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||e||r?.eueiEnabled===!1||Gt()?!0:!(!r||Qi(r)||ea(r)||ta(r))}function Qi(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}function ea(t){return t.user&&!t.user.orgId&&t.ipCntryCode==="US"}function ta(t){return!t.user&&t.ipCntryCode==="US"}var Pe={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch{e=this.storage[t]}if(e)try{return JSON.parse(e)}catch{return}else return},set(t,e){let r=JSON.stringify(e);try{window.localStorage.setItem(t,r)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}};var Xr="esri-telemetry";function Jr(t){return new Promise((r,n)=>{t.onload=r,t.onerror=n,(!na(t)||t.body)&&r()})}function ra(t){let{id:e,dataAttribute:r}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${Xr}="${r}"]`)}function na(t){let{body:e,src:r,id:n,dataAttribute:i,section:s="body",type:a="text/javascript",async:o=!1,defer:c=!1,onload:u,onerror:f}=t;if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");if(ra(t)){console.log(`script (${n||i}) is already present, skipping`);return}let d=ia({id:n,dataAttribute:i,type:a,async:o,defer:c,body:e,src:r,onload:u,onerror:f});return s==="body"?document.body.appendChild(d):document.head.appendChild(d)}var Ve=class extends Error{};function ia({id:t,dataAttribute:e,type:r,async:n,defer:i,body:s,src:a,onload:o,onerror:c}){let u=document.createElement("script");return t&&(u.id=t),e&&u.setAttribute(`data-${Xr}`,e),a&&(u.src=a),s&&(u.innerText=s),u.type=r,u.async=n,u.defer=i,o&&(u.onload=o),c&&(u.onerror=c),u}function Zr(t){return t.map(e=>{let r=[];return["src","id","dataAttribute","type"].forEach(n=>{let i=n;n==="dataAttribute"&&(i="data-esri-telemetry"),e[n]&&r.push(`${i}="${e[n]}"`)}),["async","defer"].forEach(n=>{e[n]&&r.push(`${n}`)}),`<script ${r.join(" ")}>${e.body?e.body:""}<\/script>`}).join("")}var aa=["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"],ot=class{constructor(e){var r,n,i;this.trackers=[],this.options=e,this.debug=e.debug,this.suppressDisabledWarnings=e.suppressDisabledWarnings,this.logger=e.logger||console,e.userPrivacySettings&&(this._userPrivacySettings=e.userPrivacySettings),e.requireConsent&&!e.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:ua(),timestamp:Date.now()},e.userPrivacySettings=this._userPrivacySettings),this.disabled=Yr(e),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let s=((r=e.portal)===null||r===void 0?void 0:r.user)||e.user;s&&this.setUser(s,(i=(n=e.portal)===null||n===void 0?void 0:n.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(e,r,n){let i=!r&&!e?.accepted,s=n.every(a=>e?.[a]);return i||s}filterTrackers(e){return this.options.plugins.filter(r=>e.includes(r.name))}initializeTrackers(){let e=this._userPrivacySettings,r=this.options.requireConsent;this.trackers=[],this.options.plugins&&(e?(this.shouldInitializeTrackers(e,r,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(e,r,["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(e=>e.getScriptTags&&e.getScriptTags()).join("")}async init(){let e=this.trackers.map(r=>r.init());await Promise.all(e)}setUser(e={},r="Public"){e=typeof e=="string"?{username:e}:e,this.user=e,this.user.accountType=r;let n;if(e.email&&e.email.split){let i=e.email.split("@")[1];n=aa.filter(s=>i===s).length>0}(n||["In House","Demo and Marketing"].indexOf(r)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(e){let{accepted:r,performance:n,targeting:i,functional:s}=this._userPrivacySettings,a=e.accepted&&!r&&!this.options.requireConsent&&(!e.performance||!e.targeting||!e.functional)||!e.performance&&n||!e.targeting&&i||!e.functional&&s;return this._userPrivacySettings=e,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(e,r={},n={}){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:o,hasError:c})=>!o&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let s=this.preProcess(r,n);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));let a=i.map(o=>o.logPageView(e,s));return Promise.all(a).then(),!0}logEvent(e,r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let n=this.trackers.filter(({disabled:a,hasError:o})=>!a&&!o);if(!n.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(e,r);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let s=n.map(a=>a.logEvent(i));return Promise.all(s).then(),!0}logError(e={}){e=Object.assign({eventType:"error"},e),this.logEvent(e)}startWorkflow(e,r={}){let n={name:e,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(n);let i=Object.assign({name:e,step:"start"},r);return this.logWorkflow(i),n}stepWorkflow(e,r,n={}){let i=typeof n=="string"?n:n.details,s=Object.assign({name:e,step:r,details:i},n);this.logWorkflow(s)}endWorkflow(e,r={}){let n=Object.assign({name:e,step:"finish"},r);this.logWorkflow(n)}cancelWorkflow(e,r={}){let n=Object.assign({name:e,step:"cancel"},r);this.logWorkflow(n)}getWorkflow(e){let r=Pe.get(`TELEMETRY-WORKFLOW:${e}`);if(r){let n=Date.now()-r.start,i=1800*1e3;if(n<i)return r;this.deleteWorkflow(r)}}saveWorkflow(e){Pe.set(`TELEMETRY-WORKFLOW:${e.name}`,e)}deleteWorkflow(e){Pe.delete(`TELEMETRY-WORKFLOW:${e.name}`)}logWorkflow(e={}){e=this.preProcess(e);let r=this.getWorkflow(e.name);r||(this.startWorkflow(e.name),r=this.getWorkflow(e.name)),r.steps.push(e.step),r.duration=(Date.now()-r.start)/1e3,["cancel","finish"].indexOf(e.step)>-1?this.deleteWorkflow(r):this.saveWorkflow(r);let n=Object.assign(e,{eventType:"workflow",category:e.name,action:e.step,label:e.details,duration:r.duration,workflowId:r.workflowId});this.logEvent(n)}preProcess(e={},r={}){let n={};return this.user&&(n={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({},e),n)).reduce(sa(r.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(e=>{var r;e.hasError||(e.disabled=!0,(r=e.disable)===null||r===void 0||r.call(e))})}disableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!0,(r=n.disable)===null||r===void 0||r.call(n))}enableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!1,(r=n.enable)===null||r===void 0||r.call(n))}};function sa(t,e){return function(r,[n,i]){return oa(i)?r[n]=i:t||(e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`),r[n]=i),r}}function oa(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&typeof t.valueOf()=="string"}function ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var ut=class{constructor(e){var r;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((r=e?.measurementIds)===null||r===void 0)&&r.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,e)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Zr(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(e=>Jr(e))),this.injectConfig(),this.isInitialized=!0}}logPageView(e,r={}){let n=this.buildCustomParams(r),i=Object.assign({page_title:e||window.location.pathname},n);return window.gtag("event","page_view",i),!0}logEvent(e){let{action:r}=e,n=at(e,["action"]),i=r||"other",s=this.buildCustomParams(n);return window.gtag("event",i,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let e={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(r=>{window.gtag("config",r,e)})}buildCustomParams(e){let r,{category:n,label:i}=e;return r=this.verifyCustomDimensionAndMetrics(e),n&&(r=Object.assign(Object.assign({},r),{event_category:n})),i&&(r=Object.assign(Object.assign({},r),{event_label:i})),r}verifyCustomDimensionAndMetrics(e){let r=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),n=Object.values(r);return Object.keys(e).filter(s=>n.includes(s)).reduce((s,a)=>Object.assign(s,{[a]:e[a]}),{})}createDimensionsAndMetricsCustomMap(e={},r={}){let n=this.createMetricCustomMap(r),i=this.createDimensionCustomMap(e);return Object.assign(Object.assign({},n),i)}createMetricCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`metric${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}createDimensionCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`dimension${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}};var Qr="TELEMETRY_COGNITO_CREDENTIALS";function en(t,e={}){let n=`https://cognito-identity${e.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,i=Pe.get(Qr);if(i&&Date.now()/1e3<i.Expiration)return Promise.resolve(i);let s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:t})};return fetch(n,s).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(a=>{let{IdentityId:o}=a,c={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:o})};return fetch(n,c)}).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(({Credentials:a})=>(Pe.set(Qr,a),a))}function ct({telemetryData:t,dimensionLookup:e={},excludeKeys:r=[]}){return Object.keys(t).filter(n=>!r.includes(n)).map(n=>e[n]?{key:la(e,n),value:t[n]}:{key:n,value:ca(t,n)}).reduce((n,{key:i,value:s})=>(n[i]=s,n),{})}function ca(t,e){return e==="json"?t[e]?JSON.stringify(t[e]):"null":t[e]===void 0?"null":t[e].toString()}function la(t,e){return`dimension${t[e]}`}var fa=["size","duration","position","number","count"];function lt(t,e={}){return Object.keys(t).filter(r=>e[r]||fa.includes(r)).map(r=>e[r]?{key:da(e,r),value:t[r]}:{key:r,value:t[r]}).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}function da(t,e){return`metric${t[e]}`}function tn({event:t={},dimensionLookup:e={},metricLookup:r={}}){var n,i;let{pathname:s,eventType:a="other"}=t,o=lt(t,r),c=ct({telemetryData:Object.assign({eventType:a},t),dimensionLookup:e,excludeKeys:["workflow","pathname",...Object.keys(o),...Object.keys(r)]}),u=Object.assign(Object.assign({name:a},c),o);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(n=window.location)===null||n===void 0?void 0:n.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:s,u}function rn({page:t,previousPage:e={},options:r={},dimensionLookup:n={},metricLookup:i={}}){let s=lt(r,i),a=ct({telemetryData:r,dimensionLookup:n,excludeKeys:["workflow",...Object.keys(s),...Object.keys(i)]}),{referrer:o,title:c}=document||{},{hostname:u,pathname:f}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:o,hostname:u,path:t||f,pageUrl:t||f,pageName:c,previousPageUrl:e.pageUrl,previousPageName:e.pageName},a),s)}var gt=Vt(nn(),1);var pa="function",ma="string",ne="undefined",ga="boolean",_e="object",ha="array",va="number",ya="symbol",ba="null";var an=function(){},Ft="any",Bt="*";var de="__",wa="form",Sa="input",Ea="button",Oa="select";var ft=typeof process!==ne?process:{},vu=ft.env&&ft.env.NODE_ENV||"";var re=typeof document!==ne,yu=re&&window.location.hostname==="localhost",bu=ft.versions!=null&&ft.versions.node!=null,wu=typeof Deno!==ne&&typeof Deno.core!==ne,Su=typeof self===_e&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Eu=re&&window.name==="nodejs"||typeof navigator!==ne&&typeof navigator.userAgent!==ne&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function sn(t,e){return e.charAt(0)[t]()+e.slice(1)}var Ia=sn.bind(null,"toUpperCase"),Aa=sn.bind(null,"toLowerCase");function Pa(t){return un(t)?Ia(ba):typeof t===_e?Na(t):Object.prototype.toString.call(t).slice(8,-1)}function dt(t,e){e===void 0&&(e=!0);var r=Pa(t);return e?Aa(r):r}function Ge(t,e){return typeof e===t}var Y=Ge.bind(null,pa),ie=Ge.bind(null,ma),Te=Ge.bind(null,ne);var on=Ge.bind(null,ga),Ou=Ge.bind(null,ya);function un(t){return t===null}function Ta(t){return dt(t)===va&&!isNaN(t)}function $t(t){return dt(t)===ha}function K(t){if(!xa(t))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t){return t&&(typeof t===_e||t!==null)}function Na(t){return Y(t.constructor)?t.constructor.name:null}function ka(t){return t instanceof Error||ie(t.message)&&t.constructor&&Ta(t.constructor.stackTraceLimit)}function cn(t,e){if(typeof e!="object"||un(e))return!1;if(e instanceof t)return!0;var r=dt(new t(""));if(ka(e))for(;e;){if(dt(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}var Iu=cn.bind(null,TypeError),Au=cn.bind(null,SyntaxError);function pt(t,e){var r=t instanceof Element||t instanceof HTMLDocument;return r&&e?ja(t,e):r}function ja(t,e){return e===void 0&&(e=""),t&&t.nodeName===e.toUpperCase()}function mt(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}var Pu=mt(pt,wa),Tu=mt(pt,Ea),xu=mt(pt,Sa),Nu=mt(pt,Oa);function ln(t){return t?$t(t)?t:[t]:[]}function fn(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function dn(t){return(function(e){for(var r,n=Object.create(null),i=/([^&=]+)=?([^&]*)/g;r=i.exec(e);){var s=fn(r[1]),a=fn(r[2]);if(s)if(s.substring(s.length-2)==="[]"){var o=n[s=s.substring(0,s.length-2)]||(n[s]=[]);n[s]=Array.isArray(o)?o:[],n[s].push(a)}else n[s]=a===""||a}for(var c in n){var u=c.split("[");u.length>1&&(_a(n,u.map(function(f){return f.replace(/[?[\]\\ ]/g,"")}),n[c]),delete n[c])}return n})((function(e){if(e){var r=e.match(/\?(.*)/);return r&&r[1]?r[1].split("#")[0]:""}return re&&window.location.search.substring(1)})(t))}function _a(t,e,r){for(var n=e.length-1,i=0;i<n;++i){var s=e[i];if(s==="__proto__"||s==="constructor")break;s in t||(t[s]={}),t=t[s]}t[e[n]]=r}function oe(){for(var t="",e=0,r=4294967295*Math.random()|0;e++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&r;t+=n=="-"||n=="4"?n:(n=="x"?i:3&i|8).toString(16),r=e%8==0?4294967295*Math.random()|0:r>>4}return t}var be="global",xe=de+be+de,Ne=typeof self===_e&&self.self===self&&self||typeof global===_e&&global[be]===global&&global||void 0;function X(t){return Ne[xe][t]}function J(t,e){return Ne[xe][t]=e}function se(t){delete Ne[xe][t]}function we(t,e,r){var n;try{if(We(t)){var i=window[t];n=i[e].bind(i)}}catch{}return n||r}Ne[xe]||(Ne[xe]={});var ht={};function We(t){if(typeof ht[t]!==ne)return ht[t];try{var e=window[t];e.setItem(ne,ne),e.removeItem(ne)}catch{return ht[t]=!1}return ht[t]=!0}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},T.apply(null,arguments)}var Ee="function",pe="undefined",Fe="reducer",jn="@@redux/",Zt=jn+"INIT",Ca=jn+Math.random().toString(36),pn=(function(){return typeof Symbol===Ee&&Symbol.observable||"@@observable"})(),vt=" != "+Ee;function _n(t,e,r){var n;if(typeof e===Ee&&typeof r===pe&&(r=e,e=void 0),typeof r!==pe){if(typeof r!==Ee)throw new Error("enhancer"+vt);return r(_n)(t,e)}if(typeof t!==Ee)throw new Error(Fe+vt);var i=t,s=e,a=[],o=a,c=!1;function u(){o===a&&(o=a.slice())}function f(){return s}function d(g){if(typeof g!==Ee)throw new Error("Listener"+vt);var A=!0;return u(),o.push(g),function(){if(A){A=!1,u();var I=o.indexOf(g);o.splice(I,1)}}}function m(g){if(!K(g))throw new Error("Act != obj");if(typeof g.type===pe)throw new Error("ActType "+pe);if(c)throw new Error("Dispatch in "+Fe);try{c=!0,s=i(s,g)}finally{c=!1}for(var A=a=o,I=0;I<A.length;I++)(0,A[I])();return g}return m({type:Zt}),(n={dispatch:m,subscribe:d,getState:f,replaceReducer:function(g){if(typeof g!==Ee)throw new Error("next "+Fe+vt);i=g,m({type:Zt})}})[pn]=function(){var g,A=d;return(g={subscribe:function(I){if(typeof I!="object")throw new TypeError("Observer != obj");function E(){I.next&&I.next(f())}return E(),{unsubscribe:A(E)}}})[pn]=function(){return this},g},n}function Ma(t,e){var r=e&&e.type;return"action "+(r&&r.toString()||"?")+Fe+" "+t+" returns "+pe}function Ue(){var t=[].slice.call(arguments);return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,r){return function(){return e(r.apply(void 0,[].slice.call(arguments)))}})}function Da(){var t=arguments;return function(e){return function(r,n,i){var s,a=e(r,n,i),o=a.dispatch,c={getState:a.getState,dispatch:function(u){return o(u)}};return s=[].slice.call(t).map(function(u){return u(c)}),T({},a,{dispatch:o=Ue.apply(void 0,s)(a.dispatch)})}}}var Oe=de+"anon_id",ke=de+"user_id",Me=de+"user_traits";var Qt="analytics",Se="userId",Ce="anonymousId",wt=["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"],er=["name","EVENTS","config","loaded"],N=wt.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),mn=/^utm_/,gn=/^an_prop_/,hn=/^an_trait_/;function Ua(t){var e=t.storage.setItem;return function(r){return function(n){return function(i){if(i.type===N.bootstrap){var s=i.params,a=i.user,o=i.persistedUser,c=i.initialUser,u=o.userId===a.userId;o.anonymousId!==a.anonymousId&&e(Oe,a.anonymousId),u||e(ke,a.userId),c.traits&&e(Me,T({},u&&o.traits?o.traits:{},c.traits));var f=Object.keys(i.params);if(f.length){var d=s.an_uid,m=s.an_event,g=f.reduce(function(A,I){if(I.match(mn)||I.match(/^(d|g)clid/)){var E=I.replace(mn,"");A.campaign[E==="campaign"?"name":E]=s[I]}return I.match(gn)&&(A.props[I.replace(gn,"")]=s[I]),I.match(hn)&&(A.traits[I.replace(hn,"")]=s[I]),A},{campaign:{},props:{},traits:{}});r.dispatch(T({type:N.params,raw:s},g,d?{userId:d}:{})),d&&setTimeout(function(){return t.identify(d,g.traits)},0),m&&setTimeout(function(){return t.track(m,g.props)},0),Object.keys(g.campaign).length&&r.dispatch({type:N.campaign,campaign:g.campaign})}}return n(i)}}}}function Ra(t){return function(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),r.type===N.setItemEnd){if(r.key===Oe)return T({},e,{anonymousId:r.value});if(r.key===ke)return T({},e,{userId:r.value})}switch(r.type){case N.identify:return Object.assign({},e,{userId:r.userId,traits:T({},e.traits,r.traits)});case N.reset:return[ke,Oe,Me].forEach(function(n){t.removeItem(n)}),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function vn(t){return{userId:t.getItem(ke),anonymousId:t.getItem(Oe),traits:t.getItem(Me)}}var tr=function(t){return de+"TEMP"+de+t};function za(t){var e=t.storage,r=e.setItem,n=e.removeItem,i=e.getItem;return function(s){return function(a){return function(o){var c=o.userId,u=o.traits,f=o.options;if(o.type===N.reset&&([ke,Me,Oe].forEach(function(g){n(g)}),[Se,Ce,"traits"].forEach(function(g){se(tr(g))})),o.type===N.identify){i(Oe)||r(Oe,oe());var d=i(ke),m=i(Me)||{};d&&d!==c&&s.dispatch({type:N.userIdChanged,old:{userId:d,traits:m},new:{userId:c,traits:u},options:f}),c&&r(ke,c),u&&r(Me,T({},m,u))}return a(o)}}}}var qe={};function yn(t,e){qe[t]&&Y(qe[t])&&(qe[t](e),delete qe[t])}function Cn(t,e,r){return new Promise(function(n,i){return e()?n(t):r<1?i(T({},t,{queue:!0})):new Promise(function(s){return setTimeout(s,10)}).then(function(s){return Cn(t,e,r-10).then(n,i)})})}function La(t){return{abort:t}}var Kt=function(t){var e=t.data,r=t.action,n=t.instance,i=t.state,s=t.allPlugins,a=t.allMatches,o=t.store,c=t.EVENTS;try{var u=i.plugins,f=i.context,d=r.type,m=d.match(De),g=e.exact.map(function(E){return E.pluginName});m&&(g=a.during.map(function(E){return E.pluginName}));var A=(function(E,x){return function(y,M,v){var h=M.config,P=M.name,w=P+"."+y.type;v&&(w=v.event);var b=y.type.match(De)?(function(D,H,L,R,z){return function(k,S){var j=R?R.name:D,C=S&&Be(S)?S:L;if(R&&(!(C=S&&Be(S)?S:[D]).includes(D)||C.length!==1))throw new Error("Method "+H+" can only abort "+D+" plugin. "+JSON.stringify(C)+" input valid");return T({},z,{abort:{reason:k,plugins:C,caller:H,_:j}})}})(P,w,x,v,y):(function(D,H){return function(){throw new Error(D.type+" action not cancellable. Remove abort in "+H)}})(y,w);return{payload:Ha(y),instance:E,config:h||{},abort:b}}})(n,g),I=e.exact.reduce(function(E,x){var y=x.pluginName,M=x.methodName,v=!1;return M.match(/^initialize/)||M.match(/^reset/)||(v=!u[y].loaded),f.offline&&M.match(/^(page|track|identify)/)&&(v=!0),E[""+y]=v,E},{});return Promise.resolve(e.exact.reduce(function(E,x,y){var M=x.pluginName;return Promise.resolve(E).then(function(v){function h(){return Promise.resolve(v)}var P=(function(){if(e.namespaced&&e.namespaced[M])return Promise.resolve(e.namespaced[M].reduce(function(w,b,D){return Promise.resolve(w).then(function(H){return b.method&&Y(b.method)?((function(k,S){var j=An(k);if(j&&j.name===S){var C=An(j.method);throw new Error([S+" plugin is calling method "+k,"Plugins cant call self","Use "+j.method+" "+(C?"or "+C.method:"")+" in "+S+" plugin insteadof "+k].join(`
|
|
2
|
+
import{a as He,b as ae}from"./7CGCLEYB.js";import{a as ye}from"./US5FON7D.js";import{a as $r}from"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{c as Kr,k as st}from"./3TAQSXLA.js";import{a as at}from"./PY6RTQDR.js";import{b as Br}from"./ZB5UCRCG.js";import{H as Fr,h as Wr,q as qr}from"./T3EPRHTT.js";import{b as te,d as Vt}from"./EXBEKVP5.js";var nn=te((Wt,qt)=>{(function(t,e){typeof Wt=="object"&&typeof qt<"u"?qt.exports=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}:typeof define=="function"&&define.amd?define(function(){return function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}}):t.dlv=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}})(Wt)});var cr=te((ic,Ke)=>{function os(t,e){this.v=t,this.k=e}Ke.exports=os,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports});var lr=te((ac,me)=>{function Tt(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}me.exports=Tt=function(a,o,c,u){function f(d,m){Tt(a,d,function(g){return this._invoke(d,m,g)})}o?i?i(a,o,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[o]=c:(f("next",0),f("throw",1),f("return",2))},me.exports.__esModule=!0,me.exports.default=me.exports,Tt(t,e,r,n)}me.exports=Tt,me.exports.__esModule=!0,me.exports.default=me.exports});var fr=te((sc,ge)=>{var le=lr();function Jn(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,A,I,E){var x=A&&A.prototype instanceof o?A:o,y=Object.create(x.prototype);return le(y,"_invoke",(function(M,v,h){var P,w,b,D=0,H=h||[],L=!1,R={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(S,j){return P=S,w=0,b=t,R.n=j,a}};function z(k,S){for(w=k,b=S,e=0;!L&&D&&!j&&e<H.length;e++){var j,C=H[e],ee=R.p,l=C[2];k>3?(j=l===S)&&(b=C[(w=C[4])?5:(w=3,3)],C[4]=C[5]=t):C[0]<=ee&&((j=k<2&&ee<C[1])?(w=0,R.v=S,R.n=C[1]):ee<l&&(j=k<3||C[0]>S||S>l)&&(C[4]=k,C[5]=S,R.n=l,w=0))}if(j||k>1)return a;throw L=!0,S}return function(k,S,j){if(D>1)throw TypeError("Generator is already running");for(L&&S===1&&z(S,j),w=S,b=j;(e=w<2?t:b)||!L;){P||(w?w<3?(w>1&&(R.n=-1),z(w,b)):R.n=b:R.v=b);try{if(D=2,P){if(w||(k="next"),e=P[k]){if(!(e=e.call(P,b)))throw TypeError("iterator result is not an object");if(!e.done)return e;b=e.value,w<2&&(w=0)}else w===1&&(e=P.return)&&e.call(P),w<2&&(b=TypeError("The iterator does not provide a '"+k+"' method"),w=1);P=t}else if((e=(L=R.n<0)?b:M.call(v,R))!==a)break}catch(C){P=t,w=1,b=C}finally{D=1}}return{value:e,done:L}}})(g,I,E),!0),y}var a={};function o(){}function c(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(le(e={},n,function(){return this}),e),d=u.prototype=o.prototype=Object.create(f);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,le(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=u,le(d,"constructor",u),le(u,"constructor",c),c.displayName="GeneratorFunction",le(u,i,"GeneratorFunction"),le(d),le(d,i,"Generator"),le(d,n,function(){return this}),le(d,"toString",function(){return"[object Generator]"}),(ge.exports=Jn=function(){return{w:s,m}},ge.exports.__esModule=!0,ge.exports.default=ge.exports)()}ge.exports=Jn,ge.exports.__esModule=!0,ge.exports.default=ge.exports});var mr=te((oc,Ye)=>{var us=cr(),dr=lr();function pr(t,e){function r(i,s,a,o){try{var c=t[i](s),u=c.value;return u instanceof us?e.resolve(u.v).then(function(f){r("next",f,a,o)},function(f){r("throw",f,a,o)}):e.resolve(u).then(function(f){c.value=f,a(c)},function(f){return r("throw",f,a,o)})}catch(f){o(f)}}var n;this.next||(dr(pr.prototype),dr(pr.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(i,s,a){function o(){return new e(function(c,u){r(i,a,c,u)})}return n=n?n.then(o,o):o()},!0)}Ye.exports=pr,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports});var gr=te((uc,Xe)=>{var cs=fr(),ls=mr();function fs(t,e,r,n,i){return new ls(cs().w(t,e,r,n),i||Promise)}Xe.exports=fs,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports});var Zn=te((cc,Je)=>{var ds=gr();function ps(t,e,r,n,i){var s=ds(t,e,r,n,i);return s.next().then(function(a){return a.done?a.value:s.next()})}Je.exports=ps,Je.exports.__esModule=!0,Je.exports.default=Je.exports});var Qn=te((lc,Ze)=>{function ms(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}Ze.exports=ms,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports});var ei=te((fc,he)=>{function hr(t){"@babel/helpers - typeof";return he.exports=hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,hr(t)}he.exports=hr,he.exports.__esModule=!0,he.exports.default=he.exports});var ti=te((dc,Qe)=>{var gs=ei().default;function hs(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(gs(t)+" is not iterable")}Qe.exports=hs,Qe.exports.__esModule=!0,Qe.exports.default=Qe.exports});var ni=te((pc,ve)=>{var vs=cr(),ys=fr(),bs=Zn(),ws=gr(),Ss=mr(),Es=Qn(),ri=ti();function vr(){"use strict";var t=ys(),e=t.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(a){var o=typeof a=="function"&&a.constructor;return!!o&&(o===r||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(a){var o,c;return function(u){o||(o={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(d,m){return c(u.a,i[d],m)},delegateYield:function(d,m,g){return o.resultName=m,c(u.d,ri(d),g)},finish:function(d){return c(u.f,d)}},c=function(d,m,g){u.p=o.prev,u.n=o.next;try{return d(m,g)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return a.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ve.exports=vr=function(){return{wrap:function(c,u,f,d){return t.w(s(c),u,f,d&&d.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(c,u){return new vs(c,u)},AsyncIterator:Ss,async:function(c,u,f,d,m){return(n(u)?ws:bs)(s(c),u,f,d,m)},keys:Es,values:ri}},ve.exports.__esModule=!0,ve.exports.default=ve.exports)()}ve.exports=vr,ve.exports.__esModule=!0,ve.exports.default=ve.exports});var ai=te((mc,ii)=>{var xt=ni()();ii.exports=xt;try{regeneratorRuntime=xt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xt:Function("r","regeneratorRuntime = r")(xt)}});var yi=te((Ec,vi)=>{"use strict";var Is=function(e){return As(e)&&!Ps(e)};function As(t){return!!t&&typeof t=="object"}function Ps(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Ns(t)}var Ts=typeof Symbol=="function"&&Symbol.for,xs=Ts?Symbol.for("react.element"):60103;function Ns(t){return t.$$typeof===xs}function ks(t){return Array.isArray(t)?[]:{}}function tt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Le(ks(t),t,e):t}function js(t,e,r){return t.concat(e).map(function(n){return tt(n,r)})}function _s(t,e){if(!e.customMerge)return Le;var r=e.customMerge(t);return typeof r=="function"?r:Le}function Cs(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function gi(t){return Object.keys(t).concat(Cs(t))}function hi(t,e){try{return e in t}catch{return!1}}function Ms(t,e){return hi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ds(t,e,r){var n={};return r.isMergeableObject(t)&&gi(t).forEach(function(i){n[i]=tt(t[i],r)}),gi(e).forEach(function(i){Ms(t,i)||(hi(t,i)&&r.isMergeableObject(e[i])?n[i]=_s(i,r)(t[i],e[i],r):n[i]=tt(e[i],r))}),n}function Le(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||js,r.isMergeableObject=r.isMergeableObject||Is,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(e),i=Array.isArray(t),s=n===i;return s?n?r.arrayMerge(t,e,r):Ds(t,e,r):tt(e,r)}Le.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Le(n,i,r)},{})};var Us=Le;vi.exports=Us});function Gt(){var t;return!!(!((t=window?.navigator)===null||t===void 0)&&t.globalPrivacyControl)}function Yr(t={}){let{disabled:e,portal:r,requireConsent:n,userPrivacySettings:i}=t;if(n)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||e||r?.eueiEnabled===!1||Gt()?!0:!(!r||Qi(r)||ea(r)||ta(r))}function Qi(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}function ea(t){return t.user&&!t.user.orgId&&t.ipCntryCode==="US"}function ta(t){return!t.user&&t.ipCntryCode==="US"}var Pe={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch{e=this.storage[t]}if(e)try{return JSON.parse(e)}catch{return}else return},set(t,e){let r=JSON.stringify(e);try{window.localStorage.setItem(t,r)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}};var Xr="esri-telemetry";function Jr(t){return new Promise((r,n)=>{t.onload=r,t.onerror=n,(!na(t)||t.body)&&r()})}function ra(t){let{id:e,dataAttribute:r}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${Xr}="${r}"]`)}function na(t){let{body:e,src:r,id:n,dataAttribute:i,section:s="body",type:a="text/javascript",async:o=!1,defer:c=!1,onload:u,onerror:f}=t;if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");if(ra(t)){console.log(`script (${n||i}) is already present, skipping`);return}let d=ia({id:n,dataAttribute:i,type:a,async:o,defer:c,body:e,src:r,onload:u,onerror:f});return s==="body"?document.body.appendChild(d):document.head.appendChild(d)}var Ve=class extends Error{};function ia({id:t,dataAttribute:e,type:r,async:n,defer:i,body:s,src:a,onload:o,onerror:c}){let u=document.createElement("script");return t&&(u.id=t),e&&u.setAttribute(`data-${Xr}`,e),a&&(u.src=a),s&&(u.innerText=s),u.type=r,u.async=n,u.defer=i,o&&(u.onload=o),c&&(u.onerror=c),u}function Zr(t){return t.map(e=>{let r=[];return["src","id","dataAttribute","type"].forEach(n=>{let i=n;n==="dataAttribute"&&(i="data-esri-telemetry"),e[n]&&r.push(`${i}="${e[n]}"`)}),["async","defer"].forEach(n=>{e[n]&&r.push(`${n}`)}),`<script ${r.join(" ")}>${e.body?e.body:""}<\/script>`}).join("")}var aa=["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"],ot=class{constructor(e){var r,n,i;this.trackers=[],this.options=e,this.debug=e.debug,this.suppressDisabledWarnings=e.suppressDisabledWarnings,this.logger=e.logger||console,e.userPrivacySettings&&(this._userPrivacySettings=e.userPrivacySettings),e.requireConsent&&!e.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:ua(),timestamp:Date.now()},e.userPrivacySettings=this._userPrivacySettings),this.disabled=Yr(e),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let s=((r=e.portal)===null||r===void 0?void 0:r.user)||e.user;s&&this.setUser(s,(i=(n=e.portal)===null||n===void 0?void 0:n.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(e,r,n){let i=!r&&!e?.accepted,s=n.every(a=>e?.[a]);return i||s}filterTrackers(e){return this.options.plugins.filter(r=>e.includes(r.name))}initializeTrackers(){let e=this._userPrivacySettings,r=this.options.requireConsent;this.trackers=[],this.options.plugins&&(e?(this.shouldInitializeTrackers(e,r,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(e,r,["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(e=>e.getScriptTags&&e.getScriptTags()).join("")}async init(){let e=this.trackers.map(r=>r.init());await Promise.all(e)}setUser(e={},r="Public"){e=typeof e=="string"?{username:e}:e,this.user=e,this.user.accountType=r;let n;if(e.email&&e.email.split){let i=e.email.split("@")[1];n=aa.filter(s=>i===s).length>0}(n||["In House","Demo and Marketing"].indexOf(r)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(e){let{accepted:r,performance:n,targeting:i,functional:s}=this._userPrivacySettings,a=e.accepted&&!r&&!this.options.requireConsent&&(!e.performance||!e.targeting||!e.functional)||!e.performance&&n||!e.targeting&&i||!e.functional&&s;return this._userPrivacySettings=e,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(e,r={},n={}){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:o,hasError:c})=>!o&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let s=this.preProcess(r,n);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));let a=i.map(o=>o.logPageView(e,s));return Promise.all(a).then(),!0}logEvent(e,r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let n=this.trackers.filter(({disabled:a,hasError:o})=>!a&&!o);if(!n.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(e,r);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let s=n.map(a=>a.logEvent(i));return Promise.all(s).then(),!0}logError(e={}){e=Object.assign({eventType:"error"},e),this.logEvent(e)}startWorkflow(e,r={}){let n={name:e,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(n);let i=Object.assign({name:e,step:"start"},r);return this.logWorkflow(i),n}stepWorkflow(e,r,n={}){let i=typeof n=="string"?n:n.details,s=Object.assign({name:e,step:r,details:i},n);this.logWorkflow(s)}endWorkflow(e,r={}){let n=Object.assign({name:e,step:"finish"},r);this.logWorkflow(n)}cancelWorkflow(e,r={}){let n=Object.assign({name:e,step:"cancel"},r);this.logWorkflow(n)}getWorkflow(e){let r=Pe.get(`TELEMETRY-WORKFLOW:${e}`);if(r){let n=Date.now()-r.start,i=1800*1e3;if(n<i)return r;this.deleteWorkflow(r)}}saveWorkflow(e){Pe.set(`TELEMETRY-WORKFLOW:${e.name}`,e)}deleteWorkflow(e){Pe.delete(`TELEMETRY-WORKFLOW:${e.name}`)}logWorkflow(e={}){e=this.preProcess(e);let r=this.getWorkflow(e.name);r||(this.startWorkflow(e.name),r=this.getWorkflow(e.name)),r.steps.push(e.step),r.duration=(Date.now()-r.start)/1e3,["cancel","finish"].indexOf(e.step)>-1?this.deleteWorkflow(r):this.saveWorkflow(r);let n=Object.assign(e,{eventType:"workflow",category:e.name,action:e.step,label:e.details,duration:r.duration,workflowId:r.workflowId});this.logEvent(n)}preProcess(e={},r={}){let n={};return this.user&&(n={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({},e),n)).reduce(sa(r.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(e=>{var r;e.hasError||(e.disabled=!0,(r=e.disable)===null||r===void 0||r.call(e))})}disableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!0,(r=n.disable)===null||r===void 0||r.call(n))}enableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!1,(r=n.enable)===null||r===void 0||r.call(n))}};function sa(t,e){return function(r,[n,i]){return oa(i)?r[n]=i:t||(e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`),r[n]=i),r}}function oa(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&typeof t.valueOf()=="string"}function ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var ut=class{constructor(e){var r;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((r=e?.measurementIds)===null||r===void 0)&&r.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,e)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Zr(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(e=>Jr(e))),this.injectConfig(),this.isInitialized=!0}}logPageView(e,r={}){let n=this.buildCustomParams(r),i=Object.assign({page_title:e||window.location.pathname},n);return window.gtag("event","page_view",i),!0}logEvent(e){let{action:r}=e,n=at(e,["action"]),i=r||"other",s=this.buildCustomParams(n);return window.gtag("event",i,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let e={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(r=>{window.gtag("config",r,e)})}buildCustomParams(e){let r,{category:n,label:i}=e;return r=this.verifyCustomDimensionAndMetrics(e),n&&(r=Object.assign(Object.assign({},r),{event_category:n})),i&&(r=Object.assign(Object.assign({},r),{event_label:i})),r}verifyCustomDimensionAndMetrics(e){let r=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),n=Object.values(r);return Object.keys(e).filter(s=>n.includes(s)).reduce((s,a)=>Object.assign(s,{[a]:e[a]}),{})}createDimensionsAndMetricsCustomMap(e={},r={}){let n=this.createMetricCustomMap(r),i=this.createDimensionCustomMap(e);return Object.assign(Object.assign({},n),i)}createMetricCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`metric${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}createDimensionCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`dimension${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}};var Qr="TELEMETRY_COGNITO_CREDENTIALS";function en(t,e={}){let n=`https://cognito-identity${e.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,i=Pe.get(Qr);if(i&&Date.now()/1e3<i.Expiration)return Promise.resolve(i);let s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:t})};return fetch(n,s).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(a=>{let{IdentityId:o}=a,c={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:o})};return fetch(n,c)}).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(({Credentials:a})=>(Pe.set(Qr,a),a))}function ct({telemetryData:t,dimensionLookup:e={},excludeKeys:r=[]}){return Object.keys(t).filter(n=>!r.includes(n)).map(n=>e[n]?{key:la(e,n),value:t[n]}:{key:n,value:ca(t,n)}).reduce((n,{key:i,value:s})=>(n[i]=s,n),{})}function ca(t,e){return e==="json"?t[e]?JSON.stringify(t[e]):"null":t[e]===void 0?"null":t[e].toString()}function la(t,e){return`dimension${t[e]}`}var fa=["size","duration","position","number","count"];function lt(t,e={}){return Object.keys(t).filter(r=>e[r]||fa.includes(r)).map(r=>e[r]?{key:da(e,r),value:t[r]}:{key:r,value:t[r]}).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}function da(t,e){return`metric${t[e]}`}function tn({event:t={},dimensionLookup:e={},metricLookup:r={}}){var n,i;let{pathname:s,eventType:a="other"}=t,o=lt(t,r),c=ct({telemetryData:Object.assign({eventType:a},t),dimensionLookup:e,excludeKeys:["workflow","pathname",...Object.keys(o),...Object.keys(r)]}),u=Object.assign(Object.assign({name:a},c),o);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(n=window.location)===null||n===void 0?void 0:n.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:s,u}function rn({page:t,previousPage:e={},options:r={},dimensionLookup:n={},metricLookup:i={}}){let s=lt(r,i),a=ct({telemetryData:r,dimensionLookup:n,excludeKeys:["workflow",...Object.keys(s),...Object.keys(i)]}),{referrer:o,title:c}=document||{},{hostname:u,pathname:f}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:o,hostname:u,path:t||f,pageUrl:t||f,pageName:c,previousPageUrl:e.pageUrl,previousPageName:e.pageName},a),s)}var gt=Vt(nn(),1);var pa="function",ma="string",ne="undefined",ga="boolean",_e="object",ha="array",va="number",ya="symbol",ba="null";var an=function(){},Ft="any",Bt="*";var de="__",wa="form",Sa="input",Ea="button",Oa="select";var ft=typeof process!==ne?process:{},vu=ft.env&&ft.env.NODE_ENV||"";var re=typeof document!==ne,yu=re&&window.location.hostname==="localhost",bu=ft.versions!=null&&ft.versions.node!=null,wu=typeof Deno!==ne&&typeof Deno.core!==ne,Su=typeof self===_e&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Eu=re&&window.name==="nodejs"||typeof navigator!==ne&&typeof navigator.userAgent!==ne&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function sn(t,e){return e.charAt(0)[t]()+e.slice(1)}var Ia=sn.bind(null,"toUpperCase"),Aa=sn.bind(null,"toLowerCase");function Pa(t){return un(t)?Ia(ba):typeof t===_e?Na(t):Object.prototype.toString.call(t).slice(8,-1)}function dt(t,e){e===void 0&&(e=!0);var r=Pa(t);return e?Aa(r):r}function Ge(t,e){return typeof e===t}var Y=Ge.bind(null,pa),ie=Ge.bind(null,ma),Te=Ge.bind(null,ne);var on=Ge.bind(null,ga),Ou=Ge.bind(null,ya);function un(t){return t===null}function Ta(t){return dt(t)===va&&!isNaN(t)}function $t(t){return dt(t)===ha}function K(t){if(!xa(t))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t){return t&&(typeof t===_e||t!==null)}function Na(t){return Y(t.constructor)?t.constructor.name:null}function ka(t){return t instanceof Error||ie(t.message)&&t.constructor&&Ta(t.constructor.stackTraceLimit)}function cn(t,e){if(typeof e!="object"||un(e))return!1;if(e instanceof t)return!0;var r=dt(new t(""));if(ka(e))for(;e;){if(dt(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}var Iu=cn.bind(null,TypeError),Au=cn.bind(null,SyntaxError);function pt(t,e){var r=t instanceof Element||t instanceof HTMLDocument;return r&&e?ja(t,e):r}function ja(t,e){return e===void 0&&(e=""),t&&t.nodeName===e.toUpperCase()}function mt(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}var Pu=mt(pt,wa),Tu=mt(pt,Ea),xu=mt(pt,Sa),Nu=mt(pt,Oa);function ln(t){return t?$t(t)?t:[t]:[]}function fn(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function dn(t){return(function(e){for(var r,n=Object.create(null),i=/([^&=]+)=?([^&]*)/g;r=i.exec(e);){var s=fn(r[1]),a=fn(r[2]);if(s)if(s.substring(s.length-2)==="[]"){var o=n[s=s.substring(0,s.length-2)]||(n[s]=[]);n[s]=Array.isArray(o)?o:[],n[s].push(a)}else n[s]=a===""||a}for(var c in n){var u=c.split("[");u.length>1&&(_a(n,u.map(function(f){return f.replace(/[?[\]\\ ]/g,"")}),n[c]),delete n[c])}return n})((function(e){if(e){var r=e.match(/\?(.*)/);return r&&r[1]?r[1].split("#")[0]:""}return re&&window.location.search.substring(1)})(t))}function _a(t,e,r){for(var n=e.length-1,i=0;i<n;++i){var s=e[i];if(s==="__proto__"||s==="constructor")break;s in t||(t[s]={}),t=t[s]}t[e[n]]=r}function oe(){for(var t="",e=0,r=4294967295*Math.random()|0;e++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&r;t+=n=="-"||n=="4"?n:(n=="x"?i:3&i|8).toString(16),r=e%8==0?4294967295*Math.random()|0:r>>4}return t}var be="global",xe=de+be+de,Ne=typeof self===_e&&self.self===self&&self||typeof global===_e&&global[be]===global&&global||void 0;function X(t){return Ne[xe][t]}function J(t,e){return Ne[xe][t]=e}function se(t){delete Ne[xe][t]}function we(t,e,r){var n;try{if(We(t)){var i=window[t];n=i[e].bind(i)}}catch{}return n||r}Ne[xe]||(Ne[xe]={});var ht={};function We(t){if(typeof ht[t]!==ne)return ht[t];try{var e=window[t];e.setItem(ne,ne),e.removeItem(ne)}catch{return ht[t]=!1}return ht[t]=!0}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},T.apply(null,arguments)}var Ee="function",pe="undefined",Fe="reducer",jn="@@redux/",Zt=jn+"INIT",Ca=jn+Math.random().toString(36),pn=(function(){return typeof Symbol===Ee&&Symbol.observable||"@@observable"})(),vt=" != "+Ee;function _n(t,e,r){var n;if(typeof e===Ee&&typeof r===pe&&(r=e,e=void 0),typeof r!==pe){if(typeof r!==Ee)throw new Error("enhancer"+vt);return r(_n)(t,e)}if(typeof t!==Ee)throw new Error(Fe+vt);var i=t,s=e,a=[],o=a,c=!1;function u(){o===a&&(o=a.slice())}function f(){return s}function d(g){if(typeof g!==Ee)throw new Error("Listener"+vt);var A=!0;return u(),o.push(g),function(){if(A){A=!1,u();var I=o.indexOf(g);o.splice(I,1)}}}function m(g){if(!K(g))throw new Error("Act != obj");if(typeof g.type===pe)throw new Error("ActType "+pe);if(c)throw new Error("Dispatch in "+Fe);try{c=!0,s=i(s,g)}finally{c=!1}for(var A=a=o,I=0;I<A.length;I++)(0,A[I])();return g}return m({type:Zt}),(n={dispatch:m,subscribe:d,getState:f,replaceReducer:function(g){if(typeof g!==Ee)throw new Error("next "+Fe+vt);i=g,m({type:Zt})}})[pn]=function(){var g,A=d;return(g={subscribe:function(I){if(typeof I!="object")throw new TypeError("Observer != obj");function E(){I.next&&I.next(f())}return E(),{unsubscribe:A(E)}}})[pn]=function(){return this},g},n}function Ma(t,e){var r=e&&e.type;return"action "+(r&&r.toString()||"?")+Fe+" "+t+" returns "+pe}function Ue(){var t=[].slice.call(arguments);return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,r){return function(){return e(r.apply(void 0,[].slice.call(arguments)))}})}function Da(){var t=arguments;return function(e){return function(r,n,i){var s,a=e(r,n,i),o=a.dispatch,c={getState:a.getState,dispatch:function(u){return o(u)}};return s=[].slice.call(t).map(function(u){return u(c)}),T({},a,{dispatch:o=Ue.apply(void 0,s)(a.dispatch)})}}}var Oe=de+"anon_id",ke=de+"user_id",Me=de+"user_traits";var Qt="analytics",Se="userId",Ce="anonymousId",wt=["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"],er=["name","EVENTS","config","loaded"],N=wt.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),mn=/^utm_/,gn=/^an_prop_/,hn=/^an_trait_/;function Ua(t){var e=t.storage.setItem;return function(r){return function(n){return function(i){if(i.type===N.bootstrap){var s=i.params,a=i.user,o=i.persistedUser,c=i.initialUser,u=o.userId===a.userId;o.anonymousId!==a.anonymousId&&e(Oe,a.anonymousId),u||e(ke,a.userId),c.traits&&e(Me,T({},u&&o.traits?o.traits:{},c.traits));var f=Object.keys(i.params);if(f.length){var d=s.an_uid,m=s.an_event,g=f.reduce(function(A,I){if(I.match(mn)||I.match(/^(d|g)clid/)){var E=I.replace(mn,"");A.campaign[E==="campaign"?"name":E]=s[I]}return I.match(gn)&&(A.props[I.replace(gn,"")]=s[I]),I.match(hn)&&(A.traits[I.replace(hn,"")]=s[I]),A},{campaign:{},props:{},traits:{}});r.dispatch(T({type:N.params,raw:s},g,d?{userId:d}:{})),d&&setTimeout(function(){return t.identify(d,g.traits)},0),m&&setTimeout(function(){return t.track(m,g.props)},0),Object.keys(g.campaign).length&&r.dispatch({type:N.campaign,campaign:g.campaign})}}return n(i)}}}}function Ra(t){return function(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),r.type===N.setItemEnd){if(r.key===Oe)return T({},e,{anonymousId:r.value});if(r.key===ke)return T({},e,{userId:r.value})}switch(r.type){case N.identify:return Object.assign({},e,{userId:r.userId,traits:T({},e.traits,r.traits)});case N.reset:return[ke,Oe,Me].forEach(function(n){t.removeItem(n)}),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function vn(t){return{userId:t.getItem(ke),anonymousId:t.getItem(Oe),traits:t.getItem(Me)}}var tr=function(t){return de+"TEMP"+de+t};function za(t){var e=t.storage,r=e.setItem,n=e.removeItem,i=e.getItem;return function(s){return function(a){return function(o){var c=o.userId,u=o.traits,f=o.options;if(o.type===N.reset&&([ke,Me,Oe].forEach(function(g){n(g)}),[Se,Ce,"traits"].forEach(function(g){se(tr(g))})),o.type===N.identify){i(Oe)||r(Oe,oe());var d=i(ke),m=i(Me)||{};d&&d!==c&&s.dispatch({type:N.userIdChanged,old:{userId:d,traits:m},new:{userId:c,traits:u},options:f}),c&&r(ke,c),u&&r(Me,T({},m,u))}return a(o)}}}}var qe={};function yn(t,e){qe[t]&&Y(qe[t])&&(qe[t](e),delete qe[t])}function Cn(t,e,r){return new Promise(function(n,i){return e()?n(t):r<1?i(T({},t,{queue:!0})):new Promise(function(s){return setTimeout(s,10)}).then(function(s){return Cn(t,e,r-10).then(n,i)})})}function La(t){return{abort:t}}var Kt=function(t){var e=t.data,r=t.action,n=t.instance,i=t.state,s=t.allPlugins,a=t.allMatches,o=t.store,c=t.EVENTS;try{var u=i.plugins,f=i.context,d=r.type,m=d.match(De),g=e.exact.map(function(E){return E.pluginName});m&&(g=a.during.map(function(E){return E.pluginName}));var A=(function(E,x){return function(y,M,v){var h=M.config,P=M.name,w=P+"."+y.type;v&&(w=v.event);var b=y.type.match(De)?(function(D,H,L,R,z){return function(k,S){var j=R?R.name:D,C=S&&Be(S)?S:L;if(R&&(!(C=S&&Be(S)?S:[D]).includes(D)||C.length!==1))throw new Error("Method "+H+" can only abort "+D+" plugin. "+JSON.stringify(C)+" input valid");return T({},z,{abort:{reason:k,plugins:C,caller:H,_:j}})}})(P,w,x,v,y):(function(D,H){return function(){throw new Error(D.type+" action not cancellable. Remove abort in "+H)}})(y,w);return{payload:Ha(y),instance:E,config:h||{},abort:b}}})(n,g),I=e.exact.reduce(function(E,x){var y=x.pluginName,M=x.methodName,v=!1;return M.match(/^initialize/)||M.match(/^reset/)||(v=!u[y].loaded),f.offline&&M.match(/^(page|track|identify)/)&&(v=!0),E[""+y]=v,E},{});return Promise.resolve(e.exact.reduce(function(E,x,y){var M=x.pluginName;return Promise.resolve(E).then(function(v){function h(){return Promise.resolve(v)}var P=(function(){if(e.namespaced&&e.namespaced[M])return Promise.resolve(e.namespaced[M].reduce(function(w,b,D){return Promise.resolve(w).then(function(H){return b.method&&Y(b.method)?((function(k,S){var j=An(k);if(j&&j.name===S){var C=An(j.method);throw new Error([S+" plugin is calling method "+k,"Plugins cant call self","Use "+j.method+" "+(C?"or "+C.method:"")+" in "+S+" plugin insteadof "+k].join(`
|
|
3
3
|
`))}})(b.methodName,b.pluginName),Promise.resolve(b.method({payload:H,instance:n,abort:(L=H,R=M,z=b.pluginName,function(k,S){return T({},L,{abort:{reason:k,plugins:S||[R],caller:d,from:z||R}})}),config:Sn(b.pluginName,u,s),plugins:u})).then(function(k){var S=K(k)?k:{};return Promise.resolve(T({},H,S))})):H;var L,R,z})},Promise.resolve(r))).then(function(w){v[M]=w});v[M]=r})();return P&&P.then?P.then(h):h()})},Promise.resolve({}))).then(function(E){return Promise.resolve(e.exact.reduce(function(x,y,M){try{var v=e.exact.length===M+1,h=y.pluginName,P=s[h];return Promise.resolve(x).then(function(w){var b=E[h]?E[h]:{};if(m&&(b=w),Xt(b,h))return Yt({data:b,method:d,instance:n,pluginName:h,store:o}),Promise.resolve(w);if(Xt(w,h))return v&&Yt({data:w,method:d,instance:n,store:o}),Promise.resolve(w);if(I.hasOwnProperty(h)&&I[h]===!0)return o.dispatch({type:"queue",plugin:h,payload:b,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(w);var D=A(E[h],s[h]);return Promise.resolve(P[d]({abort:D.abort,payload:b,instance:n,config:Sn(h,u,s),plugins:u})).then(function(H){var L=K(H)?H:{},R=T({},w,L),z=E[h];if(Xt(z,h))Yt({data:z,method:d,instance:n,pluginName:h,store:o});else{var k=d+":"+h;(k.match(/:/g)||[]).length<2&&!d.match(bn)&&!d.match(wn)&&n.dispatch(T({},m?R:b,{type:k,_:{called:k,from:"submethod"}}))}return Promise.resolve(R)})})}catch(w){return Promise.reject(w)}},Promise.resolve(r))).then(function(x){if(!(d.match(De)||d.match(/^registerPlugin/)||d.match(wn)||d.match(bn)||d.match(/^params/)||d.match(/^userIdChanged/))){if(c.plugins.includes(d),x._&&x._.originalAction===d)return x;var y=T({},x,{_:{originalAction:x.type,called:x.type,from:"engineEnd"}});Mn(x,e.exact.length)&&!d.match(/End$/)&&(y=T({},y,{type:x.type+"Aborted"})),o.dispatch(y)}return x})})}catch(E){return Promise.reject(E)}},De=/Start$/,bn=/^bootstrap/,wn=/^ready/;function Yt(t){var e=t.pluginName,r=t.method+"Aborted"+(e?":"+e:"");t.store.dispatch(T({},t.data,{type:r,_:{called:r,from:"abort"}}))}function Sn(t,e,r){var n=e[t]||r[t];return n&&n.config?n.config:{}}function En(t,e){return e.reduce(function(r,n){return n[t]?r.concat({methodName:t,pluginName:n.name,method:n[t]}):r},[])}function On(t,e){var r=t.replace(De,""),n=e?":"+e:"";return[""+t+n,""+r+n,r+"End"+n]}function Xt(t,e){var r=t.abort;return!!r&&(r===!0||In(r,e)||r&&In(r.plugins,e))}function Mn(t,e){var r=t.abort;if(!r)return!1;if(r===!0||ie(r))return!0;var n=r.plugins;return Be(r)&&r.length===e||Be(n)&&n.length===e}function Be(t){return Array.isArray(t)}function In(t,e){return!(!t||!Be(t))&&t.includes(e)}function An(t){var e=t.match(/(.*):(.*)/);return!!e&&{method:e[1],name:e[2]}}function Ha(t){return Object.keys(t).reduce(function(e,r){return r==="type"||(e[r]=K(t[r])?Object.assign({},t[r]):t[r]),e},{})}function Va(t,e,r){var n={};return function(i){return function(s){return function(a){try{var o,c=function(v){return o?v:s(d)},u=a.type,f=a.plugins,d=a;if(a.abort)return Promise.resolve(s(a));if(u===N.enablePlugin&&i.dispatch({type:N.initializeStart,plugins:f,disabled:[],fromEnable:!0,meta:a.meta}),u===N.disablePlugin&&setTimeout(function(){return yn(a.meta.rid,{payload:a})},0),u===N.initializeEnd){var m=e(),g=Object.keys(m),A=g.filter(function(v){return f.includes(v)}).map(function(v){return m[v]}),I=[],E=[],x=a.disabled,y=A.map(function(v){var h=v.loaded,P=v.name,w=v.config;return Cn(v,function(){return h({config:w})},1e4).then(function(b){return n[P]||(i.dispatch({type:N.pluginReadyType(P),name:P,events:Object.keys(v).filter(function(D){return!er.includes(D)})}),n[P]=!0),I=I.concat(P),v}).catch(function(b){if(b instanceof Error)throw new Error(b);return E=E.concat(b.name),b})});Promise.all(y).then(function(v){var h={plugins:I,failed:E,disabled:x};setTimeout(function(){g.length===y.length+x.length&&i.dispatch(T({},{type:N.ready},h))},0)})}var M=(function(){if(u!==N.bootstrap)return/^ready:([^:]*)$/.test(u)&&setTimeout(function(){return(function(v,h,P){var w={},b=h(),D=v.getState(),H=D.plugins,L=D.queue,R=D.user;if(!D.context.offline&&L&&L.actions&&L.actions.length){var z=L.actions.reduce(function(S,j,C){return H[j.plugin].loaded?(S.process.push(j),S.processIndex.push(C)):(S.requeue.push(j),S.requeueIndex.push(C)),S},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(z.processIndex&&z.processIndex.length){z.processIndex.forEach(function(S){var j=L.actions[S],C=j.plugin,ee=j.payload.type,l=b[C][ee];if(l&&Y(l)){var p,O=(function(U,B){return U===void 0&&(U={}),B===void 0&&(B={}),[Se,Ce].reduce(function(G,q){return U.hasOwnProperty(q)&&B[q]&&B[q]!==U[q]&&(G[q]=B[q]),G},U)})(j.payload,R),_=w[O.meta.rid];if(!_&&(p=l({payload:O,config:H[C].config,instance:P,abort:La}))&&K(p)&&p.abort)return void(w[O.meta.rid]=!0);if(!_){var V=ee+":"+C;v.dispatch(T({},O,{type:V,_:{called:V,from:"queueDrain"}}))}}});var k=L.actions.filter(function(S,j){return!~z.processIndex.indexOf(j)});L.actions=k}}})(i,e,t)},0),Promise.resolve((function(v,h,P,w,b){try{var D=Y(h)?h():h,H=v.type,L=H.replace(De,"");if(v._&&v._.called)return Promise.resolve(v);var R=P.getState(),z=(j=D,(C=R.plugins)===void 0&&(C={}),(ee=v.options)===void 0&&(ee={}),Object.keys(j).filter(function(l){var p=ee.plugins||{};return on(p[l])?p[l]:p.all!==!1&&(!C[l]||C[l].enabled!==!1)}).map(function(l){return j[l]}));H===N.initializeStart&&v.fromEnable&&(z=Object.keys(R.plugins).filter(function(l){var p=R.plugins[l];return v.plugins.includes(l)&&!p.initialized}).map(function(l){return D[l]}));var k=z.map(function(l){return l.name}),S=(function(l,p){var O=On(l).map(function(_){return En(_,p)});return p.reduce(function(_,V){var U=V.name,B=On(l,U).map(function(fe){return En(fe,p)}),G=B[0],q=B[1],W=B[2];return G.length&&(_.beforeNS[U]=G),q.length&&(_.duringNS[U]=q),W.length&&(_.afterNS[U]=W),_},{before:O[0],beforeNS:{},during:O[1],duringNS:{},after:O[2],afterNS:{}})})(H,z);return Promise.resolve(Kt({action:v,data:{exact:S.before,namespaced:S.beforeNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(l){function p(){var V=(function(){if(H.match(De))return Promise.resolve(Kt({action:T({},O,{type:L+"End"}),data:{exact:S.after,namespaced:S.afterNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(U){U.meta&&U.meta.hasCallback&&yn(U.meta.rid,{payload:U})})})();return V&&V.then?V.then(function(){return l}):l}if(Mn(l,k.length))return l;var O,_=(function(){if(H!==L)return Promise.resolve(Kt({action:T({},l,{type:L}),data:{exact:S.during,namespaced:S.duringNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(V){O=V});O=l})();return _&&_.then?_.then(p):p()})}catch(l){return Promise.reject(l)}var j,C,ee})(a,e,t,i,r)).then(function(v){var h=s(v);return o=1,h})})();return Promise.resolve(M&&M.then?M.then(c):c(M))}catch(v){return Promise.reject(v)}}}}}function Ga(t){return function(e){return function(r){return function(n){var i=n.type,s=n.key,a=n.value,o=n.options;if(i===N.setItem||i===N.removeItem){if(n.abort)return r(n);i===N.setItem?t.setItem(s,a,o):t.removeItem(s,o)}return r(n)}}}}var Wa=function(){var t=this;this.before=[],this.after=[],this.addMiddleware=function(e,r){t[r]=t[r].concat(e)},this.removeMiddleware=function(e,r){var n=t[r].findIndex(function(i){return i===e});n!==-1&&(t[r]=[].concat(t[r].slice(0,n),t[r].slice(n+1)))},this.dynamicMiddlewares=function(e){return function(r){return function(n){return function(i){var s={getState:r.getState,dispatch:function(o){return r.dispatch(o)}},a=t[e].map(function(o){return o(s)});return Ue.apply(void 0,a)(n)(i)}}}}};function qa(t){return function(e,r){e===void 0&&(e={});var n={};if(r.type==="initialize:aborted")return e;if(/^registerPlugin:([^:]*)$/.test(r.type)){var i=Pn(r.type,"registerPlugin"),s=t()[i];if(!s||!i)return e;var a=r.enabled,o=s.config;return n[i]={enabled:a,initialized:!!a&&!s.initialize,loaded:!!a&&!!s.loaded({config:o}),config:o},T({},e,n)}if(/^initialize:([^:]*)$/.test(r.type)){var c=Pn(r.type,N.initialize),u=t()[c];return u&&c?(n[c]=T({},e[c],{initialized:!0,loaded:!!u.loaded({config:u.config})}),T({},e,n)):e}if(/^ready:([^:]*)$/.test(r.type))return n[r.name]=T({},e[r.name],{loaded:!0}),T({},e,n);switch(r.type){case N.disablePlugin:return T({},e,Tn(r.plugins,!1,e));case N.enablePlugin:return T({},e,Tn(r.plugins,!0,e));default:return e}}}function Pn(t,e){return t.substring(e.length+1,t.length)}function Tn(t,e,r){return t.reduce(function(n,i){return n[i]=T({},r[i],{enabled:e}),n},r)}function Dn(t){try{return JSON.parse(JSON.stringify(t))}catch{}return t}var Fa={last:{},history:[]};function Ba(t,e){t===void 0&&(t=Fa);var r=e.options,n=e.meta;if(e.type===N.track){var i=Dn(T({event:e.event,properties:e.properties},Object.keys(r).length&&{options:r},{meta:n}));return T({},t,{last:i,history:t.history.concat(i)})}return t}var $a={actions:[]};function Ka(t,e){t===void 0&&(t=$a);var r=e.payload;switch(e.type){case"queue":var n;return n=r&&r.type&&r.type===N.identify?[e].concat(t.actions):t.actions.concat(e),T({},t,{actions:n});case"dequeue":return[];default:return t}}var Un=/#.*$/;function Ya(t){var e=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(t);return"/"+(e&&e[3]?e[3].split("?")[0].replace(Un,""):"")}var Rn,Xa=function(t){if(t===void 0&&(t={}),!re)return t;var e=document,r=e.title,n=e.referrer,i=window,s=i.location,a=i.innerWidth,o=i.innerHeight,c=s.hash,u=s.search,f=(function(m){var g=(function(){if(re){for(var A,I=document.getElementsByTagName("link"),E=0;A=I[E];E++)if(A.getAttribute("rel")==="canonical")return A.getAttribute("href")}})();return g?g.match(/\?/)?g:g+m:window.location.href.replace(Un,"")})(u),d={title:r,url:f,path:Ya(f),hash:c,search:u,width:a,height:o};return n&&n!==""&&(d.referrer=n),T({},d,t)},Ja={last:{},history:[]};function Za(t,e){t===void 0&&(t=Ja);var r=e.options;if(e.type===N.page){var n=Dn(T({properties:e.properties,meta:e.meta},Object.keys(r).length&&{options:r}));return T({},t,{last:n,history:t.history.concat(n)})}return t}Rn={};var xn={initialized:!1,sessionId:oe(),app:null,version:null,debug:!1,offline:!!re&&!navigator.onLine,os:{name:"na"},userAgent:re?navigator.userAgent:"node",library:{name:Qt,version:"0.13.1"},timezone:void 0,locale:void 0,campaign:{},referrer:Rn};function Qa(t,e){t===void 0&&(t=xn);var r=t.initialized,n=e.campaign;switch(e.type){case N.campaign:return T({},t,{campaign:n});case N.offline:return T({},t,{offline:!0});case N.online:return T({},t,{offline:!1});default:return r?t:T({},xn,t,{initialized:!0})}}var es=["plugins","reducers","storage"];function zn(){return J(Qt,[]),function(t){return function(e,r,n){var i=t(e,r,n),s=i.dispatch;return Object.assign(i,{dispatch:function(a){return Ne[xe][Qt].push(a.action||a),s(a)}})}}}function Nn(t){return function(){return Ue(Ue.apply(null,arguments),zn())}}function Jt(t){return t?$t(t)?t:[t]:[]}function kn(t,e,r){t===void 0&&(t={});var n,i,s=oe();return e&&(qe[s]=(n=e,i=(function(a){for(var o,c=a||Array.prototype.slice.call(arguments),u=0;u<c.length;u++)if(Y(c[u])){o=c[u];break}return o})(r),function(a){i&&i(a),n(a)})),T({},t,{rid:s,ts:new Date().getTime()},e?{hasCallback:!0}:{})}function Ln(t){t===void 0&&(t={});var e=t.reducers||{},r=t.initialUser||{},n=(t.plugins||[]).reduce(function(l,p){if(Y(p))return l.middlewares=l.middlewares.concat(p),l;if(p.NAMESPACE&&(p.name=p.NAMESPACE),!p.name)throw new Error("https://lytics.dev/errors/1");p.config||(p.config={});var O=p.EVENTS?Object.keys(p.EVENTS).map(function(U){return p.EVENTS[U]}):[];l.pluginEnabled[p.name]=!(p.enabled===!1||p.config.enabled===!1),delete p.enabled,p.methods&&(l.methods[p.name]=Object.keys(p.methods).reduce(function(U,B){var G;return U[B]=(G=p.methods[B],function(){for(var q=Array.prototype.slice.call(arguments),W=new Array(G.length),fe=0;fe<q.length;fe++)W[fe]=q[fe];return W[W.length]=h,G.apply({instance:h},W)}),U},{}),delete p.methods);var _=Object.keys(p).concat(O),V=new Set(l.events.concat(_));if(l.events=Array.from(V),l.pluginsArray=l.pluginsArray.concat(p),l.plugins[p.name])throw new Error(p.name+"AlreadyLoaded");return l.plugins[p.name]=p,l.plugins[p.name].loaded||(l.plugins[p.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=t.storage?t.storage:{getItem:X,setItem:J,removeItem:se},s=(function(l){return function(p,O,_){return O.getState("user")[p]||(_&&K(_)&&_[p]?_[p]:vn(l)[p]||X(tr(p))||null)}})(i),a=n.plugins,o=n.events.filter(function(l){return!er.includes(l)}).sort(),c=new Set(o.concat(wt).filter(function(l){return!er.includes(l)})),u=Array.from(c).sort(),f=function(){return a},d=new Wa,m=d.addMiddleware,g=d.removeMiddleware,A=d.dynamicMiddlewares,I=function(){throw new Error("Abort disabled inListener")},E=dn(),x=vn(i),y=T({},x,r,E.an_uid?{userId:E.an_uid}:{},E.an_aid?{anonymousId:E.an_aid}:{});y.anonymousId||(y.anonymousId=oe());var M=T({enable:function(l,p){return new Promise(function(O){S.dispatch({type:N.enablePlugin,plugins:Jt(l),_:{originalAction:N.enablePlugin}},O,[p])})},disable:function(l,p){return new Promise(function(O){S.dispatch({type:N.disablePlugin,plugins:Jt(l),_:{originalAction:N.disablePlugin}},O,[p])})}},n.methods),v=!1,h={identify:function(l,p,O,_){try{var V=ie(l)?l:null,U=K(l)?l:p,B=O||{},G=h.user();J(tr(Se),V);var q=V||U.userId||s(Se,h,U);return Promise.resolve(new Promise(function(W){S.dispatch(T({type:N.identifyStart,userId:q,traits:U||{},options:B,anonymousId:G.anonymousId},G.id&&G.id!==V&&{previousId:G.id}),W,[p,O,_])}))}catch(W){return Promise.reject(W)}},track:function(l,p,O,_){try{var V=K(l)?l.event:l;if(!V||!ie(V))throw new Error("EventMissing");var U=K(l)?l:p||{},B=K(O)?O:{};return Promise.resolve(new Promise(function(G){S.dispatch({type:N.trackStart,event:V,properties:U,options:B,userId:s(Se,h,p),anonymousId:s(Ce,h,p)},G,[p,O,_])}))}catch(G){return Promise.reject(G)}},page:function(l,p,O){try{var _=K(l)?l:{},V=K(p)?p:{};return Promise.resolve(new Promise(function(U){S.dispatch({type:N.pageStart,properties:Xa(_),options:V,userId:s(Se,h,_),anonymousId:s(Ce,h,_)},U,[l,p,O])}))}catch(U){return Promise.reject(U)}},user:function(l){if(l===Se||l==="id")return s(Se,h);if(l===Ce||l==="anonId")return s(Ce,h);var p=h.getState("user");return l?(0,gt.default)(p,l):p},reset:function(l){return new Promise(function(p){S.dispatch({type:N.resetStart},p,l)})},ready:function(l){return v&&l({plugins:M,instance:h}),h.on(N.ready,function(p){l&&l(p),v=!0})},on:function(l,p){if(!l||!Y(p))return!1;if(l===N.bootstrap)throw new Error(".on disabled for "+l);var O=/Start$|Start:/;if(l==="*"){var _=function(G){return function(q){return function(W){return W.type.match(O)&&p({payload:W,instance:h,plugins:a}),q(W)}}},V=function(G){return function(q){return function(W){return W.type.match(O)||p({payload:W,instance:h,plugins:a}),q(W)}}};return m(_,yt),m(V,bt),function(){g(_,yt),g(V,bt)}}var U=l.match(O)?yt:bt,B=function(G){return function(q){return function(W){return W.type===l&&p({payload:W,instance:h,plugins:a,abort:I}),q(W)}}};return m(B,U),function(){return g(B,U)}},once:function(l,p){if(!l||!Y(p))return!1;if(l===N.bootstrap)throw new Error(".once disabled for "+l);var O=h.on(l,function(_){p({payload:_.payload,instance:h,plugins:a,abort:I}),O()});return O},getState:function(l){var p=S.getState();return l?(0,gt.default)(p,l):Object.assign({},p)},dispatch:function(l){var p=ie(l)?{type:l}:l;if(wt.includes(p.type))throw new Error("reserved action "+p.type);var O=T({},p,{_:T({originalAction:p.type},l._||{})});S.dispatch(O)},enablePlugin:M.enable,disablePlugin:M.disable,plugins:M,storage:{getItem:i.getItem,setItem:function(l,p,O){S.dispatch({type:N.setItemStart,key:l,value:p,options:O})},removeItem:function(l,p){S.dispatch({type:N.removeItemStart,key:l,options:p})}},setAnonymousId:function(l,p){h.storage.setItem(Oe,l,p)},events:{core:wt,plugins:o}},P=n.middlewares.concat([function(l){return function(p){return function(O){return O.meta||(O.meta=kn()),p(O)}}},A(yt),Va(h,f,{all:u,plugins:o}),Ga(i),Ua(h),za(h),A(bt)]),w={context:Qa,user:Ra(i),page:Za,track:Ba,plugins:qa(f),queue:Ka},b=Ue,D=Ue;if(re&&t.debug){var H=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;H&&(b=H({trace:!0,traceLimit:25})),D=function(){return arguments.length===0?zn():K(typeof arguments[0])?Nn():Nn().apply(null,arguments)}}var L,R=(function(l){return Object.keys(l).reduce(function(p,O){return es.includes(O)||(p[O]=l[O]),p},{})})(t),z=n.pluginsArray.reduce(function(l,p){var O=p.name,_=p.config,V=p.loaded,U=n.pluginEnabled[O];return l[O]={enabled:U,initialized:!!U&&!p.initialize,loaded:!!V({config:_}),config:_},l},{}),k={context:R,user:y,plugins:z},S=_n((function(l){for(var p=Object.keys(l),O={},_=0;_<p.length;_++){var V=p[_];typeof l[V]===Ee&&(O[V]=l[V])}var U,B=Object.keys(O);try{(function(G){Object.keys(G).forEach(function(q){var W=G[q];if(typeof W(void 0,{type:Zt})===pe||typeof W(void 0,{type:Ca})===pe)throw new Error(Fe+" "+q+" "+pe)})})(O)}catch(G){U=G}return function(G,q){if(G===void 0&&(G={}),U)throw U;for(var W=!1,fe={},Lt=0;Lt<B.length;Lt++){var it=B[Lt],Gr=G[it],Ht=(0,O[it])(Gr,q);if(typeof Ht===pe){var Zi=Ma(it,q);throw new Error(Zi)}fe[it]=Ht,W=W||Ht!==Gr}return W?fe:G}})(T({},w,e)),k,D(b(Da.apply(void 0,P))));S.dispatch=(L=S.dispatch,function(l,p,O){var _=T({},l,{meta:kn(l.meta,p,Jt(O))});return L.apply(null,[_])});var j=Object.keys(a);S.dispatch({type:N.bootstrap,plugins:j,config:R,params:E,user:y,initialUser:r,persistedUser:x});var C=j.filter(function(l){return n.pluginEnabled[l]}),ee=j.filter(function(l){return!n.pluginEnabled[l]});return S.dispatch({type:N.registerPlugins,plugins:j,enabled:n.pluginEnabled}),n.pluginsArray.map(function(l,p){var O=l.bootstrap,_=l.config,V=l.name;O&&Y(O)&&O({instance:h,config:_,payload:l}),S.dispatch({type:N.registerPluginType(V),name:V,enabled:n.pluginEnabled[V],plugin:l}),n.pluginsArray.length===p+1&&S.dispatch({type:N.initializeStart,plugins:C,disabled:ee})}),h}var yt="before",bt="after";var Ie="cookie",je=rr(),$e=Ot,St=Ot;function Et(t){return je?Ot(t,"",-1):se(t)}function rr(){if(je!==void 0)return je;var t=Ie+Ie;try{Ot(t,t),je=document.cookie.indexOf(t)!==-1,Et(t)}catch{je=!1}return je}function Ot(t,e,r,n,i,s){if(typeof window<"u"){var a=arguments.length>1;return je===!1&&(a?J(t,e):X(t)),a?document.cookie=t+"="+encodeURIComponent(e)+(r?"; expires="+new Date(+new Date+1e3*r).toUTCString()+(n?"; path="+n:"")+(i?"; domain="+i:"")+(s?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+t+"=")[1]||"").split(";")[0])}}var ue="localStorage",Hn=We.bind(null,ue),It=we(ue,"getItem",X),Vn=we(ue,"setItem",J),nr=we(ue,"removeItem",se);var ce="sessionStorage",Gn=We.bind(null,ce),Wn=we(ce,"getItem",X),qn=we(ce,"setItem",J),Fu=we(ce,"removeItem",se);function Re(t){var e=t;try{if((e=JSON.parse(t))==="true")return!0;if(e==="false")return!1;if(K(e))return e;parseFloat(e)===e&&(e=parseFloat(e))}catch{}if(e!==null&&e!=="")return e}var ts=Hn(),rs=Gn(),ns=rr();function Fn(t,e){if(t){var r=ir(e),n=!ur(r),i=ar(r)?Re(localStorage.getItem(t)):void 0;if(n&&!Te(i))return i;var s=sr(r)?Re($e(t)):void 0;if(n&&s)return s;var a=or(r)?Re(sessionStorage.getItem(t)):void 0;if(n&&a)return a;var o=X(t);return n?o:{localStorage:i,sessionStorage:a,cookie:s,global:o}}}function is(t,e,r){if(t&&!Te(e)){var n={},i=ir(r),s=JSON.stringify(e),a=!ur(i);return ar(i)&&(n[ue]=At(ue,e,Re(localStorage.getItem(t))),localStorage.setItem(t,s),a)?n[ue]:sr(i)&&(n[Ie]=At(Ie,e,Re($e(t))),St(t,s),a)?n[Ie]:or(i)&&(n[ce]=At(ce,e,Re(sessionStorage.getItem(t))),sessionStorage.setItem(t,s),a)?n[ce]:(n[be]=At(be,e,X(t)),J(t,e),a?n[be]:n)}}function as(t,e){if(t){var r=ir(e),n=Fn(t,Bt),i={};return!Te(n.localStorage)&&ar(r)&&(localStorage.removeItem(t),i[ue]=n.localStorage),!Te(n.cookie)&&sr(r)&&(Et(t),i[Ie]=n.cookie),!Te(n.sessionStorage)&&or(r)&&(sessionStorage.removeItem(t),i[ce]=n.sessionStorage),!Te(n.global)&&Pt(r,be)&&(se(t),i[be]=n.global),i}}function ir(t){return t?ie(t)?t:t.storage:Ft}function ar(t){return ts&&Pt(t,ue)}function sr(t){return ns&&Pt(t,Ie)}function or(t){return rs&&Pt(t,ce)}function ur(t){return t===Bt||t==="all"}function Pt(t,e){return t===Ft||t===e||ur(t)}function At(t,e,r){return{location:t,current:e,previous:r}}var Bn={setItem:is,getItem:Fn,removeItem:as};function ss(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Kn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(r),!0).forEach(function(n){ss(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={storage:Bn};return Ln(Kn(Kn({},e),t))}function Xn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(r),!0).forEach(function(n){He(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var F=Vt(ai());var si=function(){};function oi(t,e){var r,n,i,s=(e=e||{}).initial||[],a=e.max||1/0,o=e.interval||1e4,c=e.onEmpty||si,u=e.onPause||si;function f(m){clearInterval(r);var g=s.splice(0,a);return g.length&&t(g,s),s.length?m?f():d():(i=!1,c(s))}function d(){i=!0,r=setInterval(f,o)}return s.length&&d(),{flush:function(m){f(m)},resume:f,push:function(m){return(n=s.push(m))>=a&&!e.throttle&&f(),i||d(),n},size:function(){return s.length},pause:function(m){m&&f(),clearInterval(r),i=!1,u(s)}}}var Nt="__",kt="session",ci=Nt+kt,li="page",ui=["id","createdAt","created"];function yr(t){var e=t?new Date(t):new Date;return[e.toISOString(),e.getTime()]}function fi(){var t=yr(),e=t[0],r=t[1];return{id:oe(),created:r,createdAt:e}}var Os={session:[Wn,qn],page:[X,J]};function jt(t,e){for(var r=Os[t],n=r[0],i=r[1],s=fi(),a=!1,o={},c=0;c<ui.length;c++){var u=ui[c],f=Nt+t+Nt+kt+Nt+u,d=n(f);a=e||!d,(e||!e&&!d)&&i(f,s[u]);var m=d&&!e?d:s[u],g=u!=="created"?m:Number(m);o[u]=g}return br(o,a)}function br(t,e){var r=Date.now();return t.elapsed=r-t.created,t.expires&&(t.remaining=Math.max(t.expires-r,0),t.isExpired=t.remaining===0),t.isNew=e,t}function ze(t,e){t===void 0&&(t=30);var r=$e(ci),n=r?JSON.parse(r):et(t);return e?n:br(n,!r)}function et(t,e,r){t===void 0&&(t=30);var n=r?ze(t,!0):fi(),i=60*t,s=n.created;if(r){var a=yr(),o=a[0],c=a[1];n.modified=c,n.modifiedAt=o,s=c}var u=yr(s+1e3*i),f=u[0];return n.expires=u[1],n.expiresAt=f,n.duration=1e3*i,e&&(n=Object.assign(n,e)),St(ci,JSON.stringify(n),i),br(n,!r)}var di=function(t,e){return t===void 0&&(t=30),et(t||1,e,!0)};var wr=jt.bind(null,kt),pi=jt.bind(null,kt,!0),_t=jt.bind(null,li),Sr=jt.bind(null,li,!0);var Ae=typeof window<"u";function mi(t){return typeof t=="string"}function Er(t){return typeof t=="boolean"}var Hi=Vt(yi());var Ir=new TextEncoder,Rs={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"},zs=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Ct=class{constructor({accessKeyId:e,secretAccessKey:r,sessionToken:n,service:i,region:s,cache:a,retries:o,initRetryMs:c}){if(e==null)throw new TypeError("accessKeyId is a required option");if(r==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=e,this.secretAccessKey=r,this.sessionToken=n,this.service=i,this.region=s,this.cache=a||new Map,this.retries=o??10,this.initRetryMs=c||50}async sign(e,r){if(e instanceof Request){let{method:s,url:a,headers:o,body:c}=e;r=Object.assign({method:s,url:a,headers:o},r),r.body==null&&o.has("Content-Type")&&(r.body=c!=null&&o.has("X-Amz-Content-Sha256")?c:await e.clone().arrayBuffer()),e=a}let n=new Ar(Object.assign({url:e.toString()},r,this,r&&r.aws)),i=Object.assign({},r,await n.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(s){if(s instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw s}}async fetch(e,r){for(let n=0;n<=this.retries;n++){let i=fetch(await this.sign(e,r));if(n===this.retries)return i;let s=await i;if(s.status<500&&s.status!==429)return s;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,n)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Ar=class{constructor({method:e,url:r,headers:n,body:i,accessKeyId:s,secretAccessKey:a,sessionToken:o,service:c,region:u,cache:f,datetime:d,signQuery:m,appendSessionToken:g,allHeaders:A,singleEncode:I}){if(r==null)throw new TypeError("url is a required option");if(s==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=e||(i?"POST":"GET"),this.url=new URL(r),this.headers=new Headers(n||{}),this.body=i,this.accessKeyId=s,this.secretAccessKey=a,this.sessionToken=o;let E,x;(!c||!u)&&([E,x]=Ls(this.url,this.headers)),this.service=c||E||"",this.region=u||x||"us-east-1",this.cache=f||new Map,this.datetime=d||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=m,this.appendSessionToken=g||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(v=>A||!zs.has(v)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(v=>v+":"+(v==="host"?this.url.host:(this.headers.get(v)||"").replace(/\s+/g," "))).join(`
|
|
4
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,"/");I||(this.encodedPath=encodeURIComponent(this.encodedPath).replace(/%2F/g,"/")),this.encodedPath=Si(this.encodedPath);let M=new Set;this.encodedSearch=[...this.url.searchParams].filter(([v])=>{if(!v)return!1;if(this.service==="s3"){if(M.has(v))return!1;M.add(v)}return!0}).map(v=>v.map(h=>Si(encodeURIComponent(h)))).sort(([v,h],[P,w])=>v<P?-1:v>P?1:h<w?-1:h>w?1:0).map(v=>v.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 e=this.datetime.slice(0,8),r=[this.secretAccessKey,e,this.region,this.service].join(),n=this.cache.get(r);if(!n){let i=await rt("AWS4"+this.secretAccessKey,e),s=await rt(i,this.region),a=await rt(s,this.service);n=await rt(a,"aws4_request"),this.cache.set(r,n)}return Or(await rt(n,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,Or(await bi(await this.canonicalString()))].join(`
|
|
5
5
|
`)}async canonicalString(){return[this.method.toUpperCase(),this.encodedPath,this.encodedSearch,this.canonicalHeaders+`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import"./CKPQTIAF.js";import z from"./74Z5A6E2.js";import y from"./T7O4WZGU.js";import v from"./SAVDBHDE.js";import t from"./3CSSTWYC.js";import s from"./Z6CZ7GFZ.js";import r from"./UDWEFNJE.js";import"./7XPOQHB4.js";import q from"./C2GWD5VP.js";import n from"./NIUKLQOT.js";import m from"./LOSU3FPH.js";import l from"./YBJ6AHAG.js";import j from"./CVNW2AU2.js";import i from"./LCDURBN6.js";import"./HYQVSB6C.js";import h from"./OPWMEQVM.js";import"./DF2U7HIU.js";import g from"./EHIUCEAX.js";import{a as k}from"./PPFEO3UH.js";import"./YUWXPLTE.js";import"./NQH7ZZWD.js";import"./MHMM4RFR.js";import"./BSIPKI63.js";import e from"./DQJ36YEL.js";import b from"./TK5EXRZL.js";import{a as D,b as A,c as x}from"./2B4SGB3I.js";import{a as u}from"./RLSY4VUQ.js";import"./CGQALCTZ.js";import{a as S}from"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as C}from"./ZB5UCRCG.js";import{F as o,G as a,H as T,J as p,L as w,h as f,i as d,q as c}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,,{m:I},{c:O,j:F,n:$,o:L,r:h},,{b:M},{a:P},,,{g:B,h:R},,,,,,y,E,{a:g}])=>{var N=f`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--panel-edge-adjustment: 2vw;--assistant-panel-min-width: 420px;--assistant-panel-width: max(var(--assistant-panel-min-width), calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment) - 15px))}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,solutions-resources-shell,calcite-tab-nav,solution-deployed-card-panel,.resources-menu-container{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.resources-menu-container{background-color:var(--calcite-color-foreground-1)}.resources-menu-toolbar{height:66px;display:flex;align-items:center}.resources-menu-toolbar calcite-menu-item{transition:border-color .2s ease}.resources-menu-toolbar calcite-menu-item[active]{border-bottom-color:var(--calcite-color-brand)}.border{height:0;box-shadow:0 1px 0 0 var(--calcite-color-border-2)}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-inline-end:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open solutions-resources-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel,.assistant-open .resources-menu-container,.assistant-open .border{margin-inline-start:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));margin-inline-end:0;width:auto;max-width:1440px}.assistant-open solutions-searchsort-toolbar{overflow:hidden;scrollbar-gutter:stable}.builder-panel{position:fixed;top:65px;inset-inline-start:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));inset-inline-end:var(--assistant-panel-width);bottom:0;z-index:400;display:flex;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);pointer-events:auto}.builder-panel.display-none{display:flex!important;transform:translate(100%);pointer-events:none}.builder-panel:dir(rtl).display-none{transform:translate(-100%)}@supports (-webkit-touch-callout: none){.builder-panel.display-none{display:none!important;transform:none}.builder-panel:dir(rtl).display-none{transform:none}}.builder-panel.display-none:has(~.assistant-panel.display-none){display:none!important;transition:none}.assistant-panel{position:fixed;top:65px;inset-inline-end:0;bottom:0;width:var(--assistant-panel-width);min-width:var(--assistant-panel-min-width);z-index:400;display:flex;flex-direction:column}@media(max-width:800px){.builder-panel{display:none!important}.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-inline-end:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);inset-inline-end:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}.assistant-fab-popover{--calcite-popover-max-size-x: 16rem}.assistant-fab-popover__content{display:block;padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md);font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word}`,V={solution:{title:"Bus Stop ADA Compliance Inspections",description:"Bus Stop ADA Compliance Inspections can be used to perform routine inspections of bus stops for ADA compliance and monitor inspection progress.",thumbnailUrl:P,tags:["Bus Stop","ADA Compliance","Inspection","Field","Monitor","ArcGIS Solutions"],strings:[{key:"inspectionsByMonth",value:"Inspections by Month",description:"Descriptive title of dashboard chart displaying the number of inspections completed by month."},{key:"inspectionsCompleted",value:"Inspections Completed",description:"Descriptive title of dashboard indicator displaying the total number of inspections completed."},{key:"assetInventory",value:"Bus Stop Inventory",description:"Descriptive title of dashboard indicator displaying the total number of bus stops."}]},items:[{id:"b21885d38b3c4924922ce36c90112737",title:"Bus Stop ADA Inspection Dashboard",description:"An ArcGIS Dashboards app used to monitor bus stop ADA compliance inspections.",type:"Dashboard"},{id:"54f69b6af00b4f06b1c1eef05e80dc93",title:"Bus Stop ADA Inspection Map",description:"A map used by the Bus Stop ADA Inspection Dashboard app to monitor inspections.",type:"Web Map"},{id:"2fc93fa4e07e42508669d02acb837a75",title:"Bus Stop ADA Inspection Field Map",description:"A map used in ArcGIS Field Maps to inspect bus stops in the field for ADA compliance.",type:"Web Map"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f323",title:"BusStops_field",description:"A hosted feature layer view used to inspect bus stops for ADA compliance.",type:"Feature Layer (hosted, view)"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f324",title:"BusStops_dashboard",description:"A hosted feature layer view used to monitor bus stop ADA inspections.",type:"Feature Layer (hosted, view)"},{id:"36d0bdce3a74436f8314c88c9667003e",title:"BusStops",description:"A hosted feature layer used to store bus stop and ADA inspection details.",type:"Feature Layer (hosted)"}],featureLayer:{itemId:"36d0bdce3a74436f8314c88c9667003e",addLayers:!0,layers:[{id:"0",type:"Point",typeMutable:!0,name:"BusStops",description:"Point layer containing bus stop locations and ADA compliance information.",customFields:[{name:"stop_id",type:"string",alias:"Stop ID",description:"Identifier for the bus stop.",choiceList:null,length:255},{name:"location_description",type:"string",alias:"Location Description",description:"Description of the bus stop location.",choiceList:null,length:255},{name:"shelter_present",type:"string",alias:"Shelter Present",description:"Indicates if a waiting shelter is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"bench_present",type:"string",alias:"Bench Present",description:"Indicates if a bench is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"ada_compliant",type:"string",alias:"ADA Compliant",description:"Indicates if the bus stop meets ADA compliance requirements.",choiceList:["Yes","No"],length:5},{name:"capacity",type:"integer",alias:"Seating Capacity",description:"Number of people that can be seated at the bus stop."},{name:"distance_from_curb",type:"double",alias:"Distance from Curb (ft)",description:"Distance in feet from the curb to the shelter."},{name:"last_inspection_date",type:"date",alias:"Last Inspection Date",description:"Date of the most recent inspection."},{name:"installation_date",type:"date",alias:"Installation Date",description:"Date when the bus stop was installed."}],requiredFields:[{name:"route_number",type:"string",alias:"Route Number",description:"Number of the bus route that uses this stop.",choiceList:null,length:50},{name:"average_daily_riders",type:"integer",alias:"Average Daily Riders",description:"Average number of riders using this stop per day."},{name:"inspection_priority",type:"string",alias:"Inspection Priority",description:"Priority level for scheduling inspections.",choiceList:["High","Medium","Low"],length:10}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"1",type:"Polyline",typeMutable:!1,name:"Routes",description:"Polyline layer containing bus route paths.",customFields:[{name:"route_name",type:"string",alias:"Route Name",description:"Name of the bus route.",choiceList:null,length:100},{name:"route_type",type:"string",alias:"Route Type",description:"Type of bus route service.",choiceList:["Express","Local","Rapid"],length:20},{name:"frequency_minutes",type:"integer",alias:"Frequency (minutes)",description:"How often buses run on this route in minutes."},{name:"route_length_miles",type:"double",alias:"Route Length (miles)",description:"Total length of the route in miles."}],requiredFields:[{name:"route_id",type:"string",alias:"Route ID",description:"Unique identifier for the route.",choiceList:null,length:50},{name:"active",type:"string",alias:"Active Status",description:"Whether the route is currently active.",choiceList:["Yes","No"],length:3}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"2",type:"Polygon",typeMutable:!1,name:"ServiceAreas",description:"Polygon layer defining bus service coverage areas.",customFields:[{name:"area_name",type:"string",alias:"Area Name",description:"Name of the service area.",choiceList:null,length:100},{name:"service_level",type:"string",alias:"Service Level",description:"Level of service provided in this area.",choiceList:["High Frequency","Standard","Limited"],length:20},{name:"population",type:"integer",alias:"Population",description:"Estimated population within the service area."},{name:"area_sq_miles",type:"double",alias:"Area (sq miles)",description:"Size of the service area in square miles."}],requiredFields:[{name:"district_id",type:"string",alias:"District ID",description:"Unique identifier for the service district.",choiceList:null,length:50}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"3",type:"Point",typeMutable:!1,name:"Tasks",description:"Point layer containing task assignments for bus stop inspections, related to BusStops layer.",customFields:[{name:"task_id",type:"string",alias:"Task ID",description:"Unique identifier for the task assignment.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop to be inspected (relates to BusStops layer).",choiceList:null,length:255},{name:"assigned_to",type:"string",alias:"Assigned To",description:"Name of the inspector assigned to this task.",choiceList:null,length:100},{name:"due_date",type:"date",alias:"Due Date",description:"Date by which the inspection should be completed."},{name:"priority",type:"string",alias:"Priority",description:"Priority level of the inspection task.",choiceList:["High","Medium","Low"],length:10},{name:"notes",type:"string",alias:"Task Notes",description:"Additional notes or instructions for the inspection task.",choiceList:null,length:500}],requiredFields:[{name:"status",type:"string",alias:"Task Status",description:"Current status of the task assignment.",choiceList:["Not Started","In Progress","Completed","Cancelled"],length:20},{name:"assignment_date",type:"date",alias:"Assignment Date",description:"Date when the task was created and assigned."}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"4",typeMutable:!1,type:"Table",name:"Inspections",description:"Table containing inspection records and findings.",customFields:[{name:"inspection_id",type:"string",alias:"Inspection ID",description:"Unique identifier for the inspection.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop that was inspected.",choiceList:null,length:255},{name:"inspector_name",type:"string",alias:"Inspector Name",description:"Name of the person who performed the inspection.",choiceList:null,length:100},{name:"inspection_date",type:"date",alias:"Inspection Date",description:"Date when the inspection was performed."},{name:"overall_condition",type:"string",alias:"Overall Condition",description:"Overall condition assessment of the bus stop.",choiceList:["Excellent","Good","Fair","Poor","Critical"],length:20},{name:"issues_found",type:"integer",alias:"Issues Found",description:"Number of issues identified during inspection."},{name:"notes",type:"string",alias:"Inspection Notes",description:"Additional notes or comments about the inspection.",choiceList:null,length:1e3}],requiredFields:[{name:"inspection_status",type:"string",alias:"Inspection Status",description:"Current status of the inspection.",choiceList:["Scheduled","In Progress","Completed","Cancelled"],length:20}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]}]}},v=class extends T{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.loadExampleBuilderData=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._isViewportMobile=window.innerWidth<=800,this._isAssistantOpen=!1,this._builderVisible=!1,this._hasActiveBuilderDesign=!1,this._showFabTooltip=!0,this._fabTooltipDismissed=!1,this._activeTab="all-solutions",this._activeResourcesMenuItem="getStarted",this._showDeployedCardFetchFailed=!1,this._globalAlerts=[],this._translations=S({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${L}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=u({context:A}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._solutionBuilderPanel=o(),this._builderDesignContextProvider=u({context:x}),this._isMobileContextProvider=u({context:D}),this._handleWindowResize=()=>{let t=window.innerWidth<=800;this._isViewportMobile!==t&&(this._isViewportMobile=t,t&&(this._isAssistantOpen=!1,this._builderVisible=!1))},this._mainContentRef=o(),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._resourcesShell=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new g,this.deployAppTabSelected=c(),this.deployedCardFetchFailed=c(),this.detailsCardSelected=c(),this.deployedCardSelected=c(),this.metaTagStringsReady=c(),this.sessionRefreshed=c(),this.tabChanged=c(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this.listenOn(window,"showGlobalAlert",this._handleShowGlobalAlert),this.listenOn(window,"openAssistant",()=>{this._openAssistant()}),this.listenOn(window,"closeAssistant",()=>{this._isAssistantOpen=!1,this._builderVisible=!1}),this.listenOn(window,"toggleSolutionBuilder",()=>{this._builderVisible=!this._builderVisible}),this.listenOn(window,"hideSolutionBuilder",()=>{this._builderVisible=!1}),this.listenOn(window,"discardBuilder",t=>{this._hasActiveBuilderDesign=t.detail}),this.listenOn(window,"arcgis-solution-design-update",this._solutionBuilderSelected),window.addEventListener("resize",this._handleWindowResize),this._builderDesignContextProvider.value={design:this.loadExampleBuilderData?V:null,updateDesign:t=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:t}},isBuilderVisible:!1,setBuilderVisible:t=>{this._builderVisible=t,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:t}}},this.loadExampleBuilderData&&(this._hasActiveBuilderDesign=!0)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,loadExampleBuilderData:5,authentication:16,_isLoaded:16,isMobile:16,_isViewportMobile:16,_isAssistantOpen:16,_builderVisible:16,_hasActiveBuilderDesign:16,_showFabTooltip:16,_fabTooltipDismissed:16,_activeTab:16,_activeResourcesMenuItem:16,_showDeployedCardFetchFailed:16,_globalAlerts:16,_translations:16}}static{this.styles=N}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}get _readOnlyNotice(){return this._configContextProvider.value?.isEnterprise?this._translations.writableEnterprise||"":(this._translations.writableOnline||"").replace("{{url}}","https://status.arcgis.com/")}_openAssistant(){this._telemetry?.logEvent({category:h.ASSISTANT,action:"Open"}),this._isAssistantOpen=!0}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(s=l,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=B(this._allCards,t.tabTitleOrId);s=s||R(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._builderVisible=!1,this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}updated(t){this._fixTabpanelFocus(),t.has("_isAssistantOpen")&&this._setScrollbarGutters(this._isAssistantOpen?"stable":"stable both-edges"),!this._resizeObserver&&this._mainContentRef.value&&(this._resizeObserver=new ResizeObserver(e=>{for(let i of e){let s=i.contentRect.width<=800;this.isMobile!==s&&(this.isMobile=s,this._isMobileContextProvider.setValue(s))}}),this._resizeObserver.observe(this._mainContentRef.value))}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let s=i.shadowRoot.querySelector('[role="tabpanel"]');s&&(s.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=M)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return d`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen?" assistant-open":""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing()&&d`<div class="border"></div>`||""}<solutions-searchsort-toolbar class=${p(this._activeTab==="resources"?"display-none":"")} ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i,i.scope=this._activeTab)})}></solutions-searchsort-toolbar>${this._activeTab==="resources"&&d`<div class="border"></div><div class="resources-menu-container"><calcite-menu .label=${this._translations.resourcesNavigationMenuLabel} class="resources-menu-toolbar"><calcite-menu-item .active=${this._activeResourcesMenuItem==="getStarted"||void 0} .label=${this._translations.resourcesGetStarted} .text=${this._translations.resourcesGetStarted} @click=${()=>this._handleResourcesMenuClick("getStarted")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem==="documentation"||void 0} .label=${this._translations.resourcesDocumentation} .text=${this._translations.resourcesDocumentation} @click=${()=>this._handleResourcesMenuClick("documentation")}></calcite-menu-item><calcite-menu-item .active=${this._activeResourcesMenuItem==="support"||void 0} .label=${this._translations.resourcesSupport} .text=${this._translations.resourcesSupport} @click=${()=>this._handleResourcesMenuClick("support")}></calcite-menu-item></calcite-menu></div>`||""}<calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell class="height-100" ${a(this._resourcesShell)}></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise&&d`<div class=${`builder-panel${this._builderVisible&&!this._isViewportMobile?"":" display-none"}`}><solution-builder-assistant class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen&&!this._isViewportMobile?"":" display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible} .hasActiveBuilderDesign=${this._hasActiveBuilderDesign}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip??w} class=${`assistant-fab${this._isAssistantOpen||this._isViewportMobile?" display-none":""}`} icon=effects id=assistant-fab-button @click=${()=>{this._openAssistant(),this._fabTooltipDismissed=!0,this._showFabTooltip=!1}} scale=l></calcite-fab>${!this._fabTooltipDismissed&&d`<calcite-popover closable class=${`assistant-fab-popover${this._isAssistantOpen||this._isViewportMobile?" display-none":""}`} .label=${this._translations.assistantFabTooltip} overlay-positioning=fixed @calcitePopoverClose=${()=>{this._fabTooltipDismissed=!0,this._showFabTooltip=!1}} .open=${this._showFabTooltip&&!this._isAssistantOpen&&!this._isViewportMobile} placement=leading reference-element=assistant-fab-button><span class="assistant-fab-popover__content">${this._translations.assistantFabTooltip}</span></calcite-popover>`||""}`||""}</calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleWindowResize),this._resizeObserver?.disconnect(),this._tabpanelObserver?.disconnect()}async _handleResourcesMenuClick(t){this._activeResourcesMenuItem=t,await this._resourcesShell.value?.scrollToSection(t)}_renderGlobalAlerts(){return k(this._globalAlerts,t=>t.id,t=>d`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title||""} @calciteAlertClose=${()=>this._removeGlobalAlert(t.id)} open>${t.title&&d`<div slot=title>${t.title}</div>`||""}<div slot=message>${t.message}</div></calcite-alert>`)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=g.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new y(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new y(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}this._builderVisible=!1,e!=="details"&&e!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=h.ALL_SOLUTIONS;break;case"deployments":i=h.DEPLOYMENTS;break;case"resources":i=h.RESOURCES;break;case"details":i=h.SOLUTION_DETAILS;break;case"deployed-card":i=h.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let n=e,b=t==="deployed-card"?"":n.title||"";s.push(b),s.push(n.deployCommonId||""),s.push(n.deployVersion||""),s.push(""),s.push(I(n.typeKeywords))}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_solutionBuilderSelected(t){t?.detail&&(this._builderVisible=!0,this._hasActiveBuilderDesign=!0,this._builderDesignContextProvider.value={design:t.detail,updateDesign:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:e}},isBuilderVisible:!0,setBuilderVisible:e=>{this._builderVisible=e,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:e}}})}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}_handleShowGlobalAlert(t){let e=t.detail,i=e.id||`alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;this._globalAlerts=[...this._globalAlerts,{...e,id:i}]}_removeGlobalAlert(t){this._globalAlerts=this._globalAlerts.filter(e=>e.id!==t)}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let s=O(e);try{let l=await E(e,i,this._cardsFetcher,this._cardFetcherDeployed,$,"created","desc",!1,[],[],this._abortControllerDeployed.signal,s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let n=l.message;n.indexOf("CONT_0001")>-1||n.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):n.indexOf("GWM_0003")>-1||n.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?F.AEC:t.industry,l=t.offerType,n=t.searchTerm,b="",r=t.sortField,_=t.owner,m=t.filter;r==="suggested"&&!this.authentication?.IsSignedIn&&(r=this.sortType),e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),n&&(e=e?{...e,searchTerm:n}:{searchTerm:n}),e&&(e={...e,displayValue:b}),r&&(e=e?{...e,sortType:r}:{sortType:r}),l&&(r=l.toLowerCase(),e=e?{...e,sortType:r}:{sortType:r}),_&&(e=e?{...e,owner:_}:{owner:_}),m&&(e=e?{...e,filter:m}:{filter:m})}return e}_setScrollbarGutters(t="stable both-edges"){[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(e=>{let i=e.value?.shadowRoot?.firstElementChild;i?.style&&(i.style.scrollbarGutter=t)})}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),s=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let l=new Date(e.Credential.expires);t.updateToken(e.Credential.token,l),this.sessionRefreshed.emit(t.token)}},s)}}};C("solutions-deploy-app",v);return v},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b,e,g,h,i,j,l,m,n,q,r,s,t,v,y,z)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./AIZ2P72X.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b}from"./YJ3DKEEZ.js";import{F as h,G as c,H as _,J as w,h as m,i as s,q as n,u as C}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([f,{b:d},{d:y}])=>{var B=m`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`,p=class extends _{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.createBtnLabel="",this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this.mapComponentId="",this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.allowedPasteLayerIds=[],this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._activeFeatureCreationCount=1,this._createAndBackBtnDisabled=!1,this._translations=g({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=h(),this._pasteComponent=h(),this.createWorkFlowStarted=n(),this.backFromCreateWorkFlow=n(),this.featuresCopied=n(),this.featuresPasted=n(),this.disablePaste=n(),this._handleCreateAndBackBtn=e=>{this._createFeatureEditor&&(this._createAndBackBtnDisabled=e)},this._featuresAdded=()=>{this._pasteComponent.value&&this._resetPasteWorkflow()},this._initCreateComponent=()=>{this._isFeatureCreated=!1,this._handleCreateAndBackBtn(!1),this._showCreateFeatureComponent=!0},this._createFeatureEditorInitialized=e=>{this._createFeatureEditor=e.detail},this._createFeatureEditorClosed=()=>{this._createFeatureEditor=void 0},this._pasteComponentReady=async()=>{let e=this._pasteComponent.value;if(e&&this.mapComponentId&&e.referenceElement===void 0){let t=document.getElementById(this.mapComponentId);await t.viewOnReady(),e.referenceElement=t}e&&!this._clipboardWatchHandle&&(this._clipboardWatchHandle=f.watch(()=>e.clipboard.hasItems,t=>{t||this.disablePaste.emit()}))},this._applyPasteCommand=async e=>{let t=new Promise((a,o)=>{if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available."),a();return}try{e.detail.applySet?this._pasteComponent.value.writeChanges(e.detail.applySet).then(()=>{this._resetPasteWorkflow(),a()}).catch(i=>{console.log(i),o(i)}):a()}catch(i){o(i),console.error("Paste failed:",i)}});e.detail.completionCallback=t},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"copyFeatures",this._copyFeatures),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresAdded",this._featuresAdded),this.listenOn(window,"initCreateComponent",this._initCreateComponent),this.listenOn(window,"createFeatureEditorInitialized",this._createFeatureEditorInitialized),this.listenOn(window,"createFeatureEditorClosed",this._createFeatureEditorClosed),this.listenOn(window,"continueEditing",()=>this._handleCreateAndBackBtn(!1)),this.listenOn(window,"beforeLayerSelectionChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeMapInfoChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeFeatureSelectionChange",()=>this._handleCreateAndBackBtn(!0))}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,createBtnLabel:1,selectingFeatureFromMap:5,showSketchWidgets:5,mapComponentId:1,pasteEnabled:5,showCopyPasteActions:5,allowedPasteLayerIds:0,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_activeFeatureCreationCount:16,_createAndBackBtnDisabled:16,_translations:16}}static{this.styles=B}static{this.shadowRootOptions=C}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await y(this.mapView,t):void 0,await this._resetPasteWorkflow()}async mapChanged(e){await this._resetPasteWorkflow()}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async _copyFeatures(e){if(!this._pasteComponent.value)return;let t=e.detail.featuresIds,a=this.layerOrTable,o=await d(t,a,[],!0,this.mapView?.spatialReference),i=[];o.forEach(r=>{let l={layer:r.layer,graphic:r,type:"feature"};i.push(l)}),this._pasteComponent.value.clipboard.setData(i),this.featuresCopied.emit(),this.requestUpdate()}async _pasteFeatures(e){if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{this._pasteComponent.value.closed=!1,await this._pasteComponent.value.showClipboardItems(!0),this.layerOrTable?.isTable||await this._pasteComponent.value.startMoveClipboard(!0),this.featuresPasted.emit()}catch(t){console.error("Paste failed:",t)}}_getLayerPermissionsCheck(){let e=this.allowedPasteLayerIds?.length>0?this.allowedPasteLayerIds.map(String):this.layerOrTable?.id!==void 0?[String(this.layerOrTable.id)]:[],t=new Set(e);return{canCreate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsAdd,canUpdate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsUpdate}}async _resetPasteWorkflow(){if(this._pasteComponent.value)try{await this._pasteComponent.value.showClipboardItems(!1),await this._pasteComponent.value.cancelMoveClipboard()}catch(e){console.error("Reset paste workflow failed:",e)}finally{this._pasteComponent.value.closed=!0}}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}disconnectedCallback(){super.disconnectedCallback(),this._clipboardWatchHandle?.remove(),this._clipboardWatchHandle=void 0}render(){let e=(this._pasteComponent.value?.closed||!this.showCopyPasteActions)&&this._graphics?.length>0,t=this._pasteComponent.value?.closed?"display-none":"",a=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",o=this._graphics?.length>0||this._showCreateFeatureComponent||!this._pasteComponent.value?.closed&&this.showCopyPasteActions?"display-none":"",i=this.layerOrTable?.isTable,r=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,l=this.enableCreateFeatures&&this.layerOrTable?.editingEnabled&&this.layerOrTable?.capabilities?.operations?.supportsAdd,u=this.createBtnLabel?this.createBtnLabel:i?this._translations.createRecord:this._translations.createFeature,F=!this.layerOrTable,v=this.enableSnapping&&!this.layerOrTable?.isTable,$=this.layerOrTable?.isTable?["paste"]:["paste","paste-as"],k=!this.layerOrTable?.isTable;return s`<calcite-panel><div class="overflow-auto height-full">${e&&s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${v} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>`||""}<calcite-shell class=${`position-relative ${o}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${r}</div></calcite-notice></div>${!this.isMobile&&l&&s`<calcite-button .disabled=${F} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${u}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${u}><calcite-action class="back-button hydrated" .disabled=${this._createAndBackBtnDisabled} icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&s`<calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._createAndBackBtnDisabled} @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount>1?this._translations.createMultiple.replace("{{n}}",String(this._activeFeatureCreationCount)):this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions&&s`<calcite-panel class=${w(t)}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${()=>{this._resetPasteWorkflow()}} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${$} .view=${this.mapView} ${c(this._pasteComponent)}>${k&&s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>`||""}</arcgis-paste></calcite-panel>`||""}</div></calcite-panel>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return s`<div>${this._showCreateFeatureComponent&&s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${t=>{this._activeFeatureCreationCount=t.detail,this._showSubmitBtn=this._activeFeatureCreationCount>0}} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${t=>{this._showSubmitBtn=!t.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible===!1} ${c(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await d(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,a)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(a.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this._handleCreateAndBackBtn(!1),this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeatureEditor&&await this._validateActiveEdits()&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit(),this._showSubmitBtn=!1,this._handleCreateAndBackBtn(!1))}async _validateActiveEdits(){let e=!0;if(this._createFeatureEditor&&this._hasPendingEdits()){let t=!1;try{this._handleCreateAndBackBtn(!0),this._createFeatureEditor.activeWorkflow&&await this._createFeatureEditor.activeWorkflow.cancel({force:!1})}catch(a){t=a?.name==="workflow:cancel-denied"}t&&(this._handleCreateAndBackBtn(!1),e=!1)}return e}_hasPendingEdits(){return this._createFeatureEditor?.activeWorkflow?.hasPendingEdits}_featureCreated(){this._showSubmitBtn=!1,this._isFeatureCreated=!0}};b("card-manager",p);return p},"core/reactiveUtils",a,d)
|
|
2
|
+
import d from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as g}from"./VSRNGZ43.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b}from"./ZB5UCRCG.js";import{F as h,G as c,H as _,J as w,h as m,i as s,q as n,u as C}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([f,{b:d},{d:y}])=>{var B=m`@layer{:host{display:block!important}.display-none{display:none}.padding-1{padding:1rem}.position-relative{position:relative}.overflow-auto{overflow:auto}.height-full{height:100%}.paste-component{--arcgis-paste-height: 100%;--arcgis-paste-width: 100%;height:100%;width:100%}.position-static{position:static!important}.z-index-500{z-index:500!important}.margin-top-10{margin-top:10px}card-manager{display:block}}`,p=class extends _{constructor(){super(),this.customInfoText="",this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=!1,this.zoomAndScrollToSelected=!1,this.selectedFeaturesIds=[],this.enableCreateFeatures=!0,this.createBtnLabel="",this.selectingFeatureFromMap=!1,this.showSketchWidgets=!1,this.mapComponentId="",this.pasteEnabled=!1,this.showCopyPasteActions=!1,this.allowedPasteLayerIds=[],this._cardLoading=!1,this._graphics=[],this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._activeFeatureCreationCount=1,this._createAndBackBtnDisabled=!1,this._translations=g({name:"card-manager",blocking:!0}),this._isFeatureCreated=!1,this._createFeature=h(),this._pasteComponent=h(),this.createWorkFlowStarted=n(),this.backFromCreateWorkFlow=n(),this.featuresCopied=n(),this.featuresPasted=n(),this.disablePaste=n(),this._handleCreateAndBackBtn=e=>{this._createFeatureEditor&&(this._createAndBackBtnDisabled=e)},this._featuresAdded=()=>{this._pasteComponent.value&&this._resetPasteWorkflow()},this._initCreateComponent=()=>{this._isFeatureCreated=!1,this._handleCreateAndBackBtn(!1),this._showCreateFeatureComponent=!0},this._createFeatureEditorInitialized=e=>{this._createFeatureEditor=e.detail},this._createFeatureEditorClosed=()=>{this._createFeatureEditor=void 0},this._pasteComponentReady=async()=>{let e=this._pasteComponent.value;if(e&&this.mapComponentId&&e.referenceElement===void 0){let t=document.getElementById(this.mapComponentId);await t.viewOnReady(),e.referenceElement=t}e&&!this._clipboardWatchHandle&&(this._clipboardWatchHandle=f.watch(()=>e.clipboard.hasItems,t=>{t||this.disablePaste.emit()}))},this._applyPasteCommand=async e=>{let t=new Promise((a,o)=>{if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available."),a();return}try{e.detail.applySet?this._pasteComponent.value.writeChanges(e.detail.applySet).then(()=>{this._resetPasteWorkflow(),a()}).catch(i=>{console.log(i),o(i)}):a()}catch(i){o(i),console.error("Paste failed:",i)}});e.detail.completionCallback=t},this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"copyFeatures",this._copyFeatures),this.listenOn(window,"pasteFeatures",this._pasteFeatures),this.listenOn(window,"featuresAdded",this._featuresAdded),this.listenOn(window,"initCreateComponent",this._initCreateComponent),this.listenOn(window,"createFeatureEditorInitialized",this._createFeatureEditorInitialized),this.listenOn(window,"createFeatureEditorClosed",this._createFeatureEditorClosed),this.listenOn(window,"continueEditing",()=>this._handleCreateAndBackBtn(!1)),this.listenOn(window,"beforeLayerSelectionChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeMapInfoChange",()=>this._handleCreateAndBackBtn(!0)),this.listenOn(window,"beforeFeatureSelectionChange",()=>this._handleCreateAndBackBtn(!0))}static{this.properties={customInfoText:1,enableEditGeometry:5,enableSnapping:5,isMobile:5,layerOrTable:0,mapView:0,zoomAndScrollToSelected:5,selectedFeaturesIds:0,enableCreateFeatures:5,createBtnLabel:1,selectingFeatureFromMap:5,showSketchWidgets:5,mapComponentId:1,pasteEnabled:5,showCopyPasteActions:5,allowedPasteLayerIds:0,_cardLoading:16,_graphics:16,_showCreateFeatureComponent:16,_showSubmitBtn:16,_activeFeatureCreationCount:16,_createAndBackBtnDisabled:16,_translations:16}}static{this.styles=B}static{this.shadowRootOptions=C}async featureSelectionChange(e){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();let t=e.detail;this._graphics=await this._getFeaturesByIds(t)}async layerSelectionChange(e){this._showCreateFeatureComponent&&this._backFromCreateFeature();let t=e.detail[0];this.layerOrTable=this.mapView?await y(this.mapView,t):void 0,await this._resetPasteWorkflow()}async mapChanged(e){await this._resetPasteWorkflow()}async relatedRecordToggled(e){let t=e.detail;this.layerOrTable=t}async _copyFeatures(e){if(!this._pasteComponent.value)return;let t=e.detail.featuresIds,a=this.layerOrTable,o=await d(t,a,[],!0,this.mapView?.spatialReference),i=[];o.forEach(r=>{let l={layer:r.layer,graphic:r,type:"feature"};i.push(l)}),this._pasteComponent.value.clipboard.setData(i),this.featuresCopied.emit(),this.requestUpdate()}async _pasteFeatures(e){if(!this._pasteComponent.value){console.error("Paste failed: paste component is not available.");return}try{this._pasteComponent.value.closed=!1,await this._pasteComponent.value.showClipboardItems(!0),this.layerOrTable?.isTable||await this._pasteComponent.value.startMoveClipboard(!0),this.featuresPasted.emit()}catch(t){console.error("Paste failed:",t)}}_getLayerPermissionsCheck(){let e=this.allowedPasteLayerIds?.length>0?this.allowedPasteLayerIds.map(String):this.layerOrTable?.id!==void 0?[String(this.layerOrTable.id)]:[],t=new Set(e);return{canCreate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsAdd,canUpdate:a=>t.has(String(a.id))&&a.editingEnabled&&a.capabilities?.operations?.supportsUpdate}}async _resetPasteWorkflow(){if(this._pasteComponent.value)try{await this._pasteComponent.value.showClipboardItems(!1),await this._pasteComponent.value.cancelMoveClipboard()}catch(e){console.error("Reset paste workflow failed:",e)}finally{this._pasteComponent.value.closed=!0}}async load(){this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}disconnectedCallback(){super.disconnectedCallback(),this._clipboardWatchHandle?.remove(),this._clipboardWatchHandle=void 0}render(){let e=(this._pasteComponent.value?.closed||!this.showCopyPasteActions)&&this._graphics?.length>0,t=this._pasteComponent.value?.closed?"display-none":"",a=this._graphics?.length===0&&this._showCreateFeatureComponent?"":"display-none",o=this._graphics?.length>0||this._showCreateFeatureComponent||!this._pasteComponent.value?.closed&&this.showCopyPasteActions?"display-none":"",i=this.layerOrTable?.isTable,r=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,l=this.enableCreateFeatures&&this.layerOrTable?.editingEnabled&&this.layerOrTable?.capabilities?.operations?.supportsAdd,u=this.createBtnLabel?this.createBtnLabel:i?this._translations.createRecord:this._translations.createFeature,F=!this.layerOrTable,v=this.enableSnapping&&!this.layerOrTable?.isTable,$=this.layerOrTable?.isTable?["paste"]:["paste","paste-as"],k=!this.layerOrTable?.isTable;return s`<calcite-panel><div class="overflow-auto height-full">${e&&s`<calcite-shell class=${"position-relative"}><div class="position-static z-index-500 height-full"><info-card .allowEditing=${this.layerOrTable?.editingEnabled} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${v} .graphics=${this._graphics.reverse()} .isLoading=${this._cardLoading} .isMobile=${this.isMobile} .mapView=${this.mapView} .featuresReferenceId=${this.mapComponentId} position=relative .pasteEnabled=${this.pasteEnabled} show-close-btn .showCopyPasteActions=${this.showCopyPasteActions}></info-card></div></calcite-shell>`||""}<calcite-shell class=${`position-relative ${o}`}><calcite-panel><div class=padding-1><calcite-notice .icon=${this.selectingFeatureFromMap?"map":"table"} icon-flip-rtl open><div slot=message>${r}</div></calcite-notice></div>${!this.isMobile&&l&&s`<calcite-button .disabled=${F} @click=${()=>this._createFeatureBtnClicked()} slot=footer width=full>${u}</calcite-button>`||""}</calcite-panel></calcite-shell><calcite-shell class=${`position-relative ${a}`}><calcite-flow-item selected><calcite-panel .heading=${u}><calcite-action class="back-button hydrated" .disabled=${this._createAndBackBtnDisabled} icon=chevron-left @click=${this._backFromCreateFeature} scale=s slot=header-actions-start .text=${this._translations.back}></calcite-action>${this.getEditorComponent()}${this._showSubmitBtn&&s`<calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._createAndBackBtnDisabled} @click=${()=>this._createFeature.value&&void this._createFeature.value.submit()} slot=footer width=full>${this._activeFeatureCreationCount>1?this._translations.createMultiple.replace("{{n}}",String(this._activeFeatureCreationCount)):this._translations.create}</calcite-button>`||""}</calcite-panel></calcite-flow-item></calcite-shell>${this.showCopyPasteActions&&s`<calcite-panel class=${w(t)}><arcgis-paste always-show-feature-form class=${`paste-component ${t}`} closed @arcgisReady=${this._pasteComponentReady} @arcgisApplyPasteCommand=${this._applyPasteCommand} @arcgisClose=${()=>{this._resetPasteWorkflow()}} paste-with-multiple-layers-enabled paste-with-multiple-features-enabled .layerPermissionsCheck=${this._getLayerPermissionsCheck()} .supportedCommands=${$} .view=${this.mapView} ${c(this._pasteComponent)}>${k&&s`<calcite-notice slot=commands-page-message class="margin-top-10" open icon=move><div slot=message>${this._translations.moveClipboardFeatures}</div></calcite-notice>`||""}</arcgis-paste></calcite-panel>`||""}</div></calcite-panel>`}getEditorComponent(){let e=this.enableSnapping&&!this.layerOrTable?.isTable&&this.enableCreateFeatures;return s`<div>${this._showCreateFeatureComponent&&s`<create-feature allow-multiple-creation customize-submit .enableSnapping=${e} .mapView=${this.mapView} .isMobile=${this.isMobile} @activeFeatureCountChange=${t=>{this._activeFeatureCreationCount=t.detail,this._showSubmitBtn=this._activeFeatureCreationCount>0}} @drawComplete=${()=>{this._showSubmitBtn=!0}} @editingAttachment=${t=>{this._showSubmitBtn=!t.detail}} @progressStatus=${()=>{setTimeout(()=>{this._isFeatureCreated=!1},2e3)}} @success=${this._featureCreated} .showSketchWidgets=${this.showSketchWidgets} .selectedLayerId=${this.layerOrTable?.id} show-guiding-msg .showLayerVisibilityMsg=${this.layerOrTable?.visible===!1} ${c(this._createFeature)}></create-feature>`||""}</div>`}async _getFeaturesByIds(e){return(e.length>0&&this.layerOrTable&&this.mapView?await d(e,this.layerOrTable,[],!0,this.mapView?.spatialReference):[]).sort((t,a)=>e.indexOf(Number(t.getObjectId()))-e.indexOf(Number(a.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this._handleCreateAndBackBtn(!1),this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeatureEditor&&await this._validateActiveEdits()&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit(),this._showSubmitBtn=!1,this._handleCreateAndBackBtn(!1))}async _validateActiveEdits(){let e=!0;if(this._createFeatureEditor&&this._hasPendingEdits()){let t=!1;try{this._handleCreateAndBackBtn(!0),this._createFeatureEditor.activeWorkflow&&await this._createFeatureEditor.activeWorkflow.cancel({force:!1})}catch(a){t=a?.name==="workflow:cancel-denied"}t&&(this._handleCreateAndBackBtn(!1),e=!1)}return e}_hasPendingEdits(){return this._createFeatureEditor?.activeWorkflow?.hasPendingEdits}_featureCreated(){this._showSubmitBtn=!1,this._isFeatureCreated=!0}};b("card-manager",p);return p},"core/reactiveUtils",a,d)
|