dz_sjzx 2.0.0-20251114t → 2.0.0-20260128t
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/index.css +1 -1
- package/index.umd.min.16.js +13 -0
- package/index.umd.min.162.js +1 -0
- package/index.umd.min.183.js +18 -0
- package/index.umd.min.234.js +1 -1
- package/index.umd.min.33.js +19 -0
- package/index.umd.min.547.js +47 -0
- package/index.umd.min.560.js +19 -0
- package/index.umd.min.579.js +31 -0
- package/index.umd.min.629.js +1 -0
- package/index.umd.min.630.js +1 -1
- package/index.umd.min.711.js +31 -0
- package/index.umd.min.769.js +25 -0
- package/index.umd.min.825.js +1 -0
- package/index.umd.min.831.js +1 -0
- package/index.umd.min.966.js +25 -0
- package/index.umd.min.js +79 -79
- package/package.json +2 -4
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";(("undefined"!==typeof self?self:this)["webpackChunkindex"]=("undefined"!==typeof self?self:this)["webpackChunkindex"]||[]).push([[966],{10966:function(e,t,r){r.r(t),r.d(t,{default:function(){return Vi}});var n=r(4395),s=(r(44114),r(16573),r(78100),r(77936),r(18111),r(22489),r(7588),r(61701),r(13579),r(33110),r(79577),r(58335),r(41549),r(49797),r(49631),r(35623),r(40399)),i=r(61768),o=r(90195),a=r(18244),l=r(87890),c=r(29245),d=r(39834);class h{constructor(){this._emitter=new h.EventEmitter(this)}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}}!function(e){class t{constructor(e=null){this._target=e,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(e,t){let r=this._listenersMap?.get(e);if(!r)return!1;const n=this._target||this;let s=!1;for(const i of r.slice()){const e="deref"in i?i.deref():i;e?e?.call(n,t):s=!0}return s&&(r=r.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,r)),r.length>0}on(e,t){if(Array.isArray(e)){const r=e.map(e=>this.on(e,t));return(0,c.vE)(r)}if(e.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;const r=this._listenersMap.get(e)||[];return r.push(t),this._listenersMap.set(e,r),(0,c.hA)(()=>{const r=this._listenersMap?.get(e),n=r?.indexOf(t)??-1;n>=0&&r.splice(n,1)})}once(e,t){const r=this.on(e,e=>{r.remove();const n="deref"in t?t.deref():t;n?.call(null,e)});return r}hasEventListener(e){const t=this._listenersMap?.get(e);return null!=t&&t.length>0}}e.EventEmitter=t,e.EventedMixin=e=>{let r=class extends e{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};return r=(0,s._)([(0,d.$)("esri.core.Evented")],r),r};let r=class extends l.A{constructor(){super(...arguments),this._emitter=new h.EventEmitter(this)}destroy(){this._emitter.clear()}emit(e,t){return this._emitter.emit(e,t)}on(e,t){return this._emitter.on(e,t)}once(e,t){return this._emitter.once(e,t)}hasEventListener(e){return this._emitter.hasEventListener(e)}};r=(0,s._)([(0,d.$)("esri.core.Evented")],r),e.EventedAccessor=r}(h||(h={}));const u=h;var p=r(65765),m=r(66175),f=r(3243),g=r(44268),v=r(89387),y=r(36861),_=(r(9302),r(8660)),$=(r(20116),r(2914));let w,b;const S=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;function A(){return S??globalThis.navigator?.language??"en"}function T(){return void 0===b&&(b=A()),b}const k=[];function x(e){return k.push(e),(0,c.hA)(()=>k.splice(k.indexOf(e),1))}const C=[];function I(e){return C.push(e),(0,c.hA)(()=>k.splice(C.indexOf(e),1))}function E(){const e=w??A();b!==e&&(b=e,[...C].forEach(t=>{t.call(null,e)}),[...k].forEach(t=>{t.call(null,e)}))}globalThis.addEventListener?.("languagechange",E);new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);r(81148);class R extends Error{}class N extends R{constructor(){super("Zone is an abstract class")}}r(18237);class O{get type(){throw new N}get name(){throw new N}get ianaName(){return this.name}get isUniversal(){throw new N}offsetName(e,t){throw new N}formatOffset(e,t){throw new N}offset(e){throw new N}equals(e){throw new N}get isValid(){throw new N}}let U={};function L(e){return U[e]||(U[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),U[e]}const M={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function P(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,o,a,l,c,d]=n;return[o,s,i,a,l,c,d]}function D(e,t){const r=e.formatToParts(t),n=[];for(let s=0;s<r.length;s++){const{type:e,value:t}=r[s],i=M[e];"era"===e?n[i]=t:B(i)||(n[i]=parseInt(t,10))}return n}let j={};class z extends O{static create(e){return j[e]||(j[e]=new z(e)),j[e]}static resetCache(){j={},U={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}}constructor(e){super(),this.zoneName=e,this.valid=z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return G(e,t,r,this.name)}formatOffset(e,t){return Y(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=L(this.name);let[n,s,i,o,a,l,c]=r.formatToParts?D(r,t):P(r,t);"BC"===o&&(n=1-Math.abs(n));const d=24===a?0:a,h=W({year:n,month:s,day:i,hour:d,minute:l,second:c,millisecond:0});let u=+t;const p=u%1e3;return u-=p>=0?p:1e3+p,(h-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let F=null;class V extends O{static get utcInstance(){return null===F&&(F=new V(0)),F}static instance(e){return 0===e?V.utcInstance:new V(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new V(J(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Y(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Y(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Y(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}function B(e){return"undefined"===typeof e}function q(e,t=2){const r=e<0;let n;return n=r?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function H(e){return B(e)||null===e||""===e?void 0:parseInt(e,10)}function Z(e){if(!B(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function W(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function G(e,t,r,n=null){const s=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o={timeZoneName:t,...i},a=new Intl.DateTimeFormat(r,o).formatToParts(s).find(e=>"timezonename"===e.type.toLowerCase());return a?a.value:null}function J(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0,s=r<0||Object.is(r,-0)?-n:n;return 60*r+s}function Y(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${q(r,2)}:${q(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${q(r,2)}${q(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}const K=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function X(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function Q(...e){return t=>e.reduce(([e,r,n],s)=>{const[i,o,a]=s(t,n);return[{...e,...i},o||r,a]},[{},null,1]).slice(0,2)}function ee(...e){return(t,r)=>{const n={};let s;for(s=0;s<e.length;s++)n[e[s]]=H(t[r+s]);return[n,null,r+s]}}const te=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,re=`(?:${te.source}?(?:\\[(${K.source})\\])?)?`,ne=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,se=RegExp(`${ne.source}${re}`),ie=RegExp(`(?:T${se.source})?`),oe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ae=/(\d{4})-?W(\d\d)(?:-?(\d))?/,le=/(\d{4})-?(\d{3})/,ce=ee("weekYear","weekNumber","weekDay"),de=ee("year","ordinal"),he=/(\d{4})-(\d\d)-(\d\d)/,ue=RegExp(`${ne.source} ?(?:${te.source}|(${K.source}))?`),pe=RegExp(`(?: ${ue.source})?`);function me(e,t,r){const n=e[t];return B(n)?r:H(n)}function fe(e,t){const r={year:me(e,t),month:me(e,t+1,1),day:me(e,t+2,1)};return[r,null,t+3]}function ge(e,t){const r={hours:me(e,t,0),minutes:me(e,t+1,0),seconds:me(e,t+2,0),milliseconds:Z(e[t+3])};return[r,null,t+4]}function ve(e,t){const r=!e[t]&&!e[t+1],n=J(e[t+1],e[t+2]),s=r?null:V.instance(n);return[{},s,t+3]}function ye(e,t){const r=e[t]?z.create(e[t]):null;return[{},r,t+1]}RegExp(`^T?${ne.source}$`);X(oe,ie),X(ae,ie),X(le,ie),X(se),Q(fe,ge,ve,ye),Q(ce,ge,ve,ye),Q(de,ge,ve,ye),Q(ge,ve,ye);Q(ge);X(he,pe),X(ue),Q(ge,ve,ye);const _e={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},$e=365.2425,we=30.436875,be=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];be.slice(0).reverse();Symbol.for("nodejs.util.inspect.custom");Symbol.for("nodejs.util.inspect.custom");const Se={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};Se.hanidec.replace(/[\[|\]]/g,"").split("");const Ae=String.fromCharCode(160),Te=`[ ${Ae}]`;new RegExp(Te,"g");Symbol.for("nodejs.util.inspect.custom");const ke="system",xe="unknown",Ce="UTC",Ie=Intl.DateTimeFormat().resolvedOptions().timeZone;const Ee={year:"numeric",month:"numeric",day:"numeric"},Re={year:"numeric",month:"long",day:"numeric"},Ne={year:"numeric",month:"short",day:"numeric"},Oe={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ue={hour:"numeric",minute:"numeric"},Le={...Ue,second:"numeric"},Me={hourCycle:"h23"},Pe={...Ue,...Me},De={...Le,...Me},je={"short-date":Ee,"short-date-short-time":{...Ee,...Ue},"short-date-short-time-24":{...Ee,...Pe},"short-date-long-time":{...Ee,...Le},"short-date-long-time-24":{...Ee,...De},"short-date-le":Ee,"short-date-le-short-time":{...Ee,...Ue},"short-date-le-short-time-24":{...Ee,...Pe},"short-date-le-long-time":{...Ee,...Le},"short-date-le-long-time-24":{...Ee,...De},"long-month-day-year":Re,"long-month-day-year-short-time":{...Re,...Ue},"long-month-day-year-short-time-24":{...Re,...Pe},"long-month-day-year-long-time":{...Re,...Le},"long-month-day-year-long-time-24":{...Re,...De},"day-short-month-year":Ne,"day-short-month-year-short-time":{...Ne,...Ue},"day-short-month-year-short-time-24":{...Ne,...Pe},"day-short-month-year-long-time":{...Ne,...Le},"day-short-month-year-long-time-24":{...Ne,...De},"long-date":Oe,"long-date-short-time":{...Oe,...Ue},"long-date-short-time-24":{...Oe,...Pe},"long-date-long-time":{...Oe,...Le},"long-date-long-time-24":{...Oe,...De},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ue,"long-time":Le},ze=((0,$.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),{ar:"ar-u-nu-latn-ca-gregory"});let Fe=new WeakMap;const Ve=je["short-date-short-time"];function Be(e){let t=Fe.get(e);if(!t){const r=T(),n=ze[r]||r,s=He(e.timeZone??ke),i={...e,timeZone:s};t=new Intl.DateTimeFormat(n,i),Fe.set(e,t)}return t}function qe(e,t=Ve){return Be(t).format(e)}function He(e){switch(e){case ke:return Ie;case xe:return Ce;default:return e}}I(()=>{Fe=new WeakMap});const Ze={ar:"ar-u-nu-latn"};let We=new WeakMap,Ge={};function Je(e){const t=e||Ge;if(!We.has(t)){const r=T(),n=Ze[T()]||r;We.set(t,new Intl.NumberFormat(n,e))}return We.get(t)}function Ye(e,t){return Object.is(e,-0)&&(e=0),Je(t).format(e)}I(()=>{We=new WeakMap,Ge={}});var Ke=r(45557);const Xe=()=>_.A.getLogger("esri.intl.substitute");function Qe(e,t,r={}){const{format:n={}}=r;return(0,Ke.HC)(e,e=>et(e,t,n))}function et(e,t,r){let n,s;const i=e.indexOf(":");if(-1===i?n=e.trim():(n=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!n)return"";const o=(0,f.wc)(n,t);if(null==o)return"";const a=(s?r?.[s]:null)??r?.[n];return a?tt(o,a):s?rt(o,s):nt(o)}function tt(e,t){switch(t.type){case"date":return qe(e,t.intlOptions);case"number":return Ye(e,t.intlOptions);default:return Xe().warn("missing format descriptor for key {key}"),nt(e)}}function rt(e,t){switch(t.toLowerCase()){case"dateformat":return qe(e);case"numberformat":return Ye(e);default:return Xe().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?qe(e):/^numberformat/i.test(t)?Ye(e):nt(e)}}function nt(e){switch(typeof e){case"string":return e;case"number":return Ye(e);case"boolean":return""+e;default:return e instanceof Date?qe(e):""}}const st=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,it={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function ot(e){return e in it}const at=[],lt=new Map;function ct(e){for(const t of lt.keys())mt(e.pattern,t)&<.delete(t)}function dt(e){return at.includes(e)||(ct(e),at.unshift(e)),(0,c.hA)(()=>{const t=at.indexOf(e);t>-1&&(at.splice(t,1),ct(e))})}async function ht(e){const t=T();lt.has(e)||lt.set(e,pt(e,t));const r=lt.get(e);return r&&await ft.add(r),r}function ut(e){if(!st.test(e))return null;const t=st.exec(e);if(null===t)return null;const[,r,n]=t,s=r+(n?"-"+n.toUpperCase():"");return ot(s)?s:ot(r)?r:null}async function pt(e,t){const r=[];for(const s of at)if(mt(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(n){r.push(n)}if(r.length)throw new a.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new a.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function mt(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}I(()=>{lt.clear()});const ft=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,g.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}};r(14603),r(47566),r(98721);async function gt(e,t,r,n){const s=t.exec(r);if(!s)throw new a.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const i=s[1]?`${s[1]}/`:"",o=s[2],l=ut(n),c=`${i}${o}.json`,d=l?`${i}${o}_${l}.json`:c;let h;try{h=await vt(e(d))}catch(u){if(d===c)throw new a.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:u});try{h=await vt(e(c))}catch(u){throw new a.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:u})}}return h}async function vt(e){if(null!=$t.fetchBundleAsset)return $t.fetchBundleAsset(e);const t=await(0,o.A)(e,{responseType:"text"});return JSON.parse(t.data)}class yt{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let n;n="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=n,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return gt(this.getAssetUrl,this.matcher,e,t)}}function _t(e){return new yt(e)}const $t={};var wt=r(47771);dt(_t({pattern:"esri/",location:wt.s}));r(95753);var bt=r(27233);function St(e){return"string"==typeof e?document.getElementById(e):e??null}Element.prototype.closest;var At,Tt=r(50942);!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(At||(At={}));class kt{constructor(){this._resolver=(0,g.Tw)(),this._status=At.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=At.RESOLVED,this._cleanUp()},()=>{this._status=At.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===At.RESOLVED}isRejected(){return this._status===At.REJECTED}isFulfilled(){return this._status!==At.PENDING}abort(){this._resolver.reject((0,g.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const e=(0,g.Tw)(),t=[...this._resolvingPromises,e.promise],r=this._allPromise=Promise.all(t);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},e=>{this.isFulfilled()||this._allPromise!==r||(0,g.zf)(e)||this._resolver.reject(e)}),e.resolve()}}const xt=e=>{let t=class extends e{constructor(...e){super(...e),this._promiseProps=new kt,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(e,t){return this._promiseProps.promise.then(()=>this).then(e,t)}catch(e){return this.when(null,e)}addResolvingPromise(e){e&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in e?e.when():e)}};return t=(0,s._)([(0,d.$)("esri.core.Promise")],t),t};let Ct=class extends(xt(l.A)){};function It(e){return{ok:!0,value:e}}function Et(e){return{ok:!1,error:e}}function Rt(e){return null!=e&&!0===e.ok?e.value:null}function Nt(e){return null!=e&&!1===e.ok?e.error:null}Ct=(0,s._)([(0,d.$)("esri.core.Promise")],Ct);let Ot=class extends l.A{get value(){return Rt(this._result)}get error(){return Nt(this._result)}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,Tt.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=It(e),this._cleanup()},e=>{this._result=Et(e),this._cleanup()}),this._abortHandle=(0,g.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,Tt.xt)(this._abortHandle),this._abortController=null}};(0,s._)([(0,y.MZ)()],Ot.prototype,"value",null),(0,s._)([(0,y.MZ)()],Ot.prototype,"error",null),(0,s._)([(0,y.MZ)()],Ot.prototype,"finished",null),(0,s._)([(0,y.MZ)()],Ot.prototype,"promise",void 0),(0,s._)([(0,y.MZ)()],Ot.prototype,"_result",void 0),Ot=(0,s._)([(0,d.$)("esri.core.asyncUtils.ReactiveTask")],Ot);r(61806),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);var Ut,Lt=r(21573),Mt=r(49125);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(Ut||(Ut={}));var Pt=r(99040),Dt=r(88765),jt=r(54822);function zt(e){return(t,r)=>{t[r]=e}}var Ft,Vt=r(75406);class Bt extends Vt.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}class qt{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class Ht{constructor(e,t,r,n,s){this.target=e,this.added=t,this.removed=r,this.start=n,this.deleteCount=s}}const Zt=new Mt.A(qt,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function Wt(e){return e?e instanceof rr?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function Gt(e){if(e?.length)return e[0]}function Jt(e,t,r,n){const s=Math.min(e.length-r,t.length-n);let i=0;for(;i<s&&e[r+i]===t[n+i];)i++;return i}function Yt(e,t,r,n){t&&t.forEach((t,s,i)=>{e.push(t),Yt(e,r.call(n,t,s,i),r,n)})}const Kt=new Set,Xt=new Set,Qt=new Set,er=new Map;let tr=0,rr=Ft=class extends u.EventedAccessor{static isCollection(e){return null!=e&&e instanceof Ft}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Bt,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:tr++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Ft?{items:e}:e:{}}destroy(){this._removeAllRaw()}*[Symbol.iterator](){yield*this.items}get items(){return(0,jt.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(Ut.ADD)||(this._splice(0,this.length,Wt(e)),this._emitAfterChanges(Ut.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,c.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return this._emitter.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,n=this.on(e,e=>{r()?.call(null,e),n.remove()});return n}add(e,t){if((0,jt.gc)(this._observable),this._emitBeforeChanges(Ut.ADD))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(Ut.ADD),this}addMany(e,t=this._items.length){if((0,jt.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(Ut.ADD))return this;const r=this.getNextIndex(t);return this._splice(r,0,Wt(e)),this._emitAfterChanges(Ut.ADD),this}at(e){if((0,jt.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,jt.gc)(this._observable),!this.length||this._emitBeforeChanges(Ut.REMOVE))return[];const e=this._removeAllRaw();return this._emitAfterChanges(Ut.REMOVE),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,jt.gc)(this._observable),this._createNewInstance({items:this._items.map(m.o8)})}concat(...e){(0,jt.gc)(this._observable);const t=e.map(Wt);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,jt.gc)(this._observable),!this.length||this._emitBeforeChanges(Ut.REMOVE))return;const r=this._splice(0,this.length),n=r.length;for(let s=0;s<n;s++)e.call(t,r[s],s,r);this._emitAfterChanges(Ut.REMOVE)}every(e,t){return(0,jt.gc)(this._observable),this._items.every(e,t)}filter(e,t){let r;return(0,jt.gc)(this._observable),r=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return(0,jt.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,jt.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,jt.gc)(this._observable);const r=[];return Yt(r,this,e,t),new Ft(r)}forEach(e,t){return(0,jt.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,jt.gc)(this._observable),this._items[e]}getNextIndex(e){(0,jt.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,jt.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,jt.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,jt.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,jt.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,jt.gc)(this._observable);const r=this._items.map(e,t);return new Ft({items:r})}reorder(e,t=this.length-1){(0,jt.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(Ut.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(Ut.MOVE)}return e}}pop(){if((0,jt.gc)(this._observable),!this.length||this._emitBeforeChanges(Ut.REMOVE))return;const e=Gt(this._splice(this.length-1,1));return this._emitAfterChanges(Ut.REMOVE),e}push(...e){return(0,jt.gc)(this._observable),this._emitBeforeChanges(Ut.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(Ut.ADD)),this.length}reduce(e,t){(0,jt.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,jt.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,jt.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,jt.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(Ut.REMOVE))return;const t=Gt(this._splice(e,1));return this._emitAfterChanges(Ut.REMOVE),t}removeMany(e){if((0,jt.gc)(this._observable),!e?.length||this._emitBeforeChanges(Ut.REMOVE))return[];const t=e instanceof Ft?e.toArray():e,r=this._items,n=[],s=t.length;for(let i=0;i<s;i++){const e=t[i],s=r.indexOf(e);if(s>-1){const e=1+Jt(t,r,i+1,s+1),o=this._splice(s,e);o&&o.length>0&&n.push.apply(n,o),i+=e-1}}return this._emitAfterChanges(Ut.REMOVE),n}reverse(){if((0,jt.gc)(this._observable),this._emitBeforeChanges(Ut.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(Ut.MOVE),this}shift(){if((0,jt.gc)(this._observable),!this.length||this._emitBeforeChanges(Ut.REMOVE))return;const e=Gt(this._splice(0,1));return this._emitAfterChanges(Ut.REMOVE),e}slice(e=0,t=this.length){return(0,jt.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,jt.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,jt.gc)(this._observable),!this.length||this._emitBeforeChanges(Ut.MOVE))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(Ut.MOVE),this}splice(e,t,...r){(0,jt.gc)(this._observable);const n=(t?Ut.REMOVE:0)|(r.length?Ut.ADD:0);if(this._emitBeforeChanges(n))return[];const s=this._splice(e,t,r)||[];return this._emitAfterChanges(n),s}toArray(){return(0,jt.gc)(this._observable),this._items.slice()}toJSON(){return(0,jt.gc)(this._observable),this.toArray()}toLocaleString(){return(0,jt.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,jt.gc)(this._observable),this._items.toString()}unshift(...e){return(0,jt.gc)(this._observable),!e.length||this._emitBeforeChanges(Ut.ADD)||(this._splice(0,0,e),this._emitAfterChanges(Ut.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const n=this._items,s=this.itemType;let i,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,Pt._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=n.splice(e,t),this.hasEventListener("before-remove")){const t=Zt.acquire();t.target=this,t.cancellable=!0;for(let r=0,s=o.length;r<s;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),n.splice(e,0,i),e+=1,r-=1,s-=1);Zt.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=Zt.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);Zt.release(e)}}if(r?.length){if(s){const e=[];for(const t of r){const r=s.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),o=e===this.length;if(t||i){const s=Zt.acquire();s.target=this,s.cancellable=!0;const a=Zt.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),i&&(a.reset(l),this.emit("after-add",a)))):(o?n.push(l):n.splice(e++,0,l),this._set("length",n.length),a.reset(l),this.emit("after-add",a));Zt.release(a),Zt.release(s)}else{if(o)for(const e of r)n.push(e);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||o?.length)&&this._notifyChangeEvent(r,o),this.hasEventListener("after-splice")){const n=new Ht(this,r,o,e,t);this.emit("after-splice",n)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=Zt.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Zt.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=Zt.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Zt.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;Kt.clear(),Xt.clear(),Qt.clear();for(const{added:t,removed:a}of e){if(t)if(0===Qt.size&&0===Xt.size)for(const e of t)Kt.add(e);else for(const e of t)Xt.has(e)?(Qt.add(e),Xt.delete(e)):Qt.has(e)||Kt.add(e);if(a)if(0===Qt.size&&0===Kt.size)for(const e of a)Xt.add(e);else for(const e of a)Kt.has(e)?Kt.delete(e):(Qt.delete(e),Xt.add(e))}const r=Lt.A.acquire();Kt.forEach(e=>{r.push(e)});const n=Lt.A.acquire();Xt.forEach(e=>{n.push(e)});const s=this._items,i=t.items,o=Lt.A.acquire();if(Qt.forEach(e=>{i.indexOf(e)!==s.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||n.length||o.length)){const e={target:this,added:r,removed:n,moved:o},s=t.listeners.length;for(let r=0;r<s;r++){const n=t.listeners[r];n.removed||n.callback.call(this,e)}}Lt.A.release(r),Lt.A.release(n),Lt.A.release(o)}Kt.clear(),Xt.clear(),Qt.clear()}};rr.ofType=e=>{if(!e)return Ft;if(er.has(e))return er.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const r=e.typeMap[n].prototype.declaredClass;t?t+=` | ${r}`:t=r}let r=class extends Ft{};return(0,s._)([zt({Type:e,ensureType:"function"==typeof e?(0,Dt.dp)(e):(0,Dt.aq)(e)})],r.prototype,"itemType",void 0),r=(0,s._)([(0,d.$)(`esri.core.Collection<${t}>`)],r),er.set(e,r),r},(0,s._)([(0,y.MZ)()],rr.prototype,"_updating",void 0),(0,s._)([(0,y.MZ)()],rr.prototype,"length",void 0),(0,s._)([(0,y.MZ)()],rr.prototype,"items",null),(0,s._)([(0,y.MZ)({readOnly:!0})],rr.prototype,"updating",null),rr=Ft=(0,s._)([(0,d.$)("esri.core.Collection")],rr);var nr=r(45306);r(74873);function sr(e,t,r={}){return or(e,t,r,ar)}function ir(e,t,r={}){return or(e,t,r,lr)}function or(e,t,r={},n){let s=null;const i=r.once?(e,r)=>{n(e)&&((0,Tt.xt)(s),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(s=(0,nr.Cn)(e,i,r.sync,r.equals),r.initial){const t=e();i(t,t)}return s}function ar(e){return!0}function lr(e){return!!e}const cr={sync:!0,initial:!0},dr="randomUUID"in crypto;function hr(){if(dr)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var ur=r(62163),pr=r(88303),mr=function(e){if("object"!==typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;while(null!==Object.getPrototypeOf(t))t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},fr={exports:{}},gr={},vr={exports:{}},yr={};function _r(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}function $r(e,t,r){}function wr(e,t,r){}var br=/javascript\s*\:/gim;function Sr(e,t){return br.test(t)?"":t}yr.whiteList=_r(),yr.getDefaultWhiteList=_r,yr.onAttr=$r,yr.onIgnoreAttr=wr,yr.safeAttrValue=Sr;var Ar={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,s;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,s=e.length;n<s;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Tr=Ar;function kr(e,t){e=Tr.trimRight(e),";"!==e[e.length-1]&&(e+=";");var r=e.length,n=!1,s=0,i=0,o="";function a(){if(!n){var r=Tr.trim(e.slice(s,i)),a=r.indexOf(":");if(-1!==a){var l=Tr.trim(r.slice(0,a)),c=Tr.trim(r.slice(a+1));if(l){var d=t(s,o.length,l,c,r);d&&(o+=d+"; ")}}}s=i+1}for(;i<r;i++){var l=e[i];if("/"===l&&"*"===e[i+1]){var c=e.indexOf("*/",i+2);if(-1===c)break;i=c+1,s=i+1,n=!1}else"("===l?n=!0:")"===l?n=!1:";"===l?n||a():"\n"===l&&a()}return Tr.trim(o)}var xr=kr,Cr=yr,Ir=xr;function Er(e){return void 0===e||null===e}function Rr(e){var t={};for(var r in e)t[r]=e[r];return t}function Nr(e){e=Rr(e||{}),e.whiteList=e.whiteList||Cr.whiteList,e.onAttr=e.onAttr||Cr.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Cr.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Cr.safeAttrValue,this.options=e}Nr.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,s=r.onAttr,i=r.onIgnoreAttr,o=r.safeAttrValue,a=Ir(e,function(e,t,r,a,l){var c=n[r],d=!1;if(!0===c?d=c:"function"===typeof c?d=c(a):c instanceof RegExp&&(d=c.test(a)),!0!==d&&(d=!1),a=o(r,a),a){var h={position:t,sourcePosition:e,source:l,isWhite:d};if(d){var u=s(r,a,h);return Er(u)?r+":"+a:u}u=i(r,a,h);return Er(u)?void 0:u}});return a};var Or=Nr;(function(e,t){var r=yr,n=Or;function s(e,t){var r=new n(t);return r.process(e)}for(var i in t=e.exports=s,t.FilterCSS=n,r)t[i]=r[i]})(vr,vr.exports);var Ur={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,s;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,s=e.length;n<s;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},Lr=vr.exports.FilterCSS,Mr=vr.exports.getDefaultWhiteList,Pr=Ur;function Dr(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var jr=new Lr;function zr(e,t,r){}function Fr(e,t,r){}function Vr(e,t,r){}function Br(e,t,r){}function qr(e){return e.replace(Zr,"<").replace(Wr,">")}function Hr(e,t,r,n){if(r=ln(r),"href"===t||"src"===t){if(r=Pr.trim(r),"#"===r)return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===t){if(Qr.lastIndex=0,Qr.test(r))return""}else if("style"===t){if(en.lastIndex=0,en.test(r))return"";if(tn.lastIndex=0,tn.test(r)&&(Qr.lastIndex=0,Qr.test(r)))return"";!1!==n&&(n=n||jr,r=n.process(r))}return r=cn(r),r}var Zr=/</g,Wr=/>/g,Gr=/"/g,Jr=/"/g,Yr=/&#([a-zA-Z0-9]*);?/gim,Kr=/:?/gim,Xr=/&newline;?/gim,Qr=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,en=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,tn=/u\s*r\s*l\s*\(.*/gi;function rn(e){return e.replace(Gr,""")}function nn(e){return e.replace(Jr,'"')}function sn(e){return e.replace(Yr,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function on(e){return e.replace(Kr,":").replace(Xr," ")}function an(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Pr.trim(t)}function ln(e){return e=nn(e),e=sn(e),e=on(e),e=an(e),e}function cn(e){return e=rn(e),e=qr(e),e}function dn(){return""}function hn(e,t){"function"!==typeof t&&(t=function(){});var r=!Array.isArray(e);function n(t){return!!r||-1!==Pr.indexOf(e,t)}var s=[],i=!1;return{onIgnoreTag:function(e,r,o){if(n(e)){if(o.isClosing){var a="[/removed]",l=o.position+a.length;return s.push([!1!==i?i:o.position,l]),i=!1,a}return i||(i=o.position),"[removed]"}return t(e,r,o)},remove:function(e){var t="",r=0;return Pr.forEach(s,function(n){t+=e.slice(r,n[0]),r=n[1]}),t+=e.slice(r),t}}}function un(e){var t="",r=0;while(r<e.length){var n=e.indexOf("\x3c!--",r);if(-1===n){t+=e.slice(r);break}t+=e.slice(r,n);var s=e.indexOf("--\x3e",n);if(-1===s)break;r=s+3}return t}function pn(e){var t=e.split("");return t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}),t.join("")}gr.whiteList=Dr(),gr.getDefaultWhiteList=Dr,gr.onTag=zr,gr.onIgnoreTag=Fr,gr.onTagAttr=Vr,gr.onIgnoreTagAttr=Br,gr.safeAttrValue=Hr,gr.escapeHtml=qr,gr.escapeQuote=rn,gr.unescapeQuote=nn,gr.escapeHtmlEntities=sn,gr.escapeDangerHtml5Entities=on,gr.clearNonPrintableCharacter=an,gr.friendlyAttrValue=ln,gr.escapeAttrValue=cn,gr.onIgnoreTagStripAll=dn,gr.StripTagBody=hn,gr.stripCommentTag=un,gr.stripBlankChar=pn,gr.cssFilter=jr,gr.getDefaultCSSWhiteList=Mr;var mn={},fn=Ur;function gn(e){var t,r=fn.spaceIndex(e);return t=-1===r?e.slice(1,-1):e.slice(1,r+1),t=fn.trim(t).toLowerCase(),"/"===t.slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function vn(e){return"</"===e.slice(0,2)}function yn(e,t,r){var n="",s=0,i=!1,o=!1,a=0,l=e.length,c="",d="";e:for(a=0;a<l;a++){var h=e.charAt(a);if(!1===i){if("<"===h){i=a;continue}}else if(!1===o){if("<"===h){n+=r(e.slice(s,a)),i=a,s=a;continue}if(">"===h){n+=r(e.slice(s,i)),d=e.slice(i,a+1),c=gn(d),n+=t(i,n.length,c,d,vn(d)),s=a+1,i=!1;continue}if('"'===h||"'"===h){var u=1,p=e.charAt(a-u);while(""===p.trim()||"="===p){if("="===p){o=h;continue e}p=e.charAt(a-++u)}}}else if(h===o){o=!1;continue}}return s<e.length&&(n+=r(e.substr(s))),n}var _n=/[^a-zA-Z0-9\\_:.-]/gim;function $n(e,t){var r=0,n=0,s=[],i=!1,o=e.length;function a(e,r){if(e=fn.trim(e),e=e.replace(_n,"").toLowerCase(),!(e.length<1)){var n=t(e,r||"");n&&s.push(n)}}for(var l=0;l<o;l++){var c,d,h=e.charAt(l);if(!1!==i||"="!==h)if(!1===i||l!==n)if(/\s|\n|\t/.test(h)){if(e=e.replace(/\s|\n|\t/g," "),!1===i){if(d=wn(e,l),-1===d){c=fn.trim(e.slice(r,l)),a(c),i=!1,r=l+1;continue}l=d-1;continue}if(d=Sn(e,l-1),-1===d){c=fn.trim(e.slice(r,l)),c=Tn(c),a(i,c),i=!1,r=l+1;continue}}else;else{if(d=e.indexOf(h,l+1),-1===d)break;c=fn.trim(e.slice(n+1,d)),a(i,c),i=!1,l=d,r=l+1}else i=e.slice(r,l),r=l+1,n='"'===e.charAt(r)||"'"===e.charAt(r)?r:bn(e,l+1)}return r<e.length&&(!1===i?a(e.slice(r)):a(i,Tn(fn.trim(e.slice(r))))),fn.trim(s.join(" "))}function wn(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r)return"="===r?t:-1}}function bn(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r)return"'"===r||'"'===r?t:-1}}function Sn(e,t){for(;t>0;t--){var r=e[t];if(" "!==r)return"="===r?t:-1}}function An(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}function Tn(e){return An(e)?e.substr(1,e.length-2):e}mn.parseTag=yn,mn.parseAttr=$n;var kn=vr.exports.FilterCSS,xn=gr,Cn=mn,In=Cn.parseTag,En=Cn.parseAttr,Rn=Ur;function Nn(e){return void 0===e||null===e}function On(e){var t=Rn.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};e=Rn.trim(e.slice(t+1,-1));var r="/"===e[e.length-1];return r&&(e=Rn.trim(e.slice(0,-1))),{html:e,closing:r}}function Un(e){var t={};for(var r in e)t[r]=e[r];return t}function Ln(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(e){return e.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function Mn(e){e=Un(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=xn.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Ln(e.whiteList||e.allowList):e.whiteList=xn.whiteList,e.onTag=e.onTag||xn.onTag,e.onTagAttr=e.onTagAttr||xn.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||xn.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||xn.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||xn.safeAttrValue,e.escapeHtml=e.escapeHtml||xn.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new kn(e.css))}Mn.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,s=r.onTag,i=r.onIgnoreTag,o=r.onTagAttr,a=r.onIgnoreTagAttr,l=r.safeAttrValue,c=r.escapeHtml,d=t.cssFilter;r.stripBlankChar&&(e=xn.stripBlankChar(e)),r.allowCommentTag||(e=xn.stripCommentTag(e));var h=!1;r.stripIgnoreTagBody&&(h=xn.StripTagBody(r.stripIgnoreTagBody,i),i=h.onIgnoreTag);var u=In(e,function(e,t,r,h,u){var p={sourcePosition:e,position:t,isClosing:u,isWhite:Object.prototype.hasOwnProperty.call(n,r)},m=s(r,h,p);if(!Nn(m))return m;if(p.isWhite){if(p.isClosing)return"</"+r+">";var f=On(h),g=n[r],v=En(f.html,function(e,t){var n=-1!==Rn.indexOf(g,e),s=o(r,e,t,n);return Nn(s)?n?(t=l(r,e,t,d),t?e+'="'+t+'"':e):(s=a(r,e,t,n),Nn(s)?void 0:s):s});return h="<"+r,v&&(h+=" "+v),f.closing&&(h+=" /"),h+=">",h}return m=i(r,h,p),Nn(m)?c(h):m},c);return h&&(u=h.remove(u)),u};var Pn=Mn;(function(e,t){var r=gr,n=mn,s=Pn;function i(e,t){var r=new s(t);return r.process(e)}function o(){return"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope}t=e.exports=i,t.filterXSS=i,t.FilterXSS=s,function(){for(var e in r)t[e]=r[e];for(var s in n)t[s]=n[s]}(),o()&&(self.filterXSS=e.exports)})(fr,fr.exports);var Dn=function(){function e(e,t){var r,n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(e,t,r,s){return"a"===e&&"href"===t||("img"===e||"source"===e)&&"src"===t?n.sanitizeUrl(r):fr.exports.safeAttrValue(e,t,r,s)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"},e&&!t?r=e:e&&t?(r=Object.create(this.arcgisFilterOptions),Object.keys(e).forEach(function(t){"whiteList"===t?r.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,e.whiteList||{}]):r[t]=e[t]})):(r=Object.create(this.arcgisFilterOptions),r.whiteList=this.arcgisWhiteList),this.xssFilterOptions=r,this._xssFilter=new fr.exports.FilterXSS(r)}return e.prototype.sanitize=function(e,t){switch(void 0===t&&(t={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,t);default:if(t.allowUndefined&&"undefined"===typeof e)return;return null}},e.prototype.sanitizeUrl=function(e,t){var r=(null!==t&&void 0!==t?t:{}).isProtocolRequired,n=void 0===r||r,s=this._trim(e.substring(0,e.indexOf(":"))),i="/"===e,o=/^#/.test(e),a=s&&this.allowedProtocols.indexOf(s.toLowerCase())>-1;return i||o||a?fr.exports.escapeAttrValue(e):s||n?"":fr.exports.escapeAttrValue("https://".concat(e))},e.prototype.sanitizeHTMLAttribute=function(e,t,r,n){return"function"===typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(e,t,r,n):fr.exports.safeAttrValue(e,t,r,n)},e.prototype.validate=function(e,t){void 0===t&&(t={});var r=this.sanitize(e,t);return{isValid:e===r,sanitized:r}},e.prototype.encodeHTML=function(e){var t=this;return String(e).replace(/[&<>"'\/]/g,function(e){return t._entityMap[e]})},e.prototype.encodeAttrValue=function(e){var t=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(r,n){return t.test(r)?r:"&#x".concat(Number(e.charCodeAt(n)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(e){var t={};return e.forEach(function(e){Object.keys(e).forEach(function(r){Array.isArray(e[r])&&Array.isArray(t[r])?t[r]=t[r].concat(e[r]):t[r]=e[r]})}),t},e.prototype._iterateOverObject=function(e,t){var r=this;void 0===t&&(t={});try{var n=!1,s=void 0;if(Array.isArray(e))s=e.reduce(function(e,s){var i=r.validate(s,t);return i.isValid?e.concat([s]):(n=!0,e.concat([i.sanitized]))},[]);else{if(!mr(e)){if(t.allowUndefined&&"undefined"===typeof e)return;return null}var i=Object.keys(e);s=i.reduce(function(s,i){var o=e[i],a=r.validate(o,t);return a.isValid?s[i]=o:(n=!0,s[i]=a.sanitized),s},{})}return n?s:e}catch(o){return null}},e.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},e}();const jn=new Map;function zn(){jn.clear()}function Fn(e){return jn.get(e)}function Vn(e,t){jn.set(e,t)}function Bn(e){jn.delete(e)}const qn=()=>_.A.getLogger("esri.widgets.support.widgetUtils");function Hn(...e){const t=Lt.A.acquire();for(let n=0;n<e.length;n++){const r=e[n],s=typeof r;if("string"===s)t.push(r);else if(Array.isArray(r))t.push.apply(t,r);else if("object"===s)for(const e in r)r[e]&&t.push(e)}const r=t.join(" ");return Lt.A.release(t),r}(()=>{const e=new Map,t=new ResizeObserver(t=>{zn();for(const r of t)e.get(r.target)?.(r)}),r=(r,n,s)=>(e.has(r)&&qn().error("Already observing element",r),e.set(r,n),t.observe(r,s),(0,c.hA)(()=>{t.unobserve(r),e.delete(r)}))})();const Zn=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],Wn=Zn.reduce((e,t)=>(e[t]=[],e),{}),Gn=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],Jn=new Dn({whiteList:Wn,onTagAttr:(e,t,r)=>{const n=`${t}="${r}"`;if(Gn.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);const Yn="http://www.w3.org/",Kn=`${Yn}2000/svg`,Xn=`${Yn}1999/xlink`;let Qn=[],es=(e,t)=>{let r={};return Object.keys(e).forEach(t=>{r[t]=e[t]}),t&&Object.keys(t).forEach(e=>{r[e]=t[e]}),r},ts=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),rs=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},ns=(e,t,r)=>{if(""!==t.vnodeSelector)for(let n=r;n<e.length;n++)if(ts(e[n],t))return n;return-1},ss=(e,t,r,n)=>{let s=e[t];if(""===s.vnodeSelector)return;let i=s.properties;if(!(i?void 0===i.key?i.bind:i.key:void 0))for(let o=0;o<e.length;o++)if(o!==t){let t=e[o];if(ts(t,s))throw new Error(`${r.vnodeSelector} had a ${s.vnodeSelector} child ${"added"===n?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},is=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},os=[],as=!1,ls=e=>{(e.children||[]).forEach(ls),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},cs=()=>{as=!1,os.forEach(ls),os.length=0},ds=e=>{os.push(e),as||(as=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(cs,{timeout:16}):setTimeout(cs,16))},hs=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let n=()=>{t.parentNode&&(t.parentNode.removeChild(t),ds(e))};return void r(t,n,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),ds(e))},us=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,s=Object.keys(t),i=s.length;for(let o=0;o<i;o++){let i=s[o],a=t[i];if("className"===i)throw new Error('Property "className" is not supported, use "class".');if("class"===i)ys(e,a,!0);else if("classes"===i){let t=Object.keys(a),r=t.length;for(let n=0;n<r;n++){let r=t[n];a[r]&&e.classList.add(r)}}else if("styles"===i){let t=Object.keys(a),n=t.length;for(let s=0;s<n;s++){let n=t[s],i=a[n];i&&(rs(i),r.styleApplyer(e,n,i))}}else if("key"!==i&&null!=a){let s=typeof a;"function"===s?(0===i.lastIndexOf("on",0)&&(n&&(a=n(i,a,e,t)),"oninput"===i&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[i]=a):r.namespace===Kn?"href"===i?e.setAttributeNS(Xn,i,a):e.setAttribute(i,a):"string"===s&&"value"!==i?"innerHTML"===i?e[i]=Jn.sanitize(a):ps(e)&&i in e?e[i]=a:e.setAttribute(i,a):e[i]=a}}};function ps(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;const t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}let ms,fs=(e,t,r)=>{if(t)for(let n of t)vs(n,e,void 0,r)},gs=(e,t,r)=>{fs(e,t.children,r),t.text&&(e.textContent=t.text),us(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},vs=(e,t,r,n)=>{let s,i=0,o=e.vnodeSelector,a=t.ownerDocument;if(""===o)s=e.domNode=a.createTextNode(e.text),void 0!==r?t.insertBefore(s,r):t.appendChild(s);else{for(let l=0;l<=o.length;++l){let c=o.charAt(l);if(l===o.length||"."===c||"#"===c){let c=o.charAt(i-1),d=o.slice(i,l);"."===c?s.classList.add(d):"#"===c?s.id=d:("svg"===d&&(n=es(n,{namespace:Kn})),void 0!==n.namespace?s=e.domNode=a.createElementNS(n.namespace,d):(s=e.domNode=e.domNode||a.createElement(d),"input"===d&&e.properties&&void 0!==e.properties.type&&s.setAttribute("type",e.properties.type)),void 0!==r?t.insertBefore(s,r):s.parentNode!==t&&t.appendChild(s)),i=l+1}}gs(s,e,n)}},ys=(e,t,r)=>{t&&t.split(" ").forEach(t=>{t&&e.classList.toggle(t,r)})},_s=(e,t,r,n)=>{if(!r)return;let s=!1,i=Object.keys(r),o=i.length;for(let a=0;a<o;a++){let o=i[a],l=r[o],c=t[o];if("class"===o)c!==l&&(ys(e,c,!1),ys(e,l,!0));else if("classes"===o){let t=e.classList,r=Object.keys(l),n=r.length;for(let e=0;e<n;e++){let n=r[e],i=!!l[n];i!==!!c[n]&&(s=!0,i?t.add(n):t.remove(n))}}else if("styles"===o){let t=Object.keys(l),r=t.length;for(let i=0;i<r;i++){let r=t[i],o=l[r];o!==c[r]&&(s=!0,o?(rs(o),n.styleApplyer(e,r,o)):n.styleApplyer(e,r,""))}}else if(l||"string"!=typeof c||(l=""),"value"!==o||ps(e)){if(l!==c){let t=typeof l;"function"===t&&n.eventHandlerInterceptor||(n.namespace===Kn?"href"===o?e.setAttributeNS(Xn,o,l):e.setAttribute(o,l):"string"===t?"innerHTML"===o?e[o]=Jn.sanitize(l):"role"===o&&""===l?e.removeAttribute(o):ps(e)&&o in e?e[o]=l:e.setAttribute(o,l):e[o]!==l&&(e[o]=l),s=!0)}}else{let t=e[o];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==c)&&(e[o]=l,e["oninput-value"]=void 0),l!==c&&(s=!0)}}return s},$s=(e,t,r,n,s)=>{if(r===n)return!1;n=n||Qn;let i,o=(r=r||Qn).length,a=n.length,l=0,c=0,d=!1;for(;c<a;){let a=l<o?r[l]:void 0,h=n[c];if(void 0!==a&&ts(a,h))d=ms(a,h,s)||d,l++;else{let a=ns(r,h,l+1);if(a>=0){for(i=l;i<a;i++)hs(r[i]),ss(r,i,e,"removed");d=ms(r[a],h,s)||d,l=a+1}else vs(h,t,l<o?r[l].domNode:void 0,s),is(h),ss(n,c,e,"added")}c++}if(o>l)for(i=l;i<o;i++)hs(r[i]),ss(r,i,e,"removed");return d};ms=(e,t,r)=>{let n=e.domNode,s=!1;if(e===t)return!1;let i=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(e,n),t.domNode=e,s=!0,s}t.domNode=n}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=es(r,{namespace:Kn})),e.text!==t.text&&(i=!0,void 0===t.text?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,i=$s(t,n,e.children,t.children,r)||i,i=_s(n,e.properties,t.properties,r)||i,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return i&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),s};let ws=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=e;e=r,ms(n,r,t)},domNode:e.domNode});const bs={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}};let Ss,As=e=>es(bs,e),Ts={create:(e,t)=>(t=As(t),vs(e,document.createElement("div"),void 0,t),ws(e,t)),append:(e,t,r)=>(r=As(r),vs(t,e,void 0,r),ws(t,r)),insertBefore:(e,t,r)=>(r=As(r),vs(t,e.parentNode,e,r),ws(t,r)),merge:(e,t,r)=>(r=As(r),t.domNode=e,gs(e,t,r),ws(t,r)),replace:(e,t,r)=>(r=As(r),vs(t,e.parentNode,e,r),e.parentNode.removeChild(e),ws(t,r))};Ss=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const ks={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))},xs={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}},Cs=e=>({...xs,...e}),Is=(e,t)=>{const r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},Es=(e,t)=>e.find(t),Rs=(e,t,r=!1)=>{let n=e;return t.forEach((e,s)=>{const i=n?.children?Es(n.children,t=>t.domNode===e):void 0;r&&!i&&s!==t.length-1||(n=i)}),n},Ns=e=>{let t;const r={...ks,...e},n=Cs(r),s=n.performanceLogger;let i,o=!0,a=!1;const l=[],c=[],d=(e,i,o)=>{let a;n.eventHandlerInterceptor=(e,n,i,o)=>function(e){let n;s("domEvent",e);const i=Is(e.currentTarget,a.domNode),o=i.some(e=>customElements.get(e?.tagName?.toLowerCase()));if(e.eventPhase!==Event.CAPTURING_PHASE&&o){const t=e.composedPath(),r=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).reverse();n=Rs(a.getLastRender(),r,!0)}else i.reverse(),n=Rs(a.getLastRender(),i);let l;return n&&(l=r.handleInterceptedEvent(t,n,this,e)),s("domEventProcessed",e),l},r.postProcessProjectionOptions?.(n);const d=o();a=e(i,d,n),n.eventHandlerInterceptor=void 0,l.push(a),c.push(o),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(a,d)};let h=()=>{if(i=void 0,o){o=!1,s("renderStart",void 0);for(let e=0;e<l.length;e++){const t=c[e]();s("rendered",void 0),l[e].update(t),s("patched",void 0)}s("renderDone",void 0),o=!0}};return r.modifyDoRenderImplementation&&(h=r.modifyDoRenderImplementation(h,l,c)),t={renderNow:h,scheduleRender:()=>{i||a||(i=requestAnimationFrame(h))},stop:()=>{i&&(cancelAnimationFrame(i),i=void 0),a=!0},resume:()=>{a=!1,o=!0,t.scheduleRender()},append:(e,t)=>{d(Ts.append,e,t)},insertBefore:(e,t)=>{d(Ts.insertBefore,e,t)},merge:(e,t)=>{d(Ts.merge,e,t)},replace:(e,t)=>{d(Ts.replace,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),l.splice(t,1)[0];throw new Error("renderFunction was not found")}},t};var Os=r(21314),Us=r(78965),Ls=r(11347),Ms=r(85808);
|
|
2
|
+
/*!
|
|
3
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
4
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
5
|
+
* v2.13.2
|
|
6
|
+
*/
|
|
7
|
+
function Ps(){const{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(Os.d)||e.contains(Os.a)&&t?"dark":"light",n=e=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:e}})),s=e=>{i!==e&&n(e),i=e};let i=r();n(i),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>s(e.matches?"dark":"light")),new MutationObserver(()=>s(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function Ds(){(0,Ls.i)()&&("interactive"===document.readyState?Ps():document.addEventListener("DOMContentLoaded",()=>Ps(),{once:!0})),(0,Us.s)()}const js=Ds;let zs;function Fs(){try{(0,Ms.OX)(".")}catch{(0,Ms.Qu)((0,v.s2)((0,wt.s)(zs)))}}function Vs(e){const t=[];for(const r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}js(),zs="components/assets";const Bs=Symbol("widget"),qs=Symbol("widget-test-data"),Hs=[],Zs={},Ws=new WeakMap;function Gs(e,t){let r=t.children;if(r?.length)for(let s=0;s<r.length;++s)r[s]=Gs(e,r[s]);else r=Hs;const n=t.vnodeSelector;if(Xs(n)){const s=t.properties||Zs,i=s.key||n;return{vnodeSelector:"div",properties:{key:i,afterCreate:Js,afterUpdate:Ys,afterRemoved:Ks,parentWidget:e,widgetConstructor:n,widgetProperties:{...s,key:i,children:r}},children:void 0,text:void 0,domNode:null}}return t}function Js(e,t,r,{parentWidget:n,widgetConstructor:s,widgetProperties:i}){const o=new s(i);o.container=e,Ws.set(e,o),o.afterCreate?.(o,e),n.addHandles((0,c.hA)(()=>Ks(e))),queueMicrotask(()=>{o[qs].projector.renderNow()})}function Ys(e,t,r,{widgetProperties:n}){const s=Ws.get(e);s&&(s.set(n),s.afterUpdate?.(s,e))}function Ks(e){const t=Ws.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),Ws.delete(e))}function Xs(e){return"function"==typeof e&&e[Bs]}const Qs={arrowDown:"esri-icon-arrow-down",arrowUp:"esri-icon-arrow-up",basemap:"esri-icon-basemap",bookmark:"esri-icon-bookmark",calendar:"esri-icon-calendar",checkMark:"esri-icon-check-mark",checkboxUnchecked:"esri-icon-checkbox-unchecked",close:"esri-icon-close",collapse:"esri-icon-collapse",defaultAction:"esri-icon-default-action",description:"esri-icon-description",directions:"esri-icon-directions",dockBottom:"esri-icon-dock-bottom",dockLeft:"esri-icon-dock-left",dockRight:"esri-icon-dock-right",down:"esri-icon-down",downArrow:"esri-icon-down-arrow",download:"esri-icon-download",dragHorizontal:"esri-icon-drag-horizontal",dragVertical:"esri-icon-drag-vertical",duplicate:"esri-icon-duplicate",edit:"esri-icon-edit",elevationProfile:"esri-icon-elevation-profile",environmentSettings:"esri-icon-environment-settings",erase:"esri-icon-erase",error:"esri-icon-error",expand:"esri-icon-expand",fontFallbackText:"esri-icon-font-fallback-text",forward:"esri-icon-forward",gear:"esri-icon-gear",handleHorizontal:"esri-icon-handle-horizontal",handleVertical:"esri-icon-handle-vertical",home:"esri-icon-home",icon:"esri-icon",launchLinkExternal:"esri-icon-launch-link-external",layerList:"esri-icon-layer-list",layers:"esri-icon-layers",left:"esri-icon-left",leftArrows:"esri-icon-left-arrow",leftTriangleArrow:"esri-icon-left-triangle-arrow",lineOfSight:"esri-icon-line-of-sight",link:"esri-icon-link",linkExternal:"esri-icon-link-external",linkHorizontal:"esri-icon-link-horizontal",loadingIndicator:"esri-icon-loading-indicator",locate:"esri-icon-locate",locateCircled:"esri-icon-locate-circled",locked:"esri-icon-locked",mapPin:"esri-icon-map-pin",maximize:"esri-icon-maximize",measure:"esri-icon-measure",measureArea:"esri-icon-measure-area",measureBuildingHeightShadow:"esri-icon-measure-building-height-shadow",measureLine:"esri-icon-measure-line",menu:"esri-icon-menu",minimize:"esri-icon-minimize",minus:"esri-icon-minus",nonVisible:"esri-icon-non-visible",northNavigation:"esri-icon-north-navigation",noticeTriangle:"esri-icon-notice-triangle",organization:"esri-icon-organization",pan:"esri-icon-pan",pan2:"esri-icon-pan2",partlyCloudy:"esri-icon-partly-cloudy",pause:"esri-icon-pause",play:"esri-icon-play",playCircled:"esri-icon-play-circled",plus:"esri-icon-plus",polyline:"esri-icon-polyline",printer:"esri-icon-printer",radioChecked:"esri-icon-radio-checked",radioUnchecked:"esri-icon-radio-unchecked",refresh:"esri-icon-refresh",reverse:"esri-icon-reverse",right:"esri-icon-right",rightArrow:"esri-icon-right-arrow",rightTriangleArrow:"esri-icon-right-triangle-arrow",rotate:"esri-icon-rotate",save:"esri-icon-save",search:"esri-icon-search",settings2:"esri-icon-settings2",slice:"esri-icon-slice",swap:"esri-icon-swap",table:"esri-icon-table",timeClock:"esri-icon-time-clock",tracking:"esri-icon-tracking",trash:"esri-icon-trash",unlockedLinkHorizontal:"esri-icon-unlocked-link-horizontal",up:"esri-icon-up",upArrow:"esri-icon-up-arrow",upDownArrows:"esri-icon-up-down-arrows",urbanModel:"esri-icon-urban-model",vertexGps:"esri-icon-vertex-gps",visible:"esri-icon-visible",zoomInFixed:"esri-icon-zoom-in-fixed",zoomInMagnifyingGlass:"esri-icon-zoom-in-magnifying-glass",zoomOutFixed:"esri-icon-zoom-out-fixed",zoomToObject:"esri-icon-zoom-to-object"},ei=new Set;function ti(e){ei.add(e),e.finally(()=>ei.delete(e))}var ri;const ni="esri.widgets.Widget";let si=0;const ii={widgetIcon:Qs.checkboxUnchecked};function oi(e,t){for(const r in t)null!=e[r]&&("object"==typeof e[r]&&"object"==typeof t[r]?oi(e[r],t?.[r]):e[r]=t[r]);return e}const ai=Ns({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,n,s,i)=>{const o=t?.(e,n,s,i),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in s)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>o?.call(s,e);s.addEventListener(t,r,a);const n=()=>s.removeEventListener(t,r,a),l=i.afterRemoved;i.afterRemoved=e=>{l?.(e),n()}}return o}},handleInterceptedEvent(e,t,r,n){const{eventPhase:s,type:i}=n,o=s===Event.CAPTURING_PHASE;let a=`on${i}${o?"capture":""}`;const l=t.properties;(l&&a in l||(a=`on${i[0].toUpperCase()}${i.slice(1)}${o?"Capture":""}`,l&&a in l))&&(zn(),e.scheduleRender(),l[a].call(l.bind||r,n))}});let li=!1,ci=class extends(xt(u.EventedAccessor)){constructor(e,t){super(e,t),this._attached=!1,this._projector=ai,this._readyForTrueRender=!1,this.iconClass=ii.widgetIcon,this.icon=null,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=(0,g.sg)(async()=>{if(this._messageBundleProps?.length){const e=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let r=await ht(e);this.uiStrings&&Object.keys(this.uiStrings)&&(r=oi((0,m.o8)(r),this.uiStrings)),this[t]=r}));if(this.destroyed)return;for(const t of e)"rejected"===t.status&&_.A.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason)}await this.loadLocale()}),Fs();const r="esri-widget-uid-"+hr(),n=this.render.bind(this);this._trackingTarget=new pr.r(()=>{this.autoRenderingEnabled&&this.scheduleRender()});const s=()=>{if(!this._readyForTrueRender||this.destroyed)return null;const e=n();let t=e.properties;t||(e.properties=t={});const{key:s}=t;if(s||(t.key=r),Xs(e.vnodeSelector)){if(!this.visible)return{vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}}else this.visible?t.styles||(t.styles={}):(t.class="",t.styles={display:"none"}),t.styles.display||(t.styles.display="");let i=0;return e.children?.forEach(e=>{if(Xs(e.vnodeSelector))return;let{properties:t}=e;t||(e.properties=t={}),t.key||(t.key=`${this.id}--${i++}`)}),Gs(this,e)};this.render=()=>{if(li)return s();let e=Fn(this)??null;if(e)return e;this._trackingTarget.clear(),li=!0;try{e=(0,jt.a)(this._trackingTarget,s)}catch(t){throw console.error(t),t}finally{li=!1}return e&&Vn(this,e),e};const i=this.beforeFirstRender();i?this._resourcesFetch=i.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),ti(this._resourcesFetch)}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){const e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(g.jH):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||((0,Tt.pR)(this._trackingTarget),(0,Tt.pR)(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,Bn(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return St(e)}get domNode(){return this.container}set domNode(e){this.container=e}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+si++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(ri=Bs,qs)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(Bn(this),this._projector.scheduleRender())}own(e){(0,bt.eO)(_.A.getLogger(this),"`Widget.own()` is deprecated in favor of 'Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e)}classes(...e){return Hn.apply(this,e)}renderNow(){Bn(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(sr(()=>this.viewModel,(e,t)=>{t&&this.removeHandles("delegated-events"),e&&(0,p.wb)(e)&&this.addHandles(this._delegatedEventNames.map(t=>(0,p.on)(e,t,e=>{this.emit(t,e)})),"delegated-events")},cr)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(g.jH),this.scheduleRender()};this.addHandles([x(e),sr(()=>this.uiStrings,e),ir(()=>this.container,e=>{this.destroyed||this._attach(e)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};ci[ri]=!0,(0,s._)([(0,y.MZ)()],ci.prototype,"_readyForTrueRender",void 0),(0,s._)([(0,y.MZ)({value:null})],ci.prototype,"container",null),(0,s._)([(0,ur.w)("container")],ci.prototype,"castContainer",null),(0,s._)([(0,y.MZ)()],ci.prototype,"iconClass",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"icon",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"id",null),(0,s._)([(0,y.MZ)()],ci.prototype,"label",null),(0,s._)([(0,y.MZ)()],ci.prototype,"renderable",null),(0,s._)([(0,y.MZ)()],ci.prototype,"uiStrings",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"viewModel",void 0),(0,s._)([(0,y.MZ)({value:!0})],ci.prototype,"visible",null),(0,s._)([(0,y.MZ)()],ci.prototype,"key",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"children",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"afterCreate",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"afterUpdate",void 0),(0,s._)([(0,y.MZ)()],ci.prototype,"afterRemoved",void 0),ci=(0,s._)([(0,d.$)(ni)],ci);const di=ci;function hi(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var ui=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},pi=function(e,t){for(var r=0,n=e.length;r<n;r++){var s=e[r];Array.isArray(s)?pi(s,t):null!=s&&!1!==s&&(s.hasOwnProperty("vnodeSelector")||(s=ui(s)),t.push(s))}},mi=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(1===r.length&&"string"==typeof r[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var s=[];return pi(r,s),{vnodeSelector:e,properties:t||void 0,children:s,text:void 0,domNode:null}};function fi(e,t,...r){return"function"!=typeof e||Xs(e)?mi(e,t,...r):e(t,...r)}const gi="calcite-mode-";function vi(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function yi(){return vi().startsWith("dark")}function _i(){return`${gi}${yi()?"dark":"light"}`}const $i="esri-identity-modal",wi={base:$i,info:`${$i}__info`,notice:`${$i}__notice`},bi="ArcGIS Online";let Si=class extends di{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return Vs({button:()=>Promise.all([r.e(16),r.e(711),r.e(183),r.e(33)]).then(r.bind(r,94033)),input:()=>Promise.all([r.e(16),r.e(711),r.e(183),r.e(579)]).then(r.bind(r,34579)),label:()=>Promise.all([r.e(16),r.e(560)]).then(r.bind(r,84560)),modal:()=>Promise.all([r.e(16),r.e(711),r.e(547)]).then(r.bind(r,64547)),notice:()=>Promise.all([r.e(16),r.e(711),r.e(769)]).then(r.bind(r,73769))})}get title(){return this.commonMessages?.auth.signIn}render(){const{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:s,server:i,resource:o,error:a}=this,{info:l,oAuthInfo:c,lblItem:d,invalidUser:h,noAuthService:u,lblUser:p,lblPwd:m,lblCancel:f,lblSigning:g,lblOk:v}=r;return fi("div",{class:this.classes(wi.base,_i())},fi("form",{bind:this,onsubmit:this._submit},fi("calcite-modal",{bind:this,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteModalClose:this._cancel,onCalciteModalOpen:this._focusUsernameInput},fi("div",{slot:"header"},t),fi("div",{slot:"content"},fi("div",{class:wi.info},Qe(s?c:l,{server:i&&/\.arcgis\.com/i.test(i)?bi:i,resource:`(${o||d})`})),a?fi("calcite-notice",{class:wi.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},fi("div",{slot:"message"},a.details?.httpStatus?h:u)):null,s?null:[fi("calcite-label",null,p,fi("calcite-input",{afterCreate:e=>this._usernameInputNode=e,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),fi("calcite-label",null,m,fi("calcite-input",{afterCreate:e=>this._passwordInputNode=e,bind:this,name:"password",required:!0,type:"password",value:""}))]),fi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"secondary",type:"button",width:"full"},f),fi("calcite-button",{loading:!!n,slot:"primary",type:"submit",width:"full"},n?g:v))))}_focusUsernameInput(){requestAnimationFrame(()=>{this._usernameInputNode?.setFocus()})}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};(0,s._)([(0,y.MZ)({readOnly:!0})],Si.prototype,"container",void 0),(0,s._)([(0,y.MZ)(),hi("esri/t9n/common")],Si.prototype,"commonMessages",void 0),(0,s._)([(0,y.MZ)()],Si.prototype,"error",void 0),(0,s._)([(0,y.MZ)(),hi("esri/identity/t9n/identity")],Si.prototype,"messages",void 0),(0,s._)([(0,y.MZ)()],Si.prototype,"oAuthPrompt",void 0),(0,s._)([(0,y.MZ)()],Si.prototype,"open",void 0),(0,s._)([(0,y.MZ)()],Si.prototype,"signingIn",void 0),(0,s._)([(0,y.MZ)()],Si.prototype,"server",void 0),(0,s._)([(0,y.MZ)({readOnly:!0})],Si.prototype,"title",null),(0,s._)([(0,y.MZ)()],Si.prototype,"resource",void 0),Si=(0,s._)([(0,d.$)("esri.identity.IdentityModal")],Si);const Ai=Si,Ti="esriJSAPIOAuth";class ki{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)e=!0;else if(this.expires){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return!1;const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let n=e[t.authNamespace];n||(n=e[t.authNamespace]={}),this.appId||(this.appId=t.appId),n[t.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(Ti,JSON.stringify(e))}catch(r){return console.warn(r),!1}return!0}return!1}destroy(){const e=this._load(),t=this.oAuthInfo;if(t?.appId&&t?.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",r=new FormData;if(r.append("f","json"),r.append("auth_token",this.refreshToken||this.token),r.append("client_id",t.appId),r.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),"function"==typeof navigator.sendBeacon)navigator.sendBeacon(e,r);else{const t=new XMLHttpRequest;t.open("POST",e),t.send(r)}}if(t&&t.authNamespace&&t.portalUrl&&this.storage){const n=e[t.authNamespace];if(n){delete n[t.portalUrl];try{this.storage.setItem(Ti,JSON.stringify(e))}catch(r){console.log(r)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t&&t.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.codeVerifier=r.codeVerifier,this.expires=r.expires,this.refreshToken=r.refreshToken,this.ssl=r.ssl,this.stateUID=r.stateUID,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){const r=this.storage.getItem(Ti);if(r)try{e=JSON.parse(r)}catch(t){console.warn(t)}}return e}}ki.prototype.declaredClass="esri.identity.OAuthCredential";var xi,Ci=r(12475);let Ii=xi=class extends Ci.oY{constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return xi.fromJSON(this.toJSON())}};(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"appId",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"authNamespace",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"expiration",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"flowType",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"forceLogin",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"forceUserId",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"locale",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"minTimeUntilExpiration",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"popup",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"popupCallbackUrl",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"popupWindowFeatures",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"portalUrl",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"preserveUrlHash",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ii.prototype,"userId",void 0),Ii=xi=(0,s._)([(0,d.$)("esri.identity.OAuthInfo")],Ii);const Ei=Ii;let Ri=class extends Ci.oY{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"adminTokenServiceUrl",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"currentVersion",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"hasPortal",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"hasServer",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"owningSystemUrl",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"owningTenant",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"server",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"shortLivedTokenValidity",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"tokenServiceUrl",void 0),(0,s._)([(0,y.MZ)({json:{write:!0}})],Ri.prototype,"webTierAuth",void 0),Ri=(0,s._)([(0,d.$)("esri.identity.ServerInfo")],Ri);const Ni=Ri;var Oi=r(81077);const Ui={},Li=e=>{const t=new v.s0(e.owningSystemUrl).host,r=new v.s0(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},Mi=(e,t)=>!!(Li(e)&&t&&t.some(t=>t.test(e.server)));let Pi=null,Di=null;try{Pi=window.localStorage,Di=window.sessionStorage}catch{}class ji extends u{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,v.An)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^\/]+\/[^\/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^\/]+)\/?.*/i,this._gwItem=/http.+\/items\/([^\/]+)\/?.*/i,this._gwGroup=/http.+\/groups\/([^\/]+)\/?.*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){const t=this.serverInfos;t?(e=e.filter(e=>!this.findServerInfo(e.server)),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach(e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)})}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let n,s=this.findServerInfo(t),i=!0;s||(s=new Ni,s.server=this._getServerInstanceRoot(t),r?s.hasServer=!0:(s.tokenServiceUrl=this._getTokenSvcUrl(t),s.hasPortal=!0),this.registerServers([s])),n=this._findCredential(t),n?(delete e.server,Object.assign(n,e),i=!1):(n=new zi({userId:e.userId,server:s.server,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),n.resources=[t],this.credentials.push(n)),n.emitTokenChange(!1),i||n.refreshServerTokens()}toJSON(){return(0,m.oy)({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,n=e.credentials;if(t){const e=[];t.forEach(t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new Ni(t))}),e.length&&this.registerServers(e)}if(r){const e=[];r.forEach(t=>{t.appId&&e.push(t.declaredClass?t:new Ei(t))}),e.length&&this.registerOAuthInfos(e)}n&&n.forEach(e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new zi(e)).emitTokenChange(),this.credentials.push(e))})}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){if(!e)return;let r;e=this._sanitizeUrl(e);const n=this._isServerRsrc(e)?"server":"portal";if(t){for(const s of this.credentials)if(this._hasSameServerInstance(s.server,e)&&t===s.userId&&s.scope===n){r=s;break}}else for(const s of this.credentials)if(this._hasSameServerInstance(s.server,e)&&-1!==this._getIdenticalSvcIdx(e,s)&&s.scope===n){r=s;break}return r}getCredential(e,t){let r,n,s=!0;t&&(r=!!t.token,n=t.error,s=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const i=new AbortController,o=(0,g.Tw)();if(t.signal&&(0,g.u7)(t.signal,()=>{i.abort()}),(0,g.u7)(i,()=>{o.reject(new a.A("identity-manager:user-aborted","ABORTED"))}),(0,g.G4)(i))return o.promise;t.signal=i.signal;const l=this._isAdminResource(e),c=r?this.findCredential(e):null;let d;if(c&&n&&n.details&&498===n.details.httpStatus)c.destroy();else if(c)return d=new a.A("identity-manager:not-authorized","You are currently signed in as: '"+c.userId+"'. You do not have access to this resource: "+e,{error:n}),o.reject(d),o.promise;const h=this._findCredential(e,t);if(h)return o.resolve(h),o.promise;let u=this.findServerInfo(e);if(u)!u.hasPortal&&u.server&&u.owningSystemUrl&&this._hasSameServerInstance(u.server,u.owningSystemUrl)&&(u.hasPortal=!0),!u.hasServer&&this._isServerRsrc(e)&&(u._restInfoPms=this._getTokenSvcUrl(e),u.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return d=new a.A("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),o.reject(d),o.promise;u=new Ni,u.server=this._getServerInstanceRoot(e),"string"==typeof t?(u.tokenServiceUrl=t,u.hasPortal=!0):(u._restInfoPms=t,u.hasServer=!0),this.registerServers([u])}return u.hasPortal&&void 0===u._selfReq&&(s||(0,v.FX)(u.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(e=>e.tokenServiceUrl===u.tokenServiceUrl))&&(u._selfReq={owningTenant:t?.owningTenant,selfDfd:this._getPortalSelf(u.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,u,t,o,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const n=this._rePortalTokenSvc.test(e.tokenServiceUrl),s=new v.s0(this._appOrigin),i=e.shortLivedTokenValidity;let l,c,d,h,u,p,m,f;t&&(f=this.tokenValidity||i||this._defaultTokenValidity,f>i&&i>0&&(f=i)),r&&(l=r.isAdmin,c=r.serverUrl,d=r.token,p=r.signal,m=r.ssl,e.customParameters=r.customParameters),l?h=e.adminTokenServiceUrl:(h=e.tokenServiceUrl,u=new v.s0(h.toLowerCase()),e.webTierAuth&&r?.serverUrl&&!m&&"http"===s.scheme&&((0,v.FX)(s.uri,h,!0)||"https"===u.scheme&&s.host===u.host&&"7080"===s.port&&"7443"===u.port)&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const g={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:c,token:d,expiration:f,referer:l||n?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:p,...r?.ioArgs};return n||(g.withCredentials=!1),(0,o.A)(h,g).then(r=>{const n=r.data;if(!n?.token)return new a.A("identity-manager:authentication-failed","Unable to generate token");const s=e.server;return Ui[s]||(Ui[s]={}),t&&(Ui[s][t.username]=t.password),n.validity=f,n})}isBusy(){return!!this._busy}checkSignInStatus(e){return this.checkAppAccess(e,"").then(e=>e.credential)}checkAppAccess(e,t,r){let n=!1;return this.getCredential(e,{prompt:!1}).then(s=>{let i;const l={f:"json"};if("portal"===s.scope)if(t&&(this._doPortalSignIn(e)||r?.force))i=s.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!s.token)return{credential:s};i=s.server+"/sharing/rest"}else{if(!s.token)return{credential:s};i=s.server+"/rest/services"}return s.token&&(l.token=s.token),(0,o.A)(i,{query:l,authMode:"anonymous"}).then(e=>{if(!1===e.data.valid)throw new a.A("identity-manager:not-authorized",`You are currently signed in as: '${s.userId}'.`,e.data);return n=!!e.data.viewOnlyUserTypeApp,{credential:s}}).catch(e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details?.httpStatus;if(498===t)throw s.destroy(),new a.A("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new a.A("identity-manager:invalid-request");return{credential:s}})}).then(e=>({credential:e.credential,viewOnly:n}))}setOAuthResponseHash(e){e&&("#"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,v.zf)(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){const n=(0,g.Tw)(),s=()=>{l?.remove(),c?.remove(),this.dialog?.destroy(),this.dialog=l=c=null},i=()=>{s(),this._oAuthDfd=null,n.reject(new a.A("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,g.u7)(r.signal,()=>{i()});const o=new Ai({open:!0,resource:this.getResourceName(e),server:t.server});this.dialog=o,this.emit("dialog-create");let l=o.on("cancel",i),c=o.on("submit",e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then(i=>{s();const o=new zi({userId:e.username,server:t.server,token:i.token,expires:null!=i.expires?Number(i.expires):null,ssl:!!i.ssl,isAdmin:r.isAdmin,validity:i.validity});n.resolve(o)}).catch(e=>{o.error=e,o.signingIn=!1})});return n.promise}oAuthSignIn(e,t,r,n){this._oAuthDfd=(0,g.Tw)();const s=this._oAuthDfd;let i;n?.signal&&(0,g.u7)(n.signal,()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&d()}),s.resUrl_=e,s.sinfo_=t,s.oinfo_=r;const o=r._oAuthCred;if(o.storage&&("authorization-code"===r.flowType||"auto"===r.flowType&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));i=(0,v.$1)(e),o.codeVerifier=i,e=crypto.getRandomValues(new Uint8Array(32)),o.stateUID=(0,v.$1)(e),o.save()||(o.codeVerifier=i=null)}else o.codeVerifier=null;let l,c;this._getCodeChallenge(i).then(s=>{const i=!n||!1!==n.oAuthPopupConfirmation;if(!r.popup||!i)return void this._doOAuthSignIn(e,t,r,s);const o=new Ai({oAuthPrompt:!0,server:t.server,open:!0});this.dialog=o,this.emit("dialog-create"),l=o.on("cancel",d),c=o.on("submit",()=>{h(),this._doOAuthSignIn(e,t,r,s)})});const d=()=>{h(),this._oAuthDfd=null,s.reject(new a.A("identity-manager:user-aborted","ABORTED"))},h=()=>{l?.remove(),c?.remove(),this.dialog?.destroy(),this.dialog=null};return s.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,p.on)(window,"message",t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const r=t.source;this.getCredential(e).then(e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)}).catch(e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){"#"===e.charAt(0)&&(e=e.substring(1));const t=(0,v.zf)(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,r=!0)}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0,t.state)))try{t.state=JSON.parse(t.state)}catch{}r&&(window.location.hash=t.state?.hash||"")}let t=window.location.search;if(t){"?"===t.charAt(0)&&(t=t.substring(1));const e=(0,v.zf)(t);let r=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,r=!0)}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(r=!0,e.state)))try{e.state=JSON.parse(e.state)}catch{}if(r){const t={...e};["code","error","error_description","message_code","persist","state"].forEach(e=>{delete t[e]});const r=(0,v.x0)(t),n=window.location.pathname+(r?`?${r}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",n)}}}_getOAuthToken(e,t,r,n,s){return e=e.replace(/^http:/i,"https:"),(0,o.A)(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:n&&s?{grant_type:"authorization_code",code:t,redirect_uri:n,client_id:r,code_verifier:s}:{grant_type:"refresh_token",refresh_token:t,client_id:r}}).then(e=>e.data)}_getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then(e=>(0,v.$1)(new Uint8Array(e)))}return Promise.resolve(null)}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new a.A("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let r,n,s,i,o=-1;const a=t?.token,l=t?.resource,c=this._isServerRsrc(e)?"server":"portal",d=this.credentials.filter(t=>this._hasSameServerInstance(t.server,e)&&t.scope===c);if(e=l||e,d.length)if(1===d.length){if(r=d[0],s=this.findServerInfo(r.server),n=s?.owningSystemUrl,i=n?this.findCredential(n,r.userId):void 0,o=this._getIdenticalSvcIdx(e,r),!a)return-1===o&&r.resources.push(e),this._addResource(e,i),r;-1!==o&&(r.resources.splice(o,1),this._removeResource(e,i))}else{let t,r;if(d.some(a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,s=this.findServerInfo(t.server),n=s?.owningSystemUrl,i=n?this.findCredential(n,t.userId):void 0,o=r,!0))),a)t&&(t.resources.splice(o,1),this._removeResource(e,i));else if(t)return this._addResource(e,i),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t?.isAdmin&&!(0,v.FX)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,v.FX)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new v.s0(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==r||(0,Oi.$)(t)||(r=t.indexOf("/sharing")),-1===r&&"/"===t.substr(-1)&&(r=t.length-1),r>-1?e.substring(0,r):e}_hasSameServerInstance(e,t){return"/"===e.substr(-1)&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=this._normalizeAGOLorgDomain(e),t=this._normalizeAGOLorgDomain(t),(e=e.substr(e.indexOf(":")))===t.substr(t.indexOf(":"))}_normalizeAGOLorgDomain(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}_sanitizeUrl(e){const t=(i.A.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.substring(r+t.length+1)),e=(0,v.S8)(e),(0,v.An)(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const n=this._getSuffix(e).toLowerCase(),s=this._getSuffix(t).toLowerCase();if(r=n===s,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=n.replaceAll(e,"$1")===s.replaceAll(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const t=new v.s0(e.toLowerCase()),r=this._portalConfig;let n=this._gwDomains.some(e=>e.regex.test(t.uri));return!n&&r&&(n=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),n||i.A.portalUrl&&(n=(0,v.FX)(t,i.A.portalUrl,!0)),n||(n=this._portals.some(e=>this._hasSameServerInstance(e,t.uri))),n=n||this._agsPortal.test(t.path),n}_isIdProvider(e,t){let r=-1,n=-1;this._gwDomains.forEach((s,i)=>{-1===r&&s.regex.test(e)&&(r=i),-1===n&&s.regex.test(t)&&(n=i)});let s=!1;if(r>-1&&n>-1&&(0===r||4===r?0!==n&&4!==n||(s=!0):1===r?1!==n&&2!==n||(s=!0):2===r?2===n&&(s=!0):3===r&&3===n&&(s=!0)),!s){const r=this.findServerInfo(t),n=r?.owningSystemUrl;n&&Li(r)&&this._isPortalDomain(n)&&this._isIdProvider(e,n)&&(s=!0)}return s}_getIdenticalSvcIdx(e,t){let r=-1;for(let n=0;n<t.resources.length;n++){const s=t.resources[n];if(this._isIdenticalService(e,s)){r=n;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,n;if(this._isRESTService(e)||this._isAdminResource(e)){const n=this._getServerInstanceRoot(e);return t=n+"/admin/generateToken",r=(0,o.A)(e=n+"/rest/info",{query:{f:"json"}}).then(e=>e.data),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some(r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t)),t||this._portals.some(r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t)),t||(n=e.toLowerCase().indexOf("/sharing"),-1!==n&&(t=e.substring(0,n)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new v.s0(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}if(e.toLowerCase().includes("premium.arcgisonline.com"))return"https://premium.arcgisonline.com/server/tokens"}_processOAuthResponseParams(e,t,r){const n=t._oAuthCred;if(e.code){const s=n.codeVerifier;return n.codeVerifier=null,n.stateUID=null,n.save(),this._getOAuthToken(r.server,e.code,t.appId,this._getRedirectURI(t,!0),s).then(s=>{const i=new zi({userId:s.username,server:r.server,token:s.access_token,expires:Date.now()+1e3*s.expires_in,ssl:s.ssl,oAuthState:e.state,_oAuthCred:n});return t.userId=i.userId,n.storage=s.persist?Pi:Di,n.refreshToken=s.refresh_token,n.token=null,n.expires=s.refresh_token_expires_in?Date.now()+1e3*s.refresh_token_expires_in:null,n.userId=i.userId,n.ssl=i.ssl,n.save(),i})}const s=new zi({userId:e.username,server:r.server,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:n});return t.userId=s.userId,n.storage=e.persist?Pi:Di,n.refreshToken=null,n.token=s.token,n.expires=s.expires,n.userId=s.userId,n.ssl=s.ssl,n.save(),Promise.resolve(s)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const r="access_denied"===e.error,n=new a.A(r?"identity-manager:user-aborted":"identity-manager:authentication-failed",r?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(n)}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then(e=>{t.resolve(e)}).catch(e=>{t.reject(e)})}_setOAuthResponseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.substring(1)),this._processOAuthPopupParams((0,v.zf)(e)))}_exchangeToken(e,t,r){return(0,o.A)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}}).then(e=>e.data.token)}_getPlatformSelf(e,t){return e=e.replace(/^http:/i,"https:"),(0,o.A)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0}).then(e=>e.data)}_getPortalSelf(e,t){let r;return this._gwDomains.some(t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r)),r?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,o.A)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(e=>e.data))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,n=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(n?n.hasPortal||n.owningSystemUrl&&this._isPortalDomain(n.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,v.FX)(r,e,!0)))}_checkProtocol(e,t,r,n){let s=!0;const i=n?t.adminTokenServiceUrl:t.tokenServiceUrl;return i.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,v.zs)(i)&&(s=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!s)&&r(new a.A("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),s}_enqueue(e,t,r,n,s,i){return n||(n=(0,g.Tw)()),n.resUrl_=e,n.sinfo_=t,n.options_=r,n.admin_=s,n.refresh_=i,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(n)):this._xoReqs.push(n):this._doSignIn(n),n.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e.options_?.resource,n=e.resUrl_,s=e.refresh_;let i=!1;this.credentials.includes(t)||(s&&this.credentials.includes(s)?(s.userId=t.userId,s.token=t.token,s.expires=t.expires,s.validity=t.validity,s.ssl=t.ssl,s.creationTime=t.creationTime,i=!0,t=s):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(r||n)||t.resources.push(r||n),t.scope=this._isServerRsrc(n)?"server":"portal",t.emitTokenChange();const o=this._soReqs,a={};this._soReqs=[],o.forEach(e=>{if(!this._isIdenticalService(n,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_))}}),e.resolve(t),o.forEach(e=>{this._hasSameServerInstance(this._getServerInstanceRoot(n),e.resUrl_)?e.resolve(t):this._soReqs.push(e)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,i||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=(s,i,o,l)=>{const c=e.sinfo_,d=!e.options_||!1!==e.options_.prompt,h=c.hasPortal&&this._findOAuthInfo(e.resUrl_);let u,m;if(s)t(new zi({userId:s,server:c.server,token:o||null,expires:null!=l?Number(l):null,ssl:!!i}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const n=(0,p.on)(window,"message",e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(n.remove(),e.data.credential.expires<Date.now()?r(new a.A("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new zi(e.data.credential))):"arcgis:auth:error"===e.data.type&&(n.remove(),"tokenExpiredError"===e.data.error.name?r(new a.A("identity-manager:credential-request-failed","Parent application's token has expired.")):r(a.A.fromJSON(e.data.error))))});(0,g.u7)(e.options_?.signal,()=>{n.remove()})}else if(h){let s=h._oAuthCred;if(!s){const e=new ki(h,Pi),t=new ki(h,Di);e.isValid()&&t.isValid()?e.expires>t.expires?(s=e,t.destroy()):(s=t,e.destroy()):s=e.isValid()?e:t,h._oAuthCred=s}if(s.isValid()){u=new zi({userId:s.userId,server:c.server,token:s.token,expires:s.expires,ssl:s.ssl,_oAuthCred:s});const r=h.appId!==s.appId&&this._doPortalSignIn(e.resUrl_);r||s.refreshToken?(e._pendingDfd=s.refreshToken?this._getOAuthToken(c.server,s.refreshToken,s.appId).then(e=>(u.expires=Date.now()+1e3*e.expires_in,u.token=e.access_token,u)):Promise.resolve(u),e._pendingDfd.then(e=>r?this._exchangeToken(e.server,h.appId,e.token).then(t=>(e.token=t,e)).catch(()=>e):e).then(e=>{t(e)}).catch(()=>{s?.destroy(),n()})):t(u)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(h.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===s.stateUID&&s.codeVerifier)){const n=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(n,h,c).then(e=>{t(e)}).catch(r)}else{const n=()=>{d?e._pendingDfd=this.oAuthSignIn(e.resUrl_,c,h,e.options_).then(t,r):(m=new a.A("identity-manager:not-authenticated","User is not signed in."),r(m))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(c.server,h.appId).then(e=>{(0,v.FX)(e.portalUrl,this._appOrigin,!0)?(u=new zi({userId:e.username,server:c.server,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(u)):n()}).catch(n):n()}}else if(d){if(this._checkProtocol(e.resUrl_,c,r,e.admin_)){let n=e.options_;e.admin_&&(n=n||{},n.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,c,n).then(t,r)}}else m=new a.A("identity-manager:not-authenticated","User is not signed in."),r(m)},s=()=>{const n=e.sinfo_,s=n.owningSystemUrl,i=e.options_;let o,a,l,c;if(i&&(o=i.token,a=i.error,l=i.prompt),c=this._findCredential(s,{token:o,resource:e.resUrl_}),!c)for(const e of this.credentials)if(this._isIdProvider(s,e.server)){c=e;break}if(c){const s=this.findCredential(e.resUrl_,c.userId);if(s)t(s);else if(Mi(n,this._legacyFed)){const e=c.toJSON();e.server=n.server,e.resources=null,t(new zi(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(c.server),null,{serverUrl:e.resUrl_,token:c.token,signal:e.options_.signal,ssl:c.ssl})).then(r=>{t(new zi({userId:c?.userId,server:n.server,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e.admin_,validity:r.validity}))},r)}else this._busy=null,o&&(e.options_.token=null),(e._pendingDfd=this.getCredential(s.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:n.owningTenant,signal:e.options_.signal,token:o,error:a,prompt:l})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)})};this._errbackFunc=r;const i=e.sinfo_.owningSystemUrl,o=this._isServerRsrc(e.resUrl_),l=e.sinfo_._restInfoPms;l?l.promise.then(t=>{const r=e.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=((0,f.wc)("authInfo.tokenServicesUrl",t)||(0,f.wc)("authInfo.tokenServiceUrl",t)||(0,f.wc)("tokenServiceUrl",t))??null,r.shortLivedTokenValidity=(0,f.wc)("authInfo.shortLivedTokenValidity",t)??null,r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}o&&r.owningSystemUrl?s():n()},()=>{e.sinfo_._restInfoPms=null;const t=new a.A("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t)}):o&&i?s():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(t=>{const r={};let n,s,i,o;return t&&(n=t.user?.username,r.username=n,r.allSSL=t.allSSL,s=t.supportsOAuth,o=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(i=t.customBaseUrl),e.sinfo_.currentVersion=o),e.sinfo_.webTierAuth=!!n,n&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:r.allSSL}).catch(()=>null).then(e=>(r.portalToken=e&&e.token,r.tokenExpiration=e&&e.expires,r)):!n&&s&&o>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:i,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>r):r}).catch(()=>null).then(t=>{e.sinfo_._selfReq=null,t?n(t.username,t.allSSL,t.portalToken,t.tokenExpiration):n()}):n()}_generateOAuthInfo(e){let t,r=null,n=e.portalUrl;const s=e.customBaseUrl,i=e.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=window.location.href;let e=r.indexOf("?");e>-1&&(r=r.slice(0,e)),e=r.search(/\/(apps|home)\//),r=e>-1?r.slice(0,e):null}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,o.A)(r+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new Ei({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})})):t=Promise.resolve(),t.then(()=>{if(this._defaultOAuthInfo)return n=n.replace(/^http:/i,"https:"),(0,o.A)(n+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:i,client_id:this._defaultOAuthInfo.appId,redirect_uri:(0,v.s2)(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(e=>{if(e.data.valid){const t=this._defaultOAuthInfo.clone();e.data.urlKey&&s?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+s:t.portalUrl=n,t.popup=window!==window.top||!((0,v.FX)(n,this._appOrigin)||this._gwDomains.some(e=>e.regex.test(n)&&e.regex.test(this._appOrigin))),this.oAuthInfos.push(t)}})})}_doOAuthSignIn(e,t,r,n){const s=r._oAuthCred,i={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(i.hash=window.location.hash),s.stateUID&&(i.uid=s.stateUID);const o={client_id:r.appId,response_type:s.codeVerifier?"code":"token",state:JSON.stringify(i),expiration:r.expiration,locale:r.locale,redirect_uri:this._getRedirectURI(r,!!s.codeVerifier)};r.forceLogin&&(o.force_login=!0),r.forceUserId&&r.userId&&(o.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(o.redirectToUserOrgUrl=!0),s.codeVerifier&&(o.code_challenge=n||s.codeVerifier,o.code_challenge_method=n?"S256":"plain");const l=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",c=l+"?"+(0,v.x0)(o);if(r.popup){const e=window.open(c,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval(()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const e=this._oAuthDfd;if(e){const t=new a.A("identity-manager:user-aborted","ABORTED");e.reject(t)}}},500),this._oAuthOnPopupHandle=(0,p.on)(window,["arcgis:auth:hash","arcgis:auth:location:search"],e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail)});else{const e=new a.A("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:o,authorizeUrl:l,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=c}_getRedirectURI(e,t){const r=window.location.href.replace(/#.*$/,"");if(e.popup)return(0,v.s2)(e.popupCallbackUrl);if(t){const e=(0,v.An)(r);return e.query&&["code","error","error_description","message_code","persist","state"].forEach(t=>{delete e.query[t]}),(0,v.a6)(e.path,e.query)}return r}}ji.prototype.declaredClass="esri.identity.IdentityManagerBase";let zi=class extends u.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){const e=n.id.findServerInfo(this.server),t=e?.owningSystemUrl,r=!!t&&"server"===this.scope,s=r&&Mi(e,n.id._legacyFed),i=e.webTierAuth,o=i&&n.id.normalizeWebTierAuth,a=Ui[this.server],l=a?.[this.userId];let c,d=this.resources&&this.resources[0],h=r?n.id.findServerInfo(t):null,u={username:this.userId,password:l};if(i&&!o)return;r&&!h&&n.id.serverInfos.some(e=>(n.id._isIdProvider(t,e.server)&&(h=e),!!h));const p=h?n.id.findCredential(h.server,this.userId):null;if(!r||p){if(!s){if(r)c={serverUrl:d,token:p?.token,ssl:p&&p.ssl};else if(o)u=null,c={ssl:this.ssl};else{if(!l){let t;return d&&(d=n.id._sanitizeUrl(d),this._enqueued=1,t=n.id._enqueue(d,e,null,null,this.isAdmin,this),t.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),t}this.isAdmin&&(c={isAdmin:!0})}return n.id.generateToken(r?h:e,r?null:u,c).then(e=>{this.token=e.token,this.expires=null!=e.expires?Number(e.expires):null,this.creationTime=Date.now(),this.validity=e.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}p?.refreshToken()}}refreshServerTokens(){"portal"===this.scope&&n.id.credentials.forEach(e=>{const t=n.id.findServerInfo(e.server),r=t?.owningSystemUrl;e!==this&&e.userId===this.userId&&r&&"server"===e.scope&&(n.id._hasSameServerInstance(this.server,r)||n.id._isIdProvider(r,this.server))&&(Mi(t,n.id._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())})}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=this.server?n.id.findServerInfo(this.server):null,r=t?.owningSystemUrl,s=r?n.id.findServerInfo(r):null;!1===e||r&&"portal"!==this.scope&&(!s?.webTierAuth||n.id.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=n.id.credentials.indexOf(this);e>-1&&n.id.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,m.oy)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};(0,s._)([(0,y.MZ)()],zi.prototype,"creationTime",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"expires",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"isAdmin",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"oAuthState",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"resources",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"scope",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"server",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"ssl",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"token",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"tokenRefreshBuffer",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"userId",void 0),(0,s._)([(0,y.MZ)()],zi.prototype,"validity",void 0),zi=(0,s._)([(0,d.$)("esri.identity.Credential")],zi);class Fi extends ji{}Fi.prototype.declaredClass="esri.identity.IdentityManager";const Vi=new Fi;(0,n.Aq)(Vi)},11347:function(e,t,r){r.d(t,{i:function(){return s}});r(18111),r(61701);var n=r(85808);
|
|
8
|
+
/*!
|
|
9
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
10
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
11
|
+
* v2.13.2
|
|
12
|
+
*/
|
|
13
|
+
const s=()=>n.L2.isBrowser&&"undefined"!==typeof navigator&&"undefined"!==typeof window&&"undefined"!==typeof location&&"undefined"!==typeof document&&window.location===location&&window.document===document},21314:function(e,t,r){r.d(t,{C:function(){return o},a:function(){return n},d:function(){return s}});
|
|
14
|
+
/*!
|
|
15
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
16
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
17
|
+
* v2.13.2
|
|
18
|
+
*/
|
|
19
|
+
const n="calcite-mode-auto",s="calcite-mode-dark",i="calcite-mode-light",o={autoMode:n,darkMode:s,lightMode:i,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"}},78965:function(e,t,r){r.d(t,{f:function(){return i},l:function(){return a},s:function(){return h}});var n=r(85808);
|
|
20
|
+
/*!
|
|
21
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
22
|
+
* See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
23
|
+
* v2.13.2
|
|
24
|
+
*/const s=globalThis["calciteConfig"],i=s?.focusTrapStack||[],o=n.L2.isTesting&&n.L2.isBrowser,a=s?.logLevel||(o?"error":"info"),l="2.13.2",c="2024-10-24",d="e38e2977d";function h(){if(s&&s.version)return;console.info(`Using Calcite Components ${l} [Date: ${c}, Revision: ${d}]`);const e=s||globalThis["calciteConfig"]||{};Object.defineProperty(e,"version",{value:l,writable:!1}),globalThis["calciteConfig"]=e}},85808:function(e,t,r){r.d(t,{L2:function(){return l},wt:function(){return O},xr:function(){return _e},lh:function(){return Re},$x:function(){return At},OX:function(){return K},h:function(){return ve},w$:function(){return er},gv:function(){return J},Qu:function(){return X}});r(44114),r(18111),r(22489),r(20116),r(7588),r(61701),r(13579),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698),r(14603),r(47566),r(98721);var n,s={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},i="app",o=Object.defineProperty,a=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},l={isDev:!!s.isDev,isBrowser:!0,isServer:!1,isTesting:!!s.isTesting},c=s.hotModuleReplacement?window.__STENCIL_HOSTREFS__||(window.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap,d=e=>c.get(e),h=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.isDev&&(r.$renderCount$=0),s.method&&s.lazyLoad&&(r.$onInstancePromise$=new Promise(e=>r.$onInstanceResolve$=e)),s.asyncLoading&&(r.$onReadyPromise$=new Promise(e=>r.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[]),c.set(e,r)},u=(e,t)=>t in e,p=(e,t)=>(n||console.error)(e,t),m=s.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],f=(...e)=>console.error(...m,...e),g=(...e)=>console.warn(...m,...e),v=new Map,y=(e,t,n)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(s.isDev&&"string"!==typeof o)return void f(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);if(!o)return;const a=!s.hotModuleReplacement&&v.get(o);return a?a[i]:r(27162)(`./${o}.entry.js${s.hotModuleReplacement&&n?"?s-hmr="+n:""}`).then(e=>(s.hotModuleReplacement||v.set(o,e),e[i]),p)
|
|
25
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,$=[],w="r",b="o",S="s",A="t",T="s-id",k="sty-id",x="c-id",C="slot-fb{display:contents}slot-fb[hidden]{display:none}",I="http://www.w3.org/1999/xlink",E=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],R="undefined"!==typeof window?window:{},N=R.document||{head:{}},O=R.HTMLElement||class{},U={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,n)=>e.addEventListener(t,r,n),rel:(e,t,r,n)=>e.removeEventListener(t,r,n),ce:(e,t)=>new CustomEvent(e,t)},L=s.shadowDom,M=(()=>{let e=!1;try{N.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),P=e=>Promise.resolve(e),D=!!s.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"===typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),j=0,z=!1,F=[],V=[],B=[],q=(e,t)=>r=>{e.push(r),z||(z=!0,t&&4&U.$flags$?G(W):U.raf(W))},H=e=>{for(let r=0;r<e.length;r++)try{e[r](performance.now())}catch(t){p(t)}e.length=0},Z=(e,t)=>{let r=0,n=0;while(r<e.length&&(n=performance.now())<t)try{e[r++](n)}catch(s){p(s)}r===e.length?e.length=0:0!==r&&e.splice(0,r)},W=()=>{if(s.asyncQueue&&j++,H(F),s.asyncQueue){const e=2===(6&U.$flags$)?performance.now()+14*Math.ceil(.1*j):1/0;Z(V,e),Z(B,e),V.length>0&&(B.push(...V),V.length=0),(z=F.length+V.length+B.length>0)?U.raf(W):j=0}else H(V),(z=F.length>0)&&U.raf(W)},G=e=>P().then(e),J=q(F,!1),Y=q(V,!0),K=e=>{const t=new URL(e,U.$resourcesUrl$);return t.origin!==R.location.origin?t.href:t.pathname},X=e=>U.$resourcesUrl$=e,Q={},ee="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml",re=e=>null!=e,ne=e=>(e=typeof e,"object"===e||"function"===e);function se(e){var t,r,n;return null!=(n=null==(r=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:r.getAttribute("content"))?n:void 0}var ie={};a(ie,{err:()=>ae,map:()=>le,ok:()=>oe,unwrap:()=>ue,unwrapErr:()=>pe});var oe=e=>({isOk:!0,isErr:!1,value:e}),ae=e=>({isOk:!1,isErr:!0,value:e});function le(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(e=>oe(e)):oe(r)}if(e.isErr){const t=e.value;return ae(t)}throw"should never get here"}var ce,de,he,ue=e=>{if(e.isOk)return e.value;throw e.value},pe=e=>{if(e.isErr)return e.value;throw e.value},me=0,fe=(e,t="")=>{if(s.profile&&performance.mark){const r=`st:${e}:${t}:${me++}`;return performance.mark(r),()=>performance.measure(`[Stencil] ${e}() <${t}>`,r)}return()=>{}},ge=(e,t)=>s.profile&&performance.mark?(0===performance.getEntriesByName(e,"mark").length&&performance.mark(e),()=>{0===performance.getEntriesByName(t,"measure").length&&performance.measure(t,e)}):()=>{},ve=(e,t,...r)=>{let n=null,i=null,o=null,a=!1,l=!1;const c=[],d=t=>{for(let r=0;r<t.length;r++)n=t[r],Array.isArray(n)?d(n):null!=n&&"boolean"!==typeof n&&((a="function"!==typeof e&&!ne(n))?n=String(n):s.isDev&&"function"!==typeof e&&void 0===n.$flags$&&f("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),a&&l?c[c.length-1].$text$+=n:c.push(a?ye(null,n):n),l=a)};if(d(r),t&&(s.isDev&&"input"===e&&Ae(t),s.vdomKey&&t.key&&(i=t.key),s.slotRelocation&&t.name&&(o=t.name),s.vdomClass)){const e=t.className||t.class;e&&(t.class="object"!==typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}if(s.isDev&&c.some($e)&&f("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),s.vdomFunctional&&"function"===typeof e)return e(null===t?{}:t,c,we);const h=ye(e,null);return h.$attrs$=t,c.length>0&&(h.$children$=c),s.vdomKey&&(h.$key$=i),s.slotRelocation&&(h.$name$=o),h},ye=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.vdomAttribute&&(r.$attrs$=null),s.vdomKey&&(r.$key$=null),s.slotRelocation&&(r.$name$=null),r},_e={},$e=e=>e&&e.$tag$===_e,we={forEach:(e,t)=>e.map(be).forEach(t),map:(e,t)=>e.map(be).map(t).map(Se)},be=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Se=e=>{if("function"===typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),ve(e.vtag,t,...e.vchildren||[])}const t=ye(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Ae=e=>{const t=Object.keys(e),r=t.indexOf("value");if(-1===r)return;const n=t.indexOf("type"),s=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("step");(r<n||r<s||r<i||r<o)&&g('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},Te=(e,t,r,n)=>{const i=fe("hydrateClient",t),o=e.shadowRoot,a=[],l=[],c=s.shadowDom&&o?[]:null,d=n.$vnode$=ye(t,null);U.$orgLocNodes$||xe(N.body,U.$orgLocNodes$=new Map),e[T]=r,e.removeAttribute(T),ke(d,a,l,c,e,e,r),a.map(e=>{const r=e.$hostId$+"."+e.$nodeId$,n=U.$orgLocNodes$.get(r),s=e.$elm$;n&&L&&""===n["s-en"]&&n.parentNode.insertBefore(s,n.nextSibling),o||(s["s-hn"]=t,n&&(s["s-ol"]=n,s["s-ol"]["s-nr"]=s)),U.$orgLocNodes$.delete(r)}),s.shadowDom&&o&&c.map(e=>{e&&o.appendChild(e)}),i()},ke=(e,t,r,n,i,o,a)=>{let l,c,d,h;if(1===o.nodeType){if(l=o.getAttribute(x),l&&(c=l.split("."),c[0]!==a&&"0"!==c[0]||(d={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),o.removeAttribute(x),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&"0"===d.$depth$&&(n[d.$index$]=d.$elm$))),o.shadowRoot)for(h=o.shadowRoot.childNodes.length-1;h>=0;h--)ke(e,t,r,n,i,o.shadowRoot.childNodes[h],a);for(h=o.childNodes.length-1;h>=0;h--)ke(e,t,r,n,i,o.childNodes[h],a)}else if(8===o.nodeType)c=o.nodeValue.split("."),c[1]!==a&&"0"!==c[1]||(l=c[0],d={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},l===A?(d.$elm$=o.nextSibling,d.$elm$&&3===d.$elm$.nodeType&&(d.$text$=d.$elm$.textContent,t.push(d),o.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&"0"===d.$depth$&&(n[d.$index$]=d.$elm$))):d.$hostId$===a&&(l===S?(d.$tag$="slot",c[5]?o["s-sn"]=d.$name$=c[5]:o["s-sn"]="",o["s-sr"]=!0,s.shadowDom&&n&&(d.$elm$=N.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),o.parentNode.insertBefore(d.$elm$,o),o.remove(),"0"===d.$depth$&&(n[d.$index$]=d.$elm$)),r.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):l===w&&(s.shadowDom&&n?o.remove():s.slotRelocation&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=ye(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},xe=(e,t)=>{if(1===e.nodeType){let r=0;if(e.shadowRoot)for(;r<e.shadowRoot.childNodes.length;r++)xe(e.shadowRoot.childNodes[r],t);for(r=0;r<e.childNodes.length;r++)xe(e.childNodes[r],t)}else if(8===e.nodeType){const r=e.nodeValue.split(".");r[0]===b&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},Ce=e=>$.map(t=>t(e)).find(e=>!!e),Ie=(e,t)=>null==e||ne(e)?e:s.propBoolean&&4&t?"false"!==e&&(""===e||!!e):s.propNumber&&2&t?parseFloat(e):s.propString&&1&t?String(e):e,Ee=e=>s.lazyLoad?d(e).$hostElement$:e,Re=(e,t,r)=>{const n=Ee(e);return{emit:e=>(s.isDev&&!n.isConnected&&g(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Ne(n,t,{bubbles:!!(4&r),composed:!!(2&r),cancelable:!!(1&r),detail:e}))}},Ne=(e,t,r)=>{const n=U.ce(t,r);return e.dispatchEvent(n),n},Oe=new WeakMap,Ue=(e,t,r)=>{let n=_.get(e);D&&r?(n=n||new CSSStyleSheet,"string"===typeof n?n=t:n.replaceSync(t)):n=t,_.set(e,n)},Le=(e,t,r)=>{var n;const i=Pe(t,r),o=_.get(i);if(!s.attachStyles)return i;if(e=11===e.nodeType?e:N,o)if("string"===typeof o){e=e.head||e;let r,a=Oe.get(e);if(a||Oe.set(e,a=new Set),!a.has(i)){if(s.hydrateClientSide&&e.host&&(r=e.querySelector(`[${k}="${i}"]`)))r.innerHTML=o;else{r=N.createElement("style"),r.innerHTML=o;const a=null!=(n=U.$nonce$)?n:se(N);null!=a&&r.setAttribute("nonce",a),(s.hydrateServerSide||s.hotModuleReplacement)&&2&t.$flags$&&r.setAttribute(k,i);const l=!(1&t.$flags$)||1&t.$flags$&&"HEAD"!==e.nodeName;l&&e.insertBefore(r,e.querySelector("link"))}4&t.$flags$&&(r.innerHTML+=C),a&&a.add(i)}}else s.constructableCSS&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},Me=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,i=fe("attachStyles",t.$tagName$),o=Le(s.shadowDom&&L&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$);(s.shadowDom||s.scoped)&&s.cssAnnotations&&10&n&&2&n&&(r["s-sc"]=o,r.classList.add(o+"-h"),s.scoped&&2&n&&r.classList.add(o+"-s")),i()},Pe=(e,t)=>"sc-"+(s.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),De=(e,t,r,n,i,o)=>{if(r!==n){let l=u(e,t),c=t.toLowerCase();if(s.vdomClass&&"class"===t){const t=e.classList,s=ze(r),i=ze(n);t.remove(...s.filter(e=>e&&!i.includes(e))),t.add(...i.filter(e=>e&&!s.includes(e)))}else if(s.vdomStyle&&"style"===t){if(s.updatable)for(const t in r)n&&null!=n[t]||(!s.hydrateServerSide&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)r&&n[t]===r[t]||(!s.hydrateServerSide&&t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if(s.vdomKey&&"key"===t);else if(s.vdomRef&&"ref"===t)n&&n(e);else if(!s.vdomListener||(s.lazyLoad?l:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(s.vdomPropOrAttr){const d=ne(n);if((l||d&&null!==n)&&!i)try{if(e.tagName.includes("-"))e[t]=n;else{const s=null==n?"":n;"list"===t?l=!1:null!=r&&e[t]==s||(e[t]=s)}}catch(a){}let h=!1;s.vdomXlink&&c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,h=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(s.vdomXlink&&h?e.removeAttributeNS(I,t):e.removeAttribute(t)):(!l||4&o||i)&&!d&&(n=!0===n?"":n,s.vdomXlink&&h?e.setAttributeNS(I,t,n):e.setAttribute(t,n))}}else if(t="-"===t[2]?t.slice(3):u(R,c)?c.slice(2):c[2]+t.slice(3),r||n){const s=t.endsWith(Fe);t=t.replace(Ve,""),r&&U.rel(e,t,r,s),n&&U.ael(e,t,n,s)}}},je=/\s/,ze=e=>e?e.split(je):[],Fe="Capture",Ve=new RegExp(Fe+"$"),Be=(e,t,r)=>{const n=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||Q,o=t.$attrs$||Q;if(s.updatable)for(const s of qe(Object.keys(i)))s in o||De(n,s,i[s],void 0,r,t.$flags$);for(const s of qe(Object.keys(o)))De(n,s,i[s],o[s],r,t.$flags$)};function qe(e){return e.includes("ref")?[...e.filter(e=>"ref"!==e),"ref"]:e}var He=!1,Ze=!1,We=!1,Ge=!1,Je=(e,t,r,n)=>{var i;const o=t.$children$[r];let a,l,c,d=0;if(s.slotRelocation&&!He&&(We=!0,"slot"===o.$tag$&&(ce&&n.classList.add(ce+"-s"),o.$flags$|=o.$children$?2:1)),s.isDev&&o.$elm$&&f(`The JSX ${null!==o.$text$?`"${o.$text$}" text`:`"${o.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),s.vdomText&&null!==o.$text$)a=o.$elm$=N.createTextNode(o.$text$);else if(s.slotRelocation&&1&o.$flags$)a=o.$elm$=s.isDebug||s.hydrateServerSide?mt(o):N.createTextNode("");else{s.svg&&!Ge&&(Ge="svg"===o.$tag$),a=o.$elm$=s.svg?N.createElementNS(Ge?ee:te,!He&&s.slotRelocation&&2&o.$flags$?"slot-fb":o.$tag$):N.createElement(!He&&s.slotRelocation&&2&o.$flags$?"slot-fb":o.$tag$),s.svg&&Ge&&"foreignObject"===o.$tag$&&(Ge=!1),s.vdomAttribute&&Be(null,o,Ge);const t=a.getRootNode(),r=!t.querySelector("body");if(!r&&s.scoped&&re(ce)&&a["s-si"]!==ce&&a.classList.add(a["s-si"]=ce),s.scoped&&ut(a,n),o.$children$)for(d=0;d<o.$children$.length;++d)l=Je(e,o,d,a),l&&a.appendChild(l);s.svg&&("svg"===o.$tag$?Ge=!1:"foreignObject"===a.tagName&&(Ge=!0))}return a["s-hn"]=he,s.slotRelocation&&3&o.$flags$&&(a["s-sr"]=!0,a["s-cr"]=de,a["s-sn"]=o.$name$||"",a["s-rf"]=null==(i=o.$attrs$)?void 0:i.ref,c=e&&e.$children$&&e.$children$[r],c&&c.$tag$===o.$tag$&&e.$elm$&&(s.experimentalSlotFixes?Ye(e.$elm$):Ke(e.$elm$,!1))),a},Ye=e=>{U.$flags$|=1;const t=e.closest(he.toLowerCase());if(null!=t){const r=Array.from(t.childNodes).find(e=>e["s-cr"]),n=Array.from(e.childNodes);for(const e of r?n.reverse():n)null!=e["s-sh"]&&(dt(t,e,null!=r?r:null),e["s-sh"]=void 0,We=!0)}U.$flags$&=-2},Ke=(e,t)=>{U.$flags$|=1;const r=Array.from(e.childNodes);if(e["s-sr"]&&s.experimentalSlotFixes){let t=e;while(t=t.nextSibling)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===he&&r.push(t)}for(let n=r.length-1;n>=0;n--){const e=r[n];e["s-hn"]!==he&&e["s-ol"]&&(dt(nt(e),e,rt(e)),e["s-ol"].remove(),e["s-ol"]=void 0,e["s-sh"]=void 0,We=!0),t&&Ke(e,t)}U.$flags$&=-2},Xe=(e,t,r,n,i,o)=>{let a,l=s.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(s.shadowDom&&l.shadowRoot&&l.tagName===he&&(l=l.shadowRoot);i<=o;++i)n[i]&&(a=Je(null,r,i,e),a&&(n[i].$elm$=a,dt(l,a,s.slotRelocation?rt(t):t)))},Qe=(e,t,r)=>{for(let n=t;n<=r;++n){const t=e[n];if(t){const e=t.$elm$;ct(t),e&&(s.slotRelocation&&(Ze=!0,e["s-ol"]?e["s-ol"].remove():Ke(e,!0)),e.remove())}}},et=(e,t,r,n,i=!1)=>{let o,a,l=0,c=0,d=0,h=0,u=t.length-1,p=t[0],m=t[u],f=n.length-1,g=n[0],v=n[f];while(l<=u&&c<=f)if(null==p)p=t[++l];else if(null==m)m=t[--u];else if(null==g)g=n[++c];else if(null==v)v=n[--f];else if(tt(p,g,i))st(p,g,i),p=t[++l],g=n[++c];else if(tt(m,v,i))st(m,v,i),m=t[--u],v=n[--f];else if(tt(p,v,i))!s.slotRelocation||"slot"!==p.$tag$&&"slot"!==v.$tag$||Ke(p.$elm$.parentNode,!1),st(p,v,i),dt(e,p.$elm$,m.$elm$.nextSibling),p=t[++l],v=n[--f];else if(tt(m,g,i))!s.slotRelocation||"slot"!==p.$tag$&&"slot"!==v.$tag$||Ke(m.$elm$.parentNode,!1),st(m,g,i),dt(e,m.$elm$,p.$elm$),m=t[--u],g=n[++c];else{if(d=-1,s.vdomKey)for(h=l;h<=u;++h)if(t[h]&&null!==t[h].$key$&&t[h].$key$===g.$key$){d=h;break}s.vdomKey&&d>=0?(a=t[d],a.$tag$!==g.$tag$?o=Je(t&&t[c],r,d,e):(st(a,g,i),t[d]=void 0,o=a.$elm$),g=n[++c]):(o=Je(t&&t[c],r,c,e),g=n[++c]),o&&(s.slotRelocation?dt(nt(p.$elm$),o,rt(p.$elm$)):dt(p.$elm$.parentNode,o,p.$elm$))}l>u?Xe(e,null==n[f+1]?null:n[f+1].$elm$,r,n,c,f):s.updatable&&c>f&&Qe(t,l,u)},tt=(e,t,r=!1)=>e.$tag$===t.$tag$&&(s.slotRelocation&&"slot"===e.$tag$?(!("$nodeId$"in e)||!r||8===e.$elm$.nodeType)&&e.$name$===t.$name$:!(s.vdomKey&&!r)||e.$key$===t.$key$),rt=e=>e&&e["s-ol"]||e,nt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,st=(e,t,r=!1)=>{const n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,a=t.$tag$,l=t.$text$;let c;s.vdomText&&null!==l?s.vdomText&&s.slotRelocation&&(c=n["s-cr"])?c.parentNode.textContent=l:s.vdomText&&e.$text$!==l&&(n.data=l):(s.svg&&(Ge="svg"===a||"foreignObject"!==a&&Ge),(s.vdomAttribute||s.reflect)&&(s.slot&&"slot"===a&&!He?s.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",Ye(t.$elm$.parentElement)):Be(e,t,Ge)),s.updatable&&null!==i&&null!==o?et(n,i,t,o,r):null!==o?(s.updatable&&s.vdomText&&null!==e.$text$&&(n.textContent=""),Xe(n,null,t,o,0,o.length-1)):!r&&s.updatable&&null!==i&&Qe(i,0,i.length-1),s.svg&&Ge&&"svg"===a&&(Ge=!1))},it=e=>{const t=e.childNodes;for(const r of t)if(1===r.nodeType){if(r["s-sr"]){const e=r["s-sn"];r.hidden=!1;for(const n of t)if(n!==r)if(n["s-hn"]!==r["s-hn"]||""!==e){if(1===n.nodeType&&(e===n.getAttribute("slot")||e===n["s-sn"])||3===n.nodeType&&e===n["s-sn"]){r.hidden=!0;break}}else if(1===n.nodeType||3===n.nodeType&&""!==n.textContent.trim()){r.hidden=!0;break}}it(r)}},ot=[],at=e=>{let t,r,n;for(const i of e.childNodes){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;const e=i["s-sn"];for(n=r.length-1;n>=0;n--)if(t=r[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==i["s-hn"]&&(!s.experimentalSlotFixes||!t["s-sh"]||t["s-sh"]!==i["s-hn"]))if(lt(t,e)){let r=ot.find(e=>e.$nodeToRelocate$===t);Ze=!0,t["s-sn"]=t["s-sn"]||e,r?(r.$nodeToRelocate$["s-sh"]=i["s-hn"],r.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],ot.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&ot.map(e=>{lt(e.$nodeToRelocate$,t["s-sn"])&&(r=ot.find(e=>e.$nodeToRelocate$===t),r&&!e.$slotRefNode$&&(e.$slotRefNode$=r.$slotRefNode$))})}else ot.some(e=>e.$nodeToRelocate$===t)||ot.push({$nodeToRelocate$:t})}1===i.nodeType&&at(i)}},lt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,ct=e=>{s.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ct))},dt=(e,t,r)=>{const n=null==e?void 0:e.insertBefore(t,r);return s.scoped&&ut(t,e),n},ht=e=>{const t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ht(e.parentElement)),t},ut=(e,t,r=!1)=>{var n;if(e&&t&&1===e.nodeType){const s=new Set(ht(t).filter(Boolean));if(s.size&&(null==(n=e.classList)||n.add(...e["s-scs"]=[...s]),e["s-ol"]||r))for(const t of Array.from(e.childNodes))ut(t,e,!0)}},pt=(e,t,r=!1)=>{var n,i,o,a,l;const c=e.$hostElement$,d=e.$cmpMeta$,h=e.$vnode$||ye(null,null),u=$e(t)?t:ve(null,null,t);if(he=c.tagName,s.isDev&&Array.isArray(t)&&t.some($e))throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${he.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(s.reflect&&d.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},d.$attrsToReflect$.map(([e,t])=>u.$attrs$[t]=c[e])),r&&u.$attrs$)for(const s of Object.keys(u.$attrs$))c.hasAttribute(s)&&!["key","ref","style","class"].includes(s)&&(u.$attrs$[s]=c[s]);if(u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=h.$elm$=s.shadowDom&&c.shadowRoot||c,(s.scoped||s.shadowDom)&&(ce=c["s-sc"]),He=L&&0!==(1&d.$flags$),s.slotRelocation&&(de=c["s-cr"],Ze=!1),st(h,u,r),s.slotRelocation){if(U.$flags$|=1,We){at(u.$elm$);for(const e of ot){const t=e.$nodeToRelocate$;if(!t["s-ol"]){const e=s.isDebug||s.hydrateServerSide?ft(t):N.createTextNode("");e["s-nr"]=t,dt(t.parentNode,t["s-ol"]=e,t)}}for(const e of ot){const t=e.$nodeToRelocate$,l=e.$slotRefNode$;if(l){const e=l.parentNode;let r=l.nextSibling;if(!s.experimentalSlotFixes||r&&1===r.nodeType){let s=null==(n=t["s-ol"])?void 0:n.previousSibling;while(s){let n=null!=(i=s["s-nr"])?i:null;if(n&&n["s-sn"]===t["s-sn"]&&e===n.parentNode){n=n.nextSibling;while(n===t||(null==n?void 0:n["s-sr"]))n=null==n?void 0:n.nextSibling;if(!n||!n["s-nr"]){r=n;break}}s=s.previousSibling}}(!r&&e!==t.parentNode||t.nextSibling!==r)&&t!==r&&(s.experimentalSlotFixes||t["s-hn"]||!t["s-ol"]||(t["s-hn"]=t["s-ol"].parentNode.nodeName),dt(e,t,r),1===t.nodeType&&(t.hidden=null!=(o=t["s-ih"])&&o)),t&&"function"===typeof l["s-rf"]&&l["s-rf"](t)}else 1===t.nodeType&&(r&&(t["s-ih"]=null!=(a=t.hidden)&&a),t.hidden=!0)}}Ze&&it(u.$elm$),U.$flags$&=-2,ot.length=0}if(s.experimentalScopedSlotChanges&&2&d.$flags$)for(const s of u.$elm$.childNodes)s["s-hn"]===he||s["s-sh"]||(r&&null==s["s-ih"]&&(s["s-ih"]=null!=(l=s.hidden)&&l),s.hidden=!0);de=void 0},mt=e=>N.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${he.toLowerCase()})`),ft=e=>N.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),gt=(e,t)=>{s.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},vt=(e,t)=>{if(s.taskQueue&&s.updatable&&(e.$flags$|=16),s.asyncLoading&&4&e.$flags$)return void(e.$flags$|=512);gt(e,e.$ancestorComponent$);const r=()=>yt(e,t);return s.taskQueue?Y(r):r()},yt=(e,t)=>{const r=e.$hostElement$,n=fe("scheduleUpdate",e.$cmpMeta$.$tagName$),i=s.lazyLoad?e.$lazyInstance$:r;if(!i)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t?(s.lazyLoad&&s.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>kt(i,e,t)),e.$queuedListeners$=void 0)),xt(r,"componentWillLoad"),s.cmpWillLoad&&(o=kt(i,"componentWillLoad"))):(xt(r,"componentWillUpdate"),s.cmpWillUpdate&&(o=kt(i,"componentWillUpdate"))),xt(r,"componentWillRender"),s.cmpWillRender&&(o=_t(o,()=>kt(i,"componentWillRender"))),n(),_t(o,()=>wt(e,i,t))},_t=(e,t)=>$t(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),$t=e=>e instanceof Promise||e&&e.then&&"function"===typeof e.then,wt=async(e,t,r)=>{var n;const i=e.$hostElement$,o=fe("update",e.$cmpMeta$.$tagName$),a=i["s-rc"];s.style&&r&&Me(e);const l=fe("render",e.$cmpMeta$.$tagName$);if(s.isDev&&(e.$flags$|=1024),s.hydrateServerSide?await bt(e,t,i,r):bt(e,t,i,r),s.isDev&&(e.$renderCount$=void 0===e.$renderCount$?1:e.$renderCount$+1,e.$flags$&=-1025),s.hydrateServerSide)try{It(i),r&&(1&e.$cmpMeta$.$flags$?i["s-en"]="":2&e.$cmpMeta$.$flags$&&(i["s-en"]="c"))}catch(c){p(c,i)}if(s.asyncLoading&&a&&(a.map(e=>e()),i["s-rc"]=void 0),l(),o(),s.asyncLoading){const t=null!=(n=i["s-p"])?n:[],r=()=>St(e);0===t.length?r():(Promise.all(t).then(r),e.$flags$|=4,t.length=0)}else St(e)},bt=(e,t,r,n)=>{const i=!!s.allRenderFn,o=!!s.lazyLoad,a=!!s.taskQueue,l=!!s.updatable;try{if(t=(i||t.render)&&t.render(),l&&a&&(e.$flags$&=-17),(l||o)&&(e.$flags$|=2),s.hasRenderFn||s.reflect)if(s.vdomRender||s.reflect){if(s.hydrateServerSide)return Promise.resolve(t).then(t=>pt(e,t,n));pt(e,t,n)}else{const n=r.shadowRoot;1&e.$cmpMeta$.$flags$?n.textContent=t:r.textContent=t}}catch(c){p(c,e.$hostElement$)}return null},St=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,n=fe("postUpdate",t),i=s.lazyLoad?e.$lazyInstance$:r,o=e.$ancestorComponent$;s.cmpDidRender&&(s.isDev&&(e.$flags$|=1024),kt(i,"componentDidRender"),s.isDev&&(e.$flags$&=-1025)),xt(r,"componentDidRender"),64&e.$flags$?(s.cmpDidUpdate&&(s.isDev&&(e.$flags$|=1024),kt(i,"componentDidUpdate"),s.isDev&&(e.$flags$&=-1025)),xt(r,"componentDidUpdate"),n()):(e.$flags$|=64,s.asyncLoading&&s.cssAnnotations&&Ct(r),s.cmpDidLoad&&(s.isDev&&(e.$flags$|=2048),kt(i,"componentDidLoad"),s.isDev&&(e.$flags$&=-2049)),xt(r,"componentDidLoad"),n(),s.asyncLoading&&(e.$onReadyResolve$(r),o||Tt(t))),s.method&&s.lazyLoad&&e.$onInstanceResolve$(r),s.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&G(()=>vt(e,!1)),e.$flags$&=-517)},At=e=>{if(s.updatable&&(l.isBrowser||l.isTesting)){const t=d(e),r=t.$hostElement$.isConnected;return r&&2===(18&t.$flags$)&&vt(t,!1),r}return!1},Tt=e=>{s.cssAnnotations&&Ct(N.documentElement),s.asyncQueue&&(U.$flags$|=2),G(()=>Ne(R,"appload",{detail:{namespace:i}})),s.profile&&performance.measure&&performance.measure(`[Stencil] ${i} initial load (by ${e})`,"st:app:start")},kt=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(n){p(n)}},xt=(e,t)=>{s.lifecycleDOMEvents&&Ne(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:i}})},Ct=e=>{var t,r;return s.hydratedClass?e.classList.add(null!=(t=s.hydratedSelectorName)?t:"hydrated"):s.hydratedAttribute?e.setAttribute(null!=(r=s.hydratedSelectorName)?r:"hydrated",""):void 0},It=e=>{const t=e.children;if(null!=t)for(let r=0,n=t.length;r<n;r++){const e=t[r];"function"===typeof e.connectedCallback&&e.connectedCallback(),It(e)}},Et=(e,t)=>d(e).$instanceValues$.get(t),Rt=(e,t,r,n)=>{const i=d(e);if(s.lazyLoad&&!i)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const o=s.lazyLoad?i.$hostElement$:e,a=i.$instanceValues$.get(t),l=i.$flags$,c=s.lazyLoad?i.$lazyInstance$:o;r=Ie(r,n.$members$[t][0]);const h=Number.isNaN(a)&&Number.isNaN(r),u=r!==a&&!h;if((!s.lazyLoad||!(8&l)||void 0===a)&&u&&(i.$instanceValues$.set(t,r),s.isDev&&(1024&i.$flags$?g(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",r,"\nOld value",a):2048&i.$flags$&&g(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",r,"\nOld value",a)),!s.lazyLoad||c)){if(s.watchCallback&&n.$watchers$&&128&l){const e=n.$watchers$[t];e&&e.map(e=>{try{c[e](r,a,t)}catch(n){p(n,o)}})}if(s.updatable&&2===(18&l)){if(s.cmpShouldUpdate&&c.componentShouldUpdate&&!1===c.componentShouldUpdate(r,a,t))return;vt(i,!1)}}},Nt=(e,t,r)=>{var n,i;const o=e.prototype;if(s.formAssociated&&64&t.$flags$&&1&r&&E.forEach(e=>Object.defineProperty(o,e,{value(...t){const r=d(this),n=s.lazyLoad?r.$hostElement$:this,i=s.lazyLoad?r.$lazyInstance$:n;if(i){const r=i[e];"function"===typeof r&&r.call(i,...t)}else r.$onReadyPromise$.then(r=>{const n=r[e];"function"===typeof n&&n.call(r,...t)})}})),s.member&&t.$members$||s.watchCallback&&(t.$watchers$||e.watchers)){s.watchCallback&&e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries(null!=(n=t.$members$)?n:{});if(a.map(([e,[n]])=>{(s.prop||s.state)&&(31&n||(!s.lazyLoad||2&r)&&32&n)?Object.defineProperty(o,e,{get(){return Et(this,e)},set(i){if(s.isDev){const s=d(this);0===(1&r)&&0===(s&&8&s.$flags$)&&0!==(31&n)&&0===(1024&n)&&g(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}Rt(this,e,i,t)},configurable:!0,enumerable:!0}):s.lazyLoad&&s.method&&1&r&&64&n&&Object.defineProperty(o,e,{value(...t){var r;const n=d(this);return null==(r=null==n?void 0:n.$onInstancePromise$)?void 0:r.then(()=>{var r;return null==(r=n.$lazyInstance$)?void 0:r[e](...t)})}})}),s.observeAttribute&&(!s.lazyLoad||1&r)){const r=new Map;o.attributeChangedCallback=function(e,n,i){U.jmp(()=>{var a;const l=r.get(e);if(this.hasOwnProperty(l))i=this[l],delete this[l];else{if(o.hasOwnProperty(l)&&"number"===typeof this[l]&&this[l]==i)return;if(null==l){const r=d(this),o=null==r?void 0:r.$flags$;if(o&&!(8&o)&&128&o&&i!==n){const o=s.lazyLoad?r.$hostElement$:this,l=s.lazyLoad?r.$lazyInstance$:o,c=null==(a=t.$watchers$)?void 0:a[e];null==c||c.forEach(t=>{null!=l[t]&&l[t].call(l,i,n,e)})}return}}this[l]=(null!==i||"boolean"!==typeof this[l])&&i})},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.$watchers$)?i:{}),...a.filter(([e,t])=>15&t[0]).map(([e,n])=>{var i;const o=n[1]||e;return r.set(o,e),s.reflect&&512&n[0]&&(null==(i=t.$attrsToReflect$)||i.push([e,o])),o})]))}}return e},Ot=async(e,t,n,i)=>{let o;if(0===(32&t.$flags$)){t.$flags$|=32;const a=n.$lazyBundleId$;if((s.lazyLoad||s.hydrateClientSide)&&a){const e=y(n,t,i);if(e&&"then"in e){const r=ge(`st:load:${n.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${n.$tagName$}>`);o=await e,r()}else o=e;if(!o)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);s.member&&!o.isProxied&&(s.watchCallback&&(n.$watchers$=o.watchers),Nt(o,n,2),o.isProxied=!0);const r=fe("createInstance",n.$tagName$);s.member&&(t.$flags$|=8);try{new o(t)}catch(c){p(c)}s.member&&(t.$flags$&=-9),s.watchCallback&&(t.$flags$|=128),r(),Ut(t.$lazyInstance$)}else{o=e.constructor;const r=e.localName;customElements.whenDefined(r).then(()=>t.$flags$|=128)}if(s.style&&o&&o.style){let i;"string"===typeof o.style?i=o.style:s.mode&&"string"!==typeof o.style&&(t.$modeName$=Ce(e),t.$modeName$&&(i=o.style[t.$modeName$]),s.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const a=Pe(n,t.$modeName$);if(!_.has(a)){const e=fe("registerStyles",n.$tagName$);!s.hydrateServerSide&&s.shadowDom&&s.shadowDomShim&&8&n.$flags$&&(i=await r.e(629).then(r.bind(r,36629)).then(e=>e.scopeCss(i,a))),Ue(a,i,!!(1&n.$flags$)),e()}}}const a=t.$ancestorComponent$,l=()=>vt(t,!0);s.asyncLoading&&a&&a["s-rc"]?a["s-rc"].push(l):l()},Ut=e=>{s.lazyLoad&&s.connectedCallback&&kt(e,"connectedCallback")},Lt=e=>{if(0===(1&U.$flags$)){const t=d(e),r=t.$cmpMeta$,n=fe("connectedCallback",r.$tagName$);if(s.hostListenerTargetParent&&tr(e,t,r.$listeners$,!0),1&t.$flags$)tr(e,t,r.$listeners$,!1),(null==t?void 0:t.$lazyInstance$)?Ut(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>Ut(t.$lazyInstance$));else{let n;if(t.$flags$|=1,s.hydrateClientSide&&(n=e.getAttribute(T),n)){if(s.shadowDom&&L&&1&r.$flags$){const t=s.mode?Le(e.shadowRoot,r,e.getAttribute("s-mode")):Le(e.shadowRoot,r);e.classList.remove(t+"-h",t+"-s")}Te(e,r.$tagName$,n,t)}if(s.slotRelocation&&!n&&(s.hydrateServerSide||(s.slot||s.shadowDom)&&12&r.$flags$)&&Mt(e),s.asyncLoading){let r=e;while(r=r.parentNode||r.host)if(s.hydrateClientSide&&1===r.nodeType&&r.hasAttribute("s-id")&&r["s-p"]||r["s-p"]){gt(t,t.$ancestorComponent$=r);break}}s.prop&&!s.hydrateServerSide&&r.$members$&&Object.entries(r.$members$).map(([t,[r]])=>{if(31&r&&e.hasOwnProperty(t)){const r=e[t];delete e[t],e[t]=r}}),s.initializeNextTick?G(()=>Ot(e,t,r)):Ot(e,t,r)}n()}},Mt=e=>{const t=e["s-cr"]=N.createComment(s.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,dt(e,t,e.firstChild)},Pt=e=>{s.lazyLoad&&s.disconnectedCallback&&kt(e,"disconnectedCallback"),s.cmpDidUnload&&kt(e,"componentDidUnload")},Dt=async e=>{if(0===(1&U.$flags$)){const t=d(e);s.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),s.lazyLoad?(null==t?void 0:t.$lazyInstance$)?Pt(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>Pt(t.$lazyInstance$)):Pt(e)}},jt=(e,t)=>{zt(e),Ft(e),qt(e),Bt(e),Wt(e),Ht(e),Zt(e),Gt(e),Jt(e,t),Vt(e)},zt=e=>{const t=e.cloneNode;e.cloneNode=function(e){const r=this,n=!!s.shadowDom&&(r.shadowRoot&&L),i=t.call(r,!!n&&e);if(s.slot&&!n&&e){let e,t,n=0;const o=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];for(;n<r.childNodes.length;n++)e=r.childNodes[n]["s-nr"],t=o.every(e=>!r.childNodes[n][e]),e&&(s.appendChildSlotFix&&i.__appendChild?i.__appendChild(e.cloneNode(!0)):i.appendChild(e.cloneNode(!0))),t&&i.appendChild(r.childNodes[n].cloneNode(!0))}return i}},Ft=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const t=e["s-sn"]=Kt(e),r=Xt(this.childNodes,t,this.tagName);if(r){const n=Qt(r,t),s=n[n.length-1],i=dt(s.parentNode,e,s.nextSibling);return it(this),i}return this.__appendChild(e)}},Vt=e=>{e.__removeChild=e.removeChild,e.removeChild=function(e){if(e&&"undefined"!==typeof e["s-sn"]){const t=Xt(this.childNodes,e["s-sn"],this.tagName);if(t){const r=Qt(t,e["s-sn"]),n=r.find(t=>t===e);if(n)return n.remove(),void it(this)}}return this.__removeChild(e)}},Bt=e=>{const t=e.prepend;e.prepend=function(...e){e.forEach(e=>{"string"===typeof e&&(e=this.ownerDocument.createTextNode(e));const r=e["s-sn"]=Kt(e),n=Xt(this.childNodes,r,this.tagName);if(n){const t=document.createTextNode("");t["s-nr"]=e,n["s-cr"].parentNode.__appendChild(t),e["s-ol"]=t;const s=Qt(n,r),i=s[0];return dt(i.parentNode,e,i.nextSibling)}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.call(this,e)})}},qt=e=>{e.append=function(...e){e.forEach(e=>{"string"===typeof e&&(e=this.ownerDocument.createTextNode(e)),this.appendChild(e)})}},Ht=e=>{const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,r){if("afterbegin"!==e&&"beforeend"!==e)return t.call(this,e,r);const n=this.ownerDocument.createElement("_");let s;if(n.innerHTML=r,"afterbegin"===e)while(s=n.firstChild)this.prepend(s);else if("beforeend"===e)while(s=n.firstChild)this.append(s)}},Zt=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}},Wt=e=>{const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,r){return"afterbegin"!==e&&"beforeend"!==e?t.call(this,e,r):"afterbegin"===e?(this.prepend(r),r):"beforeend"===e?(this.append(r),r):r}},Gt=e=>{const t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),s.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){const e=Yt(this.childNodes),t=e.map(e=>{var t,r;const n=[];let s=e.nextSibling;while(s&&s["s-sn"]===e["s-sn"])3!==s.nodeType&&1!==s.nodeType||n.push(null!=(r=null==(t=s.textContent)?void 0:t.trim())?r:""),s=s.nextSibling;return n.filter(e=>""!==e).join(" ")}).filter(e=>""!==e).join(" ");return" "+t+" "},set(e){const t=Yt(this.childNodes);t.forEach(t=>{let r=t.nextSibling;while(r&&r["s-sn"]===t["s-sn"]){const e=r;r=r.nextSibling,e.remove()}if(""===t["s-sn"]){const r=this.ownerDocument.createTextNode(e);r["s-sn"]="",dt(t.parentElement,r,t.nextSibling)}else t.remove()})}}):Object.defineProperty(e,"textContent",{get(){var e;const t=Xt(this.childNodes,"",this.tagName);return 3===(null==(e=null==t?void 0:t.nextSibling)?void 0:e.nodeType)?t.nextSibling.textContent:t?t.textContent:this.__textContent},set(e){var t;const r=Xt(this.childNodes,"",this.tagName);if(3===(null==(t=null==r?void 0:r.nextSibling)?void 0:t.nodeType))r.nextSibling.textContent=e;else if(r)r.textContent=e;else{this.__textContent=e;const t=this["s-cr"];t&&dt(this,t,this.firstChild)}}})},Jt=(e,t)=>{class r extends Array{item(e){return this[e]}}if(8&t.$flags$){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get(){return e.children.length}}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0===(1&U.$flags$)&&2&d(this).$flags$){const t=new r;for(let r=0;r<e.length;r++){const n=e[r]["s-nr"];n&&t.push(n)}return t}return r.from(e)}})}},Yt=e=>{const t=[];for(const r of Array.from(e))r["s-sr"]&&t.push(r),t.push(...Yt(r.childNodes));return t},Kt=e=>e["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",Xt=(e,t,r)=>{let n,s=0;for(;s<e.length;s++){if(n=e[s],n["s-sr"]&&n["s-sn"]===t&&n["s-hn"]===r)return n;if(n=Xt(n.childNodes,t,r),n)return n}return null},Qt=(e,t)=>{const r=[e];while((e=e.nextSibling)&&e["s-sn"]===t)r.push(e);return r},er=(e,t)=>{const r={$flags$:t[0],$tagName$:t[1]};s.member&&(r.$members$=t[2]),s.hostListener&&(r.$listeners$=t[3]),s.watchCallback&&(r.$watchers$=e.$watchers$),s.reflect&&(r.$attrsToReflect$=[]),s.shadowDom&&!L&&1&r.$flags$&&(r.$flags$|=8),s.experimentalSlotFixes?s.scoped&&2&r.$flags$&&jt(e.prototype,r):(s.slotChildNodesFix&&Jt(e.prototype,r),s.cloneNodeFix&&zt(e.prototype),s.appendChildSlotFix&&Ft(e.prototype),s.scopedSlotTextContentFix&&2&r.$flags$&&Gt(e.prototype));const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){h(this,r)},connectedCallback(){const e=d(this);tr(this,e,r.$listeners$,!1),Lt(this),s.connectedCallback&&n&&n.call(this)},disconnectedCallback(){Dt(this),s.disconnectedCallback&&i&&i.call(this)},__attachShadow(){if(L)if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else s.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(16&r.$flags$)}):this.attachShadow({mode:"open"});else this.shadowRoot=this}}),e.is=r.$tagName$,Nt(e,r,3)},tr=(e,t,r,n)=>{s.hostListener&&r&&(s.hostListenerTargetParent&&(r=n?r.filter(([e])=>32&e):r.filter(([e])=>!(32&e))),r.map(([r,n,i])=>{const o=s.hostListenerTarget?nr(e,r):e,a=rr(t,i),l=sr(r);U.ael(o,n,a,l),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>U.rel(o,n,a,l))}))},rr=(e,t)=>r=>{var n;try{s.lazyLoad?256&e.$flags$?null==(n=e.$lazyInstance$)||n[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r]):e.$hostElement$[t](r)}catch(i){p(i)}},nr=(e,t)=>s.hostListenerTargetDocument&&4&t?N:s.hostListenerTargetWindow&&8&t?R:s.hostListenerTargetBody&&16&t?N.body:s.hostListenerTargetParent&&32&t&&e.parentElement?e.parentElement:e,sr=e=>M?{passive:0!==(1&e),capture:0!==(2&e)}:0!==(2&e)}}]);
|